!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]="d08a9eec-ff1d-4fa6-9daa-503a2b1c860c",e._sentryDebugIdIdentifier="sentry-dbid-d08a9eec-ff1d-4fa6-9daa-503a2b1c860c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36678],{16007:(e,t,a)=>{a.d(t,{UA:()=>u,UG:()=>i,UH:()=>l,fH:()=>c,fi:()=>d,rC:()=>s});var r=a(41735),n=a(19991);let i=330,o=(0,r.keyframes)` from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } `,s=(0,r.keyframes)` from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } `,l=(0,r.keyframes)` 0% { clip-path: inset(0 15px 0 0); transform: matrix(1, 0, 0, 0.01, 0, 11.5); } 50% { clip-path: inset(0 15px 0 0); transform: matrix(1, 0, 0, 1, 0, 0); } 100% { clip-path: inset(0 0 0 0); transform: matrix(1, 0, 0, 1, 0, 0); } `,c=(0,r.keyframes)` 0% { clip-path: inset(0 0 0 15px); transform: matrix(1, 0, 0, 0.01, 0, -11.5); } 50% { clip-path: inset(0 0 0 15px); transform: matrix(1, 0, 0, 1, 0, 0); } 100% { clip-path: inset(0 0 0 0); transform: matrix(1, 0, 0, 1, 0, 0); } `,d=(0,r.css)` ${o} ease-in ${i}ms 1 `,u=(0,r.css)` ${e=>((e,t)=>{let a=(0,n.q2)(e);return e&&t&&e>t?(0,r.keyframes)` 0% { background-position: 0 -100%; } 100% { background-position: 0 0; background-image: ${a}; } `:(0,r.keyframes)` 0% { background-position: 0 100%; } 100% { background-position: 0 0; background-image: ${a}; } `})(e.rating,e.previousRating)} ${i}ms ease-in 1 `},19991:(e,t,a)=>{a.d(t,{As:()=>i,MR:()=>o,q2:()=>s});var r=a(93338),n=a(98914);let i=e=>{let t=Number(e),a="colors.rating.s00";return t>=9?a="colors.rating.s90":t>=8?a="colors.rating.s80":t>=7?a="colors.rating.s70":t>=6.5?a="colors.rating.s65":t>=6?a="colors.rating.s60":t>0&&(a="colors.rating.s10"),r.S.var(a)},o=(e,t,a)=>{let o=Number(e);if(!o||isNaN(o))return{formattedRating:"-",ratingColor:r.S.var("colors.rating.s00")};let s=(0,n.M)(o,"sideBox"===t||2===a?2:1);return Number(s)>=10?{formattedRating:"10",ratingColor:r.S.var("colors.rating.s90")}:{formattedRating:s,ratingColor:i(s)}},s=(e,t)=>{if(e&&t)return`linear-gradient(to bottom, ${i(e)} 50%, ${i(t)} 50%)`;let a=i(e);return`linear-gradient(to bottom, ${a}, ${a})`}},36678:(e,t,a)=>{a.d(t,{n6:()=>$,MC:()=>f.MC,gY:()=>S,G:()=>P,ey:()=>R});var r=a(6029),n=a(87827),i=a(46787),o=a(51569),s=a(60235),l=a(62042),c=a(20325),d=a(93338),u=a(55729),m=a(90248),p=a(494),h=a(18970),g=a(52466),f=a(17135),x=a(41164),v=a(67087),b=a(66331),y=a(96861),j=a(36882),w=a(70251),k=a(11219);function $(e){let t=(0,u.useRef)(null),a=(0,p.d4)(t=>t.favorites.events[e.event.id],p.bN),[n,i]=(0,v.jr)(a,"homeTeam","awayTeam",a),[o,c]=(0,v.jr)(a,"homeScore","awayScore",a),d=(0,s.ZC)(null==a?void 0:a.status.type);return((0,u.useEffect)(()=>{e.mutate&&d&&(null==a?void 0:a.status.type)&&d!==a.status.type&&e.mutate()},[e.mutate,d,null==a?void 0:a.status.type]),a)?(0,r.jsx)(h.y$,{value:{event:a,leftTeam:n,rightTeam:i,leftScore:o,rightScore:c},children:(0,r.jsx)(k.tj,{event:a,className:(0,l.cx)("event-hl-".concat(a.id),(0,l.AH)({display:"block",br:"2xs",_hover:{bg:"surface.s2"},_active:{bg:"surface.s0"}})),onClick:t=>{e.onClick&&e.onClick(t,(null==a?void 0:a.id)||-1,e.isMobile)},children:(0,r.jsx)("div",{ref:t,children:(0,r.jsx)(f.n6,{...e,event:a,location:e.location})})})}):null}let C=()=>{let{event:e,leftTeam:t,rightTeam:a}=(0,u.useContext)(h.y$),{location:n}=(0,f.lv)();return void 0===n?null:(0,r.jsx)(w.h,{id:e.id,tournament:e.tournament,leftTeam:t,rightTeam:a,type:j.b.Event,location:n})},S=e=>(0,r.jsx)($,{...e,children:C}),N=e=>{let{referenceId:t,isReferenceTeamId:a}=e,n=(0,v.h2)(t,a),s={background:"colors.neutrals.nLv3",char:"?"};switch(n){case i.h18.Win:s={background:"colors.secondary.default",char:"W"};break;case i.h18.OvertimeLoss:case i.h18.Lose:s={background:"colors.status.error.default",char:"L"};break;case i.h18.Draw:s={background:"colors.neutrals.nLv3",char:"D"}}return(0,r.jsx)(c.az,{w:"xl",h:"xl",br:"50%",mx:"xs",style:{backgroundColor:d.S.var(s.background)},children:(0,r.jsx)(o.EY,{textStyle:"display.small",color:"onColor.primary",lineHeight:"24px",w:"xl",textAlign:"center",display:"block",children:s.char})})},H=e=>{let{event:t,leftTeam:a,rightTeam:n}=(0,u.useContext)(h.y$);return[i.XUj.NotStarted,i.XUj.InProgress].includes(t.status.type)?(0,r.jsx)(w.h,{type:j.b.Event,location:j.y.MatchesSection,id:t.id,tournament:t.tournament,leftTeam:a,rightTeam:n}):(0,r.jsx)(N,{...e})},R=e=>{let{referenceId:t,isReferenceTeamId:a,incidentsMap:n,...i}=e;return e=>(0,r.jsx)($,{incidents:n?n[e.event.id]:void 0,isReferenceTeamId:a,...i,...e,children:()=>(0,r.jsx)(H,{referenceId:t,isReferenceTeamId:a})})},L=e=>{let{value:t}=e;return(0,r.jsx)(c.so,{w:"xl",h:"xl",align:"center",justify:"center",color:"onColor.default",backgroundColor:t>0?"secondary.default":"neutrals.nLv3",children:t})},P=e=>{let{statistics:t,player:a,isOnBench:s,incidents:l,isReferenceTeamId:d,selectedStatistic:p}=e;return e=>(0,r.jsx)($,{incidents:l,entity:i.wNW.Player,...e,isReferenceTeamId:d,children:(0,x.rK)(e.event)?()=>{let{openEventPlayerStatistics:e}=(0,b.d)(),{event:l,leftTeam:d,rightTeam:f}=(0,u.useContext)(h.y$),x=l.status.type,v=l.tournament.category.sport,k=x===i.XUj.NotStarted,$=v.slug===i.QCR.Football||"rating"===p,C=[i.QCR.Basketball,i.QCR.Volleyball].includes(v.slug)&&p&&"rating"!==p,S=!$&&!C;if(s&&v.slug===i.QCR.Football)return(0,r.jsx)(c.az,{w:"xl",h:"xl",children:(0,r.jsx)(g.IKQ,{width:24,height:24,color:"neutrals.nLv3"})});if(k)return(0,r.jsx)(w.h,{id:l.id,type:j.b.Event,location:j.y.MatchesSection,tournament:l.tournament,leftTeam:d,rightTeam:f});if(!l.hasEventPlayerStatistics)return(0,r.jsx)(c.so,{w:"xl",h:"xl",align:"center",justify:"center",children:(0,r.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(m.A,{id:"N/A"})})});let N=S?(0,r.jsx)(g.Abd,{width:24,height:24,color:"onColor.primary"}):(0,r.jsxs)(r.Fragment,{children:[$&&(0,r.jsx)(n.G,{rating:null==t?void 0:t.rating}),C&&(0,r.jsx)(L,{value:(null==t?void 0:t[p])||0})]});return(0,r.jsx)(o.K0,{onClickCapture:t=>{t.preventDefault(),t.stopPropagation(),l.hasEventPlayerStatistics&&a&&e({event:l,player:a},y._l.EventCell)},variant:S?"filled":"clear",colorPalette:S?"secondary":void 0,children:N})}:null})}},47177:(e,t,a)=>{a.d(t,{s:()=>s});var r=a(94565),n=a(41735),i=a(16007),o=a(19991);let s=(0,n.default)(r.az)` width: 16px; height: 16px; position: relative; &.animate { > .sideBox-inner { position: relative; width: 16px; height: 16px; background-size: 100% 200%; background-image: ${e=>(0,o.q2)(e.rating,e.previousRating)}; clip-path: inset(50% 0 50% 0); animation: ${i.rC} ease-in-out ${i.UG}ms 1, ${i.UA}; animation-delay: ${i.UG}ms, 0ms; animation-fill-mode: forwards; transform: translate3d(0, 0, 0); z-index: ${r.Py.Backdrop}; } ::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: calc(100% - 1px); height: 50%; border-top: 1px solid; border-left: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.UH} ease-in-out ${2*i.UG}ms 1; z-index: ${r.Py.Button}; } ::after { content: ''; display: block; position: absolute; bottom: 0; right: 0; width: calc(100% - 1px); height: 50%; border-right: 1px solid; border-bottom: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.fH} ease-in-out ${2*i.UG}ms 1; z-index: ${r.Py.Button}; } } // change width for textual part of rating in a transition + span { transition: width ${i.UG}ms ease-in; transition-delay: ${e=>"10"===e.rating?i.UG:0}ms; } `},83204:(e,t,a)=>{a.d(t,{T:()=>c});var r=a(6029),n=a(94565),i=a(55729),o=a(41735),s=a(52462);let l=(0,o.default)(n.az)` cursor: inherit; > span { display: none; } &.animate { --rating: ${e=>e.rating}; --temp: calc(var(--rating)); --v1: max(var(--temp) - 0.5, 0); --v2: max( (var(--temp) - var(--v1)) * ${e=>2===e.decimalPoints?99:10} - ${e=>2===e.decimalPoints?.05:.5}, 0 ); animation: ${e=>((e,t)=>(0,o.keyframes)` from { --rating: ${t||(e?e-1.5:0)}; } to { --rating: ${e}; } `)(e.rating,e.previousRating)} 660ms ease-in; counter-reset: v1 var(--v1) v2 var(--v2); &::after { content: ${e=>!e.rating||"-"===e.rating||isNaN(+e.rating)?"-":2===e.decimalPoints?"counter(v1) '.' counter(v2, decimal-leading-zero)":"counter(v1) '.' counter(v2)"}; } } &.animation-complete { &::after { content: ${e=>`"${e.rating}"`}; } } `;function c({rating:e,previousRating:t,decimalPoints:a,animate:n}){let{isCountUpSupported:o}=(0,i.useContext)(s.N_),c=(0,i.useRef)(null);return((0,i.useEffect)(()=>{var e;null==(e=c.current)||e.classList.remove("animation-complete"),setTimeout(()=>{requestAnimationFrame(()=>{c.current&&c.current.classList.replace("animate","animation-complete")})},660)},[e,n]),o&&"10"!==e&&"-"!==e)?(0,r.jsx)(l,{ref:c,className:n?"animate":"",rating:e,previousRating:e===t?void 0:t,decimalPoints:a,children:(0,r.jsx)("span",{children:e})}):(0,r.jsx)(r.Fragment,{children:e})}},87827:(e,t,a)=>{a.d(t,{G:()=>r.A});var r=a(94400)},94400:(e,t,a)=>{a.d(t,{A:()=>x});var r=a(64082),n=a(6029),i=a(60235),o=a(94565),s=a(43072),l=a(46787),c=a(55729),d=a(16007);function u({duration:e="330ms",repeatCount:t=1,delay:a=d.UG,width:r=24,height:i=24,animate:s}){let[u,m]=(0,c.useState)(!1);return((0,c.useLayoutEffect)(()=>{let e;return s||(0,l.NuQ)()?e=window.setTimeout(()=>{requestAnimationFrame(()=>{m(!0)})},a):m(!1),()=>{window.clearTimeout(e)}},[s]),u)?(0,n.jsx)(o.az,{position:"absolute",top:"1",left:"1",h:i-2,w:r-2,zIndex:o.Py.Sticky,overflow:"hidden",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32",width:r,height:i,style:{width:"100%",height:"100%",transform:"translate3d(0px, 0px, 0px)",display:"block",overflow:"hidden"},preserveAspectRatio:"xMidYMid meet",children:[(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"white",d:"M -64 0 H -32 L 0 32 H -32 Z",fillOpacity:".6",children:(0,n.jsx)("animate",{attributeName:"d",values:"M -64 0 H -32 L 0 32 H -32 Z;M 32 0 H 36 L 72 32 H 68 Z",dur:e,repeatCount:t,keySplines:"0.86 0.12 0.92 0.79"})}),(0,n.jsx)("animateTransform",{attributeName:"transform",type:"translate",from:"-32 0",to:"32 0",dur:e,repeatCount:t})]}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"white",d:"M -36 0 H -32 L 0 32 H -4 Z",fillOpacity:"1.0",children:(0,n.jsx)("animate",{attributeName:"d",values:"M -36 0 H -32 L 0 32 H -4 Z;M 0 0 H 4 L 36 32 H 32 Z;M 32 0 H 48 L 80 32 H 64 Z",dur:e,repeatCount:t,keySplines:"1 0 1 0.1"})}),(0,n.jsx)("animateTransform",{attributeName:"transform",type:"translate",from:"-128 0",to:"0 0",dur:e,repeatCount:t})]})]})}):null}var m=a(47177),p=a(97824),h=a(83204),g=a(19991);let f={sm:[16,12],md:[24,14],lg:[32,16],xl:[40,24]};function x(e){var{rating:t,format:a,cursor:l="default",isOnColor:c}=e,d=(0,r.T)(e,["rating","format","cursor","isOnColor"]);let{formattedRating:x}=(0,g.MR)(t,a,d.decimalPoints),[v,b]=(0,s.Wx)({triggerOnce:!0}),y=(0,i.ZC)(x);if("sideBox"===a)return(0,n.jsxs)(o.so,{position:"relative",children:[(0,n.jsxs)(m.s,{ref:v,className:b?"animate":"",rating:x,previousRating:y,c:c?"onColor.primary":"onSurface.nLv1",mr:"xs",cursor:l,children:[(0,n.jsx)(o.az,{className:"sideBox-inner"}),"10"===x&&(0,n.jsx)(u,{width:16,height:16,delay:660,animate:b})]}),(0,n.jsx)(o.EY,{role:"meter","aria-valuemin":3,"aria-valuemax":10,"aria-valuenow":x,userSelect:"none",cursor:"inherit",font:"display.large",color:c?"onColor.primary":"onSurface.nLv1",w:"10"===x?24:36,h:"16",lineHeight:"16px",letterSpacing:"-0.5px",fontVariant:"tabular-nums",children:(0,n.jsx)(h.T,{rating:x,previousRating:y,decimalPoints:2,animate:b})})]});let j=d.size||"md",w=d.decimalPoints||1,[k,$]=f[j];return(0,n.jsx)(o.az,{ref:v,children:(0,n.jsxs)(p.v,{cursor:l,className:b?2===w?"animate border":"animate":"",align:"center",justify:"center",h:k,w:2===w&&"10"!==x?k+8:k,textAlign:"center",rating:x,previousRating:y,shrink:0,grow:0,fontSize:$,c:c?"onColor.primary":"onSurface.nLv1",children:["10"===x&&(0,n.jsx)(u,{height:k,width:k,animate:b}),(0,n.jsx)(o.EY,{role:"meter","aria-valuemin":3,"aria-valuemax":10,"aria-valuenow":x,userSelect:"none",cursor:"inherit",align:"center",font:"table.lineupsRating",letterSpacing:"-0.5px",fontSize:$,fontVariant:"tabular-nums",color:"white",lineHeight:1,children:(0,n.jsx)(h.T,{rating:x,previousRating:y,decimalPoints:w,animate:b})})]})})}},97824:(e,t,a)=>{a.d(t,{v:()=>s});var r=a(94565),n=a(41735),i=a(16007),o=a(19991);let s=(0,n.default)(r.so)` position: relative; transform: translate3d(0, 0, 0); opacity: 0; background-size: 100% 200%; background-image: ${e=>(0,o.q2)(e.rating,e.previousRating)}; &.animate { opacity: 1; animation: ${i.fi}, ${i.UA}; } &.border { ::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: 50%; height: 50%; border-top: 1px solid; border-left: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.UH} ease-in-out ${2*i.UG}ms 1; z-index: ${r.Py.Button}; } ::after { content: ''; display: block; position: absolute; bottom: 0; right: 0; width: 50%; height: 50%; border-right: 1px solid; border-bottom: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.fH} ease-in-out ${2*i.UG}ms 1; z-index: ${r.Py.Button}; } } `}}]);