!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]="338c0935-72a0-4b79-80af-f88a317e5133",e._sentryDebugIdIdentifier="sentry-dbid-338c0935-72a0-4b79-80af-f88a317e5133")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28105],{3723:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(6029),l=s(39895);function r(e){return(0,a.jsx)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9922 7.3349L14.9932 7.90122V9.74506L13.2415 13.2484L9.73824 15H8.81632L8.89534 14.9605L12.1089 11.5626L13.9922 7.3349ZM13.0045 7.12418L11.3187 10.9436L8.43438 14.0912L6.18226 14.9737L3.29797 13.5249L5.01011 13.1562L7.93391 10.6011L9.68556 7.12418H13.0045ZM2.57361 3.10724L2.08631 5.57008L4.3516 9.34995L6.57737 10.4826L4.54915 12.2474L2.46825 12.6952L1.00635 9.74506V6.25494L2.57361 3.10724ZM6.27446 1L6.05056 3.10724L8.71096 6.87394L7.30174 9.73189L5.04962 8.59925L3.12676 5.3857L3.75893 2.25118L6.24812 1H6.27446ZM11.8587 3.48918L14.0317 4.35842L14.9932 6.25494V6.79492L13.9 6.13641H9.39581L7.52563 3.48918H11.8587ZM9.73824 1L13.2284 2.76482L13.3601 3.0809L12.1484 2.54092L7.10418 2.50141L7.26223 1H9.73824Z",fill:e.fill})}))}},5173:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(6029),l=s(39895);function r(e){return(0,a.jsx)(l.A,Object.assign({width:"14",height:"14",viewBox:"0 0 14 14"},e,{children:(0,a.jsxs)("g",Object.assign({clipPath:"url(#clip0_1_842)"},{children:[(0,a.jsx)("path",{d:"M9.49999 5.83008L6.73999 6.83008V9.85008L8.81999 10.6601L10.89 8.37008L9.49999 5.83008Z",fill:e.fill}),(0,a.jsx)("path",{d:"M7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM7 12.26C6.03 12.26 5.12 11.99 4.34 11.53L4.59 10.15L3.04 8.42L2.1 8.9C1.87 8.31 1.74 7.67 1.74 7C1.74 6.94 1.74 6.88 1.74 6.83L3.75 6.11L4.41 3.63L3.49 3.08C4.42 2.25 5.64 1.73 6.99 1.73C7.09 1.73 7.18 1.73 7.28 1.74L6.99 2.81L9.71 3.96L10.59 3.15C11.61 4.11 12.26 5.47 12.26 6.98C12.26 9.88 9.9 12.25 7 12.25V12.26Z",fill:e.fill})]}))}))}},6664:(e,t,s)=>{s.d(t,{K:()=>F});var a=s(6029),l=s(21377),r=s(4967),i=s(76356),n=s(55729),o=s(45860),c=s(46222),d=s(18970),u=s(70344),p=s(41164),f=s(18974),h=s(28446),g=s(90112),m=s(9127),y=s(67087),x=s(28349),j=s(99064),v=s(90248),b=s(12408);function _(e){let{selectedPlayer:t,setSelectedPlayer:s,showSubstitutes:l,substitutionIds:r,setShowSubstitutes:i,selectedSide:o,players:c}=e,{event:u}=(0,n.useContext)(d.y$),p=Array.from(r).reduce((e,t)=>{let s=c.find(e=>e.player.id===t);return s?[...e,s]:e},[]),f=(null==t?void 0:t.id)&&r.has(t.id);return(0,n.useEffect)(()=>{f&&!l&&i(!0)},[t]),(0,a.jsxs)(j.so,{br:"24",h:"92",mb:"xs",align:"flex-start",direction:"column",children:[(0,a.jsx)(j.Sc,{px:"lg",name:"showSubstitutes-".concat(u.id,"-").concat(o),onChange:e=>{let t=e.currentTarget.checked;i(t),(!t&&f||t&&!f)&&s(void 0)},checked:l,style:{overflow:"hidden"},boxColor:"onColor.primary",children:(0,a.jsx)(j.EY,{color:"onColor.primary",children:(0,a.jsx)(v.A,{id:"show_substitutions"})})}),(0,a.jsx)(x.tR,{buttonStyle:"clipped",colorPalette:"primary",children:(0,a.jsx)(j.so,{px:"lg",w:"fit-content",align:"center",h:44,children:(0,a.jsx)(g.N,{initial:!1,children:p.map(e=>{let{player:l,jersey:r,fillColor:i,numberColor:n,hasLowPoints:o}=e;return(0,a.jsx)(m.m.div,{initial:{opacity:0},animate:{opacity:(0,b.cl)(o,!!t,(null==t?void 0:t.id)===l.id)},exit:{opacity:0},transition:{duration:.2},onClick:()=>s(l),style:{cursor:"pointer"},children:(0,a.jsx)(j.so,{align:"center",p:"xs",w:"32",h:"32",br:"50%",ml:"xs",textAlign:"center",justify:"center",bg:i,style:{pointerEvents:"none",userSelect:"none"},children:(0,a.jsx)(j.EY,{font:"display.medium",color:n,children:r})})},l.id)})},o)})})]})}var S=s(10292),k=s(52466),w=s(94156);function C(e){let{selectedPlayer:t,players:s,setSelectedPlayer:l}=e;return t?(0,a.jsx)(j.so,{position:"absolute",justify:"center",w:"100%",bottom:0,children:(0,a.jsxs)(j.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,a.jsxs)(j.so,{align:"center",children:[(0,a.jsx)(S.t,{size:40,id:t.id}),(0,a.jsxs)(j.az,{pl:"md",children:[(0,a.jsx)(j.EY,{block:!0,font:"display.medium",color:"onSurface.nLv1",children:(0,a.jsx)(w.c,{entity:t})}),s.find(e=>{let{player:s,hasLowPoints:a}=e;return s.id===t.id&&a})&&(0,a.jsx)(j.EY,{font:"assistive.default",color:"onSurface.nLv3",mt:"xxs",children:(0,a.jsx)(v.A,{id:"low_player_involvement"})})]})]}),(0,a.jsx)(j.$n,{w:"36",h:"36",p:"0",variant:"unshielded",children:(0,a.jsx)(k.zQC,{icon:"close",fill:"onSurface.nLv1"})})]})}):null}var M=s(41735),P=s(34993),L=s(79261);let H=(0,M.default)(j.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)"),L.qG),I={WIDTH:280,HEIGHT:420},R=e=>{let{heatmap:t,heatmapTransform:s,teamId:l,theme:r,isLineupsBackground:i}=e,o="".concat(l,"-avg-positions"),{textDirection:c}=(0,x.$c)();return((0,n.useEffect)(()=>{t&&(0,P.IJ)(t,{containerId:o,width:I.HEIGHT-16,height:I.WIDTH-16},r,i)},[t,o]),t)?(0,a.jsx)(H,{id:o,position:"absolute",w:I.WIDTH-16,h:I.HEIGHT-16,top:"sm",left:"sm",xTranslate:"rtl"===c?"70px":"-70px",style:{transform:s,overflow:"hidden"}}):null},A=e=>{let{teamId:t,heatmap:s,heatmapTransform:l,children:r,isLineupsBackground:i,...n}=e,o=(0,M.useTheme)(),c=o.colors;return(0,a.jsxs)(j.az,{position:"relative",m:"auto",w:I.WIDTH,h:I.HEIGHT,children:[(0,a.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:I.WIDTH,height:I.HEIGHT,viewBox:"0 0 ".concat(I.WIDTH," ").concat(I.HEIGHT),xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,a.jsx)("rect",{fill:c.graphicsTerrain.footballLineups,width:I.WIDTH,height:I.HEIGHT,rx:"4"})})}),(0,a.jsx)(R,{heatmap:s,heatmapTransform:l,theme:o,teamId:t,isLineupsBackground:i}),(0,a.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:I.WIDTH,height:I.HEIGHT,viewBox:"0 0 ".concat(I.WIDTH," ").concat(I.HEIGHT),xmlns:"http://www.w3.org/2000/svg",...n,children:(0,a.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M9.333 9.333h261.333V210H9.333z"}),(0,a.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,a.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M107.333 9.333h65.333V28h-65.333z"}),(0,a.jsx)("circle",{cx:"2.333",cy:"2.333",r:"2.333",transform:"translate(137.667 51.333)",fill:c.onColor.primary}),(0,a.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,a.jsxs)("g",{children:[(0,a.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M9.333 410.667h261.333V210H9.333z"}),(0,a.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,a.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M107.333 410.667h65.333V392h-65.333z"}),(0,a.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,a.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,a.jsx)("g",{children:r})]})})})]})};var O=s(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(I.WIDTH," -").concat(I.HEIGHT,")"),text:"scale(-1 -1) ".concat((0,b.$8)()?"translate(0 4)":""),heatmap:"scale(-1, 1)"}},V=(0,h.A)().domain([0,100]).range([8,I.WIDTH-8]),T=(0,h.A)().domain([0,100]).range([8,I.HEIGHT-8]);function z(e){let{selectedSide:t}=e,{event:s}=(0,n.useContext)(d.y$),[r,c]=(0,n.useState)(!1),[u,f]=(0,n.useState)(void 0),[{group:h,text:x,heatmap:j},v]=(0,n.useState)(G[t]),{data:S,error:k}=(0,o.Ay)(l.bnp.averagePositions(s.id),(0,p.rf)(s)),{data:w}=(0,o.Ay)(u?l.bnp.playerHeatmap(s.id,u.id):null),[M,P]=(0,y.jr)(S,"home","away"),{lineups:L,error:H}=(0,O.Ir)();(0,n.useLayoutEffect)(()=>{v(G[t]),f(void 0),c(!1)},[t]);let I="left"===t?M:P;if(!S)return(0,a.jsx)(i.az,{h:"[420px]"});if(k||H)return null;let R={in:new Set,out:new Set},z=S.substitutions.sort((e,t)=>{var s,a;return(null!=(s=e.time)?s:0)-(null!=(a=t.time)?a:0)});for(let e=0;e({x:V(e.averageY),y:T(e.averageX),jersey:B[t].get(e.player.id),player:e.player,hasLowPoints:(0,b.XU)(e.pointsCount),...(0,b.jM)(e.player,null==L?void 0:L[t])}))),F=e=>()=>{(null==u?void 0:u.id)===e.id?f(void 0):f(e)};return(0,a.jsxs)(i.az,{position:{base:"initial",md:"relative"},bg:"graphics.terrain.footballLineups",m:"auto",textAlign:"center",pt:"sm",pb:"4xl",w:"100%",children:[(0,a.jsx)(_,{selectedPlayer:u,setSelectedPlayer:f,substitutionIds:R.in,showSubstitutes:r,setShowSubstitutes:c,selectedSide:t,players:E}),(0,a.jsx)(i.az,{position:"relative",children:(0,a.jsx)(A,{teamId:t===l.cxP.Left?s.homeTeam.id:s.awayTeam.id,heatmap:null==w?void 0:w.heatmap,heatmapTransform:j,isLineupsBackground:!0,children:(0,a.jsx)("g",{transform:h,textAnchor:"middle",fontSize:"16px",fontWeight:"700",fontFamily:"'Sofascore Sans', sans-serif",children:(0,a.jsxs)(g.N,{children:[(0,a.jsxs)(m.m.g,{fill:"white",initial:{opacity:0},animate:{opacity:.5},transform:"translate(136 136)",children:[(0,a.jsx)("rect",{width:"8",height:"116"}),(0,a.jsx)("path",{d:"M16 8 4 16V0zM0 6h4v4H0z",transform:"translate(0 116), rotate(90), scale(2)",style:{transformOrigin:"4px 8px"}})]},t),E.map(e=>{let{x:t,y:s,player:l,fillColor:i,hasLowPoints:n}=e;return(r?R.out.has(l.id):R.in.has(l.id))?null:(0,a.jsx)(m.m.circle,{initial:{opacity:0,r:0},animate:{opacity:(0,b.cl)(n,!!u,l.id===(null==u?void 0:u.id)),r:16},transition:r&&!u?{delay:.2}:void 0,fill:i,cx:t,cy:s,style:{cursor:"pointer"},onClick:F(l)},l.id+"circle")}),E.map(e=>{let{x:t,y:s,player:l,jersey:i,numberColor:n,hasLowPoints:o}=e;return(r?R.out.has(l.id):R.in.has(l.id))?null:(0,a.jsx)(m.m.text,{initial:{opacity:0},animate:{opacity:(0,b.cl)(o,!!u,l.id===(null==u?void 0:u.id))},transition:r&&!u?{delay:.2}:void 0,x:t,y:s+1,style:{transformOrigin:"".concat(t,"px ").concat(s,"px"),zIndex:1,cursor:"pointer"},transform:x,fill:n,alignmentBaseline:"middle",onClick:F(l),children:i},l.id+"txt")})]})})})}),(0,a.jsx)(C,{selectedPlayer:u,setSelectedPlayer:f,players:E})]})}let B=(0,i.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 E(){let{event:e,location:t}=(0,n.useContext)(d.y$),[s,r]=(0,n.useState)(l.cxP.Left),c=t===d.cb.Widget,{data:u,error:h}=(0,o.Ay)(l.bnp.averagePositions(e.id),(0,p.rf)(e));if(!u)return(0,a.jsx)(i.az,{h:"[420px]"});if(h)return null;let g={in:new Set,out:new Set},m=u.substitutions.sort((e,t)=>{var s,a;return(null!=(s=e.time)?s:0)-(null!=(a=t.time)?a:0)});for(let e=0;e(0,r.Ui)(Date.now(),s.startTimestamp,"minutes"),f=!1;return(c?f=!0:s.status.type===l.XUj.InProgress&&(f=p&&1===s.detailId),f)?p?null:t?(0,a.jsx)(N,{}):(0,a.jsx)(Z,{}):void 0===c&&1===s.detailId&&s.status.type!==l.XUj.NotStarted?(0,a.jsx)(i.az,{h:"5xl"}):null}function N(){return(0,a.jsx)(i.az,{pb:"sm",borderBottomRadius:"lg",overflow:"hidden",children:(0,a.jsxs)(c.Zp,{variant:"never",children:[(0,a.jsx)(c.Zp.Header,{titleId:"players_average_positions"}),(0,a.jsxs)(i.so,{gap:"sm",px:"sm",children:[(0,a.jsx)(i.az,{flexGrow:1,flexShrink:1,flexBasis:"6xl",br:"sm",overflow:"hidden",children:(0,a.jsx)(z,{selectedSide:l.cxP.Left})}),(0,a.jsx)(i.az,{flexGrow:1,flexShrink:1,flexBasis:"6xl",br:"sm",overflow:"hidden",children:(0,a.jsx)(z,{selectedSide:l.cxP.Right})})]})]})})}function Z(){return(0,a.jsx)(i.az,{px:"sm",children:(0,a.jsxs)(c.Zp,{children:[(0,a.jsx)(c.Zp.Header,{titleId:"players_average_positions",as:"h4"}),(0,a.jsx)(E,{})]})})}},9045:(e,t,s)=>{s.d(t,{m:()=>g});var a=s(6029),l=s(10292),r=s(28349),i=s(76356),n=s(55729),o=s(46222),c=s(99913),d=s(64006),u=s(94156),p=s(16805);function f(e){let{missingPlayer:t,left:s,first:n}=e;return t?(0,a.jsxs)(i.so,{h:"5xl",w:"100%",align:"center",direction:s?"row":"row-reverse",gap:"lg",overflow:"hidden",pl:s?"lg":void 0,pr:s?void 0:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,a.jsx)(l.t,{size:40,id:t.player.id,style:{display:"block"}}),(0,a.jsxs)(i.so,{overflow:"hidden",direction:"column",justify:"center",align:s?"flex-start":"flex-end",gap:"xs",children:[(0,a.jsx)(r.EY,{children:(0,a.jsx)(u.c,{entity:t.player,short:!0})}),(0,a.jsx)(c.Ck,{missingPlayer:t})]})]}):n?(0,a.jsx)(p.A,{messageId:"no_missing_players",isInverted:!s}):null}function h(e){let{home:t,away:s,first:l}=e,r=(null==t?void 0:t.player)?d.uc:n.Fragment,o=(null==s?void 0:s.player)?d.uc:n.Fragment;return(0,a.jsxs)(i.so,{justify:t||l?"space-between":"flex-end",children:[(0,a.jsx)(r,{player:null==t?void 0:t.player,style:{width:"50%"},children:(0,a.jsx)(f,{missingPlayer:t,first:!!l,left:!0})}),(0,a.jsx)(o,{player:null==s?void 0:s.player,style:{width:"50%"},children:(0,a.jsx)(f,{missingPlayer:s,first:!!l})})]})}function g(e){let{home:t,away:s}=e;if(void 0===t&&void 0===s)return null;let l=Math.max((null==t?void 0:t.length)||0,(null==s?void 0:s.length)||0);return(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"injuries_and_suspensions"}),Array.from({length:l}).map((e,l)=>{var r,i,n,o;return(0,a.jsx)(h,{home:null==t?void 0:t[l],away:null==s?void 0:s[l],first:0===l},"".concat(null==t||null==(i=t[l])||null==(r=i.player)?void 0:r.id).concat(null==s||null==(o=s[l])||null==(n=o.player)?void 0:n.id))}),(0,a.jsx)(o.Zp.Footer,{})]})}},9835:(e,t,s)=>{s.d(t,{H7:()=>h,q6:()=>f});var a=s(6029),l=s(55729),r=s(947),i=s(90248),n=s(18970),o=s(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 d=s(91113);let u="DEFAULT",p=(e,t)=>(0,d.O)(c,e,t,u),f=(e,t,s)=>{let a=p(t?"".concat(e,".").concat(t):e,s);return"goal"===a&&s?o.dv.includes(s)?a:void 0:a!==u||t&&(a=p(t,s))!==u?a:(a=p(e,s))!==u?a:void 0},h=e=>{let{id:t}=e,s=(0,r.A)(),o=p(t,(0,l.useContext)(n.Ws));if(o!==u)return(0,a.jsx)(i.A,{id:o});let c=s.formatMessage({id:t});return c!==t?(0,a.jsx)(a.Fragment,{children:c}):null}},11406:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(6029),l=s(39895);function r(e){return(0,a.jsx)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:(0,a.jsx)("path",{d:"M10.9902 9.92969V11.2461L9.73926 13.749L7.2373 15H6.57812L6.63477 14.9717L8.93066 12.5449L10.2754 9.52539L10.9902 9.92969ZM8.36621 12.1025L6.30566 14.3506L4.69727 14.9814L2.63672 13.9463L3.85938 13.6826L5.94824 11.8584L7.19922 9.37402H9.57031L8.36621 12.1025ZM1.77148 8.26465L3.38965 10.9639L4.97949 11.7734L3.53027 13.0342L2.04395 13.3535L1 11.2461V8.75391L2.11914 6.50488L1.77148 8.26465ZM4.60254 6.50488L6.50293 9.19531L5.49707 11.2373L3.8877 10.4277L2.51465 8.13281L2.96582 5.89355L4.74414 5H4.7627L4.60254 6.50488ZM10.3037 7.39844L10.9902 8.75391V9.13965L10.21 8.66895H6.99219L5.65625 6.77832H8.75195L10.3037 7.39844ZM9.73047 6.26074L9.82422 6.48633L8.95898 6.10059L5.35547 6.07227L5.46875 5H7.2373L9.73047 6.26074ZM14.9922 3.05078L11.6006 6.37695L10.5303 5.32617L13.9209 2L14.9922 3.05078ZM11.9629 2.0498L9.99902 3.97559L8.92871 2.92578L10.8916 1L11.9629 2.0498Z",fill:e.fill})}))}},11663:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(90142),l=s(6029),r=s(39895);function i(e){var{fill:t="#39B57A"}=e,s=(0,a.T)(e,["fill"]);return(0,l.jsx)(r.A,Object.assign({width:"12",height:"14",viewBox:"0 0 12 14",fill:t},s,{children:(0,l.jsxs)("g",Object.assign({clipPath:"url(#clip0_2019_94513)"},{children:[(0,l.jsx)("path",{d:"M1.5 8V10.25H7.75V8H8.75L11.75 11L8.75 14H7.75V11.75H0V8H1.5Z",fill:t}),(0,l.jsx)("path",{d:"M3.75 8H5.25V4.75H8.5V3.25H5.25V0H3.75V3.25H0.5V4.75H3.75V8Z",fill:"#E35C47"})]}))}))}},12408:(e,t,s)=>{s.d(t,{$8:()=>o,T0:()=>i,XU:()=>c,cl:()=>d,eA:()=>r,jM:()=>n});var a=s(21377);class l{dist(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}atan(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new l(0,0);return Math.atan2(this.y-e.y,this.x-e.x)}add(e,t){let s=this.atan(t);return this.x+=e*Math.cos(s),Math.abs(s-Math.PI)>.005&&(this.y+=e*Math.sin(s)),[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,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,a=e.map(e=>{let{x:t,y:s}=e;return new l(t,s)}),r=0;do for(let s=0;s({...e,...a[t]}))}let i=e=>{let t=new Map;if(e)for(let s=0;s{var s,a,l,r,i,n,o,c;let d=(null==t||null==(s=t.playerColor)?void 0:s.primary)||(null==t||null==(a=t.playerColor)?void 0:a.outline),u=(null==t||null==(l=t.playerColor)?void 0:l.fancyNumber)||(null==t||null==(r=t.playerColor)?void 0:r.number);return"G"===e.position&&(d=(null==t||null==(i=t.goalkeeperColor)?void 0:i.primary)||(null==t||null==(n=t.goalkeeperColor)?void 0:n.outline),u=(null==t||null==(o=t.goalkeeperColor)?void 0:o.fancyNumber)||(null==t||null==(c=t.goalkeeperColor)?void 0:c.number)),{fillColor:d=(null==d?void 0:d.startsWith("#"))?"#fff":"#"+d,numberColor:u=(null==u?void 0:u.startsWith("#"))?"#000":"#"+u}};function o(){let e=!1;return!(0,a.S$s)()&&"navigator"in window&&(e=/Firefox/.test(window.navigator.userAgent)),e}function c(e){return e>1&&e<=7}function d(e,t,s){return t?e?s?.75:.25:s?1:.5:e?.5:1}},16805:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(6029),l=s(28349),r=s(76356),i=s(90248),n=s(52466);function o(e){let{messageId:t,isInverted:s}=e;return(0,a.jsxs)(r.so,{direction:s?"row-reverse":"row",gap:"sm",align:"center",h:"5xl",maxW:"100%",px:"sm",children:[(0,a.jsx)(n.G_L,{width:24,height:24,fill:"onSurface.nLv3",style:{display:"block",minWidth:"24px"}}),(0,a.jsx)(l.EY,{textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:(0,a.jsx)(i.A,{id:t})})]})}},18974:(e,t,s)=>{s.d(t,{n:()=>a.A});var a=s(26792)},24414:(e,t,s)=>{s.d(t,{n:()=>c});var a=s(6029),l=s(28349),r=s(62042),i=s(76356),n=s(99064),o=s(90248);function c(e){let{activeTabKey:t,onChange:s,tabs:c,variant:d,children:u,onTabClick:p,fullWidthTabs:f=!1}=e,h="secondary"===d;return(0,a.jsxs)(n.tU,{variant:"quaternary",value:t,onChange:s,children:[(0,a.jsx)(l.tR,{children:(0,a.jsx)(i.so,{gap:h?"xs":"sm",bg:h?"surface.s2":void 0,br:"lg",h:"[34px]",p:"2xs",className:h?(0,r.AH)({"--surface-s2":"transparent"}):void 0,w:f?"100%":"fit",mx:h?"auto":void 0,mb:f?"sm":void 0,children:c.map(e=>(0,a.jsx)(n.tU.Tab,{tabKey:e.tabKey,bg:e.tabKey===t?"neutrals.nLv1":void 0,display:"flex",h:"100%",px:"0",py:"0",br:"lg",ml:"0 !important",mr:"0 !important",onClick:()=>null==p?void 0:p(e.tabKey),w:f?"100%":void 0,children:e.isImage?(0,a.jsx)(i.az,{px:"lg",h:"xl",alignSelf:"center",children:e.tabValue}):(0,a.jsx)(l.EY,{display:"block",px:"tertiary"===d?"md":"lg",textStyle:h?"tab.secondary":"assistive.default",color:e.tabKey===t?"surface.s1":"neutrals.nLv1",textTransform:h?"uppercase":void 0,alignSelf:"center",children:"string"==typeof e.tabValue?(0,a.jsx)(o.A,{id:e.tabValue}):e.tabValue})},e.tabKey))})}),u]})}},24854:(e,t,s)=>{s.d(t,{M:()=>f});var a=s(6029),l=s(28349),r=s(55729),i=s(947),n=s(18970),o=s(9835),c=s(76356),d=s(52466);let u={card:{yellow:{fill:"scoreRating.s65",Icon:e=>(0,a.jsx)(d.NcS,{icon:"card-yellow",...e})},yellowRed:{Icon:e=>(0,a.jsx)(d.NcS,{icon:"card-double-yellow",...e})},red:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"card-red",...e})}},goal:{football:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-own-goal",...e})}},futsal:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-own-goal",...e})},accumulatedPenalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"accumulated-penalty",...e})}},minifootball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-penalty",...e})},accumulatedPenalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"accumulated-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-own-goal",...e})}},volleyball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"volleyball-spike",...e})},spike:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"volleyball-spike",...e})},opponentError:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"volleyball-opponent-error",...e})},ace:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"volleyball-ace",...e})},block:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"volleyball-block",...e})}},basketball:{onePoint:{fill:"primary.default",Icon:()=>(0,a.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,a.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"1"})})},twoPoints:{fill:"primary.default",Icon:()=>(0,a.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,a.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"2"})})},threePoints:{fill:"primary.default",Icon:()=>(0,a.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,a.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"3"})})}},bandy:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"bandy-goal",...e})}},floorball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"floorball-goal",...e})}},"ice-hockey":{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-puck",...e})},emptynet:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-puck",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-penalty-goal",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-own-goal",...e})},powerplay:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,a.jsx)(d.NcS,{icon:"ice-hockey-puck",...e}),(0,a.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,a.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"PP"})})]})},shorthanded:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,a.jsx)(d.NcS,{icon:"ice-hockey-puck",...e}),(0,a.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,a.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"SH"})})]})}},badminton:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"badminton",...e})}},"aussie-rules":{goal:{fill:"primary.default",Icon:()=>(0,a.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,a.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"6"})})},behind:{fill:"primary.default",Icon:()=>(0,a.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,a.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"1"})})}},"table-tennis":{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"table-tennis",...e})}},waterpolo:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"water-polo",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"water-polo-penalty",...e})}},"american-football":{touchdown:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"af-touchdown",...e})},fieldGoal:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"af-field-goal",...e})},safety:{fill:"success.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"af-safety",...e})},extraPoint:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"af-extra-point",...e})},rouge:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"af-rouge",...e})},twoPointConversion:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,a.jsx)(d.NcS,{icon:"af-touchdown",...e}),(0,a.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,a.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"2"})})]})}},rugby:{try:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"rugby-try",...e})},penaltyTry:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"rugby-penalty-try",...e})},onePoints:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"rugby-one-point",...e})},twoPoints:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"rugby-two-points",...e})},threePoints:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"rugby-three-points",...e})}},handball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"handball-goal",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"handball-penalty",...e})}},regular:{fill:"",Icon:()=>null}},substitution:{injury:{fill:"primary.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"substitution-injured",...e})},regular:{fill:"primary.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"substitution",...e})}},penaltyShootout:{waterpolo:{scored:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"water-polo-penalty",...e})}},handball:{scored:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"handball-penalty",...e})}},taker:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"penalty-taker",...e})},scored:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-penalty",...e})},missed:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"penalty-missed",...e})}},inGamePenalty:{taker:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"penalty-taker",...e})},scored:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"football-penalty",...e})},missed:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"penalty-missed",...e})}},penaltyAwarded:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(d.NcS,{icon:"penalty-taker",isRtlPrevented:!0,...e})}},varDecision:{regular:{fill:"primary.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",isRtlPrevented:!0,...e})},vip_for_penalty:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})},vip_for_goal:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})},vip_for_red_card:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})},vip_for_no_goal:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})},vip_for_no_penalty:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})},vip_for_no_red_card:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})},vip_for_unknown:{fill:"sofaSingles.live",Icon:e=>(0,a.jsx)(d.NcS,{icon:"var",...e})}},suspension:{"ice-hockey":{tenMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})},twoMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})},fiveMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})},tensMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})}},minifootball:{regular:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"2-min-suspension",...e})}},twoMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(d.NcS,{icon:"2-min-suspension",...e})}}},p=e=>{var t,s,r,n,c,d,p;let{incidentType:f,incidentClass:h,sport:g,svgProps:m,isLeft:y=!1}=e,x=(0,i.A)(),j=g?(null==(s=u[f])||null==(t=s[g])?void 0:t.regular)||(null==(r=u[f])?void 0:r.regular):null==(n=u[f])?void 0:n.regular,{textDirection:v}=(0,l.$c)();g&&h&&(j=(null==(d=u[f])||null==(c=d[g])?void 0:c[h])||(null==(p=u[f])?void 0:p[h])||u[f].regular);let b="substitution"===f,_="substitution"===f&&"injury"===h,S="goal"===f&&"ownGoal"===h;if(null==j||!j.Icon)return(0,a.jsx)("div",{style:{width:16}});{let e=(0,o.q6)(f,h,g);return(0,a.jsx)(j.Icon,{width:16,height:16,fill:j.fill,title:e?x.formatMessage({id:e}):void 0,style:{minWidth:(null==m?void 0:m.width)||"16px",display:"inline-block",transform:((e,t,s,a,l)=>{if(e){if(a)return l?"scale(1,1)":"rotateY(180deg)";if(l&&t&&!s)return"rotate(180deg)"}else{if(l&&t&&!s)return"scale(1,1)";if(s)return l?"scale(1,1)":"rotateY(180deg)";if(t)return l?"rotateY(180deg)":"rotate(180deg)"}})(y,b,_,S,"rtl"===v)},...m})}},f=e=>{let t=(0,r.useContext)(n.Ws);return(0,a.jsx)(p,{...e,sport:e.sport||t})}},25766:(e,t,s)=>{var a,l;s.d(t,{V:()=>a,k:()=>l}),function(e){e.Possible="possible",e.Confirmed="confirmed"}(a||(a={})),function(e){e.Performance="performance",e.Distance="distance",e.Club="club",e.Nationality="nationality",e.Age="age",e.MarketValue="marketValue",e.Height="height"}(l||(l={}))},26792:(e,t,s)=>{s.d(t,{A:()=>d});var a=s(6029),l=s(33144),r=s(21377),i=s(76356),n=s(55729),o=s(18970);function c(e){let{team:t,side:s,activeTeam:r,isBackgroundInverse:o,onTeamClick:c}=e,d=(0,n.useCallback)(()=>c(s),[c,s]),u=r===s;return(0,a.jsx)(i.ov,{h:"2xl",flexGrow:1,userSelect:"none",bg:u?"primary.highlight":o?"surface.s1":"surface.s2",br:"sm",onClick:d,cursor:"pointer",children:(0,a.jsx)(l.p,{size:24,id:t.id,name:t.name})})}function d(e){let{activeTeam:t,isBackgroundInverse:s,onTeamClick:l,...d}=e,{leftTeam:u,rightTeam:p}=(0,n.useContext)(o.y$);return(0,a.jsxs)(i.so,{justify:"space-between",gap:"lg",...d,children:[(0,a.jsx)(c,{team:u,side:r.cxP.Left,activeTeam:t,onTeamClick:l,isBackgroundInverse:s}),(0,a.jsx)(c,{team:p,side:r.cxP.Right,activeTeam:t,onTeamClick:l,isBackgroundInverse:s})]})}},27936:(e,t,s)=>{s.d(t,{w:()=>o});var a=s(6029),l=s(90248),r=s(18970),i=s(50677),n=s(91113);let o=e=>{let{id:t,children:s}=e;return(0,a.jsx)(r.Ws.Consumer,{children:e=>{let r=(0,n.O)(i,t,e);return(0,a.jsx)(l.A,{id:r,children:e=>r===String(e)?null:"function"==typeof s?s(e):(0,a.jsx)(a.Fragment,{children:e})})}})}},28105:(e,t,s)=>{s.r(t),s.d(t,{default:()=>ek,excludedSeasonIds:()=>eb});var a=s(6029),l=s(21377),r=s(28349),i=s(76356),n=s(99064),o=s(55729),c=s(45860),d=s(46222),u=s(18970),p=s(24414),f=s(41164),h=s(54850),g=s(9045),m=s(10292),y=s(947),x=s(52466),j=s(59e3),v=s(64006),b=s(72590),_=s(8900),S=s(94156),k=s(16805),w=s(75853),C=s(67087);function M(e){let{statistic:t,topPlayer:s,sport:l,first:n,left:o}=e;return s?(0,a.jsxs)(i.so,{h:"5xl",w:"100%",align:"center",direction:o?"row":"row-reverse",gap:"lg",overflow:"hidden",_hover:{bg:"surface.s2"},cursor:"pointer",pl:o?"lg":void 0,pr:o?void 0:"lg",children:[(0,a.jsx)(m.t,{size:40,id:s.player.id,style:{display:"block"}}),(0,a.jsxs)(i.so,{overflow:"hidden",direction:"column",justify:"center",align:o?"flex-start":"flex-end",gap:"xs",children:[(0,a.jsx)(r.EY,{children:(0,a.jsx)(b.A,{sport:l,stat:s.statistics,selectedStat:t})}),(0,a.jsx)(r.EY,{w:"100%",textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,display:"block",children:(0,a.jsx)(S.c,{entity:s.player,short:!0})})]})]}):n?(0,a.jsx)(k.A,{messageId:"yet.to.perform",isInverted:!o}):null}function P(e){let{statistic:t,homePlayer:s,awayPlayer:l,sport:r,first:n}=e;if(!s&&!l)return null;let c=(null==s?void 0:s.player)?v.uc:o.Fragment,d=(null==l?void 0:l.player)?v.uc:o.Fragment;return(0,a.jsxs)(i.so,{justify:s||n?"space-between":"flex-end",children:[(0,a.jsx)(c,{player:null==s?void 0:s.player,style:{width:"50%"},children:(0,a.jsx)(M,{statistic:t,topPlayer:s,sport:r,first:n,left:!0})}),(0,a.jsx)(d,{player:null==l?void 0:l.player,style:{width:"50%"},children:(0,a.jsx)(M,{statistic:t,topPlayer:l,sport:r,first:n})})]})}function L(e){let{statistic:t,homePlayers:s,awayPlayers:n,sport:c,type:d}=e,u=(0,y.A)(),[p,f]=(0,o.useState)(!1);return s.length||n.length?(0,a.jsxs)(i.az,{style:{userSelect:"none"},children:[(0,a.jsxs)(i.so,{bg:p?"surface.s2":void 0,pt:"md",pb:"xs",align:"center",justify:"center",onClick:()=>f(e=>!e),cursor:"pointer",children:[(0,a.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"xs",children:(0,_.y)(u,t,c,d===l.Vw_.playoffs)}),(0,a.jsx)(x.zQC,{icon:p?"chevron-up":"chevron-down",width:24,height:24,fill:"onSurface.nLv1"})]}),(0,a.jsx)(P,{statistic:t,homePlayer:s[0],awayPlayer:n[0],sport:c,first:!0}),p&&Array.from({length:4}).map((e,l)=>{let r=l+1;return(0,a.jsx)(P,{statistic:t,homePlayer:s[r],awayPlayer:n[r],sport:c},t+r)})]}):null}function H(e){let{homeTeamId:t,awayTeamId:s,sport:r,uniqueTournamentId:n,seasonId:u,type:p,gender:f}=e,{data:h,error:g}=(0,c.Ay)(l.cWY.topPlayers(t,n,u,p)),{data:m,error:y}=(0,c.Ay)(l.cWY.topPlayers(s,n,u,p)),x=(0,o.useMemo)(()=>(0,j.t)(r),[n]);return g&&y||!x?null:((null==h?void 0:h.topPlayers)||g)&&((null==m?void 0:m.topPlayers)||y)?(0,a.jsxs)(d.Zp,{children:[(0,a.jsx)(d.Zp.Header,{titleId:"top_players",values:{gender:null!=f?f:l.YT8.Male}}),(0,a.jsx)(i.az,{pb:{base:"sm",md:"md"},children:x.map(e=>(0,a.jsx)(L,{sport:r,statistic:e,homePlayers:((null==h?void 0:h.topPlayers[e])||[]).filter(e=>e.playedEnough),awayPlayers:((null==m?void 0:m.topPlayers[e])||[]).filter(e=>e.playedEnough),type:p},e))})]}):(0,a.jsx)(w.A,{})}function I(e){var t,s;let{event:l}=e,r=l.tournament.category.sport.slug,i=(0,C.g3)();return l.seasonStatisticsType&&(null==(t=l.tournament.uniqueTournament)?void 0:t.id)&&(null==(s=l.season)?void 0:s.id)&&-1!==j.u.indexOf(r)?(0,a.jsx)(H,{homeTeamId:i?l.awayTeam.id:l.homeTeam.id,awayTeamId:i?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 R=s(54548),A=s(72696),O=s(92667),G=s(90248),V=s(86931),T=s(31830),z=s(88715),B=s(56132),E=s(29180),F=s(14831),N=s(15341),Z=s(79082),D=s(6664),W=s(64605),Y=s(48827),Q=s(96688),U=s(76155),K=s(82346);function $(e){let{event:t}=e,s=(0,T.A)(),n=(0,Q.y)(s);if(t.tournament.category.sport.slug!==l.QCR.Football||!t.hasEventPlayerStatistics)return null;let o=t.tournament.uniqueTournament?(0,a.jsx)(K.O,{uniqueTournament:t.tournament.uniqueTournament}):(0,a.jsx)(U.J,{tournament:t.tournament});return(0,a.jsx)(d.Zp,{children:(0,a.jsxs)(i.so,{p:"md",gap:"lg",children:[(0,a.jsx)(x.G_L,{fill:"onSurface.nLv3",width:"24",height:"24",minW:24}),(0,a.jsxs)(i.az,{children:[(0,a.jsx)(r.EY,{display:"block",textStyle:"body.small",color:"neutrals.nLv1",mb:"sm",children:(0,a.jsx)(G.A,{id:"rating_lineups_info",values:{name:o}})}),(0,a.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",children:[(0,a.jsx)(r.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,a.jsx)(G.A,{id:"read_more"})}),(0,a.jsx)(x.CCT,{width:"16",height:"16",ml:"xxs",fill:"primary.default",style:{verticalAlign:"middle"}})]})]})]})})}var X=s(18974),q=s(18858),J=s(99902),ee=s(99913),et=s(8329),es=s(95543),ea=s(41735),el=s(42140);function er(e){let{value:t,iconColor:s,games:l}=e;return t&&l?(0,a.jsxs)(i.so,{align:"center",gap:"xs",children:[(0,a.jsx)(x.PhV,{fill:s}),(0,a.jsx)(r.EY,{textStyle:"body.small",children:(0,es.M)(t/l,2)})]}):null}let ei=function(e){let{referee:t}=e,s=(0,o.useContext)(ea.ThemeContext);return(0,a.jsx)(el.A,{referee:t,children:(0,a.jsxs)(i.so,{direction:"column",gap:"xs",align:"center",children:[(0,a.jsxs)(i.so,{gap:"xs",justify:"center",children:[(0,a.jsx)(et.w,{alpha2:t.country.alpha2,size:16}),(0,a.jsx)(r.EY,{children:null==t?void 0:t.name})]}),(0,a.jsxs)(i.so,{gap:"sm",alignItems:"center",justify:"center",children:[(0,a.jsx)(r.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,a.jsx)(G.A,{id:"average_cards"})}),(0,a.jsxs)(i.so,{gap:"xs",alignContent:"center",children:[(0,a.jsx)(er,{value:t.redCards,games:t.games,iconColor:s.colors.error.default}),(0,a.jsx)(er,{value:t.yellowCards,games:t.games,iconColor:s.colors.scoreRating.s65})]})]})]})})};var en=s(84823);function eo(e){var t,s,r,n,c,p,f,h,g,m,y,x;let{event:j,leftTeam:v,rightTeam:b}=(0,o.useContext)(u.y$),_=j.tournament.category.sport.slug===l.QCR.Football,S=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),k=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),w=(null==(t=e.managers)?void 0:t.leftManager)||(null==(s=e.managers)?void 0:s.rightManager);return(0,a.jsxs)(i.so,{direction:"column",gap:"sm",children:[_&&(null==j?void 0:j.referee)&&(0,a.jsxs)(d.Zp,{children:[(0,a.jsx)(d.Zp.Header,{titleId:"referee"}),(0,a.jsx)(i.az,{my:"xs",children:(0,a.jsx)(ei,{referee:j.referee})})]}),_&&w&&(0,a.jsxs)(d.Zp,{children:[(0,a.jsx)(d.Zp.Header,{titleId:"managers"}),(0,a.jsxs)(i.so,{gap:"sm",children:[(0,a.jsx)(i.so,{w:"100%",maxW:"1/2",grow:1,children:(null==(r=e.managers)?void 0:r.leftManager)&&(0,a.jsx)(J.A,{manager:null==(n=e.managers)?void 0:n.leftManager,isBorderHidden:!0,incidents:null==(c=e.incidents)?void 0:c.filter(e=>e.manager)})}),(0,a.jsx)(i.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,a.jsx)(i.so,{w:"100%",maxW:"1/2",grow:1,children:(null==(p=e.managers)?void 0:p.rightManager)&&(0,a.jsx)(J.A,{manager:null==(f=e.managers)?void 0:f.rightManager,isBorderHidden:!0,incidents:null==(h=e.incidents)?void 0:h.filter(e=>e.manager)})})]})]}),!e.hasFormation&&_&&(0,a.jsxs)(d.Zp,{children:[(0,a.jsx)(d.Zp.Header,{titleId:"startingEleven.title"}),(0,a.jsxs)(i.so,{children:[(0,a.jsx)(en.A,{players:e.lineups.left.players.filter(e=>!e.substitute),team:v,manager:null==(g=e.managers)?void 0:g.leftManager,highlightStarters:!1,hasRating:k,event:j,...e},"left"),(0,a.jsx)(i.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,a.jsx)(en.A,{players:e.lineups.right.players.filter(e=>!e.substitute),team:b,manager:null==(m=e.managers)?void 0:m.rightManager,hasTopBorder:!1,highlightStarters:!1,hasRating:k,event:j,...e},"right")]})]}),S&&(0,a.jsxs)(d.Zp,{children:[_&&(0,a.jsx)(d.Zp.Header,{titleId:"substitutions"}),(0,a.jsxs)(i.so,{children:[(0,a.jsx)(en.A,{players:_?e.lineups.left.players.filter(e=>e.substitute):e.lineups.left.players,team:v,manager:null==(y=e.managers)?void 0:y.leftManager,hasRating:k,event:j,...e},"left"),(0,a.jsx)(i.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,a.jsx)(en.A,{players:_?e.lineups.right.players.filter(e=>e.substitute):e.lineups.right.players,team:b,manager:null==(x=e.managers)?void 0:x.rightManager,hasTopBorder:!1,hasRating:k,event:j,...e},"right")]})]}),(0,a.jsx)(ee.PM,{left:e.lineups.left.missingPlayers,right:e.lineups.right.missingPlayers})]})}function ec(e){var t,s,n;let c=(0,q.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),[p,f]=(0,o.useState)(l.cxP.Left),h=p===l.cxP.Left?e.lineups.left:e.lineups.right,{event:g,leftTeam:m,rightTeam:y}=(0,o.useContext)(u.y$),x=e.hasFormation?h.players.filter(e=>e.substitute):h.players,j=g.tournament.category.sport.slug===l.QCR.Football,v=p===l.cxP.Left?null==(t=e.managers)?void 0:t.leftManager:null==(s=e.managers)?void 0:s.rightManager,b=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),_=e.lineups[p].players.filter(e=>!e.substitute),S=e.lineups[p].players.filter(e=>e.substitute),k=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),w=j&&!!_.length;return(0,a.jsx)(i.az,{px:"sm",children:(0,a.jsxs)(i.so,{direction:"column",gap:"sm",children:[(0,a.jsx)(r.PI,{top:c,children:e=>(0,a.jsx)(d.WC,{variant:e?"square":void 0,children:(0,a.jsx)(i.az,{mx:e?"-sm":void 0,children:(0,a.jsx)(d.Zp,{children:(0,a.jsx)(X.n,{p:"sm",gap:"sm",activeTeam:p,onTeamClick:f})})})})}),v&&(0,a.jsx)(J.A,{manager:v,incidents:null==(n=e.incidents)?void 0:n.filter(e=>e.manager),isBorderHidden:!0}),!e.hasFormation&&(0,a.jsxs)(d.Zp,{children:[w&&(0,a.jsx)(d.Zp.Header,{titleId:"startingEleven.title",as:"h4"}),(0,a.jsx)(en.A,{hideTeamHeader:!0,players:j?_:x,team:p===l.cxP.Left?m:y,highlightStarters:!j,hasRating:k,event:g,...e},p)]}),b&&j&&!!S.length&&(0,a.jsxs)(d.Zp,{children:[(0,a.jsx)(d.Zp.Header,{titleId:"substitutions",as:"h4"}),(0,a.jsx)(en.A,{hideTeamHeader:!0,players:S,team:p===l.cxP.Left?m:y,hasRating:k,event:g,...e},p)]}),!!(e.lineups.left.missingPlayers||e.lineups.right.missingPlayers)&&(0,a.jsx)(ee.Sb,{missingPlayers:h.missingPlayers})]})})}function ed(e){let{isMobile:t,isDesktop:s}=(0,r.$c)(),{location:l}=(0,o.useContext)(u.y$),i=s&&l===u.cb.EventPage;return t||!i?(0,a.jsx)(ec,{...e}):(0,a.jsx)(eo,{...e})}function eu(e){let t,l,c=(0,T.A)(),{event:d,location:p}=(0,o.useContext)(u.y$),{bestPlayer:f}=(0,V.Y)(d),{isDesktop:h}=(0,r.$c)(),g=h&&p===u.cb.EventPage;try{t=e.lineups.left.formation?(0,E.V)(e.lineups.left.formation,e.lineups.left.players.filter(e=>!e.substitute)):void 0,l=e.lineups.right.formation?(0,E.V)(e.lineups.right.formation,e.lineups.right.players.filter(e=>!e.substitute)):void 0}catch(e){console.error(e)}let m=!!(t&&l),y=window.location.host+z.z.getTranslatedRoute(c,"event",{id:d.customId,name:d.slug,sport:d.tournament.category.sport.slug}).route,j="#"+(0,Z.HL)({id:d.id,tab:B.x.Lineups}),{isShareEnabled:v,componentRef:b,shareButton:_}=function(e,t){var l;let[r,i,c]=(0,N.A)("sofa.isComponentShareEnabled",!!(null==(l=window.navigator.clipboard)?void 0:l.write)),[d,u]=(0,o.useState)(!1),p=(0,o.useRef)(null),f={autoClose:5e3,closeButton:!1,className:"sofa-toast--info",position:"bottom-center"},h=(0,o.useCallback)(async()=>{if(p.current&&r)try{u(!0);let e=(await s.e(33933).then(s.t.bind(s,63067,23))).default,l=await e(p.current,{useCORS:!0,allowTaint:!0}),r=await new Promise(e=>l.toBlob(e)),i=new Blob([t||""],{type:"text/plain"});r&&(await window.navigator.clipboard.write([new ClipboardItem({"image/png":r,"text/plain":i})]),(0,F.MZ)((0,a.jsxs)(n.so,{align:"center",children:[(0,a.jsx)(x.G_L,{fill:"onColor.primary",mr:"lg"}),(0,a.jsx)(n.EY,{block:!0,color:"onColor.primary",font:"display.small",children:(0,a.jsx)(G.A,{id:"basic.copiedToClipboard"})})]}),f))}catch(e){i(!1),(0,F.MZ)((0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.so,{align:"center",children:[(0,a.jsx)(x.cgL,{fill:"onColor.primary",mr:"md"}),(0,a.jsx)(n.EY,{block:!0,c:"onColor.primary",font:"display.small",children:(0,a.jsx)(G.A,{id:"error.anErrorOccurred"})})]}),e.message&&(0,a.jsx)(n.EY,{block:!0,c:"onColor.primary",font:"body.small",mt:"sm",children:e.message})]}),{...f,className:"sofa-toast--error"})}finally{u(!1)}},[p.current,d,r]),g=c&&r?(0,a.jsx)(G.A,{id:"basic.share",children:t=>(0,a.jsx)(n.$n,{"aria-label":String(t),size:"xs",tertiary:!0,disabled:d,style:d?{cursor:"wait"}:void 0,onClick:h,children:e||(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(G.A,{id:"basic.share"}),(0,a.jsx)(x.VJ,{fill:"surface.s1",ml:"xxs",width:16,height:16})]})})}):null;return{isGeneratingScreenshot:d,shareButton:g,componentRef:p,isShareEnabled:r}}((0,a.jsxs)(i.so,{justify:"center",align:"center",children:[(0,a.jsx)(G.A,{id:"share_match_lineups"}),(0,a.jsx)(x.VJ,{fill:"surface.s1",ml:"xxs",width:"16",height:"16"})]}),y+j);return(0,a.jsx)(Y.V,{children:(0,a.jsxs)(i.az,{children:[m&&(0,a.jsx)(W.Ko,{...e,leftFormation:t,rightFormation:l,ref:b,playerOfTheMatchId:null==f?void 0:f.player.id,isShareEnabled:v,shareButton:_}),(0,a.jsxs)(i.so,{direction:"column",gap:"sm",pt:"sm",children:[(0,a.jsx)(i.so,{direction:g?"column-reverse":"column",gap:"sm",children:(0,a.jsx)(ed,{...e,hasFormation:m,playerOfTheMatchId:null==f?void 0:f.player.id})}),(0,a.jsx)(i.az,{px:"sm",children:(0,a.jsx)($,{event:d})}),(0,a.jsx)(D.K,{isHorizontalLayout:g})]})]})})}var ep=s(6813);let ef=e=>{let{lineups:t,managers:s}=e,[n,c]=(0,o.useState)(l.cxP.Left),{event:p,leftTeam:f,rightTeam:h}=(0,o.useContext)(u.y$),g=(0,q.Ay)(),{isMobile:m}=(0,r.$c)(),[y,x,j]=n===l.cxP.Left?[f,s.leftManager,t.left]:[h,s.rightManager,t.right];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.az,{bg:"surface.s1",w:"100%",position:{mdDown:"sticky"},style:{top:m?g:void 0},zIndex:"sticky",p:"sm",children:(0,a.jsx)(X.n,{activeTeam:n,onTeamClick:e=>c(e)})}),(0,a.jsxs)(i.so,{p:"sm",gap:"sm",direction:"column",children:[(0,a.jsxs)(d.Zp,{children:[(0,a.jsx)(d.Zp.Header,{titleId:"probable_pitchers"}),(0,a.jsx)(en.A,{players:j.players,team:y,event:p,hideTeamHeader:!0}),0===j.players.length&&(0,a.jsx)(ep.p,{graphic:"no-data",descriptionMessageId:"probable_pitchers_empty"})]}),!!(t.left.missingPlayers||t.right.missingPlayers)&&(0,a.jsx)(ee.Sb,{missingPlayers:j.missingPlayers})]})]})},eh=e=>{let{lineups:t}=e,{event:s,leftTeam:l,rightTeam:r}=(0,o.useContext)(u.y$);return(0,a.jsxs)(i.so,{direction:"column",children:[(0,a.jsx)(d.Zp.Header,{titleId:"probable_pitchers"}),(0,a.jsxs)(i.so,{children:[(0,a.jsx)(i.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(en.A,{players:t.left.players,team:l,event:s,hideTeamHeader:!0})}),(0,a.jsx)(i.az,{w:"[1px]",bg:"neutrals.nLv4",my:"xs"}),(0,a.jsx)(i.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(en.A,{players:t.right.players,team:r,event:s,hideTeamHeader:!0})})]}),(0,a.jsx)(d.Zp.Footer,{})]})};function eg(e){let{lineups:t,managers:s}=e,{isDesktop:l}=(0,r.$c)(),{location:i}=(0,o.useContext)(u.y$);return l&&i===u.cb.EventPage?(0,a.jsx)(eh,{lineups:t,managers:s}):(0,a.jsx)(ef,{lineups:t,managers:s})}function em(){return(0,a.jsx)(n.az,{h:900})}function ey(){let{event:e}=(0,o.useContext)(u.y$),{managers:t}=(0,R.K)(e),{lineups:s,confirmed:r,error:i}=(0,O.Ir)({jerseyStyle:"fancy"}),{data:n}=(0,c.Ay)(l.bnp.incidents(e.id),(0,f.rf)(e));return i?null:s?r?(0,a.jsx)(eu,{lineups:s,incidents:null==n?void 0:n.incidents,managers:t,confirmed:r,showPlayerStatistics:!1}):(0,a.jsx)(eg,{lineups:s,managers:t}):(0,a.jsx)(em,{})}var ex=s(83094),ej=s(84449),ev=s(30685);let eb=[17564,17565,17566,17567,17568,17569,17570,17571,1151,2636,16,2531,7528],e_=[{tabKey:1,tabValue:"lineups"},{tabKey:2,tabValue:"player_stats"}],eS=e=>{let{showPlayerStatistics:t}=e,[s,m]=(0,o.useState)(1),{event:y}=(0,o.useContext)(u.y$),x=y.tournament.category.sport.slug,{managers:j}=(0,R.K)(y),{lineups:v,confirmed:b,error:_}=(0,O.Ir)({jerseyStyle:x===l.QCR.Football?"clean":"fancy"}),{data:S}=(0,c.Ay)(l.bnp.incidents(y.id),(0,f.rf)(y)),{hasPregameTopPlayers:k}=(0,A.M)(y),{isDesktop:w}=(0,r.$c)(),C=y.season&&eb.includes(y.season.id);if(k&&(_||v&&!b))return(0,a.jsxs)(i.so,{direction:"column",gap:{base:"sm",md:"md"},p:{mdDown:"sm"},children:[(0,a.jsx)(I,{event:y}),(0,a.jsx)(g.m,{home:null==v?void 0:v.left.missingPlayers,away:null==v?void 0:v.right.missingPlayers})]});if(!v)return(0,a.jsx)(ej.A,{});let M=x!==l.QCR.Football?(0,a.jsx)(d.Zp.Header,{titleId:"players",values:{gender:y.gender||l.YT8.Male},as:"h2"}):null;return w&&t?(0,a.jsxs)(i.az,{pt:"sm",children:[M,(0,a.jsx)(p.n,{activeTabKey:s,onChange:e=>m(e),tabs:e_,variant:"secondary",children:(0,a.jsxs)(i.az,{pt:"sm",children:[(0,a.jsx)(n.tU.Panel,{tabKey:e_[0].tabKey,children:(0,a.jsx)(eu,{lineups:v,incidents:null==S?void 0:S.incidents,managers:j,confirmed:b})}),!C&&(0,a.jsx)(n.tU.Panel,{tabKey:e_[1].tabKey,children:(0,a.jsx)(h.default,{lineups:v})})]})})]}):(0,a.jsxs)(a.Fragment,{children:[M,(0,a.jsx)(eu,{lineups:v,incidents:null==S?void 0:S.incidents,managers:j,confirmed:b,showPlayerStatistics:t})]})};function ek(e){let{hasLineups:t,showPlayerStatistics:s}=e,{event:r}=(0,o.useContext)(u.y$),i=r.tournament.category.sport.slug,n=i===l.QCR.ESports&&(0,f.f2)(r.tournament.category.id),{couldHavePregameTopPlayers:c}=(0,A.M)(r);return n||!1===t&&!c?null:i===l.QCR.Cricket?(0,a.jsx)(ex.A,{}):i===l.QCR.Rugby?(0,a.jsx)(ev.u,{}):i===l.QCR.Baseball?(0,a.jsx)(ey,{}):(0,a.jsx)(eS,{showPlayerStatistics:s})}},30079:()=>{Object.assign(Object.assign({},{"--primary-default":"#374df5","--primary-variant":"#2c3ec4","--primary-highlight":"rgba(55, 77, 245, 0.15)","--primary-hover":"hsl(233, 90.5%, 63.8%)","--primary-selected":"hsl(233, 90.5%, 53.8%)","--secondary-default":"#0bb32a","--secondary-variant":"#08861f","--secondary-highlight":"rgba(11, 179, 42, 0.15)","--secondary-hover":"hsl(131, 88.4%, 42.3%)","--secondary-selected":"hsl(131, 88.4%, 32.3%)","--tertiary-default":"rgba(202, 194, 133, 1)","--tertiary-variant":"rgba(157, 150, 94, 1)","--tertiary-highlight":"rgba(202, 194, 133, 0.15)","--neutral-default":"#a4a9b3","--neutral-variant":"#51565f","--neutral-highlight":"#e8ecf3","--on-color-primary":"#ffffff","--on-color-secondary":"rgba(255, 255, 255, 0.6)","--on-color-highlight-nLv1":"rgba(255, 255, 255, 0.2)","--on-color-highlight-nLv2":"rgba(255, 255, 255, 0.1)","--on-color-default":"#ffffff","--on-color-hover":"#e6e6e6","--on-color-selected":"#cccccc","--surface-s0":"#edf1f6","--surface-s1":"#ffffff","--surface-s2":"rgba(229, 233, 239, 0.5)","--surface-sp":"#ffffff","--surface-t":"#222226","--on-surface-nLv1":"#222226","--on-surface-nLv2":"rgba(34, 34, 38, 0.7)","--on-surface-nLv3":"rgba(34, 34, 38, 0.45)","--on-surface-nLv4":"rgba(34, 34, 38, 0.15)","--on-surface-nLv5":"rgba(34, 34, 38, 0.06)","--error-default":"#c7361f","--error-hover":"#dd3c23","--error-selected":"#b1301c","--alert-default":"#c7921f","--alert-hover":"#dda223","--alert-selected":"#b1821c","--success-default":"#15b168","--success-hover":"#18c876","--success-selected":"#129a5b","--effect-elevation1":"rgba(34, 34, 38, 0.16)","--effect-elevation2":"rgba(34, 34, 38, 0.16)","--effect-elevation3":"rgba(34, 34, 38, 0.16)","--overlay-darken1":"rgba(0, 0, 0, 0.25)","--overlay-darken2":"rgba(0, 0, 0, 0.5)","--overlay-darken3":"rgba(0, 0, 0, 0.65)","--sofa-singles-live":"#cb1818","--sofa-singles-value":"#e59c03","--sofa-singles-liveHighlight":"rgba(203, 24, 24, 0.1)","--sofa-singles-crowdsourcingLive":"#ff109f","--sofa-singles-crowdsourcingLiveHighlight":"rgba(255, 16, 159, 0.1)","--score-rating-s00":"#a4a9b3","--score-rating-s10":"#dc0c00","--score-rating-s60":"#ed7e07","--score-rating-s65":"#d9af00","--score-rating-s70":"#00c424","--score-rating-s80":"#00adc4","--score-rating-s90":"#374df5","--playoffs-promotion-to-x":"#26943b","--playoffs-promotion-to-x-playoff":"#49cb40","--playoffs-promotion-to-y":"#0056a3","--playoffs-promotion-to-y-playoff":"#0a8dff","--playoffs-promotion-to-z":"#016565","--playoffs-promotion-to-z-playoff":"#018e8d","--playoffs-promotion-to-z-playoff-secondary":"#01b7b6","--playoffs-promotion-to-relegation":"#c1262d","--playoffs-promotion-to-relegation-playoff":"#fea500","--player-position-forward":"#cb1818","--player-position-midfield":"#0bb32a","--player-position-defender":"#374df5","--player-position-goalkeeper":"#e59c03","--heatmap-hm1":"#cbedbf","--heatmap-hm2":"#d5eb86","--heatmap-hm3":"#fffc20","--heatmap-hm4":"#ff8111","--heatmap-hm5":"#ff1f1f","--stage-sports-dtm":"#011c47","--stage-sports-formula1":"#dc351e","--stage-sports-formulaE":"#04afe7","--stage-sports-indycar":"#c61e36","--stage-sports-moto2":"#84273a","--stage-sports-moto3":"#832639","--stage-sports-motoGP":"#3b3536","--stage-sports-nascar":"#007ac2","--stage-sports-superbike":"#bd1f23","--stage-sports-wrc":"#7bad26","--stage-sports-cycling":"#0162af","--stage-sports-generic":"#03af37","--graphics-terrain-football":"#cbedbf","--graphics-terrain-basketball":"#f8d496","--graphics-terrain-dark":"#19191c","--graphics-terrain-footballPale":"#f5fbf2","--graphics-terrain-basketballPale":"#fef6ea","--graphics-terrain-footballLineups":"#3c8063","--terrain-harcourtIndoor":"#30b8ab","--terrain-hardcourtOutdoor":"#5143cc","--terrain-grass":"#62bd40","--terrain-clay":"#eb9a44","--terrain-default":"#808080","--tournaments-wta":"#a42090","--social-twitter":"#00acee","--social-facebook":"#0865FE","--social-apple":"#000000","--social-huawei-symbol":"#CE0E2D","--social-huawei-text":"#262729","--cricket-neutral":"#a4a9b3","--cricket-singleRuns":"#6aac44","--cricket-firstCircleRuns":"#4d82a1","--cricket-secondCircleRuns":"#98458c","--cricket-wicketsDown":"#b8483c","--cricket-errorsAndMistakes":"#be9b3c","--cricket-cricketTerrain":"#cbedbf","--cricket-cricketTerrainSecondary":"#166534","--cricket-dsr":"#5a539c","--sentiment-positive":"#0bb32a","--sentiment-positive-highlight":"rgba(11, 179, 42, 0.25)","--sentiment-negative":"#cb1818","--sentiment-negative-highlight":"rgba(203, 24, 24, 0.25)","--header-default":"#2c3ec4","--mma-red-default":"#ce153a","--mma-red-highlight":"rgba(206, 21, 58, 0.15)","--mma-blue-default":"#1258df","--mma-blue-highlight":"rgba(18, 88, 223, 0.15)","--football-shotmap-home-idle":"#05660f","--football-shotmap-home-selectedHover":"#0bb32a","--football-shotmap-away-idle":"#064683","--football-shotmap-away-selectedHover":"#374df5","--tennis-tournaments-2000":"#3A66AC","--tennis-tournaments-1000":"#D1B04E","--tennis-tournaments-500":"#848E95","--tennis-tournaments-250":"#00AFF0","--hockey-shotmap-shot-background":"#ffffff80","--editor-pink":"#FF407F","--editor-pink-highlight":"rgba(255, 64, 127, 0.15)"}),{"--primary-default":"#7a84ff","--primary-variant":"#000000","--primary-highlight":"rgba(122, 132, 255, 0.25)","--primary-hover":"hsl(235, 100.0%, 78.9%)","--primary-selected":"hsl(235, 100.0%, 68.9%)","--secondary-default":"#46c252","--secondary-variant":"#03692a","--secondary-highlight":"rgba(70, 194, 82, 0.25)","--secondary-hover":"hsl(126, 50.4%, 56.8%)","--secondary-selected":"hsl(126, 50.4%, 46.8%)","--tertiary-default":"rgba(168, 161, 110, 1)","--tertiary-variant":"rgba(130, 124, 77, 1)","--tertiary-highlight":"rgba(168, 161 110, 0.15)","--neutral-default":"#a4a9b3","--neutral-variant":"#BCC2CF","--neutral-highlight":"rgba(54, 63, 83, 0.5)","--on-color-primary":"#FCFCFE","--on-color-highlight-nLv1":"rgba(255, 255, 255, 0.25)","--on-color-hover":"#ffffff","--on-color-selected":"#f2f2f2","--surface-s0":"#000000","--surface-s1":"#171C1F","--surface-s2":"rgba(0, 0, 0, 0.5)","--surface-sp":"#272C32","--surface-t":"#ECEDEF","--on-surface-nLv1":"#ECEDEF","--on-surface-nLv2":"rgba(255, 255, 255, 0.75)","--on-surface-nLv3":"rgba(255, 255, 255, 0.5)","--on-surface-nLv4":"rgba(255, 255, 255, 0.15)","--on-surface-nLv5":"rgba(255, 255, 255, 0.08)","--error-default":"#e35c47","--error-hover":"#e66f5d","--error-selected":"#e04831","--alert-default":"#dbaa3f","--alert-hover":"#dfb355","--alert-selected":"#d7a02a","--success-default":"#39b57a","--success-hover":"#44c486","--success-selected":"#33a26c","--effect-elevation1":"rgba(0, 0, 0, 0.24)","--effect-elevation2":"rgba(0, 0, 0, 0.40)","--effect-elevation3":"rgba(0, 0, 0, 0.48)","--overlay-darken1":"rgba(0, 0, 0, 0.25)","--overlay-darken2":"rgba(0, 0, 0, 0.5)","--sofa-singles-live":"#e73b3b","--sofa-singles-value":"#e8b345","--sofa-singles-liveHighlight":"rgba(231, 59, 59, 0.2)","--playoffs-promotion-to-x":"#3bb552","--playoffs-promotion-to-x-playoff":"#80ea79","--playoffs-promotion-to-y":"#288eea","--playoffs-promotion-to-y-playoff":"#8fcbff","--playoffs-promotion-to-z":"#2f9d9d","--playoffs-promotion-to-z-playoff":"#0ad8d8","--playoffs-promotion-to-z-playoff-secondary":"#befefe","--playoffs-promotion-to-relegation":"#ef5158","--playoffs-promotion-to-relegation-playoff":"#ffb936","--player-position-forward":"#e73b3b","--player-position-midfield":"#1eb85d","--player-position-defender":"#4b9def","--player-position-goalkeeper":"#e8b345","--heatmap-hm1":"#446c46","--heatmap-hm2":"#7d943c","--heatmap-hm3":"#ffd630","--heatmap-hm4":"#f0802b","--heatmap-hm5":"#f03530","--stage-sports-dtm":"#011c47","--stage-sports-formula1":"#dc351e","--stage-sports-formulaE":"#04afe7","--stage-sports-indycar":"#c61e36","--stage-sports-moto2":"#84273a","--stage-sports-moto3":"#832639","--stage-sports-motoGP":"#3b3536","--stage-sports-nascar":"#007ac2","--stage-sports-superbike":"#bd1f23","--stage-sports-wrc":"#7bad26","--stage-sports-cycling":"#0162af","--stage-sports-generic":"#03af37","--graphics-terrain-football":"#446c46","--graphics-terrain-basketball":"#a38a5e","--graphics-terrain-dark":"#0c0c0d","--graphics-terrain-footballPale":"#1d2c29","--graphics-terrain-basketballPale":"#31312e","--graphics-terrain-footballLineups":"#171c1f","--terrain-harcourtIndoor":"#6ee4d9","--terrain-hardcourtOutdoor":"#a59bf5","--terrain-grass":"#488331","--terrain-clay":"#a06b32","--tournaments-wta":"#db5cc7","--social-twitter":"#00acee","--social-facebook":"#ECEDEF","--social-apple":"#ECEDEF","--social-huawei-symbol":"#ECEDEF","--social-huawei-text":"#ECEDEF","--cricket-neutral":"#828ba1","--cricket-cricketTerrain":"#9ccf8a","--cricket-cricketTerrainSecondary":"#166534","--sentiment-positive":"#46c252","--sentiment-positive-highlight":"rgba(70, 194, 82, 0.25)","--sentiment-negative":"#e73b3b","--sentiment-negative-highlight":"rgba(231, 59, 59, 0.25)","--header-default":"#111517","--mma-red-default":"#de4e6b","--mma-red-highlight":"rgba(222, 78, 107, 0.25)","--mma-blue-default":"#467ce5","--mma-blue-highlight":"rgba(70, 124, 229, 0.25)","--football-shotmap-home-idle":"#0b5a13","--football-shotmap-home-selectedHover":"#46c252","--football-shotmap-away-idle":"#2c3596","--football-shotmap-away-selectedHover":"#7a84ff","--hockey-shotmap-shot-background":"#ffffff33","--editor-pink":"#FF7DA8"})},30396:(e,t,s)=>{s.d(t,{R:()=>d});var a=s(6029),l=s(21377),r=s(55729),i=s(90248),n=s(18970);let o=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"}}');var c=s(91113);let d=e=>{var t,s,d;let{id:u}=e,{rightTeam:p,leftTeam:f}=(0,r.useContext)(n.y$),h=(0,r.useContext)(n.Ws),g=(0,c.B)(o,u,h);return(0,a.jsx)(i.A,{id:(0,c.O)(o,u,h),values:{...g,gender:null!=(d=null!=(s=null!=(t=g.gender)?t:null==p?void 0:p.gender)?s:null==f?void 0:f.gender)?d:l.YT8.Male}})}},30685:(e,t,s)=>{s.d(t,{u:()=>Z});var a=s(6029),l=s(21377),r=s(28349),i=s(99064),n=s(55729),o=s(46222),c=s(18970),d=s(33144),u=s(41164),p=s(66331),f=s(96861),h=s(64006),g=s(94156),m=s(92667),y=s(40094),x=s(99902),j=s(84823),v=s(41735);let b=()=>{let{colors:e}=(0,v.useTheme)();return(0,a.jsx)("svg",{viewBox:"0 0 344 608",children:(0,a.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("path",{fill:e.graphicsTerrain.football,d:"M0 0h344v608H0z"}),(0,a.jsx)("g",{fill:e.onSurface.nLv5,children:(0,a.jsx)("path",{d:"M4 52h336v72H4zM4 196h336v72H4zM4 340h336v72H4zM4 484h336v72H4z"})}),(0,a.jsxs)("g",{fill:e.surface.s1,fillRule:"nonzero",children:[(0,a.jsx)("path",{d:"M340 303H4v289h336V303zM5.953 305.001h332.094v285H5.953v-285z"}),(0,a.jsx)("path",{d:"M4 556.011h336v-2.054H4zM4 446.011h336v-2.054H4z"}),(0,a.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,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M340 305.011H4v-289h336v289zM5.953 303.01h332.094v-285H5.953v285z"}),(0,a.jsx)("path",{d:"M4 52h336v2.054H4zM4 162h336v2.054H4z"}),(0,a.jsx)("path",{d:"M28 150v26h2v-26zM134 75.999h25.436v2.054H134zM112 251.999h26v2.054h-26zM159 251.999h26v2.054h-26zM205 251.999h26v2.054h-26zM184 75.999h25.436v2.054H184zM92 75.999H66v2.054h12v24.85h2v-24.85h12zM92 251.984H80V240h-2v11.985H66v2.03h12v11.985h2v-11.985h12zM327 251.984h-12V240h-2v11.985h-12v2.03h12v11.985h2v-11.985h12zM42 251.984H30V240h-2v11.985H16v2.03h12v11.985h2v-11.985h12zM277 251.984h-12V240h-2v11.985h-12v2.03h12v11.985h2v-11.985h12zM280.339 75.999H255v2.054h11.74v24.85h2.054v-24.85h11.545zM330.339 75.999H305v2.054h11.74v24.85h2.054v-24.85h11.545zM42 75.999H16v2.054h12v24.85h2v-24.85h12zM78 149.999v26h2v-26zM266.63 150v26h2.054v-26zM28 291.999h2v12h-2zM78 291.999h2v12h-2zM263 291.999h2v12h-2zM313 291.999h2v12h-2zM316.728 150v26h2.055v-26zM190.127 7.999l-3.509 34.731h-29.355l-3.507-34.693-1.965.045 4.314 43.917h2.065l-.71-7.215h28.962L185.72 52h1.981l4.774-43.962z"})]})]})]})})},_=e=>{let{type:t,children:s}=e;return(0,a.jsxs)(i.az,{position:"relative",children:[(0,a.jsx)(b,{}),(0,a.jsx)(i.az,{position:"absolute",w:"100%",h:"100%",px:"1%",py:"15%",left:0,top:0,children:(0,a.jsx)(i.az,{w:"100%",h:"100%",display:"grid",style:{gridTemplateColumns:"repeat(".concat("fifteens"===t?5:4,", 1fr)"),gridTemplateRows:"repeat(".concat(7,", 1fr)")},children:s})})]})};var S=s(94400),k=s(48485),w=s(19991),C=s(90248),M=s(52466),P=s(80055),L=s(94536),H=s(33079);let I=(0,v.default)(h.uc).withConfig({componentId:"sc-8ad6c160-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;}"],i.Py.Button);function R(e){var t,s,r;let{player:o,incidents:c,onClick:d,jersey:u,color:p,useShortName:f,showSubstitutionNames:h=!0,showGoalScorer:g=!0,nameWidth:m,hasRatings:y,isPlayerOfTheMatch:x}=e,j=(0,n.useMemo)(()=>c?(0,k.h)({id:o.player.id,incidents:c,useShortName:f}):{},[o,c]),v=null==(t=o.statistics)?void 0:t.rating,b=1;void 0===v&&o.avgRating&&(v=o.avgRating,b=2);let _=(0,P.z)(o.player,(0,L.kx)(o,f)),R=(0,L.sP)(_,o.captain);return(0,a.jsxs)(I,{onClick:d,player:o.player,sportSlug:l.QCR.Rugby,children:[x&&(0,a.jsx)(M.ue7,{w:16,h:16,fill:(0,w.Et)(null==(s=o.statistics)?void 0:s.rating),position:"absolute",top:-16,left:"calc(50% - 8px)"}),(0,a.jsx)(i._V,{w:"28px",h:"32px",src:u,alt:""}),(0,a.jsx)(i.EY,{position:"absolute",top:"3px",left:"calc(50% - 12px)",align:"center",w:"xl",font:"table.large",fontSize:o.jerseyNumber&&o.jerseyNumber.length>=3?12:void 0,letterSpacing:"-0.2px",mt:o.jerseyNumber&&o.jerseyNumber.length>=3?"xxs":void 0,color:p?"#".concat(p.fancyNumber):"onSurface.nLv1",children:o.jerseyNumber}),j.substitutionIn&&(0,a.jsx)(i.az,{position:"absolute",top:"0",left:"-2",children:(0,a.jsx)(H.FU,{isInjury:j.substitutionIn.isInjury})}),!j.substitutionIn&&j.substitutionOut&&(0,a.jsx)(i.az,{position:"absolute",top:"0",left:"-2",children:(0,a.jsx)(H.FU,{isInjury:j.substitutionOut.isInjury})}),y&&(0,a.jsx)(i.az,{position:"absolute",top:"lg",left:-2,children:(0,a.jsx)(S.A,{rating:v,format:"box",size:"sm",decimalPoints:b})}),(0,a.jsx)(i.EY,{align:"center",lineHeight:1,font:"assistive.default",color:"onSurface.nLv1",pt:"xs",title:R,w:m,style:{hyphens:"auto"},children:R}),h&&(null==(r=j.substitutionIn)?void 0:r.forPlayer)&&(0,a.jsxs)(i.EY,{align:"center",lineHeight:1,font:"table.small",color:"onSurface.nLv3",title:j.substitutionIn.forPlayer,children:[(0,a.jsx)(C.A,{id:"injury_status_out"}),": ",j.substitutionIn.forPlayer]}),(0,a.jsx)(i.az,{position:"absolute",top:"0",right:"-2",children:(0,a.jsx)(H.AG,{...j})}),g&&(0,a.jsx)(i.az,{position:"absolute",top:"lg",right:"-2",children:(0,a.jsx)(H.X0,{...j,inField:!0})})]})}let A=e=>{let{type:t="fifteens",players:s,incidents:l,jersey:r,jerseyNumberColor:n,onPlayerClick:o}=e,c="fifteens"===t?y.vD:y.Xj,d="fifteens"===t?y.Cy:y.uU;return(0,a.jsx)(_,{type:t,children:s.map(e=>e.shirtNumber?(0,a.jsx)(i.so,{position:"relative",justify:"center",align:"center",style:c[e.shirtNumber],children:(0,a.jsx)(i.az,{position:"absolute",style:d[e.shirtNumber],children:(0,a.jsx)(R,{player:e,incidents:l,jersey:r,color:n,nameWidth:64,showSubstitutionNames:!1,showGoalScorer:!1,onClick:t=>{var s;return s=e.player,void(o&&(t.preventDefault(),o(s)))}})})},e.player.id):null)})},O=()=>{let{event:e,team:t,incidents:s,manager:l,jersey:r,startingPlayers:n,jerseyNumberColor:o,substitutePlayers:c}=(0,m.rR)(),{openEventPlayerStatistics:v}=(0,p.d)();return e.isEditor?(0,a.jsxs)(i.so,{direction:"column",gap:"md",children:[(0,a.jsx)(h.gT,{team:t,sport:(0,u.c5)(e),children:(0,a.jsxs)(i.so,{gap:"lg",align:"center",children:[(0,a.jsx)(d.p,{size:40,id:t.id,name:t.name}),(0,a.jsx)(i.EY,{font:"display.large",children:(0,a.jsx)(g.c,{entity:t})})]})}),(0,a.jsx)(i.az,{br:"sm",overflow:"hidden",children:(0,a.jsx)(A,{type:e.tournament.category.sportVariant===y.WM?"sevens":"fifteens",players:n,incidents:s,jersey:r,jerseyNumberColor:o,onPlayerClick:e.hasEventPlayerStatistics?t=>v({event:e,player:t},f._.Lineups):void 0})}),l&&(0,a.jsx)(x.A,{manager:l,incidents:null==s?void 0:s.filter(e=>e.manager),isBorderHidden:!0})]}):(0,a.jsxs)(i.so,{direction:"column",children:[(0,a.jsx)(h.gT,{team:t,sport:(0,u.c5)(e),children:(0,a.jsxs)(i.so,{gap:"lg",align:"center",px:"lg",py:"sm",hoverBg:"surface.s2",children:[(0,a.jsx)(d.p,{size:40,id:t.id,name:t.name}),(0,a.jsx)(i.EY,{font:"display.large",children:(0,a.jsx)(g.c,{entity:t})})]})}),(0,a.jsx)(j.A,{manager:l,hideTeamHeader:!0,team:t,event:e,players:[...n,...c],incidents:s})]})};var G=s(56300);let V=()=>{let{event:e,team:t,substitutePlayers:s,incidents:l}=(0,m.rR)();return(0,a.jsx)(j.A,{hideTeamHeader:!0,event:e,team:t,players:s,incidents:l})},T=()=>{let{event:e}=(0,n.useContext)(c.y$),{lineups:t}=(0,m.Ir)();return e.isEditor&&(0,L.kr)(t)?(0,a.jsxs)(i.az,{children:[(0,a.jsx)(i.EY,{font:"display.medium",align:"center",display:"block",pt:"xl",pb:"lg",children:(0,a.jsx)(C.A,{id:"substitutions"})}),(0,a.jsxs)(i.so,{children:[(0,a.jsx)(i.az,{flex:"1 1 0",children:(0,a.jsx)(G.i,{side:"left",children:(0,a.jsx)(V,{})})}),(0,a.jsx)(i.cG,{vertical:!0,mx:"md"}),(0,a.jsx)(i.az,{flex:"1 1 0",children:(0,a.jsx)(G.i,{side:"right",children:(0,a.jsx)(V,{})})})]})]}):null},z=()=>(0,a.jsxs)(i.az,{py:"sm",children:[(0,a.jsxs)(i.so,{children:[(0,a.jsx)(i.az,{flex:"1 1 0",children:(0,a.jsx)(G.i,{side:"left",children:(0,a.jsx)(O,{})})}),(0,a.jsx)(i.cG,{vertical:!0,mx:"md"}),(0,a.jsx)(i.az,{flex:"1 1 0",children:(0,a.jsx)(G.i,{side:"right",children:(0,a.jsx)(O,{})})})]}),(0,a.jsx)(T,{})]}),B=()=>{let{openEventPlayerStatistics:e}=(0,p.d)(),{event:t,team:s,manager:l,incidents:r,jersey:n,startingPlayers:o,substitutePlayers:c,jerseyNumberColor:d}=(0,m.rR)();return t.isEditor?(0,a.jsxs)(i.az,{children:[(0,a.jsx)(A,{type:t.tournament.category.sportVariant===y.WM?"sevens":"fifteens",players:o,incidents:r,jersey:n,jerseyNumberColor:d,onPlayerClick:t.hasEventPlayerStatistics?s=>e({event:t,player:s},f._.Lineups):void 0}),(0,a.jsxs)(i.so,{direction:"column",py:"md",children:[l&&(0,a.jsx)(i.az,{px:"sm",children:(0,a.jsx)(x.A,{manager:l,incidents:null==r?void 0:r.filter(e=>e.manager),isBorderHidden:!0})}),c.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.EY,{font:"display.medium",align:"center",pt:"xl",children:(0,a.jsx)(C.A,{id:"substitutions"})}),(0,a.jsx)(j.A,{hideTeamHeader:!0,team:s,event:t,players:c,incidents:r})]})]})]}):(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsx)(i.az,{px:"sm",py:"sm",children:(0,a.jsx)(x.A,{manager:l,incidents:null==r?void 0:r.filter(e=>e.manager),isBorderHidden:!0})}),(0,a.jsx)(j.A,{hideTeamHeader:!0,team:s,event:t,players:[...o,...c],incidents:r})]})},E={height:"32px",display:"flex",justifyContent:"center",alignItems:"center",padding:0},F=()=>{let{team:e}=(0,m.rR)();return(0,a.jsx)(d.p,{size:24,id:e.id,name:e.name})},N=()=>(0,a.jsx)(i.az,{p:"sm",children:(0,a.jsx)(o.Zp,{children:(0,a.jsxs)(i.tU,{variant:"secondary",initialValue:l.cxP.Left,fullWidthTabs:!0,children:[(0,a.jsxs)(i.so,{p:"sm",children:[(0,a.jsx)(i.tU.Tab,{tabKey:l.cxP.Left,style:E,children:(0,a.jsx)(G.i,{side:"left",children:(0,a.jsx)(F,{})})}),(0,a.jsx)(i.az,{w:"lg"}),(0,a.jsx)(i.tU.Tab,{tabKey:l.cxP.Right,style:E,children:(0,a.jsx)(G.i,{side:"right",children:(0,a.jsx)(F,{})})})]}),(0,a.jsx)(i.tU.Panel,{tabKey:l.cxP.Left,children:(0,a.jsx)(G.i,{side:"left",children:(0,a.jsx)(B,{})})}),(0,a.jsx)(i.tU.Panel,{tabKey:l.cxP.Right,children:(0,a.jsx)(G.i,{side:"right",children:(0,a.jsx)(B,{})})})]})})});function Z(){let{event:e,location:t}=(0,n.useContext)(c.y$),{isDesktop:s}=(0,r.$c)(),d=s&&t===c.cb.EventPage,{lineups:u,error:p}=(0,m.Ir)({jerseyStyle:"fancy"});return p?null:d?(0,a.jsxs)(o.Zp,{variant:"mobile-only",children:[(0,a.jsx)(o.Zp.Header,{titleId:"players",values:{gender:e.gender||l.YT8.Male}}),u?(0,a.jsx)(z,{}):(0,a.jsx)(i.az,{h:900})]}):u?(0,a.jsx)(N,{}):(0,a.jsx)(i.az,{h:900})}},32190:(e,t,s)=>{s.d(t,{Et:()=>i.Et,GW:()=>l.A,pY:()=>r.p,tg:()=>a.t});var a=s(91407),l=s(94400),r=s(91603),i=s(19991)},33079:(e,t,s)=>{s.d(t,{AG:()=>o,FU:()=>n,X0:()=>c});var a=s(6029),l=s(99064),r=s(52466),i=s(24854);let n=e=>{let{isInjury:t}=e;return t?(0,a.jsx)(r.NcS,{icon:"substitution-injured"}):(0,a.jsx)(r.NcS,{icon:"substitution"})},o=e=>{let{hasYellowCard:t,hasRedCard:s,hasYellowRedCard:l}=e;return l?(0,a.jsx)(r.NcS,{icon:"card-double-yellow",width:"16",height:"16"}):s?(0,a.jsx)(r.NcS,{icon:"card",width:"16",height:"16",fill:"error.default"}):t?(0,a.jsx)(r.NcS,{icon:"card",width:"16",height:"16",fill:"scoreRating.s65"}):null},c=e=>{let{goalsScored:t,hasScoredPenalty:s,hasScoredOwnGoal:n,inField:o}=e;if(n&&!t)return(0,a.jsx)(r.NcS,{icon:"football-own-goal",width:"16",height:"16",fill:"error.default"});if(s&&1===t)return(0,a.jsx)(r.NcS,{icon:"football-penalty",width:"16",height:"16",fill:"secondary.default"});if(t){if(o){let e=t>1;return(0,a.jsxs)(l.az,{position:"relative",left:e?"6":void 0,ml:"xxs",children:[e&&(0,a.jsx)(l.EY,{font:"table.small",color:"secondary.default",position:"relative",children:t}),(0,a.jsx)(i.M,{incidentType:"goal",incidentClass:"regular",svgProps:{fill:"secondary.default",width:16,height:16}})]})}return(0,a.jsx)(l.az,{position:"relative",ml:"xxs",children:Array(t).fill(0).map((e,t)=>(0,a.jsx)(i.M,{incidentType:"goal",incidentClass:"regular",svgProps:{fill:"secondary.default",width:16,height:16}},"goal-".concat(t)))})}return null}},38709:(e,t,s)=>{s.d(t,{k:()=>a.k});var a=s(25766)},39169:(e,t,s)=>{s.r(t),s.d(t,{default:()=>h});var a,l,r,i,n=s(90142),o=s(6029),c=s(39895);s(30079);var d=s(62283);s(60449),s(82823);var u=s(55729);s(97481);var p=s(41735);let f={xs:480,sm:768,md:992,lg:1344};function h(e){var{fill:t="primary.default"}=e,s=(0,n.T)(e,["fill"]);return(0,o.jsx)(c.A,Object.assign({w:12,h:12,viewBox:"0 0 12 12",fill:t},s,{children:(0,o.jsxs)("g",{children:[(0,o.jsx)("rect",{width:"12",height:"12",rx:"6"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.25L7.15875 4.5975L9.75 4.97625L7.875 6.8025L8.3175 9.3825L6 8.16375L3.6825 9.3825L4.125 6.8025L2.25 4.97625L4.84125 4.5975L6 2.25Z",fill:d.A.onColor.primary})]})}))}(0,u.createContext)({isMobile:!0,isDesktop:!1,isDesktopMedium:!1,isDesktopLarge:!1,mediaBreakpoint:"sm"}),function(e){e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold"}(a||(a={})),function(e){e.Micro="10px",e.Small="12px",e.Regular="14px",e.Medium="16px",e.Large="18px",e.HeaderTitle="20px",e.ExtraLarge="28px",e.ExtraExtraLarge="32px"}(l||(l={})),function(e){e.SofascoreSans='"Sofascore Sans", -apple-system, system-ui, BlinkMacSystemFont, Dubai, "Segoe UI", Tahoma, "Noto Sans Arabic UI","Dejavu Sans", Arial, sans-serif',e.SofascoreSansCondensed='"Sofascore Sans Condensed", -apple-system, system-ui, BlinkMacSystemFont, Dubai, "Segoe UI", Tahoma, "Noto Sans Arabic UI","Dejavu Sans", Arial, sans-serif'}(r||(r={})),l.Micro,l.Small,l.Regular,l.Medium,l.Large,l.HeaderTitle,l.ExtraLarge,l.ExtraExtraLarge,a.Regular,a.Medium,a.Bold,r.SofascoreSans,r.SofascoreSansCondensed,a.Medium,l.HeaderTitle,r.SofascoreSans,a.Medium,l.HeaderTitle,r.SofascoreSans,a.Medium,l.Regular,r.SofascoreSans,a.Bold,l.Small,r.SofascoreSans,a.Bold,l.Regular,r.SofascoreSansCondensed,a.Medium,l.Regular,r.SofascoreSans,a.Medium,l.Small,r.SofascoreSans,a.Bold,l.ExtraLarge,r.SofascoreSans,a.Bold,l.Large,r.SofascoreSans,a.Bold,l.Medium,r.SofascoreSans,a.Bold,l.Regular,r.SofascoreSans,a.Bold,l.Small,r.SofascoreSans,a.Regular,l.Medium,r.SofascoreSans,a.Regular,l.Regular,r.SofascoreSans,a.Regular,l.Regular,r.SofascoreSans,a.Regular,l.Small,r.SofascoreSans,a.Regular,l.Small,r.SofascoreSans,a.Medium,l.Small,r.SofascoreSans,a.Medium,l.Micro,r.SofascoreSans,a.Bold,l.Large,r.SofascoreSansCondensed,a.Regular,l.Regular,r.SofascoreSansCondensed,a.Bold,l.Small,r.SofascoreSansCondensed,a.Regular,l.Micro,r.SofascoreSans,a.Bold,l.Regular,r.SofascoreSansCondensed,(0,p.createGlobalStyle)` /** Sofascore Sans */ @font-face { font-family: 'Sofascore Sans'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-Regular.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-Regular.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-Regular.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; line-height: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-Medium.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-Medium.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-Medium.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-Bold.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-Bold.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-Bold.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; } /** Sofascore Sans Condensed */ @font-face { font-family: 'Sofascore Sans Condensed'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-RegularCondensed.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-RegularCondensed.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-RegularCondensed.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-RegularCondensed.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans Condensed'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-MediumCondensed.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-MediumCondensed.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-MediumCondensed.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-MediumCondensed.ttf') format('ttf'); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans Condensed'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-BoldCondensed.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-BoldCondensed.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-BoldCondensed.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-BoldCondensed.ttf') format('ttf'); font-weight: 700; font-style: normal; font-display: swap; } `,function(e=f){let t=function(e){let t=Object.keys(e),s={};return t.forEach(t=>{s[t]=e[t],s[t+"Min"]=e[t],s[t+"Max"]=e[t]-1}),s}(e);Object.keys(t).reduce((e,s)=>(e[s]=(e,...a)=>(0,p.css)` @media (${s.match(/Max/)?"max-width":"min-width"}: ${t[s]}px) { ${(0,p.css)(e,...a)} } `,e),{})}(),"undefined"!=typeof window&&(null==(i=window.matchMedia)||i.call(window,"(prefers-color-scheme: dark)"))},39836:(e,t,s)=>{s.d(t,{M:()=>j});var a=s(6029),l=s(53192),r=s(25766),i=s(94400),n=s(91603),o=s(98914),c=s(21377),d=s(4967),u=s(28349),p=s(76356),f=s(55729),h=s(90248),g=s(18970),m=s(30821),y=s(53960),x=s(48827);let j=e=>{let{player:t,hasRating:s,rating:j}=e,{event:v}=(0,f.useContext)(g.y$),{playerCharacteristicChip:b}=(0,f.useContext)(x.h),_=(()=>{var e,s,a,l;switch(b){case r.k.Age:return null==(e=t.player)?void 0:e.dateOfBirthTimestamp;case r.k.MarketValue:return null==(s=t.player)?void 0:s.proposedMarketValueRaw;case r.k.Height:return null==(a=t.player)?void 0:a.height;case r.k.Distance:return"statistics"in t?null==(l=t.statistics)?void 0:l.kilometersCovered:void 0;default:return}})();if(b===r.k.Performance)return s&&void 0!==j?(0,a.jsx)(i.A,{rating:j,format:s?"box":"sideBox"}):null;if([r.k.Club,r.k.Nationality].includes(b)){var S,k,w,C;return(0,a.jsxs)(p.so,{justify:"center",align:"center",children:[b===r.k.Club&&"teamId"in t&&t.teamId&&(0,a.jsx)(n.p,{id:t.teamId,size:24}),b===r.k.Nationality&&(null==(k=t.player)||null==(S=k.country)?void 0:S.alpha2)&&(0,a.jsx)(l.w,{alpha2:null==(C=t.player)||null==(w=C.country)?void 0:w.alpha2,size:24})]})}return(0,a.jsx)(u.EY,{display:"block",color:_?void 0:"neutrals.nLv1",children:_?(0,a.jsxs)(a.Fragment,{children:[b===r.k.Age&&(0,a.jsxs)(a.Fragment,{children:[(0,d.Dr)(_,v.startTimestamp)," ",(0,a.jsx)(h.A,{id:"years_shorter",values:{n:(0,d.Dr)(_,v.startTimestamp)}})]}),b===r.k.MarketValue&&(0,a.jsx)(y.o,{parsedMoney:(0,c.oaz)(_)}),b===r.k.Height&&(0,a.jsx)(m.Z,{value:_,fromUnit:"cm"}),b===r.k.Distance&&(0,a.jsx)(a.Fragment,{children:"".concat((0,o.M)(_,1)," km")})]}):"-"})}},40008:(e,t,s)=>{s.d(t,{A:()=>c});var a=s(21377),l=s(55729),r=s(45860),i=s(18970),n=s(41164),o=s(41397);function c(){let{swrConfig:e,event:t,shouldFetch:s=!0,jerseyStyle:c="fancy"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldFetch:!0},d={refreshInterval:6e4,...e},{event:u}=(0,l.useContext)(i.y$),p=s?t||u:void 0,{data:f,error:h,isLoading:g}=(0,r.Ay)(p?a.bnp.lineups(p.id):null,p?(0,n.rf)(p,d):d),[m,y]=(0,o.A)(f,"home","away"),x=p?{leftJerseyUrls:{player:a.bnp.playerJersey(p.id,"home",c),goalkeeper:a.bnp.goalkeeperJersey(p.id,"home",c)},rightJerseyUrls:{player:a.bnp.playerJersey(p.id,"away",c),goalkeeper:a.bnp.goalkeeperJersey(p.id,"away",c)}}:{leftJerseyUrls:{player:"",goalkeeper:""},rightJerseyUrls:{player:"",goalkeeper:""}},[j,v]=(0,o.A)(x,"leftJerseyUrls","rightJerseyUrls");return{lineups:f?{left:m,right:y,leftJerseyUrls:j,rightJerseyUrls:v}:void 0,isLoading:g,confirmed:null==f?void 0:f.confirmed,error:h}}},40094:(e,t,s)=>{s.d(t,{wf:()=>r,vD:()=>n,Cy:()=>o,Xj:()=>c,uU:()=>d,WM:()=>i,fP:()=>l});var a=s(38709);let l={[a.k.Performance]:"manager.performance",[a.k.Distance]:"football_lineups_chip_running_distance",[a.k.Nationality]:"nationality",[a.k.Club]:"lineups_chip_club",[a.k.Age]:"age",[a.k.MarketValue]:"market_value",[a.k.Height]:"player_height"},r=[a.k.Age,a.k.MarketValue,a.k.Height,a.k.Distance],i=2,n={1:{gridColumn:1,gridRow:1},2:{gridColumn:3,gridRow:1},3:{gridColumn:5,gridRow:1},4:{gridColumn:2,gridRow:2},5:{gridColumn:4,gridRow:2},6:{gridColumn:1,gridRow:3},7:{gridColumn:5,gridRow:3},8:{gridColumn:3,gridRow:3},9:{gridColumn:1,gridRow:4},10:{gridColumn:2,gridRow:5},11:{gridColumn:1,gridRow:7},12:{gridColumn:3,gridRow:5},13:{gridColumn:4,gridRow:5},14:{gridColumn:5,gridRow:7},15:{gridColumn:3,gridRow:7}},o={1:{top:"5%"},2:{top:"5%"},3:{top:"5%"},4:{top:"-10%"},5:{top:"-10%"},6:{top:"-20%"},7:{top:"-20%"},8:{top:"25%"},9:{top:"25%"},10:{top:"-20%"},11:{top:"-50%"},12:{top:"30%"},13:{top:"90%"},14:{top:"-50%"},15:{top:"10%"}},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}},d={1:{top:"-10%"},2:{top:"25%"},3:{top:"-10%"},4:{top:"55%"},5:{top:"5%"},6:{top:"60%"},7:{top:"25%"}}},40237:(e,t,s)=>{s.d(t,{G:()=>a.A,p:()=>l.p});var a=s(94400),l=s(91603)},42140:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6029),l=s(55729),r=s(94008);let i=(0,l.forwardRef)((e,t)=>{let{referee:s,children:l,...i}=e;return(0,a.jsx)(r.A,{...i,routeKey:"referee",params:{id:s.id,slug:s.slug},ref:t,children:l})})},44742:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6029),l=s(41735),r=s(39895);function i(e){let{colors:t}=(0,l.useTheme)();return(0,a.jsx)(r.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:(0,a.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,a.jsx)("path",{fill:"none",d:"M0 0h16v16H0z"}),(0,a.jsx)("path",{d:"M12 9v2.25h3v1.5h-3V15h-1l-3-3 3-3h1z",fill:t.success.default}),(0,a.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:t.primary.default})]}))}))}},48485:(e,t,s)=>{s.d(t,{h:()=>a});let a=({id:e,incidents:t,useShortName:s})=>t.filter(t=>{var s,a,l,r,i;return"player"in t&&(null==(s=t.player)?void 0:s.id)===e||"manager"in t&&(null==(a=t.manager)?void 0:a.id)===e||(null==(l=t.playerOut)?void 0:l.id)===e||(null==(r=t.playerIn)?void 0:r.id)===e||(null==(i=t.assist1)?void 0:i.id)===e}).reduce((t,a)=>{var l,r,i,n,o,c,d;switch(a.incidentType){case"card":switch(a.incidentClass){case"red":return Object.assign(Object.assign({},t),{hasRedCard:!0});case"yellow":return Object.assign(Object.assign({},t),{hasYellowCard:!0});case"yellowRed":return Object.assign(Object.assign({},t),{hasYellowRedCard:!0});default:return t}case"goal":if((null==(l=a.player)?void 0:l.id)===e)switch(a.incidentClass){case"ownGoal":return Object.assign(Object.assign({},t),{hasScoredOwnGoal:!0,ownGoalsScored:(t.ownGoalsScored||0)+1});case"penalty":return Object.assign(Object.assign({},t),{hasScoredPenalty:!0,penaltiesScored:(t.penaltiesScored||0)+1,goalsScored:(t.goalsScored||0)+1});default:return Object.assign(Object.assign({},t),{goalsScored:(t.goalsScored||0)+1})}if((null==(r=a.assist1)?void 0:r.id)===e)return Object.assign(Object.assign({},t),{goalsAssisted:(t.goalsAssisted||0)+1});return t;case"substitution":if((null==(i=a.playerOut)?void 0:i.id)===e)return Object.assign(Object.assign({},t),{substitutionOut:{forPlayer:(s?null==(n=a.playerIn)?void 0:n.shortName:null==(o=a.playerIn)?void 0:o.name)||a.playerNameIn,time:a.time,isInjury:"injury"===a.incidentClass}});return Object.assign(Object.assign({},t),{substitutionIn:{forPlayer:(s?null==(c=a.playerOut)?void 0:c.shortName:null==(d=a.playerOut)?void 0:d.name)||a.playerNameOut,time:a.time,isInjury:"injury"===a.incidentClass}});default:return t}},{})},48827:(e,t,s)=>{s.d(t,{V:()=>n,h:()=>i});var a=s(6029),l=s(38709),r=s(55729);let i=(0,r.createContext)({playerCharacteristicChip:l.k.Performance,setPlayerCharacteristicChip:()=>{}}),n=e=>{let{children:t}=e,[s,n]=(0,r.useState)(l.k.Performance);return(0,a.jsx)(i.Provider,{value:{playerCharacteristicChip:s,setPlayerCharacteristicChip:n},children:t})}},54548:(e,t,s)=>{s.d(t,{K:()=>o});var a=s(21377),l=s(55729),r=s(45860),i=s(18970),n=s(41397);function o(e){let t=(0,l.useContext)(i.y$),s=e||t.event,{data:o,error:c}=(0,r.Ay)(a.bnp.managers(s.id)),[d,u]=(0,n.A)(o,"homeManager","awayManager",s),[p,f]=(0,n.A)(o,"homeManagerName","awayManagerName",s);return{managers:{leftManager:d,leftManagerName:p,rightManager:u,rightManagerName:f},error:c}}},54850:(e,t,s)=>{s.r(t),s.d(t,{default:()=>F});var a=s(6029),l=s(28349),r=s(21501),i=s(76356),n=s(99064),o=s(55729),c=s(18970),d=s(88694),u=s(30396),p=s(21377),f=s(96861),h=s(73259);let g=e=>{let t=e.statistics;for(let e=0;e0)return!0}return!1},m=(e,t)=>{var s,a,l,r,i;return!!e.value&&null!=(s=t.statistics)&&!!s[e.value]||!!e.secondaryValue&&null!=(a=t.statistics)&&!!a[e.secondaryValue]||!!e.madesValue&&null!=(l=t.statistics)&&!!l[e.madesValue]||!!e.attemptsValue&&null!=(r=t.statistics)&&!!r[e.attemptsValue]||e.replacementValue&&!!(null==(i=t.statistics)?void 0:i[e.replacementValue])};var y=s(66331),x=s(40237),j=s(90248),v=s(74664),b=s(52466),_=s(26435),S=s(64006),k=s(27936),w=s(94156),C=s(57719),M=s(92859);let P=e=>{let{teamId:t,teamName:s}=e;return(0,a.jsx)(n.XI.Cell,{children:(0,a.jsx)(i.az,{py:"xs",px:"sm",children:(0,a.jsx)(x.p,{id:t,name:s,size:24})})})},L=e=>{let{player:t,onClick:s}=e,r=(0,v.o)(),o=r===p.QCR.Basketball&&!!t.ejected;return(0,a.jsx)(n.XI.Cell,{children:(0,a.jsx)(S.uc,{player:t,onClick:e=>s(e,t),sportSlug:r,children:(0,a.jsxs)(i.so,{direction:"column",py:"sm",px:"lg",align:"flex-start",children:[(0,a.jsx)(l.EY,{textStyle:"body.small",_hover:{color:"primary.default"},children:(0,a.jsx)(w.c,{entity:t})}),o&&(0,a.jsx)(i.so,{bg:"status.error.default",display:"inline-flex",h:"md",align:"center",br:"md",px:"sm",children:(0,a.jsx)(l.EY,{textStyle:"assistive.micro",color:"surface.s1",children:(0,a.jsx)(j.A,{id:"basketball_player_ejected_long"})})})]})})})},H=e=>{let{statistic:t,isSortBy:s,position:r}=e,o=t.configStatsKey.replacementValue,c=o&&"number"==typeof t.stats[o]?o:t.configStatsKey.value,d=(0,_.Rs)(t.stats,t.configStatsKey);return(0,a.jsxs)(n.XI.Cell,{style:{position:"relative",whiteSpace:"nowrap"},children:[(0,a.jsx)(i.az,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",bg:s?"surface.s2":void 0}),(0,a.jsx)(l.EY,{py:"sm",px:"lg",textStyle:"body.small",textAlign:"center",display:"block",position:"relative",children:c===M.K.ExpectedGoals?(0,a.jsx)(a.Fragment,{children:d||"-"}):c===M.K.Rating?(0,a.jsx)(i.so,{justify:"center",children:(0,a.jsx)(x.G,{rating:t.stats[c]})}):c===M.K.Position?r?(0,a.jsx)(C.F,{id:r,short:!0}):"-":c!==M.K.Notes?d:d.split("\n").map(e=>e.length?(0,a.jsx)("div",{children:e},e):null)})]})},I=e=>{let{filteredTeamId:t,onFilterClick:s,leftTeam:r,rightTeam:o}=e;return(0,a.jsx)(n.XI.HeadCell,{w:170,maxW:170,minW:160,children:(0,a.jsxs)(i.so,{py:"md",px:"sm",gap:"sm",align:"center",justify:"center",children:[(0,a.jsxs)(i.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:()=>s(void 0),cursor:"pointer",children:[(0,a.jsx)(x.p,{id:r.id,name:r.name,size:24}),(0,a.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:"+"}),(0,a.jsx)(x.p,{id:o.id,name:o.name,size:24})]}),(0,a.jsx)(i.az,{p:"xs",br:"50%",border:"[1px solid]",borderColor:t===r.id?"primary.highlight":"[transparent]",bg:t===r.id?"primary.highlight":"surface.s2",onClick:()=>s(r.id),cursor:"pointer",children:(0,a.jsx)(x.p,{id:r.id,name:r.name,size:24,style:{verticalAlign:"top"}})}),(0,a.jsx)(i.az,{p:"xs",br:"50%",border:"[1px solid]",borderColor:t===o.id?"primary.highlight":"[transparent]",bg:t===o.id?"primary.highlight":"surface.s2",onClick:()=>s(o.id),cursor:"pointer",children:(0,a.jsx)(x.p,{id:o.id,name:o.name,size:24,style:{verticalAlign:"top"}})})]})})},R=e=>{let{statistic:t,sortConfig:s,onColumnClick:r,sport:o}=e,c=t.configStatsKey.replacementValue,d="";d=c&&"number"==typeof t.stats[c]?c:t.configStatsKey.value;let u=s.stat.value===t.configStatsKey.value,h=u&&s.dir===f.U.ASC,g=d===M.K.Notes;return(0,a.jsx)(n.XI.HeadCell,{onClick:()=>{d!==M.K.Notes&&r(t.configStatsKey)},style:{position:"relative"},children:(0,a.jsxs)(i.az,{minW:g?"[124px]":o===p.QCR.AmericanFootball?"[100px]":void 0,p:"xs",textAlign:"center",cursor:g?"default":"pointer",children:[(0,a.jsx)(i.so,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",bg:u?"surface.s2":void 0}),(0,a.jsx)(i.ov,{minH:"2xl",position:"relative",children:(0,a.jsx)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",textAlign:"center",children:(0,a.jsx)(k.w,{id:d})})}),(0,a.jsx)(b.Bfd,{fill:g?"transparent":u?"primary.default":"onSurface.nLv4",style:{transition:"transform 0.3s ease-in-out",transform:" rotate(".concat(180*!!h,"deg)")}})]})})};var A=s(947),O=s(70047),G=s(50677),V=s(91113),T=s(4967),z=s(63561);let B=e=>{let{sortConfig:t,updateSortStatistic:s,filteredTeamId:l,onFilterClick:r,defaultSortStat:d,stats:u,lineups:m,groupName:x}=e,{event:j,leftTeam:v,rightTeam:b}=(0,o.useContext)(c.y$),{openEventPlayerStatistics:S}=(0,y.d)(),k=(e,t)=>{e.preventDefault(),j.hasEventPlayerStatistics&&S({event:j,player:t},f._.PlayerStats)},w=((e,t,s,a,l,r)=>{let{event:i,leftTeam:n,rightTeam:d}=(0,o.useContext)(c.y$),u=(0,A.A)(),f=i.tournament.category.sport.slug,m={},y={},x=(e,t)=>{r&&r!==t.id||(m[e.player.id]={teamId:t.id,teamName:t.name},y[e.player.id]=e)};a.left.players.forEach(e=>x(e,n)),a.right.players.forEach(e=>x(e,d));let j=((e,t)=>{let s={};for(let a of e)if(a.statistics){if((t===p.QCR.Football||t===p.QCR.Basketball)&&!("minutesPlayed"in a.statistics)&&!("secondsPlayed"in a.statistics))continue;let e=Number(a.statistics.totalClearance||0)+Number(a.statistics.outfielderBlock||0)+Number(a.statistics.interceptionWon||0)+Number(a.statistics.totalTackle||0),l=Number(a.statistics.duelWon||0)+Number(a.statistics.duelLost||0),r=Number(a.statistics.aerialWon||0)+Number(a.statistics.aerialLost||0),i=l-r,n=a.statistics.aerialWon||l-i-Number(a.statistics.aerialLost||0),o=a.statistics.groundWon||Number(a.statistics.duelWon)-Number(n),c=Number(a.statistics.faceOffTaken||0),d=Number(a.statistics.kickingFgAttempts||0),u=a.statistics.minutesPlayed,f="-";!u&&a.statistics.secondsPlayed&&(t===p.QCR.IceHockey?f=(0,T.OV)(Number(a.statistics.secondsPlayed)):u=Math.floor(Number(a.statistics.secondsPlayed)/60));let h=0;"number"==typeof a.statistics.saves&&"number"==typeof a.statistics.gkShots&&a.statistics.gkShots>0&&(h=Number(a.statistics.saves)/Number(a.statistics.gkShots)*100),"number"==typeof a.statistics.saves&&"number"==typeof a.statistics.shotsAgainst&&a.statistics.shotsAgainst>0&&(h=Number(a.statistics.saves)/Number(a.statistics.shotsAgainst)*100);let g=0;"number"==typeof a.statistics.goals&&"number"==typeof a.statistics.shotsTaken&&a.statistics.shotsTaken>0&&(g=Number(a.statistics.goals)/Number(a.statistics.shotsTaken)*100);let m=0;(0,_.Kk)(a.statistics)&&(m=(0,_.C2)(a.statistics)),s[a.player.id]={...a,statistics:{...a.statistics,totalDefensiveActions:e,totalDuels:l,totalAerialDuels:r,totalGroundDuels:i,aerialWon:n,groundWon:o,duelWon:a.statistics.duelWon||0,minutesPlayed:u,timeOnIce:f,faceOffTakenOnly:c,kickingFg:d,goalkeeperEfficiencyPercentage:h,shotAccuracy:g,position:a.position||0,passingRating:m}}}return s})(Object.values(y),f);return((e,t,s)=>{let a=[];for(let l of e.players){let r=[];for(let s of t){let{statistics:t}=l;if(!e.players.every(e=>{var t;return!s.textualDescription&&!(null==(t=e.statistics)?void 0:t[s.value])&&s.hideIfNone})&&t){let e={stats:{},configStatsKey:{...s}};if(e.stats[s.value]=s.value in t?t[s.value]:0,"minutesPlayed"===s.value&&"number"==typeof e.stats[s.value]&&(e.stats[s.value]="".concat(e.stats[s.value],"'")),s.secondaryValue&&(e.stats[s.secondaryValue]=s.secondaryValue in t?t[s.secondaryValue]:0),s.madesValue&&(e.stats[s.madesValue]=s.madesValue in t?t[s.madesValue]:0),s.attemptsValue&&(e.stats[s.attemptsValue]=s.attemptsValue in t?t[s.attemptsValue]:0),s.textualDescription){let a=Object.keys(s.textualDescription),l={};for(let e of a)l[e]=Number(t[e]||0);e.stats[s.value]=l}s.replacementValue&&"number"==typeof t[s.replacementValue]&&(e.stats[s.replacementValue]=t[s.replacementValue]),r.push(e)}}a.push({player:{...l.player,...s(l.player.id),position:l.position,ejected:l.ejected},statistics:r})}return a})({players:Object.values((0,O.C)(j,e,l,f))},s,e=>m[e]).filter(e=>((e,t,s)=>t===p.QCR.Football&&e===h.aS?s.player.position===h.sI:t===p.QCR.Handball?e!==h.v1||g(s):t===p.QCR.IceHockey?e!==h.aS||g(s):t!==p.QCR.AmericanFootball||g(s))(t,f,e)).map(e=>((e,t,s)=>{for(let a of e.statistics)if(a.configStatsKey.textualDescription)for(let e of Object.keys(a.configStatsKey.textualDescription))a.configStatsKey.textualDescription[e]=t.formatMessage({id:(0,V.O)(G,e,s)});return e})(e,u,f))})(t,x,u,m,d,l);return w.length?(0,a.jsxs)(n.XI,{w:"100%",children:[(0,a.jsx)(n.XI.Head,{children:(0,a.jsxs)(n.XI.Row,{children:[(0,a.jsx)(n.XI.HeadCell,{maxW:40,w:40,children:(0,a.jsx)(i.az,{w:"3xl",h:"xl"})}),(0,a.jsx)(I,{filteredTeamId:l,onFilterClick:r,leftTeam:v,rightTeam:b}),w[0].statistics.map(e=>(0,a.jsx)(R,{sport:(0,z.c5)(j),statistic:e,sortConfig:t,onColumnClick:()=>s(e.configStatsKey,x)},e.configStatsKey.value))]})}),(0,a.jsx)(n.XI.Body,{children:w.map(e=>(0,a.jsxs)(n.XI.Row,{children:[(0,a.jsx)(P,{teamId:e.player.teamId,teamName:e.player.teamName}),(0,a.jsx)(L,{player:e.player,onClick:k}),e.statistics.map(s=>(0,a.jsx)(H,{statistic:s,isSortBy:s.configStatsKey.value===t.stat.value,position:e.player.position},s.configStatsKey.value))]},e.player.id))})]}):null};var E=s(73183);let F=e=>{let{lineups:t}=e,s=(0,o.useContext)(c.Ws),g=(0,d.nm)(s),y=((e,t,s)=>s===p.QCR.AmericanFootball?Object.keys(e).filter(s=>e[s].find(e=>!!t.left.players.find(t=>m(e,t))||!!t.right.players.find(t=>m(e,t)))):Object.keys(e))(g,t,s),x=(0,o.useRef)(null),j=(0,r.uc)(x),[v,b]=(0,o.useState)(y[0]),[_,S]=(0,o.useState)(),{defaultSorts:k,sortConfigs:w,updateSortStatistic:C}=((e,t)=>{let s=(0,o.useMemo)(()=>{let s={};return Object.keys(h.Oi[e]).forEach(a=>{let l=h.Oi[e][a];s[a]=t[a].find(e=>e.value===l)||t[a][0]}),s},[e]),[a,l]=(0,o.useState)(()=>(e=>{let t={};return Object.keys(e).forEach(s=>{t[s]={stat:e[s],dir:f.U.DESC}}),t})(s));return{defaultSorts:s,sortConfigs:a,updateSortStatistic:(e,t)=>{l(s=>({...s,[t]:(0,E.I)(s[t],e)}))}}})(s,g),M=(0,o.useCallback)(e=>S(e),[]);return y?(0,a.jsxs)(n.tU,{variant:"quaternary",initialValue:0,value:v||0,onChange:e=>b(e),children:[(0,a.jsx)(i.az,{py:"sm",px:"lg",children:y.map(e=>(0,a.jsx)(n.tU.Tab,{ml:0,tabKey:e,children:(0,a.jsx)(u.R,{id:e})},e))}),y.map(e=>(0,a.jsx)(n.tU.Panel,{tabKey:e,children:(0,a.jsx)(i.az,{pb:"lg",ref:x,children:(0,a.jsx)(l.tR,{scrollButtonTopPosition:38,children:(0,a.jsx)(i.az,{style:{minWidth:j},children:(0,a.jsx)(B,{sortConfig:w[e],updateSortStatistic:C,defaultSortStat:k[e],filteredTeamId:_,onFilterClick:M,stats:g[e],lineups:t,groupName:e})})})})},e))]}):null}},56300:(e,t,s)=>{s.d(t,{N:()=>l,i:()=>r});var a=s(6029);let l=(0,s(55729).createContext)("left"),r=e=>{let{side:t,children:s}=e;return(0,a.jsx)(l.Provider,{value:t,children:s})}},57719:(e,t,s)=>{s.d(t,{F:()=>d});var a=s(6029),l=s(21377),r=s(55729),i=s(90248),n=s(18970);let o=JSON.parse('{"football":{"Dlong":"football_defender","DLlong":"football_left_defender","DClong":"football_centre_defender","DRlong":"football_right_defender","DMlong":"football_defensive_midfielder","Mlong":"football_midfielder","MLlong":"football_left_midfielder","MRlong":"football_right_midfielder","MClong":"football_centre_midfielder","AMlong":"football_attacking_midfielder","Flong":"football_forward","LWlong":"football_left_winger","RWlong":"football_right_winger","STlong":"football_striker","Glong":"goalkeeper","GKlong":"goalkeeper","Dshort":"position.defender.short","DLshort":"position.defenderLeft.short","DCshort":"position.defenderCenter.short","DRshort":"position.defenderRight.short","DMshort":"position.defensiveMidfielder","Mshort":"position.midfielder.short","MLshort":"position.midfielderLeft.short","MRshort":"position.midfielderRight.short","MCshort":"position.midfielderCenter.short","AMshort":"position.attackingMidfielder.short","Fshort":"position.forward.short","LWshort":"position.leftWinger.short","RWshort":"position.rightWinger.short","STshort":"position.striker.short","Gshort":"position.goalkeeper.short","GfantasyShort":"position.goalkeeper.fantasyShort","DfantasyShort":"position.defender.fantasyShort","MfantasyShort":"position.midfielder.fantasyShort","FfantasyShort":"position.forward.fantasyShort"},"basketball":{"Clong":"basketball.center","CFlong":"centerForward","Flong":"basketball.forward","FClong":"forwardCenter","FGlong":"forwardGuard","Glong":"guard","GFlong":"guardForward","Cshort":"position.basketball.center.short","CFshort":"position.centerForward.short","Fshort":"position.basketball.forward.short","FCshort":"position.forwardCenter.short","FGshort":"position.forwardGuard.short","Gshort":"position.guard.short","GFshort":"position.guardForward.short"},"ice-hockey":{"Dlong":"defenseman","Glong":"goalie","Clong":"hockey.center","Llong":"leftWing","Rlong":"rightWing","Flong":"football_forward","Dshort":"position.defenseman.short","Gshort":"position.goalie.short","Cshort":"position.hockey.short.center","Lshort":"position.leftWing.short","Rshort":"position.rightWing.short","Fshort":"position.forward.short"},"baseball":{"Plong":"pitcher","Clong":"catcher","1Blong":"1stBase","2Blong":"2ndBase","3Blong":"3rdBase","SSlong":"shortstop","LFlong":"leftField","CFlong":"centerField","RFlong":"rightField","DHlong":"designatedHitter","SPlong":"startingPitcher","CPlong":"closer","PHlong":"pinchHitter","PRlong":"pinchRunner","BRlong":"baseRunner","OFlong":"outfield","IFlong":"infield","RPlong":"reliefPitcher","UTlong":"util","UIlong":"utilInfielder","UOlong":"utilOutfielder","RHPlong":"rhPitcher","LHPlong":"lhPitcher","RHSlong":"rhStarted","LHSlong":"lhStarter","LHRlong":"lhReliever","RHRlong":"rhReliever","Blong":"batter","Pshort":"position.pitcher.short","Cshort":"position.catcher.short","1Bshort":"position.1stBase.short","2Bshort":"position.2ndBase.short","3Bshort":"position.3rdBase.short","SSshort":"position.shortstop.short","LFshort":"position.leftField.short","CFshort":"position.centerField.short","RFshort":"position.rightField.short","DHshort":"position.designatedHitter.short","SPshort":"position.startingPitcher.short","CPshort":"position.closer.short","PHshort":"position.pinchHitter.short","PRshort":"position.pinchRunner.short","BRshort":"position.baseRunner.short","OFshort":"position.outfield.short","IFshort":"position.infield.short","RPshort":"position.reliefPitcher.short","UTshort":"position.util.short","UIshort":"position.utilInfielder.short","UOshort":"position.utilOutfielder.short","RHPshort":"position.rhPitcher.short","LHPshort":"position.lhPitcher.short","RHSshort":"position.rhStarted.short","LHSshort":"position.lhStarter.short","LHRshort":"position.lhReliever.short","RHRshort":"position.rhReliever.short","Bshort":"position.batter.short"},"american-football":{"Plong":"punter","PRlong":"puntReturner","LSlong":"longSnapper","Klong":"kicker","Tlong":"tackle","OTlong":"offensiveTackle","OLlong":"offensiveLineman","OGlong":"offensiveGuard","Glong":"amf.guard","Clong":"amf.center","QBlong":"quarterback","RBlong":"runningBack","FBlong":"fullback","TElong":"tightEnd","WRlong":"wideReceiver","SSlong":"strongSafety","SAFlong":"safety","FSlong":"freeSafety","DLlong":"defensiveLineman","DBlong":"defensiveBack","CBlong":"cornerBack","NTlong":"noseTackle","DTlong":"defensiveTackle","DElong":"defensiveEnd","OLBlong":"outsideLinebacker","MLBlong":"middleLinebacker","LBlong":"linebacker","ILBlong":"insideLinebacker","Pshort":"position.punter.short","PRshort":"position.puntReturner.short","LSshort":"position.longSnapper.short","Kshort":"position.kicker.short","Tshort":"position.tackle.short","OTshort":"position.offensiveTackle.short","OLshort":"position.offensiveLineman.short","OGshort":"position.offensiveGuard.short","Gshort":"position.amf.guard.short","Cshort":"position.amf.center.short","QBshort":"position.quarterback.short","RBshort":"position.runningBack.short","FBshort":"position.fullback.short","TEshort":"position.tightEnd.short","WRshort":"position.wideReceiver.short","SSshort":"position.strongSafety.short","SAFshort":"position.safety.short","FSshort":"position.freeSafety.short","DLshort":"position.defensiveLineman.short","DBshort":"position.defensiveBack.short","CBshort":"position.cornerBack.short","NTshort":"position.noseTackle.short","DTshort":"position.defensiveTackle.short","DEshort":"position.defensiveEnd.short","OLBshort":"position.outsideLinebacker.short","MLBshort":"position.middleLinebacker.short","LBshort":"position.linebacker.short","ILBshort":"position.insideLinebacker.short"},"handball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","RWlong":"rightWing","RWshort":"position.rightWinger.short","LWlong":"leftWing","LWshort":"position.leftWinger.short","RBlong":"rightBack","RBshort":"position.rightBack.short","LBlong":"leftBack","LBshort":"position.leftBack.short","CBlong":"handball_position_centre_back","CBshort":"position.centralBack.short","Plong":"pivot","Pshort":"position.pivot.short"},"cricket":{"BMlong":"position.batter","ARlong":"position.all.rounder","WKlong":"position.wicket.keeper","Blong":"position.bowler","BMshort":"position.batter","ARshort":"position.all.rounder","WKshort":"position.wicket.keeper","Bshort":"position.bowler"},"minifootball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","OFshort":"minifootball_outfield_player_short","OFlong":"minifootball_outfield_player","Fshort":"minifootball_outfield_player_short","Flong":"minifootball_outfield_player"},"volleyball":{"OHshort":"volleyball_player_position_outside_hitter_short","MBshort":"volleyball_player_position_middle_blocker_short","Lshort":"volleyball_player_position_libero_short","Oshort":"volleyball_player_position_opposite_short","Sshort":"volleyball_player_position_setter_short","OHlong":"volleyball_player_position_outside_hitter","MBlong":"volleyball_player_position_middle_blocker","Llong":"volleyball_player_position_libero","Olong":"volleyball_player_position_opposite","Slong":"volleyball_player_position_setter"}}');var c=s(91113);let d=e=>{let{id:t,fantasyShort:s,short:d,sport:u,gender:p=l.YT8.Male}=e,f=(0,r.useContext)(n.Ws),h=u||f,g=s&&h===l.QCR.Football?"fantasyShort":d||s?"short":"long",m=(0,c.O)(o,t+g,h,t);return(0,a.jsx)(i.A,{id:m,values:{gender:p}})}},57724:(e,t,s)=>{s.d(t,{Di:()=>d,QC:()=>o,dv:()=>r,fS:()=>c,iF:()=>u,jf:()=>i,rt:()=>l});var a=s(21377);let l=[a.QCR.Tennis,a.QCR.Darts],r=[a.QCR.Football,a.QCR.IceHockey,a.QCR.Handball,a.QCR.Futsal,a.QCR.Minifootball,a.QCR.Waterpolo,a.QCR.Floorball,a.QCR.Bandy],i=[...l,a.QCR.Cricket],n=[a.QCR.AussieRules,a.QCR.Basketball,a.QCR.Volleyball,a.QCR.TableTennis,a.QCR.Badminton,a.QCR.BeachVolley],o=[a.QCR.Basketball,a.QCR.AussieRules],c=[a.QCR.IceHockey,a.QCR.Floorball,a.QCR.Bandy];function d(e){return n.includes(e)}let u=e=>"yellow"===e?"yellowCard":"red"===e?"redCard":"yellowRed"===e?"yellowRed":void 0},57773:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6029),l=s(41735),r=s(39895);function i(e){let{colors:t}=(0,l.useTheme)();return(0,a.jsx)(r.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:(0,a.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,a.jsx)("path",{fill:"none",d:"M0 0h16v16H0z"}),(0,a.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:t.primary.default}),(0,a.jsx)("path",{d:"M11 9v2.25H8v1.5h3V15h1l3-3-3-3h-1z",fill:t.error.default})]}))}))}},59e3:(e,t,s)=>{s.d(t,{t:()=>r,u:()=>l});var a=s(21377);let l=[a.QCR.AmericanFootball,a.QCR.Basketball,a.QCR.Handball,a.QCR.IceHockey];function r(e){switch(e){case a.QCR.AmericanFootball:return["passingTouchdowns","rushingTouchdowns","receivingTouchdowns","passingCompletionPercentage","rushingYardsPerAttempt","receivingYardsPerReception","defensiveInterceptions","defensiveTotalTackles","defensiveSacks","kickingFgMade"];case a.QCR.Basketball:return["points","rebounds","assists","steals","blocks","turnovers","fieldGoalsPercentage","threePointsPercentage"];case a.QCR.Handball:return["goals","assists","goals7m","steals","twoMinutePenalties","saves","goalkeeperEfficiencyPercentage","gk7mSaves"];case a.QCR.IceHockey:return["points","goals","assists","plusMinus","timeOnIce","blocked","hits","goalsAgainstAverage","savePercentage","shutouts"];default:return null}}},59395:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(6029),l=s(39895);function r(e){return(0,a.jsx)(l.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:(0,a.jsx)("path",{d:"m10.5 13.01 1.5 1.5-2.5.5-.5-.5 1.5-1.5zM7.92 1v1l2 1h2l1 6 1.5 4.5-1 1-10-10L5.92 1h2zM8 10.51l1.5 1.5-2.5.5-.5-.5 1.5-1.5zm-2.5-2.5L7 9.51l-2.5.5-.5-.5 1.5-1.5zm5.93.19H9.08l1.41 1.41h1.18l-.24-1.41zM3 5.51l1.5 1.5-2.5.5-.5-.5L3 5.51zm7.91-.01H6.43l1.41 1.41h3.31l-.24-1.41z",fill:e.fill,fillRule:"evenodd"})}))}},62283:(e,t,s)=>{s.d(t,{A:()=>a});var a={onColor:{primary:"var(--on-color-primary)"},onSurface:{nLv1:"var(--on-surface-nLv1)"},social:{facebook:"var(--social-facebook)"},editor:{pink:"var(--editor-pink)"}}},62764:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(6029),l=s(39895);function r(e){return(0,a.jsxs)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:[(0,a.jsx)("g",Object.assign({clipPath:"url(#clip0_26093_10000)"},{children:(0,a.jsx)("path",{d:"M8.80226 2.66663H7.37305L1.66992 12.1133L2.38794 13.3333H13.7874L14.5054 12.1133L8.80226 2.66663ZM8.76806 12H7.40041V10.6666H8.76806V12ZM8.76806 9.33329H7.40041V5.33329H8.76806V9.33329Z",fill:e.fill})})),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",Object.assign({id:"clip0_26093_10000"},{children:(0,a.jsx)("rect",{width:"12.67",height:"10.6667",fill:"white",transform:"translate(1.66992 2.66663)"})}))})]}))}},64605:(e,t,s)=>{s.d(t,{Ko:()=>e6});var a=s(6029),l=s(38709),r=s(4967),i=s(28349),n=s(76356),o=s(99064),c=s(55729),d=s(90248),u=s(18970),p=s(20288),f=s(18858),h=s(40094);function g(e){let{isNational:t,eventTimestamp:s,isHorizontalLayout:g,onTabChange:m,order:y,hasDistance:x}=e,{event:j}=(0,c.useContext)(u.y$),v=(0,f.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),b=1>(0,r.CF)(s),_=Object.values(l.k).filter(e=>(e!==l.k.MarketValue||!!b)&&(e!==l.k.Distance||!!x)&&(t?e!==l.k.Nationality:e!==l.k.Club));return(0,a.jsxs)(i.PI,{top:v,w:"100%",order:y,zIndex:"stickySecondary",bg:"surface.s1",children:[(0,a.jsxs)(n.so,{justify:"space-between",align:"center",gap:"lg",pr:"sm",children:[(0,a.jsx)(o.tU,{variant:"quaternary",initialValue:l.k.Performance,onChange:m,children:(0,a.jsx)(o.tU.List,{p:"sm",children:_.map(e=>(0,a.jsx)(o.tU.Tab,{tabKey:e,children:(0,a.jsx)(d.A,{id:h.fP[e]})},"tab-".concat(e)))})}),(0,a.jsx)(p.w,{type:"lineups",event:j})]}),!g&&(0,a.jsx)(o.cG,{})]})}var m=s(25766),y=s(94400),x=s(91603),j=s(21377),v=s(41735),b=s(17152),_=s(15538),S=s(30821),k=s(53960),w=s(88505);let C=function(){let[e,t]=(0,c.useState)(320);return(0,c.useEffect)(()=>{t(window.innerWidth);let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e};function M(e){let{team:t,avgRating:s,teamSide:l,formation:r,jersey:i,isNotStarted:n,avgMessageId:u,avgData:p,chipType:f,isHorizontalLayout:g,order:M}=e,P=h.wf.includes(f)&&p,L=C(),H="rtl"===(0,c.useContext)(v.ThemeContext).settings.textDirection;return(0,a.jsx)(o.az,{w:"100%",h:"72px",maxH:"82px",br:[void 0,"lg"],flex:g?"1 1 45%":"1 1 100%",m:g?"left"===l?H?"0 sm sm xs":"0 xs sm sm":H?"0 xs sm sm":"0 sm sm xs":void 0,p:g?"0 sm":"sm sm",order:M,children:(0,a.jsxs)(o.so,{w:"100%",h:"100%",justify:"space-between",align:"center",direction:"left"!==l&&g?"row-reverse":"row",children:[(0,a.jsxs)(o.so,{h:"100%",align:"center",direction:"left"!==l&&g?"row-reverse":"row",children:[L>360&&!g&&(0,a.jsx)(x.p,{id:t.id,size:32,m:"left"===l?"0 sm 0 0":"0 0 0 sm"}),(0,a.jsxs)(o.so,{direction:"column",gap:"xs",align:"left"!==l&&g?"flex-end":"flex-start",ml:"sm",children:[(0,a.jsxs)(o.so,{gap:"sm",align:"center",h:"100%",grow:1,children:[(0,a.jsx)(o.EY,{font:"display.medium",lineHeight:"20px",lineClamp:2,children:(0,a.jsx)(w.Rm,{team:t,short:!0})}),s&&(0,a.jsxs)(o.so,{align:"center",h:"100%",children:[(0,a.jsx)(y.A,{rating:s,format:"sideBox"}),(0,a.jsx)(b.D,{type:n?_.J.AverageRatingTeam:_.J.AverageRating,rating:s,renderImage:e=>(0,a.jsx)(x.p,{id:t.id,...e})})]})]}),P&&(0,a.jsxs)(o.so,{direction:"row",justify:"left"!==l&&g?"flex-end":"flex-start",align:"center",wrap:"wrap",children:[(0,a.jsxs)(o.EY,{font:"body.small",lineHeight:"16px",color:"onSurface.nLv3",children:[(0,a.jsx)(d.A,{id:u})," • "]}),"\xa0",(0,a.jsx)(o.EY,{font:"display.micro",fontWeight:700,lineHeight:"14px",children:f===m.k.Age?(0,a.jsxs)(a.Fragment,{children:[p," ",(0,a.jsx)(d.A,{id:"years_short",values:{n:Math.round("number"==typeof p?p:p.value)}})]}):f===m.k.MarketValue?(0,a.jsx)(k.o,{parsedMoney:(0,j.oaz)(p)}):f===m.k.Height?(0,a.jsx)(S.Z,{value:p,fromUnit:"cm"}):f===m.k.Distance?(0,a.jsxs)(a.Fragment,{children:[p," km"]}):void 0})]})]})]}),(0,a.jsxs)(o.so,{minW:"56px",w:"56px",direction:"column",justify:"center",align:"center",m:"xs",children:[(0,a.jsx)(o.EY,{font:"display.small",color:"onSurface.nLv1",children:r}),(0,a.jsx)(o.so,{w:"36px",h:"36px",br:"sm",backgroundColor:"neutral.highlight",justify:"center",align:"center",children:(0,a.jsx)(o._V,{w:"28px",h:"32px",src:i,alt:"Team jersey"})})]})]})})}function P(e){let{eventStatus:t,isConfirmed:s,shareButton:l,order:r}=e;return[j.XUj.Finished,j.XUj.InProgress].includes(t)?null:(0,a.jsxs)(n.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,a.jsx)(i.EY,{textStyle:"display.medium",lineHeight:"xl",children:(0,a.jsx)(d.A,{id:s?"football_confirmed_lineups":"football_possible_lineups"})}),l]})}var L=s(42181),H=s(86890),I=s(93338),R=s(59395),A=s(5173),O=s(90142),G=s(39895);function V(e){var{fill:t="primary.default"}=e,s=(0,O.T)(e,["fill"]);return(0,a.jsxs)(G.A,Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:t},s,{children:[(0,a.jsxs)("g",Object.assign({"clip-path":"url(#clip0_7324_19939)"},{children:[(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25 3.45V5.25H9L11.25 3L9 0.75H8.25V2.55",fill:"#A4A9B3"}),(0,a.jsx)("path",{d:"M3.5625 5.25H2.4375V2.4375H8.25V3.5625H3.5625V5.25Z",fill:"#A4A9B3"}),(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.75 8.55V6.75H3L0.75 9L3 11.25H3.75V9.45",fill:"#C7361F"}),(0,a.jsx)("path",{d:"M9.5625 9.5625H3.75V8.4375H8.4375V6.75H9.5625V9.5625Z",fill:"#C7361F"})]})),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",Object.assign({id:"clip0_7324_19939"},{children:(0,a.jsx)("rect",{width:"10.5",height:"10.5",fill:"white",transform:"translate(0.75 0.75)"})}))})]}))}var T=s(39169),z=s(11663),B=s(43681),E=s(10953),F=s(91289),N=s(97080),Z=s(13181),D=s(45079),W=s(84684),Y=s(86877);function Q(e){return(0,a.jsxs)(G.A,Object.assign({width:"20",height:"20",viewBox:"0 0 20 20"},e,{children:[(0,a.jsx)("path",{id:"Vector",d:"M10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_2",d:"M6 15C5.45 15 5 15.45 5 16C5 16.55 5.45 17 6 17C6.55 17 7 16.55 7 16C7 15.45 6.55 15 6 15Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_3",d:"M9 12C8.45 12 8 12.45 8 13C8 13.55 8.45 14 9 14C9.55 14 10 13.55 10 13C10 12.45 9.55 12 9 12Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_4",d:"M6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_5",d:"M3 12C2.45 12 2 12.45 2 13C2 13.55 2.45 14 3 14C3.55 14 4 13.55 4 13C4 12.45 3.55 12 3 12Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_6",d:"M15 12C14.45 12 14 12.45 14 13C14 13.55 14.45 14 15 14C15.55 14 16 13.55 16 13C16 12.45 15.55 12 15 12Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_7",d:"M12 15C11.45 15 11 15.45 11 16C11 16.55 11.45 17 12 17C12.55 17 13 16.55 13 16C13 15.45 12.55 15 12 15Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_8",d:"M12 9C11.45 9 11 9.45 11 10C11 10.55 11.45 11 12 11C12.55 11 13 10.55 13 10C13 9.45 12.55 9 12 9Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_9",d:"M15 6C14.45 6 14 6.45 14 7C14 7.55 14.45 8 15 8C15.55 8 16 7.55 16 7C16 6.45 15.55 6 15 6Z",fill:e.fill}),(0,a.jsx)("path",{id:"Vector_10",d:"M18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9Z",fill:e.fill})]}))}function U(e){return(0,a.jsxs)(G.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:[(0,a.jsx)("path",{d:"M7 16C6.45 16 6 16.45 6 17C6 17.55 6.45 18 7 18C7.55 18 8 17.55 8 17C8 16.45 7.55 16 7 16Z",fill:e.fill}),(0,a.jsx)("path",{d:"M10 15C9.45 15 9 15.45 9 16C9 16.55 9.45 17 10 17C10.55 17 11 16.55 11 16C11 15.45 10.55 15 10 15Z",fill:e.fill}),(0,a.jsx)("path",{d:"M13 16C12.45 16 12 16.45 12 17C12 17.55 12.45 18 13 18C13.55 18 14 17.55 14 17C14 16.45 13.55 16 13 16Z",fill:e.fill}),(0,a.jsx)("path",{d:"M13 13C12.45 13 12 13.45 12 14C12 14.55 12.45 15 13 15C13.55 15 14 14.55 14 14C14 13.45 13.55 13 13 13Z",fill:e.fill}),(0,a.jsx)("path",{d:"M15 10C14.45 10 14 10.45 14 11C14 11.55 14.45 12 15 12C15.55 12 16 11.55 16 11C16 10.45 15.55 10 15 10Z",fill:e.fill}),(0,a.jsx)("path",{d:"M0 0V9H2V2H18V9H20V0H0Z",fill:e.fill}),(0,a.jsx)("path",{d:"M10 7.75C12.89 7.75 15.25 10.11 15.25 13C15.25 15.89 12.89 18.25 10 18.25C7.11 18.25 4.75 15.89 4.75 13C4.75 10.11 7.11 7.75 10 7.75ZM10 6C6.13 6 3 9.13 3 13C3 16.87 6.13 20 10 20C13.87 20 17 16.87 17 13C17 9.13 13.87 6 10 6Z",fill:e.fill})]}))}var K=s(77749),$=s(80339),X=s(14532);function q(e){return(0,a.jsxs)(G.A,Object.assign({width:"20",height:"20",viewBox:"0 0 20 20"},e,{children:[(0,a.jsx)("path",{d:"M10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0Z",fill:e.fill}),(0,a.jsx)("path",{d:"M13 4C12.175 4 11.5 4.675 11.5 5.5C11.5 6.325 12.175 7 13 7C13.825 7 14.5 6.325 14.5 5.5C14.5 4.675 13.825 4 13 4Z",fill:e.fill}),(0,a.jsx)("path",{d:"M10 8.5C9.175 8.5 8.5 9.175 8.5 10C8.5 10.825 9.175 11.5 10 11.5C10.825 11.5 11.5 10.825 11.5 10C11.5 9.175 10.825 8.5 10 8.5Z",fill:e.fill}),(0,a.jsx)("path",{d:"M7.5 4C6.675 4 6 4.675 6 5.5C6 6.325 6.675 7 7.5 7C8.325 7 9 6.325 9 5.5C9 4.675 8.325 4 7.5 4Z",fill:e.fill}),(0,a.jsx)("path",{d:"M4.5 8.5C3.675 8.5 3 9.175 3 10C3 10.825 3.675 11.5 4.5 11.5C5.325 11.5 6 10.825 6 10C6 9.175 5.325 8.5 4.5 8.5Z",fill:e.fill})]}))}function J(e){return(0,a.jsxs)(G.A,Object.assign({width:"20",height:"20",viewBox:"0 0 20 20"},e,{children:[(0,a.jsx)("path",{d:"M12 9C11.45 9 11 9.45 11 10C11 10.55 11.45 11 12 11C12.55 11 13 10.55 13 10C13 9.45 12.55 9 12 9Z",fill:e.fill}),(0,a.jsx)("path",{d:"M10 12C9.45 12 9 12.45 9 13C9 13.55 9.45 14 10 14C10.55 14 11 13.55 11 13C11 12.45 10.55 12 10 12Z",fill:e.fill}),(0,a.jsx)("path",{d:"M8.5 9C7.95 9 7.5 9.45 7.5 10C7.5 10.55 7.95 11 8.5 11C9.05 11 9.5 10.55 9.5 10C9.5 9.45 9.05 9 8.5 9Z",fill:e.fill}),(0,a.jsx)("path",{d:"M6.5 12C5.95 12 5.5 12.45 5.5 13C5.5 13.55 5.95 14 6.5 14C7.05 14 7.5 13.55 7.5 13C7.5 12.45 7.05 12 6.5 12Z",fill:e.fill}),(0,a.jsx)("path",{d:"M20 0H0V9H2V2H18V9H20V0Z",fill:e.fill}),(0,a.jsx)("path",{d:"M10 7.75C12.89 7.75 15.25 10.11 15.25 13C15.25 15.89 12.89 18.25 10 18.25C7.11 18.25 4.75 15.89 4.75 13C4.75 10.11 7.11 7.75 10 7.75ZM10 6C6.13 6 3 9.13 3 13C3 16.87 6.13 20 10 20C13.87 20 17 16.87 17 13C17 9.13 13.87 6 10 6Z",fill:e.fill})]}))}var ee=s(35518),et=s(31698),es=s(32256),ea=s(51555),el=s(12275),er=s(44742),ei=s(57773),en=s(65549),eo=s(49336),ec=s(26624),ed=s(4653),eu=s(67996),ep=s(61390),ef=s(84262),eh=s(55217),eg=s(61848),em=s(79826),ey=s(23147),ex=s(33787),ej=s(2424),ev=s(75341),eb=s(86838),e_=s(20191),eS=s(63788),ek=s(27974),ew=s(55807),eC=s(11406),eM=s(86876),eP=s(62764),eL=s(3723),eH=s(87234),eI=s(18682);let eR={card:{yellow:{fill:"scoreRating.s65",Icon:e=>(0,a.jsx)(X.A,Object.assign({},e))},yellowRed:{Icon:e=>(0,a.jsx)(K.A,Object.assign({},e))},red:{fill:"error.default",Icon:e=>(0,a.jsx)($.default,Object.assign({},e))}},goal:{football:{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ee.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(es.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(et.A,Object.assign({},e))}},futsal:{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ee.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(es.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(et.A,Object.assign({},e))},accumulatedPenalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(E.A,Object.assign({},e))}},minifootball:{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ee.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(es.A,Object.assign({},e))},accumulatedPenalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(E.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(et.A,Object.assign({},e))}},"american-football":{fieldGoal:{fill:"secondary.default",Icon:e=>(0,a.jsx)(N.A,Object.assign({},e))},rouge:{fill:"secondary.default",Icon:e=>(0,a.jsx)(Z.A,Object.assign({},e))},twoPointConversion:{fill:"secondary.default",Icon:e=>(0,a.jsx)(Y.A,Object.assign({},e))},touchdown:{fill:"secondary.default",Icon:e=>(0,a.jsx)(W.A,Object.assign({},e))},extraPoint:{fill:"secondary.default",Icon:e=>(0,a.jsx)(F.A,Object.assign({},e))},safety:{fill:"secondary.default",Icon:e=>(0,a.jsx)(D.A,Object.assign({},e))}},rugby:{onePoint:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ey.A,Object.assign({},e))},twoPoints:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eb.A,Object.assign({},e))},threePoints:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ej.A,Object.assign({},e))},try:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ev.A,Object.assign({},e))},penaltyTry:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ex.A,Object.assign({},e))}},"ice-hockey":{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(en.A,Object.assign({},e))},emptynet:{fill:"secondary.default",Icon:e=>(0,a.jsx)(en.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,a.jsx)(eo.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ec.A,Object.assign({},e))},powerplay:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ed.A,Object.assign({},e))},shorthanded:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eu.A,Object.assign({},e))}},handball:{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ea.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(el.A,Object.assign({},e))}},waterpolo:{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eH.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eI.A,Object.assign({},e))}},bandy:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(Q,Object.assign({},e))},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(U,Object.assign({},e))}},floorball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(q,Object.assign({},e))},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,a.jsx)(J,Object.assign({},e))}},volleyball:{regular:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eL.A,Object.assign({},e))},spike:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eL.A,Object.assign({},e))},opponentError:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eP.A,Object.assign({},e))},ace:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eC.A,Object.assign({},e))},block:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eM.A,Object.assign({},e))}},regular:{Icon:()=>null}},substitution:{"ice-hockey":{goalkeeperIn:{fill:"primary.default",Icon:e=>(0,a.jsx)(er.A,Object.assign({},e))},goalkeeperOut:{fill:"primary.default",Icon:e=>(0,a.jsx)(ei.A,Object.assign({},e))}},injury:{fill:"primary.default",Icon:e=>(0,a.jsx)(eS.A,Object.assign({},e))},temporary:{fill:"primary.default",Icon:e=>(0,a.jsx)(ek.A,Object.assign({},e))},regular:{fill:"primary.default",Icon:e=>(0,a.jsx)(e_.A,Object.assign({},e))}},penaltyShootout:{"ice-hockey":{scored:{fill:"secondary.default",Icon:e=>(0,a.jsx)(ec.A,Object.assign({},e))}},waterpolo:{scored:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eI.A,Object.assign({},e))}},rugby:{scored:{fill:"secondary.default",Icon:e=>(0,a.jsx)(eg.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,a.jsx)(eh.A,Object.assign({},e))}},taker:{fill:"secondary.default",Icon:e=>(0,a.jsx)(em.A,Object.assign({},e))},scored:{fill:"secondary.default",Icon:e=>(0,a.jsx)(es.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,a.jsx)(ef.A,Object.assign({},e))}},inGamePenalty:{taker:{fill:"secondary.default",Icon:e=>(0,a.jsx)(em.A,Object.assign({},e))},scored:{fill:"secondary.default",Icon:e=>(0,a.jsx)(es.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,a.jsx)(ef.A,Object.assign({},e))}},varDecision:{regular:{fill:"primary.default",Icon:e=>(0,a.jsx)(ew.default,Object.assign({},e))}},suspension:{minifootball:{regular:{fill:"error.default",Icon:e=>(0,a.jsx)(B.A,Object.assign({},e))}},handball:{regular:{fill:"error.default",Icon:e=>(0,a.jsx)(B.A,Object.assign({},e))}},twoMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(B.A,Object.assign({},e))},"ice-hockey":{zeroMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(ep.A,Object.assign({},e))},twoMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(ep.A,Object.assign({},e))},fourMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(ep.A,Object.assign({},e))},fiveMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(ep.A,Object.assign({},e))},tenMinutes:{fill:"error.default",Icon:e=>(0,a.jsx)(ep.A,Object.assign({},e))},regular:{fill:"error.default",Icon:e=>(0,a.jsx)(ep.A,Object.assign({},e))}}}};function eA({incidentType:e,incidentClass:t,sport:s,title:l,svgProps:r,fallback:i=null}){var n,o,c,d,u,p;let f=(null==(o=null==(n=eR[e])?void 0:n[s])?void 0:o.regular)||(null==(c=eR[e])?void 0:c.regular);if(t&&(f=(null==(u=null==(d=eR[e])?void 0:d[s])?void 0:u[t])||(null==(p=eR[e])?void 0:p[t])||eR[e].regular),!(null==f?void 0:f.Icon))return i;let h=f.Icon;return(0,a.jsx)(h,Object.assign({width:24,height:24,fill:f.fill,title:l,style:{minWidth:(null==r?void 0:r.width)||"24px",display:"inline-block"}},r))}function eO({incident:e,isNumber:t}){return t?(0,a.jsx)(i.EY,Object.assign({textStyle:"display.micro",color:"onColor.primary"},{children:e.count})):"matchMVP"===e.name?(0,a.jsx)(T.default,{w:12,h:12,fill:e.color}):"goalAssist"===e.name?(0,a.jsx)(R.A,{w:12,h:12,fill:e.color}):"goal"===e.name&&("regular"===e.icon||"penalty"===e.icon)?(0,a.jsx)(A.A,{w:12,h:12,fill:e.color}):"substitution"===e.name?"injury"===e.icon?(0,a.jsx)(z.A,{w:12,h:12,fill:e.color,style:{transform:"scaleX(-1)"}}):(0,a.jsx)(V,{}):e.icon?(0,a.jsx)(eA,{sport:j.QCR.Football,incidentType:e.name,incidentClass:e.icon,svgProps:{width:12,height:12,shapeRendering:"crispEdges"}}):null}let eG=({incident:e,isNumber:t})=>(0,a.jsxs)(n.az,Object.assign({position:"relative",w:"lg",h:"lg",className:"light"},{children:[(0,a.jsx)(n.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:I.S.var("colors.onColor.primary")}}),(0,a.jsx)(n.ov,Object.assign({position:"absolute",top:"[50%]",left:"[50%]",transform:{_ltr:"translate(-50%, -50%)",_rtl:"translate(50%, -50%)"}},{children:(0,a.jsx)(eO,{incident:e,isNumber:t})}))]}));function eV({alignment:e,incidents:t,compactDisplay:s}){return(0,a.jsx)(n.so,Object.assign({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,a.jsxs)(n.so,Object.assign({align:"center"},{children:[(0,a.jsx)(eG,{incident:t}),"right"===e&&t.count&&t.count>=2&&(0,a.jsx)(n.so,Object.assign({position:"absolute",gap:"[1px]",left:s?"[1px]":"sm"},{children:(0,a.jsx)(eG,{incident:t,isNumber:!0})}))]}),t.name):(0,a.jsx)(n.az,{h:"lg"},t.name))}))}var eT=s(48485);s(64082),s(21501),s(16007),s(47177),s(97824),s(83204);var ez=s(19991);function eB({player:e,incidents:t,isMatchMVP:s,lineupsType:l,compactDisplay:r}){let{playerLeftStatistics:i,playerRightStatistics:o}=function(e,t,s){var a,l,r;let i=t?(0,eT.h)({id:e.player.id,incidents:t,useShortName:!0}):{},n=i.hasYellowCard||i.hasYellowRedCard||i.hasRedCard,o={name:"card",icon:i.hasYellowRedCard?"yellowRed":i.hasRedCard?"red":"yellow",color:i.hasYellowRedCard?void 0:i.hasRedCard?I.S.var("colors.status.error.default"):I.S.var("colors.rating.s65"),isVisible:!!n},c={name:"substitution",icon:(null==(a=i.substitutionOut)?void 0:a.isInjury)?"injury":"regular",isVisible:!!i.substitutionOut,color:(null==(l=i.substitutionOut)?void 0:l.isInjury)?I.S.var("colors.status.error.default"):void 0},d={name:"goal",icon:i.goalsScored===i.penaltiesScored&&i.hasScoredPenalty?"penalty":"regular",count:i.goalsScored,color:I.S.var("colors.surface.t"),isVisible:!!i.goalsScored},u={name:"goalAssist",icon:"football-assist",count:i.goalsAssisted,color:I.S.var("colors.surface.t"),isVisible:!!i.goalsAssisted},p={name:"goal",icon:"ownGoal",count:i.ownGoalsScored,color:I.S.var("colors.status.error.default"),isVisible:!!i.ownGoalsScored};return{playerLeftStatistics:[o,c,{name:"matchMVP",color:(0,ez.Et)(null==(r=e.statistics)?void 0:r.rating),isVisible:!!s}],playerRightStatistics:[d,u,p]}}(e,t,s);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(n.so,Object.assign({w:"100%",h:"100%",px:r?void 0:"xs",position:"absolute",justify:l===m.V.Confirmed?"space-between":"flex-start"},{children:[i&&(0,a.jsx)(eV,{alignment:"left",incidents:i}),l===m.V.Confirmed&&o&&(0,a.jsx)(eV,{alignment:"right",incidents:o,compactDisplay:r})]}))})}s(52462);var eE=s(91407);let eF=({player:e,event:t,isMatchMVP:s,incidents:l,chipType:r,lineupsType:o,numberOfPlayersInRow:c,hasRating:d,getPlayerCharacteristicLabel:u=()=>null,getTranslatedPlayerName:p=e=>e.player.shortName})=>{var f;let{mediaBreakpoint:h,isDesktopMedium:g}=(0,i.$c)(),y=r===m.k.Performance,x=(null==l?void 0:l.filter(t=>{var s;return(null==(s=null==t?void 0:t.player)?void 0:s.id)===e.player.id&&("red"===t.incidentClass||"yellowRed"===t.incidentClass)}).length)!==0&&y;return(0,a.jsxs)(n.so,Object.assign({direction:"column",align:"center"},{children:[(0,a.jsxs)(n.so,Object.assign({position:"relative",direction:"column",justify:"center",align:"center",w:"100%",h:"100%",maxW:"[68px]",maxH:"[52px]"},{children:[(0,a.jsx)(n.az,Object.assign({w:"3xl",h:"3xl",br:"50%",bg:"surface.s0"},{children:(0,a.jsx)(eE.t,{size:40,id:null==(f=e.player)?void 0:f.id,style:{opacity:x?.5:1}})})),y&&(0,a.jsx)(eB,{player:e,incidents:l,isMatchMVP:s,lineupsType:o,compactDisplay:g||"xxs"===h&&5===c}),u({player:e,event:t,chipType:r,lineupsType:o,hasRating:d})]})),p(e)]}))};function eN({teamSide:e,playerFormation:t,incidents:s,playerOfTheMatchId:l,playerCharacteristic:r,lineupsType:o,isHorizontalLayout:c,event:d,hasRatings:u,order:p,getPlayerCharacteristicLabel:f,getTranslatedPlayerName:h,onPlayerClick:g}){let m="rtl"===(0,v.useTheme)().settings.textDirection,{mediaBreakpoint:y,isDesktopMedium:x}=(0,i.$c)(),j=x||"xxs"===y&&5===t.length;return(0,a.jsxs)(L.XF,Object.assign({side:e,isHorizontalLayout:c,order:p},{children:[(0,a.jsx)(L.mi,Object.assign({side:e,isHorizontalLayout:c},{children:t.map((i,p)=>{let y=c?e===(m?"left":"right")?"column":"column-reverse":e===(m?"right":"left")?"row":"row-reverse";return(0,a.jsx)(n.so,Object.assign({flex:"[1 1 auto]",align:"center",justify:"space-evenly",direction:y},{children:(0,a.jsx)(n.so,Object.assign({w:c?void 0:"100%",h:c?"100%":void 0,justify:"space-evenly",direction:y},{children:i.map(e=>(0,a.jsx)(n.so,Object.assign({direction:"column",justify:"flex-start",align:"center",flex:"[1 1 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:()=>{g&&g(e)}},{children:(0,a.jsx)(n.az,Object.assign({w:"100%"},{children:(0,a.jsx)(eF,{player:e,isMatchMVP:e.player.id===l,incidents:s,chipType:r,lineupsType:o,numberOfPlayersInRow:i.length,event:d,hasRating:!!u,getPlayerCharacteristicLabel:f,getTranslatedPlayerName:h},e.player.id)}))}),e.player.id))}))}),p)})})),(0,a.jsx)(H.A,{side:e,linesColor:L.ob,isHorizontalLayout:c})]}))}var eZ=s(81278),eD=s(46222),eW=s(66331),eY=s(96861),eQ=s(31830),eU=s(88715),eK=s(95084),e$=s(48827),eX=s(95543),eq=s(87827);let eJ=e=>{var t;let{player:s,rating:l}=e;return(0,a.jsx)(o.so,{position:"absolute",top:"33px",children:(0,a.jsx)(eq.G,{rating:l,format:"box",decimalPoints:(null==(t=s.statistics)?void 0:t.rating)?void 0:2,size:"sm",isOnColor:!0})})};var e0=s(53192);let e1=e=>{var t,s;let{chipType:l,player:r}=e,i=null==(s=r.player)||null==(t=s.country)?void 0:t.alpha2;return(0,a.jsxs)(o.so,{p:"xxs",br:"xxs",bg:"onColor.primary",elevation:2,justify:"center",align:"center",position:"absolute",top:"31px",children:[l===m.k.Club&&(0,a.jsx)(x.p,{id:r.teamId,size:16}),l===m.k.Nationality&&(i?(0,a.jsx)(e0.w,{alpha2:i,size:16}):(0,a.jsx)(o.az,{w:"lg",h:"lg",bg:"neutral.default",br:"50%"}))]})};var e5=s(94536);function e2(e){let{player:t,event:s,chipType:i,lineupsType:n,hasRating:c}=e,u=(0,e5.lV)(t,n),p=(()=>{var e,s,a,r;switch(i){case l.k.Age:return null==(e=t.player)?void 0:e.dateOfBirthTimestamp;case l.k.MarketValue:return null==(s=t.player)?void 0:s.proposedMarketValueRaw;case l.k.Height:return null==(a=t.player)?void 0:a.height;case l.k.Distance:return null==(r=t.statistics)?void 0:r.kilometersCovered;default:return}})();return i===l.k.Performance?c?(0,a.jsx)(eJ,{player:t,rating:u}):null:[l.k.Club,l.k.Nationality].includes(i)?(0,a.jsx)(e1,{chipType:i,player:t}):(0,a.jsx)(o.so,{border:"onColor.primary",minW:"24px",maxH:"16px",justify:"center",align:"center",px:"xs",bg:"surface.s1",position:"absolute",top:"34px",children:(0,a.jsx)(o.EY,{font:"assistive.default",lineHeight:"16px",color:p?void 0:"onSurface.nLv3",style:{textWrap:"nowrap"},children:p?(0,a.jsxs)(a.Fragment,{children:[i===l.k.Age&&(0,a.jsxs)(a.Fragment,{children:[(0,r.Dr)(p,s.startTimestamp)," ",(0,a.jsx)(d.A,{id:"years_shorter",values:{n:(0,r.Dr)(p,s.startTimestamp)}})]}),i===l.k.MarketValue&&(0,a.jsx)(k.o,{parsedMoney:(0,j.oaz)(p)}),i===l.k.Height&&(0,a.jsx)(S.Z,{value:p,fromUnit:"cm"}),i===l.k.Distance&&(0,a.jsx)(a.Fragment,{children:"".concat((0,eX.M)(p,1)," km")})]}):"-"})})}var e3=s(80055);function e9(e){let t=(0,e3.z)(e.player,!0);return(0,a.jsxs)(o.EY,{font:"table.small",lineHeight:"12px",color:"onColor.primary",align:"center",mt:"md",px:"xs",w:"100%",children:[(0,a.jsx)(o.EY,{font:"table.small",lineHeight:"12px",color:"onColor.secondary",display:"inline-block",mr:"xxs",children:e.jerseyNumber}),e.captain?"(c) ".concat(t):t]})}var e4=s(92667);let e6=(0,c.forwardRef)((e,t)=>{let s=(0,eZ.useRouter)(),l=(0,eQ.A)(),{location:r,event:o,leftTeam:d,rightTeam:p}=(0,c.useContext)(u.y$),{isDesktop:f}=(0,i.$c)(),{openEventPlayerStatistics:y}=(0,eW.d)(),{lineups:x,leftFormation:v,rightFormation:b,playerOfTheMatchId:_,shareButton:S}=e,k=o.tournament.category.sport.slug,w=o.status.type===j.XUj.NotStarted&&k===j.QCR.Football,C=f&&r===u.cb.EventPage,{playerCharacteristicChip:L,setPlayerCharacteristicChip:H}=(0,c.useContext)(e$.h),[I,R]=(0,e4.ax)(x);if(!v||!b)return null;let A=(0,e5.ZB)(v,b,x.left.players,x.right.players,o.startTimestamp),O=x.left.players.some(e=>!!e.avgRating)||x.right.players.some(e=>!!e.avgRating),G=x.left.players.some(e=>{var t;return!!(null==(t=e.statistics)?void 0:t.kilometersCovered)})||x.right.players.some(e=>{var t;return!!(null==(t=e.statistics)?void 0:t.kilometersCovered)}),V=[...v||[],...b||[]].some(e=>e.some(e=>{var t;return null==(t=e.statistics)?void 0:t.rating})),T=o.status.type===j.XUj.NotStarted,z=k===j.QCR.Football?o.status.type===j.XUj.NotStarted?O:V:void 0,B=o.status.type===j.XUj.Finished||e.confirmed?m.V.Confirmed:m.V.Possible,E=h.wf.includes(L),F=e=>{e.player.disabled||(w||o.hasEventPlayerStatistics?y({event:o,player:e.player},eY._.Lineups):s.push(eU.z.getTranslatedRoute(l,"player",{id:e.player.id,slug:e.player.slug,sport:k}).route))};return(0,a.jsxs)(n.so,{direction:"column",gap:C?void 0:"sm",children:[(0,a.jsxs)(n.az,{px:C?"sm":void 0,children:[(0,a.jsx)(P,{isConfirmed:e.confirmed,eventStatus:o.status.type,shareButton:S,order:C?1:2}),(0,a.jsx)(g,{isNational:!!o.homeTeam.national&&!!o.awayTeam.national,eventTimestamp:o.startTimestamp,onTabChange:e=>{(0,eK.ke)({action:"click",location:"event_lineups",type:e===m.k.MarketValue?"market_value":e}),H(e)},order:C?2:1,isHorizontalLayout:!!C,hasDistance:G})]}),(0,a.jsx)(n.az,{px:C?void 0:"sm",children:(0,a.jsx)(eD.Zp,{children:(0,a.jsxs)(n.so,{ref:t,position:"relative",w:"100%",direction:C?"row":"column",justify:"space-between",align:"stretch",wrap:"wrap",children:[(0,a.jsx)(M,{team:d,teamSide:j.cxP.Left,formation:x.left.formation,jersey:x.leftJerseyUrls.player,chipType:L,avgRating:I,avgData:E?A[L].leftTeamValue:void 0,avgMessageId:E?A[L].messageId:void 0,isHorizontalLayout:C,isNotStarted:T,order:3}),(0,a.jsx)(eN,{teamSide:j.cxP.Left,playerFormation:v,incidents:e.incidents,playerOfTheMatchId:_,lineupsType:B,playerCharacteristic:L,isHorizontalLayout:C,hasRatings:z,event:o,order:C?4:3,getPlayerCharacteristicLabel:e2,getTranslatedPlayerName:e9,onPlayerClick:F}),(0,a.jsx)(eN,{teamSide:j.cxP.Right,playerFormation:b,incidents:e.incidents,playerOfTheMatchId:_,lineupsType:B,playerCharacteristic:L,isHorizontalLayout:C,hasRatings:z,event:o,order:C?5:4,getPlayerCharacteristicLabel:e2,getTranslatedPlayerName:e9,onPlayerClick:F}),(0,a.jsx)(M,{team:p,teamSide:j.cxP.Right,formation:x.right.formation,jersey:x.rightJerseyUrls.player,chipType:L,avgRating:R,avgData:E?A[L].rightTeamValue:void 0,avgMessageId:E?A[L].messageId:void 0,isHorizontalLayout:C,isNotStarted:T,order:C?3:5})]})})})]})})},70047:(e,t,s)=>{s.d(t,{C:()=>o});var a=s(99452),l=s.n(a),r=s(73259),i=s(92859),n=s(96861);function o(e,t,s,a){let o=t.stat,c=t.dir,d=[],u=[];if(o.value===i.K.Position&&(d.push(e=>r.EN[a].indexOf(e.position)),u.push(t.dir)),o.percentageOnly&&(d.push(e=>{let t=e.statistics&&o.madesValue?e.statistics[o.madesValue]:0,s=e.statistics&&o.attemptsValue?e.statistics[o.attemptsValue]:0;return t&&s?t/s:0}),u.push(t.dir)),o.madesValue){let e=o.madesValue;if(d.push(t=>{var s,a;return null!=(a=null==(s=t.statistics)?void 0:s[e])?a:0}),u.push(c),o.attemptsValue&&o.reverseSecondCompare){let e=o.attemptsValue;d.push(t=>{var s,a;return null!=(a=null==(s=t.statistics)?void 0:s[e])?a:0}),u.push(c===n.U.ASC?n.U.DESC:n.U.ASC)}}let p=o.compareValue;return p&&(d.push(e=>{var t,s;return null!=(s=null==(t=e.statistics)?void 0:t[p])?s:0}),u.push(c)),d.push(e=>{var t,s;return null!=(s=null==(t=e.statistics)?void 0:t[o.value])?s:0}),u.push(c),d.push(e=>{var t,a;return null!=(a=null==(t=e.statistics)?void 0:t[s.value])?a:0}),u.push(n.U.DESC),d.push(e=>{var t;return null!=(t=e.player.shortName)?t:""}),u.push(n.U.ASC),l()(e,d,u)}},72590:(e,t,s)=>{s.d(t,{A:()=>d});var a=s(6029),l=s(87827),r=s(21377),i=s(4967),n=s(95543),o=s(77285);function c(e){let t="rtl"===document.dir;if(100===e||1===e)return"1.00";let s=e<1?e:(0,n.M)(e/100,3),a="".concat(s).substring(1).padEnd(4,"0");return t?a.replace(".","").padEnd(4,"."):a}let d=function(e){var t,s,d,u,p;let{stat:f,sport:h}=e,{selectedStat:g}=e;switch(g=g.split(o.I)[0],h){case r.QCR.Football:return"rating"===(t=g)?(0,a.jsx)(l.G,{format:"sideBox",rating:f[t]}):"accuratePasses"===t?"".concat((0,n.M)(f.accuratePasses/f.appearances,1)," (").concat((0,n.M)(f.accuratePassesPercentage),"%)"):"successfulDribbles"===t?"".concat((0,n.M)(f.successfulDribbles/f.appearances,1)," (").concat((0,n.M)(f.successfulDribblesPercentage),"%)"):"penaltyGoals"===t?f.penaltiesTaken?"".concat(f.penaltyGoals," / ").concat(f.penaltiesTaken):f.penaltyGoals:"freeKickGoal"===t?"".concat(f.freeKickGoal," / ").concat(f.shotFromSetPiece):"scoringFrequency"===t?(0,n.M)(f[t]):"totalShots"===t?"".concat((0,n.M)(f.totalShots/f.appearances,1)):"shotsOnTarget"===t?"".concat((0,n.M)(f.shotsOnTarget/f.appearances,1)):"keyPasses"===t?(0,n.M)(f.keyPasses/f.appearances,1):"accurateLongBalls"===t?(0,n.M)(f.accurateLongBalls/f.appearances,1):"tackles"===t?(0,n.M)(f.tackles/f.appearances,1):"interceptions"===t?(0,n.M)(f.interceptions/f.appearances,1):"possessionLost"===t?(0,n.M)(f.possessionLost/f.appearances,1):"saves"===t?(0,n.M)(f.saves/f.appearances,1):"mostConceded"===t||"leastConceded"===t?(0,n.M)(f.goalsConceded/f.appearances,1):"clearances"===t?(0,n.M)(f.clearances/f.appearances,1):"expectedGoals"===t?"".concat((0,n.M)(f.expectedGoals,2)," (").concat(f.goals,")"):"expectedAssists"===t?"".concat((0,n.M)(f.expectedAssists,2)," (").concat(f.assists||0,")"):"goalsPrevented"===t?"".concat((0,n.M)(f.goalsPrevented,2)):"kilometersCovered"===t?"".concat((0,n.M)(f.kilometersCovered/f.minutesPlayed*90,1)," km"):"numberOfSprints"===t?"".concat((0,n.M)(f.numberOfSprints/f.minutesPlayed*90,1)):"topSpeed"===t?"".concat((0,n.M)(f.topSpeed,1)," km/h"):f[t];case r.QCR.Basketball:return"rating"===(s=g)?(0,a.jsx)(l.G,{format:"sideBox",rating:f[s]}):"secondsPlayed"===s?(0,i.OV)(f.secondsPlayed/f.appearances):"fieldGoalsPercentage"===s?"".concat((0,n.M)(f.fieldGoalsPercentage),"% (").concat((0,n.M)(f.fieldGoalsMade/f.appearances,1),")"):"freeThrowsPercentage"===s?"".concat((0,n.M)(f.freeThrowsPercentage),"% (").concat((0,n.M)(f.freeThrowsMade/f.appearances,1),")"):"threePointsPercentage"===s?"".concat((0,n.M)(f.threePointsPercentage),"% (").concat((0,n.M)(f.threePointsMade/f.appearances,1),")"):"points"===s?(0,n.M)(f.points/f.appearances,1):"rebounds"===s?(0,n.M)(f.rebounds/f.appearances,1):"assists"===s?(0,n.M)(f.assists/f.appearances,1):"defensiveRebounds"===s?(0,n.M)(f.defensiveRebounds/f.appearances,1):"offensiveRebounds"===s?(0,n.M)(f.offensiveRebounds/f.appearances,1):"steals"===s?(0,n.M)(f.steals/f.appearances,1):"turnovers"===s?(0,n.M)(f.turnovers/f.appearances,1):"blocks"===s?(0,n.M)(f.blocks/f.appearances,1):"assistTurnoverRatio"===s?(0,n.M)(f.assistTurnoverRatio,2):"plusMinus"===s?(0,n.M)(f.plusMinus/f.appearances,1):"pir"===s?(0,n.M)(f.pir/f.appearances,1):f[s];case r.QCR.IceHockey:return"shotPercentage"===(d=g)?c(f.shotPercentage):"faceOffPercentage"===d?c(f.faceOffPercentage):"timeOnIce"===d?(0,i.OV)(f.timeOnIce/f.appearances):"penaltyMinutes"===d?(0,n.M)(f.penaltyMinutes/f.appearances,1):"savePercentage"===d?c(f.savePercentage):"goalsAgainstAverage"===d?(0,n.M)(f.goalsAgainstAverage,2):"shortHandedSavePercentage"===d?c(f.shortHandedSavePercentage):"powerPlaySavePercentage"===d?c(f.powerPlaySavePercentage):"evenSavePercentage"===d?c(f.evenSavePercentage):f[d];case r.QCR.AmericanFootball:return"passingCompletionPercentage"===(u=g)?"".concat((0,n.M)(f.passingCompletionPercentage),"% (").concat((0,n.M)(f.passingCompletions/f.appearances,1),")"):"kickingFgMade"===u?"".concat(f.kickingFgMade," / ").concat(f.kickingFgAttempts):"defensiveTotalTackles"===u?(0,n.M)(f.defensiveTotalTackles/f.appearances,1):"defensiveSacks"===u?(0,n.M)(f.defensiveSacks,1):"passingTouchdownInterceptionRatio"===u?(0,n.M)(f.passingTouchdownInterceptionRatio,2):"rushingYardsPerAttempt"===u?(0,n.M)(f.rushingYardsPerAttempt,1):"receivingYardsPerReception"===u?(0,n.M)(f.receivingYardsPerReception,1):f[u];case r.QCR.Handball:return"goalkeeperEfficiencyPercentage"===(p=g)?"".concat((0,n.M)(f.goalkeeperEfficiencyPercentage,2),"%"):"goals7m"===p?"".concat(f.goals7m," / ").concat(f.shots7m," (").concat((0,n.M)(f.goals7m/f.shots7m*100),"%)"):"gk7mSaves"===p?"".concat(f.gk7mSaves," / ").concat(f.gk7mShots," (").concat((0,n.M)(f.gk7mSaves/f.gk7mShots*100),"%)"):f[p];default:return f[g]}}},72696:(e,t,s)=>{s.d(t,{M:()=>n});var a=s(21377),l=s(4967),r=s(59e3),i=s(11996);let n=e=>{let t=t=>e.status.type===a.XUj.NotStarted&&e.season&&e.tournament.uniqueTournament&&e.seasonStatisticsType&&r.u.includes(e.tournament.category.sport.slug)?a.cWY.topPlayers(t,e.tournament.uniqueTournament.id,e.season.id,e.seasonStatisticsType):void 0,s=t(e.homeTeam.id),n=t(e.awayTeam.id),{hasHome:o,hasAway:c}=(0,i.A)({hasHome:{route:t(e.homeTeam.id),skipCheck:!s,deduplicationInterval:15*l.pY},hasAway:{route:t(e.awayTeam.id),skipCheck:!n,deduplicationInterval:15*l.pY}},[s,n]);return{hasPregameTopPlayers:!!o&&!!c,couldHavePregameTopPlayers:!1!==o&&!1!==c&&!!s&&!!n}}},73183:(e,t,s)=>{s.d(t,{A:()=>n,I:()=>i});var a=s(55729),l=s(96861),r=s(70047);let i=(e,t)=>{let s=t.short||e.stat.short;return s&&t.short===e.stat.short||!s&&e.stat.value===t.value?{stat:e.stat,dir:e.dir===l.U.DESC?l.U.ASC:l.U.DESC}:{stat:t,dir:l.U.DESC}},n=(e,t,s)=>{let[n,o]=(0,a.useState)({stat:t,dir:l.U.DESC}),c=(0,r.C)(e,n,t,s),d=(0,a.useCallback)(e=>{o(t=>i(t,e))},[]);return{sortConfig:n,setSortConfig:o,sortedPlayers:c,updateSortStatistic:d}}},73259:(e,t,s)=>{s.d(t,{EN:()=>o,Oi:()=>n,aS:()=>l,sI:()=>i,v1:()=>r});var a=s(21377);let l="goalkeeperGroup",r="goalkeepersGroup",i="G",n={[a.QCR.Football]:{summaryGroup:"rating",attackGroup:"rating",defenceGroup:"rating",passingGroup:"rating",duelsGroup:"rating",goalkeeperGroup:"rating"},[a.QCR.Basketball]:{summaryGroup:"points",pointsGroup:"points",reboundsGroup:"rebounds",otherGroup:"assists"},[a.QCR.Handball]:{playersGroup:"goals",goalkeepersGroup:"goalkeeperEfficiencyPercentage"},[a.QCR.IceHockey]:{summaryGroup:"goals",attackingGroup:"goals",defensiveGroup:"blocked",goalkeeperGroup:"goalkeeperEfficiencyPercentage",otherGroup:"plusMinus"},[a.QCR.AmericanFootball]:{passingGroup:"passingYards",rushingGroup:"rushingAttempts",receivingGroup:"receivingReceptions",defensiveGroup:"defensiveCombineTackles",interceptionsGroup:"defensiveInterceptions",fumblesGroup:"fumbleFumbles",kickingGroup:"kickingTotalPoints",puntingGroup:"puntingTotal",kickReturnsGroup:"kickReturnsTotal",puntReturnsGroup:"puntReturnsTotal"},[a.QCR.Volleyball]:{pointsGroup:"pointsTotal",servesGroup:"serves",receptionGroup:"receptionTotal",attackGroup:"attacksTotal"}},o={[a.QCR.Football]:["G","D","M","F"],[a.QCR.Basketball]:["G","GF","FG","F","FC","CF","C"],[a.QCR.IceHockey]:["F","C","L","R","M","D","G"],[a.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"],[a.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"]}},75853:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6029),l=s(21377),r=s(46222);function i(){return(0,a.jsxs)(r.Zp,{children:[(0,a.jsx)(r.Zp.Header,{titleId:"top_players",values:{gender:l.YT8.Male}}),(0,a.jsx)("div",{style:{height:780}})]})}},83094:(e,t,s)=>{s.d(t,{A:()=>S});var a=s(6029),l=s(21377),r=s(28349),i=s(99064),n=s(55729),o=s(46222),c=s(18970),d=s(18974),u=s(54548),p=s(92667),f=s(99913),h=s(33904),g=s(84823);function m(){return(0,a.jsx)(i.az,{h:900})}var y=s(76356);function x(e){let{team:t,event:s,lineups:l}=e,r=l.players.filter(e=>!e.substitute);return 0===r.length?null:(0,a.jsx)(y.so,{direction:"column",py:"sm",gap:"sm",children:(0,a.jsx)(g.A,{players:r,team:t,event:s,hideTeamHeader:!0,highlightStarters:!1})})}function j(e){let{team:t,event:s,lineups:l}=e,r=l.players.filter(e=>e.substitute);return 0===r.length?null:(0,a.jsx)(y.so,{direction:"column",py:"sm",gap:"sm",children:(0,a.jsx)(g.A,{players:r,team:t,event:s,hideTeamHeader:!0})})}function v(e){let{manager:t,lineups:s}=e;return t||s.supportStaff&&s.supportStaff.length>0?(0,a.jsx)(y.so,{direction:"column",py:"sm",gap:"sm",children:(0,a.jsx)(h.A,{manager:t,supportStaff:s.supportStaff||[]})}):null}function b(e){var t;let{lineups:s}=e;return(null==s||null==(t=s.missingPlayers)?void 0:t.length)?(0,a.jsx)(y.so,{direction:"column",py:"sm",gap:"sm",children:(0,a.jsx)(f.cW,{missingPlayers:s.missingPlayers})}):null}function _(){let{event:e,leftTeam:t,rightTeam:s}=(0,n.useContext)(c.y$),{managers:l}=(0,u.K)(e),{lineups:r}=(0,p.Ir)({jerseyStyle:"fancy"});if(!r)return null;let d=r.left.players.filter(e=>!e.substitute),f=r.right.players.filter(e=>!e.substitute),h=d.length>0||f.length>0,g=r.left.players.filter(e=>e.substitute),m=r.right.players.filter(e=>e.substitute),_=g.length>0||m.length>0,S=!!(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,a.jsxs)(o.Zp,{variant:"mobile-only",children:[h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"team_playing_eleven"}),(0,a.jsxs)(y.so,{children:[(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(x,{team:t,event:e,lineups:r.left})}),(0,a.jsx)(i.cG,{vertical:!0,mx:"md"}),(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(x,{team:s,event:e,lineups:r.right})})]})]}),_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"rest_of_squad"}),(0,a.jsxs)(y.so,{children:[(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(j,{team:t,event:e,lineups:r.left})}),(0,a.jsx)(i.cG,{vertical:!0,mx:"md"}),(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(j,{team:s,event:e,lineups:r.right})})]})]}),S&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"support_staff"}),(0,a.jsxs)(y.so,{children:[(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(v,{manager:null==l?void 0:l.leftManager,lineups:r.left})}),(0,a.jsx)(i.cG,{vertical:!0,mx:"md"}),(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(v,{manager:null==l?void 0:l.rightManager,lineups:r.right})})]})]}),k&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,a.jsxs)(y.so,{children:[(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(b,{lineups:r.left})}),(0,a.jsx)(i.cG,{vertical:!0,mx:"md"}),(0,a.jsx)(y.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(b,{lineups:r.right})})]})]}),(0,a.jsx)(o.Zp.Footer,{})]})}function S(){var e;let{event:t,leftTeam:s,rightTeam:y,location:x}=(0,n.useContext)(c.y$),{managers:j}=(0,u.K)(t),{lineups:v,error:b}=(0,p.Ir)({jerseyStyle:"fancy"}),[S,k]=(0,n.useState)(l.cxP.Left),{isDesktop:w}=(0,r.$c)(),C=w&&x===c.cb.EventPage;if(b)return null;if(!v)return(0,a.jsx)(m,{});let[M,P,L]=S===l.cxP.Left?[s,null==j?void 0:j.leftManager,v.left]:[y,null==j?void 0:j.rightManager,v.right],H=L.players.filter(e=>!e.substitute),I=L.players.filter(e=>e.substitute),R=!!P||L.supportStaff&&(null==(e=L.supportStaff)?void 0:e.length)>0;return C?(0,a.jsx)(_,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.az,{bg:"surface.s1",w:"100%",position:"sticky",top:[50,0],zIndex:i.Py.Sticky,p:"sm",children:(0,a.jsx)(d.n,{activeTeam:S,onTeamClick:e=>k(e)})}),(0,a.jsxs)(i.so,{direction:"column",p:"sm",gap:"sm",children:[!!H.length&&(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"team_playing_eleven"}),(0,a.jsx)(g.A,{players:H,team:M,event:t,hideTeamHeader:!0,highlightStarters:!1})]}),!!I.length&&(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"rest_of_squad"}),(0,a.jsx)(g.A,{players:I,team:M,event:t,hideTeamHeader:!0})]}),R&&(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.Zp.Header,{titleId:"support_staff"}),(0,a.jsx)(h.A,{manager:P,supportStaff:L.supportStaff||[]})]}),!!(v.left.missingPlayers||v.right.missingPlayers)&&(0,a.jsx)(f.Sb,{missingPlayers:L.missingPlayers})]})]})}},84449:(e,t,s)=>{s.d(t,{A:()=>h});var a=s(6029),l=s(21377),r=s(28349),i=s(21501),n=s(99064),o=s(55729),c=s(46222),d=s(18970),u=s(74664),p=s(75853),f=s(72696);function h(){let e=(0,u.o)(),{event:t,location:s,initialHasLineups:h}=(0,o.useContext)(d.y$),{couldHavePregameTopPlayers:g}=(0,f.M)(t),{isDesktop:m}=(0,r.$c)(),y=m&&s===d.cb.EventPage,x=(0,i.hX)();return e!==l.QCR.Football&&g?(0,a.jsx)(p.A,{}):x&&!h?null:y?(0,a.jsx)(c.Zp,{children:(0,a.jsxs)(n.az,{display:["none","block"],children:[(0,a.jsx)(n.az,{h:46}),(0,a.jsx)(n.az,{h:48}),(0,a.jsxs)(n.so,{pb:"sm",px:"sm",gap:"sm",children:[(0,a.jsx)(n.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"}),(0,a.jsx)(n.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"})]}),(0,a.jsx)(n.az,{h:432,bg:"surface.s2",mx:"sm"}),(0,a.jsx)(n.az,{h:56,m:"sm",bg:"surface.s2",br:"lg"}),(0,a.jsx)(n.az,{h:240})]})}):(0,a.jsx)(n.az,{display:["block","none"],h:946})}},84823:(e,t,s)=>{s.d(t,{A:()=>P});var a=s(6029),l=s(33144),r=s(21377),i=s(99064),n=s(55729),o=s(66331),c=s(96861),d=s(64006),u=s(88505),p=s(99902),f=s(25766),h=s(91407),g=s(48485),m=s(19991),y=s(90248),x=s(18970),j=s(52466),v=s(57719),b=s(80055),_=s(33079),S=s(94536),k=s(48827),w=s(39836);let C=e=>{let{summary:t,type:s}=e;return(0,a.jsxs)(i.so,{align:"center",mt:"xs",children:[(0,a.jsx)(_.FU,{isInjury:t.isInjury}),(0,a.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:t.time&&"".concat(t.time,"'")}),t.forPlayer&&(0,a.jsxs)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",children:[(0,a.jsx)(y.A,{id:"out"===s?"substitution.in":"substitution_out"}),": \xa0",t.forPlayer]})]})};function M(e){var t,s,l,o,c;let{player:u,onClick:p,incidents:M,hasRating:P,isLast:L,isNotStarted:H,highlightStarter:I=!0,isPlayerOfTheMatch:R}=e,A=(null==u||null==(t=u.statistics)?void 0:t.rating)?Number(u.statistics.rating):void 0,{playerCharacteristicChip:O}=(0,n.useContext)(k.h),G=O===f.k.Performance,{name:V,id:T}=u.player,z=(0,n.useMemo)(()=>M?(0,g.h)({id:u.player.id,incidents:M,useShortName:u.substitute}):{},[u,M]),B=(0,b.z)(u.player),E=(0,S.sP)(B,u.captain,!0),F=(0,n.useContext)(x.Ws),N=F===r.QCR.Cricket,Z="rtl"===document.dir,D=!u.substitute&&I;return!A&&H&&u.avgRating&&(A=u.avgRating),(0,a.jsx)(d.uc,{player:u.player,onClick:p,sportSlug:F,children:(0,a.jsxs)(i.so,{hoverBg:u.player.disabled?void 0:"surface.s2",cursor:u.player.disabled?"not-allowed":"pointer",children:[(0,a.jsx)(i.az,{py:"xxs",children:(0,a.jsx)(i.az,{w:4,h:"100%",bg:D?"sofaSingles.value":"transparent"})}),(0,a.jsxs)(i.az,{position:"relative",pl:"md",pr:"lg",py:"sm",children:[(0,a.jsx)(h.t,{size:40,id:T,name:V}),R&&(0,a.jsx)(j.ue7,{position:"absolute",fill:(0,m.Et)(null==(s=u.statistics)?void 0:s.rating),bottom:8,left:16,w:16,h:16}),D&&(0,a.jsx)(i.az,{position:"absolute",bottom:4,left:"50%",style:{transform:Z?"translateX(50%)":"translateX(-50%)"},bg:"sofaSingles.value",br:6,children:(0,a.jsx)(i.EY,{px:"6px",font:"assistive.micro",color:"surface.s1",as:"div",children:(0,a.jsx)(y.A,{id:"starter"})})})]}),(0,a.jsxs)(i.so,{borderBottom:L?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:[(0,a.jsxs)(i.so,{direction:"column",minW:0,flex:"1",children:[(0,a.jsxs)(i.so,{title:E,align:"center",children:[(0,a.jsxs)(i.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:[u.jerseyNumber&&(0,a.jsx)(i.az,{as:"bdi",mr:"xs",children:u.jerseyNumber}),(0,a.jsx)(i.az,{as:"span",children:E})]}),G&&(0,a.jsx)(_.AG,{...z}),G&&(0,a.jsx)(_.X0,{...z})]}),(null==(l=z.substitutionIn)?void 0:l.time)&&(null==(o=z.substitutionIn)?void 0:o.forPlayer)&&(0,a.jsx)(C,{summary:z.substitutionIn,type:"in"}),(null==(c=z.substitutionOut)?void 0:c.time)&&(0,a.jsx)(C,{summary:z.substitutionOut,type:"out"}),N&&u.position&&(0,a.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:(0,a.jsx)(v.F,{id:u.position})})]}),(0,a.jsx)(i.so,{align:"center",children:(0,a.jsx)(w.M,{player:u,hasRating:P,rating:A})})]})]})})}function P(e){let{players:t,team:s,event:f,manager:h,incidents:g,showLastMatches:m,hasTopBorder:y,hideTeamHeader:x,highlightStarters:j=!0,hasRating:v,playerOfTheMatchId:b}=e,_=f.tournament.category.sport.slug,{openEventPlayerStatistics:S}=(0,o.d)(),k=(0,n.useCallback)(e=>t=>{!e.disabled&&(m||f.hasEventPlayerStatistics)&&(t.preventDefault(),S({event:f,player:e},c._.Lineups))},[f,t,S]),w=t.length>0,C=!!h,P=_===r.QCR.Football;return w||C?(0,a.jsxs)(i.az,{pt:"sm",pb:["sm","md"],flex:"1 1 50%",borderTop:y?"onSurface.nLv4":void 0,children:[!x&&!P&&(0,a.jsx)(d.gT,{team:s,sport:_,children:(0,a.jsxs)(i.so,{align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,a.jsx)(i.az,{px:"lg",py:"sm",children:(0,a.jsx)(l.p,{id:s.id,name:s.name,size:40})}),(0,a.jsx)(i.az,{children:(0,a.jsx)(i.EY,{font:"display.large",children:(0,a.jsx)(u.Rm,{team:s})})})]})}),C&&!P&&(0,a.jsx)(p.A,{manager:h,isBorderHidden:!w,incidents:null==g?void 0:g.filter(e=>e.manager)}),t.map((e,s)=>(0,a.jsx)(M,{player:e,incidents:g,hasRating:v,onClick:k(e.player),isNotStarted:f.status.type===r.XUj.NotStarted,isLast:s===t.length-1,highlightStarter:j,isPlayerOfTheMatch:b===e.player.id},e.player.id))]}):null}},86876:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(6029),l=s(39895);function r(e){return(0,a.jsx)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:(0,a.jsx)("path",{d:"M4.75 5.44043H5.5V1.91992H6.25V7L7 5.5L7.75 6L6.5 9L5.5 10V15H1.75V10L1 8.06543V2.32715H1.75V5.44043H2.5V1.5L3.25 1.47754V5.44043H4V1H4.75V5.44043ZM12 5.44043H12.75V1.47754L13.5 1.5V5.44043H14.25V2.32715H15V8.06543L14.25 10V15H10.5V10L9.5 9L8.25 6L9 5.5L9.75 7V1.91992H10.5V5.44043H11.25V1H12V5.44043Z",fill:e.fill})}))}},86931:(e,t,s)=>{s.d(t,{f:()=>k,Y:()=>i});var a=s(21377),l=s(45860),r=s(63561);function i(e){let t=e.tournament.category.sport.slug!==a.QCR.Football||e.status.type!==a.XUj.Finished,{data:s,isLoading:i}=(0,l.Ay)(t?null:a.bnp.bestPlayersSummary(e.id),(0,r.rf)(e)),n=null==s?void 0:s.playerOfTheMatch,o=null==s?void 0:s.bestHomeTeamPlayers.find(e=>e.player.id===(null==n?void 0:n.player.id));return{isLoading:!t&&i,bestPlayer:(null==n?void 0:n.label)==="rating"?n:void 0,team:n?o?e.homeTeam:e.awayTeam:void 0}}var n=s(6029),o=s(32190),c=s(28349),d=s(21501),u=s(76356),p=s(55729),f=s(90248),h=s(46222),g=s(18970),m=s(52466),y=s(41910),x=s(32019),j=s(66331),v=s(96861);function b(){return(0,n.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Symbols",children:(0,n.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,n.jsxs)("g",{id:"Pattern-Left",children:[(0,n.jsx)("path",{id:"Path",d:"M56.9883 114H75.9883V133H56.9883V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsxs)("g",{id:"Group",opacity:"0.8",children:[(0,n.jsx)("path",{id:"Path_2",d:"M38 114H57V133H38V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_3",d:"M76 95.0001H95V114H76V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_4",d:"M95 95.0001H114V114H95V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_5",d:"M57 56.9998H76V76H57V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_6",d:"M95 56.9998H114V76H95V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_7",d:"M114 56.9998H133V76H114V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_8",d:"M0 0H19V19H0V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_9",d:"M57 0H76V19H57V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,n.jsxs)("g",{id:"Group_2",opacity:"0.5",children:[(0,n.jsx)("path",{id:"Path_10",d:"M76 114H95V133H76V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_11",d:"M0 95H19V114H0V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_12",d:"M57 95H76V114H57V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_13",d:"M76 75.9999H95V94.9996H76V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_14",d:"M95 75.9999H114V94.9996H95V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_15",d:"M38 56.9998H57V75.9999H38V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_16",d:"M76 56.9998H95V75.9999H76V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_17",d:"M38 37.9998H57V56.9998H38V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_18",d:"M76 37.9998H95V56.9998H76V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_19",d:"M0 18.9999H19V37.9999H0V18.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})}function _(){return(0,n.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Symbols",children:(0,n.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,n.jsx)("g",{id:"Group-9",children:(0,n.jsxs)("g",{id:"Pattern-Right",children:[(0,n.jsx)("path",{id:"Path",d:"M76.0117 114H57.0117V133H76.0117V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsxs)("g",{id:"Group",opacity:"0.5",children:[(0,n.jsx)("path",{id:"Path_2",d:"M57 114H38V133H57V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_3",d:"M133 94.9998H114V114H133V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_4",d:"M76 94.9998H57V114H76V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_5",d:"M57 76.0002H38V94.9998H57V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_6",d:"M38 76.0002H19V94.9998H38V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_7",d:"M95 57.0001H76V75.9997H95V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_8",d:"M57 57.0001H38V75.9997H57V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_9",d:"M95 38H76V57.0001H95V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_10",d:"M57 38H38V57.0001H57V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_11",d:"M133 19H114V37.9999H133V19Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,n.jsxs)("g",{id:"Group_2",opacity:"0.8",children:[(0,n.jsx)("path",{id:"Path_12",d:"M95 114H76V133H95V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_13",d:"M57 94.9998H38V114H57V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_14",d:"M38 94.9998H19V114H38V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_15",d:"M76 57.0001H57V75.9997H76V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_16",d:"M38 57.0001H19V75.9997H38V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_17",d:"M18.9999 57.0001H0V75.9997H18.9999V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_18",d:"M133 0H114V18.9999H133V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_19",d:"M76 0H57V18.9999H76V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})})}let S=e=>{let{bestPlayer:t,team:s}=e;return(0,n.jsxs)(u.so,{p:"lg",align:"center",justify:"space-between",children:[(0,n.jsxs)(u.so,{align:"center",children:[(0,n.jsx)(o.tg,{id:t.player.id,name:t.player.name,h:48,w:48}),(0,n.jsxs)(u.az,{ml:"sm",children:[(0,n.jsx)(c.EY,{textStyle:"display.medium",mb:"xs",display:"block",children:t.player.name}),(0,n.jsxs)(u.so,{align:"center",children:[(0,n.jsx)(o.pY,{id:s.id,name:s.name,h:16,w:16,mr:"xs"}),(0,n.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(f.A,{id:s.slug,defaultMessage:s.name})})]})]})]}),(0,n.jsx)(o.GW,{rating:t.value})]})};function k(e){let{event:t}=e,{isLoading:s,bestPlayer:l,team:r}=i(t),{openEventPlayerStatistics:k}=(0,j.d)(),w=(0,x.Z)(t,"playerOfTheMatch"),C=(0,d.hX)(),{location:M}=(0,p.useContext)(g.y$);return t.tournament.category.sport.slug===a.QCR.Football&&t.status.type===a.XUj.Finished&&(C||s)?(0,n.jsx)(h.Zp,{children:(0,n.jsx)(u.az,{h:"[120px]"})}):s||l?(0,n.jsx)(y.b,{entityId:t.id,branding:w,location:"event_potm",children:(0,n.jsxs)(u.so,{br:M===g.cb.Widget?"sm":"lg",overflow:"hidden",position:"relative",h:"[120px]",justify:"space-between",cursor:"pointer",onClick:()=>l&&k({event:t,player:l.player},v._.PlayerOfTheMatch),children:[(0,n.jsx)(b,{}),(0,n.jsx)(_,{}),(0,n.jsxs)(u.az,{position:"absolute",top:"0",left:"0",w:"100%",children:[(0,n.jsxs)(u.so,{pt:"md",px:"lg",pb:"xs",align:"center",children:[(0,n.jsx)(m.ue7,{mr:"sm",w:24,h:24,fill:(0,o.Et)(null==l?void 0:l.value)}),(0,n.jsx)(c.EY,{textStyle:"display.medium",lineHeight:"24px",children:(0,n.jsx)(f.A,{id:"details.manOfMatch"})})]}),(0,n.jsx)(u.az,{minH:"8xl",children:l&&r&&(0,n.jsx)(S,{bestPlayer:l,team:r})})]})]})}):null}},92667:(e,t,s)=>{s.d(t,{Ir:()=>a.A,ax:()=>c,rR:()=>f});var a=s(40008),l=s(21377),r=s(55729),i=s(45860),n=s(18970);function o(e){let t=e.reduce((e,t)=>t.statistics&&t.statistics.rating?{sum:e.sum+Number(t.statistics.rating),count:e.count+1}:e,{count:0,sum:0});return t.count?t.sum/t.count:void 0}function c(e){let{event:t}=(0,r.useContext)(n.y$),s=o(e.left.players),a=o(e.right.players),c=!!s&&!!a,{data:d}=(0,i.Ay)(c?null:l.bnp.prematchStandings(t.id));return((null==d?void 0:d.homeTeam.avgRating)||(null==d?void 0:d.awayTeam.avgRating))&&(s=null==d?void 0:d.homeTeam.avgRating,a=null==d?void 0:d.awayTeam.avgRating),[s,a]}var d=s(67430),u=s(54548),p=s(56300);function f(){let{event:e,leftTeam:t,rightTeam:s}=(0,r.useContext)(n.y$),{managers:l}=(0,u.K)(e),{lineups:i}=(0,a.A)(),{incidents:o}=(0,d.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==i?void 0:i.left,incidents:o,jersey:null==i?void 0:i.leftJerseyUrls.player,jerseyNumberColor:null==i?void 0:i.left.playerColor,startingPlayers:(null==i?void 0:i.left.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==i?void 0:i.left.players.filter(e=>e.substitute))||[]}:{event:e,team:s,manager:l.rightManager,lineups:null==i?void 0:i.right,incidents:o,jersey:null==i?void 0:i.rightJerseyUrls.player,jerseyNumberColor:null==i?void 0:i.right.playerColor,startingPlayers:(null==i?void 0:i.right.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==i?void 0:i.right.players.filter(e=>e.substitute))||[]}}},92859:(e,t,s)=>{s.d(t,{K:()=>a});var a=function(e){return e.Position="position",e.Rating="rating",e.Notes="notes",e.ExpectedGoals="expectedGoals",e}({})},94536:(e,t,s)=>{s.d(t,{sP:()=>h,ZB:()=>c,lV:()=>u,kr:()=>p,kx:()=>f});var a=s(38709),l=s(4967);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 i(e,t){let s={sum:0,count:0};return e.forEach(e=>{e.forEach(e=>{e.player.dateOfBirthTimestamp&&(s.sum+=(0,l.Dr)(e.player.dateOfBirthTimestamp,t),s.count+=1)})}),s.count>=7?Math.round(10*s.sum/s.count)/10:void 0}function n(e){let t={sum:0,count:0,currency:""};return e.forEach(e=>{e.forEach(e=>{var s;(null==(s=e.player.proposedMarketValueRaw)?void 0:s.value)&&(t.sum+=e.player.proposedMarketValueRaw.value,t.currency=e.player.proposedMarketValueRaw.currency,t.count+=1)})}),t.count>=7?{value:t.sum,currency:t.currency}:void 0}function o(e){let t={sum:0,count:0};return e.forEach(e=>{var s;(null==(s=e.statistics)?void 0:s.kilometersCovered)&&(t.sum+=e.statistics.kilometersCovered,t.count+=1)}),t.count>=7?Math.round(10*t.sum)/10:void 0}function c(e,t,s,l,c){let d={};return d[a.k.Age]={messageId:"football_lineups_starters_average_age",leftTeamValue:i(e,c),rightTeamValue:i(t,c)},d[a.k.MarketValue]={messageId:"football_lineups_starters_total_market_value",leftTeamValue:n(e),rightTeamValue:n(t)},d[a.k.Height]={messageId:"football_lineups_starters_average_height",leftTeamValue:r(e),rightTeamValue:r(t)},d[a.k.Distance]={messageId:"football_total_distance_run",leftTeamValue:o(s),rightTeamValue:o(l)},d}var d=s(25766);function u(e,t){if(t===d.V.Confirmed){var s;return(null==(s=e.statistics)?void 0:s.rating)||e.avgRating}if(t===d.V.Possible)return e.avgRating}function p(e){let t=null==e?void 0:e.left.players.filter(e=>e.substitute),s=null==e?void 0:e.right.players.filter(e=>e.substitute);return!!(t&&t.length>0||s&&s.length>0)}function f(e,t){var s;return t||e.player.name.length>24||(null==(s=e.player.country)?void 0:s.alpha2)==="MG"}function h(e,t,s){let a=Math.max(...e.split(" ").map(e=>e.length));return a>=12&&(e=e.split(" ").map(e=>{let t=e;return e.length!==a||e.includes("-")||(t=e.slice(0,e.length/2)+"\xad"+e.slice(e.length/2)),t}).join(" ")),t?s?"".concat(e," (c)"):"(c) ".concat(e):e}s(12408)},99902:(e,t,s)=>{s.d(t,{A:()=>f});var a=s(6029),l=s(25635),r=s(48485),i=s(99064),n=s(55729),o=s(90248),c=s(46222),d=s(64006),u=s(80055),p=s(33079);function f(e){let{manager:t,incidents:s,isBorderHidden:f}=e,h=(0,u.z)(t),g=(0,n.useMemo)(()=>s?(0,r.h)({id:t.id,incidents:s}):{},[t,s]);return(0,a.jsx)(d.yI,{manager:t,style:{width:"100%"},children:(0,a.jsx)(c.Zp,{children:(0,a.jsxs)(i.so,{children:[(0,a.jsx)(i.az,{px:"lg",py:"sm",children:(0,a.jsx)(l.d,{size:40,id:t.id,name:h})}),(0,a.jsx)(i.so,{borderBottom:f?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:(0,a.jsxs)(i.az,{flex:"1 1 auto",children:[(0,a.jsx)(i.so,{title:h,align:"center",children:(0,a.jsxs)(i.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:[(0,a.jsx)(i.az,{as:"span",mr:"xs",children:h}),g&&(0,a.jsx)(p.AG,{...g})]})}),(0,a.jsx)(i.EY,{font:"assistive.default",color:"primary.default",mr:"xxs",children:(0,a.jsx)(o.A,{id:"manager"})})]})})]})})})}},99913:(e,t,s)=>{s.d(t,{Ck:()=>_,PM:()=>C,RV:()=>b,Sb:()=>w,cW:()=>k});var a=s(6029),l=s(10292),r=s(21377),i=s(28349),n=s(62042),o=s(76356),c=s(55729),d=s(90248),u=s(46222),p=s(18970),f=s(52466),h=s(6813),g=s(64006),m=s(94156),y=s(39836);let x={[r.evQ.Missing]:"error.default",[r.evQ.Doubtful]:"sofaSingles.value"},j=(0,n.Fj)({base:{ml:"2xs",textStyle:"assistive.default"},variants:{type:{missing:{color:"status.error.default"},doubtful:{color:"status.alert.default"}}}}),v=(0,o.I4)(i.EY,j),b=(e,t)=>t===r.s2G.OnLoan?"missingplayer.onloan":e===r.evQ.Missing?-1!==[r.s2G.Suspended,r.s2G.YellowCard,r.s2G.YellowRedCard,r.s2G.RedCard].indexOf(t)?"player_status_suspended":"injury_status_out":"injury_status_doubtful";function _(e){let{missingPlayer:t}=e;return(0,a.jsxs)(o.so,{align:"center",w:"[fit-content]",mt:"xs",children:[(e=>{let t=x[e.type];switch(e.reason){case r.s2G.Injured:case r.s2G.Ill:return(0,a.jsx)(f.NcS,{icon:"cross",fill:t});case r.s2G.Suspended:return(0,a.jsx)(f.NcS,{icon:"suspended",fill:t});case r.s2G.YellowCard:return(0,a.jsx)(f.NcS,{icon:"card",fill:"scoreRating.s65"});case r.s2G.YellowRedCard:return(0,a.jsx)(f.NcS,{icon:"card-double-yellow"});case r.s2G.RedCard:return(0,a.jsx)(f.NcS,{icon:"card",fill:"error.default"});case r.s2G.OnLoan:return(0,a.jsx)(f.NcS,{icon:"on-loan",fill:t});case r.s2G.Other:default:return(0,a.jsx)(f.NcS,{icon:"player",fill:t})}})(t),(0,a.jsx)(v,{type:t.type===r.evQ.Missing?"missing":"doubtful",children:(0,a.jsx)(d.A,{id:b(t.type,t.reason)})})]})}function S(e){let{missingPlayer:t,isLast:s}=e,r=(0,c.useContext)(p.Ws);return(0,a.jsx)(g.uc,{player:t.player,sportSlug:r,children:(0,a.jsxs)(o.so,{_hover:{bg:"surface.s2"},cursor:"pointer",align:"center",px:"lg",children:[(0,a.jsx)(o.az,{pr:"lg",py:"sm",children:(0,a.jsx)(l.t,{size:40,id:t.player.id,name:t.player.name})}),(0,a.jsx)(o.so,{borderBottom:s?void 0:"onSurface.nLv4",align:"center",flexGrow:1,flexShrink:1,mr:"lg",children:(0,a.jsxs)(o.az,{flexGrow:1,flexShrink:1,children:[(0,a.jsx)(i.EY,{display:"block",color:"neutrals.nLv1",mr:"xs",children:(0,a.jsx)(m.c,{entity:t.player})}),(0,a.jsx)(_,{missingPlayer:t})]})}),(0,a.jsx)(y.M,{player:t})]})})}function k(e){let{missingPlayers:t}=e;return(null==t?void 0:t.length)?(0,a.jsx)(a.Fragment,{children:t.map((e,s)=>(0,a.jsx)(S,{missingPlayer:e,isLast:s===t.length-1},e.player.id))}):(0,a.jsx)(h.p,{graphic:"no-data",descriptionMessageId:"no_missing_players"})}function w(e){let{missingPlayers:t}=e;return(null==t?void 0:t.length)?(0,a.jsxs)(u.Zp,{children:[(0,a.jsx)(u.Zp.Header,{titleId:"injuries_and_suspensions",as:"h4"}),(0,a.jsx)(k,{missingPlayers:t}),(0,a.jsx)(u.Zp.Footer,{defaultHeight:"sm"})]}):null}function C(e){let{left:t,right:s}=e,l=t&&t.length>0,r=s&&s.length>0;return l||r?(0,a.jsxs)(u.Zp,{variant:"mobile-only",children:[(0,a.jsx)(u.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,a.jsxs)(o.so,{pt:"sm",pb:"md",children:[(0,a.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(k,{missingPlayers:t})}),(0,a.jsx)(o.az,{w:"[1px]",bg:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,a.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,a.jsx)(k,{missingPlayers:s})})]})]}):null}}}]);