!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]="bde0af27-0bc0-4c0e-a0f1-93cf517afe82",e._sentryDebugIdIdentifier="sentry-dbid-bde0af27-0bc0-4c0e-a0f1-93cf517afe82")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8085],{151:(e,t,n)=>{n.d(t,{g:()=>s});let s=e=>e.branding.config},4696:(e,t,n)=>{n.d(t,{M:()=>s});var s=function(e){return e.All="all",e.Total="total",e.PerGame="perGame",e}({})},10292:(e,t,n)=>{n.d(t,{t:()=>s.t});var s=n(91407)},19643:(e,t,n)=>{n.d(t,{N:()=>l});var s=n(93839);function l(e,t){return"en"===t||t===s.vo[e]}},22037:(e,t,n)=>{n.d(t,{Ay:()=>v,Tf:()=>h});var s=n(6029),l=n(21377),a=n(44194),i=n(76356),r=n(99064),o=n(55729),c=n(90248),d=n(62859),u=n(55297),m=n(7322),g=n(40745),p=n(43750),x=n(62666);let h=[l.QCR.Cricket],f=[l.QCR.Football,l.QCR.IceHockey];function v(e){let{seasons:t,tournaments:n,selectedTournamentId:v,onTournamentSelect:b,selectedSeasonId:y,onSeasonSelect:j,showStatSwitcher:S,statItems:w,selectedStat:_,onSelectedStat:A,activePosition:C,setActivePosition:T,positions:I,types:k,activeType:R,setActiveType:E,showListHeader:z,selectedPlayerFilter:F,setSelectedPlayerFilter:P,playerFilterOptions:M,showPlayerFilter:B,forceSeasonPickerMenusBelow:N,gender:L}=e,D=(0,o.useContext)(d.Ws),H=h.includes(D),Q=!!(null==I?void 0:I.length)&&f.includes(D),W=!!(t&&n&&v&&y&&b&&j),V=!!(B&&void 0!==F&&M&&P);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.so,{direction:"column",gap:"sm",children:[(W||V)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.so,{px:"sm",pt:"sm",gap:"xs",children:[W&&(0,s.jsx)(g.A,{seasons:t,tournaments:n,selectedTournamentId:v,onTournamentSelect:b,selectedSeasonId:y,onSeasonSelect:j,forceMenusBelow:N}),V&&(0,s.jsx)(r.ms,{items:M,renderItem:e=>e?(0,s.jsx)(c.A,{id:e.description}):"",initialSelectedItem:M[F],selectedItem:M.find(e=>e.id===F),onSelectedItemChange:e=>{let{selectedItem:t}=e;return t&&P(t.id)},selectedElement:M[F].name})]}),(0,s.jsx)(i.az,{w:"100%",borderBottom:"1px solid {colors.neutrals.nLv4}",hideFrom:"md"})]}),!!k&&k.length>1&&!!R&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.so,{align:"center",px:"sm",children:(0,s.jsx)(x.A,{types:k,selectedType:R,setSelectedType:E})}),(0,s.jsx)(i.az,{w:"100%",borderBottom:"1px solid {colors.neutrals.nLv4}",hideFrom:"md"})]}),S&&!!w.length&&(0,s.jsxs)(i.so,{align:"center",px:"sm",children:[(0,s.jsx)(r.ms,{items:w,renderItem:e=>(null==e?void 0:e.label)||"",initialSelectedItem:w[0],selectedItem:_,onSelectedItemChange:e=>{e.selectedItem&&(null==A||A(e.selectedItem))}}),(null==_?void 0:_.value)===l.iLq.Rating&&(0,s.jsx)(i.az,{ml:"sm",children:(0,s.jsx)(m.D,{type:m.D.type.AverageRatingPlayer,rating:10})})]}),Q&&(0,s.jsx)(i.az,{hideFrom:"md",px:"sm",pb:"sm",children:(0,s.jsx)(u.B,{activePosition:C,setActivePosition:T,positions:I,gender:L})})]}),z&&H&&(0,s.jsxs)(i.so,{align:"center",justify:"space-between",pt:"sm",pl:"xs",pr:"sm",children:[(0,s.jsx)(a.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv3",mr:"lg",children:"#"}),(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(null==_?void 0:_.value)?(0,s.jsx)(p.Z,{sport:D,selectedStat:_.value}):null==_?void 0:_.label})]})]})}},23685:(e,t,n)=>{n.d(t,{Y:()=>d});var s=n(6029),l=n(21377),a=n(947),i=n(494),r=n(25540),o=n(49254),c=n(10794);let d=e=>{let{utId:t,location:n,bgImageUrl:d,isInverseDesktop:u}=e,m=(0,i.d4)(c.LQ),g=(0,a.A)();return m&&o.p.includes(m)&&t===l.G6l.NBA?(0,s.jsx)(r.Q,{banner:{copy:{action:g.formatMessage({id:"link_visit_nba"}),description:g.formatMessage({id:"banner_nba_league_pass_description"}),sectionTitle:g.formatMessage({id:"banner_nba_league_pass_title"})},type:l.$pL.LogoBanner,background:l.jae.EntityHeader,detailImageUrl:{ltr:"/static/images/nba-league-pass/league-pass-logo.svg",rtl:"/static/images/nba-league-pass/league-pass-logo.svg"},campaignName:"nba_league_pass",url:"https://nba.sjv.io/c/5441787/2176796/16284"},isInverseDesktop:u,bgImageUrl:d,location:n}):null}},23879:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(6029),l=n(94446),a=n(44194),i=n(76356),r=n(70591),o=n(43750),c=n(24159),d=n(54917),u=n(94604),m=n(30971),g=n(22037);function p(e){var t;let{player:n,index:p,selectedStat:x,forceTeamName:h,sport:f}=e,{position:v}=n.player,b=-1!==g.Tf.indexOf(f);return(0,s.jsx)(r.uc,{player:n.player,sportSlug:f,children:(0,s.jsxs)(i.so,{h:"5xl",p:"lg",pl:p?"sm":"lg",align:"center",_hover:{bg:"surface.s2"},children:[p&&(0,s.jsx)(a.EY,{mr:"sm",textStyle:"body.small",textAlign:"center",w:"lg",children:p}),(0,s.jsx)(l.t,{id:n.player.id,name:n.player.name,size:40,mr:"lg"}),(0,s.jsxs)(i.az,{flexGrow:1,children:[(0,s.jsx)(a.EY,{children:(0,s.jsx)(c.c,{entity:n.player,short:b})}),(0,s.jsxs)(i.so,{align:"center",children:[n.team&&(0,s.jsx)(l.p,{size:16,id:n.team.id,name:n.team.name}),(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:n.team?"xs":void 0,children:h&&n.team?(0,s.jsx)(u.Rm,{team:n.team}):v?(0,s.jsx)(d.F,{id:v,gender:null==(t=n.team)?void 0:t.gender}):""})]})]}),(0,s.jsx)(a.EY,{children:b?(0,s.jsx)(o.O,{sport:f,selectedStat:x,stat:n.statistics}):(0,s.jsx)(m.A,{sport:f,selectedStat:x,stat:n.statistics})})]})})}},32427:(e,t,n)=>{n.d(t,{H:()=>i});var s=n(6029),l=n(76356),a=n(65834);let i=e=>{let{rows:t=a.z}=e;return(0,s.jsxs)(l.az,{children:[[...Array(t)].map((e,t)=>(0,s.jsx)(l.az,{h:"5xl"},"player-list-cl-".concat(t))),(0,s.jsx)(l.az,{h:"3xl"})," "]})}},34209:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(21377),l=n(55729),a=n(45860),i=n(38709);let r=function(e,t,n,r){let o=e&&t&&r?s.V3t.seasonTypes(e,t,r):null,{data:c,error:d}=(0,a.Ay)(o),u=(0,i.o)(null==c?void 0:c.types),[m,g]=(0,l.useState)();return(0,l.useEffect)(()=>{!m&&u.length&&g(u[0])},[null==u?void 0:u.length,n]),{types:u,currentType:u.length?m:void 0,setCurrentType:g,isError:!!d||!o,isLoading:!!o&&!c&&!d}}},36326:(e,t,n)=>{n.d(t,{FV:()=>l,L3:()=>s,R3:()=>c,TH:()=>a,b6:()=>r,ie:()=>i,pu:()=>o});let s=void 0,l=-1,a="all";var i=function(e){return e[e.AllClubCompetitions=0]="AllClubCompetitions",e[e.DomesticLeagues=1]="DomesticLeagues",e[e.DomesticCups=2]="DomesticCups",e[e.InternationalCompetitions=3]="InternationalCompetitions",e[e.NationalTeamCompetitions=4]="NationalTeamCompetitions",e}({});let r=[{id:0,name:"football_all_club_competitions"},{id:1,name:"football_domestic_leagues"},{id:2,name:"football_domestic_cups"},{id:3,name:"football_international_competitions"},{id:4,name:"football_national_competitions"}],o=[{id:"overall",name:"total"},{id:"home",name:"home"},{id:"away",name:"away"}],c={id:-1,name:"all_teams"}},38709:(e,t,n)=>{n.d(t,{o:()=>a});var s=n(21377);let l=[s.Vw_.overall,s.Vw_.regularSeason,s.Vw_.playoffs];function a(e){if(!e)return[];let t=e.filter(e=>l.includes(e));return t.length>1||1===t.length&&t[0]!==s.Vw_.overall?t:[]}},40745:(e,t,n)=>{n.d(t,{A:()=>A});var s=n(6029),l=n(59721),a=n(21377),i=n(44194),r=n(76356),o=n(99064),c=n(12364),d=n.n(c),u=n(55729),m=n(90248),g=n(947),p=n(36326),x=n(61836),h=n(52695),f=n(62859),v=n(4696);let b=[v.M.PerGame,v.M.Total],y=e=>{let{maxW:t,children:n}=e;return(0,s.jsx)(i.Ym,{lineHeight:1,truncate:!!t,style:{maxWidth:t},children:n})},j=e=>{switch(e){case 2e3:return"tennisTournaments.p2000";case 1e3:return"tennisTournaments.p1000";case 500:return"tennisTournaments.p500";case 250:return"tennisTournaments.p250";default:return}},S=(e,t,n,a)=>{if(!e)return null;let o=n>=40||!t,c=o&&t?n:void 0;return(0,s.jsxs)(r.so,{justify:"space-between",align:"center",w:"100%",gap:"lg",children:[(0,s.jsxs)(r.so,{align:"center",gap:"lg",children:[(0,s.jsx)(l.e,{id:e.id,size:24},e.id),o&&(0,s.jsx)(y,{maxW:c,children:(0,s.jsx)(h.O,{uniqueTournament:e})})]}),a&&e.ranking&&!t&&(0,s.jsx)(r.az,{w:"4xl",br:"md",style:{backgroundColor:j(e.ranking)},children:(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"onColor.primary",lineHeight:1,textAlign:"center",display:"block",truncate:!0,children:e.ranking})})]})},w=e=>(0,s.jsx)(y,{children:null==e?void 0:e.year}),_=(e,t)=>{let n={[v.M.PerGame]:t?"per_game_stats_short":"per_match",[v.M.Total]:t?"total_stats_short":"total",[v.M.All]:"basic.all"};return(0,s.jsx)(y,{children:(0,s.jsx)(m.A,{id:e?n[e]:" "})})};function A(e){let t=(0,u.useRef)(null),[n,l]=(0,u.useState)(0),{mediaBreakpoint:c}=(0,i.$c)(),m=(0,u.useContext)(f.Ws)===a.QCR.Tennis,h=(0,g.A)(),y=[...new Set(e.tournaments.map(e=>e.year))].map(e=>({id:Number(e),year:e})),j=e.hasSeasonalStats&&m?[{id:p.FV,name:h.formatMessage({id:"tennis_all_tournaments"})},...e.tournaments]:e.tournaments,A=j[0],C=e.selectedTournamentId==p.FV,T=C?y:e.seasons,I=C?y[0]:e.seasons[0],k=T.find(t=>t.id==e.selectedSeasonId),R=n-4-140-88-118*!!e.showSeasonDisplay,E=e.hasDefaultDisplay?v.M.All:v.M.PerGame,z=e.hasDefaultDisplay?[v.M.All,...b]:b,F=d()(()=>{var e,s;let a=null==t||null==(s=t.current)||null==(e=s.getBoundingClientRect())?void 0:e.width;a&&a!==n&&l(a)},100);(0,u.useEffect)(()=>(addEventListener("resize",F),()=>{removeEventListener("resize",F)}),[]),(0,u.useEffect)(()=>{F()},[!!(null==t?void 0:t.current)]);let P=t=>{if(!(t===v.M.All?"all":t===v.M.Total?"total":t===v.M.PerGame?"per_game":void 0)||!e.displayEventParam)return};return(0,s.jsxs)(r.so,{ref:t,gap:"xs",children:[(0,s.jsx)(o.ms,{items:j,renderItem:(t,n)=>S(t,!!n,R,e.showTournamentRanking),initialSelectedItem:A,selectedItem:j.find(t=>t.id===e.selectedTournamentId),onSelectedItemChange:t=>{var n;e.onTournamentSelect(Number(null==(n=t.selectedItem)?void 0:n.id)),m&&(0,x.ke)({action:"click",location:"team_statistics",type:"tournament_filter"})},forceMenuBelow:e.forceMenusBelow}),(0,s.jsx)(o.ms,{items:T,renderItem:w,initialSelectedItem:I,selectedItem:k,onSelectedItemChange:t=>{var n;e.onSeasonSelect(Number(null==(n=t.selectedItem)?void 0:n.id)),m&&(0,x.ke)({action:"click",location:"team_statistics",type:"year_filter"})},forceMenuBelow:e.forceMenusBelow,alignRight:"xxs"===c&&R>=40}),e.showSeasonDisplay&&(0,s.jsx)(o.ms,{items:z,renderItem:(e,t)=>_(e,t),initialSelectedItem:E,selectedItem:e.selectedDisplay,onSelectedItemChange:t=>{var n;P(t.selectedItem),null==(n=e.onDisplaySelect)||n.call(e,t.selectedItem||E)},forceMenuBelow:e.forceMenusBelow,alignRight:!0})]})}},43750:(e,t,n)=>{n.d(t,{O:()=>b,Z:()=>v});var s=n(6029),l=n(21377),a=n(76356),i=n(98516);let r=(0,a.I4)(a.so,{base:{"& > .item + .item":{ml:"xs"},"& > .item":{minWidth:"[28px]",textAlign:"center"},"& > .item.long":{minWidth:"[36px]"},"& > .item.extra-long":{minWidth:"3xl"}}}),o={stat:"matches",label:"M"},c={stat:"battingInnings",label:"I"},d={stat:"runsScored",label:"R"},u={stat:"battingAverage",label:"AVG",class:"item extra-long",decimals:2},m={stat:"bowlingMatches",label:"M"},g={stat:"overs",label:"O",decimals:1,class:"item long"},p={stat:"wickets",label:"W"},x={stat:"bowlingAverage",label:"AVG",class:"item extra-long",decimals:2},h={[l.QCR.Cricket]:{runsScored:[{stat:"battingMatches",label:"M"},c,u,d],highestScore:[{stat:"highestScoreBattingBalls",label:"Balls",class:"item long"},{stat:"highestScoreBattingStrikeRate",label:"SR",class:"item extra-long",decimals:2},{stat:"highestScoreVsTeamName",label:"Vs",class:"item extra-long"},{stat:"highestScore",label:"HS",class:"item extra-long"}],battingAverage:[o,c,d,u],battingStrikeRate:[o,c,d,{stat:"battingStrikeRate",label:"SR",class:"item extra-long",decimals:2}],hundreds:[o,c,d,{stat:"hundreds",label:"100s",class:"item long"}],nineties:[o,c,d,{stat:"nineties",label:"90s"}],fifties:[o,c,d,{stat:"fifties",label:"50s"}],fours:[o,c,d,{stat:"fours",label:"4s"}],sixes:[o,c,d,{stat:"sixes",label:"6s"}],wickets:[m,g,p,x],bowlingAverage:[o,g,p,x],bowling:[{stat:"bowlingBestVsTeamName",label:"Vs",class:"item extra-long"},{stat:"bowling",label:"BBI",class:"item long"}],fiveWicketsHaul:[m,g,p,{stat:"fiveWicketsHaul",label:"5Wkts",class:"item extra-long"}],economy:[o,g,p,{stat:"economy",label:"ER",class:"item long"}],bowlingStrikeRate:[o,g,p,{stat:"bowlingStrikeRate",label:"SR",class:"item long",decimals:2}]}};function f(e){let{config:t,stats:n}=e,l=n[t.stat]||0;return void 0!==t.decimals?(0,s.jsx)(s.Fragment,{children:(0,i.M)(l,t.decimals)}):(0,s.jsx)(s.Fragment,{children:l})}function v(e){let t=h[e.sport][e.selectedStat];return t?(0,s.jsx)(r,{justify:"flex-end",align:"center",children:t.map(e=>(0,s.jsx)("div",{className:e.class||"item",children:e.label},e.stat))}):null}function b(e){let t=h[e.sport][e.selectedStat];return t?(0,s.jsx)(r,{children:t.map(t=>(0,s.jsx)("div",{className:t.class||"item",children:(0,s.jsx)(f,{stats:e.stat,config:t})},t.stat))}):null}},45152:(e,t,n)=>{n.d(t,{S:()=>y});var s=n(6029),l=n(65789),a=n(73045),i=n(99064),r=n(90248),o=n(62859),c=n(54409),d=n(98449),u=n(95247),m=n(65078),g=n(70591),p=n(47530),x=n(10234);let h=e=>{let{event:t,hideTitle:n,hasCta:l=!1,onClick:o}=e;return(0,s.jsxs)(g.tj,{event:t,onClick:o,children:[(0,s.jsxs)(i.az,{br:["sm","lg"],bg:"surface.s2",hoverBg:"onSurface.nLv4",minH:102+32*!n,children:[!n&&(0,s.jsxs)(i.so,{pt:"sm",align:"center",px:"lg",children:[t.tournament.uniqueTournament?(0,s.jsx)(a.e,{id:t.tournament.uniqueTournament.id,size:24}):(0,s.jsx)(a.l,{id:t.tournament.id,size:24}),(0,s.jsxs)(i.EY,{as:"bdi",ml:"sm",block:!0,font:"assistive.default",color:"onSurface.nLv3",children:[(0,s.jsx)(d.m,{slug:t.tournament.category.slug,name:t.tournament.category.name,uniqueTournament:t.tournament.uniqueTournament}),", ",(0,s.jsx)(x.J,{tournament:t.tournament}),t.roundInfo&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(p.DT,{round:t.roundInfo})]})]})]}),(0,s.jsx)(u.g,{disableFollow:!0,hasCountdown:!0,hideIncidents:!0,hideTimeouts:!0})]}),l&&(0,s.jsxs)(i.so,{px:"lg",py:"lg",justify:"center",cursor:"pointer",children:[(0,s.jsx)(i.EY,{color:"primary.default",font:"display.small",children:(0,s.jsx)(r.A,{id:"see_all"})}),(0,s.jsx)(c.CCT,{fill:"primary.default",ml:"xs"})]})]})};function f(e){let{event:t,...n}=e,{event:l,leftTeam:a,rightTeam:i,leftScore:r,rightScore:c}=(0,m.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,s.jsx)(o.y$.Provider,{value:{event:t,leftTeam:a,rightTeam:i,leftScore:r,rightScore:c},children:(0,s.jsx)(h,{event:{...t,...l},...n})}):null}var v=n(76356);let b=e=>(0,s.jsxs)(v.az,{br:"lg",bg:"surface.s2",minH:e.hideTitle?"[134px]":"11xl",children:[(0,s.jsx)(v.az,{h:"[134px]"}),e.showCta&&(0,s.jsx)(v.az,{h:"2xl"})]});function y(e){let{titleId:t="featured",titleValues:n,hideEventTitle:a,showCta:i,ignoreCardLayout:r,isLoading:o,events:c,onEventClick:d,children:u}=e,m=c.filter(e=>!!e);if(!m.length&&!o)return null;let g=(0,s.jsx)(s.Fragment,{children:m.length?m.map(e=>(0,s.jsx)(f,{hideTitle:a,hasCta:i,event:e,onClick:()=>null==d?void 0:d(e)},e.id)):(0,s.jsx)(b,{hideTitle:a,showCta:i})});return r?(0,s.jsxs)(s.Fragment,{children:[g,u]}):(0,s.jsxs)(l.Zp,{children:[(0,s.jsx)(l.Zp.Header,{titleId:t,values:n,as:"h3"}),(0,s.jsxs)(l.BU,{children:[g,u]})]})}},45546:(e,t,n)=>{n.d(t,{UW:()=>a,b0:()=>s,jt:()=>l});let s=e=>{let t=[],n=e.match(/\d{4}/g)||e.match(/\d{2}/g);return null==n||n.forEach(e=>{let n=+e;2===e.length&&(n=70>+e?+"20".concat(e):+"19".concat(e)),t.push(isNaN(n)?0:n)}),t.length?t:[0]},l=(e,t)=>s(t.year)[0]-s(e.year)[0],a=e=>{let t=[];for(let n=0,s=e.tournamentSeasons.length;ne.id===l.id);if(!a){let e=t.push(l);a=t[e-1]}a.seasons=a.seasons||{},a.tournaments=a.tournaments||{},s.seasons.forEach(e=>{(null==a?void 0:a.seasons[e.id])?a.tournaments[e.id]=[...a.tournaments[e.id],s.tournament]:(a.seasons[e.id]=e,a.tournaments[e.id]=[s.tournament])})}return t}},46171:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(21377),l=n(45860);let a=function(e){let{seasonId:t,teamId:n,uTournamentId:a,type:i=s.Vw_.overall,position:r}=e,o=n?s.cWY.topPlayers.bind(null,n,a,t):r?s.V3t.topPlayers.bind(null,a,t,i,r):s.V3t.topPlayers.bind(null,a,t),{data:c,error:d,isLoading:u}=(0,l.Ay)(a&&t?o(i):null);return{topPlayers:(null==c?void 0:c.topPlayers)||{},isLoading:u,isError:d}}},55297:(e,t,n)=>{n.d(t,{B:()=>x});var s=n(6029),l=n(99064),a=n(78383),i=n.n(a),r=n(55729),o=n(90248),c=n(41735),d=n(54917),u=n(27892),m=n(62859);let g=JSON.parse('{"ice-hockey":{"forward":"stats.forwards","defenseman":"hockey_defensemen","goalie":"legend_hockey_goalies"}}'),p=(0,c.default)(l.so).withConfig({componentId:"NoScrollbarFlex"}).withConfig({componentId:"sc-aa34c213-0"})(["&::-webkit-scrollbar{display:none;}&{-ms-overflow-style:none;scrollbar-width:none;}"]);function x(e){let{activePosition:t,setActivePosition:n=i(),positions:a,gender:c}=e,x=(0,r.useContext)(m.Ws);return(0,s.jsxs)(p,{gap:"sm",style:{overflowX:"scroll"},children:[(0,s.jsx)(l.vu,{isActive:!t,onClick:()=>n(void 0),children:(0,s.jsx)(o.A,{id:"allPositions"})}),a.map(e=>{let a=(0,u.O)(g,e,x);return(0,s.jsx)(l.vu,{isActive:t===e,onClick:()=>n(e),children:(0,s.jsx)(d.F,{id:a,gender:c})},e)})]})}},61090:(e,t,n)=>{n.d(t,{m:()=>g});var s=n(6029),l=n(21377),a=n(76356),i=n(494),r=n(26471),o=n(51372),c=n(31112),d=n(77988),u=n(61836),m=n(10794);let g=e=>{let{entity:t,id:n,branding:g,location:p}=e,x=(0,i.d4)(m.LQ),h=(0,r.A)(()=>{p&&(0,u.N9)({id:n,location:p,provider:g.brand.slug,type:"banner"})},{deps:[n,g.brand.slug,p]});return(0,s.jsx)(c.w,{branding:g,type:"banner",entityId:n,location:p,children:(0,s.jsx)(a.so,{justify:"center",children:(0,s.jsxs)(a.az,{ref:h,position:"relative",maxW:"[700px]",flexGrow:1,br:{base:"lg",md:"xl"},overflow:"hidden",children:[(0,s.jsx)(o.O,{branding:g,noLink:!0}),(0,s.jsx)(a.az,{h:"9xl",style:{background:"url(".concat(l.UpI.brandingBanner(g.brand.id,t,n),")"),backgroundSize:"auto 100%",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),g.brand.showBettingAge&&(0,s.jsx)(a.so,{h:"xl",w:"xl",br:"50%",bg:"[rgba(255, 255, 255, 0.1)]",justify:"center",align:"center",position:"absolute",bottom:"sm",right:"sm",children:(0,s.jsxs)(a.az,{textAlign:"center",h:"md",color:"onColor.primary",textStyle:"assistive.micro",children:[(0,d.g)(x),"+"]})})]})})})}},62666:(e,t,n)=>{n.d(t,{A:()=>i});var s=n(6029),l=n(99064),a=n(90248);function i(e){let{types:t,selectedType:n,setSelectedType:i}=e;return(null==t?void 0:t.length)&&n?(0,s.jsx)(l.tU,{variant:"secondary",value:n,onChange:e=>i?i(e):void 0,children:t.map(e=>(0,s.jsx)(l.tU.Tab,{tabKey:e,children:(0,s.jsx)(a.A,{id:e})},e))}):null}},65834:(e,t,n)=>{n.d(t,{A:()=>l,z:()=>s});let s=5,l=[{id:0,name:"50%",description:"at_least_50"},{id:1,name:"All",description:"all_players"}]},73045:(e,t,n)=>{n.d(t,{e:()=>l.e,l:()=>s.l});var s=n(37721),l=n(33480)},78177:(e,t,n)=>{n.d(t,{O:()=>_,s:()=>C});var s=n(6029),l=n(21377),a=n(55729),i=n(62859),r=n(75751),o=n(95816),c=n.n(o),d=n(65789),u=n(23727),m=n(22037),g=n(23879),p=n(32427),x=n(76356);let h=[l.QCR.Basketball,l.QCR.AmericanFootball,l.QCR.IceHockey];function f(e){let{sport:t,gender:n}=e;return(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"top_players",values:{gender:n}}),(0,s.jsx)(x.az,{style:{height:h.includes(t)?84:72},bg:"surface.s2",br:"sm",m:"sm"}),(0,s.jsx)(p.H,{rows:5})]})}var v=n(65834),b=n(52854);function y(e){let{topPlayers:t,isTournament:n,types:r,activePosition:o,setActivePosition:x,activeType:h,setActiveType:y,seasons:j,selectedSeasonId:S,onSeasonSelect:w,tournaments:_,selectedTournamentId:A,onTournamentSelect:C,showPlayerFilter:T=!1,gender:I}=e,k=(0,a.useContext)(i.Ws),[R,E]=(0,a.useState)(!1),[z,F]=(0,a.useState)(v.A[0].id),{statItems:P,selectedStat:M,setSelectedStat:B}=(0,b.k)(Object.keys(t),k),N=1,L=n&&k===l.QCR.Handball;(0,a.useEffect)(()=>{E(!1)},[null==M?void 0:M.value]);let D=Array.from(new Set((t[null==M?void 0:M.value]||[]).map(e=>e.player.position))).reverse(),H=(t&&t[null==M?void 0:M.value]||[]).filter(e=>o?e.player.position===o:!!z||e.playedEnough),Q=c()(H)||!M,W=H.length>v.z,V=P.filter(e=>t[e.value].some(e=>e.playedEnough));return((0,a.useEffect)(()=>{var e;V.length&&Q&&M&&M.label!==(null==(e=V[0])?void 0:e.label)&&B(V[0])},[V.length,M,Q]),Q||!H.length)?(0,s.jsx)(f,{sport:k,gender:I}):(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"top_players",values:{gender:I}}),Q?(0,s.jsx)(p.H,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.Ay,{showStatSwitcher:!0,statItems:V,selectedStat:M,onSelectedStat:B,positions:D,activePosition:o,setActivePosition:x,types:r,activeType:h,setActiveType:y,seasons:j,selectedSeasonId:S,onSeasonSelect:w,tournaments:_,selectedTournamentId:A,onTournamentSelect:C,selectedPlayerFilter:z,setSelectedPlayerFilter:F,playerFilterOptions:v.A,showPlayerFilter:T,gender:I,showListHeader:!0}),H.slice(0,v.z).map(e=>(0,s.jsx)(g.A,{sport:k,player:e,index:N++,selectedStat:M.value,forceTeamName:L},"".concat(M.value,"-").concat(e.player.id))),(0,s.jsx)(s.Fragment,{children:R&&H.slice(v.z).map(e=>(0,s.jsx)(g.A,{player:e,index:N++,sport:k,selectedStat:M.value,forceTeamName:L},"".concat(M.value,"-").concat(e.player.id)))})]}),(0,s.jsx)(d.Zp.Footer,{ctaParams:W?{messageId:R?"show_less":"show_more",onClick:()=>E(e=>!e),icon:R?u.X.Up:u.X.Down}:void 0})]})}var j=n(80249),S=n(46171),w=n(38709);let _=function(e){let{teamId:t,gender:n}=e,o=l.cWY.seasons(t),c=(0,a.useContext)(i.Ws),[d,u]=(0,a.useState)(),[m,g]=(0,a.useState)(),[p,x]=(0,a.useState)(),[h,v]=(0,a.useState)(),[b,_,{seasonsData:A,seasonsLoadError:C,isSeasonLoading:T}]=(0,j.D)({route:o,selectedTournamentId:d,selectedSeasonId:m,setSelectedTournament:u,setSelectedSeason:g}),{topPlayers:I,isError:k}=(0,S.A)({teamId:t,seasonId:m,uTournamentId:d,type:h}),R=Object.keys(I),E="".concat(t,"-").concat(R.toString());if((0,a.useEffect)(()=>{d&&m&&-1!==d&&v(null==A?void 0:A.typesMap[d][m][0])},[d,m,c]),C||k||-1===d)return null;if(!d||!m||T)return(0,s.jsx)(f,{sport:c,gender:n});let z=(0,w.o)(null==A?void 0:A.typesMap[d][m]);return(0,s.jsx)(r.t,{tag:"TeamTopPlayers",children:(0,s.jsx)(y,{topPlayers:I,seasons:_,gender:n,tournaments:b,selectedSeasonId:m,selectedTournamentId:d,onSeasonSelect:g,onTournamentSelect:u,activePosition:p,setActivePosition:x,types:z,activeType:h,setActiveType:v,showPlayerFilter:!0},E)})};var A=n(34209);let C=function(e){let{uTournamentId:t,seasonId:n,gender:l}=e,o=(0,a.useContext)(i.Ws),[c,d]=(0,a.useState)(),{types:u,currentType:m,setCurrentType:g,isError:p,isLoading:x}=(0,A.A)(t,n,o,"player"),{topPlayers:h,isError:f}=(0,S.A)(x?{}:{uTournamentId:t,seasonId:n,type:m,position:c}),v=Object.keys(h),b="".concat(t,"-").concat(v.toString()),j=(0,a.useCallback)(e=>{d(null!=e?e:"all")},[]);return f||p?null:(0,s.jsx)(r.t,{tag:"TournamentTopPlayers",children:(0,s.jsx)(y,{topPlayers:h,types:u,activeType:m,setActiveType:g,activePosition:c,setActivePosition:j,gender:l},b)})}},80249:(e,t,n)=>{n.d(t,{D:()=>r});var s=n(21377),l=n(55729),a=n(45860),i=n(62859);function r(e){let{route:t,selectedTournamentId:n,selectedSeasonId:r,setSelectedTournament:o,setSelectedSeason:c}=e,{data:d,error:u,isLoading:m}=(0,a.Ay)(t),g=(0,l.useContext)(i.Ws)===s.QCR.Tennis;return(0,l.useMemo)(()=>{if(!d)return[null,null,{seasonsData:d,seasonsLoadError:u}];let e=d.uniqueTournamentSeasons,t=e.map(e=>({id:e.uniqueTournament.id,name:e.uniqueTournament.name,ranking:e.uniqueTournament.tennisPoints,year:e.seasons[0].year})),s=t&&[...new Set(t.map(e=>e.year))].map(e=>({id:Number(e),year:e}));n||o(s&&g?-1:e[0].uniqueTournament.id),r||c(s&&g?s[0].id:e[0].seasons[0].id);let l=0;if(d){let t=e.find(e=>e.uniqueTournament.id===n);if(t){let n=e.indexOf(t);n>-1&&c(e[l=n].seasons[0].id)}}return[t,e[l].seasons,{seasonsData:d,seasonsLoadError:u,isSeasonLoading:m}]},[d,n,u])}},82554:(e,t,n)=>{n.d(t,{w:()=>a});var s=n(21377);let l=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Cricket,s.QCR.Football,s.QCR.Handball,s.QCR.IceHockey,s.QCR.Minifootball];function a(e,t){return(!t||e!==s.QCR.AmericanFootball)&&l.includes(e)}n(73959)},86454:(e,t,n)=>{n.d(t,{K:()=>y});var s=n(6029),l=n(44194),a=n(76356),i=n(9127),r=n(90112),o=n(12364),c=n.n(o),d=n(55729),u=n(90248),m=n(494),g=n(83201),p=n(54409),x=n(8973),h=n(83260),f=n(12759),v=n(46009);let b=(0,i.m)(a.az);function y(e){let{id:t,name:n,entity:i,children:o,threshold:y=144,type:j}=e,[S,w]=(0,d.useState)(0),[_,A]=(0,h.A)("sticky_follow_header_closed_".concat(i),!1),C=(0,f.Pz)(i),T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,s]=(0,d.useState)(e);return(0,d.useEffect)(()=>{let n=setTimeout(()=>{s(e)},t);return()=>clearTimeout(n)},[e]),n}((0,m.d4)(e=>e.favorites.lists[C[0]].includes(t)||2===C.length&&e.favorites.lists[C[1]].includes(t)));return(0,d.useEffect)(()=>{if(_)return;let e=c()(()=>{window.requestAnimationFrame(()=>{w(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[S,_]),(0,s.jsx)(r.N,{children:S>y&&!T&&(0,s.jsx)(b,{position:"fixed",left:"0",right:"0",mt:"0 !important",h:"[168px]",bg:"surface.sp",textAlign:"center",initial:{top:-160,opacity:0},animate:{top:0,opacity:1},exit:{top:-160,opacity:0},transition:{type:"spring",bounce:.3,restDelta:.5},zIndex:"subheader",elevation:"3",children:(0,s.jsx)(a.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,s.jsx)(g.m,{h:"5xl",py:"sm",children:(0,s.jsxs)(a.so,{h:"[40px]",children:[(0,s.jsx)(a.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,s.jsxs)(a.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[o,(0,s.jsx)(v.e,{id:t,entity:i,type:j,location:x.y.FloatingHeader})]})}),(0,s.jsx)(a.so,{align:"center",flex:"[1 1 50%]",children:(0,s.jsx)(l.EY,{textStyle:"assistive.default",ml:"lg",children:(0,s.jsx)(u.A,{id:"add_to_favorites_text",values:{name:n}})})}),(0,s.jsx)(a.so,{align:"center",children:(0,s.jsx)(l.$n,{variant:"clear",p:"0",onClick:()=>{A(!0),w(0)},children:(0,s.jsx)(p.zQC,{icon:"close"})})})]})})})})})}},91407:(e,t,n)=>{n.d(t,{t:()=>r});var s=n(64082),l=n(6029),a=n(21377),i=n(99064);let r=e=>{var{id:t,name:n,size:r=56,style:o,className:c,grayscale:d,isFantasy:u,placeholder:m="/static/images/placeholders/player.svg"}=e,g=(0,s.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let p=g.w||g.width||r,x=g.h||g.height||r;return(0,l.jsx)(i._V,Object.assign({fallback:(0,l.jsx)(i._V,{style:{borderRadius:"50%"},w:p,h:x,src:m,alt:n}),src:t?a.qvj.image(t,u):"",alt:n,w:p,h:x,br:"50%",border:"onSurface.nLv4",style:o,className:c,isGrayscale:d},g))}}}]);