!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]="5d876fec-7add-46f1-bec6-1e9c5cc71b8c",e._sentryDebugIdIdentifier="sentry-dbid-5d876fec-7add-46f1-bec6-1e9c5cc71b8c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28105],{526:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M21 2H2v9h2V4h16v7h2V2zm-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.92z"})}))}a(62042),a(20325),a(1157)},2997:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:[(0,s.jsx)("path",{d:"M7 16c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M10 15c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M13 16c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M13 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M15 10c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M0 0v9h2V2h16v7h2V0z"}),(0,s.jsx)("path",{d:"M10 7.75c2.89 0 5.25 2.36 5.25 5.25s-2.36 5.25-5.25 5.25S4.75 15.89 4.75 13 7.11 7.75 10 7.75M10 6c-3.87 0-7 3.13-7 7s3.13 7 7 7 7-3.13 7-7-3.13-7-7-7"})]}))}a(62042),a(20325),a(1157)},6659:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"16",heightAttr:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"m13.992 7.335 1.001.566v1.844l-1.751 3.503L9.738 15h-.922l.08-.04 3.213-3.397zm-.988-.21-1.685 3.819-2.885 3.147-2.252.883-2.884-1.45 1.712-.368 2.924-2.555 1.752-3.477zM2.575 3.106 2.086 5.57l2.266 3.78 2.225 1.133-2.028 1.764-2.08.448-1.463-2.95v-3.49zM6.274 1l-.223 2.107 2.66 3.767-1.41 2.858L5.05 8.599 3.127 5.386l.632-3.135L6.249 1zm5.585 2.49 2.173.868.961 1.897v.54L13.9 6.136H9.396L7.526 3.49zM9.739 1l3.49 1.765.131.316-1.212-.54-5.044-.04L7.262 1z",clipRule:"evenodd"})}))}a(62042),a(20325),a(1157)},6664:(e,t,a)=>{a.d(t,{K:()=>E});var s=a(6029),l=a(46787),r=a(22375),n=a(20325),o=a(55729),i=a(45860),c=a(46222),u=a(18970),d=a(70344),p=a(41164),h=a(18974),g=a(28446),v=a(14107),m=a(88354),f=a(67087),y=a(51569),x=a(94565),j=a(90248),b=a(12408);function _(e){let{selectedPlayer:t,setSelectedPlayer:a,showSubstitutes:l,substitutionIds:r,setShowSubstitutes:n,selectedSide:i,players:c}=e,{event:d}=(0,o.useContext)(u.y$),p=Array.from(r).reduce((e,t)=>{let a=c.find(e=>e.player.id===t);return a?[...e,a]:e},[]),h=(null==t?void 0:t.id)&&r.has(t.id);return(0,o.useEffect)(()=>{h&&!l&&n(!0)},[t]),(0,s.jsxs)(x.so,{br:"24",h:"92",mb:"xs",align:"flex-start",direction:"column",children:[(0,s.jsx)(x.Sc,{px:"lg",name:"showSubstitutes-".concat(d.id,"-").concat(i),onChange:e=>{let t=e.currentTarget.checked;n(t),(!t&&h||t&&!h)&&a(void 0)},checked:l,style:{overflow:"hidden"},boxColor:"onColor.primary",children:(0,s.jsx)(x.EY,{color:"onColor.primary",children:(0,s.jsx)(j.A,{id:"show_substitutions"})})}),(0,s.jsx)(y.tR,{buttonStyle:"clipped",colorPalette:"primary",children:(0,s.jsx)(x.so,{px:"lg",w:"fit-content",align:"center",h:44,children:(0,s.jsx)(v.N,{initial:!1,children:p.map(e=>{let{player:l,jersey:r,fillColor:n,numberColor:o,hasLowPoints:i}=e;return(0,s.jsx)(m.m.div,{initial:{opacity:0},animate:{opacity:(0,b.cl)(i,!!t,(null==t?void 0:t.id)===l.id)},exit:{opacity:0},transition:{duration:.2},onClick:()=>a(l),style:{cursor:"pointer"},children:(0,s.jsx)(x.so,{align:"center",p:"xs",w:"32",h:"32",br:"50%",ml:"xs",textAlign:"center",justify:"center",bg:n,style:{pointerEvents:"none",userSelect:"none"},children:(0,s.jsx)(x.EY,{font:"display.medium",color:o,children:r})})},l.id)})},i)})})]})}var k=a(10292),S=a(52466),w=a(94156);function C(e){let{selectedPlayer:t,players:a,setSelectedPlayer:l}=e;return t?(0,s.jsx)(x.so,{position:"absolute",justify:"center",w:"100%",bottom:0,children:(0,s.jsxs)(x.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)(x.so,{align:"center",children:[(0,s.jsx)(k.t,{size:"3xl",id:t.id}),(0,s.jsxs)(x.az,{pl:"md",children:[(0,s.jsx)(x.EY,{block:!0,font:"display.medium",color:"onSurface.nLv1",children:(0,s.jsx)(w.c,{entity:t})}),a.find(e=>{let{player:a,hasLowPoints:s}=e;return a.id===t.id&&s})&&(0,s.jsx)(x.EY,{font:"assistive.default",color:"onSurface.nLv3",mt:"xxs",children:(0,s.jsx)(j.A,{id:"low_player_involvement"})})]})]}),(0,s.jsx)(x.$n,{w:"36",h:"36",p:"0",variant:"unshielded",children:(0,s.jsx)(S.zQC,{icon:"close",color:"neutrals.nLv1"})})]})}):null}var P=a(41735),A=a(34993),M=a(79261);let V=(0,P.default)(x.az).withConfig({componentId:"sc-404fb467-0"})(["canvas{transform:",";animation:"," 200ms ease-in-out 1;}"],e=>"rotate(-90deg) translate(-70px, ".concat(e.xTranslate,") scale(1, -1)"),M.qG),H={WIDTH:280,HEIGHT:420},R=e=>{let{heatmap:t,heatmapTransform:a,teamId:l,theme:r,isLineupsBackground:n}=e,i="".concat(l,"-avg-positions"),{textDirection:c}=(0,y.$c)();return((0,o.useEffect)(()=>{t&&(0,A.IJ)(t,{containerId:i,width:H.HEIGHT-16,height:H.WIDTH-16},r,n)},[t,i]),t)?(0,s.jsx)(V,{id:i,position:"absolute",w:H.WIDTH-16,h:H.HEIGHT-16,top:"sm",left:"sm",xTranslate:"rtl"===c?"70px":"-70px",style:{transform:a,overflow:"hidden"}}):null},T=e=>{let{teamId:t,heatmap:a,heatmapTransform:l,children:r,isLineupsBackground:n,...o}=e,i=(0,P.useTheme)(),c=i.colors;return(0,s.jsxs)(x.az,{position:"relative",m:"auto",w:H.WIDTH,h:H.HEIGHT,children:[(0,s.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:H.WIDTH,height:H.HEIGHT,viewBox:"0 0 ".concat(H.WIDTH," ").concat(H.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:H.WIDTH,height:H.HEIGHT,rx:"4"})})}),(0,s.jsx)(R,{heatmap:a,heatmapTransform:l,theme:i,teamId:t,isLineupsBackground:n}),(0,s.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:H.WIDTH,height:H.HEIGHT,viewBox:"0 0 ".concat(H.WIDTH," ").concat(H.HEIGHT),xmlns:"http://www.w3.org/2000/svg",...o,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:r})]})})})]})};var z=a(92667);let G={left:{group:void 0,text:(0,b.$8)()?"translate(0 4)":void 0,heatmap:"scale(1, -1)"},right:{group:"matrix(-1 0 0 -1 0 0), translate(-".concat(H.WIDTH," -").concat(H.HEIGHT,")"),text:"scale(-1 -1) ".concat((0,b.$8)()?"translate(0 4)":""),heatmap:"scale(-1, 1)"}},O=(0,g.A)().domain([0,100]).range([8,H.WIDTH-8]),I=(0,g.A)().domain([0,100]).range([8,H.HEIGHT-8]);function L(e){let{selectedSide:t}=e,{event:a}=(0,o.useContext)(u.y$),[r,c]=(0,o.useState)(!1),[d,h]=(0,o.useState)(void 0),[{group:g,text:y,heatmap:x},j]=(0,o.useState)(G[t]),{data:k,error:S}=(0,i.Ay)(l.bnp.averagePositions(a.id),(0,p.rf)(a)),{data:w}=(0,i.Ay)(d?l.bnp.playerHeatmap(a.id,d.id):null),[P,A]=(0,f.jr)(k,"home","away"),{lineups:M,error:V}=(0,z.Ir)();(0,o.useLayoutEffect)(()=>{j(G[t]),h(void 0),c(!1)},[t]);let H="left"===t?P:A;if(!k)return(0,s.jsx)(n.az,{h:"[420px]"});if(S||V)return null;let R={in:new Set,out:new Set},L=k.substitutions.sort((e,t)=>{var a,s;return(null!=(a=e.time)?a:0)-(null!=(s=t.time)?s:0)});for(let e=0;e({x:O(e.averageY),y:I(e.averageX),jersey:N[t].get(e.player.id),player:e.player,hasLowPoints:(0,b.XU)(e.pointsCount),...(0,b.jM)(e.player,null==M?void 0:M[t])})));return(0,s.jsxs)(n.az,{position:{base:"initial",md:"relative"},bg:"graphics.terrain.footballLineups",m:"auto",textAlign:"center",pt:"sm",pb:"4xl",w:"100%",children:[(0,s.jsx)(_,{selectedPlayer:d,setSelectedPlayer:h,substitutionIds:R.in,showSubstitutes:r,setShowSubstitutes:c,selectedSide:t,players:B}),(0,s.jsx)(n.az,{position:"relative",children:(0,s.jsx)(T,{teamId:t===l.cxP.Left?a.homeTeam.id:a.awayTeam.id,heatmap:null==w?void 0:w.heatmap,heatmapTransform:x,isLineupsBackground:!0,children:(0,s.jsx)("g",{transform:g,textAnchor:"middle",fontSize:"16px",fontWeight:"700",fontFamily:"'Sofascore Sans', sans-serif",children:(0,s.jsxs)(v.N,{children:[(0,s.jsxs)(m.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"}})]},t),B.map(e=>{let{x:a,y:l,player:n,fillColor:o,jersey:i,numberColor:c,hasLowPoints:u}=e;if(r?R.out.has(n.id):R.in.has(n.id))return null;let p=r&&!d?{delay:.2}:void 0,g=(0,b.cl)(u,!!d,n.id===(null==d?void 0:d.id));return(0,s.jsxs)(m.m.g,{initial:{opacity:0},animate:{opacity:g},transition:p,style:{cursor:"pointer",zIndex:1},onClick:()=>{(null==d?void 0:d.id)===n.id?h(void 0):h(n)},children:[(0,s.jsx)(m.m.circle,{initial:{r:0},animate:{r:16},cx:a,cy:l,transition:p,fill:o}),(0,s.jsx)(m.m.text,{x:a,y:l+1,style:{transformOrigin:"".concat(a,"px ").concat(l,"px")},transform:y,transition:p,fill:c,alignmentBaseline:"middle",children:i})]},"".concat(t,"_").concat(n.id,"_").concat(a,"_").concat(l,"_circle_and_text"))})]})})})}),(0,s.jsx)(C,{selectedPlayer:d,setSelectedPlayer:h,players:B})]})}let N=(0,n.I4)("div",{base:{position:"absolute",top:"[43px]",borderStart:"{sizes.md} solid transparent",borderEnd:"{sizes.md} solid transparent",borderBottom:"{sizes.sm} solid",borderBottomColor:"graphics.terrain.footballLineups"}});function B(){let{event:e}=(0,o.useContext)(u.y$),[t,a]=(0,o.useState)(l.cxP.Left),{data:r,error:c}=(0,i.Ay)(l.bnp.averagePositions(e.id),(0,p.rf)(e));if(!r)return(0,s.jsx)(n.az,{h:"[420px]"});if(c)return null;let d={in:new Set,out:new Set},g=r.substitutions.sort((e,t)=>{var a,s;return(null!=(a=e.time)?a:0)-(null!=(s=t.time)?s:0)});for(let e=0;e(0,r.Ui)(Date.now(),a.startTimestamp,"minutes"),h=!1;return(c?h=!0:a.status.type===l.XUj.InProgress&&(h=p&&1===a.detailId),h)?p?null:t?(0,s.jsx)(F,{}):(0,s.jsx)(K,{}):void 0===c&&1===a.detailId&&a.status.type!==l.XUj.NotStarted?(0,s.jsx)(n.az,{h:"5xl"}):null}function F(){return(0,s.jsx)(n.az,{pb:"sm",borderBottomRadius:"lg",overflow:"hidden",children:(0,s.jsxs)(c.Zp,{variant:"never",children:[(0,s.jsx)(c.Zp.Header,{titleId:"players_average_positions"}),(0,s.jsxs)(n.so,{gap:"sm",px:"sm",children:[(0,s.jsx)(n.az,{flexGrow:1,flexShrink:1,flexBasis:"6xl",br:"sm",overflow:"hidden",children:(0,s.jsx)(L,{selectedSide:l.cxP.Left})}),(0,s.jsx)(n.az,{flexGrow:1,flexShrink:1,flexBasis:"6xl",br:"sm",overflow:"hidden",children:(0,s.jsx)(L,{selectedSide:l.cxP.Right})})]})]})})}function K(){return(0,s.jsx)(n.az,{px:"sm",children:(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"players_average_positions",as:"h4"}),(0,s.jsx)(B,{})]})})}},8746:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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-4zm7.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 5 0 0 0 2.29.702l.276.008.198-.004a5.09 5.09 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-.01m2.42 3.95L18 16.58l-2 2.2-2-.78v-2.91z"})}))}a(62042),a(20325),a(1157)},9045:(e,t,a)=>{a.d(t,{m:()=>g});var s=a(6029),l=a(10292),r=a(51569),n=a(20325),o=a(46222),i=a(99913),c=a(11219),u=a(94156),d=a(16805);function p(e){let{missingPlayer:t,left:a,first:o}=e;return t?(0,s.jsxs)(n.so,{h:"5xl",w:"100%",align:"center",direction:a?"row":"row-reverse",gap:"lg",overflow:"hidden",pl:a?"lg":void 0,pr:a?void 0:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,s.jsx)(l.t,{size:"3xl",id:t.player.id,style:{display:"block"}}),(0,s.jsxs)(n.so,{overflow:"hidden",direction:"column",justify:"center",align:a?"flex-start":"flex-end",gap:"xs",children:[(0,s.jsx)(r.EY,{children:(0,s.jsx)(u.c,{entity:t.player,short:!0})}),(0,s.jsx)(i.Ck,{missingPlayer:t})]})]}):o?(0,s.jsx)(d.A,{messageId:"no_missing_players",isInverted:!a}):null}function h(e){var t,a;let{sport:l,home:r,away:o,first:i}=e;return(0,s.jsxs)(n.so,{justify:r||i?"space-between":"flex-end",children:[(0,s.jsx)(c.uc,{player:null==r?void 0:r.player,sportSlug:l,style:{width:"50%"},title:null==r||null==(t=r.player)?void 0:t.name,children:(0,s.jsx)(p,{missingPlayer:r,first:i,left:!0})}),(0,s.jsx)(c.uc,{player:null==o?void 0:o.player,sportSlug:l,style:{width:"50%"},title:null==o||null==(a=o.player)?void 0:a.name,children:(0,s.jsx)(p,{missingPlayer:o,first:i})})]})}function g(e){let{home:t,away:a,sport:l}=e;if(void 0===t&&void 0===a)return null;let r=Math.max((null==t?void 0:t.length)||0,(null==a?void 0:a.length)||0);return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"injuries_and_suspensions"}),Array.from({length:r}).map((e,r)=>{var n,o,i,c;return(0,s.jsx)(h,{sport:l,home:null==t?void 0:t[r],away:null==a?void 0:a[r],first:0===r},"".concat(null==t||null==(o=t[r])||null==(n=o.player)?void 0:n.id).concat(null==a||null==(c=a[r])||null==(i=c.player)?void 0:i.id))}),(0,s.jsx)(o.Zp.Footer,{})]})}},9434:(e,t,a)=>{a.d(t,{Mf:()=>n,Nv:()=>i,Wj:()=>o,oz:()=>l,wo:()=>r,zN:()=>s});let s="HIDDEN_STATISTICS_GROUP",l="DEFAULT_GROUP_NAME",r=36,n=40,o=48,i={"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"}}},9835:(e,t,a)=>{a.d(t,{H7:()=>g,q6:()=>h});var s=a(6029),l=a(55729),r=a(947),n=a(90248),o=a(18970),i=a(57724);let c=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","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.emptynet":"hockey_empty_net_goal","substitution.goalkeeperIn":"hockey_match_event_goalie_back_in","substitution.goalkeeperOut":"hockey_match_event_goalie_out"},"volleyball":{"goal.spike":"volleyball_attack","goal.ace":"volleyball_ace","goal.block":"volleyball_block","goal.opponentError":"volleyball_opponent_error"},"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","penaltyAwarded":"penaltyNotAwarded.false","vip_for_goal":"football_var_goal","vip_for_penalty":"football_var_penalty","vip_for_red_card":"football_var_red_card","vip_for_no_goal":"football_var_goal","vip_for_no_penalty":"football_var_penalty","vip_for_no_red_card":"football_var_red_card","vip_for_unknown":"football_var_unknown"}');var u=a(91113);let d="DEFAULT",p=(e,t)=>(0,u.OX)(c,e,t,d),h=(e,t,a)=>{let s=p(t?"".concat(e,".").concat(t):e,a);return"goal"===s&&a?i.dv.includes(a)?s:void 0:s!==d||t&&(s=p(t,a))!==d?s:(s=p(e,a))!==d?s:void 0},g=e=>{let{id:t}=e,a=(0,r.A)(),i=p(t,(0,l.useContext)(o.Ws));if(i!==d)return(0,s.jsx)(n.A,{id:i});let c=a.formatMessage({id:t});return c!==t?(0,s.jsx)(s.Fragment,{children:c}):null}},10688:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(6029),l=a(93338),r=a(3230);function n(e){return(0,s.jsxs)(r.S,Object.assign({w:24,h:24,viewBox:"0 0 24 24"},e,{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:(0,l.S)("colors.neutrals.nLv1")}),(0,s.jsx)("g",{fill:(0,l.S)("colors.status.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"})})]}))}a(62042),a(20325),a(1157)},12408:(e,t,a)=>{a.d(t,{$8:()=>i,T0:()=>n,XU:()=>c,cl:()=>u,eA:()=>r,jM:()=>o});var s=a(46787);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 a=this.atan(t);return this.x+=e*Math.cos(a),Math.abs(a-Math.PI)>.005&&(this.y+=e*Math.sin(a)),[this.x,this.y]}constructor(e,t){this.x=e,this.y=t}}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=e.map(e=>{let{x:t,y:a}=e;return new l(t,a)}),r=0;do for(let a=0;a({...e,...s[t]}))}let n=e=>{let t=new Map;if(e)for(let a=0;a{var a,s,l,r,n,o,i,c;let u=(null==t||null==(a=t.playerColor)?void 0:a.primary)||(null==t||null==(s=t.playerColor)?void 0:s.outline),d=(null==t||null==(l=t.playerColor)?void 0:l.fancyNumber)||(null==t||null==(r=t.playerColor)?void 0:r.number);return"G"===e.position&&(u=(null==t||null==(n=t.goalkeeperColor)?void 0:n.primary)||(null==t||null==(o=t.goalkeeperColor)?void 0:o.outline),d=(null==t||null==(i=t.goalkeeperColor)?void 0:i.fancyNumber)||(null==t||null==(c=t.goalkeeperColor)?void 0:c.number)),{fillColor:u=(null==u?void 0:u.startsWith("#"))?"#fff":"#"+u,numberColor:d=(null==d?void 0:d.startsWith("#"))?"#000":"#"+d}};function i(){let e=!1;return!(0,s.S$s)()&&"navigator"in window&&(e=/Firefox/.test(window.navigator.userAgent)),e}function c(e){return e>1&&e<=7}function u(e,t,a){return t?e?a?.75:.25:a?1:.5:e?.5:1}},12668:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",fill:"none",viewBox:"0 0 24 24"},e,{children:[(0,s.jsx)("g",{fill:"currentColor",clipPath:"url(#IconAFSafety_svg__a)",children:(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.75zM18 17l.5-7L14 2h-1.25v5.25h1.79L16.46 13h-1.58l-1.42-4.25h-.71v8.75L15 22h6z"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"IconAFSafety_svg__a",children:(0,s.jsx)("path",{fill:"currentColor",d:"M3 2h18v20H3z"})})})]}))}a(62042),a(20325),a(1157)},14103:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M22 4v14h-5v2H7v-2H2V4zM4.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-.09H8q-.09 0-.12.09l-1.63 5.56H6L4.36 7.72q-.03-.09-.12-.09m8.6 0h-1.78q-.09 0-.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.56q-.03-.09-.12-.09m5.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.06s-.45-.51-.79-.66-.73-.23-1.17-.23m-6.64 1.18.91 2.87h-2.06l.91-2.87zm6.53-.04c.36 0 .63.07.82.21.2.14.29.34.29.61 0 .31-.08.54-.25.71s-.41.25-.72.25h-1.72V8.77z"})}))}a(62042),a(20325),a(1157)},16091:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(6029),l=a(93338),r=a(3230);function n(e){return(0,s.jsxs)(r.S,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:[(0,s.jsx)("path",{d:"M3.5 9V11.25H9.75V9H10.75L13.75 12L10.75 15H9.75V12.75H2V9H3.5Z",fill:(0,l.S)("colors.primary.default")}),(0,s.jsx)("path",{d:"M5.75 9H7.25V5.75H10.5V4.25H7.25V1H5.75V4.25H2.5V5.75H5.75V9Z",fill:(0,l.S)("colors.status.error.default")})]}))}a(62042),a(20325),a(1157)},16287:(e,t,a)=>{a.d(t,{u:()=>K});var s=a(6029),l=a(46787),r=a(51569),n=a(94565),o=a(55729),i=a(46222),c=a(18970),u=a(20325),d=a(33144),p=a(41164),h=a(66331),g=a(96861),v=a(11219),m=a(94156),f=a(92667),y=a(40094),x=a(99902),j=a(70512),b=a(41735);let _=()=>{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"})]})]})]})})},k=e=>{let{type:t,children:a}=e;return(0,s.jsxs)(n.az,{position:"relative",children:[(0,s.jsx)(_,{}),(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:a})})]})};var S=a(94400),w=a(48485),C=a(19991),P=a(90248),A=a(52466),M=a(80055),V=a(94536),H=a(33079);let R=(0,b.default)(v.uc).withConfig({componentId:"sc-f3ca2a2f-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 T(e){var t,a,r;let{player:i,incidents:c,onClick:u,jersey:d,color:p,useShortName:h,showSubstitutionNames:g=!0,showGoalScorer:v=!0,nameWidth:m,hasRatings:f,isPlayerOfTheMatch:y}=e,x=(0,o.useMemo)(()=>c?(0,w.h)({id:i.player.id,incidents:c,useShortName:h}):{},[i,c]),j=null==(t=i.statistics)?void 0:t.rating,b=1;void 0===j&&i.avgRating&&(j=i.avgRating,b=2);let _=(0,M.z)(i.player,{short:(0,V.kx)(i,h)}),k=(0,V.sP)(_,i.captain);return(0,s.jsxs)(R,{onClick:u,player:i.player,sportSlug:l.QCR.Rugby,children:[y&&(0,s.jsx)(A.ue7,{w:16,h:16,style:{color:(0,C.As)(null==(a=i.statistics)?void 0:a.rating),left:"calc(50% - 8px)"},position:"absolute",top:"-lg"}),(0,s.jsx)(n._V,{w:"28px",h:"32px",src:d,alt:""}),(0,s.jsx)(n.EY,{position:"absolute",top:"3px",left:"calc(50% - 12px)",align:"center",w:"xl",font:"table.large",fontSize:i.jerseyNumber&&i.jerseyNumber.length>=3?12:void 0,letterSpacing:"-0.2px",mt:i.jerseyNumber&&i.jerseyNumber.length>=3?"xxs":void 0,color:p?"#".concat(p.fancyNumber):"onSurface.nLv1",children:i.jerseyNumber}),x.substitutionIn&&(0,s.jsx)(n.az,{position:"absolute",top:"0",left:"-2",children:(0,s.jsx)(H.FU,{isInjury:x.substitutionIn.isInjury})}),!x.substitutionIn&&x.substitutionOut&&(0,s.jsx)(n.az,{position:"absolute",top:"0",left:"-2",children:(0,s.jsx)(H.FU,{isInjury:x.substitutionOut.isInjury})}),f&&(0,s.jsx)(n.az,{position:"absolute",top:"lg",left:-2,children:(0,s.jsx)(S.A,{rating:j,format:"box",size:"sm",decimalPoints:b})}),(0,s.jsx)(n.EY,{align:"center",lineHeight:1,font:"assistive.default",color:"onSurface.nLv1",pt:"xs",title:k,w:m,style:{hyphens:"auto"},children:k}),g&&(null==(r=x.substitutionIn)?void 0:r.forPlayer)&&(0,s.jsxs)(n.EY,{align:"center",lineHeight:1,font:"table.small",color:"onSurface.nLv3",title:x.substitutionIn.forPlayer,children:[(0,s.jsx)(P.A,{id:"injury_status_out"}),": ",x.substitutionIn.forPlayer]}),(0,s.jsx)(n.az,{position:"absolute",top:"0",right:"-2",children:(0,s.jsx)(H.AG,{...x})}),v&&(0,s.jsx)(n.az,{position:"absolute",top:"lg",right:"-2",children:(0,s.jsx)(H.X0,{...x})})]})}let z=e=>{let{type:t="fifteens",players:a,incidents:l,jersey:r,jerseyNumberColor:o,onPlayerClick:i}=e,c="fifteens"===t?y.vD:y.Xj,u="fifteens"===t?y.Cy:y.uU;return(0,s.jsx)(k,{type:t,children:a.map(e=>e.shirtNumber?(0,s.jsx)(n.so,{position:"relative",justify:"center",align:"center",style:c[e.shirtNumber],children:(0,s.jsx)(n.az,{position:"absolute",style:u[e.shirtNumber],children:(0,s.jsx)(T,{player:e,incidents:l,jersey:r,color:o,nameWidth:64,showSubstitutionNames:!1,showGoalScorer:!1,onClick:t=>{var a;return a=e.player,void(i&&(t.preventDefault(),i(a)))}})})},e.player.id):null)})},G=()=>{let{event:e,team:t,incidents:a,manager:l,jersey:r,startingPlayers:o,jerseyNumberColor:i,substitutePlayers:c}=(0,f.rR)(),{openEventPlayerStatistics:u}=(0,h.d)();return e.isEditor?(0,s.jsxs)(n.so,{direction:"column",gap:"md",children:[(0,s.jsx)(v.gT,{team:t,sport:(0,p.c5)(e),children:(0,s.jsxs)(n.so,{gap:"lg",align:"center",children:[(0,s.jsx)(d.p,{size:"3xl",id:t.id,name:t.name}),(0,s.jsx)(n.EY,{font:"display.large",children:(0,s.jsx)(m.c,{entity:t})})]})}),(0,s.jsx)(n.az,{br:"sm",overflow:"hidden",children:(0,s.jsx)(z,{type:e.tournament.category.sportVariant===y.WM?"sevens":"fifteens",players:o,incidents:a,jersey:r,jerseyNumberColor:i,onPlayerClick:e.hasEventPlayerStatistics?t=>u({event:e,player:t},g._l.Lineups):void 0})}),l&&(0,s.jsx)(x.A,{manager:l,incidents:null==a?void 0:a.filter(e=>e.manager),isBorderHidden:!0})]}):(0,s.jsxs)(n.so,{direction:"column",children:[(0,s.jsx)(v.gT,{team:t,sport:(0,p.c5)(e),children:(0,s.jsxs)(n.so,{gap:"lg",align:"center",px:"lg",py:"sm",hoverBg:"surface.s2",children:[(0,s.jsx)(d.p,{size:"3xl",id:t.id,name:t.name}),(0,s.jsx)(n.EY,{font:"display.large",children:(0,s.jsx)(m.c,{entity:t})})]})}),(0,s.jsx)(j.A,{manager:l,hideTeamHeader:!0,team:t,event:e,players:[...o,...c],incidents:a})]})};var O=a(56300);let I=()=>{let{event:e,team:t,substitutePlayers:a,incidents:l}=(0,f.rR)();return(0,s.jsx)(j.A,{hideTeamHeader:!0,event:e,team:t,players:a,incidents:l})},L=()=>{let{event:e}=(0,o.useContext)(c.y$),{lineups:t}=(0,f.Ir)();return e.isEditor&&(0,V.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)(P.A,{id:"substitutions"})}),(0,s.jsxs)(n.so,{children:[(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.N,{value:"left",children:(0,s.jsx)(I,{})})}),(0,s.jsx)(u.cG,{orientation:"vertical",mx:"md"}),(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.N,{value:"right",children:(0,s.jsx)(I,{})})})]})]}):null},N=()=>(0,s.jsxs)(n.az,{py:"sm",children:[(0,s.jsxs)(n.so,{children:[(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.N,{value:"left",children:(0,s.jsx)(G,{})})}),(0,s.jsx)(u.cG,{orientation:"vertical",mx:"md"}),(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.N,{value:"right",children:(0,s.jsx)(G,{})})})]}),(0,s.jsx)(L,{})]}),B=()=>{let{openEventPlayerStatistics:e}=(0,h.d)(),{event:t,team:a,manager:l,incidents:r,jersey:o,startingPlayers:i,substitutePlayers:c,jerseyNumberColor:u}=(0,f.rR)();return t.isEditor?(0,s.jsxs)(n.az,{children:[(0,s.jsx)(z,{type:t.tournament.category.sportVariant===y.WM?"sevens":"fifteens",players:i,incidents:r,jersey:o,jerseyNumberColor:u,onPlayerClick:t.hasEventPlayerStatistics?a=>e({event:t,player:a},g._l.Lineups):void 0}),(0,s.jsxs)(n.so,{direction:"column",py:"md",children:[l&&(0,s.jsx)(n.az,{px:"sm",children:(0,s.jsx)(x.A,{manager:l,incidents:null==r?void 0:r.filter(e=>e.manager),isBorderHidden:!0})}),c.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.EY,{font:"display.medium",align:"center",pt:"xl",children:(0,s.jsx)(P.A,{id:"substitutions"})}),(0,s.jsx)(j.A,{hideTeamHeader:!0,team:a,event:t,players:c,incidents:r})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[l&&(0,s.jsx)(n.az,{px:"sm",py:"sm",children:(0,s.jsx)(x.A,{manager:l,incidents:null==r?void 0:r.filter(e=>e.manager),isBorderHidden:!0})}),(0,s.jsx)(j.A,{hideTeamHeader:!0,team:a,event:t,players:[...i,...c],incidents:r})]})},E=()=>{let{team:e}=(0,f.rR)();return(0,s.jsx)(d.p,{size:"xl",id:e.id,name:e.name})},F=()=>(0,s.jsx)(n.az,{p:"sm",children:(0,s.jsx)(i.Zp,{children:(0,s.jsxs)(r.tU,{variant:"secondary",initialValue:l.cxP.Left,fullWidthTabs:!0,children:[(0,s.jsx)(n.so,{p:"sm",children:(0,s.jsxs)(r.tU.List,{children:[(0,s.jsx)(r.tU.Tab,{tabKey:l.cxP.Left,children:(0,s.jsx)(O.N,{value:"left",children:(0,s.jsx)(E,{})})}),(0,s.jsx)(n.az,{w:"lg"}),(0,s.jsx)(r.tU.Tab,{tabKey:l.cxP.Right,children:(0,s.jsx)(O.N,{value:"right",children:(0,s.jsx)(E,{})})})]})}),(0,s.jsx)(r.tU.Panel,{tabKey:l.cxP.Left,children:(0,s.jsx)(O.N,{value:"left",children:(0,s.jsx)(B,{})})}),(0,s.jsx)(r.tU.Panel,{tabKey:l.cxP.Right,children:(0,s.jsx)(O.N,{value:"right",children:(0,s.jsx)(B,{})})})]})})});function K(){let{event:e,location:t}=(0,o.useContext)(c.y$),{isDesktop:a}=(0,r.$c)(),u=a&&t===c.cb.EventPage,{lineups:d,error:p}=(0,f.Ir)({jerseyStyle:"fancy"});return p?null:u?(0,s.jsxs)(i.Zp,{variant:"mobile-only",children:[(0,s.jsx)(i.Zp.Header,{titleId:"players",values:{gender:e.gender||l.YT8.Male}}),d?(0,s.jsx)(N,{}):(0,s.jsx)(n.az,{h:900})]}):d?(0,s.jsx)(F,{}):(0,s.jsx)(n.az,{h:900})}},16356:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"16",heightAttr:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{d:"M4.75 5.44h.75V1.92h.75V7L7 5.5l.75.5L6.5 9l-1 1v5H1.75v-5L1 8.065V2.327h.75V5.44h.75V1.5l.75-.022V5.44H4V1h.75zm7.25 0h.75V1.478l.75.022v3.94h.75V2.327H15v5.738L14.25 10v5H10.5v-5l-1-1-1.25-3L9 5.5 9.75 7V1.92h.75v3.52h.75V1H12z"})}))}a(62042),a(20325),a(1157)},16805:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(51569),r=a(20325),n=a(90248),o=a(52466);function i(e){let{messageId:t,isInverted:a}=e;return(0,s.jsxs)(r.so,{direction:a?"row-reverse":"row",gap:"sm",align:"center",h:"5xl",maxW:"100%",px:"sm",children:[(0,s.jsx)(o.G_L,{width:24,height:24,color:"neutrals.nLv3",style:{display:"block",minWidth:"24px"}}),(0,s.jsx)(l.EY,{textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:(0,s.jsx)(n.A,{id:t})})]})}},17609:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.356M4 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.1zm8.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.1zm.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.1zm2.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.1z"})}))}a(62042),a(20325),a(1157)},18561:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M21 2H2v9h2V4h16v7h2V2zm-9 20a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5"})}))}a(62042),a(20325),a(1157)},18974:(e,t,a)=>{a.d(t,{n:()=>s.A});var s=a(26792)},24854:(e,t,a)=>{a.d(t,{M:()=>h});var s=a(6029),l=a(51569),r=a(55729),n=a(947),o=a(18970),i=a(9835),c=a(20325),u=a(52466);let d={card:{yellow:e=>(0,s.jsx)(u.NcS,{...e,icon:"card-yellow",color:"rating.s65"}),yellowRed:e=>(0,s.jsx)(u.NcS,{...e,icon:"card-double-yellow"}),red:e=>(0,s.jsx)(u.NcS,{...e,icon:"card-red",color:"status.error.default"})},goal:{football:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-ball",color:"neutrals.nLv1"}),penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-penalty",color:"neutrals.nLv1"}),ownGoal:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-own-goal",color:"status.error.default"}),assist:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-assist",color:"neutrals.nLv1"})},futsal:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-ball",color:"neutrals.nLv1"}),penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-penalty",color:"neutrals.nLv1"}),ownGoal:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-own-goal",color:"status.error.default"}),accumulatedPenalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"accumulated-penalty",color:"neutrals.nLv1"})},minifootball:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-ball",color:"neutrals.nLv1"}),penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-penalty",color:"neutrals.nLv1"}),accumulatedPenalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"accumulated-penalty",color:"neutrals.nLv1"}),ownGoal:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-own-goal",color:"status.error.default"})},volleyball:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"volleyball-spike",color:"neutrals.nLv1"}),spike:e=>(0,s.jsx)(u.NcS,{...e,icon:"volleyball-spike",color:"neutrals.nLv1"}),opponentError:e=>(0,s.jsx)(u.NcS,{...e,icon:"volleyball-opponent-error",color:"neutrals.nLv1"}),ace:e=>(0,s.jsx)(u.NcS,{...e,icon:"volleyball-ace",color:"neutrals.nLv1"}),block:e=>(0,s.jsx)(u.NcS,{...e,icon:"volleyball-block",color:"neutrals.nLv1"})},basketball:{onePoint:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"1"})}),twoPoints:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"2"})}),threePoints:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"3"})})},bandy:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"bandy-goal",color:"neutrals.nLv1"})},floorball:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"floorball-goal",color:"neutrals.nLv1"})},"ice-hockey":{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-puck",color:"neutrals.nLv1"}),emptynet:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-puck",color:"neutrals.nLv1"}),penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-penalty-goal",color:"neutrals.nLv1"}),ownGoal:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-own-goal",color:"status.error.default"}),powerplay:e=>(0,s.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-puck",color:"neutrals.nLv1"}),(0,s.jsx)(c.so,{bg:"neutrals.nLv1",w:"lg",h:"md",justify:"center",alignItems:"center",position:"absolute",bottom:"2xs",borderTop:"1px solid",borderColor:"surface.s1",br:"2xs",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"PP"})})]}),shorthanded:e=>(0,s.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-puck",color:"neutrals.nLv1"}),(0,s.jsx)(c.so,{bg:"neutrals.nLv1",w:"lg",h:"md",justify:"center",alignItems:"center",position:"absolute",bottom:"2xs",borderTop:"1px solid",borderColor:"surface.s1",br:"2xs",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"SH"})})]})},badminton:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"badminton",color:"neutrals.nLv1"})},"aussie-rules":{goal:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"6"})}),behind:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"1"})})},"table-tennis":{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"table-tennis",color:"neutrals.nLv1"})},waterpolo:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"water-polo",color:"neutrals.nLv1"}),penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"water-polo-penalty",color:"neutrals.nLv1"})},"american-football":{touchdown:e=>(0,s.jsx)(u.NcS,{...e,icon:"af-touchdown",color:"neutrals.nLv1"}),fieldGoal:e=>(0,s.jsx)(u.NcS,{...e,icon:"af-field-goal",color:"neutrals.nLv1"}),safety:e=>(0,s.jsx)(u.NcS,{...e,icon:"af-safety",color:"status.success.default"}),extraPoint:e=>(0,s.jsx)(u.NcS,{...e,icon:"af-extra-point",color:"neutrals.nLv1"}),rouge:e=>(0,s.jsx)(u.NcS,{...e,icon:"af-rouge",color:"neutrals.nLv1"}),twoPointConversion:e=>(0,s.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,s.jsx)(u.NcS,{...e,icon:"af-touchdown",color:"neutrals.nLv1"}),(0,s.jsx)(c.so,{bg:"neutrals.nLv1",w:"lg",h:"md",justify:"center",alignItems:"center",position:"absolute",bottom:"[1px]",br:"2xs",borderTop:"1px solid",borderColor:"surface.s1",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"2"})})]})},rugby:{try:e=>(0,s.jsx)(u.NcS,{...e,icon:"rugby-try",color:"neutrals.nLv1"}),penaltyTry:e=>(0,s.jsx)(u.NcS,{...e,icon:"rugby-penalty-try",color:"neutrals.nLv1"}),onePoints:e=>(0,s.jsx)(u.NcS,{...e,icon:"rugby-one-point",color:"neutrals.nLv1"}),twoPoints:e=>(0,s.jsx)(u.NcS,{...e,icon:"rugby-two-points",color:"neutrals.nLv1"}),threePoints:e=>(0,s.jsx)(u.NcS,{...e,icon:"rugby-three-points",color:"neutrals.nLv1"})},handball:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"handball-goal",color:"neutrals.nLv1"}),penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"handball-penalty",color:"neutrals.nLv1"})},regular:()=>null},substitution:{injury:e=>(0,s.jsx)(u.NcS,{...e,icon:"substitution-injured",color:"primary.default"}),regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"substitution",color:"primary.default"})},penaltyShootout:{waterpolo:{scored:e=>(0,s.jsx)(u.NcS,{...e,icon:"water-polo-penalty",color:"neutrals.nLv1"})},handball:{scored:e=>(0,s.jsx)(u.NcS,{...e,icon:"handball-penalty",color:"neutrals.nLv1"})},taker:e=>(0,s.jsx)(u.NcS,{...e,icon:"penalty-taker",color:"neutrals.nLv1"}),scored:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-penalty",color:"neutrals.nLv1"}),missed:e=>(0,s.jsx)(u.NcS,{...e,icon:"penalty-missed",color:"status.error.default"})},inGamePenalty:{taker:e=>(0,s.jsx)(u.NcS,{...e,icon:"penalty-taker",color:"neutrals.nLv1"}),scored:e=>(0,s.jsx)(u.NcS,{...e,icon:"football-penalty",color:"neutrals.nLv1"}),missed:e=>(0,s.jsx)(u.NcS,{...e,icon:"penalty-missed",color:"status.error.default"})},penaltyAwarded:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"penalty-taker",color:"neutrals.nLv1",isRtlPrevented:!0})},varDecision:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"primary.default",isRtlPrevented:!0}),vip_for_penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"}),vip_for_goal:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"}),vip_for_red_card:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"}),vip_for_no_goal:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"}),vip_for_no_penalty:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"}),vip_for_no_red_card:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"}),vip_for_unknown:e=>(0,s.jsx)(u.NcS,{...e,icon:"var",color:"status.live"})},suspension:{"ice-hockey":{tenMinutes:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-penalty",color:"status.error.default"}),twoMinutes:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-penalty",color:"status.error.default"}),fiveMinutes:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-penalty",color:"status.error.default"}),tensMinutes:e=>(0,s.jsx)(u.NcS,{...e,icon:"ice-hockey-penalty",color:"status.error.default"})},minifootball:{regular:e=>(0,s.jsx)(u.NcS,{...e,icon:"2-min-suspension",color:"status.error.default"})},twoMinutes:e=>(0,s.jsx)(u.NcS,{...e,icon:"2-min-suspension",color:"status.error.default"})}},p=e=>{var t,a,r,o,c,u,p;let{incidentType:h,incidentClass:g,sport:v,svgProps:m,isLeft:f=!1}=e,y=(0,n.A)(),x=v?(null==(a=d[h])||null==(t=a[v])?void 0:t.regular)||(null==(r=d[h])?void 0:r.regular):null==(o=d[h])?void 0:o.regular,{textDirection:j}=(0,l.$c)();v&&g&&(x=(null==(u=d[h])||null==(c=u[v])?void 0:c[g])||(null==(p=d[h])?void 0:p[g])||d[h].regular);let b="substitution"===h,_="substitution"===h&&"injury"===g,k="goal"===h&&"ownGoal"===g;if(!x)return(0,s.jsx)("div",{style:{width:16}});{let e=(0,i.q6)(h,g,v);return(0,s.jsx)(x,{width:16,height:16,title:e?y.formatMessage({id:e}):void 0,style:{display:"inline-block",transform:((e,t,a,s,l)=>{if(e){if(s)return l?"scale(1,1)":"rotateY(180deg)";if(l&&t&&!a)return"rotate(180deg)"}else{if(l&&t&&!a)return"scale(1,1)";if(a)return l?"scale(1,1)":"rotateY(180deg)";if(t)return l?"rotateY(180deg)":"rotate(180deg)"}})(f,b,_,k,"rtl"===j)},...m})}},h=e=>{let t=(0,r.useContext)(o.Ws);return(0,s.jsx)(p,{...e,sport:e.sport||t})}},25351:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M19 12v5l-2 2H7v3H6l-4-4 4-4h1v3h10v-5zM18 2l4 4-4 4h-1V7H7v5H5V7l2-2h10V2z"})}))}a(62042),a(20325),a(1157)},26435:(e,t,a)=>{a.d(t,{$i:()=>f,C2:()=>m,Kk:()=>v,Rs:()=>h,Tw:()=>y,Ur:()=>d,dw:()=>j,iw:()=>x});var s=a(6029),l=a(46787),r=a(95816),n=a.n(r),o=a(88505),i=a(89827),c=a(26542),u=a(67087);let d=e=>{let{event:t}=e,{leftTeam:a,rightTeam:r,leftScore:n,rightScore:i}=(0,u.mJ)(t.id,{event:t}),c=(0,u.g3)(t);return a&&r?t.status.type===l.XUj.NotStarted?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Rm,{team:a,short:!0})," "," ".concat(c?"@":"-"," "),(0,s.jsx)(o.Rm,{team:r,short:!0})]}):c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Rm,{team:a,short:!0})," @ ",(0,s.jsx)(o.Rm,{team:r,short:!0}),", ".concat(n.display," - ").concat(i.display)]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Rm,{team:a,short:!0})," ".concat(n.display," - ").concat(i.display," "),(0,s.jsx)(o.Rm,{team:r,short:!0})]}):null},p=(e,t)=>"minutesPlayed"===t.value?"".concat(e,"'"):["metersCoveredWalkingAndJoggingPct","metersCoveredRunningPct","metersCoveredHighSpeedRunningPct","metersCoveredSprintingPct"].includes(t.value)?"".concat(e,"%"):["kilometersCovered","metersCoveredWalkingAndJoggingKm","metersCoveredRunningKm","metersCoveredHighSpeedRunningKm","metersCoveredSprintingKm"].includes(t.value)?"".concat(e," km"):"topSpeed"===t.value?"".concat(e," km/h"):e.toString();function h(e,t){if(t.value&&!e[t.value]&&t.hideIfNone)return t.fallbackValue||void 0;if(t.madesValue&&t.attemptsValue){var a;let s=Number(e[t.madesValue])||0,l=Number(e[t.attemptsValue])||0,r=0===l?"-":(0,i.M)(s/l*100,null!=(a=t.percentageDecimals)?a:0);return void 0!==t.percentageDecimals?"-"===r?"0":"".concat(r):t.percentageOnly?"-"===r?"0%":"".concat(r,"%"):t.hidePercentage||0===l?0===l&&s>0?s.toString():"".concat(p(s,t),"/").concat(l):t.hideAttempts?"".concat(p(s,t)," (").concat(r,"%)"):"".concat(p(s,t),"/").concat(l," (").concat(r,"%)")}if(t.secondaryValue){let a=Number(e[t.value]||0),s=Number(e[t.secondaryValue]||0);return"".concat(p(a,t)," (").concat(p(s,{...t,value:t.secondaryValue}),")")}if(t.textualDescription){let a="";for(let s of Object.keys(t.textualDescription)){let l=e[t.value][s];l>0&&(a=a.concat("".concat(t.textualDescription[s],": ").concat(l,"\n")))}return a.length?a:"-"}if(t.replacementValue&&"number"==typeof e[t.replacementValue])return e[t.replacementValue].toString();if(t.value){let a=e[t.value];return a?"string"!=typeof a?t.convertFractionToPct?(0,i.M)(100*a,1):a%1!=0&&["expectedGoals","expectedAssists","goalsPrevented","expectedGoalsOnTarget"].includes(t.value)?p(Number((0,i.M)(a,2)),t):a%1!=0?p(Number((0,i.M)(a,1)),t):p(Number(a),t):a:"0"}}function g(e,t){return 0===t?0:e/t}function v(e){let{passingCompletions:t,passingAttempts:a,passingYards:s,passingTouchdowns:l,passingInterceptions:r}=e;return void 0!==t&&void 0!==a&&void 0!==s&&void 0!==l&&void 0!==r}function m(e){let{passingCompletions:t,passingAttempts:a,passingYards:s,passingTouchdowns:l,passingInterceptions:r}=e,n=(g(null!=t?t:0,null!=a?a:0)-.3)*5;n=Math.max(n=Math.min(n,2.375),0);let o=(g(null!=s?s:0,null!=a?a:0)-3)*.25;o=Math.max(o=Math.min(o,2.375),0);let i=20*g(null!=l?l:0,null!=a?a:0);i=Math.max(i=Math.min(i,2.375),0);let c=2.375-25*g(null!=r?r:0,null!=a?a:0);return(n+o+i+(c=Math.max(c=Math.min(c,2.375),0)))/6*100}function f(e){let t={...e,minutesPlayed:e.minutesPlayed||e.secondsPlayed?e.minutesPlayed?e.minutesPlayed:Math.round(e.secondsPlayed/60):0};v(e)&&(t.passingRating=m(e)),e.secondsPlayed&&(t.timeOnIce="".concat(Math.floor(e.secondsPlayed/60),":").concat("0".concat(e.secondsPlayed%60).slice(-2))),"number"==typeof e.metersCoveredWalkingKm&&"number"==typeof e.metersCoveredJoggingKm&&(t.metersCoveredWalkingAndJoggingKm=Number((0,i.M)(e.metersCoveredWalkingKm+e.metersCoveredJoggingKm,2)),t.metersCoveredWalkingAndJoggingPct=Number((0,i.M)(t.metersCoveredWalkingAndJoggingKm/e.kilometersCovered*100,1))),"number"==typeof e.metersCoveredRunningKm&&(t.metersCoveredRunningPct=Number((0,i.M)(e.metersCoveredRunningKm/e.kilometersCovered*100,1))),"number"==typeof e.metersCoveredHighSpeedRunningKm&&(t.metersCoveredHighSpeedRunningPct=Number((0,i.M)(e.metersCoveredHighSpeedRunningKm/e.kilometersCovered*100,1))),"number"==typeof e.metersCoveredSprintingKm&&(t.metersCoveredSprintingPct=Number((0,i.M)(e.metersCoveredSprintingKm/e.kilometersCovered*100,1))),void 0!==e.receptionPositivity&&(t.receptionPositivity="".concat((0,i.M)(100*e.receptionPositivity,1))),void 0!==e.receptionPerf&&(t.receptionPerf="".concat((0,i.M)(100*e.receptionPerf,1)));let a=(e.duelWon||0)+(e.duelLost||0);return t.totalAerialDuels=(e.aerialWon||0)+(e.aerialLost||0),t.totalGroundDuels=a-t.totalAerialDuels,t.groundWon=(e.duelWon||0)-(e.aerialWon||0),t}function y(e,t,a,s,l){let r=e.compareValue&&(void 0!==t[e.compareValue]||void 0!==a[e.compareValue])?e.compareValue:e.replacementValue||e.value,n=null==s?void 0:s[r],o=null==l?void 0:l[r];return(n===o&&(r=e.compareSecondValue&&(void 0!==t[e.compareSecondValue]||void 0!==a[e.compareSecondValue])?e.compareSecondValue:e.replacementValue||e.value,n=e.reverseSecondCompare?null==l?void 0:l[r]:null==s?void 0:s[r],o=e.reverseSecondCompare?null==s?void 0:s[r]:null==l?void 0:l[r]),void 0===n&&void 0!==o)?2:void 0===o&&void 0!==n?1:n===o?0:(n||0)>(o||0)?1:2}function x(e,t,a){return a!==l.QCR.Football?[(null==t?void 0:t.filter(t=>t&&t.player.id!==e).map(e=>{var t;return{player:e.player,rating:null==(t=e.statistics)?void 0:t.rating,statistics:e.statistics,position:e.position}}))||[],[]]:t?t.reduce((t,a)=>{let[s,l]=t;if(!n()(a.statistics)&&a.player.id!==e){var r;let e={player:a.player,rating:null==(r=a.statistics)?void 0:r.rating,statistics:a.statistics,position:a.position};a.substitute?l.push(e):s.push(e)}return[s,l]},[[],[]]):[[],[]]}function j(e,t,a){return!a||!!c.qT.includes(e)&&(Object.values(a).filter(e=>!!e).length?t.reduce((e,t)=>{let s=h(a,t);return e&&("0"===s||"0/0"===s||"0 (0)"===s||!s)},!0):!t.reduce((e,t)=>e||Object.keys(a).includes(t.value),!1))}},26542:(e,t,a)=>{a.d(t,{bU:()=>t3,qT:()=>t5,Bx:()=>t4,mR:()=>t7,ji:()=>t6,nm:()=>t9});var s=a(46787);let l={value:"passing",madesValue:"passingCompletions",attemptsValue:"passingAttempts",short:"C/A",sortKey:"passingCompletions",translationKey:"legend_am_football_completions_attempts",wideBoxScore:!0},r={value:"passingYards",short:"YDS"},n={value:"passingNetYards"},o={value:"passingTouchdowns",short:"TD"},i={value:"passingInterceptions",short:"INT"},c={value:"passingYardsPerAttempt",short:"AVG"},u={value:"passingSacked",secondaryValue:"passingSackYards"},d={value:"passingRating",short:"RTG"},p={value:"passingAirYards",short:"AIR"},h={value:"passingDroppedPasses",short:"DRO"},g={value:"passingFirstDowns",short:"1DN"},v={value:"rushingAttempts",short:"CAR"},m={value:"rushingYards",short:"YDS"},f={value:"rushingTouchdowns",short:"TD"},y={value:"rushingYardsPerAttempt",short:"AVG"},x={value:"rushingLongest",short:"LNG"},j={value:"rushingFirstDowns",short:"1DN"},b={value:"rushingRedZoneAttempts",short:"RZA"},_={value:"fumbleFumbles",short:"FUM"},k={value:"fumbleLost",short:"LST"},S={value:"fumbleRecovery",short:"REC"},w={value:"defensiveForcedFumbles",short:"FF"},C={value:"fumbleTouchdownReturns",short:"FTD"},P={value:"fumbleOpponentFumbleRecovery",short:"ROP"},A={value:"fumbleOwnFumbleRecovery",short:"ROW"},M={value:"fumbleOutOfBounds",short:"OOB"},V={value:"receivingReceptions",short:"REC"},H={value:"receivingTargets",short:"TRG"},R={value:"receivingYards",short:"YDS"},T={value:"receivingTouchdowns",short:"TD"},z={value:"receivingYardsPerReception",short:"AVG"},G={value:"receivingLongest",short:"LNG"},O={value:"receivingYardsAfterCatch",short:"YAC"},I={value:"receivingDroppedPasses",short:"DRO"},L={value:"receivingRedZoneTargets",short:"RZT"},N={value:"defensiveCombineTackles",short:"TACK"},B={value:"defensiveAssistTackles",short:"AST"},E={value:"defensiveSacks",short:"SACK"},F={value:"defensivePassesDefensed",short:"PD"},K={value:"defensiveInterceptions",short:"INT"},D={value:"defensiveInterceptionsTouchdowns",short:"TD"},Y={value:"defensiveInterceptionsYards",short:"YDS"},W={value:"defensiveBattedPasses",short:"BAT"},Q={value:"defensiveDefensiveTargets",short:"TGT"},Z={value:"defensiveTacklesForLostYards",short:"TFL"},U={value:"interceptionReturnsAverageYards",short:"AVG"},$={value:"interceptionReturnsLongest",short:"LNG"},X={value:"kickReturnsTotal",short:"NUM"},q={value:"kickReturnsYards",short:"YDS"},J={value:"kickReturnsAverageYards",short:"AVG"},ee={value:"kickReturnsTouchdowns",short:"TD"},et={value:"kickReturnsLong",short:"LNG"},ea={value:"kickReturnsFairCatches",short:"FC"},es={value:"puntingTotal",short:"NUM"},el={value:"puntingYards",short:"YDS"},er={value:"puntingYardsPerPuntAvg",short:"AVG"},en={value:"puntingInside20",short:"IN20"},eo={value:"puntingLongest",short:"LNG"},ei={value:"puntingAverageHangTime",short:"AHT"},ec={value:"puntingHangTime",short:"HT"},eu={value:"kickingFg",madesValue:"kickingFgMade",attemptsValue:"kickingFgAttempts",short:"FG",sortKey:"kickingFgMade"},ed={value:"kickingExtraPoints",madesValue:"kickingExtraMade",attemptsValue:"kickingExtraAttempts",short:"XP",sortKey:"kickingExtraMade"},ep={value:"kickingFgLong",short:"LNG"},eh={value:"kickingTotalPoints",short:"PTS"},eg={value:"kickoffEndZone",short:"TB"},ev={value:"kickoffOutOfBounds",short:"OOB"},em={value:"kickoffInside20",short:"IN20",translationKey:"legend_am_foot_kicks_inside_twenty"},ef=[v,m,f,x,y,{value:"rushingYardsAfterContact"},j,b],ey=[_,k,S,w,C,M,A,P],ex=[V,H,R,T,G,z,O,{value:"receivingFirstDowns"},I,L],ej=[N,B,E,F,K,D,Y,W,Q,Z],eb=[X,q,ee,J,et,ea],e_=[es,el,{value:"puntingNetYards"},eo,{value:"puntingBlocked"},{value:"puntingTouchbacks"},en,er,ei,ec],ek=[eu,ed,{value:"kickingFgBlocked"},ep,eh,eg,ev,em],eS=[{value:"puntReturnsTotal",short:"NUM"},{value:"puntReturnsYards",short:"YDS"},{value:"puntReturnsAverageYards",short:"AVG"},{value:"puntReturnsTouchdowns",short:"TD"},{value:"puntReturnsLong",short:"LNG"},{value:"puntReturnsFairCatches",short:"FC"}],ew=[K,Y,D,U,$],eC={passingGroup:[l,r,n,{value:"passingLongest"},o,i,c,u,p,h,g],rushingGroup:ef,receivingGroup:ex,defensiveGroup:ej,interceptionsGroup:ew,fumblesGroup:ey,kickingGroup:ek,puntingGroup:e_,kickReturnsGroup:eb,puntReturnsGroup:eS},eP={passingGroup:[l,r,n,o,i,c,u,d,p,h,g],rushingGroup:ef,receivingGroup:ex,defensiveGroup:ej,interceptionsGroup:ew,fumblesGroup:ey,kickingGroup:ek,puntingGroup:e_,kickReturnsGroup:eb,puntReturnsGroup:eS},eA={pitchingGroup:[{value:"pitchingEarnedRunsAverage"},{value:"pitchingInningsPitched"},{value:"pitchingHits"},{value:"pitchingRuns"},{value:"pitchingEarnedRuns"},{value:"pitchingHomeRuns"},{value:"pitchingPitchesThrown"},{value:"pitchingBaseOnBalls"},{value:"pitchingStrikeOuts"},{value:"pitchingBattersFaced"},{value:"pitchingOuts"},{value:"pitchingBalls"},{value:"pitchingStrikes"},{value:"pitchingNote"}],battingGroup:[{value:"battingAtBats"},{value:"battingRuns"},{value:"battingHits"},{value:"battingDoubles"},{value:"battingTriples"},{value:"battingHomeRuns"},{value:"battingRbi"},{value:"battingBaseOnBalls"},{value:"battingStrikeOuts"},{value:"battingStolenBases"},{value:"battingCaughtStealing"},{value:"battingHitByPitch"},{value:"battingLeftOnBase"},{value:"battingSacBunts"},{value:"battingSacFlies"},{value:"battingAverage"},{value:"battingNote"},{value:"battingFlyOuts"},{value:"battingGroundOuts"}],fieldingGroup:[{value:"fieldingAssists"},{value:"fieldingPutOuts"},{value:"fieldingErrors"}]},eM={value:"minutesPlayed",compareValue:"secondsPlayed",short:"MIN"},eV={value:"position"},eH={value:"points",short:"PTS"},eR={value:"freeThrows",madesValue:"freeThrowsMade",attemptsValue:"freeThrowAttempts",compareValue:"freeThrowsMade",compareSecondValue:"freeThrowAttempts",reverseSecondCompare:!0},eT={...eR,sortKey:"freeThrowsMade"},ez={...eT,hidePercentage:!0,short:"FT",wideBoxScore:!0},eG={...eT,percentageOnly:!0,short:"FT%",wideBoxScore:!0,translationKey:"freeThrowsPercentage"},eO={value:"twoPt",madesValue:"twoPointsMade",attemptsValue:"twoPointAttempts",compareValue:"twoPointsMade",compareSecondValue:"twoPointAttempts",reverseSecondCompare:!0},eI={...eO,sortKey:"twoPointsMade"},eL={value:"threePt",madesValue:"threePointsMade",attemptsValue:"threePointAttempts",compareValue:"threePointsMade",compareSecondValue:"threePointAttempts",reverseSecondCompare:!0},eN={...eL,sortKey:"threePointsMade"},eB={...eN,hidePercentage:!0,short:"3P",wideBoxScore:!0},eE={...eN,percentageOnly:!0,short:"3P%",wideBoxScore:!0,translationKey:"legend_bball_three_points_pct"},eF={value:"fieldGoals",madesValue:"fieldGoalsMade",attemptsValue:"fieldGoalAttempts",compareValue:"fieldGoalsMade",compareSecondValue:"fieldGoalAttempts",reverseSecondCompare:!0},eK={...eF,sortKey:"fieldGoalsMade"},eD={...eK,hidePercentage:!0,short:"FG",wideBoxScore:!0},eY={...eK,translationKey:"fieldGoalsPercentage",percentageOnly:!0,short:"FG%",wideBoxScore:!0},eW={value:"rebounds",short:"REB"},eQ={value:"defensiveRebounds",short:"DREB"},eZ={value:"offensiveRebounds",short:"OREB"},eU={value:"assists",short:"AST"},e$={value:"turnovers",short:"TOV"},eX={value:"steals",short:"STL"},eq={value:"blocks",short:"BLK"},eJ={value:"personalFouls",short:"PF"},e0={value:"plusMinus",hideIfNone:!0,fallbackValue:"0",short:"+/-",translationKey:"legend_bball_plus_minus"},e1={value:"pir",hideIfNone:!0,short:"PIR",translationKey:"legend_bball_performance_index_rating"},e2={summaryGroup:[eM],pointsGroup:[eH,eR,eO,eL,eF],reboundsGroup:[eW,eQ,eZ],otherGroup:[eU,e$,eX,eq,eJ,e0,e1]},e5={DEFAULT_GROUP_NAME:[eH,eW,eU,e$,eX,eq]},e4={DEFAULT_GROUP_NAME:[eM,eH,eW,eU,eX,eq,eJ,e$,eZ,eQ,eD,eY,ez,eG,eB,eE,e0,e1]},e3={summaryGroup:[eH,eW,eU,eM,eV,{value:"rating",hideIfNone:!0}],pointsGroup:[eH,eT,eI,eN,eK,eV],reboundsGroup:[eW,eQ,eZ,eV],otherGroup:[eU,e$,eX,eq,eJ,eV,{value:"plusMinus",replacementValue:"pir"}]};var e6=a(60926);let e7={value:"goals",short:"GLS"},e9={value:"gkShots",short:"SHT"},e8={value:"goalkeeperEfficiencyPercentage",madesValue:"saves",attemptsValue:"gkShots",percentageOnly:!0,percentageDecimals:1,short:"SV%"},te={...e8,sortKey:"goalkeeperEfficiencyPercentage"},tt={value:"saves",madesValue:"saves",attemptsValue:"gkShots",short:"SAV",compareValue:"saves",compareSecondValue:"gkShots",reverseSecondCompare:!0,wideBoxScore:!0},ta={value:"gk7mSaves",short:"7MS"},ts={value:"minutesPlayed",compareValue:"secondsPlayed",short:"MIN",hideIfNone:!0},tl={value:"gkGoalsConceded",short:"GOC",hideIfNone:!0},tr={value:"assists",short:"AST"},tn={value:"steals",short:"STL"},to={value:"shotAccuracy",madesValue:"goals",attemptsValue:"shotsTaken",percentageOnly:!0,percentageDecimals:0,short:"SH%"},ti={...to,sortKey:"shotAccuracy"},tc={value:"blockedShots",short:"BLK"},tu={value:"twoMinutePenalties",short:"2MP"},td={goalkeepersGroup:[tt,{value:"gk7mSaves",attemptsValue:"gk7mShots",madesValue:"gk7mSaves",compareValue:"gk7mSaves",compareSecondValue:"gk7mShots",reverseSecondCompare:!0},{value:"gk6mSaves",attemptsValue:"gk6mShots",madesValue:"gk6mSaves",compareValue:"gk6mSaves",compareSecondValue:"gk6mShots",reverseSecondCompare:!0},{value:"gkPivotSaves",attemptsValue:"gkPivotShots",madesValue:"gkPivotSaves",compareValue:"gkPivotSaves",compareSecondValue:"gkPivotShots",reverseSecondCompare:!0},{value:"gk9mSaves",madesValue:"gk9mSaves",attemptsValue:"gk9mShots",compareValue:"gk9mSaves",compareSecondValue:"gk9mShots",reverseSecondCompare:!0},{value:"gkBreakthroughSaves",attemptsValue:"gkBreakthroughShots",madesValue:"gkBreakthroughSaves",compareValue:"gkBreakthroughSaves",compareSecondValue:"gkBreakthroughShots",reverseSecondCompare:!0},{value:"gkFastbreakSaves",attemptsValue:"gkFastbreakShots",madesValue:"gkFastbreakSaves",compareValue:"gkFastbreakSaves",compareSecondValue:"gkFastbreakShots",reverseSecondCompare:!0}],playersGroup:[{value:"goals",madesValue:"goals",attemptsValue:"shotsTaken",compareValue:"goals",compareSecondValue:"shotsTaken",reverseSecondCompare:!0},tr,{value:"goals7m",madesValue:"goals7m",attemptsValue:"shots7m",compareValue:"goals7m",compareSecondValue:"shots7m",reverseSecondCompare:!0},{value:"goals6m",madesValue:"goals6m",attemptsValue:"shots6m",compareValue:"goals6m",compareSecondValue:"shots6m",reverseSecondCompare:!0},{value:"goals9m",madesValue:"goals9m",attemptsValue:"shots9m",compareValue:"goals9m",compareSecondValue:"shots9m",reverseSecondCompare:!0},{value:"breakthroughGoals",madesValue:"breakthroughGoals",attemptsValue:"breakthroughShots",compareValue:"breakthroughGoals",compareSecondValue:"breakthroughShots",reverseSecondCompare:!0},{value:"pivotGoals",madesValue:"pivotGoals",attemptsValue:"pivotShots",compareValue:"pivotGoals",compareSecondValue:"pivotShots",reverseSecondCompare:!0},{value:"fastbreakGoals",madesValue:"fastbreakGoals",attemptsValue:"fastbreakShots",compareValue:"fastbreakGoals",compareSecondValue:"fastbreakShots",reverseSecondCompare:!0},tn,tc],otherGroup:[tu,{value:"technicalFaults"},{value:"yellowCards"}]},tp={playersGroup:[e7,to,tr,tn,tc,tu],goalkeepersGroup:[ts,e8,{...tt,hidePercentage:!0},e9,ta,tl]},th={playersGroup:[e7,{value:"shotsTaken"},ti,tr,tn,tc,tu],goalkeepersGroup:[ts,te,{value:"saves"},e9,ta,tl]},tg={value:"goals",short:"GLS"},tv={value:"assists",short:"AST"},tm={value:"position"},tf={value:"timeOnIce",compareValue:"secondsPlayed",hideIfNone:!0,short:"TOI",wideBoxScore:!0},ty={value:"shots",short:"SHT"},tx={value:"powerPlayGoals"},tj={value:"powerPlayAssists"},tb={value:"penaltyMinutes",short:"PIM"},t_={value:"takeaways",short:"TKA"},tk={value:"giveaways",short:"GVA"},tS={value:"hits",short:"HIT"},tw={value:"blocked",short:"BLK"},tC={value:"saves",madesValue:"saves",attemptsValue:"shotsAgainst",short:"SAV",compareValue:"saves",compareSecondValue:"shotsAgainst",reverseSecondCompare:!0},tP={value:"shortHandedSaves",madesValue:"shortHandedSaves",attemptsValue:"shortHandedShotsAgainst",compareValue:"shortHandedShotsSaves",compareSecondValue:"shortHandedShotsAgainst",reverseSecondCompare:!0,short:"SHS"},tA={value:"evenSaves",madesValue:"evenSaves",attemptsValue:"evenShotsAgainst",compareValue:"evenSaves",compareSecondValue:"evenShotsAgainst",reverseSecondCompare:!0,short:"ES"},tM={value:"powerPlaySaves",madesValue:"powerPlaySaves",attemptsValue:"powerPlayShotsAgainst",compareValue:"powerPlaySaves",compareSecondValue:"powerPlayShotsAgainst",reverseSecondCompare:!0,short:"PPS"},tV={value:"plusMinus",short:"+/-"},tH=[tf],tR={G:{summaryGroup:tH,goalkeeperGroup:[tC,tP,tM,tA]},default:{summaryGroup:tH,attackingGroup:[tg,ty,tv,tx,tj],defensiveGroup:[tS,t_,tw],otherGroup:[tb,{value:"faceOffTaken",secondaryValue:"faceOffWins",compareValue:"faceOffWins",compareSecondValue:"faceOffTaken"},tk,tV]}},tT={skatersGroup:[tg,tv,{value:"points",short:"PTS"},tV,tb,ty,tS,tw,tk,t_,{value:"faceOffTaken",madesValue:"faceOffWins",attemptsValue:"faceOffTaken",percentageOnly:!0,short:"FO%",percentageDecimals:1,wideBoxScore:!0},tf],goaliesGroup:[{...tC,hidePercentage:!0},{value:"savePercentage",short:"SV%"},{...tA,hidePercentage:!0},{...tM,hidePercentage:!0},{...tP,hidePercentage:!0},tf]},tz={summaryGroup:[tg,tv,ty,tf],attackingGroup:[tg,ty,tv,tx,tj,tm],defensiveGroup:[tS,t_,tw,tm],goalkeeperGroup:[{value:"goalkeeperEfficiencyPercentage",madesValue:"saves",attemptsValue:"shotsAgainst",percentageOnly:!0,short:"SV%",sortKey:"goalkeeperEfficiencyPercentage"},tC,tA,tM,tP],otherGroup:[tb,{value:"faceOffWins"},{value:"faceOffTakenOnly"},tk,tV]},tG=[{value:"points",short:"PTS",shortTranslationKey:"points_short"},{value:"tries",short:"TRY",shortTranslationKey:"rugby_tries_short"},{value:"tackles",short:"TKL",shortTranslationKey:"rugby_tackles_short"},{value:"penaltyGoals",short:"PG",shortTranslationKey:"rugby_pen_goals_short",translationKey:"rugby.penaltyGoals"},{value:"passes",short:"PAS",shortTranslationKey:"rugby_passes_short"},{value:"carries",short:"CAR",shortTranslationKey:"rugby_carries_short"},{value:"cleanBreaks",short:"CB",shortTranslationKey:"rugby_clean_breaks_short"},{value:"dropGoals",short:"DG",shortTranslationKey:"rugby_drop_goals_short"},{value:"metersRun",short:"MR",shortTranslationKey:"rugby_meters_run_short"},{value:"offloads",short:"OFF",shortTranslationKey:"rugby_offloads_short"},{value:"tacklesMissed",short:"TM",shortTranslationKey:"rugby_tackles_missed_short"},{value:"tryAssists",short:"TA",shortTranslationKey:"rugby_try_assists_short"},{value:"turnoversWon",short:"TW",shortTranslationKey:"rugby_turnovers_won_short"}],tO={DEFAULT_GROUP_NAME:tG},tI={DEFAULT_GROUP_NAME:tG};var tL=a(9434);let tN={value:"pointsTotal",short:"TOT",shortTranslationKey:"total_stats_short",translationKey:"total"},tB={value:"breakPoints",short:"BP",shortTranslationKey:"volleyball_break_points_short",translationKey:"volleyball_break_points"},tE={value:"winLoss",short:"W-L",shortTranslationKey:"volleyball_won_lost_points_ratio_short",translationKey:"volleyball_won_lost_points_ratio"},tF={value:"blockPoints",short:"BLK",shortTranslationKey:"volleyball_blocks_short",translationKey:"volleyball_block_points"},tK={value:"serves",short:"TOT",shortTranslationKey:"total_stats_short",translationKey:"total"},tD={value:"serveErrors",short:"ERR",shortTranslationKey:"volleyball_errors_short",translationKey:"volleyball_errors"},tY={value:"aces",short:"ACE",shortTranslationKey:"volleyball_aces_short",translationKey:"volleyball_aces"},tW={value:"receptionsTotal",short:"TOT",shortTranslationKey:"total_stats_short",translationKey:"total"},tQ={value:"receptionErrors",short:"ERR",shortTranslationKey:"volleyball_errors_short",translationKey:"volleyball_errors"},tZ={value:"receptionPositivity",short:"POS%",shortTranslationKey:"volleyball_positive_reception_percentage_short",translationKey:"volleyball_positive_reception_percentage",convertFractionToPct:!0},tU={value:"receptionPerf",short:"EXC%",shortTranslationKey:"volleyball_excellent_reception_percentage_short",translationKey:"volleyball_excellent_reception_percentage",convertFractionToPct:!0},t$={value:"attacksTotal",short:"TOT",shortTranslationKey:"total_stats_short",translationKey:"total"},tX={value:"attackErrors",short:"ERR",shortTranslationKey:"volleyball_errors_short",translationKey:"volleyball_errors"},tq={value:"attacksBlocked",short:"BLK",shortTranslationKey:"volleyball_blocked_attacks_short",translationKey:"volleyball_blocked_attacks"},tJ={value:"attackPoints",short:"PTS",shortTranslationKey:"volleyball_points_short",translationKey:"volleyball_points"},t0={value:"attackPointsPercentage",madesValue:"attackPoints",attemptsValue:"attacksTotal",compareValue:"attackPoints",compareSecondValue:"attacksTotal",reverseSecondCompare:!0,percentageOnly:!0,short:"PTS%",percentageDecimals:1,shortTranslationKey:"volleyball_points_percentage_short",translationKey:"volleyball_points_percentage"},t1={pointsGroup:[tN,tB,tE,tF],servesGroup:[tK,tD,tY],receptionGroup:[tW,tQ,tZ,tU],attackGroup:[t$,tX,tq,tJ,t0]},t2={pointsGroup:[tN,tB,tE,tF],servesGroup:[tK,tD,tY],receptionGroup:[tW,tQ,tZ,tU],attackGroup:[t$,tX,tq,tJ,t0]},t5=[s.QCR.AmericanFootball,s.QCR.Handball,s.QCR.Baseball],t4=[s.QCR.Football],t3=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Handball,s.QCR.IceHockey,s.QCR.Rugby,s.QCR.Volleyball];function t6(e){switch(e){case s.QCR.AmericanFootball:return eC;case s.QCR.Baseball:return eA;case s.QCR.Basketball:return e2;case s.QCR.Football:return e6.n1;case s.QCR.Handball:return td;case s.QCR.IceHockey:return tR;case s.QCR.Rugby:return tO;case s.QCR.Volleyball:return t2;default:return{}}}function t7(e,t){switch(e){case s.QCR.AmericanFootball:let a;return a=!t,{passingGroup:[{...l,hidePercentage:!0,translationKey:"legend_am_football_completions_attempts"},r,o,i,c,d,p,h,g],rushingGroup:[v,m,f,y,x,j,b],receivingGroup:a?[V,R,T]:[V,H,R,T,z,G,I,L,O],defensiveGroup:[N,B,E,F,W,Q,Z],interceptionsGroup:[K,Y,D,U,$],fumblesGroup:[_,k,S,w,C,M,A,P],kickingGroup:[{...eu,hidePercentage:!0},{...ed,hidePercentage:!0},ep,eh,eg,ev,em],puntingGroup:[es,el,er,en,eo,ei,ec],kickReturnsGroup:[X,q,J,ee,et,ea],puntReturnsGroup:eS};case s.QCR.Basketball:return t?e4:e5;case s.QCR.Handball:return tp;case s.QCR.IceHockey:return tT;case s.QCR.Rugby:return tI;case s.QCR.Volleyball:return t?{pointsGroup:[tN,tB,tE,tF],servesGroup:[tK,tD,tY],receptionGroup:[tW,tQ,{...tZ,hideIfNone:!0},{...tU,hideIfNone:!0}],attackGroup:[t$,tX,tq,tJ,t0]}:{[tL.oz]:[{...tN,short:"PTS",shortTranslationKey:"volleyball_points_short",translationKey:"volleyball_points"},{...t$,short:"ATT",shortTranslationKey:"volleyball_attack_short",translationKey:"volleyball_attack"},{...tY,short:"ACE",shortTranslationKey:"volleyball_aces_short",translationKey:"volleyball_aces"},{...tF,short:"BLK",shortTranslationKey:"volleyball_blocks_short",translationKey:"volleyball_blocks"}]};default:return{}}}function t9(e){switch(e){case s.QCR.AmericanFootball:return eP;case s.QCR.Basketball:return e3;case s.QCR.Football:return e6.rj;case s.QCR.Handball:return th;case s.QCR.IceHockey:return tz;case s.QCR.Volleyball:return t1;default:return{}}}},26792:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(6029),l=a(33144),r=a(46787),n=a(51569),o=a(55729),i=a(18970);function c(e){let{activeTeam:t,onTeamClick:a}=e,{leftTeam:c,rightTeam:u}=(0,o.useContext)(i.y$);return(0,s.jsx)(n.tU,{variant:"secondary",initialValue:t,onChange:e=>a(e),fullWidthTabs:!0,children:(0,s.jsxs)(n.tU.List,{children:[(0,s.jsx)(n.tU.Tab,{tabKey:r.cxP.Left,children:(0,s.jsx)(l.p,{size:"xl",id:c.id,name:c.name})}),(0,s.jsx)(n.tU.Tab,{tabKey:r.cxP.Right,children:(0,s.jsx)(l.p,{size:"xl",id:u.id,name:u.name})})]})})}},26920:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.32s3.56-1.73 4.95-1.93m2.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.1M22 2v9h-2V4H4v7H2V2z"})}))}a(62042),a(20325),a(1157)},27952:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",{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.314zM6.978 8.886l1.28-.54 4.081-4.083.54-1.279.079-.738a9.15 9.15 0 0 0-4.323 2.377 9.14 9.14 0 0 0-2.395 4.34zM17.016 7.12l-1.279.54-4.076 4.076-.54 1.279-.078.738a9.2 9.2 0 0 0 4.328-2.377 9.13 9.13 0 0 0 2.39-4.334l-.739.078z"})]})}))}a(62042),a(20325),a(1157)},28075:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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-.02zm8.319 1.381.79.47a10 10 0 0 1-3.763 2.572c-.52.2-1.071.37-1.632.48l.45-1.4v-.01zm-5.476-5.863 4.244.71.721 4.223-3.874 1.97-3.053-3.04zm-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.761 11 11 0 0 1-.3-1.281c-.06-.37-.1-.74-.13-1.12zm16.997-2.25 1.752.36v.01l.09.02v1.25c0 2.221-.73 4.272-1.962 5.933l-.9-.55-.782-4.583zM5.754 8.452l4.284.01 2.142 3.412-2.012 3.962-3.884.01-2.192-3.772zm7.607-4.002 4.094 1.22 1.802 4.113-1.701 2.311-4.465-.75-2.112-3.392zM4.402 5.48l.46 2.372-1.69 3.702H2c.02-.43.07-.87.14-1.29.11-.651.29-1.282.52-1.882a9.8 9.8 0 0 1 1.742-2.901zm14.725-.5A10 10 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 10 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.3z"})}))}a(62042),a(20325),a(1157)},28105:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ek,excludedSeasonIds:()=>eb});var s=a(6029),l=a(46787),r=a(51569),n=a(20325),o=a(55729),i=a(90248),c=a(45860),u=a(46222),d=a(18970),p=a(41164),h=a(54850),g=a(9045),v=a(10292),m=a(947),f=a(52466),y=a(59e3),x=a(11219),j=a(72590),b=a(8900),_=a(94156),k=a(16805),S=a(75853),w=a(67087);function C(e){let{statistic:t,topPlayer:a,sport:l,first:o,left:i}=e;return a?(0,s.jsxs)(n.so,{h:"5xl",w:"100%",align:"center",direction:i?"row":"row-reverse",gap:"lg",overflow:"hidden",_hover:{bg:"surface.s2"},cursor:"pointer",pl:i?"lg":void 0,pr:i?void 0:"lg",children:[(0,s.jsx)(v.t,{size:"3xl",id:a.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)(r.EY,{children:(0,s.jsx)(j.A,{sport:l,stat:a.statistics,selectedStat:t})}),(0,s.jsx)(r.EY,{w:"100%",textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,display:"block",children:(0,s.jsx)(_.c,{entity:a.player,short:!0})})]})]}):o?(0,s.jsx)(k.A,{messageId:"yet.to.perform",isInverted:!i}):null}function P(e){var t,a;let{statistic:l,homePlayer:r,awayPlayer:o,sport:i,first:c}=e;return r||o?(0,s.jsxs)(n.so,{justify:r||c?"space-between":"flex-end",children:[(0,s.jsx)(x.uc,{player:null==r?void 0:r.player,sportSlug:i,style:{width:"50%"},title:null==r||null==(t=r.player)?void 0:t.name,children:(0,s.jsx)(C,{statistic:l,topPlayer:r,sport:i,first:c,left:!0})}),(0,s.jsx)(x.uc,{player:null==o?void 0:o.player,sportSlug:i,style:{width:"50%"},title:null==o||null==(a=o.player)?void 0:a.name,children:(0,s.jsx)(C,{statistic:l,topPlayer:o,sport:i,first:c})})]}):null}function A(e){let{statistic:t,homePlayers:a,awayPlayers:i,sport:c,type:u}=e,d=(0,m.A)(),[p,h]=(0,o.useState)(!1);return a.length||i.length?(0,s.jsxs)(n.az,{style:{userSelect:"none"},children:[(0,s.jsxs)(n.so,{bg:p?"surface.s2":void 0,pt:"md",pb:"xs",align:"center",justify:"center",onClick:()=>h(e=>!e),cursor:"pointer",children:[(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"xs",children:(0,b.y)(d,t,c,u===l.Vw_.playoffs)}),(0,s.jsx)(f.zQC,{icon:p?"chevron-up":"chevron-down",width:24,height:24,color:"neutrals.nLv1"})]}),(0,s.jsx)(P,{statistic:t,homePlayer:a[0],awayPlayer:i[0],sport:c,first:!0}),p&&Array.from({length:4}).map((e,l)=>{let r=l+1;return(0,s.jsx)(P,{statistic:t,homePlayer:a[r],awayPlayer:i[r],sport:c},t+r)})]}):null}function M(e){let{homeTeamId:t,awayTeamId:a,sport:r,uniqueTournamentId:i,seasonId:d,type:p,gender:h}=e,{data:g,error:v}=(0,c.Ay)(l.cWY.topPlayers(t,i,d,p)),{data:m,error:f}=(0,c.Ay)(l.cWY.topPlayers(a,i,d,p)),x=(0,o.useMemo)(()=>(0,y.t)(r),[i]);return v&&f||!x?null:((null==g?void 0:g.topPlayers)||v)&&((null==m?void 0:m.topPlayers)||f)?(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"top_players",values:{gender:null!=h?h:l.YT8.Male}}),(0,s.jsx)(n.az,{pb:{base:"sm",md:"md"},children:x.map(e=>(0,s.jsx)(A,{sport:r,statistic:e,homePlayers:((null==g?void 0:g.topPlayers[e])||[]).filter(e=>e.playedEnough),awayPlayers:((null==m?void 0:m.topPlayers[e])||[]).filter(e=>e.playedEnough),type:p},e))})]}):(0,s.jsx)(S.A,{})}function V(e){var t,a;let{event:l}=e,r=l.tournament.category.sport.slug,n=(0,w.g3)();return l.seasonStatisticsType&&(null==(t=l.tournament.uniqueTournament)?void 0:t.id)&&(null==(a=l.season)?void 0:a.id)&&-1!==y.u.indexOf(r)?(0,s.jsx)(M,{homeTeamId:n?l.awayTeam.id:l.homeTeam.id,awayTeamId:n?l.homeTeam.id:l.awayTeam.id,sport:r,uniqueTournamentId:l.tournament.uniqueTournament.id,seasonId:l.season.id,type:l.seasonStatisticsType,gender:l.awayTeam.gender}):null}var H=a(54548),R=a(72696),T=a(92667),z=a(86931),G=a(31830),O=a(88715),I=a(56132),L=a(29180),N=a(94565),B=a(14831),E=a(15341),F=a(79082),K=a(6664),D=a(30099),Y=a(48827),W=a(96688),Q=a(76155),Z=a(82346);function U(e){let{event:t}=e,a=(0,G.A)(),o=(0,W.y)(a);if(t.tournament.category.sport.slug!==l.QCR.Football||!t.hasEventPlayerStatistics)return null;let c=t.tournament.uniqueTournament?(0,s.jsx)(Z.O,{uniqueTournament:t.tournament.uniqueTournament}):(0,s.jsx)(Q.J,{tournament:t.tournament});return(0,s.jsx)(u.Zp,{children:(0,s.jsxs)(n.so,{p:"md",gap:"lg",children:[(0,s.jsx)(f.G_L,{color:"neutrals.nLv3",width:"24",height:"24",minW:"xl"}),(0,s.jsxs)(n.az,{children:[(0,s.jsx)(r.EY,{display:"block",textStyle:"body.small",color:"neutrals.nLv1",mb:"sm",children:(0,s.jsx)(i.A,{id:"rating_lineups_info",values:{name:c}})}),(0,s.jsxs)("a",{href:o,target:"_blank",rel:"noreferrer",children:[(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,s.jsx)(i.A,{id:"read_more"})}),(0,s.jsx)(f.CCT,{width:"16",height:"16",ml:"2xs",color:"primary.default",verticalAlign:"middle"})]})]})]})})}var $=a(18974),X=a(18858),q=a(99764),J=a(99902),ee=a(99913),et=a(8329),ea=a(86903),es=a(93338),el=a(42140);function er(e){let{value:t,iconColor:a,games:l}=e;return t&&l?(0,s.jsxs)(n.so,{align:"center",gap:"xs",children:[(0,s.jsx)(f.sm9,{style:{color:es.S.var("colors.".concat(a))}}),(0,s.jsx)(r.EY,{textStyle:"body.small",children:(0,ea.M)(t/l,2)})]}):null}let en=function(e){let{referee:t}=e;return(0,s.jsx)(el.A,{referee:t,children:(0,s.jsxs)(n.so,{direction:"column",gap:"xs",align:"center",px:"lg",py:"sm",br:"sm",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(n.so,{gap:"xs",justify:"center",children:[(0,s.jsx)(et.w,{alpha2:t.country.alpha2,size:16}),(0,s.jsx)(r.EY,{children:null==t?void 0:t.name})]}),(0,s.jsxs)(n.so,{gap:"sm",alignItems:"center",justify:"center",children:[(0,s.jsx)(r.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,s.jsx)(i.A,{id:"average_cards"})}),(0,s.jsxs)(n.so,{gap:"xs",alignContent:"center",children:[(0,s.jsx)(er,{value:t.redCards,games:t.games,iconColor:"status.error.default"}),(0,s.jsx)(er,{value:t.yellowCards,games:t.games,iconColor:"rating.s65"})]})]})]})})};var eo=a(70512);function ei(e){var t,a,r,i,c,p,h,g,v,m,f,y,x,j,b,_;let{event:k,leftTeam:S,rightTeam:w}=(0,o.useContext)(d.y$),{playerPerformanceRatingCategory:C}=(0,o.useContext)(Y.h),P=k.tournament.category.sport.slug===l.QCR.Football,A=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),M=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),V=(null==(t=e.managers)?void 0:t.leftManager)||(null==(a=e.managers)?void 0:a.rightManager);return(0,s.jsxs)(n.so,{direction:"column",gap:"sm",children:[P&&(null==k?void 0:k.referee)&&(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"referee"}),(0,s.jsx)(n.so,{justify:"center",children:(0,s.jsx)(en,{referee:k.referee})})]}),P&&V&&(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"managers"}),(0,s.jsxs)(n.so,{gap:"sm",children:[(0,s.jsx)(n.so,{w:"100%",maxW:"1/2",grow:1,children:(null==(r=e.managers)?void 0:r.leftManager)&&(0,s.jsx)(J.A,{manager:null==(i=e.managers)?void 0:i.leftManager,isBorderHidden:!0,incidents:null==(c=e.incidents)?void 0:c.filter(e=>e.manager)})}),(0,s.jsx)(n.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md"}),(0,s.jsx)(n.so,{w:"100%",maxW:"1/2",grow:1,children:(null==(p=e.managers)?void 0:p.rightManager)&&(0,s.jsx)(J.A,{manager:null==(h=e.managers)?void 0:h.rightManager,isBorderHidden:!0,incidents:null==(g=e.incidents)?void 0:g.filter(e=>e.manager)})})]})]}),!e.hasFormation&&P&&(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"startingEleven.title"}),(0,s.jsxs)(n.so,{children:[(0,s.jsx)(eo.A,{players:e.lineups.left.players.filter(e=>!e.substitute),team:S,manager:null==(v=e.managers)?void 0:v.leftManager,highlightStarters:!1,hasRating:M,event:k,playerPerformanceRatingCategories:(0,q.N$)(e.lineups.left.players,C),statisticalVersion:null==(m=e.lineups)?void 0:m.statisticalVersion,...e},"left"),(0,s.jsx)(n.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,s.jsx)(eo.A,{players:e.lineups.right.players.filter(e=>!e.substitute),team:w,manager:null==(f=e.managers)?void 0:f.rightManager,hasTopBorder:!1,highlightStarters:!1,hasRating:M,event:k,playerPerformanceRatingCategories:(0,q.N$)(e.lineups.right.players,C),statisticalVersion:null==(y=e.lineups)?void 0:y.statisticalVersion,...e},"right")]})]}),A&&(0,s.jsxs)(u.Zp,{children:[P&&(0,s.jsx)(u.Zp.Header,{titleId:"substitutions"}),(0,s.jsxs)(n.so,{children:[(0,s.jsx)(eo.A,{players:P?e.lineups.left.players.filter(e=>e.substitute):e.lineups.left.players,team:S,manager:null==(x=e.managers)?void 0:x.leftManager,hasRating:M,event:k,playerPerformanceRatingCategories:(0,q.N$)(e.lineups.left.players,C),statisticalVersion:null==(j=e.lineups)?void 0:j.statisticalVersion,...e},"left"),(0,s.jsx)(n.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,s.jsx)(eo.A,{players:P?e.lineups.right.players.filter(e=>e.substitute):e.lineups.right.players,team:w,manager:null==(b=e.managers)?void 0:b.rightManager,hasTopBorder:!1,hasRating:M,event:k,playerPerformanceRatingCategories:(0,q.N$)(e.lineups.right.players,C),statisticalVersion:null==(_=e.lineups)?void 0:_.statisticalVersion,...e},"right")]})]}),(0,s.jsx)(ee.PM,{left:e.lineups.left.missingPlayers,right:e.lineups.right.missingPlayers})]})}function ec(e){var t,a,i,c,p;let h=(0,X.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),[g,v]=(0,o.useState)(l.cxP.Left),m=g===l.cxP.Left?e.lineups.left:e.lineups.right,{event:f,leftTeam:y,rightTeam:x}=(0,o.useContext)(d.y$),{playerPerformanceRatingCategory:j}=(0,o.useContext)(Y.h),b=e.hasFormation?m.players.filter(e=>e.substitute):m.players,_=f.tournament.category.sport.slug===l.QCR.Football,k=g===l.cxP.Left?null==(t=e.managers)?void 0:t.leftManager:null==(a=e.managers)?void 0:a.rightManager,S=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),w=e.lineups[g].players.filter(e=>!e.substitute),C=e.lineups[g].players.filter(e=>e.substitute),P=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),A=_&&!!w.length;return(0,s.jsx)(n.az,{px:"sm",children:(0,s.jsxs)(n.so,{direction:"column",gap:"sm",children:[(0,s.jsx)(r.PI,{top:h,children:e=>(0,s.jsx)(u.WC,{variant:e?"square":void 0,children:(0,s.jsx)(n.az,{mx:e?"-sm":void 0,children:(0,s.jsx)(u.Zp,{variant:"mobile-only",children:(0,s.jsx)(n.az,{p:{mdDown:"sm"},children:(0,s.jsx)($.n,{activeTeam:g,onTeamClick:v})})})})})}),k&&(0,s.jsx)(J.A,{manager:k,incidents:null==(i=e.incidents)?void 0:i.filter(e=>e.manager),isBorderHidden:!0}),!e.hasFormation&&(0,s.jsxs)(u.Zp,{children:[A&&(0,s.jsx)(u.Zp.Header,{titleId:"startingEleven.title",as:"h4"}),(0,s.jsx)(eo.A,{hideTeamHeader:!0,players:_?w:b,team:g===l.cxP.Left?y:x,highlightStarters:!_,hasRating:P,event:f,playerPerformanceRatingCategories:(0,q.N$)(g===l.cxP.Left?e.lineups.left.players:e.lineups.right.players,j),statisticalVersion:null==(c=e.lineups)?void 0:c.statisticalVersion,...e},g)]}),S&&_&&!!C.length&&(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"substitutions",as:"h4"}),(0,s.jsx)(eo.A,{hideTeamHeader:!0,players:C,team:g===l.cxP.Left?y:x,playerPerformanceRatingCategories:(0,q.N$)(g===l.cxP.Left?e.lineups.left.players:e.lineups.right.players,j),hasRating:P,event:f,statisticalVersion:null==(p=e.lineups)?void 0:p.statisticalVersion,...e},g)]}),!!(e.lineups.left.missingPlayers||e.lineups.right.missingPlayers)&&(0,s.jsx)(ee.Sb,{missingPlayers:m.missingPlayers})]})})}function eu(e){let{isMobile:t,isDesktop:a}=(0,r.$c)(),{location:l}=(0,o.useContext)(d.y$),n=a&&l===d.cb.EventPage;return t||!n?(0,s.jsx)(ec,{...e}):(0,s.jsx)(ei,{...e})}function ed(e){var t;let l,c,u=(0,G.A)(),{event:p,location:h}=(0,o.useContext)(d.y$),{bestPlayer:g}=(0,z.Y)(p),v=(0,o.useContext)(d.Ws),{isDesktop:m}=(0,r.$c)(),y=m&&h===d.cb.EventPage;try{l=e.lineups.left.formation?(0,L.V)(e.lineups.left.formation,e.lineups.left.players.filter(e=>!e.substitute),v):void 0,c=e.lineups.right.formation?(0,L.V)(e.lineups.right.formation,e.lineups.right.players.filter(e=>!e.substitute),v):void 0}catch(e){console.error(e)}let x=!!(l&&c),j=window.location.host+O.z.getTranslatedRoute(u,"event",{id:p.customId,name:p.slug,sport:p.tournament.category.sport.slug}).route,b="#"+(0,F.HL)({id:p.id,tab:I.x.Lineups}),{isShareEnabled:_,componentRef:k,shareButton:S}=function(e,t){var l;let[r,n,c]=(0,E.A)("sofa.isComponentShareEnabled",!!(null==(l=window.navigator.clipboard)?void 0:l.write)),[u,d]=(0,o.useState)(!1),p=(0,o.useRef)(null),h={autoClose:5e3,closeButton:!1,className:"sofa-toast--info",position:"bottom-center"},g=(0,o.useCallback)(async()=>{if(p.current&&r)try{d(!0);let e=(await a.e(33933).then(a.t.bind(a,63067,23))).default,l=await e(p.current,{useCORS:!0,allowTaint:!0}),r=await new Promise(e=>l.toBlob(e)),n=new Blob([t||""],{type:"text/plain"});r&&(await window.navigator.clipboard.write([new ClipboardItem({"image/png":r,"text/plain":n})]),(0,B.MZ)((0,s.jsxs)(N.so,{align:"center",children:[(0,s.jsx)(f.G_L,{color:"onColor.primary",mr:"lg"}),(0,s.jsx)(N.EY,{block:!0,color:"onColor.primary",font:"display.small",children:(0,s.jsx)(i.A,{id:"basic.copiedToClipboard"})})]}),h))}catch(e){n(!1),(0,B.MZ)((0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(N.so,{align:"center",children:[(0,s.jsx)(f.cgL,{color:"onColor.primary",mr:"md"}),(0,s.jsx)(N.EY,{block:!0,c:"onColor.primary",font:"display.small",children:(0,s.jsx)(i.A,{id:"error.anErrorOccurred"})})]}),e.message&&(0,s.jsx)(N.EY,{block:!0,c:"onColor.primary",font:"body.small",mt:"sm",children:e.message})]}),{...h,className:"sofa-toast--error"})}finally{d(!1)}},[p.current,u,r]),v=c&&r?(0,s.jsx)(i.A,{id:"basic.share",children:t=>(0,s.jsx)(N.$n,{"aria-label":String(t),size:"xs",tertiary:!0,disabled:u,style:u?{cursor:"wait"}:void 0,onClick:g,children:e||(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{id:"basic.share"}),(0,s.jsx)(f.VJ,{color:"surface.s1",ml:"2xs",width:16,height:16})]})})}):null;return{isGeneratingScreenshot:u,shareButton:v,componentRef:p,isShareEnabled:r}}((0,s.jsxs)(n.so,{justify:"center",align:"center",children:[(0,s.jsx)(i.A,{id:"share_match_lineups"}),(0,s.jsx)(f.VJ,{color:"surface.s1",ml:"2xs",width:"16",height:"16"})]}),j+b);return(0,s.jsx)(Y.V,{children:(0,s.jsxs)(n.az,{children:[x&&(0,s.jsx)(D.Ko,{...e,leftFormation:l,rightFormation:c,ref:k,playerOfTheMatchId:null==g?void 0:g.player.id,isShareEnabled:_,shareButton:S,statisticalVersion:null==(t=e.lineups)?void 0:t.statisticalVersion}),(0,s.jsxs)(n.so,{direction:"column",gap:"sm",pt:"sm",children:[(0,s.jsx)(n.so,{direction:y?"column-reverse":"column",gap:"sm",children:(0,s.jsx)(eu,{...e,hasFormation:x,playerOfTheMatchId:null==g?void 0:g.player.id})}),(0,s.jsx)(n.az,{px:"sm",children:(0,s.jsx)(U,{event:p})}),(0,s.jsx)(K.K,{isHorizontalLayout:y})]})]})})}var ep=a(6813);let eh=e=>{let{lineups:t,managers:a}=e,[i,c]=(0,o.useState)(l.cxP.Left),{event:p,leftTeam:h,rightTeam:g}=(0,o.useContext)(d.y$),v=(0,X.Ay)(),{isMobile:m}=(0,r.$c)(),[f,y,x]=i===l.cxP.Left?[h,a.leftManager,t.left]:[g,a.rightManager,t.right];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.az,{bg:"surface.s1",w:"100%",position:{mdDown:"sticky"},style:{top:m?v:void 0},zIndex:"sticky",p:"sm",children:(0,s.jsx)($.n,{activeTeam:i,onTeamClick:e=>c(e)})}),(0,s.jsxs)(n.so,{p:"sm",gap:"sm",direction:"column",children:[(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"probable_pitchers"}),(0,s.jsx)(eo.A,{players:x.players,team:f,event:p,hideTeamHeader:!0}),0===x.players.length&&(0,s.jsx)(ep.p,{graphic:"no-data",descriptionMessageId:"probable_pitchers_empty"})]}),!!(t.left.missingPlayers||t.right.missingPlayers)&&(0,s.jsx)(ee.Sb,{missingPlayers:x.missingPlayers})]})]})},eg=e=>{let{lineups:t}=e,{event:a,leftTeam:l,rightTeam:r}=(0,o.useContext)(d.y$);return(0,s.jsxs)(n.so,{direction:"column",children:[(0,s.jsx)(u.Zp.Header,{titleId:"probable_pitchers"}),(0,s.jsxs)(n.so,{children:[(0,s.jsx)(n.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(eo.A,{players:t.left.players,team:l,event:a,hideTeamHeader:!0})}),(0,s.jsx)(n.az,{w:"[1px]",bg:"neutrals.nLv4",my:"xs"}),(0,s.jsx)(n.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(eo.A,{players:t.right.players,team:r,event:a,hideTeamHeader:!0})})]}),(0,s.jsx)(u.Zp.Footer,{})]})};function ev(e){let{lineups:t,managers:a}=e,{isDesktop:l}=(0,r.$c)(),{location:n}=(0,o.useContext)(d.y$);return l&&n===d.cb.EventPage?(0,s.jsx)(eg,{lineups:t,managers:a}):(0,s.jsx)(eh,{lineups:t,managers:a})}function em(){return(0,s.jsx)(N.az,{h:900})}function ef(){let{event:e}=(0,o.useContext)(d.y$),{managers:t}=(0,H.K)(e),{lineups:a,confirmed:r,error:n}=(0,T.Ir)({jerseyStyle:"fancy"}),{data:i}=(0,c.Ay)(l.bnp.incidents(e.id),(0,p.rf)(e));return n?null:a?r?(0,s.jsx)(ed,{lineups:a,incidents:null==i?void 0:i.incidents,managers:t,confirmed:r,showPlayerStatistics:!1}):(0,s.jsx)(ev,{lineups:a,managers:t}):(0,s.jsx)(em,{})}var ey=a(83094),ex=a(84449),ej=a(16287);let eb=[17564,17565,17566,17567,17568,17569,17570,17571,1151,2636,16,2531,7528],e_=e=>{let{showPlayerStatistics:t}=e,{event:a}=(0,o.useContext)(d.y$),v=a.tournament.category.sport.slug,{managers:m}=(0,H.K)(a),{lineups:f,confirmed:y,error:x}=(0,T.Ir)({jerseyStyle:v===l.QCR.Football?"clean":"fancy"}),{data:j}=(0,c.Ay)(l.bnp.incidents(a.id),(0,p.rf)(a)),{hasPregameTopPlayers:b}=(0,R.M)(a),{isDesktop:_}=(0,r.$c)(),k=a.season&&eb.includes(a.season.id);if(b&&(x||f&&!y))return(0,s.jsxs)(n.so,{direction:"column",gap:{base:"sm",md:"md"},p:{mdDown:"sm"},children:[(0,s.jsx)(V,{event:a}),(0,s.jsx)(g.m,{sport:v,home:null==f?void 0:f.left.missingPlayers,away:null==f?void 0:f.right.missingPlayers})]});if(!f)return(0,s.jsx)(ex.A,{});let S=v!==l.QCR.Football?(0,s.jsx)(u.Zp.Header,{titleId:"players",values:{gender:a.gender||l.YT8.Male},as:"h2"}):null;return _&&t?(0,s.jsxs)(n.az,{pt:"sm",children:[S,(0,s.jsxs)(r.tU,{variant:"secondary",initialValue:1,centered:!0,children:[(0,s.jsxs)(r.tU.List,{children:[(0,s.jsx)(r.tU.Tab,{tabKey:1,children:(0,s.jsx)(i.A,{id:"lineups"})}),(0,s.jsx)(r.tU.Tab,{tabKey:2,children:(0,s.jsx)(i.A,{id:"player_stats"})})]}),(0,s.jsxs)(n.az,{pt:"sm",children:[(0,s.jsx)(r.tU.Panel,{tabKey:1,children:(0,s.jsx)(ed,{lineups:f,incidents:null==j?void 0:j.incidents,managers:m,confirmed:y})}),!k&&(0,s.jsx)(r.tU.Panel,{tabKey:2,children:(0,s.jsx)(h.default,{lineups:f})})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[S,(0,s.jsx)(ed,{lineups:f,incidents:null==j?void 0:j.incidents,managers:m,confirmed:y,showPlayerStatistics:t})]})};function ek(e){let{hasLineups:t,showPlayerStatistics:a}=e,{event:r}=(0,o.useContext)(d.y$),n=r.tournament.category.sport.slug,i=n===l.QCR.ESports&&(0,p.f2)(r.tournament.category.id),{couldHavePregameTopPlayers:c}=(0,R.M)(r);return i||!1===t&&!c?null:n===l.QCR.Cricket?(0,s.jsx)(ey.A,{}):n===l.QCR.Rugby?(0,s.jsx)(ej.u,{}):n===l.QCR.Baseball?(0,s.jsx)(ef,{}):(0,s.jsx)(e_,{showPlayerStatistics:a})}},28532:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"16",heightAttr:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M3 1h10v14H3z"})}))}a(62042),a(20325),a(1157)},30099:(e,t,a)=>{a.d(t,{Ko:()=>tu});var s=a(6029),l=a(38709),r=a(22375),n=a(51569),o=a(20325),i=a(55729),c=a(90248),u=a(18970),d=a(54246),p=a(96861),h=a(95084),g=a(18858),v=a(48827),m=a(52466),f=a(40094);let y=e=>{let{onClick:t,hasRatingBreakdown:a,isOpen:r,ref:i}=e;return(0,s.jsx)("div",{ref:i,children:(0,s.jsx)(n.tU.Tab,{tabKey:l.k.Performance,onClick:t,children:(0,s.jsxs)(o.so,{align:"center",gap:"xs",children:[(0,s.jsx)(c.A,{id:f.fP[l.k.Performance]}),a&&(0,s.jsx)(m.QtO,{style:{transform:r?"rotate(180deg)":"rotate(0deg)"}})]})},"tab-".concat(l.k.Performance))})};var x=a(60235);let j={[p.V7.Shot]:"football_rating_shooting_category",[p.V7.Pass]:"football_passing_category",[p.V7.Dribble]:"football_dribbling_category",[p.V7.Defensive]:"football_defending_category"},b=e=>{let{value:t,active:a,onItemClick:l}=e,r=t&&j[t]||"rating";return(0,s.jsx)(o.so,{py:"lg",px:"md",bg:a?"surface.s2":"[transparent]",cursor:"pointer",onClick:()=>l(t),_hover:{bg:a?"surface.s2":"neutral.highlight"},role:"option","aria-selected":a,children:(0,s.jsx)(n.EY,{color:a?"primary.default":"neutrals.nLv1",children:(0,s.jsx)(c.A,{id:r})})})},_=e=>{let{isOpen:t,onItemClick:a,value:l,onClose:r,performanceChipRef:c}=e,u=(0,i.useRef)(null),d=(0,x.jz)(e=>{var a,s;t&&e.target instanceof Node&&!(null==(a=u.current)?void 0:a.contains(e.target))&&!(null==c||null==(s=c.current)?void 0:s.contains(e.target))&&r()});return t?(0,s.jsxs)(o.az,{position:"absolute",top:"4xl",left:"sm",bg:"surface.sp",borderRadius:"sm",w:"[120px]",py:"sm",elevation:"3",ref:(0,n.Px)(u,d),children:[(0,s.jsx)(b,{value:void 0,active:void 0===l,onItemClick:a}),(0,s.jsx)(b,{value:p.V7.Shot,active:l===p.V7.Shot,onItemClick:a}),(0,s.jsx)(b,{value:p.V7.Pass,active:l===p.V7.Pass,onItemClick:a}),(0,s.jsx)(b,{value:p.V7.Dribble,active:l===p.V7.Dribble,onItemClick:a}),(0,s.jsx)(b,{value:p.V7.Defensive,active:l===p.V7.Defensive,onItemClick:a})]}):null},k={[p.V7.Shot]:"shooting",[p.V7.Pass]:"passing",[p.V7.Dribble]:"dribbling",[p.V7.Defensive]:"defending"};function S(e){let{isNational:t,eventTimestamp:a,isHorizontalLayout:p,onTabChange:m,order:x,hasDistance:j,hasRatingBreakdown:b}=e,S=(0,i.useRef)(null),[w,C]=(0,i.useState)(!1),{event:P}=(0,i.useContext)(u.y$),A=(0,g.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),{playerCharacteristicChip:M,playerPerformanceRatingCategory:V,setPlayerPerformanceRatingCategory:H}=(0,i.useContext)(v.h),R=1>(0,r.CF)(a),T=Object.values(l.k).filter(e=>(e!==l.k.MarketValue||!!R)&&(e!==l.k.Distance||!!j)&&(t?e!==l.k.Nationality:e!==l.k.Club)),z=()=>{b&&M===l.k.Performance&&C(e=>!e)};return(0,s.jsxs)(n.PI,{top:A,w:"100%",order:x,zIndex:"stickySecondary",bg:"surface.s1",children:[(0,s.jsxs)(o.so,{justify:"space-between",align:"center",gap:"lg",p:"sm",position:"relative",children:[(0,s.jsx)(n.tU,{variant:"tertiary",initialValue:l.k.Performance,onChange:e=>{null==m||m(e),C(!1)},children:(0,s.jsx)(n.tU.List,{p:"sm",children:T.map(e=>e===l.k.Performance?(0,s.jsx)(y,{ref:S,isOpen:w,onClick:z,hasRatingBreakdown:b},l.k.Performance):(0,s.jsx)(n.tU.Tab,{tabKey:e,children:(0,s.jsx)(c.A,{id:f.fP[e]})},"tab-".concat(e)))})}),(0,s.jsx)(d.w,{type:"lineups",event:P,isButton:!0})]}),(0,s.jsx)(_,{isOpen:w,performanceChipRef:S,value:V,onItemClick:e=>{C(!1),H(e);let t=e?k[e]:"rating";t&&(0,h.ke)({action:"change_chip",location:"event_lineups",type:t})},onClose:()=>C(!1)}),!p&&(0,s.jsx)(o.cG,{})]})}var w=a(25766),C=a(94400),P=a(91603),A=a(46787),M=a(94565),V=a(41735),H=a(69096),R=a(15538),T=a(30821),z=a(53960),G=a(88505);let O=function(){let[e,t]=(0,i.useState)(320);return(0,i.useEffect)(()=>{t(window.innerWidth);let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e};var I=a(99764);let L={expectedGoals:"football_expected_goals_short",expectedGoalsOnTarget:"football_expected_goals_on_target_short",totalShots:"football_total_shots",onTargetScoringAttempt:"football_shots_on_goal",expectedAssists:"football_expected_assists_short",accuratePass:"football_accurate_passes",keyPass:"football_key_passes",wonContest:"football_successful_dribbles",touches:"football_touches",defensiveContributions:"football_defensive_contributions",duelWon:"football_duels_won"},N=e=>{let{playerPerformanceRatingCategory:t,lineups:a}=e,l=(0,I.N$)(a.players,t),r=B(a.players,null!=l?l:[]);return(0,s.jsx)(o.so,{children:Object.entries(r).map((e,t)=>{let[a,l]=e;return(0,s.jsxs)(o.so,{align:"center",children:[t>0&&(0,s.jsx)(n.EY,{textStyle:"display.micro",color:"neutrals.nLv3",mx:"2xs",children:"•"}),(0,s.jsx)(n.EY,{textStyle:"display.micro",color:"neutrals.nLv3",mr:"xs",children:(0,s.jsx)(c.A,{id:L[a]})}),(0,s.jsx)(n.EY,{textStyle:"body.small",color:"neutrals.nLv1",fontWeight:"bold",children:(0,I._E)(a,l)})]},a)})})},B=(e,t)=>e.reduce((e,a)=>(t.forEach(t=>{var s,l,r,n,o,i;e[t]=(e[t]||0)+((null==(s=a.statistics)?void 0:s[t])||0),"defensiveContributions"===t&&(e[t]=(e[t]||0)+((null==(l=a.statistics)?void 0:l.wonTackle)||0),e[t]=(e[t]||0)+((null==(r=a.statistics)?void 0:r.totalClearance)||0),e[t]=(e[t]||0)+((null==(n=a.statistics)?void 0:n.outfielderBlock)||0),e[t]=(e[t]||0)+((null==(o=a.statistics)?void 0:o.interceptionWon)||0),e[t]=(e[t]||0)+((null==(i=a.statistics)?void 0:i.ballRecovery)||0))}),e),{});function E(e){let{team:t,avgRating:a,teamSide:l,lineups:r,jersey:n,isNotStarted:o,avgMessageId:u,avgData:d,chipType:p,isHorizontalLayout:h,order:g,playerPerformanceRatingCategory:v}=e,m=f.wf.includes(p)&&d,y=p===w.k.Performance&&void 0!==v,x=O(),j="rtl"===(0,i.useContext)(V.ThemeContext).settings.textDirection;return(0,s.jsx)(M.az,{w:"100%",h:"72px",maxH:"82px",br:[void 0,"lg"],flex:h?"1 1 45%":"1 1 100%",m:h?"left"===l?j?"0 sm sm xs":"0 xs sm sm":j?"0 xs sm sm":"0 sm sm xs":void 0,p:h?"0 sm":"sm sm",order:g,children:(0,s.jsxs)(M.so,{w:"100%",h:"100%",justify:"space-between",align:"center",direction:"left"!==l&&h?"row-reverse":"row",children:[(0,s.jsxs)(M.so,{h:"100%",align:"center",direction:"left"!==l&&h?"row-reverse":"row",children:[x>360&&!h&&(0,s.jsx)(P.p,{id:t.id,size:"2xl",ml:"right"===l?"sm":void 0,mr:"left"===l?"sm":void 0}),(0,s.jsxs)(M.so,{direction:"column",gap:"xs",align:"left"!==l&&h?"flex-end":"flex-start",ml:"sm",children:[(0,s.jsxs)(M.so,{gap:"sm",align:"center",h:"100%",grow:1,children:[(0,s.jsx)(M.EY,{font:"display.medium",lineHeight:"20px",lineClamp:2,children:(0,s.jsx)(G.Rm,{team:t,short:!0})}),a&&(0,s.jsxs)(M.so,{align:"center",h:"100%",children:[(0,s.jsx)(C.A,{rating:a,format:"sideBox"}),(0,s.jsx)(H.D,{type:o?R.J.AverageRatingTeam:R.J.AverageRating,rating:a,renderImage:e=>(0,s.jsx)(P.p,{id:t.id,...e.dsProps})})]})]}),m&&(0,s.jsxs)(M.so,{direction:"row",justify:"left"!==l&&h?"flex-end":"flex-start",align:"center",wrap:"wrap",children:[(0,s.jsxs)(M.EY,{font:"body.small",lineHeight:"16px",color:"onSurface.nLv3",children:[(0,s.jsx)(c.A,{id:u})," • "]}),"\xa0",(0,s.jsx)(M.EY,{font:"display.micro",fontWeight:700,lineHeight:"14px",children:p===w.k.Age?(0,s.jsxs)(s.Fragment,{children:[d," ",(0,s.jsx)(c.A,{id:"years_short",values:{n:Math.round("number"==typeof d?d:d.value)}})]}):p===w.k.MarketValue?(0,s.jsx)(z.o,{parsedMoney:(0,A.oaz)(d)}):p===w.k.Height?(0,s.jsx)(T.Z,{value:d,fromUnit:"cm"}):p===w.k.Distance?(0,s.jsxs)(s.Fragment,{children:[d," km"]}):void 0})]}),v&&y&&(0,s.jsx)(N,{playerPerformanceRatingCategory:v,lineups:r})]})]}),(0,s.jsxs)(M.so,{minW:"56px",w:"56px",direction:"column",justify:"center",align:"center",m:"xs",children:[(0,s.jsx)(M.EY,{font:"display.small",color:"onSurface.nLv1",children:r.formation}),(0,s.jsx)(M.so,{w:"36px",h:"36px",br:"sm",backgroundColor:"neutral.highlight",justify:"center",align:"center",children:(0,s.jsx)(M._V,{w:"28px",h:"32px",src:n,alt:"Team jersey"})})]})]})})}function F(e){let{eventStatus:t,isConfirmed:a,shareButton:l,order:r}=e;return[A.XUj.Finished,A.XUj.InProgress].includes(t)?null:(0,s.jsxs)(o.so,{pt:"md",pb:"xs",px:"sm",w:"100%",bg:"surface.s1",justify:{base:l?"space-between":"center",md:"space-between"},align:"center",style:{order:r},children:[(0,s.jsx)(n.EY,{textStyle:"display.medium",lineHeight:"xl",children:(0,s.jsx)(c.A,{id:a?"football_confirmed_lineups":"football_possible_lineups"})}),l]})}var K=a(42181),D=a(86890),Y=a(93338),W=a(3230);function Q(e){return(0,s.jsxs)(W.S,Object.assign({width:"12",height:"12",viewBox:"0 0 12 12"},e,{children:[(0,s.jsxs)("g",{"clip-path":"url(#clip0_7324_19939)",children:[(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25 3.45V5.25H9L11.25 3L9 0.75H8.25V2.55",fill:"#A4A9B3"}),(0,s.jsx)("path",{d:"M3.5625 5.25H2.4375V2.4375H8.25V3.5625H3.5625V5.25Z",fill:"#A4A9B3"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.75 8.55V6.75H3L0.75 9L3 11.25H3.75V9.45",fill:(0,Y.S)("colors.status.error.default")}),(0,s.jsx)("path",{d:"M9.5625 9.5625H3.75V8.4375H8.4375V6.75H9.5625V9.5625Z",fill:(0,Y.S)("colors.status.error.default")})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_7324_19939",children:(0,s.jsx)("rect",{width:"10.5",height:"10.5",fill:"white",transform:"translate(0.75 0.75)"})})})]}))}a(62042),a(1157);var Z=a(16091),U=a(86203),$=a(69693),X=a(44914),q=a(12305),J=a(50202),ee=a(37689),et=a(10688),ea=a(51584),es=a(17609),el=a(18561),er=a(99361),en=a(98096),eo=a(50373),ei=a(12668),ec=a(71300),eu=a(56853),ed=a(51523),ep=a(2997),eh=a(28532),eg=a(93222),ev=a(41230),em=a(75846),ef=a(8746),ey=a(32744),ex=a(28075),ej=a(55803),eb=a(94581),e_=a(83632),ek=a(26920),eS=a(43029),ew=a(89686),eC=a(526),eP=a(41145),eA=a(27952),eM=a(64634),eV=a(57603),eH=a(54339),eR=a(41200),eT=a(34306),ez=a(82286),eG=a(25351),eO=a(45262),eI=a(14103),eL=a(59014),eN=a(16356),eB=a(73780),eE=a(6659),eF=a(82410),eK=a(85154);let eD={card:{yellow:e=>(0,s.jsx)(eh.default,Object.assign({},e,{color:"rating.s65"})),yellowRed:e=>(0,s.jsx)(q.A,Object.assign({},e)),red:e=>(0,s.jsx)(eh.default,Object.assign({},e,{color:"status.error.default"}))},goal:{football:{regular:e=>(0,s.jsx)(em.A,Object.assign({},e,{color:"secondary.default"})),penalty:e=>(0,s.jsx)(ey.A,Object.assign({},e,{color:"secondary.default"})),ownGoal:e=>(0,s.jsx)(ef.A,Object.assign({},e,{color:"status.error.default"}))},futsal:{regular:e=>(0,s.jsx)(em.A,Object.assign({},e,{color:"secondary.default"})),penalty:e=>(0,s.jsx)(ey.A,Object.assign({},e,{color:"secondary.default"})),ownGoal:e=>(0,s.jsx)(ef.A,Object.assign({},e,{color:"status.error.default"})),accumulatedPenalty:e=>(0,s.jsx)(el.A,Object.assign({},e,{color:"secondary.default"}))},minifootball:{regular:e=>(0,s.jsx)(em.A,Object.assign({},e,{color:"secondary.default"})),penalty:e=>(0,s.jsx)(ey.A,Object.assign({},e,{color:"secondary.default"})),accumulatedPenalty:e=>(0,s.jsx)(el.A,Object.assign({},e,{color:"secondary.default"})),ownGoal:e=>(0,s.jsx)(ef.A,Object.assign({},e,{color:"status.error.default"}))},"american-football":{fieldGoal:e=>(0,s.jsx)(en.A,Object.assign({},e,{color:"secondary.default"})),rouge:e=>(0,s.jsx)(eo.A,Object.assign({},e,{color:"secondary.default"})),twoPointConversion:e=>(0,s.jsx)(eu.A,Object.assign({},e,{color:"secondary.default"})),touchdown:e=>(0,s.jsx)(ec.A,Object.assign({},e,{color:"secondary.default"})),extraPoint:e=>(0,s.jsx)(er.A,Object.assign({},e,{color:"secondary.default"})),safety:e=>(0,s.jsx)(ei.A,Object.assign({},e,{color:"secondary.default"}))},rugby:{onePoint:e=>(0,s.jsx)(eV.A,Object.assign({},e,{color:"secondary.default"})),twoPoints:e=>(0,s.jsx)(ez.A,Object.assign({},e,{color:"secondary.default"})),threePoints:e=>(0,s.jsx)(eR.A,Object.assign({},e,{color:"secondary.default"})),try:e=>(0,s.jsx)(eT.A,Object.assign({},e,{color:"secondary.default"})),penaltyTry:e=>(0,s.jsx)(eH.A,Object.assign({},e,{color:"secondary.default"}))},"ice-hockey":{regular:e=>(0,s.jsx)(eb.A,Object.assign({},e,{color:"secondary.default"})),emptynet:e=>(0,s.jsx)(eb.A,Object.assign({},e,{color:"secondary.default"})),ownGoal:e=>(0,s.jsx)(e_.A,Object.assign({},e,{color:"status.error.default"})),penalty:e=>(0,s.jsx)(ek.A,Object.assign({},e,{color:"secondary.default"})),powerplay:e=>(0,s.jsx)(eS.A,Object.assign({},e,{color:"secondary.default"})),shorthanded:e=>(0,s.jsx)(et.A,Object.assign({},e,{color:"secondary.default"}))},handball:{regular:e=>(0,s.jsx)(ex.A,Object.assign({},e,{color:"secondary.default"})),penalty:e=>(0,s.jsx)(ej.A,Object.assign({},e,{color:"secondary.default"}))},waterpolo:{regular:e=>(0,s.jsx)(eF.A,Object.assign({},e,{color:"secondary.default"})),penalty:e=>(0,s.jsx)(eK.A,Object.assign({},e,{color:"secondary.default"}))},bandy:{regular:e=>(0,s.jsx)(ed.A,Object.assign({},e,{color:"neutrals.nLv1"})),penalty:e=>(0,s.jsx)(ep.A,Object.assign({},e,{color:"neutrals.nLv1"}))},floorball:{regular:e=>(0,s.jsx)(eg.A,Object.assign({},e,{color:"neutrals.nLv1"})),penalty:e=>(0,s.jsx)(ev.A,Object.assign({},e,{color:"neutrals.nLv1"}))},volleyball:{regular:e=>(0,s.jsx)(eE.A,Object.assign({},e,{color:"secondary.default"})),spike:e=>(0,s.jsx)(eE.A,Object.assign({},e,{color:"secondary.default"})),opponentError:e=>(0,s.jsx)(eB.A,Object.assign({},e,{color:"secondary.default"})),ace:e=>(0,s.jsx)(eL.A,Object.assign({},e,{color:"secondary.default"})),block:e=>(0,s.jsx)(eN.A,Object.assign({},e,{color:"secondary.default"}))},regular:()=>null},substitution:{"ice-hockey":{goalkeeperIn:e=>(0,s.jsx)(J.A,Object.assign({},e,{color:"primary.default"})),goalkeeperOut:e=>(0,s.jsx)(ee.A,Object.assign({},e,{color:"primary.default"}))},injury:e=>(0,s.jsx)(ea.A,Object.assign({},e,{color:"primary.default"})),temporary:e=>(0,s.jsx)(eO.A,Object.assign({},e,{color:"primary.default"})),regular:e=>(0,s.jsx)(eG.A,Object.assign({},e,{color:"primary.default"}))},penaltyShootout:{"ice-hockey":{scored:e=>(0,s.jsx)(ek.A,Object.assign({},e,{color:"secondary.default"}))},waterpolo:{scored:e=>(0,s.jsx)(eK.A,Object.assign({},e,{color:"secondary.default"}))},rugby:{scored:e=>(0,s.jsx)(eA.A,Object.assign({},e,{color:"secondary.default"})),missed:e=>(0,s.jsx)(eP.A,Object.assign({},e,{color:"status.error.default"}))},taker:e=>(0,s.jsx)(eM.A,Object.assign({},e,{color:"secondary.default"})),scored:e=>(0,s.jsx)(ey.A,Object.assign({},e,{color:"secondary.default"})),missed:e=>(0,s.jsx)(eC.A,Object.assign({},e,{color:"status.error.default"}))},inGamePenalty:{taker:e=>(0,s.jsx)(eM.A,Object.assign({},e,{color:"secondary.default"})),scored:e=>(0,s.jsx)(ey.A,Object.assign({},e,{color:"secondary.default"})),missed:e=>(0,s.jsx)(eC.A,Object.assign({},e,{color:"status.error.default"}))},varDecision:{regular:e=>(0,s.jsx)(eI.default,Object.assign({},e,{color:"primary.default"}))},suspension:{minifootball:{regular:e=>(0,s.jsx)(es.A,Object.assign({},e,{color:"status.error.default"}))},handball:{regular:e=>(0,s.jsx)(es.A,Object.assign({},e,{color:"status.error.default"}))},twoMinutes:e=>(0,s.jsx)(es.A,Object.assign({},e,{color:"status.error.default"})),"ice-hockey":{zeroMinutes:e=>(0,s.jsx)(ew.A,Object.assign({},e,{color:"status.error.default"})),twoMinutes:e=>(0,s.jsx)(ew.A,Object.assign({},e,{color:"status.error.default"})),fourMinutes:e=>(0,s.jsx)(ew.A,Object.assign({},e,{color:"status.error.default"})),fiveMinutes:e=>(0,s.jsx)(ew.A,Object.assign({},e,{color:"status.error.default"})),tenMinutes:e=>(0,s.jsx)(ew.A,Object.assign({},e,{color:"status.error.default"})),regular:e=>(0,s.jsx)(ew.A,Object.assign({},e,{color:"status.error.default"}))}}};function eY({incidentType:e,incidentClass:t,sport:a,title:l,svgProps:r,fallback:n=null}){var o,i,c,u,d,p;let h=(null==(i=null==(o=eD[e])?void 0:o[a])?void 0:i.regular)||(null==(c=eD[e])?void 0:c.regular);return(t&&(h=(null==(d=null==(u=eD[e])?void 0:u[a])?void 0:d[t])||(null==(p=eD[e])?void 0:p[t])||eD[e].regular),h)?(0,s.jsx)(h,Object.assign({width:24,height:24,title:l,style:{minWidth:(null==r?void 0:r.width)||"24px",display:"inline-block"}},r)):n}function eW({incident:e,isNumber:t}){return t?(0,s.jsx)(n.EY,{textStyle:"display.micro",color:"onColor.primary",children:e.count}):"matchMVP"===e.name?(0,s.jsx)(X.default,{w:12,h:12,style:{color:e.color}}):"goalAssist"===e.name?(0,s.jsx)(U.A,{w:12,h:12,style:{color:e.color}}):"goal"===e.name&&("regular"===e.icon||"penalty"===e.icon)?(0,s.jsx)($.A,{w:12,h:12,style:{color:e.color}}):"substitution"===e.name?"injury"===e.icon?(0,s.jsx)(Z.A,{w:12,h:12,style:{color:e.color,transform:"scaleX(-1)"}}):(0,s.jsx)(Q,{}):e.icon?(0,s.jsx)(eY,{sport:A.QCR.Football,incidentType:e.name,incidentClass:e.icon,svgProps:{width:12,height:12,shapeRendering:"crispEdges"}}):null}let eQ=({incident:e,isNumber:t})=>(0,s.jsxs)(o.az,{position:"relative",w:"lg",h:"lg",className:"light",children:[(0,s.jsx)(o.so,{br:"50%",border:"1px solid",borderColor:t?"onColor.primary":"neutral.highlight",h:"lg",w:"lg",justify:"center",align:"center",position:"absolute",top:"[50%]",left:"[50%]",transform:{_ltr:"translate(-50%, -50%)",_rtl:"translate(50%, -50%)"},style:{backgroundColor:t?e.color:Y.S.var("colors.onColor.primary")}}),(0,s.jsx)(o.ov,{position:"absolute",top:"[50%]",left:"[50%]",transform:{_ltr:"translate(-50%, -50%)",_rtl:"translate(50%, -50%)"},children:(0,s.jsx)(eW,{incident:e,isNumber:t})})]});function eZ({alignment:e,incidents:t,compactDisplay:a}){return(0,s.jsx)(o.so,{width:"right"===e?void 0:"lg",h:"[50px]",position:"relative",direction:"column",maxW:"[22px]",minW:"lg",gap:"[1px]",children:t.map(t=>t.isVisible?(0,s.jsxs)(o.so,{align:"center",children:[(0,s.jsx)(eQ,{incident:t}),"right"===e&&t.count&&t.count>=2&&(0,s.jsx)(o.so,{position:"absolute",gap:"[1px]",left:a?"[1px]":"sm",children:(0,s.jsx)(eQ,{incident:t,isNumber:!0})})]},t.name):(0,s.jsx)(o.az,{h:"lg"},t.name))})}var eU=a(48485);a(64082),a(16007),a(47177),a(97824),a(83204);var e$=a(19991);function eX({player:e,incidents:t,isMatchMVP:a,lineupsType:l,compactDisplay:r}){let{playerLeftStatistics:n,playerRightStatistics:i}=function(e,t,a){var s,l,r;let n=t?(0,eU.h)({id:e.player.id,incidents:t,useShortName:!0}):{},o=n.hasYellowCard||n.hasYellowRedCard||n.hasRedCard,i={name:"card",icon:n.hasYellowRedCard?"yellowRed":n.hasRedCard?"red":"yellow",color:n.hasYellowRedCard?void 0:n.hasRedCard?Y.S.var("colors.status.error.default"):Y.S.var("colors.rating.s65"),isVisible:!!o},c={name:"substitution",icon:(null==(s=n.substitutionOut)?void 0:s.isInjury)?"injury":"regular",isVisible:!!n.substitutionOut,color:(null==(l=n.substitutionOut)?void 0:l.isInjury)?Y.S.var("colors.status.error.default"):void 0},u={name:"goal",icon:n.goalsScored===n.penaltiesScored&&n.hasScoredPenalty?"penalty":"regular",count:n.goalsScored,color:Y.S.var("colors.surface.t"),isVisible:!!n.goalsScored},d={name:"goalAssist",icon:"football-assist",count:n.goalsAssisted,color:Y.S.var("colors.surface.t"),isVisible:!!n.goalsAssisted},p={name:"goal",icon:"ownGoal",count:n.ownGoalsScored,color:Y.S.var("colors.status.error.default"),isVisible:!!n.ownGoalsScored};return{playerLeftStatistics:[i,c,{name:"matchMVP",color:(0,e$.As)(null==(r=e.statistics)?void 0:r.rating),isVisible:!!a}],playerRightStatistics:[u,d,p]}}(e,t,a);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(o.so,{w:"100%",h:"100%",px:"[5px]",position:"absolute",justify:l===w.V.Confirmed?"space-between":"flex-start",children:[n&&(0,s.jsx)(eZ,{alignment:"left",incidents:n}),l===w.V.Confirmed&&i&&(0,s.jsx)(eZ,{alignment:"right",incidents:i,compactDisplay:r})]})})}a(52462);var eq=a(91407);let eJ=({player:e,event:t,isMatchMVP:a,incidents:l,chipType:r,lineupsType:i,numberOfPlayersInRow:c,hasRating:u,getPlayerCharacteristicLabel:d=()=>null,getTranslatedPlayerName:p=e=>e.player.shortName})=>{var h;let{mediaBreakpoint:g,isDesktopMedium:v}=(0,n.$c)(),m=r===w.k.Performance,f=(null==l?void 0:l.filter(t=>{var a;return(null==(a=null==t?void 0:t.player)?void 0:a.id)===e.player.id&&("red"===t.incidentClass||"yellowRed"===t.incidentClass)}).length)!==0&&m;return(0,s.jsxs)(o.so,{direction:"column",align:"center",children:[(0,s.jsxs)(o.so,{position:"relative",direction:"column",align:"center",w:"6xl",h:"100%",maxH:"[52px]",children:[(0,s.jsx)(o.az,{w:"3xl",h:"3xl",br:"50%",bg:"surface.s0",children:(0,s.jsx)(eq.t,{size:"3xl",id:null==(h=e.player)?void 0:h.id,style:{opacity:f?.5:1}})}),m&&(0,s.jsx)(eX,{player:e,incidents:l,isMatchMVP:a,lineupsType:i,compactDisplay:v||"xxs"===g&&5===c}),d({player:e,event:t,chipType:r,lineupsType:i,hasRating:u})]}),(0,s.jsx)(o.so,{mt:"md",justify:"center",align:"center",w:"100%",children:p(e)})]})};function e0({teamSide:e,playerFormation:t,incidents:a,playerOfTheMatchId:l,playerCharacteristic:r,lineupsType:i,isHorizontalLayout:c,event:u,hasRatings:d,order:p,getPlayerCharacteristicLabel:h,getTranslatedPlayerName:g,getPlayerRatingBreakdown:v,onPlayerClick:m}){let f="rtl"===(0,V.useTheme)().settings.textDirection,{mediaBreakpoint:y,isDesktopMedium:x}=(0,n.$c)(),j=x||"xxs"===y&&5===t.length;return(0,s.jsxs)(K.XF,{side:e,isHorizontalLayout:c,order:p,children:[(0,s.jsx)(K.mi,{side:e,isHorizontalLayout:c,children:t.map((n,p)=>{let y=c?e===(f?"left":"right")?"column":"column-reverse":e===(f?"right":"left")?"row":"row-reverse";return(0,s.jsx)(o.so,{flex:"[1 1 auto]",align:"center",justify:"space-evenly",direction:y,children:(0,s.jsx)(o.so,{w:c?void 0:"100%",h:c?"100%":void 0,justify:"space-evenly",direction:y,children:n.map(e=>(0,s.jsx)(o.so,{direction:"column",justify:c||void 0===v?"flex-start":"flex-end",align:"center",flexGrow:1,flexBasis:"100%",w:j?"[60px]":void 0,maxW:{base:"12xl",md:5===t.length?"[86px]":"[108px]"},minW:"[60px]",maxH:"[76px]",pt:c?"0":"[6px]",cursor:e.player.disabled?"not-allowed":"pointer",onClick:()=>{m&&m(e)},children:(0,s.jsx)(o.so,{w:"100%",justify:"center",align:"center",children:v?(0,s.jsx)(s.Fragment,{children:v(e)}):(0,s.jsx)(eJ,{player:e,isMatchMVP:e.player.id===l,incidents:a,chipType:r,lineupsType:i,numberOfPlayersInRow:n.length,event:u,hasRating:!!d,getPlayerCharacteristicLabel:h,getTranslatedPlayerName:g},e.player.id)})},e.player.id))})},p)})}),(0,s.jsx)(D.A,{side:e,linesColor:K.ob,isHorizontalLayout:c})]})}var e1=a(81278),e2=a(46222),e5=a(66331),e4=a(31830),e3=a(88715),e6=a(86903),e7=a(87827);let e9=e=>{var t;let{player:a,rating:l}=e;return(0,s.jsx)(M.so,{position:"absolute",top:"33px",children:(0,s.jsx)(e7.G,{rating:l,format:"box",decimalPoints:(null==(t=a.statistics)?void 0:t.rating)?void 0:2,size:"sm",isOnColor:!0})})};var e8=a(53192);let te=e=>{var t,a;let{chipType:l,player:r}=e,n=null==(a=r.player)||null==(t=a.country)?void 0:t.alpha2;return(0,s.jsxs)(M.so,{p:"xxs",br:"xxs",bg:"onColor.primary",elevation:2,justify:"center",align:"center",position:"absolute",top:"31px",children:[l===w.k.Club&&(0,s.jsx)(P.p,{id:r.teamId,size:"lg"}),l===w.k.Nationality&&(n?(0,s.jsx)(e8.w,{alpha2:n,size:16}):(0,s.jsx)(M.az,{w:"lg",h:"lg",bg:"neutral.default",br:"50%"}))]})};var tt=a(94536);function ta(e){let{player:t,event:a,chipType:n,lineupsType:o,hasRating:i}=e,u=(0,tt.lV)(t,o),d=(()=>{var e,a,s,r;switch(n){case l.k.Age:return null==(e=t.player)?void 0:e.dateOfBirthTimestamp;case l.k.MarketValue:return null==(a=t.player)?void 0:a.proposedMarketValueRaw;case l.k.Height:return null==(s=t.player)?void 0:s.height;case l.k.Distance:return null==(r=t.statistics)?void 0:r.kilometersCovered;default:return}})();return n===l.k.Performance?i?(0,s.jsx)(e9,{player:t,rating:u}):null:[l.k.Club,l.k.Nationality].includes(n)?(0,s.jsx)(te,{chipType:n,player:t}):(0,s.jsx)(M.so,{border:"onColor.primary",minW:"24px",maxH:"16px",justify:"center",align:"center",px:"xs",bg:"surface.s1",position:"absolute",top:"34px",children:(0,s.jsx)(M.EY,{font:"assistive.default",lineHeight:"16px",color:d?void 0:"onSurface.nLv3",style:{textWrap:"nowrap"},children:d?(0,s.jsxs)(s.Fragment,{children:[n===l.k.Age&&(0,s.jsxs)(s.Fragment,{children:[(0,r.Dr)(d,a.startTimestamp)," ",(0,s.jsx)(c.A,{id:"years_shorter",values:{n:(0,r.Dr)(d,a.startTimestamp)}})]}),n===l.k.MarketValue&&(0,s.jsx)(z.o,{parsedMoney:(0,A.oaz)(d)}),n===l.k.Height&&(0,s.jsx)(T.Z,{value:d,fromUnit:"cm"}),n===l.k.Distance&&(0,s.jsx)(s.Fragment,{children:"".concat((0,e6.M)(d,1)," km")})]}):"-"})})}var ts=a(44793);let tl=e=>{let{statistics:t}=e;return t.every(e=>void 0===e.value)?(0,s.jsx)(o.so,{w:"lg",h:"lg",bg:"surface.s1",justify:"center",align:"center",border:"1px solid {colors.onColor.primary}",children:"-"}):(0,s.jsx)(o.BJ,{gap:"2xs",w:"[52px]",children:t.map(e=>(0,s.jsxs)(o.so,{bg:"surface.s1",justify:"center",align:"center",gap:"2xs",border:"1px solid {colors.onColor.primary}",h:"lg",w:"100%",children:[(0,s.jsx)(n.EY,{textStyle:"table.micro",children:(0,s.jsx)(c.A,{id:I.hm[e.key]})}),(0,s.jsx)(n.EY,{textStyle:"table.small",children:(0,I._E)(e.key,e.value)})]},e.key))})};var tr=a(80055);function tn(e){let t=(0,tr.z)(e.player,{short:!0});return(0,s.jsxs)(M.EY,{font:"table.small",lineHeight:"12px",color:"onColor.primary",align:"center",px:"xs",w:"100%",children:[(0,s.jsx)(M.EY,{font:"table.small",lineHeight:"12px",color:"onColor.secondary",display:"inline-block",mr:"xxs",children:e.jerseyNumber}),e.captain?"(c) ".concat(t):t]})}let to=e=>{var t;let{statisticalVersion:a,player:l,playerPerformanceRatingCategory:r,statistics:n}=e,i=I.g7[r],c=void 0!==i?null==(t=l.statistics)?void 0:t[i]:void 0,u=n.map(e=>{var t;return{key:e,value:(0,I.IU)(e,null!=(t=l.statistics)?t:{})}});return(0,s.jsxs)(o.BJ,{gap:"xs",align:"center",children:[(0,s.jsx)(tl,{statistics:u}),a===A.LKr.V3&&(0,s.jsx)(ts.X,{rating:c}),(0,s.jsx)(tn,{...l})]})},ti=(e,t,a,r)=>{if(void 0!==t&&e===l.k.Performance)return e=>(0,s.jsx)(to,{statisticalVersion:r,player:e,playerPerformanceRatingCategory:t,statistics:(0,I.N$)(a,t)||[]})};var tc=a(92667);let tu=e=>{let t=(0,e1.useRouter)(),a=(0,e4.A)(),{location:l,event:r,leftTeam:c,rightTeam:d}=(0,i.useContext)(u.y$),{isDesktop:g}=(0,n.$c)(),{openEventPlayerStatistics:m}=(0,e5.d)(),{lineups:y,leftFormation:x,rightFormation:j,playerOfTheMatchId:b,shareButton:_}=e,k=r.tournament.category.sport.slug,C=r.status.type===A.XUj.NotStarted&&k===A.QCR.Football,P=g&&l===u.cb.EventPage,{playerCharacteristicChip:M,setPlayerCharacteristicChip:V,playerPerformanceRatingCategory:H}=(0,i.useContext)(v.h),[R,T]=(0,tc.ax)(y);if(!x||!j)return null;let z=(0,tt.ZB)(x,j,y.left.players,y.right.players,r.startTimestamp),G=y.left.players.some(e=>!!e.avgRating)||y.right.players.some(e=>!!e.avgRating),O=y.left.players.some(e=>{var t;return!!(null==(t=e.statistics)?void 0:t.kilometersCovered)})||y.right.players.some(e=>{var t;return!!(null==(t=e.statistics)?void 0:t.kilometersCovered)}),I=[...x||[],...j||[]].some(e=>e.some(e=>{var t;return null==(t=e.statistics)?void 0:t.rating})),L=r.status.type===A.XUj.NotStarted,N=k===A.QCR.Football?r.status.type===A.XUj.NotStarted?G:I:void 0,B=r.status.type===A.XUj.Finished||e.confirmed?w.V.Confirmed:w.V.Possible,K=f.wf.includes(M),D=e=>{e.player.disabled||(C||r.hasEventPlayerStatistics?m({event:r,player:e.player,playerPerformanceRatingCategory:M===w.k.Performance?H:void 0},p._l.Lineups):t.push(e3.z.getTranslatedRoute(a,"player",{id:e.player.id,slug:e.player.slug,sport:k}).route))};return(0,s.jsxs)(o.so,{direction:"column",gap:P?void 0:"sm",children:[(0,s.jsxs)(o.az,{px:P?"sm":void 0,children:[(0,s.jsx)(F,{isConfirmed:e.confirmed,eventStatus:r.status.type,shareButton:_,order:P?1:2}),(0,s.jsx)(S,{isNational:!!r.homeTeam.national&&!!r.awayTeam.national,eventTimestamp:r.startTimestamp,onTabChange:e=>{(0,h.ke)({action:"click",location:"event_lineups",type:e===w.k.MarketValue?"market_value":e}),V(e)},order:P?2:1,isHorizontalLayout:!!P,hasDistance:O,hasRatingBreakdown:(0,tt.Z4)(r)})]}),(0,s.jsx)(o.az,{px:P?void 0:"sm",children:(0,s.jsx)(e2.Zp,{children:(0,s.jsxs)(o.so,{ref:e.ref,position:"relative",w:"100%",direction:P?"row":"column",justify:"space-between",align:"stretch",wrap:"wrap",children:[(0,s.jsx)(E,{team:c,teamSide:A.cxP.Left,lineups:y.left,jersey:y.leftJerseyUrls.player,chipType:M,avgRating:R,avgData:K?z[M].leftTeamValue:void 0,avgMessageId:K?z[M].messageId:void 0,isHorizontalLayout:P,isNotStarted:L,order:3,playerPerformanceRatingCategory:H}),(0,s.jsx)(e0,{teamSide:A.cxP.Left,playerFormation:x,incidents:e.incidents,playerOfTheMatchId:b,lineupsType:B,playerCharacteristic:M,isHorizontalLayout:P,hasRatings:N,event:r,order:P?4:3,getPlayerCharacteristicLabel:ta,getTranslatedPlayerName:tn,getPlayerRatingBreakdown:ti(M,H,y.left.players,e.statisticalVersion),onPlayerClick:D}),(0,s.jsx)(e0,{teamSide:A.cxP.Right,playerFormation:j,incidents:e.incidents,playerOfTheMatchId:b,lineupsType:B,playerCharacteristic:M,isHorizontalLayout:P,hasRatings:N,event:r,order:P?5:4,getPlayerCharacteristicLabel:ta,getTranslatedPlayerName:tn,getPlayerRatingBreakdown:ti(M,H,y.right.players,e.statisticalVersion),onPlayerClick:D}),(0,s.jsx)(E,{team:d,teamSide:A.cxP.Right,lineups:y.right,jersey:y.rightJerseyUrls.player,chipType:M,avgRating:T,avgData:K?z[M].rightTeamValue:void 0,avgMessageId:K?z[M].messageId:void 0,isHorizontalLayout:P,isNotStarted:L,order:P?3:5,playerPerformanceRatingCategory:H})]})})})]})}},30396:(e,t,a)=>{a.d(t,{R:()=>u});var s=a(6029),l=a(46787),r=a(55729),n=a(90248),o=a(18970);let i=JSON.parse('{"football":{"attackGroup":"attacking","attackingGroup":"football_attacking","cardsGroup":"cards","defenceGroup":"defending","defensiveDefendingGroup":"defensiveDefending","defendingGroup":"defending","duelsGroup":"football_duels","goalkeeperGroup":"goalkeeping","goalkeeperOtherGroup":"goalkeeperOther","goalkeepingGroup":"goalkeeping","matchesGroup":{"id":"matches","values":{"sport":"football"}},"otherGroup":"other","otherPerGameGroup":"other_per_game","passesGroup":"passes","passingGroup":"passing","summaryGroup":"statistics_general","offensiveGroup":"offensive","creativityGroup":"player_ability_creativity","defensiveGroup":"defensive","shootingGroup":"football_shooting_category","teamPlayGroup":"football_team_play_category","additionalGroup":"football_additional_category","physicalGroupPer90":"football_running_performance_per_90","physicalGroupPerGame":"football_running_performance_per_match"},"basketball":{"defenseGroup":"defense","extraGroup":"extra","matchesGroup":{"id":"matches","values":{"sport":"basketball"}},"offenseGroup":"americanFootball.offense","otherGroup":"other","pointsGroup":"points","reboundsGroup":"rebounds","summaryGroup":"statistics_general","pointsPerGameGroup":"points_per_game","reboundsPerGameGroup":"rebounds_per_game","otherPerGameGroup":"other_per_game"},"american-football":{"defensiveGroup":"defensive","fieldGoalKickersGroup":"fieldGoalKickers","fumblesGroup":"fumbles","interceptionsGroup":"football_interceptions","kickReturnsGroup":"kickReturns","kickingGroup":"kicking","kickoffGroup":"kickoff","matchesGroup":{"id":"matches","values":{"sport":"american_football"}},"passingGroup":"passing","puntReturnsGroup":"puntReturns","puntingGroup":"punting","receivingGroup":"receiving","rushingGroup":"rushing","gamesGroup":"am_football_games_tab"},"ice-hockey":{"attackingGroup":"attacking","goaliesGroup":"legend_hockey_goalies","goalkeeperGroup":"goalkeeping","goalkeepingGroup":"goalkeeping","matchesGroup":{"id":"matches","values":{"sport":"ice_hockey"}},"otherGroup":"miscellaneous_statistics","penaltyGroup":"penalty","pointsGroup":"points","savesGroup":"player_ability_saves","scoringGroup":"scoring","skatersGroup":"legend_hockey_skaters","summaryGroup":"statistics_general","timeGroup":"time","overallGroup":"ice_hockey_stat_category_overall","defensiveGroup":"ice_hockey_stat_category_defensive","powerPlayGroup":"ice_hockey_stat_category_power_play","shorthandedGroup":"ice_hockey_stat_category_shorthanded","evenGroup":"ice_hockey_stat_category_even_strength","faceOffGroup":"ice_hockey_stat_category_faceoff"},"handball":{"attackingGroup":"attacking","goalkeepersGroup":"stats.goalkeepers","goalkeepingGroup":"goalkeeping","otherGroup":"miscellaneous_statistics","playersGroup":"players"},"baseball":{"battingGroup":"baseball_group_batting","fieldingGroup":"baseball_group_fielding","pitchingGroup":"baseball_group_pitching"},"futsal":{"matchesGroup":{"id":"matches","values":{"sport":"futsal"}},"summaryGroup":"statistics_general"},"tennis":{"serve":"tennis_service_stat","pressureMetrics":"tennis_pressure_metrics","miscellaneous_statistics":"miscellaneous_statistics"},"volleyball":{"matchesGroup":{"id":"matches","values":{"sport":"volleyball"}},"pointsGroup":"volleyball_points","servesGroup":"volleyball_serve","receptionGroup":"volleyball_reception","attackGroup":"volleyball_attack"},"rugby":{"matchesGroup":{"id":"matches","values":{"sport":"rugby"}},"pointsGroup":"rugby_points","attackGroup":"attack_statistics","defenceGroup":"defensive","lineoutGroup":"lineouts","kickingGroup":"rugby_kicking_stats_category","ruckGroup":"rugby_rucks_stats_category","disciplineGroup":"rugby_discipline_stats_category","setPiecesGroup":"any_sport_set_pieces_stats_category"}}');var c=a(91113);let u=e=>{var t,a,u;let{id:d}=e,{rightTeam:p,leftTeam:h}=(0,r.useContext)(o.y$),g=(0,r.useContext)(o.Ws),v=(0,c.BI)(i,d,g);return(0,s.jsx)(n.A,{id:(0,c.OX)(i,d,g),values:{...v,gender:null!=(u=null!=(a=null!=(t=v.gender)?t:null==p?void 0:p.gender)?a:null==h?void 0:h.gender)?u:l.YT8.Male}})}},32744:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.5m-.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 5 0 0 0 2.29.702l.276.008.198-.004a5.09 5.09 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-.01m2.42 3.95 1.34 2.46-2 2.2-2-.78v-2.91zM22 2v9h-2V4H4v7H2V2z"})}))}a(62042),a(20325),a(1157)},33079:(e,t,a)=>{a.d(t,{AG:()=>c,FU:()=>i,X0:()=>u});var s=a(6029),l=a(51569),r=a(20325),n=a(52466),o=a(24854);let i=e=>{let{isInjury:t,type:a}=e;return t?(0,s.jsx)(n.NcS,{icon:"substitution-injured"}):"out"===a?(0,s.jsx)(n.R2C,{color:"status.error.default",w:16,h:16}):(0,s.jsx)(n.G4W,{color:"secondary.default",w:16,h:16})},c=e=>{let{hasYellowCard:t,hasRedCard:a,hasYellowRedCard:l}=e;return l?(0,s.jsx)(n.NcS,{icon:"card-double-yellow",width:"16",height:"16"}):a?(0,s.jsx)(n.NcS,{icon:"card",width:"16",height:"16",color:"status.error.default"}):t?(0,s.jsx)(n.NcS,{icon:"card",width:"16",height:"16",color:"rating.s65"}):null},u=e=>{let{goalsScored:t,penaltiesScored:a,hasScoredPenalty:i,hasScoredOwnGoal:c,goalsAssisted:u}=e,d=[];if(t&&t>0){a&&a>0&&(t-=a);let e=t>1;d.push((0,s.jsxs)(r.so,{position:"relative",mr:e?"xs":void 0,align:"center",children:[(0,s.jsx)(o.M,{incidentType:"goal",incidentClass:"regular",svgProps:{color:"neutrals.nLv1",width:16,height:16}}),e&&(0,s.jsx)(r.so,{justify:"center",align:"center",backgroundColor:"neutrals.nLv1",br:"[50%]",w:"md",h:"md",mx:"-xs",children:(0,s.jsx)(l.EY,{display:"block",textStyle:"display.micro",color:"surface.s1",children:t})})]},"regular-goal"))}return(u&&u>0&&d.push((0,s.jsxs)(r.so,{position:"relative",mr:u>1?"xs":void 0,align:"center",children:[(0,s.jsx)(o.M,{incidentType:"goal",incidentClass:"assist",svgProps:{color:"neutrals.nLv1",width:16,height:16}}),u>1&&(0,s.jsx)(r.so,{justify:"center",align:"center",backgroundColor:"neutrals.nLv1",br:"[50%]",w:"md",h:"md",mx:"-xs",children:(0,s.jsx)(l.EY,{display:"block",textStyle:"display.micro",color:"surface.s1",children:u})})]},"regular-goal")),c&&d.push((0,s.jsx)(r.az,{w:"lg",h:"lg",transform:"scaleX(-1)",children:(0,s.jsx)(n.NcS,{icon:"football-own-goal",width:"16",height:"16",color:"status.error.default"},"own-goal")},"lineups_own_goal")),i&&d.push((0,s.jsx)(n.NcS,{icon:"football-penalty",width:"16",height:"16",color:"neutrals.nLv1"},"penalty-goal")),0===d.length)?null:(0,s.jsx)(r.so,{gap:"2xs",align:"center",children:d})}},34306:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.19zm-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.6zm16.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.13z"})}))}a(62042),a(20325),a(1157)},34993:(e,t,a)=>{function s(e,t){let a=[];for(let s=0;so});let l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=[],l=1/a;for(let a=0;a<=e;a+=l)s.push(Math.exp(-a*a/(2*t*t)));return s},r=(e,t,a,s)=>Math.sqrt(Math.pow(a-e,2)+Math.pow(s-t,2)),n=(e,t,a)=>{let s=Math.round(t),l=Math.round(a),r=Math.round(e);return rs?r:s:l};function o(e,t,a,o){try{((e,t,a,o,i)=>{var c,u;let d,{containerId:p,isAway:h=!1,width:g,height:v,numberOfMatches:m,shootMapType:f=1,precisionLevel:y=10,isTransparentBackground:x}=a,{HEIGHT:j,WIDTH:b,MAX_POINT_VALUE:_}=e?{MAX_POINT_VALUE:6,WIDTH:160,HEIGHT:100}:{MAX_POINT_VALUE:9,WIDTH:500,HEIGHT:363},k=document.getElementById(p);if(!k)throw Error("No DOM container element for HeatMap provided");let S=e?(c=m||1,d=14,c&&c>1&&(d=Math.round((1-Math.pow(c/38,.28))*10+4)),d):(u=m||1,u>82?Math.round((1-Math.pow(u/110,.1))*8+12):Math.round((1-Math.pow(u/82,.1))*8+12)),w=e?((e,t)=>{let{width:a,height:l,isFlipped:r=!1,pointMaximum:o=100,widthScaleFactor:i=1.6,heightScaleFactor:c=1,pointValue:u=1}=t,d=s(a,l);return e.forEach(e=>{let t=r?o-e.x:e.x,s=r?e.y:o-e.y,p=n(t*i,0,a-1),h=n(s*c,0,l-1);d[p][h]+=u*(e.count||1)}),d})(t,{isFlipped:h,width:b,height:j}):function(e,t,a,l){let r=s(a+1,l+1);return e.forEach(e=>{let{x:a,y:s,made:l,missed:n}=e;switch(t){case 1:r[a- -250][s- -40]+=l+n;break;case 2:r[a- -250][s- -40]+=l;break;default:r[a- -250][s- -40]+=n}}),r}(t,f,b,j);!e&&m&&m>5&&function(e,t,a,s){let l,r,n,o,i,c;for(o=0;o<=100;o++){for(l=0,r=0,n=0,i=2;i<=10;i++)++n,l+=s[o][80-i],r+=s[o][80+i];for(c=0;c<=2;c++)s[o][e+c]=(l+r)/(2*n),s[o][e-c]=(l+r)/(2*n)}}(80,2,0,w);let C=function(e,t,a,s,l){let r=document.createElement("canvas");r.width=1,r.height=1e3;let n=r.getContext("2d");if(!n)throw Error("No color gradient context for heatmap found");let o=n.createLinearGradient(0,0,1,1e3),i=a?{0:l?"var(--graphics-terrain-footballLineups)":"var(--heatmap-hm1)",.1:"var(--heatmap-hm2)",.35:"var(--heatmap-hm3)",.8:"var(--heatmap-hm4)",1:"var(--heatmap-hm5)"}:{0:"#f8d496",.05:"#fee644",.25:"#ff9000",.4:"#fc6800",.6:"#f00800",.75:"#cc0600",.85:"#b00400",.99:"#940000",1:"#780000"};return Object.keys(i).forEach(e=>{let a=i[+e],l=Number(e);s&&l<.2?o.addColorStop(l,t.setAlpha(a,l+.2)):o.addColorStop(l,t.setAlpha(a,1))}),n.fillStyle=o,n.fillRect(0,0,1,e),n.getImageData(0,0,1,e).data}(1e3,o,e,x,i),P=((e,t,a)=>{let{height:s,width:l,gradientScaleFactor:r,gradientRange:n}=a,o=document.createElement("canvas");o.height=s,o.width=l;let i=o.getContext("2d");if(!i)throw Error("No heatmap canvas context found");let c=i.getImageData(0,0,l,s),u=c.data;for(let a=0;a{let{width:l,height:n,influenceRadius:o,precisionLevel:i=10}=a,c=s(l,n);for(let a=0;a{a.d(t,{A:()=>n});var s=a(6029),l=a(93338),r=a(3230);function n(e){return(0,s.jsxs)(r.S,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:[(0,s.jsx)("path",{d:"M15 7.75h-1.5V2.5h-11v5.25H1V1h14v6.75zM1 15v-1l1.5-1.5h4L8 14v1H1zm3.5-3.25a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:(0,l.S)("colors.primary.default")}),(0,s.jsx)("path",{d:"M11 9v2.25H8v1.5h3V15h1l3-3-3-3h-1z",fill:(0,l.S)("colors.status.error.default")})]}))}a(62042),a(20325),a(1157)},40008:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(46787),l=a(55729),r=a(45860),n=a(18970),o=a(41164),i=a(41397);function c(){let{swrConfig:e,event:t,shouldFetch:a=!0,jerseyStyle:c="fancy"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldFetch:!0},u={refreshInterval:6e4,...e},{event:d}=(0,l.useContext)(n.y$),p=a?t||d:void 0,{data:h,error:g,isLoading:v}=(0,r.Ay)(p?s.bnp.lineups(p.id):null,p?(0,o.rf)(p,u):u),[m,f]=(0,i.A)(h,"home","away"),y=p?{leftJerseyUrls:{player:s.bnp.playerJersey(p.id,"home",c),goalkeeper:s.bnp.goalkeeperJersey(p.id,"home",c)},rightJerseyUrls:{player:s.bnp.playerJersey(p.id,"away",c),goalkeeper:s.bnp.goalkeeperJersey(p.id,"away",c)}}:{leftJerseyUrls:{player:"",goalkeeper:""},rightJerseyUrls:{player:"",goalkeeper:""}},[x,j]=(0,i.A)(y,"leftJerseyUrls","rightJerseyUrls");return{lineups:h?{left:m,right:f,leftJerseyUrls:x,rightJerseyUrls:j,statisticalVersion:null==h?void 0:h.statisticalVersion}:void 0,isLoading:v,confirmed:null==h?void 0:h.confirmed,error:g}}},40094:(e,t,a)=>{a.d(t,{wf:()=>r,vD:()=>o,Cy:()=>i,Xj:()=>c,uU:()=>u,WM:()=>n,fP:()=>l});var s=a(38709);let l={[s.k.Performance]:"performance",[s.k.Distance]:"football_lineups_chip_running_distance",[s.k.Nationality]:"nationality",[s.k.Club]:"lineups_chip_club",[s.k.Age]:"age",[s.k.MarketValue]:"market_value",[s.k.Height]:"player_height"},r=[s.k.Age,s.k.MarketValue,s.k.Height,s.k.Distance],n=2,o={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}},i={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%"}},c={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}},u={1:{top:"-10%"},2:{top:"25%"},3:{top:"-10%"},4:{top:"55%"},5:{top:"5%"},6:{top:"60%"},7:{top:"25%"}}},41145:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2zm12.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.003z"})}))}a(62042),a(20325),a(1157)},41200:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2zm8.104.5a5 5 0 0 1 1.9.344c.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.121q-.93.384-2.094.384c-1.23 0-2.22-.315-2.956-.925v.02q-1.105-.915-1.309-2.538c-.029-.108.02-.158.136-.158H9.68q.145-.002.174.158c.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.4 1.4 0 0 0-.601-.551q-.408-.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-.983q.002-.62-.446-1.004c-.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.46q1.061-.885 2.792-.885"})}))}a(62042),a(20325),a(1157)},41230:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"20",heightAttr:"20",viewBox:"0 0 20 20"},e,{children:[(0,s.jsx)("path",{d:"M12 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M10 12c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M8.5 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M6.5 12c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M20 0H0v9h2V2h16v7h2z"}),(0,s.jsx)("path",{d:"M10 7.75c2.89 0 5.25 2.36 5.25 5.25s-2.36 5.25-5.25 5.25S4.75 15.89 4.75 13 7.11 7.75 10 7.75M10 6c-3.87 0-7 3.13-7 7s3.13 7 7 7 7-3.13 7-7-3.13-7-7-7"})]}))}a(62042),a(20325),a(1157)},42140:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(94008);let r=e=>{let{referee:t,children:a,ref:r,...n}=e;return(0,s.jsx)(l.A,{...n,routeKey:"referee",params:{id:t.id,slug:t.slug},ref:r,children:a})}},43029:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",{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 8 0 0 0-1.27.298q-.437.136-1.796.686c-.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.342zM7.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.671zm11.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.274z"}),(0,s.jsx)("path",{fillRule:"nonzero",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.098A.093.093 0 0 0 1 1.098zm2.865-5.72c.66 0 1.083.354 1.083 1.073 0 .738-.443 1.112-1.132 1.112H2.26V2.181zm3.269 5.72c0 .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.098zm2.865-5.72c.66 0 1.083.354 1.083 1.073 0 .738-.443 1.112-1.133 1.112H8.394V2.181z"})]})}))}a(62042),a(20325),a(1157)},44914:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",fill:"none",viewBox:"0 0 24 24"},e,{children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#fff"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"11",fill:"currentColor"}),(0,s.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m12 5 2.163 4.608L19 10.35l-3.5 3.585.826 5.064L12 16.608 7.674 19l.826-5.064L5 10.35l4.837-.743z",clipRule:"evenodd"})]}))}a(62042),a(20325),a(1157)},45262:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M7 14v3h3v2H7v3H6l-4-4 4-4zm10-2c2.76 0 5 2.24 5 5s-2.24 5-5 5-5-2.24-5-5 2.24-5 5-5m.58 1.5h-1.13v3.969l2.403 2.397.797-.797-2.07-2.07zM18 2l4 4-4 4h-1V7H6v5H4V7l2-2h11V2z"})}))}a(62042),a(20325),a(1157)},48485:(e,t,a)=>{a.d(t,{h:()=>s});let s=({id:e,incidents:t,useShortName:a,isPlayerListItem:s=!1})=>t.filter(t=>{var a,s,l,r,n;return"player"in t&&(null==(a=t.player)?void 0:a.id)===e||"manager"in t&&(null==(s=t.manager)?void 0:s.id)===e||(null==(l=t.playerOut)?void 0:l.id)===e||(null==(r=t.playerIn)?void 0:r.id)===e||(null==(n=t.assist1)?void 0:n.id)===e}).reduce((t,l)=>{var r,n,o,i,c,u,d;let p=Object.assign({},t);switch(l.incidentType){case"card":switch(l.incidentClass){case"red":p.hasRedCard=!0;break;case"yellow":p.hasYellowCard=!0;break;case"yellowRed":p.hasYellowRedCard=!0}break;case"goal":if((null==(r=l.player)?void 0:r.id)===e)switch(l.incidentClass){case"ownGoal":p.hasScoredOwnGoal=!0,p.ownGoalsScored=(t.ownGoalsScored||0)+1;break;case"penalty":p.hasScoredPenalty=!0,p.penaltiesScored=(t.penaltiesScored||0)+1,p.goalsScored=s?t.goalsScored:(t.goalsScored||0)+1;break;default:p.goalsScored=(t.goalsScored||0)+1}else(null==(n=l.assist1)?void 0:n.id)===e&&(p.goalsAssisted=(t.goalsAssisted||0)+1);break;case"substitution":(null==(o=l.playerOut)?void 0:o.id)===e?p.substitutionOut={forPlayer:(a?null==(i=l.playerIn)?void 0:i.shortName:null==(c=l.playerIn)?void 0:c.name)||l.playerNameIn,time:l.time,isInjury:"injury"===l.incidentClass}:p.substitutionIn={forPlayer:(a?null==(u=l.playerOut)?void 0:u.shortName:null==(d=l.playerOut)?void 0:d.name)||l.playerNameOut,time:l.time,isInjury:"injury"===l.incidentClass}}return p},{})},50202:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(6029),l=a(93338),r=a(3230);function n(e){return(0,s.jsxs)(r.S,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:[(0,s.jsx)("path",{d:"M12 9v2.25h3v1.5h-3V15h-1l-3-3 3-3h1z",fill:(0,l.S)("colors.status.success.default")}),(0,s.jsx)("path",{d:"M15 7.75h-1.5V2.5h-11v5.25H1V1h14v6.75zM1 15v-1l1.5-1.5h4L8 14v1H1zm3.5-3.25a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:(0,l.S)("colors.primary.default")})]}))}a(62042),a(20325),a(1157)},50373:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"m2 12.607 1.414 1.414L14.021 3.414 12.607 2zM21.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.1zm-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.14z"})}))}a(62042),a(20325),a(1157)},51523:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"20",heightAttr:"20",viewBox:"0 0 20 20"},e,{children:[(0,s.jsx)("path",{d:"M10 2c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0"}),(0,s.jsx)("path",{d:"M6 15c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M9 12c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M6 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M3 12c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M15 12c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M12 15c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M12 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M15 6c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1M18 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1"})]}))}a(62042),a(20325),a(1157)},51584:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(6029),l=a(93338),r=a(3230);function n(e){return(0,s.jsx)(r.S,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("path",{d:"M7 7h10v3h1l4-4-4-4h-1v3H7L5 7v5h2V7zm0 7H6l-4 4 4 4h1v-3h5v-2H7v-3z",fill:(0,l.S)("colors.primary.default")}),(0,s.jsx)("path",{fill:(0,l.S)("colors.status.error.default"),d:"M22 17h-3v-3h-2v3h-3v2h3v3h2v-3h3z"})]})}))}a(62042),a(20325),a(1157)},54339:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{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.7 10.7 0 0 1 5.21-2.81zM13.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.7 10.7 0 0 1-5.38 2.84l.05-.52zm-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-.68zM3.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 4m0 2c.28 0 .5-.22.5-.5S3.78 5 3.5 5s-.5.22-.5.5.22.5.5.5"}),(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.7 10.7 0 0 1 5.21-2.81zM13.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.7 10.7 0 0 1-5.38 2.84l.05-.52z"}),(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-.68zM3.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 4m0 2c.28 0 .5-.22.5-.5S3.78 5 3.5 5s-.5.22-.5.5.22.5.5.5"})]}))}a(62042),a(20325),a(1157)},54548:(e,t,a)=>{a.d(t,{K:()=>i});var s=a(46787),l=a(55729),r=a(45860),n=a(18970),o=a(41397);function i(e){let t=(0,l.useContext)(n.y$),a=e||t.event,{data:i,error:c}=(0,r.Ay)(s.bnp.managers(a.id)),[u,d]=(0,o.A)(i,"homeManager","awayManager",a),[p,h]=(0,o.A)(i,"homeManagerName","awayManagerName",a);return{managers:{leftManager:u,leftManagerName:p,rightManager:d,rightManagerName:h},error:c}}},54850:(e,t,a)=>{a.r(t),a.d(t,{default:()=>F});var s=a(6029),l=a(51569),r=a(60235),n=a(20325),o=a(55729),i=a(18970),c=a(26542),u=a(30396),d=a(46787),p=a(96861),h=a(73259);let g=e=>{let t=e.statistics;for(let e=0;e0)return!0}return!1},v=(e,t)=>{var a,s,l,r,n;return!!e.value&&null!=(a=t.statistics)&&!!a[e.value]||!!e.secondaryValue&&null!=(s=t.statistics)&&!!s[e.secondaryValue]||!!e.madesValue&&null!=(l=t.statistics)&&!!l[e.madesValue]||!!e.attemptsValue&&null!=(r=t.statistics)&&!!r[e.attemptsValue]||e.replacementValue&&!!(null==(n=t.statistics)?void 0:n[e.replacementValue])};var m=a(94565),f=a(6813),y=a(66331),x=a(40237),j=a(90248),b=a(74664),_=a(52466),k=a(26435),S=a(11219),w=a(27936),C=a(94156),P=a(57719),A=a(92859);let M=e=>{let{teamId:t,teamName:a}=e;return(0,s.jsx)(m.XI.Cell,{children:(0,s.jsx)(n.az,{py:"xs",px:"sm",children:(0,s.jsx)(x.p,{id:t,name:a,size:"xl"})})})},V=e=>{let{player:t,onClick:a}=e,r=(0,b.o)(),o=r===d.QCR.Basketball&&!!t.ejected;return(0,s.jsx)(m.XI.Cell,{children:(0,s.jsx)(S.uc,{player:t,onClick:e=>a(e,t),sportSlug:r,children:(0,s.jsxs)(n.so,{direction:"column",py:"sm",px:"lg",align:"flex-start",children:[(0,s.jsx)(l.EY,{textStyle:"body.small",_hover:{color:"primary.default"},children:(0,s.jsx)(C.c,{entity:t})}),o&&(0,s.jsx)(n.so,{bg:"status.error.default",display:"inline-flex",h:"md",align:"center",br:"md",px:"sm",children:(0,s.jsx)(l.EY,{textStyle:"assistive.micro",color:"surface.s1",children:(0,s.jsx)(j.A,{id:"basketball_player_ejected_long"})})})]})})})},H=e=>{let{statistic:t,isSortBy:a,position:r}=e,o=t.configStatsKey.replacementValue,i=o&&"number"==typeof t.stats[o]?o:t.configStatsKey.value,c=(0,k.Rs)(t.stats,t.configStatsKey);return(0,s.jsxs)(m.XI.Cell,{style:{position:"relative",whiteSpace:"nowrap"},children:[(0,s.jsx)(n.az,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",bg:a?"surface.s2":void 0}),(0,s.jsx)(l.EY,{py:"sm",px:"lg",textStyle:"body.small",textAlign:"center",display:"block",position:"relative",children:i===A.K.ExpectedGoals?(0,s.jsx)(s.Fragment,{children:c||"-"}):i===A.K.Rating?(0,s.jsx)(n.so,{justify:"center",children:(0,s.jsx)(x.G,{rating:t.stats[i]})}):i===A.K.Position?r?(0,s.jsx)(P.F,{id:r,short:!0}):"-":i!==A.K.Notes?c:c.split("\n").map(e=>e.length?(0,s.jsx)("div",{children:e},e):null)})]})},R=e=>{let{filteredTeamId:t,onFilterClick:a,leftTeam:r,rightTeam:o}=e;return(0,s.jsx)(m.XI.HeadCell,{w:170,maxW:170,minW:160,children:(0,s.jsxs)(n.so,{py:"md",px:"sm",gap:"sm",align:"center",justify:"center",children:[(0,s.jsxs)(n.so,{align:"center",gap:"xs",minW:"fit",p:"xs",br:"[20px]",border:"[1px solid]",borderColor:t?"[transparent]":"primary.highlight",bg:t?"surface.s2":"primary.highlight",onClick:()=>a(void 0),cursor:"pointer",children:[(0,s.jsx)(x.p,{id:r.id,name:r.name,size:"xl"}),(0,s.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:"+"}),(0,s.jsx)(x.p,{id:o.id,name:o.name,size:"xl"})]}),(0,s.jsx)(n.az,{p:"xs",br:"50%",border:"[1px solid]",borderColor:t===r.id?"primary.highlight":"[transparent]",bg:t===r.id?"primary.highlight":"surface.s2",onClick:()=>a(r.id),cursor:"pointer",children:(0,s.jsx)(x.p,{id:r.id,name:r.name,size:"xl",style:{verticalAlign:"top"}})}),(0,s.jsx)(n.az,{p:"xs",br:"50%",border:"[1px solid]",borderColor:t===o.id?"primary.highlight":"[transparent]",bg:t===o.id?"primary.highlight":"surface.s2",onClick:()=>a(o.id),cursor:"pointer",children:(0,s.jsx)(x.p,{id:o.id,name:o.name,size:"xl",style:{verticalAlign:"top"}})})]})})},T=e=>{let{statistic:t,sortConfig:a,onColumnClick:r,sport:o}=e,i=t.configStatsKey.replacementValue,c="";c=i&&"number"==typeof t.stats[i]?i:t.configStatsKey.value;let u=a.stat.value===t.configStatsKey.value,h=u&&a.dir===p.UE.ASC,g=c===A.K.Notes;return(0,s.jsx)(m.XI.HeadCell,{onClick:()=>{c!==A.K.Notes&&r(t.configStatsKey)},style:{position:"relative"},children:(0,s.jsxs)(n.az,{minW:g?"[124px]":o===d.QCR.AmericanFootball?"[100px]":void 0,p:"xs",textAlign:"center",cursor:g?"default":"pointer",children:[(0,s.jsx)(n.so,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",bg:u?"surface.s2":void 0}),(0,s.jsx)(n.ov,{minH:"2xl",position:"relative",children:(0,s.jsx)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",textAlign:"center",children:(0,s.jsx)(w.w,{id:c})})}),(0,s.jsx)(_.Bfd,{color:g?"[transparent]":u?"primary.default":"neutrals.nLv4",style:{transition:"transform 0.3s ease-in-out",transform:" rotate(".concat(180*!!h,"deg)")}})]})})};var z=a(947),G=a(70047),O=a(50677),I=a(91113),L=a(22375),N=a(63561);let B=e=>{let{sortConfig:t,updateSortStatistic:a,filteredTeamId:l,onFilterClick:r,defaultSortStat:c,stats:u,lineups:v,groupName:x}=e,{event:j,leftTeam:b,rightTeam:_}=(0,o.useContext)(i.y$),{openEventPlayerStatistics:S}=(0,y.d)(),w=((e,t,a,s,l,r)=>{let{event:n,leftTeam:c,rightTeam:u}=(0,o.useContext)(i.y$),p=(0,z.A)(),v=n.tournament.category.sport.slug,m={},f={},y=(e,t)=>{r&&r!==t.id||(m[e.player.id]={teamId:t.id,teamName:t.name},f[e.player.id]=e)};s.left.players.forEach(e=>y(e,c)),s.right.players.forEach(e=>y(e,u));let x=((e,t)=>{let a={};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),r=Number(s.statistics.aerialWon||0)+Number(s.statistics.aerialLost||0),n=l-r,o=s.statistics.aerialWon||l-n-Number(s.statistics.aerialLost||0),i=s.statistics.groundWon||Number(s.statistics.duelWon)-Number(o),c=Number(s.statistics.faceOffTaken||0),u=Number(s.statistics.kickingFgAttempts||0),p=s.statistics.minutesPlayed,h="-";!p&&s.statistics.secondsPlayed&&(t===d.QCR.IceHockey?h=(0,L.OV)(Number(s.statistics.secondsPlayed)):p=Math.round(Number(s.statistics.secondsPlayed)/60));let g=0;"number"==typeof s.statistics.saves&&"number"==typeof s.statistics.gkShots&&s.statistics.gkShots>0&&(g=Number(s.statistics.saves)/Number(s.statistics.gkShots)*100),"number"==typeof s.statistics.saves&&"number"==typeof s.statistics.shotsAgainst&&s.statistics.shotsAgainst>0&&(g=Number(s.statistics.saves)/Number(s.statistics.shotsAgainst)*100);let v=0;"number"==typeof s.statistics.goals&&"number"==typeof s.statistics.shotsTaken&&s.statistics.shotsTaken>0&&(v=Number(s.statistics.goals)/Number(s.statistics.shotsTaken)*100);let m=0;(0,k.Kk)(s.statistics)&&(m=(0,k.C2)(s.statistics)),a[s.player.id]={...s,statistics:{...s.statistics,totalDefensiveActions:e,totalDuels:l,totalAerialDuels:r,totalGroundDuels:n,aerialWon:o,groundWon:i,duelWon:s.statistics.duelWon||0,minutesPlayed:p,timeOnIce:h,faceOffTakenOnly:c,kickingFg:u,goalkeeperEfficiencyPercentage:g,shotAccuracy:v,position:s.position||0,passingRating:m}}}return a})(Object.values(f),v);return((e,t,a)=>{let s=[];for(let l of e.players){let r=[];for(let a of t){let{statistics:t}=l;if(!e.players.every(e=>{var t;return!a.textualDescription&&!(null==(t=e.statistics)?void 0:t[a.value])&&a.hideIfNone})&&t){let e={stats:{},configStatsKey:{...a}};if(e.stats[a.value]=a.value in t?t[a.value]:0,"minutesPlayed"===a.value&&"number"==typeof e.stats[a.value]&&(e.stats[a.value]="".concat(e.stats[a.value],"'")),a.secondaryValue&&(e.stats[a.secondaryValue]=a.secondaryValue in t?t[a.secondaryValue]:0),a.madesValue&&(e.stats[a.madesValue]=a.madesValue in t?t[a.madesValue]:0),a.attemptsValue&&(e.stats[a.attemptsValue]=a.attemptsValue in t?t[a.attemptsValue]:0),a.textualDescription){let s=Object.keys(a.textualDescription),l={};for(let e of s)l[e]=Number(t[e]||0);e.stats[a.value]=l}a.replacementValue&&"number"==typeof t[a.replacementValue]&&(e.stats[a.replacementValue]=t[a.replacementValue]),r.push(e)}}s.push({player:{...l.player,...a(l.player.id),position:l.position,ejected:l.ejected},statistics:r})}return s})({players:Object.values((0,G.C)(x,e,l,v))},a,e=>m[e]).filter(e=>((e,t,a)=>t===d.QCR.Football&&e===h.aS?a.player.position===h.sI:t===d.QCR.Handball?e!==h.v1||g(a):t===d.QCR.IceHockey?e!==h.aS||g(a):t!==d.QCR.AmericanFootball||g(a))(t,v,e)).map(e=>((e,t,a)=>{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,I.OX)(O,e,a)});return e})(e,p,v))})(t,x,u,v,c,l),C=(e,t)=>{e.preventDefault(),j.hasEventPlayerStatistics&&S({event:j,player:t},p._l.PlayerStats)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(m.XI,{w:"100%",children:[(0,s.jsx)(m.XI.Head,{children:(0,s.jsxs)(m.XI.Row,{children:[(0,s.jsx)(m.XI.HeadCell,{maxW:40,w:40,children:(0,s.jsx)(n.az,{w:"3xl",h:"xl"})}),(0,s.jsx)(R,{filteredTeamId:l,onFilterClick:r,leftTeam:b,rightTeam:_}),w.length?w[0].statistics.map(e=>(0,s.jsx)(T,{sport:(0,N.c5)(j),statistic:e,sortConfig:t,onColumnClick:()=>a(e.configStatsKey,x)},e.configStatsKey.value)):(0,s.jsx)(n.so,{w:"100%"})]})}),!!w.length&&w.map(e=>(0,s.jsx)(m.XI.Body,{children:(0,s.jsxs)(m.XI.Row,{children:[(0,s.jsx)(M,{teamId:e.player.teamId,teamName:e.player.teamName}),(0,s.jsx)(V,{player:e.player,onClick:C}),e.statistics.map(a=>(0,s.jsx)(H,{statistic:a,isSortBy:a.configStatsKey.value===t.stat.value,position:e.player.position},a.configStatsKey.value))]})},e.player.id))]}),!w.length&&(0,s.jsx)(n.so,{w:"100%",justify:"center",children:(0,s.jsx)(f.p,{graphic:"no-statistics",titleMessageId:"player.noStatistics",descriptionMessageId:"no_statistics_text"})})]})};var E=a(73183);let F=e=>{let{lineups:t}=e,a=(0,o.useContext)(i.Ws),g=(0,c.nm)(a),m=((e,t,a)=>a===d.QCR.AmericanFootball?Object.keys(e).filter(a=>e[a].find(e=>!!t.left.players.find(t=>v(e,t))||!!t.right.players.find(t=>v(e,t)))):Object.keys(e))(g,t,a),f=(0,o.useRef)(null),y=(0,r.uc)(f),[x,j]=(0,o.useState)(m[0]),[b,_]=(0,o.useState)(),{defaultSorts:k,sortConfigs:S,updateSortStatistic:w}=((e,t)=>{let a=(0,o.useMemo)(()=>{let a={};return Object.keys(h.Oi[e]).forEach(s=>{let l=h.Oi[e][s];a[s]=t[s].find(e=>e.value===l)||t[s][0]}),a},[e]),[s,l]=(0,o.useState)(()=>(e=>{let t={};return Object.keys(e).forEach(a=>{t[a]={stat:e[a],dir:p.UE.DESC}}),t})(a));return{defaultSorts:a,sortConfigs:s,updateSortStatistic:(e,t)=>{l(a=>({...a,[t]:(0,E.I)(a[t],e)}))}}})(a,g),C=(0,o.useCallback)(e=>_(e),[]);return m?(0,s.jsxs)(l.tU,{variant:"tertiary",initialValue:x||0,onChange:e=>j(e),children:[(0,s.jsx)(n.az,{py:"sm",px:"lg",children:(0,s.jsx)(l.tU.List,{children:m.map(e=>(0,s.jsx)(l.tU.Tab,{tabKey:e,children:(0,s.jsx)(u.R,{id:e})},e))})}),m.map(e=>(0,s.jsx)(l.tU.Panel,{tabKey:e,children:(0,s.jsx)(n.az,{pb:"lg",ref:f,children:(0,s.jsx)(l.tR,{scrollButtonTopPosition:38,children:(0,s.jsx)(n.az,{style:{minWidth:y},children:(0,s.jsx)(B,{sortConfig:S[e],updateSortStatistic:w,defaultSortStat:k[e],filteredTeamId:b,onFilterClick:C,stats:g[e],lineups:t,groupName:e})})})})},e))]}):null}},55803:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.5m-.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-.25a6 6 0 0 0-.55-.55l-.36.25-2.33-.75-.81-.91c-.09-.01-.17-.01-.26-.01m.87 6.14 2.34.48.4 2.28-2.27 1.18-1.61-1.6zM11 13.49l1.16 1.78-1.15 2.37H8.93l-1.37-2.1 1-2.05zm1.85-2.32 2.31.74.98 2.28-.87 1.16-2.47-.51-1.16-1.79zM22 2v9h-2V4H4v7H2V2z"})}))}a(62042),a(20325),a(1157)},56300:(e,t,a)=>{a.d(t,{N:()=>s});let s=(0,a(55729).createContext)("left")},56853:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.9 9.9 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.9 9.9 0 0 0 2.84-6.57c.06-1.36-.12-2.27-.64-2.88zm-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.06zm-9.93-4.47h-5.19v-.46c0-.4.07-.7.2-.91s.34-.36.62-.46.63-.2 1.06-.28c.67-.12 1.26-.31 1.76-.57s.9-.61 1.18-1.06c.28-.44.43-1 .43-1.67 0-.63-.15-1.18-.44-1.62-.29-.45-.7-.79-1.21-1.02S6.405 2 5.735 2c-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.13s.75-.41 1.33-.41c.51 0 .91.13 1.19.39s.42.58.42.97c0 .42-.13.78-.38 1.08q-.39.45-1.23.57c-.77.12-1.43.31-1.97.57q-.81.39-1.23 1.08c-.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-.14z"})}))}a(62042),a(20325),a(1157)},57603:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2zm8.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.233q.348 0 .545-.182c.132-.121.202-.303.202-.566v-.697c0-.111.05-.162.162-.162z"})}))}a(62042),a(20325),a(1157)},57724:(e,t,a)=>{a.d(t,{Di:()=>u,QC:()=>i,dv:()=>r,fS:()=>c,iF:()=>d,jf:()=>n,rt:()=>l});var s=a(46787);let l=[s.QCR.Tennis,s.QCR.Darts],r=[s.QCR.Football,s.QCR.IceHockey,s.QCR.Handball,s.QCR.Futsal,s.QCR.Minifootball,s.QCR.Waterpolo,s.QCR.Floorball,s.QCR.Bandy],n=[...l,s.QCR.Cricket],o=[s.QCR.AussieRules,s.QCR.Basketball,s.QCR.Volleyball,s.QCR.TableTennis,s.QCR.Badminton,s.QCR.BeachVolley],i=[s.QCR.Basketball,s.QCR.AussieRules],c=[s.QCR.IceHockey,s.QCR.Floorball,s.QCR.Bandy];function u(e){return o.includes(e)}let d=e=>"yellow"===e?"yellowCard":"red"===e?"redCard":"yellowRed"===e?"yellowRed":void 0},59e3:(e,t,a)=>{a.d(t,{t:()=>r,u:()=>l});var s=a(46787);let l=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Handball,s.QCR.IceHockey];function r(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}}},59014:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"16",heightAttr:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{d:"M10.99 9.93v1.316L9.74 13.75 7.236 15h-.659l.057-.028 2.296-2.427 1.344-3.02zm-2.624 2.172-2.06 2.249-1.609.63-2.06-1.035 1.222-.263 2.09-1.825 1.25-2.484H9.57zM1.771 8.266l1.619 2.699 1.59.81-1.45 1.26-1.486.32L1 11.246V8.754l1.12-2.25zm2.832-1.76 1.9 2.69-1.006 2.042-1.61-.81-1.372-2.294.45-2.24L4.746 5h.018zm5.7.893.687 1.356v.386l-.78-.471H6.992l-1.336-1.89h3.096zM9.73 6.261l.094.225-.865-.385-3.604-.029L5.47 5h1.768zm5.262-3.21-3.391 3.326-1.07-1.05L13.92 2zm-3.03-1.001L10 3.976l-1.07-1.05L10.892 1z"})}))}a(62042),a(20325),a(1157)},60926:(e,t,a)=>{a.d(t,{$q:()=>l,F7:()=>i,VV:()=>r,dx:()=>z,e:()=>R,fu:()=>s,ms:()=>O,n1:()=>L,rW:()=>T,rj:()=>N,sN:()=>G,z8:()=>I});let s={value:"goals",short:"GLS"},l={value:"goalAssist"},r={value:"expectedGoals",translationInfoKey:"football_expected_goals_player_info_text",hideIfNone:!0},n={value:"onTargetScoringAttempt"},o={value:"blockedScoringAttempt"},i={value:"expectedAssists",hideIfNone:!0},c={value:"keyPass",translationInfoKey:"football_key_passes_explained"},u={value:"accuratePass",madesValue:"accuratePass",attemptsValue:"totalPass",compareValue:"accuratePass",compareSecondValue:"totalPass"},d={value:"touches"},p={value:"wasFouled",hideIfNone:!0},h={value:"interceptionWon"},g={value:"totalClearance"},v={value:"outfielderBlock"},m={value:"totalGroundDuels",secondaryValue:"groundWon",compareValue:"totalGroundDuels",compareSecondValue:"groundWon"},f={value:"totalAerialDuels",secondaryValue:"aerialWon",compareValue:"totalAerialDuels",compareSecondValue:"aerialWon",hideIfNone:!0},y={value:"fouls",hideIfNone:!0},x={value:"challengeLost"},j={value:"errorLeadToAShot",hideIfNone:!0},b={value:"errorLeadToAGoal",hideIfNone:!0},_={value:"saves"},k={value:"goalsPrevented",translationInfoKey:"goals_prevented_info_text",hideIfNone:!0},S={value:"punches"},w={value:"goodHighClaim"},C={value:"position",hideIfNone:!0},P={value:"rating",hideIfNone:!0},A={...u,sortKey:"accuratePass",hideIfNone:!0},M={value:"totalDuels",secondaryValue:"duelWon",compareValue:"totalDuels",compareSecondValue:"duelWon",hideIfNone:!0},V={value:"totalTackle",hideIfNone:!0},H=[s,r,l,i],R=[{value:"totalShots"},{value:"expectedGoalsOnTarget",translationInfoKey:"football_expected_goals_on_target_explained",hideIfNone:!0},n,{value:"hitWoodwork",hideIfNone:!0},o,{value:"bigChanceMissed",hideIfNone:!0},{value:"penaltyMiss",translationKey:"football_penalties_missed",hideIfNone:!0},{value:"totalOffside",hideIfNone:!0},{value:"penaltyShootoutGoal",hideIfNone:!0},{value:"penaltyShootoutMiss",hideIfNone:!0}],T=[{value:"bigChanceCreated",hideIfNone:!0},c,{value:"totalCross",secondaryValue:"accurateCross"},u,{value:"totalOppositionHalfPasses",madesValue:"accurateOppositionHalfPasses",attemptsValue:"totalOppositionHalfPasses",compareValue:"accurateOppositionHalfPasses",compareSecondValue:"totalOppositionHalfPasses",hideIfNone:!0},{value:"accurateOwnHalfPasses",madesValue:"accurateOwnHalfPasses",attemptsValue:"totalOwnHalfPasses",compareValue:"accurateOwnHalfPasses",compareSecondValue:"totalOwnHalfPasses",hideIfNone:!0},{value:"accurateLongBalls",madesValue:"accurateLongBalls",attemptsValue:"totalLongBalls",compareValue:"accurateLongBalls",compareSecondValue:"totalLongBalls",hideIfNone:!0}],z=[{value:"kilometersCovered",hideIfNone:!0},{value:"topSpeed",hideIfNone:!0},{value:"numberOfSprints",hideIfNone:!0},{value:"metersCoveredWalkingAndJoggingKm",secondaryValue:"metersCoveredWalkingAndJoggingPct",hideAttempts:!0,hideIfNone:!0},{value:"metersCoveredRunningKm",secondaryValue:"metersCoveredRunningPct",attemptsValue:"kilometersCovered",hideAttempts:!0,hideIfNone:!0},{value:"metersCoveredHighSpeedRunningKm",secondaryValue:"metersCoveredHighSpeedRunningPct",hideAttempts:!0,hideIfNone:!0},{value:"metersCoveredSprintingKm",secondaryValue:"metersCoveredSprintingPct",hideAttempts:!0,hideIfNone:!0}],G=[d,{value:"unsuccessfulTouch",hideIfNone:!0},{value:"totalContest",secondaryValue:"wonContest"},p,{value:"penaltyWon",hideIfNone:!0},{value:"possessionLostCtrl",hideIfNone:!0}],O=[{value:"totalTackle",secondaryValue:"wonTackle"},h,g,v,{value:"ballRecovery",hideIfNone:!0},m,f,{value:"clearanceOffLine",hideIfNone:!0},{value:"lastManTackle",hideIfNone:!0},y,x,j,b,{value:"ownGoals",hideIfNone:!0},{value:"penaltyConceded",hideIfNone:!0}],I=[{value:"penaltyFaced",secondaryValue:"penaltySave",hideIfNone:!0},{value:"penaltyShootoutSave",hideIfNone:!0},_,k,{value:"savedShotsFromInsideTheBox",hideIfNone:!0},S,{value:"totalKeeperSweeper",secondaryValue:"accurateKeeperSweeper",hideIfNone:!0},w,j,b,{value:"crossNotClaimed",hideIfNone:!0}],L={G:{summaryGroup:[{...s,hideIfNone:!0},r,{...l,hideIfNone:!0},i],goalkeeperGroup:I,passGroup:T,runningGroup:z,dribbleGroup:G,defendGroup:O,shotGroup:R},F:{summaryGroup:H,shotGroup:R,runningGroup:z,dribbleGroup:G,passGroup:T,defendGroup:O},M:{summaryGroup:H,passGroup:T,runningGroup:z,shotGroup:R,dribbleGroup:G,defendGroup:O},D:{summaryGroup:H,runningGroup:z,defendGroup:O,passGroup:T,dribbleGroup:G,shotGroup:R},default:{summaryGroup:H,passGroup:T,shotGroup:R,runningGroup:z,dribbleGroup:G,defendGroup:O}},N={summaryGroup:[s,{value:"goalAssist",hideIfNone:!0},V,A,M,m,f,{value:"minutesPlayed"},C,P],attackGroup:[n,r,{value:"shotOffTarget",hideIfNone:!0},o,{value:"totalContest",secondaryValue:"wonContest",compareValue:"wonContest",compareSecondValue:"totalContest"},{value:"notes",textualDescription:{hitWoodwork:"hitWoodwork",penaltyMiss:"football_penalties_missed",penaltyWon:"penaltyWon",bigChanceMissed:"bigChanceMissed",penaltyShootoutGoal:"penaltyShootoutGoal",penaltyShootoutMiss:"penaltyShootoutMiss"}},C,P],defenceGroup:[{value:"totalDefensiveActions",hideIfNone:!0},g,v,h,V,x,{value:"notes",textualDescription:{clearanceOffLine:"clearanceOffLine",lastManTackle:"lastManTackle",errorLeadToAShot:"errorLeadToAShot",errorLeadToAGoal:"errorLeadToAShot",ownGoals:"ownGoals",penaltyConceded:"penaltyConceded"}},C,P],passingGroup:[d,u,c,{value:"totalCross",secondaryValue:"accurateCross",compareValue:"totalCross",compareSecondValue:"accurateCross",hideIfNone:!0},{value:"totalLongBalls",secondaryValue:"accurateLongBalls",compareValue:"totalLongBalls",compareSecondValue:"accurateLongBalls",hideIfNone:!0},{value:"notes",textualDescription:{bigChanceCreated:"bigChanceCreated"}},C,P],duelsGroup:[M,m,f,{value:"possessionLostCtrl",hideIfNone:!0},y,p,{value:"totalOffside",hideIfNone:!0},C,P],goalkeeperGroup:[_,{...k,translationInfoKey:"goals_prevented_info_text"},S,w,{value:"notes",textualDescription:{savedShotsFromInsideTheBox:"savedShotsFromInsideTheBox",penaltySave:"penaltySave",errorLeadToAShot:"errorLeadToAShot",errorLeadToAGoal:"errorLeadToAGoal",penaltyConceded:"penaltyConceded"}},P]}},64634:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M21 2H2v9h2V4h16v7h2V2zm-9 20a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5"})}))}a(62042),a(20325),a(1157)},69693:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"14",heightAttr:"14",viewBox:"0 0 14 14"},e,{children:(0,s.jsxs)("g",{clipPath:"url(#IconFootballBall16_svg__clip0_1_842)",children:[(0,s.jsx)("path",{d:"m9.5 5.83-2.76 1v3.02l2.08.81 2.07-2.29z"}),(0,s.jsx)("path",{d:"M7 0C3.14 0 0 3.14 0 7s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7m0 12.26c-.97 0-1.88-.27-2.66-.73l.25-1.38-1.55-1.73-.94.48A5.2 5.2 0 0 1 1.74 7v-.17l2.01-.72.66-2.48-.92-.55a5.24 5.24 0 0 1 3.5-1.35c.1 0 .19 0 .29.01l-.29 1.07 2.72 1.15.88-.81c1.02.96 1.67 2.32 1.67 3.83 0 2.9-2.36 5.27-5.26 5.27z"})]})}))}a(62042),a(20325),a(1157)},70047:(e,t,a)=>{a.d(t,{C:()=>i});var s=a(99452),l=a.n(s),r=a(73259),n=a(92859),o=a(96861);function i(e,t,a,s){let i=t.stat,c=t.dir,u=[],d=[];if(i.value===n.K.Position&&(u.push(e=>r.EN[s].indexOf(e.position)),d.push(t.dir)),i.percentageOnly&&(u.push(e=>{let t=e.statistics&&i.madesValue?e.statistics[i.madesValue]:0,a=e.statistics&&i.attemptsValue?e.statistics[i.attemptsValue]:0;return t&&a?t/a:0}),d.push(t.dir)),i.madesValue){let e=i.madesValue;if(u.push(t=>{var a,s;return null!=(s=null==(a=t.statistics)?void 0:a[e])?s:0}),d.push(c),i.attemptsValue&&i.reverseSecondCompare){let e=i.attemptsValue;u.push(t=>{var a,s;return null!=(s=null==(a=t.statistics)?void 0:a[e])?s:0}),d.push(c===o.UE.ASC?o.UE.DESC:o.UE.ASC)}}let p=i.compareValue;return p&&(u.push(e=>{var t,a;return null!=(a=null==(t=e.statistics)?void 0:t[p])?a:0}),d.push(c)),u.push(e=>{var t,a,s,l;return null!=(l=null!=(s=null==(t=e.statistics)?void 0:t[i.value])?s:i.replacementValue?null==(a=e.statistics)?void 0:a[i.replacementValue]:void 0)?l:0}),d.push(c),u.push(e=>{var t,s;return null!=(s=null==(t=e.statistics)?void 0:t[a.value])?s:0}),d.push(o.UE.DESC),u.push(e=>{var t;return null!=(t=e.player.shortName)?t:""}),d.push(o.UE.ASC),l()(e,u,d)}},70512:(e,t,a)=>{a.d(t,{A:()=>M});var s=a(6029),l=a(33144),r=a(46787),n=a(94565),o=a(55729),i=a(66331),c=a(96861),u=a(11219),d=a(88505),p=a(48827),h=a(99902),g=a(25766),v=a(91407),m=a(48485),f=a(19991),y=a(51569),x=a(90248),j=a(18970),b=a(52466),_=a(57719),k=a(80055),S=a(33079),w=a(94536),C=a(39836);let P=e=>{let{summary:t,type:a,gender:l=r.YT8.Male}=e;return(0,s.jsxs)(n.so,{align:"center",mt:"xs",children:[(0,s.jsx)(S.FU,{isInjury:t.isInjury,type:a}),(0,s.jsx)(y.EY,{textStyle:"assistive.default",color:t.forPlayer?"out"===a?"status.error.default":"secondary.default":"neutrals.nLv3",mx:"2xs",ml:"xs",children:t.time&&"".concat(t.time,"'")}),t.forPlayer&&(0,s.jsxs)(y.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mx:"2xs",children:[(0,s.jsx)(x.A,{id:"out"===a?"substituted_in":"substituted_out",values:{gender:l}}),": \xa0",t.forPlayer]})]})};function A(e){var t,a,l,i,c;let{player:d,onClick:h,incidents:A,hasRating:M,isLast:V,isNotStarted:H,highlightStarter:R=!0,isPlayerOfTheMatch:T,playerPerformanceRatingCategories:z,statisticalVersion:G}=e,O=(null==d||null==(t=d.statistics)?void 0:t.rating)?Number(d.statistics.rating):void 0,{playerCharacteristicChip:I}=(0,o.useContext)(p.h),L=I===g.k.Performance,{name:N,id:B}=d.player,E=(0,o.useMemo)(()=>A?(0,m.h)({id:d.player.id,incidents:A,useShortName:d.substitute,isPlayerListItem:!0}):{},[d,A]),F=(0,k.z)(d.player),K=(0,w.sP)(F,d.captain,!0),D=(0,o.useContext)(j.Ws),Y=D===r.QCR.Cricket,W="rtl"===document.dir,Q=!d.substitute&&R;return!O&&H&&d.avgRating&&(O=d.avgRating),(0,s.jsx)(u.uc,{player:d.player,onClick:h,sportSlug:D,children:(0,s.jsxs)(n.so,{hoverBg:d.player.disabled?void 0:"surface.s2",cursor:d.player.disabled?"not-allowed":"pointer",children:[(0,s.jsx)(n.az,{py:"xxs",children:(0,s.jsx)(n.az,{w:4,h:"100%",bg:Q?"sofaSingles.value":"transparent"})}),(0,s.jsxs)(n.az,{position:"relative",pl:"md",pr:"lg",py:"sm",children:[(0,s.jsx)(v.t,{size:"3xl",id:B,name:N}),T&&(0,s.jsx)(b.ue7,{position:"absolute",style:{color:(0,f.As)(null==(a=d.statistics)?void 0:a.rating)},bottom:"sm",left:"lg",w:16,h:16}),Q&&(0,s.jsx)(n.az,{position:"absolute",bottom:4,left:"50%",style:{transform:W?"translateX(50%)":"translateX(-50%)"},bg:"sofaSingles.value",br:6,children:(0,s.jsx)(y.EY,{px:"[6px]",textStyle:"assistive.micro",color:"surface.s1",display:"block",children:(0,s.jsx)(x.A,{id:"starter"})})})]}),(0,s.jsxs)(n.so,{borderBottom:V?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:[(0,s.jsxs)(n.so,{direction:"column",minW:0,flex:"1",children:[(0,s.jsxs)(n.so,{title:K,align:"center",gap:"xs",children:[(0,s.jsxs)(y.EY,{textStyle:"body.medium",color:"neutrals.nLv1",mr:"xs",children:[d.jerseyNumber&&(0,s.jsx)(n.az,{as:"bdi",mr:"xs",children:d.jerseyNumber}),(0,s.jsx)(n.az,{as:"span",children:K})]}),L&&(0,s.jsx)(S.X0,{...E}),L&&(0,s.jsx)(S.AG,{...E})]}),(null==(l=E.substitutionIn)?void 0:l.time)&&(null==(i=E.substitutionIn)?void 0:i.forPlayer)&&(0,s.jsx)(P,{summary:E.substitutionIn,type:"in",gender:d.player.gender}),(null==(c=E.substitutionOut)?void 0:c.time)&&(0,s.jsx)(P,{summary:E.substitutionOut,type:"out",gender:d.player.gender}),Y&&d.position&&(0,s.jsx)(y.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mx:"2xs",ml:"xs",children:(0,s.jsx)(_.F,{id:d.position})})]}),(0,s.jsx)(n.so,{align:"center",children:(0,s.jsx)(C.M,{player:d,hasRating:M,rating:O,playerPerformanceRatingCategories:z,statisticalVersion:G})})]})]})})}function M(e){let{players:t,team:a,event:g,manager:v,incidents:m,showLastMatches:f,hasTopBorder:y,hideTeamHeader:x,highlightStarters:j=!0,hasRating:b,playerOfTheMatchId:_,playerPerformanceRatingCategories:k,statisticalVersion:S}=e,w=g.tournament.category.sport.slug,{playerPerformanceRatingCategory:C}=(0,o.useContext)(p.h),{openEventPlayerStatistics:P}=(0,i.d)(),M=(0,o.useCallback)(e=>t=>{!e.disabled&&(f||g.hasEventPlayerStatistics)&&(t.preventDefault(),P({event:g,player:e,playerPerformanceRatingCategory:C},c._l.Lineups))},[g,t,P,C]),V=t.length>0,H=!!v,R=w===r.QCR.Football;return V||H?(0,s.jsxs)(n.az,{pt:"sm",pb:["sm","md"],flex:"1 1 50%",borderTop:y?"onSurface.nLv4":void 0,children:[!x&&!R&&(0,s.jsx)(u.gT,{team:a,sport:w,children:(0,s.jsxs)(n.so,{align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,s.jsx)(n.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.p,{id:a.id,name:a.name,size:"3xl"})}),(0,s.jsx)(n.az,{children:(0,s.jsx)(n.EY,{font:"display.large",children:(0,s.jsx)(d.Rm,{team:a})})})]})}),H&&!R&&(0,s.jsx)(h.A,{manager:v,isBorderHidden:!V,incidents:null==m?void 0:m.filter(e=>e.manager)}),t.map((e,a)=>(0,s.jsx)(A,{player:e,incidents:m,hasRating:b,onClick:M(e.player),isNotStarted:g.status.type===r.XUj.NotStarted,isLast:a===t.length-1,highlightStarter:j,isPlayerOfTheMatch:_===e.player.id,playerPerformanceRatingCategories:k,statisticalVersion:S},e.player.id))]}):null}},71300:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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-.78zm4.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.41z"})}))}a(62042),a(20325),a(1157)},72590:(e,t,a)=>{a.d(t,{A:()=>u});var s=a(6029),l=a(87827),r=a(46787),n=a(22375),o=a(86903),i=a(77285);function c(e){let t="rtl"===document.dir;if(100===e||1===e)return"1.00";let a=e<1?e:(0,o.M)(e/100,3),s="".concat(a).substring(1).padEnd(4,"0");return t?s.replace(".","").padEnd(4,"."):s}let u=function(e){var t,a,u,d,p;let{stat:h,sport:g}=e,{selectedStat:v}=e;switch(v=v.split(i.I)[0],g){case r.QCR.Football:return"rating"===(t=v)?(0,s.jsx)(l.G,{format:"sideBox",rating:h[t]}):"accuratePasses"===t?"".concat((0,o.M)(h.accuratePasses/h.appearances,1)," (").concat((0,o.M)(h.accuratePassesPercentage),"%)"):"successfulDribbles"===t?"".concat((0,o.M)(h.successfulDribbles/h.appearances,1)," (").concat((0,o.M)(h.successfulDribblesPercentage),"%)"):"penaltyGoals"===t?h.penaltiesTaken?"".concat(h.penaltyGoals," / ").concat(h.penaltiesTaken):h.penaltyGoals:"freeKickGoal"===t?"".concat(h.freeKickGoal," / ").concat(h.shotFromSetPiece):"scoringFrequency"===t?(0,o.M)(h[t]):"totalShots"===t?"".concat((0,o.M)(h.totalShots/h.appearances,1)):"shotsOnTarget"===t?"".concat((0,o.M)(h.shotsOnTarget/h.appearances,1)):"keyPasses"===t?(0,o.M)(h.keyPasses/h.appearances,1):"accurateLongBalls"===t?(0,o.M)(h.accurateLongBalls/h.appearances,1):"tackles"===t?(0,o.M)(h.tackles/h.appearances,1):"interceptions"===t?(0,o.M)(h.interceptions/h.appearances,1):"possessionLost"===t?(0,o.M)(h.possessionLost/h.appearances,1):"saves"===t?(0,o.M)(h.saves/h.appearances,1):"mostConceded"===t||"leastConceded"===t?(0,o.M)(h.goalsConceded/h.appearances,1):"clearances"===t?(0,o.M)(h.clearances/h.appearances,1):"expectedGoals"===t?"".concat((0,o.M)(h.expectedGoals,2)," (").concat(h.goals,")"):"expectedAssists"===t?"".concat((0,o.M)(h.expectedAssists,2)," (").concat(h.assists||0,")"):"goalsPrevented"===t?"".concat((0,o.M)(h.goalsPrevented,2)):"kilometersCovered"===t?"".concat((0,o.M)(h.kilometersCovered/h.minutesPlayed*90,1)," km"):"numberOfSprints"===t?"".concat((0,o.M)(h.numberOfSprints/h.minutesPlayed*90,1)):"topSpeed"===t?"".concat((0,o.M)(h.topSpeed,1)," km/h"):h[t];case r.QCR.Basketball:return"rating"===(a=v)?(0,s.jsx)(l.G,{format:"sideBox",rating:h[a]}):"secondsPlayed"===a?(0,n.OV)(h.secondsPlayed/h.appearances):"fieldGoalsPercentage"===a?"".concat((0,o.M)(h.fieldGoalsPercentage),"% (").concat((0,o.M)(h.fieldGoalsMade/h.appearances,1),")"):"freeThrowsPercentage"===a?"".concat((0,o.M)(h.freeThrowsPercentage),"% (").concat((0,o.M)(h.freeThrowsMade/h.appearances,1),")"):"threePointsPercentage"===a?"".concat((0,o.M)(h.threePointsPercentage),"% (").concat((0,o.M)(h.threePointsMade/h.appearances,1),")"):"points"===a?(0,o.M)(h.points/h.appearances,1):"rebounds"===a?(0,o.M)(h.rebounds/h.appearances,1):"assists"===a?(0,o.M)(h.assists/h.appearances,1):"defensiveRebounds"===a?(0,o.M)(h.defensiveRebounds/h.appearances,1):"offensiveRebounds"===a?(0,o.M)(h.offensiveRebounds/h.appearances,1):"steals"===a?(0,o.M)(h.steals/h.appearances,1):"turnovers"===a?(0,o.M)(h.turnovers/h.appearances,1):"blocks"===a?(0,o.M)(h.blocks/h.appearances,1):"assistTurnoverRatio"===a?(0,o.M)(h.assistTurnoverRatio,2):"plusMinus"===a?(0,o.M)(h.plusMinus/h.appearances,1):"pir"===a?(0,o.M)(h.pir/h.appearances,1):"playerEfficiencyRating"===a?(0,o.M)(h.playerEfficiencyRating,1):"usage"===a?"".concat((0,o.M)(h.usage,1),"%"):"individualOffensiveRating"===a?(0,o.M)(h.individualOffensiveRating,1):"individualDefensiveRating"===a?(0,o.M)(h.individualDefensiveRating,1):"effectiveFieldGoalPercentage"===a?"".concat((0,o.M)(h.effectiveFieldGoalPercentage,1),"%"):"trueShootingPercentage"===a?"".concat((0,o.M)(h.trueShootingPercentage,1),"%"):"possession"===a?(0,o.M)(h.possession,1):h[a];case r.QCR.IceHockey:return"shotPercentage"===(u=v)?c(h.shotPercentage):"faceOffPercentage"===u?c(h.faceOffPercentage):"timeOnIce"===u?(0,n.OV)(h.timeOnIce/h.appearances):"penaltyMinutes"===u?(0,o.M)(h.penaltyMinutes/h.appearances,1):"savePercentage"===u?c(h.savePercentage):"goalsAgainstAverage"===u?(0,o.M)(h.goalsAgainstAverage,2):"shortHandedSavePercentage"===u?c(h.shortHandedSavePercentage):"powerPlaySavePercentage"===u?c(h.powerPlaySavePercentage):"evenSavePercentage"===u?c(h.evenSavePercentage):h[u];case r.QCR.AmericanFootball:return"passingCompletionPercentage"===(d=v)?"".concat((0,o.M)(h.passingCompletionPercentage),"% (").concat((0,o.M)(h.passingCompletions/h.appearances,1),")"):"kickingFgMade"===d?"".concat(h.kickingFgMade," / ").concat(h.kickingFgAttempts):"defensiveTotalTackles"===d?(0,o.M)(h.defensiveTotalTackles/h.appearances,1):"defensiveSacks"===d?(0,o.M)(h.defensiveSacks,1):"passingTouchdownInterceptionRatio"===d?(0,o.M)(h.passingTouchdownInterceptionRatio,2):"rushingYardsPerAttempt"===d?(0,o.M)(h.rushingYardsPerAttempt,1):"receivingYardsPerReception"===d?(0,o.M)(h.receivingYardsPerReception,1):h[d];case r.QCR.Handball:return"goalkeeperEfficiencyPercentage"===(p=v)?"".concat((0,o.M)(h.goalkeeperEfficiencyPercentage,2),"%"):"goals7m"===p?"".concat(h.goals7m," / ").concat(h.shots7m," (").concat((0,o.M)(h.goals7m/h.shots7m*100),"%)"):"gk7mSaves"===p?"".concat(h.gk7mSaves," / ").concat(h.gk7mShots," (").concat((0,o.M)(h.gk7mSaves/h.gk7mShots*100),"%)"):h[p];default:return h[v]}}},72696:(e,t,a)=>{a.d(t,{M:()=>o});var s=a(46787),l=a(22375),r=a(59e3),n=a(11996);let o=e=>{let t=t=>e.status.type===s.XUj.NotStarted&&e.season&&e.tournament.uniqueTournament&&e.seasonStatisticsType&&r.u.includes(e.tournament.category.sport.slug)?s.cWY.topPlayers(t,e.tournament.uniqueTournament.id,e.season.id,e.seasonStatisticsType):void 0,a=t(e.homeTeam.id),o=t(e.awayTeam.id),{hasHome:i,hasAway:c}=(0,n.A)({hasHome:{route:t(e.homeTeam.id),skipCheck:!a,deduplicationInterval:15*l.pY},hasAway:{route:t(e.awayTeam.id),skipCheck:!o,deduplicationInterval:15*l.pY}},[a,o]);return{hasPregameTopPlayers:!!i&&!!c,couldHavePregameTopPlayers:!1!==i&&!1!==c&&!!a&&!!o}}},73183:(e,t,a)=>{a.d(t,{A:()=>o,I:()=>n});var s=a(55729),l=a(96861),r=a(70047);let n=(e,t)=>{let a=t.short||e.stat.short;return a&&t.short===e.stat.short||!a&&e.stat.value===t.value?{stat:e.stat,dir:e.dir===l.UE.DESC?l.UE.ASC:l.UE.DESC}:{stat:t,dir:l.UE.DESC}},o=(e,t,a)=>{let[o,i]=(0,s.useState)({stat:t,dir:l.UE.DESC}),c=(0,r.C)(e,o,t,a),u=(0,s.useCallback)(e=>{i(t=>n(t,e))},[]);return{sortConfig:o,setSortConfig:i,sortedPlayers:c,updateSortStatistic:u}}},73259:(e,t,a)=>{a.d(t,{EN:()=>i,Oi:()=>o,aS:()=>l,sI:()=>n,v1:()=>r});var s=a(46787);let l="goalkeeperGroup",r="goalkeepersGroup",n="G",o={[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"},[s.QCR.Volleyball]:{pointsGroup:"pointsTotal",servesGroup:"serves",receptionGroup:"receptionTotal",attackGroup:"attacksTotal"}},i={[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"]}},73780:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"16",heightAttr:"16",viewBox:"0 0 16 16"},e,{children:[(0,s.jsx)("g",{clipPath:"url(#IconVolleyballOpponentError16_svg__a)",children:(0,s.jsx)("path",{d:"M8.802 2.667H7.373L1.67 12.113l.718 1.22h11.4l.717-1.22zM8.768 12H7.4v-1.333h1.368zm0-2.667H7.4v-4h1.368z"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"IconVolleyballOpponentError16_svg__a",children:(0,s.jsx)("path",{fill:"currentColor",d:"M1.67 2.667h12.67v10.667H1.67z"})})})]}))}a(62042),a(20325),a(1157)},75846:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("path",{d:"M0 0h24v24H0z"}),(0,s.jsx)("path",{fill:"currentColor",d:"M22 12c0-.09-.01-.18-.01-.28C21.84 6.33 17.43 2 12 2S2 6.48 2 12s4.48 10 10 10 9.84-4.33 9.99-9.72c0-.09.01-.18.01-.28m-1.94-2.67-.92-.11-.93-2.99c.82.88 1.46 1.94 1.85 3.11zm-16 3.89 2.03 2.4-.93 1.4c-.81-1.1-1.36-2.4-1.56-3.81h.46zm.91-.51 1.32-3.9h3.99l1.75 3.31-1.56 3.07H7.09l-2.11-2.48zm6.22-4.39 2.41-2.44 3.62.75.98 2.97-1.71 2.8-3.48-.57-1.83-3.51zm-.18-4.75 1.67 1.8-2.36 2.39H6.36l-.67-1.4v-.02a8.41 8.41 0 0 1 5.32-2.77M5.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.64zm7.5 2.52.33-1 3.78-1.91.67.4a8.5 8.5 0 0 1-4.78 2.52zm5.45-3.32-1.11-.66-.53-3.14v-.01l1.87-3.03 1.3.16a8.39 8.39 0 0 1-1.53 6.68"})]})}))}a(62042),a(20325),a(1157)},75853:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(6029),l=a(46787),r=a(46222);function n(){return(0,s.jsxs)(r.Zp,{children:[(0,s.jsx)(r.Zp.Header,{titleId:"top_players",values:{gender:l.YT8.Male}}),(0,s.jsx)("div",{style:{height:780}})]})}},82286:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2zm8.155.5c.78 0 1.458.13 2.055.398a3.3 3.3 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.05q0-1.27.486-2.061.486-.792 1.427-1.225c.627-.299 1.396-.508 2.287-.647q.974-.15 1.417-.657a1.8 1.8 0 0 0 .445-1.225q0-.672-.486-1.105c-.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-.976"})}))}a(62042),a(20325),a(1157)},82410:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m19.279 9.434 2.721.992v4.008c0 .04-.026.119-.026.119l-2.431 4.868a.5.5 0 0 1-.119.119l-4.874 2.434c-.04.026-.12.026-.12.026h-3.976l2.193-.728c.04-.013.106-.066.106-.066l5.509-5.992c.04-.04.066-.132.066-.132l.013-.013zm-.66-.093-.912 5.45c-.013.053-.066.132-.066.132l-5.258 5.728-.013-.027c-.027.027-.106.066-.106.066l-3.236 1.085-4.452-2.235 3.857-1.27c.04-.013.106-.066.106-.066l4.174-4.127c.027-.027.066-.106.066-.106l1.414-4.445a.27.27 0 0 1 .25-.185zm-16.606 2.09 2.708 4.749.04.08.013.012 2.814 1.601-3.356 1.111L2.04 14.58c-.027-.04-.027-.119-.027-.119zM6.36 3.587l-.673 3.387a.5.5 0 0 0 .026.185l3.025 5.04c.027.052.106.105.106.105l3.13 1.588-3.632 3.637-3.025-1.72-.013.014c-.04-.013-.093-.093-.093-.093L2 10.108V9.58c0-.04.026-.119.026-.119l2.431-4.854c.026-.053.119-.12.119-.12zm4.531-1.56L10.68 4.01c0 .052.04.158.04.158l2.932 4.894-1.32 4.273-3.013-1.534c-.04-.027-.105-.106-.105-.106l-2.8-4.656v.013c-.027-.053-.027-.185-.027-.185l.726-3.638 2.325-1.177a.24.24 0 0 1 .106-.026zm4.994 2.301.013.013c.026 0 .092.013.092.013l4.24 1.707 1.718 3.4a.24.24 0 0 1 .026.105v.185L19.148 8.72c-.027-.014-.093-.04-.093-.04H14.18l-2.603-4.352zM14.417 2c.04 0 .12.026.12.026l4.834 2.448c.053.026.12.119.12.119l.29.568-3.607-1.441c-.026-.014-.092-.014-.092-.014l-4.703-.026h-.013L11.55 2Z"})}))}a(62042),a(20325),a(1157)},83094:(e,t,a)=>{a.d(t,{A:()=>k});var s=a(6029),l=a(46787),r=a(51569),n=a(94565),o=a(55729),i=a(46222),c=a(18970),u=a(18974),d=a(54548),p=a(92667),h=a(99913),g=a(67538),v=a(70512);function m(){return(0,s.jsx)(n.az,{h:900})}var f=a(20325);function y(e){let{team:t,event:a,lineups:l}=e,r=l.players.filter(e=>!e.substitute);return 0===r.length?null:(0,s.jsx)(f.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(v.A,{players:r,team:t,event:a,hideTeamHeader:!0,highlightStarters:!1})})}function x(e){let{team:t,event:a,lineups:l}=e,r=l.players.filter(e=>e.substitute);return 0===r.length?null:(0,s.jsx)(f.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(v.A,{players:r,team:t,event:a,hideTeamHeader:!0})})}function j(e){let{manager:t,lineups:a}=e;return t||a.supportStaff&&a.supportStaff.length>0?(0,s.jsx)(f.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(g.A,{manager:t,supportStaff:a.supportStaff||[]})}):null}function b(e){var t;let{lineups:a}=e;return(null==a||null==(t=a.missingPlayers)?void 0:t.length)?(0,s.jsx)(f.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(h.cW,{missingPlayers:a.missingPlayers})}):null}function _(){let{event:e,leftTeam:t,rightTeam:a}=(0,o.useContext)(c.y$),{managers:l}=(0,d.K)(e),{lineups:r}=(0,p.Ir)({jerseyStyle:"fancy"});if(!r)return null;let n=r.left.players.filter(e=>!e.substitute),u=r.right.players.filter(e=>!e.substitute),h=n.length>0||u.length>0,g=r.left.players.filter(e=>e.substitute),v=r.right.players.filter(e=>e.substitute),m=g.length>0||v.length>0,_=!!(null==l?void 0:l.leftManager)||r.left.supportStaff&&r.left.supportStaff.length>0||!!(null==l?void 0:l.rightManager)||r.right.supportStaff&&r.right.supportStaff.length>0,k=r.left.missingPlayers&&r.left.missingPlayers.length>0||r.right.missingPlayers&&r.right.missingPlayers.length>0;return(0,s.jsxs)(i.Zp,{variant:"mobile-only",children:[h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"team_playing_eleven"}),(0,s.jsxs)(f.so,{children:[(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(y,{team:t,event:e,lineups:r.left})}),(0,s.jsx)(f.cG,{orientation:"vertical",mx:"md"}),(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(y,{team:a,event:e,lineups:r.right})})]})]}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"rest_of_squad"}),(0,s.jsxs)(f.so,{children:[(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(x,{team:t,event:e,lineups:r.left})}),(0,s.jsx)(f.cG,{orientation:"vertical",mx:"md"}),(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(x,{team:a,event:e,lineups:r.right})})]})]}),_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"support_staff"}),(0,s.jsxs)(f.so,{children:[(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(j,{manager:null==l?void 0:l.leftManager,lineups:r.left})}),(0,s.jsx)(f.cG,{orientation:"vertical",mx:"md"}),(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(j,{manager:null==l?void 0:l.rightManager,lineups:r.right})})]})]}),k&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,s.jsxs)(f.so,{children:[(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(b,{lineups:r.left})}),(0,s.jsx)(f.cG,{orientation:"vertical",mx:"md"}),(0,s.jsx)(f.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(b,{lineups:r.right})})]})]}),(0,s.jsx)(i.Zp.Footer,{})]})}function k(){var e;let{event:t,leftTeam:a,rightTeam:f,location:y}=(0,o.useContext)(c.y$),{managers:x}=(0,d.K)(t),{lineups:j,error:b}=(0,p.Ir)({jerseyStyle:"fancy"}),[k,S]=(0,o.useState)(l.cxP.Left),{isDesktop:w}=(0,r.$c)(),C=w&&y===c.cb.EventPage;if(b)return null;if(!j)return(0,s.jsx)(m,{});let[P,A,M]=k===l.cxP.Left?[a,null==x?void 0:x.leftManager,j.left]:[f,null==x?void 0:x.rightManager,j.right],V=M.players.filter(e=>!e.substitute),H=M.players.filter(e=>e.substitute),R=!!A||M.supportStaff&&(null==(e=M.supportStaff)?void 0:e.length)>0;return C?(0,s.jsx)(_,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.az,{bg:"surface.s1",w:"100%",position:"sticky",top:[50,0],zIndex:n.Py.Sticky,p:"sm",children:(0,s.jsx)(u.n,{activeTeam:k,onTeamClick:e=>S(e)})}),(0,s.jsxs)(n.so,{direction:"column",p:"sm",gap:"sm",children:[!!V.length&&(0,s.jsxs)(i.Zp,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"team_playing_eleven"}),(0,s.jsx)(v.A,{players:V,team:P,event:t,hideTeamHeader:!0,highlightStarters:!1})]}),!!H.length&&(0,s.jsxs)(i.Zp,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"rest_of_squad"}),(0,s.jsx)(v.A,{players:H,team:P,event:t,hideTeamHeader:!0})]}),R&&(0,s.jsxs)(i.Zp,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"support_staff"}),(0,s.jsx)(g.A,{manager:A,supportStaff:M.supportStaff||[]})]}),!!(j.left.missingPlayers||j.right.missingPlayers)&&(0,s.jsx)(h.Sb,{missingPlayers:M.missingPlayers})]})]})}},83632:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m22.7 12.31-2.65-4.53c-.34-.59-1.26-1.53-3.62-1.2-.44.06-.93.18-1.42.33V5H7V2H6L2 6l4 4h1V7h6v.67c-.7.31-1.41.66-2.15 1.09-4.52 2.61-6.61 5.47-5.45 7.48v.02l2.64 4.52c.48.82 1.34 1.23 2.51 1.23 1.64 0 3.9-.79 6.61-2.36 2.1-1.21 3.72-2.47 4.7-3.65 1.52-1.83 1.17-3.1.83-3.7zM7.13 15.24c-.22-.39.51-2.32 4.72-4.75 2.36-1.36 3.94-1.8 4.86-1.93 1.09-.15 1.53.08 1.61.22.08.13.04.6-.64 1.41-.58.69-1.77 1.81-4.16 3.19-4.27 2.46-6.18 2.22-6.39 1.85zm13.21-.51c-.58.69-1.77 1.81-4.16 3.19-4.27 2.46-6.18 2.22-6.39 1.85l-.87.5.86-.5-1.36-2.32c1.59-.14 3.66-.92 6.1-2.33 2.1-1.21 3.72-2.47 4.7-3.65.15-.18.26-.34.38-.51l1.38 2.35c.11.18-.05.7-.64 1.41z"})}))}a(62042),a(20325),a(1157)},84449:(e,t,a)=>{a.d(t,{A:()=>g});var s=a(6029),l=a(46787),r=a(51569),n=a(60235),o=a(94565),i=a(55729),c=a(46222),u=a(18970),d=a(74664),p=a(75853),h=a(72696);function g(){let e=(0,d.o)(),{event:t,location:a,initialHasLineups:g}=(0,i.useContext)(u.y$),{couldHavePregameTopPlayers:v}=(0,h.M)(t),{isDesktop:m}=(0,r.$c)(),f=m&&a===u.cb.EventPage,y=(0,n.hX)();return e!==l.QCR.Football&&v?(0,s.jsx)(p.A,{}):y&&!g?null:f?(0,s.jsx)(c.Zp,{children:(0,s.jsxs)(o.az,{display:["none","block"],children:[(0,s.jsx)(o.az,{h:46}),(0,s.jsx)(o.az,{h:48}),(0,s.jsxs)(o.so,{pb:"sm",px:"sm",gap:"sm",children:[(0,s.jsx)(o.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"}),(0,s.jsx)(o.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"})]}),(0,s.jsx)(o.az,{h:432,bg:"surface.s2",mx:"sm"}),(0,s.jsx)(o.az,{h:56,m:"sm",bg:"surface.s2",br:"lg"}),(0,s.jsx)(o.az,{h:240})]})}):(0,s.jsx)(o.az,{display:["block","none"],h:946})}},85154:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m18.267 14.915.983.578v1.762l-1.75 3.497L14 22.5h-.824l3.225-3.41zm-1.085-.231-1.649 3.742-2.878 3.12-2.285.896-2.748-1.372 1.663-.362 2.936-2.571 1.75-3.453zM6.74 10.768l-.463 2.312 2.285 3.814 2.17 1.098-1.953 1.72-2.083.447-1.446-2.904V13.76zm3.731-2.254-.217 2.11 2.647 3.756-1.374 2.803-2.184-1.112-1.91-3.179.623-3.164zm5.64 2.529 2.213.881.926 1.835v.477l-1.085-.636h-4.483l-1.808-2.557zM22 2v9h-2V4H4v7H2V2zm-8 6.5 3.486 1.763.1.202-1.17-.462-5.005-.044.145-1.459z"})}))}a(62042),a(20325),a(1157)},86203:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"16",heightAttr:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"m10.5 13.01 1.5 1.5-2.5.5-.5-.5zM7.92 1v1l2 1h2l1 6 1.5 4.5-1 1-10-10L5.92 1zM8 10.51l1.5 1.5-2.5.5-.5-.5zm-2.5-2.5L7 9.51l-2.5.5-.5-.5zm5.93.19H9.08l1.41 1.41h1.18zM3 5.51l1.5 1.5-2.5.5-.5-.5zm7.91-.01H6.43l1.41 1.41h3.31z"})}))}a(62042),a(20325),a(1157)},86931:(e,t,a)=>{a.d(t,{f:()=>w,Y:()=>n});var s=a(46787),l=a(45860),r=a(63561);function n(e){let t=e.tournament.category.sport.slug!==s.QCR.Football||e.status.type!==s.XUj.Finished,{data:a,isLoading:n}=(0,l.Ay)(t?null:s.bnp.bestPlayersSummary(e.id),(0,r.rf)(e)),o=null==a?void 0:a.playerOfTheMatch,i=null==a?void 0:a.bestHomeTeamPlayers.find(e=>e.player.id===(null==o?void 0:o.player.id));return{isLoading:!t&&n,bestPlayer:(null==o?void 0:o.label)==="rating"?o:void 0,team:o?i?e.homeTeam:e.awayTeam:void 0}}var o=a(6029),i=a(90368),c=a(51569),u=a(60235),d=a(20325),p=a(55729),h=a(90248),g=a(46222),v=a(18970),m=a(52466),f=a(41910),y=a(32019),x=a(66331),j=a(96861),b=a(94156);function _(){return(0,o.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("g",{id:"Symbols",children:(0,o.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,o.jsxs)("g",{id:"Pattern-Left",children:[(0,o.jsx)("path",{id:"Path",d:"M56.9883 114H75.9883V133H56.9883V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsxs)("g",{id:"Group",opacity:"0.8",children:[(0,o.jsx)("path",{id:"Path_2",d:"M38 114H57V133H38V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_3",d:"M76 95.0001H95V114H76V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_4",d:"M95 95.0001H114V114H95V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_5",d:"M57 56.9998H76V76H57V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_6",d:"M95 56.9998H114V76H95V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_7",d:"M114 56.9998H133V76H114V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_8",d:"M0 0H19V19H0V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_9",d:"M57 0H76V19H57V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,o.jsxs)("g",{id:"Group_2",opacity:"0.5",children:[(0,o.jsx)("path",{id:"Path_10",d:"M76 114H95V133H76V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_11",d:"M0 95H19V114H0V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_12",d:"M57 95H76V114H57V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_13",d:"M76 75.9999H95V94.9996H76V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_14",d:"M95 75.9999H114V94.9996H95V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_15",d:"M38 56.9998H57V75.9999H38V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_16",d:"M76 56.9998H95V75.9999H76V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_17",d:"M38 37.9998H57V56.9998H38V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_18",d:"M76 37.9998H95V56.9998H76V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_19",d:"M0 18.9999H19V37.9999H0V18.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})}function k(){return(0,o.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("g",{id:"Symbols",children:(0,o.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,o.jsx)("g",{id:"Group-9",children:(0,o.jsxs)("g",{id:"Pattern-Right",children:[(0,o.jsx)("path",{id:"Path",d:"M76.0117 114H57.0117V133H76.0117V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsxs)("g",{id:"Group",opacity:"0.5",children:[(0,o.jsx)("path",{id:"Path_2",d:"M57 114H38V133H57V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_3",d:"M133 94.9998H114V114H133V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_4",d:"M76 94.9998H57V114H76V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_5",d:"M57 76.0002H38V94.9998H57V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_6",d:"M38 76.0002H19V94.9998H38V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_7",d:"M95 57.0001H76V75.9997H95V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_8",d:"M57 57.0001H38V75.9997H57V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_9",d:"M95 38H76V57.0001H95V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_10",d:"M57 38H38V57.0001H57V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_11",d:"M133 19H114V37.9999H133V19Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,o.jsxs)("g",{id:"Group_2",opacity:"0.8",children:[(0,o.jsx)("path",{id:"Path_12",d:"M95 114H76V133H95V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_13",d:"M57 94.9998H38V114H57V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_14",d:"M38 94.9998H19V114H38V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_15",d:"M76 57.0001H57V75.9997H76V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_16",d:"M38 57.0001H19V75.9997H38V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_17",d:"M18.9999 57.0001H0V75.9997H18.9999V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_18",d:"M133 0H114V18.9999H133V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,o.jsx)("path",{id:"Path_19",d:"M76 0H57V18.9999H76V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})})}let S=e=>{let{bestPlayer:t,team:a}=e;return(0,o.jsxs)(d.so,{p:"lg",align:"center",justify:"space-between",children:[(0,o.jsxs)(d.so,{align:"center",children:[(0,o.jsx)(i.tg,{id:t.player.id,name:t.player.name,size:"4xl"}),(0,o.jsxs)(d.az,{ml:"sm",children:[(0,o.jsx)(c.EY,{textStyle:"display.medium",mb:"xs",display:"block",children:(0,o.jsx)(b.c,{entity:t.player})}),(0,o.jsxs)(d.so,{align:"center",children:[(0,o.jsx)(i.pY,{id:a.id,name:a.name,size:"lg",mr:"xs"}),(0,o.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,o.jsx)(h.A,{id:a.slug,defaultMessage:a.name})})]})]})]}),(0,o.jsx)(i.GW,{rating:t.value})]})};function w(e){let{event:t}=e,{isLoading:a,bestPlayer:l,team:r}=n(t),{openEventPlayerStatistics:b}=(0,x.d)(),w=(0,y.Z)(t,"playerOfTheMatch"),C=(0,u.hX)(),{location:P}=(0,p.useContext)(v.y$);return t.tournament.category.sport.slug===s.QCR.Football&&t.status.type===s.XUj.Finished&&(C||a)?(0,o.jsx)(g.Zp,{children:(0,o.jsx)(d.az,{h:"[120px]"})}):a||l?(0,o.jsx)(f.b,{entityId:t.id,branding:w,location:"event_potm",children:(0,o.jsxs)(d.so,{br:P===v.cb.Widget?"sm":"lg",overflow:"hidden",position:"relative",h:"[120px]",justify:"space-between",cursor:"pointer",onClick:()=>l&&b({event:t,player:l.player},j._l.PlayerOfTheMatch),children:[(0,o.jsx)(_,{}),(0,o.jsx)(k,{}),(0,o.jsxs)(d.az,{position:"absolute",top:"0",left:"0",w:"100%",children:[(0,o.jsxs)(d.so,{pt:"md",px:"lg",pb:"xs",align:"center",children:[(0,o.jsx)(m.ue7,{mr:"sm",w:24,h:24,style:{color:(0,i.As)(null==l?void 0:l.value)}}),(0,o.jsx)(c.EY,{textStyle:"display.medium",lineHeight:"24px",children:(0,o.jsx)(h.A,{id:"details.manOfMatch"})})]}),(0,o.jsx)(d.az,{minH:"8xl",children:l&&r&&(0,o.jsx)(S,{bestPlayer:l,team:r})})]})]})}):null}},89686:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M4 2v14h16V2h2v20H2V2zm10 7 3 2v4H7v-4l3-2zm-2-7a3 3 0 1 1 0 6 3 3 0 0 1 0-6"})}))}a(62042),a(20325),a(1157)},90368:(e,t,a)=>{a.d(t,{As:()=>n.As,GW:()=>l.A,pY:()=>r.p,tg:()=>s.t});var s=a(91407),l=a(94400),r=a(91603),n=a(19991)},92667:(e,t,a)=>{a.d(t,{Ir:()=>s.A,ax:()=>c,rR:()=>h});var s=a(40008),l=a(46787),r=a(55729),n=a(45860),o=a(18970);function i(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 c(e){let{event:t}=(0,r.useContext)(o.y$),a=i(e.left.players),s=i(e.right.players),c=!!a&&!!s,{data:u}=(0,n.Ay)(c?null:l.bnp.prematchStandings(t.id));return((null==u?void 0:u.homeTeam.avgRating)||(null==u?void 0:u.awayTeam.avgRating))&&(a=null==u?void 0:u.homeTeam.avgRating,s=null==u?void 0:u.awayTeam.avgRating),[a,s]}var u=a(67430),d=a(54548),p=a(56300);function h(){let{event:e,leftTeam:t,rightTeam:a}=(0,r.useContext)(o.y$),{managers:l}=(0,d.K)(e),{lineups:n}=(0,s.A)(),{incidents:i}=(0,u.L)(),c=(0,r.useContext)(p.N);if(void 0===c)throw Error("useLineupSide must be used within a SideProvider");return"left"===c?{event:e,team:t,manager:l.leftManager,lineups:null==n?void 0:n.left,incidents:i,jersey:null==n?void 0:n.leftJerseyUrls.player,jerseyNumberColor:null==n?void 0:n.left.playerColor,startingPlayers:(null==n?void 0:n.left.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==n?void 0:n.left.players.filter(e=>e.substitute))||[]}:{event:e,team:a,manager:l.rightManager,lineups:null==n?void 0:n.right,incidents:i,jersey:null==n?void 0:n.rightJerseyUrls.player,jerseyNumberColor:null==n?void 0:n.right.playerColor,startingPlayers:(null==n?void 0:n.right.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==n?void 0:n.right.players.filter(e=>e.substitute))||[]}}},92859:(e,t,a)=>{a.d(t,{K:()=>s});var s=function(e){return e.Position="position",e.Rating="rating",e.Notes="notes",e.ExpectedGoals="expectedGoals",e}({})},93222:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsxs)(l.S,Object.assign({widthAttr:"20",heightAttr:"20",viewBox:"0 0 20 20"},e,{children:[(0,s.jsx)("path",{d:"M10 2c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0"}),(0,s.jsx)("path",{d:"M13 4c-.825 0-1.5.675-1.5 1.5S12.175 7 13 7s1.5-.675 1.5-1.5S13.825 4 13 4M10 8.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5-.675-1.5-1.5-1.5M7.5 4C6.675 4 6 4.675 6 5.5S6.675 7 7.5 7 9 6.325 9 5.5 8.325 4 7.5 4M4.5 8.5C3.675 8.5 3 9.175 3 10s.675 1.5 1.5 1.5S6 10.825 6 10s-.675-1.5-1.5-1.5"})]}))}a(62042),a(20325),a(1157)},94536:(e,t,a)=>{a.d(t,{Z4:()=>v,sP:()=>g,ZB:()=>c,lV:()=>d,kr:()=>p,kx:()=>h});var s=a(38709),l=a(22375);function r(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 n(e,t){let a={sum:0,count:0};return e.forEach(e=>{e.forEach(e=>{e.player.dateOfBirthTimestamp&&(a.sum+=(0,l.Dr)(e.player.dateOfBirthTimestamp,t),a.count+=1)})}),a.count>=7?Math.round(10*a.sum/a.count)/10:void 0}function o(e){let t={sum:0,count:0,currency:""};return e.forEach(e=>{e.forEach(e=>{var a;(null==(a=e.player.proposedMarketValueRaw)?void 0:a.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 i(e){let t={sum:0,count:0};return e.forEach(e=>{var a;(null==(a=e.statistics)?void 0:a.kilometersCovered)&&(t.sum+=e.statistics.kilometersCovered,t.count+=1)}),t.count>=7?Math.round(10*t.sum)/10:void 0}function c(e,t,a,l,c){let u={};return u[s.k.Age]={messageId:"football_lineups_starters_average_age",leftTeamValue:n(e,c),rightTeamValue:n(t,c)},u[s.k.MarketValue]={messageId:"football_lineups_starters_total_market_value",leftTeamValue:o(e),rightTeamValue:o(t)},u[s.k.Height]={messageId:"football_lineups_starters_average_height",leftTeamValue:r(e),rightTeamValue:r(t)},u[s.k.Distance]={messageId:"football_total_distance_run",leftTeamValue:i(a),rightTeamValue:i(l)},u}var u=a(25766);function d(e,t){if(t===u.V.Confirmed){var a;return(null==(a=e.statistics)?void 0:a.rating)||e.avgRating}if(t===u.V.Possible)return e.avgRating}function p(e){let t=null==e?void 0:e.left.players.filter(e=>e.substitute),a=null==e?void 0:e.right.players.filter(e=>e.substitute);return!!(t&&t.length>0||a&&a.length>0)}function h(e,t){var a;return t||e.player.name.length>24||(null==(a=e.player.country)?void 0:a.alpha2)==="MG"}function g(e,t,a){let s=Math.max(...e.split(" ").map(e=>e.length));return s>=12&&(e=e.split(" ").map(e=>{let t=e;return e.length!==s||e.includes("-")||(t=e.slice(0,e.length/2)+"\xad"+e.slice(e.length/2)),t}).join(" ")),t?a?"".concat(e," (c)"):"(c) ".concat(e):e}let v=e=>e.hasEventPlayerStatistics;a(12408)},94581:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",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.03m-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.05m15.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.75z"})}))}a(62042),a(20325),a(1157)},98096:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M20 2v14H4V2H2v16h9v4h2.076v-4H22V2z"})}))}a(62042),a(20325),a(1157)},99361:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(3230);function r(e){return(0,s.jsx)(l.S,Object.assign({widthAttr:"24",heightAttr:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M20 2.001v14H4v-14H2v16h9v4h2v-4h9v-16zm-2.6.66-.06-.06c-.56-.48-1.39-.65-2.65-.59-2.3.1-4.4 1-6.07 2.62a9.13 9.13 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.13 9.13 0 0 0 2.61-6.05c.04-.92 0-1.96-.59-2.66m-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.06z"})}))}a(62042),a(20325),a(1157)},99902:(e,t,a)=>{a.d(t,{A:()=>g});var s=a(6029),l=a(25635),r=a(48485),n=a(94565),o=a(55729),i=a(90248),c=a(46222),u=a(18970),d=a(11219),p=a(80055),h=a(33079);function g(e){let{manager:t,incidents:a,isBorderHidden:g}=e,v=(0,p.z)(t),m=(0,o.useMemo)(()=>a?(0,r.h)({id:t.id,incidents:a}):{},[t,a]),{location:f}=(0,o.useContext)(u.y$),y=f===u.cb.Widget;return(0,s.jsx)(d.yI,{manager:t,style:{width:"100%"},children:(0,s.jsx)(c.Zp,{children:(0,s.jsxs)(n.so,{hoverBg:"surface.s2",br:y?"sm":void 0,children:[(0,s.jsx)(n.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.d,{id:t.id,name:v,size:"3xl"})}),(0,s.jsx)(n.so,{borderBottom:g?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:v,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:v}),m&&(0,s.jsx)(h.AG,{...m})]})}),(0,s.jsx)(n.EY,{font:"assistive.default",color:"primary.default",mr:"xxs",children:(0,s.jsx)(i.A,{id:"manager"})})]})})]})})})}}}]);