1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a8b4b16-56b8-48a0-b08a-58f7382f280f",e._sentryDebugIdIdentifier="sentry-dbid-0a8b4b16-56b8-48a0-b08a-58f7382f280f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8136],{9105:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(37876),r=n(14232);function a(e){let{className:t}=e;return(0,l.jsx)("svg",{viewBox:"0 0 17 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":!0,children:(0,l.jsx)("rect",{width:"7.07681",height:"9.80336",rx:"1.4",transform:"matrix(0.985138 0.171763 -0.175552 0.98447 5.37402 1.56458)",fill:"#FD110B"})})}let s=e=>{var t;let{count:n,icon:s,className:i,textClassName:o}=e,c=null!=(t=null==s?void 0:s.trim())?t:"",[x,d]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{d(!1)},[c]),n)?(0,l.jsxs)("div",{className:"relative flex size-4 tablet:size-6 w2k:size-8 w4k:size-12 shrink-0 items-center justify-center ".concat(null!=i?i:""),children:[(0,l.jsx)(a,{className:"h-full w-full"}),c?(0,l.jsx)("img",{src:c,alt:"",className:"absolute inset-0 h-full w-full object-contain transition-opacity duration-150 ".concat(x?"opacity-100":"opacity-0"),onLoad:()=>d(!0),onError:()=>d(!1)}):null,n>1?(0,l.jsxs)("span",{className:"".concat(null!=o?o:""," absolute top-1/2 -translate-y-1/2 right-0 sm:right-px w2k:right-0.5 w4k:right-1 font-semibold text-[9px] tablet:text-[11px] w2k:text-[15px] w4k:text-[22px] leading-[1.3] tracking-[0.02em] text-white-smoke"),children:["x",n]}):null]}):null}},9441:(e,t,n)=>{n.d(t,{V:()=>o});var l=n(14232),r=n(8023),a=n(63385),s=n(60184),i=n(84215);function o(e,t){let n=(0,s.jL)();(0,l.useEffect)(()=>{n((0,i.j9)({collection:e,documentId:t}))},[e,t,n]),(0,l.useEffect)(()=>{if(!e||!t)return;let l=(0,r.NS)(e,t,e=>{let t=(0,a.my)(e);if(!t)return void n((0,i.Qc)());let l=(0,a.Xb)(t.live);n((0,i.Uv)(Object.fromEntries(l)))},()=>{console.warn("[useMatchRecentFirebase] ".concat(e,"/").concat(t," listen failed"))});return()=>{null==l||l(),n((0,i.Qc)())}},[e,t,n])}},20990:(e,t,n)=>{n.d(t,{se:()=>r});var l=n(37876);function r(e){let{variant:t}=e;return"desktop"===t?(0,l.jsxs)("nav",{"aria-hidden":!0,className:"w-[80px] min-w-[80px] shrink-0 self-stretch min-h-0 flex flex-col animate-pulse",children:[(0,l.jsx)("div",{className:"shrink-0 h-10"}),(0,l.jsx)("div",{className:"flex flex-col gap-1 pt-0",children:Array.from({length:4}).map((e,t)=>(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1.5 px-1 py-3 w-full",children:[(0,l.jsx)("div",{className:"w-6 h-6 rounded bg-white/10 shrink-0"}),(0,l.jsx)("div",{className:"h-3 rounded bg-white/10",style:{width:"".concat(40+t%3*8,"px")}})]},t))})]}):(0,l.jsx)("div",{"aria-hidden":!0,className:"flex items-center gap-1.5 overflow-x-auto overscroll-x-contain scrollbar-hide pb-6 min-[1221px]:pb-0 animate-pulse",children:Array.from({length:5}).map((e,t)=>(0,l.jsx)("div",{className:"shrink-0 h-[32px] min-[1221px]:h-[37px] rounded-full bg-white/10",style:{width:"".concat(72+t%4*20,"px")}},t))})}},25737:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(37876),r=n(38096),a=n(43329),s=n(19836);function i(e){var t;let{dateTrip:n,leadingSlot:i,calendarInline:o=!1}=e,c=(0,a.rn)(n);if(!c.length)return null;let x=(0,s.qP)(c),d=null!=(t=null==x?void 0:x.dateStr)?t:c[0].dateStr;return(0,l.jsxs)("div",{className:"flex items-center gap-2 w-full min-[1221px]:max-w-[728px] w2k:max-w-[971px] w4k:max-w-[1456px] mx-auto min-[1221px]:gap-3 w2k:gap-4 w4k:gap-5",children:[i,(0,l.jsx)("div",{className:"relative grid flex-1 min-w-0 grid-cols-1 grid-rows-1",children:(0,l.jsx)("div",{className:"col-start-1 row-start-1 min-w-0",children:(0,l.jsxs)("div",{className:"relative overflow-hidden livescore-date-strip w2k:[--livescore-fade-width:2.67rem] w4k:[--livescore-fade-width:4rem] w2k:[--livescore-fade-blur:5px] w4k:[--livescore-fade-blur:8px]",children:[(0,l.jsx)("div",{className:"embla__viewport",children:(0,l.jsx)("div",{className:"embla__container",children:c.map(e=>{let t=e.dateStr===d;return(0,l.jsx)("div",{className:"embla__slide",children:(0,l.jsxs)("div",{className:"\n relative flex flex-col items-center justify-center w-full rounded-lg w2k:rounded-[10px] w4k:rounded-xl\n pt-1.5 w2k:pt-2 w4k:pt-3\n select-none\n ".concat(t?"scale-[1.06]":"scale-100","\n "),children:[(0,l.jsx)("span",{className:"text-[12px] sm:text-[14px] w2k:text-[19px] w4k:text-[28px] font-medium leading-[1.5] text-white-smoke",children:e.dayName}),(0,l.jsx)("span",{className:"text-[12px] sm:text-[14px] w2k:text-[19px] w4k:text-[28px] mt-0.5 w2k:mt-1 w4
1k:mt-1.5 leading-[1.5] mb-[6px] w2k:mb-2 w4k:mb-3 text-spanish-gray",children:e.dayMonth}),(0,l.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute bottom-1 w2k:bottom-1.5 w4k:bottom-2 left-1/2 h-0.5 w2k:h-[3px] w4k:h-1 rounded-full bg-[#FF6500] -translate-x-1/2 ".concat(t?"opacity-100 w-10 w2k:w-[53px] w4k:w-20":"opacity-0 w-2 w2k:w-2.5 w4k:w-4")})]})},e.dateStr)})})}),(0,l.jsx)("div",{className:"livescore-date-strip-fade-left","aria-hidden":"true"}),(0,l.jsx)("div",{className:"livescore-date-strip-fade-right","aria-hidden":"true"})]})})}),(0,l.jsx)("div",{className:"relative shrink-0 ".concat(o?"":"min-[1221px]:absolute min-[1221px]:right-[22px] w2k:right-[29px] w4k:right-[44px]"),children:(0,l.jsx)("div",{className:" flex items-center justify-center w-[24px] tablet:w-[48px] w2k:w-16 w4k:w-24 h-[24px] tablet:h-[48px] w2k:h-16 w4k:h-24 rounded-[40px] w2k:rounded-[53px] w4k:rounded-[80px] border border-white-007 bg-white/10 text-spanish-gray ","aria-label":"Má» lá»ch",children:(0,l.jsx)(r.A,{className:"w-[14px] h-[14px] tablet:w-6 tablet:h-6 w2k:w-8 w2k:h-8 w4k:w-12 w4k:h-12"})})})]})}},36419:(e,t,n)=>{n.d(t,{A:()=>V});var l=n(37876),r=n(14232),a=n(5752),s=n(63385),i=n(21712),o=n(85408),c=n(9105),x=n(58166),d=n.n(x),u=n(48230),w=n.n(u);function m(e){return(null==e?void 0:e.trim())||"-"}let p="gap-x-1.5 min-[1221px]:gap-x-2 w2k:gap-x-4 w4k:gap-x-6",h="flex flex-row flex-nowrap items-center min-w-0 max-w-full",f="relative shrink-0 overflow-visible ".concat("max-w-[68px] tablet:max-w-[146px] xl:max-w-[188px] w2k:w-[250px] w2k:max-w-[250px] w4k:w-[376px] w4k:max-w-[376px]"),k="min-w-0 truncate text-sm tablet:text-base w2k:text-[21px] w4k:text-[31.5px] font-medium leading-[130%] tracking-[0.02em] text-[rgb(245,245,244)]",v="inline-flex min-w-0 max-w-full items-center gap-1 w2k:gap-1.5 w4k:gap-2 overflow-hidden",g="text-[8px] sm:text-xs w2k:text-base w4k:text-2xl font-normal leading-[130%] tracking-[0.02em] text-[rgb(149,149,149)]",b="max-w-[68px] tablet:max-w-[188px] w2k:max-w-[250px] w4k:max-w-[376px]",j="absolute top-full z-[1] w-max pt-0.5 min-[1221px]:pt-1 w2k:pt-1.5 w4k:pt-2",N="text-[14px] tablet:text-xl w2k:text-[27px] w4k:text-[39px] font-semibold leading-[130%] tracking-[0.02em] text-center flex-1 min-w-0",y="text-[14px] tablet:text-xl w2k:text-[27px] w4k:text-[39px] font-semibold leading-[130%] tracking-[0.02em] text-center flex-1 min-w-0",C="text-xs w2k:text-base w4k:text-2xl font-normal leading-[130%] tracking-[0.02em] text-[rgb(149,149,149)] text-center line-clamp-1";function T(e){var t,n,x,u,T,E,S,L,M,R,_;let{match:D}=e,A=(0,o.s$)(D.id),z=(0,i.aY)(D,null==A?void 0:A.status),F="live"===z,I="finished"===z,V="upcoming"===z,H=(null==A||null==(t=A.time)?void 0:t.trim())||(null!=D.minute?"".concat(D.minute,"'"):null)||(null==(n=D.clockText)?void 0:n.trim())||null,B=(null==(x=D.time)?void 0:x.trim())||null,Y=A?H:B,O=(0,s.le)(A),q=(0,s.Ub)(A),P=(0,s.PC)(!!A,null==O?void 0:O.event,null==O?void 0:O.lastEvent,D.homeRedCards),W=(0,s.PC)(!!A,null==q?void 0:q.event,null==q?void 0:q.lastEvent,D.awayRedCards),G=(0,s.rS)(null==O?void 0:O.goals,D.homeGoalsText),Z=(0,s.rS)(null==q?void 0:q.goals,D.awayGoalsText),U=null!=(M=null==O?void 0:O.score)?M:D.homeScore,$=null!=(R=null==q?void 0:q.score)?R:D.awayScore,K=null==O?void 0:O.penShootoutScore,Q=null==q?void 0:q.penShootoutScore,X=(F||I)&&((0,s.AD)(K)||(0,s.AD)(Q)),J=(F||I)&&(0,s.RL)(U,$),ee=(F||I)&&(0,s.RL)($,U),et=(0,s.RL)(K,Q),en=(0,s.RL)(Q,K),el=null==(E=D.matchConfig)||null==(T=E.config)||null==(u=T.icon)?void 0:u.trim(),[er,ea]=(0,r.useState)(null),es=!!el&&er!==el,ei=(null!=(_=D.subtitleScore)?_:[]).filter(e=>null==e?void 0:e.trim()),eo=(null==(S=D.bracketTitleLabel)?void 0:S.trim())||"",ec=(null==(L=D.bracketFinalScoreLabel)?void 0:L.trim())||"",ex=V?ei.length>0?(0,l.jsx)("div",{className:"flex flex-col items-center gap-0.5 w2k:gap-1 w4k:gap-1.5",children:ei.map((e,t)=>(0,l.jsx)("span",{className:C,children:e},"".concat(e,"-").concat(t)))}):null:(0,l.jsx)(l.Fragment,{children:X?(0,l.jsxs)("div",{className:"flex items-center justify-center w-full",children:[(0,l.jsx)("span",{className:"".concat(y," ").concat(et),children:(0,s.AD)(K)?"(".concat((0,s._i)(K),")"):""}),(0,l.jsx)("span",{className:"text-[20px] w2k:text-[27px] w4k:text-[40px] shrink-0 w-3 min-[1221px]:w-2 w4k:w-3","aria-hidden":!0}),(0,l.jsx)("span",{className:"".concat(y," ").concat(en),children:(0,s.AD)(Q)?"(".concat((0,s._i)(Q),")"):""})]}):null}),ed=(0,l.jsxs)("div",{className:"flex flex-col items-center justify-start gap-0.5 w2k:gap-1 w4k:gap-1.5 w-[61px] tablet:w-[80px] w2k:w-[107px] w4k:w-[160px] shrink-0",children:[V?(0,l.jsx)("span",{className:"text-base min-[1221px]:text-xl w2k:text-[27px] w4k:text-[39px] font-semibold leading-[130%] tracking-[0.02em] text-white text-center",children:D.startTime}):(0,l.jsxs)("div",{className:"flex items-center justify-center w-full",children:[(0,l.jsx)("span",{className:"".concat(N," ").concat(J),children:null!=U?U:"-"}),(0,l.jsx)("span",{className:"text-[14px] tablet:text-xl w2k:text-[27px] w4k:text-[39px] font-semibold leading-[130%] tracking-[0.02em] text-center text-white-smoke shrink-0 w-3 min-[1221px]:w-2",children:"-"}),(0,l.jsx)("span",{className:"".concat(N," ").concat(ee),children:null!=$?$:"-"})]}),ex,eo||ec?(0,l.jsxs)("div",{className:"flex-col items-center gap-0.5 w2k:gap-1 w4k:gap-1.5 hidden sm:flex",children:[eo?(0,l.jsx)("span",{className:C,children:eo}):null,ec?(0,l.jsx)("span",{className:C,children:ec}):null]}):null]}),eu=(0,l.jsxs)("div",{className:"min-h-[76px] sm:min-h-[120px] min-[1221px]:min-h-[120px] w2k:min-h-[163px] w4k:min-h-[240px] px-2 min-[1221px]:px-3 w2k:px-4 w4k:px-12 py-4 min-[1221px]:py-2 w2k:py-3 w4k:py-4 bg-white/[0.03] xl:hover:bg-white/[0.07] rounded-xl min-[1221px]:rounded-2xl w2k:rounded-[21px] w4k:rounded-[32px] curs
1or-pointer shrink-0 relative w-full overflow-visible group",children:[es?(0,l.jsx)("div",{className:"absolute top-0 right-0 xl:block hidden",children:(0,l.jsx)("img",{src:el,alt:"",className:"h-[18px] min-[1221px]:max-w-[150px] min-[1221px]:h-[24px] w2k:h-[32px] w4k:h-[47px] w-auto",onError:()=>ea(el)})}):null,F&&(0,l.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse at top center, rgba(255,101,0,0.30) 0%, rgba(13,13,12,0) 30%)"}}),(0,l.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[1px] w2k:h-[2px] w4k:h-[3px] overflow-hidden rounded-full",children:(0,l.jsx)("div",{className:"w-full h-full",style:{background:"linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%)",filter:"blur(0.5px)"}})}),F&&(0,l.jsx)("span",{className:"absolute left-0 tablet:left-1.5 top-1/2 w-1 h-5 -translate-y-1/2 rounded-[6px] bg-[rgba(253,17,11,1)] w2k:left-2 w2k:w-[5px] w2k:h-[27px] w2k:rounded-[8px] w4k:left-3 w4k:w-2 w4k:h-10 w4k:rounded-[12px]"}),(0,l.jsx)("div",{className:"absolute left-2 min-[1221px]:left-3 w2k:left-4 w4k:left-12 top-1/2 -translate-y-1/2 z-[1] w-[34px] tablet:w-[90px] xl:w-[104px] w2k:w-[138px] w4k:w-[168px] shrink-0 flex flex-col items-center justify-center gap-1 w2k:gap-1.5 w4k:gap-2 pointer-events-none",children:Y?(0,l.jsx)("div",{className:"flex items-center justify-center gap-1.5 w2k:gap-2 w4k:gap-3 w-full",children:(0,l.jsx)("span",{className:"max-w-full text-center text-[10px] tablet:text-[14px] w2k:text-[19px] w4k:text-[31.5px] font-medium leading-[130%] break-words line-clamp-2 tracking-[0.02em] ".concat(F?"animate-minute-blink text-[#E0E0E0]":"text-spanish-gray"),children:Y})}):(0,l.jsx)("div",{className:"flex items-center justify-center gap-1.5 w2k:gap-2 w4k:gap-3 w-full",children:(0,l.jsx)("span",{className:"text-[10px] min-[1221px]:text-[14px] w2k:text-[19px] w4k:text-[31.5px] font-medium leading-[130%] tracking-[0.02em] text-center text-[#E0E0E0]",children:"-"})})}),(0,l.jsx)("div",{className:"absolute inset-x-0 top-1/2 z-[1] flex w-full -translate-y-1/2 items-center justify-center px-[40px] min-[1221px]:px-[100px] w2k:px-[150px] w4k:px-[200px]",children:(0,l.jsxs)("div",{className:"flex w-full min-w-0 max-w-full items-center justify-center gap-1 tablet:gap-3 w2k:gap-4 w4k:gap-6",children:[(0,l.jsx)("div",{className:"flex flex-1 basis-0 min-w-0 max-w-[200px] min-[1221px]:max-w-[234px] w2k:max-w-[317px] w4k:max-w-[476px] items-center justify-end overflow-visible",children:(0,l.jsxs)("div",{className:"".concat(h," justify-end ").concat(p),children:[(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)("div",{className:"flex w-full items-center justify-end overflow-hidden",children:(0,l.jsxs)("div",{className:v,children:[P.count>0&&(F||I)?(0,l.jsx)(c.A,{count:P.count,icon:P.icon,className:"shrink-0"}):null,(0,l.jsxs)("span",{className:"".concat(k," text-right"),children:[(0,l.jsx)("span",{className:"min-[768px]:hidden",children:m(D.homeTeam.shortCode||D.homeTeam.name)}),(0,l.jsx)("span",{className:"hidden min-[768px]:inline",children:m(D.homeTeam.name)})]})]})}),G?(0,l.jsx)("div",{className:"".concat(j," ").concat(b," ").concat(g," ").concat(d().homeGoalsText),children:(0,l.jsx)("span",{className:d().homeGoalsTextInner,children:G})}):null]}),(0,l.jsx)(a.A,{src:D.homeTeam.logo,alt:D.homeTeam.name,className:"".concat("w-6 tablet:w-10 w2k:w-[53px] w4k:w-[80px]"," h-6 tablet:h-10 w2k:h-[53px] w4k:h-[80px] object-contain shrink-0"),placeHolder:"/images/sport-zone/team_placeholder.svg"})]})}),ed,(0,l.jsx)("div",{className:"flex flex-1 basis-0 min-w-0 max-w-[200px] min-[1221px]:max-w-[234px] w2k:max-w-[317px] w4k:max-w-[476px] items-center justify-start overflow-visible",children:(0,l.jsxs)("div",{className:"".concat(h," justify-start ").concat(p),children:[(0,l.jsx)(a.A,{src:D.awayTeam.logo,alt:D.awayTeam.name,className:"".concat("w-6 tablet:w-10 w2k:w-13 w4k:w-19.5"," h-6 tablet:h-10 w2k:h-13 w4k:h-19.5 object-contain shrink-0"),placeHolder:"/images/sport-zone/team_placeholder.svg"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)("div",{className:"flex w-full items-center justify-start overflow-hidden",children:(0,l.jsxs)("div",{className:v,children:[(0,l.jsxs)("span",{className:"".concat(k," text-left"),children:[(0,l.jsx)("span",{className:"min-[768px]:hidden",children:m(D.awayTeam.shortCode||D.awayTeam.name)}),(0,l.jsx)("span",{className:"hidden min-[768px]:inline",children:m(D.awayTeam.name)})]}),W.count>0&&(F||I)?(0,l.jsx)(c.A,{count:W.count,icon:W.icon,className:"shrink-0"}):null]})}),Z?(0,l.jsx)("div",{className:"".concat(j," ").concat(b," ").concat(g," ").concat(d().awayGoalsText),children:Z}):null]})]})})]})})]});return D.matchHref?(0,l.jsx)(w(),{href:D.matchHref,className:"block w-full shrink-0",children:eu}):eu}function E(e){var t;let{data:n,isAllLeaguesView:r=!0,hideLeagueHeader:s=!1}=e,{league:i,matches:o}=n,c=!s&&!r&&!!i.round;return(0,l.jsxs)("div",{className:"mb-4 min-[1221px]:mb-8 w2k:mb-[48px] w4k:mb-[64px]",children:[!s&&(r||c)?(0,l.jsx)("div",{className:"flex items-center justify-between ".concat(c?"mt-3 mb-3 min-[1221px]:mt-4 min-[1221px]:mb-4 w2k:mt-[21px] w2k:mb-[21px] w4k:mt-8 w4k:mb-8":"my-3 tablet:my-6 w2k:my-[21px] w4k:my-8"),children:c?(0,l.jsx)("h3",{className:"text-[16px] w2k:text-[21px] w4k:text-[31.5px] font-semibold leading-[130%] tracking-[0.02em] text-white-smoke",children:i.round}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex items-center gap-2.5 min-[1221px]:gap-3 w2k:gap-4 w4k:gap-5 min-w-0",children:[(0,l.jsx)(a.A,{src:i.logo,alt:i.name,className:"w-9 h-9 min-[1221px]:w-12 min-[1221px]:h-12 w2k:w-16 w2k:h-16 w4k:w-24 w4k:h-24 object-cover shrink-0",placeHolder:"/images/sport-zone/tournament_placeholder.svg"}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("div",{className:"flex items-center gap-1.5",children:(0,l.jsx)("h3",{className:"text-[16px] min-[1221px]:text-[18px] w2k:text-[24px] w4k:text-[36px] font-semibold leading-[130%] min-[1221px]:leading-[100%] tracking-[0.02em] text-[rgb(245,245,244)] truncate",children:i.name||"-"})}
1),(i.countryIcon||i.country||i.round)&&(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0 mt-2 w2k:mt-[10px] w4k:mt-[16px]",children:[(i.countryIcon||i.country)&&(0,l.jsxs)("div",{className:"flex items-center gap-1 w2k:gap-2 shrink-0",children:[i.countryIcon&&(0,l.jsx)(a.A,{src:i.countryIcon,alt:null!=(t=i.country)?t:"",className:"w-4 h-4 max-w-4 max-h-4 w2k:w-[21px] w2k:h-[21px] w4k:w-[31.5px] w4k:h-[31.5px] rounded-full object-cover shrink-0",placeHolder:"/images/sport-zone/tournament_placeholder.svg"}),i.country&&(0,l.jsx)("span",{className:"text-xs w2k:text-base w4k:text-[24px] font-normal leading-[130%] tracking-[0.02em] text-[rgb(149,149,149)]",children:i.country})]}),i.round&&(0,l.jsxs)(l.Fragment,{children:[(i.countryIcon||i.country)&&(0,l.jsx)("span",{"aria-hidden":!0,className:"w-1 h-1 w2k:w-1.5 w2k:h-1.5 w4k:w-2 w4k:h-2 bg-white/40 rounded-full"}),(0,l.jsx)("span",{className:"text-xs w2k:text-base w4k:text-[24px] font-normal leading-[130%] tracking-[0.02em] text-[rgb(149,149,149)]",children:i.round})]})]})]})]})})}):null,(0,l.jsx)("div",{className:"flex flex-col gap-2 sm:gap-4 w2k:gap-[21px] w4k:gap-8",children:o.map(e=>(0,l.jsx)(T,{match:e},e.id))})]})}var S=n(39291),L=n(50251),M=n(36761),R=n(37651);function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,R.No)();return e>=3400?80:e>=2208?53:e>=768?32:16}function D(e){return e.getBoundingClientRect().top+_()}let A=[0,50,150,300,500,800,1200];function z(e){if(!(e<=0))return{paddingBottom:"calc(".concat(e,"px + env(safe-area-inset-bottom, 0px))")}}function F(e,t){if(null==t?void 0:t.isConnected)return t;let n=e.parentElement;for(;n;){if(n.hasAttribute("data-livescore-panel-scroll-y"))return n;let e=window.getComputedStyle(n);if("auto"===e.overflowY||"scroll"===e.overflowY)return n;n=n.parentElement}return null}function I(e,t){let n=D(e);return 4>=Math.abs(t.getBoundingClientRect().top-n)}function V(e){let{allDaysGrouped:t,loading:n,selectedDateStr:a,onDateInView:s,dateSelectionSourceRef:i,explicitDatePickRef:o,isAllLeaguesView:c=!0,hideLeagueHeader:x=!1,toolbarScrollInsetPx:d=0,listResetKey:u="",scrollContainerRef:w,scrollTargetNonce:m=0,scrollContainerVersion:p=0}=e,h=(0,r.useRef)(new Map),f=(0,r.useRef)(!1),k=(0,r.useRef)(!1),v=(0,r.useRef)(null),g=(0,r.useRef)(u),b=(0,r.useRef)(m),j=(0,r.useRef)(""),N=(0,r.useRef)(n),y=(0,r.useRef)(w);y.current=w;let C=(0,r.useRef)(s);C.current=s;let T=(0,r.useRef)(a);T.current=a,(0,r.useEffect)(()=>{var e;if(n)return;let t=h.current.entries().next().value;if(!t)return;let l=F(t[1],null==(e=y.current)?void 0:e.current),r=0,a=()=>{if(r=0,!k.current||f.current||(null==o?void 0:o.current))return;let e=function(e,t){let n=t?D(t):_(),l=null,r=1/0,a=null,s=1/0;return e.forEach((e,t)=>{let i=e.getBoundingClientRect().top,o=Math.abs(i-n);if(o<s&&(s=o,a=t),i<=n+4){let e=n-i;e<r&&(r=e,l=t)}}),null!=l?l:a}(h.current,l);e&&e!==T.current&&C.current(e)},s=()=>{k.current&&!f.current&&(r||(r=requestAnimationFrame(a)))},i=()=>{!f.current&&(k.current=!0,o&&(o.current=!1))},c=null!=l?l:window;return c.addEventListener("scroll",s,{passive:!0}),c.addEventListener("wheel",i,{passive:!0}),c.addEventListener("touchmove",i,{passive:!0}),window.addEventListener("resize",s),()=>{r&&cancelAnimationFrame(r),c.removeEventListener("scroll",s),c.removeEventListener("wheel",i),c.removeEventListener("touchmove",i),window.removeEventListener("resize",s)}},[t,n,w,p,o]);let R=t.map(e=>e.dateStr).join("|");if((0,r.useLayoutEffect)(()=>{var e,t,l;if(n)return;let r=m!==b.current;b.current=m;let s=g.current!==u;g.current=u;let o=j.current!==R;j.current=R;let c=N.current&&!n;if(N.current=n,(null==i?void 0:i.current)==="list"&&!s&&!r){null==(l=v.current)||l.call(v),v.current=null,f.current=!1,i.current="strip";return}if(o&&!s&&!r&&!c||!(r||s||c))return;i&&(i.current="strip"),k.current=!1;let x=(0,M.Hm)(),d=s||x?"instant":"smooth";f.current=!0;let w=()=>{var e,t;let n=h.current.get(a);if(!n)return!1;let l=null!=(t=null==(e=y.current)?void 0:e.current)?t:F(n);return!!l&&(!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";if(!t)return e.scrollIntoView({behavior:n,block:"start"});let l=function(e,t){let n=_(),l=t.getBoundingClientRect(),r=e.getBoundingClientRect();return Math.max(0,t.scrollTop+(r.top-l.top)-n)}(e,t);Math.abs(t.scrollTop-l)>1&&t.scrollTo({top:l,behavior:n}),I(t,e)}(n,l,d),I(l,n))},p=[],C=performance.now(),T=()=>{f.current=!1},E=()=>{let e=(()=>{var e;let t=h.current.get(a);if(!t)return!1;let n=function(e,t){let n=e.entries().next().value;return n?F(n[1],t):(null==t?void 0:t.isConnected)?t:null}(h.current,null==(e=y.current)?void 0:e.current);return!!n&&I(n,t)})();if(!x)return void T();let t=performance.now()-C;if(e||t>=1800)return void T();p.push(window.setTimeout(E,80))};if(x){let e=0,t=()=>{if(w())return;if(e>=A.length-1)return void T();let n=A[e],l=A[e+=1]-n;p.push(window.setTimeout(t,l))};t()}else w(),p.push(window.setTimeout(()=>{w()||w()},100));let S=()=>{f.current&&w()};
1null==(e=window.visualViewport)||e.addEventListener("resize",S),null==(t=window.visualViewport)||t.addEventListener("scroll",S);let L=()=>{var e,t;p.forEach(e=>window.clearTimeout(e)),p.length=0,window.clearTimeout(D),null==(e=window.visualViewport)||e.removeEventListener("resize",S),null==(t=window.visualViewport)||t.removeEventListener("scroll",S)};v.current=L;let D=window.setTimeout(E,x?300:s?250:600);return()=>{L(),v.current=null,f.current=!1}},[a,n,i,o,u,R,w,m,p]),n)return(0,l.jsx)("div",{style:z(d),children:(0,l.jsx)(S.A,{})});if(!t.some(e=>e.leagues.length>0))return(0,l.jsx)("div",{className:"flex h-full min-h-0 w-full items-center justify-center",style:z(d),children:(0,l.jsx)(L.A,{})});let V=t.length-1,H=z(d);return(0,l.jsxs)("div",{className:"space-y-4 tablet:space-y-8 w2k:space-y-[53px] w4k:space-y-[80px] min-[1221px]:px-10 xl:pb-6",children:[t.map((e,t)=>(0,l.jsxs)("div",{"data-date":e.dateStr,ref:t=>{t?h.current.set(e.dateStr,t):h.current.delete(e.dateStr)},style:t===V?H:void 0,children:[(0,l.jsx)("h2",{className:"text-[14px] sm:text-[18px] w2k:text-[24px] w4k:text-[36px] font-medium leading-[130%] tracking-[0.02em] text-[rgb(149,149,149)] mb-2 min-[1221px]:mb-4",children:function(e){let t=function(e){let[t,n,l]=e.split("-").map(Number);return new Date(t,n-1,l)}(e),n=new Date,l="".concat(String(t.getDate()).padStart(2,"0"),"/").concat(String(t.getMonth()+1).padStart(2,"0"),"/").concat(t.getFullYear());return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()?"H\xf4m nay, ".concat(l):"".concat(["Chá»§ nháºt","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"][t.getDay()],", ").concat(l)}(e.dateStr)}),e.leagues.length>0?(0,l.jsx)("div",{className:"space-y-2",children:e.leagues.map(e=>{var t,n;return(0,l.jsx)(E,{data:e,isAllLeaguesView:c,hideLeagueHeader:x},"".concat(e.league.id,"::").concat(null!=(n=null==(t=e.matches[0])?void 0:t.roundId)?n:""))})}):(0,l.jsx)("p",{className:"text-sm w2k:text-[20px] w4k:text-2xl text-white/30 px-1 py-4",children:"Kh\xf4ng c\xf3 tráºn Äấu"})]},e.dateStr)),(0,l.jsx)("div",{className:"shrink-0 pointer-events-none h-4 tablet:h-8 w2k:h-[53px] w4k:h-[80px]","aria-hidden":"true"})]})}},38096:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(37876);function r(e){let{className:t,color:n}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",className:t,children:(0,l.jsx)("path",{d:"M10.5393 14.7042C9.9344 14.7042 9.42104 14.4933 8.99918 14.0714C8.57731 13.6494 8.36638 13.136 8.36638 12.5311C8.36638 11.9262 8.57731 11.4129 8.99918 10.991C9.42104 10.5692 9.9344 10.3582 10.5393 10.3582C11.1441 10.3582 11.6576 10.5692 12.0796 10.991C12.5014 11.4129 12.7124 11.9262 12.7124 12.5311C12.7124 13.136 12.5014 13.6494 12.0796 14.0714C11.6576 14.4933 11.1441 14.7042 10.5393 14.7042ZM1.70228 18C1.22659 18 0.82395 17.8352 0.49437 17.5056C0.16479 17.1761 0 16.7734 0 16.2977V3.69412C0 3.21842 0.16479 2.81579 0.49437 2.48621C0.82395 2.15663 1.22659 1.99184 1.70228 1.99184H3.006V0.724134C3.006 0.517754 3.07514 0.345431 3.2134 0.207164C3.35167 0.0690545 3.52399 0 3.73037 0C3.93691 0 4.10923 0.0690545 4.24734 0.207164C4.38561 0.345431 4.45474 0.517754 4.45474 0.724134V1.99184H11.5897V0.706242C11.5897 0.505826 11.6572 0.337976 11.7924 0.202691C11.9276 0.0675635 12.0955 0 12.2959 0C12.4963 0 12.6641 0.0675635 12.7992 0.202691C12.9345 0.337976 13.0022 0.505826 13.0022 0.706242V1.99184H14.3059C14.7816 1.99184 15.1842 2.15663 15.5138 2.48621C15.8434 2.81579 16.0082 3.21842 16.0082 3.69412V16.2977C16.0082 16.7734 15.8434 17.1761 15.5138 17.5056C15.1842 17.8352 14.7816 18 14.3059 18H1.70228ZM1.70228 16.5875H14.3059C14.3784 16.5875 14.4448 16.5573 14.505 16.4969C14.5655 16.4366 14.5957 16.3702 14.5957 16.2977V7.46074H1.41248V16.2977C1.41248 16.3702 1.4427 16.4366 1.50312 16.4969C1.56339 16.5573 1.62977 16.5875 1.70228 16.5875ZM1.41248 6.04826H14.5957V3.69412C14.5957 3.62161 14.5655 3.55522 14.505 3.49496C14.4448 3.43453 14.3784 3.40432 14.3059 3.40432H1.70228C1.62977 3.40432 1.56339 3.43453 1.50312 3.49496C1.4427 3.55522 1.41248 3.62161 1.41248 3.69412V6.04826Z",fill:null!=n?n:"currentColor"})})}n(14232)},39291:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(37876);let r=()=>(0,l.jsx)("div",{className:"h-[76px] sm:h-[120px] w2k:h-[163px] w4k:h-[240px] w-full animate-skeleton rounded-xl min-[1221px]:rounded-2xl w2k:rounded-[21px] w4k:rounded-[32px] mb-3 min-[1221px]:mb-4 w2k:mb-[21px] w4k:mb-8"}),a=e=>{let{matchCount:t}=e;return(0,l.jsxs)("div",{className:"mb-10 w2k:mb-[53px] w4k:mb-20",children:[(0,l.jsxs)("div",{className:"mb-3 min-[1221px]:mb-4 w2k:mb-[21px] w4k:mb-8",children:[(0,l.jsx)("div",{className:"h-5 w2k:h-[27px] w4k:h-10 w-50 w2k:w-[267px] w4k:w-100 animate-skeleton rounded-full mb-3 min-[1221px]:mb-4 w2k:mb-[21px] w4k:mb-8"}),(0,l.jsx)("div",{className:"h-5 w2k:h-[27px] w4k:h-10 w-30 w2k:w-40 w4k:w-60 animate-skeleton rounded-full"})]}),Array.from({length:t}).map((e,t)=>(0,l.jsx)(r,{},t))]})};function s(e){let{groupCount:t=2,matchesPerGroup:n=2}=e;return(0,l.jsx)("div",{className:"w-full min-[1221px]:px-10",children:Array.from({length:t}).map((e,t)=>(0,l.jsx)(a,{matchCount:n},t))})}},50251:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(37876);function r(e){let{message:t="Kh\xf4ng c\xf3 tráºn Äấu n\xe0o",className:n="flex w-full h-full min-h-[min(60vh,420px)] flex-col items-center justify-center px-4"}=e;return(0,l.jsxs)("div",{className:n,children:[(0,l.jsx)("img",{src:"/images/sport-zone/live-score-empty.svg",alt:t,width:180,height:180,className:"w-[124px] h-[124px] sm:w-[180px] sm:h-[180px] w2k:w-[240px] w2k:h-[240px] w4k:w-[360px] w4k:h-[360px]"}),(0,l.jsx)("p",{className:"mt-3 sm:mt-6 w2k:mt-8 w4k:mt-12 text-sm sm:text-base w2k:text-[21px] w4k:text-[31.5px] text-[#F5F5F4] font-medium leading-[130%] tracking-[0.02em] text-center",children:t})]})}}
1,65199:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(14232),r=n(47301);let a="[data-floating-toolbar-container]",s="[data-floating-toolbar-gradient]";function i(){return window.innerWidth>=768?r.Nv.tablet:r.Nv.mobile}function o(e){let[t,n]=(0,l.useState)(()=>window.innerWidth>=1280?0:i());return(0,l.useEffect)(()=>{var t,l;let o=0,c=()=>{o||(o=requestAnimationFrame(()=>{o=0,w(),n(function(e){if(window.innerWidth>=1280)return 0;let t=i()+(0,r.$T)(),n=document.querySelector(a),l=document.querySelector(s),o=[];if(n&&o.push(n.getBoundingClientRect().top),l&&o.push(l.getBoundingClientRect().top),0===o.length)return t;let c=Math.min(...o);return Math.max(t,Math.ceil((e?e.getBoundingClientRect().bottom:(0,r.e9)())-c))}(e.current))}))},x=new Set,d="undefined"!=typeof ResizeObserver?new ResizeObserver(c):null,u=e=>{!e||!d||x.has(e)||(x.add(e),d.observe(e))},w=()=>{u(e.current),u(document.querySelector(a)),u(document.querySelector(s))};w(),c();let m="undefined"!=typeof MutationObserver?new MutationObserver(c):null;return null==m||m.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden"]}),window.addEventListener("resize",c),window.addEventListener("orientationchange",c),null==(t=window.visualViewport)||t.addEventListener("resize",c),null==(l=window.visualViewport)||l.addEventListener("scroll",c),()=>{var e,t;o&&cancelAnimationFrame(o),null==m||m.disconnect(),null==d||d.disconnect(),window.removeEventListener("resize",c),window.removeEventListener("orientationchange",c),null==(e=window.visualViewport)||e.removeEventListener("resize",c),null==(t=window.visualViewport)||t.removeEventListener("scroll",c)}},[e]),t}},76927:(e,t,n)=>{n.d(t,{A:()=>v});var l=n(37876),r=n(14232),a=n(34820),s=n(98477);let i=["CN","T2","T3","T4","T5","T6","T7"],o="flex items-center justify-center h-[32px] w-[32px] w2k:h-[43px] w2k:w-[43px] w4k:h-16 w4k:w-16",c="w-8 h-8 w2k:w-11 w2k:h-11 w4k:w-16 w4k:h-16 flex items-center justify-center rounded-[50%] transition-colors text-white/60 hover:bg-white/10 hover:text-white";function x(e){let{monthLabel:t,calendarDays:n,onPrevMonth:a,onNextMonth:x,onSelectDate:d,anchorRef:u,popupRef:w}=e,[m,p]=(0,r.useState)({visibility:"hidden"});(0,r.useLayoutEffect)(()=>{let e=()=>{let e=u.current;if(!e)return;let t=e.getBoundingClientRect();p({position:"fixed",top:t.bottom+8,right:window.innerWidth-t.right,zIndex:9999,visibility:"visible"})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[u]);let h=(0,l.jsxs)("div",{ref:w,style:m,className:"w-[280px] min-[1221px]:w-[320px] w2k:w-[573px] w4k:w-[860px] overflow-hidden isolate transform-gpu rounded-xl w2k:rounded-2xl w4k:rounded-3xl border border-white/10 bg-dire-wolf/60 backdrop-blur-[30px] w2k:backdrop-blur-[40px] w4k:backdrop-blur-[60px] shadow-[0px_4px_20px_0px_#00000066] w2k:shadow-[0px_5px_27px_0px_#00000066] w4k:shadow-[0px_8px_40px_0px_#00000066] p-4 w2k:p-5 w4k:p-8 animate-fadeIn",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4 w2k:mb-5 w4k:mb-8",children:[(0,l.jsx)("button",{onClick:a,className:c,"aria-label":"Th\xe1ng trưá»c",children:(0,l.jsx)("svg",{className:"w-4 h-4 w2k:w-5 w2k:h-5 w4k:w-8 w4k:h-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),(0,l.jsx)("span",{className:"text-sm w2k:text-[21px] w4k:text-[31px] font-medium text-white",children:t}),(0,l.jsx)("button",{onClick:x,className:c,"aria-label":"Th\xe1ng sau",children:(0,l.jsx)("svg",{className:"w-4 h-4 w2k:w-5 w2k:h-5 w4k:w-8 w4k:h-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})})]}),(0,l.jsxs)("div",{className:"grid grid-cols-7 justify-items-center gap-y-0.5 w2k:gap-y-1 w4k:gap-y-1.5",children:[i.map(e=>(0,l.jsx)("div",{className:o,children:(0,l.jsx)("span",{className:"text-center text-[11px] w2k:text-sm w4k:text-[21px] text-white-smoke font-medium leading-none",children:e})},e)),n.map((e,t)=>(0,l.jsx)("div",{className:o,children:(0,l.jsx)("button",{type:"button",disabled:e.isDisabled,onClick:()=>{e.isDisabled||d(e.date)},className:"\n flex items-center justify-center\n ".concat("h-[32px] w-[32px] w2k:h-[43px] w2k:w-[43px] w4k:h-16 w4k:w-16","\n text-xs sm:text-sm w2k:text-[19px] w4k:text-[28px] rounded-[50%] transition-all duration-150\n ").concat(e.isDisabled?"text-white/15 cursor-not-allowed decoration-white/20":e.isSelected?"text-fpl border border-fpl font-semibold hover:bg-white/10":e.isToday?"bg-fpl text-white font-bold":e.isCurrentMonth?"text-white hover:bg-white/10":"text-white/20 hover:bg-white/5","\n "),children:e.day})},t))]})]});return"undefined"==typeof document?null:(0,s.createPortal)(h,document.body)}var d=n(36461);function u(e){let t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(l)}function w(e){if(!e)return null;let t=e.trim();if(!t)return null;let n=t.match(/^\d{4}-\d{2}-\d{2}/);if(n)return n[0];let l=new Date(t);return Number.isNaN(l.getTime())?null:u(l)}function m(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}let p=["Th\xe1ng 1","Th\xe1ng 2","Th\xe1ng 3","Th\xe1ng 4","Th\xe1ng 5","Th\xe1ng 6","Th\xe1ng 7","Th\xe1ng 8","Th\xe1ng 9","Th\xe1ng 10","Th\xe1ng 11","Th\xe1ng 12"];var h=n(38096);function f(e,t){for(let l=7;l<14;l++){var n;if((null==(n=e[l])?void 0:n.dateStr)===t)return l}let l=e.findIndex(e=>e.dateStr===t);if(l>=0)return 7+l%7;let r=e.slice(7,14).findIndex(e=>e.isToday);return r>=0?7+r:7}let k={align:"center",containScroll:!1,dragFree:!1,duration:50,loop:!0,skipSnaps:!1,direction:"ltr",watchDrag:!0,watchResize:!0};function v(e){let{dates:t,selectedDateStr:n,selectedDate:s,onSelectDate:i,selectionSourceRef:o,hideCarousel:c=!1,hideCalendar:v=!1,centerContent:g,leadingSlot:b,calendarInline:j=!1,minDateStr:N,maxDateStr:y,showActive:C=!0}=e,T=(0,r.useRef)(f(t,n)),E=(0,r.useRef)(n),S=(0,r.useMemo)(()=>({...k,startIndex:T.current}),[]),[L,M]=(0,a.A)(S),R=function(e,t,n){let[l,a]=(0,r.useState)(!1),[s,i]=(0,r.useState)(e.getMonth()),[o,c]=(0,r.useState)(e.getFullYear()),x=(0,r.useRef)(null),h=(0,r.useRef)(null),f=(0,r.useMemo)(()=>w(t),[t]),k=(0,r.useMemo)(()=>w(n),[n]);(0,r.useEffect)(()=>{i(e.getMonth()),c(e.getFullYear())},[e]);let v=(0,r.useMemo)(()=>"".concat(p[s]," ").concat(o),[s,o]),g=(0,r.useMemo)(()=>{let t=(0,d.YH)(),n=new Date(o,s,1).getDay(),l=new Date(o,s+1,0).getDate(),r=new Date(o,s,0).getDate(),a=(n,l)=>{let r=u(n);return{date:n,day:n.getDate(),isCurrentMonth:l,isToday:m(n,t),isSelected:m(n,e),isDisabled:!!f&&!!(r<f)||!!k&&!!(r>k),dateStr:r}},i=[];for(let e=n-1;e>=0;e--)i.push(a(new Date(o,s-1,r-e),!1));for(let e=1;e<=l;e++)i.push(a(new Date(o,s,e),!0));let c=42-i.length;for(let e=1;e<=c;e++)i.push(a(new Date(o,s+1,e),!1));return i},[s,o,e,f,k]),b=(0,r.useCallback)(()=>{i(e=>
10===e?(c(e=>e-1),11):e-1)},[]),j=(0,r.useCallback)(()=>{i(e=>11===e?(c(e=>e+1),0):e+1)},[]),N=(0,r.useCallback)(()=>{a(e=>!e)},[]),y=(0,r.useCallback)(()=>{a(!1)},[]);return(0,r.useEffect)(()=>{if(!l)return;let e=e=>{"Escape"===e.key&&y()},t=e=>{var t,n;let l=e.target;(null==(t=x.current)?void 0:t.contains(l))||(null==(n=h.current)?void 0:n.contains(l))||y()};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[l,y]),{isOpen:l,calendarRef:x,popupRef:h,monthLabel:v,calendarDays:g,prevMonth:b,nextMonth:j,toggleCalendar:N,closeCalendar:y}}(s,N,y),_=(0,r.useMemo)(()=>f(t,n),[t,n]),D=(0,r.useCallback)((e,n)=>{if(!M)return;let l=n?f(t,e):function(e,t,n){let l=e.length,r=[];for(let n=0;n<l;n++){var a;(null==(a=e[n])?void 0:a.dateStr)===t&&r.push(n)}if(0===r.length)return f(e,t);let s=r[0],i=l;for(let e of r){let t=Math.min((e-n+l)%l,(n-e+l)%l);t<i&&(i=t,s=e)}return s}(t,e,M.selectedScrollSnap());l<0||M.scrollTo(l,n)},[M,t]);(0,r.useLayoutEffect)(()=>{if(!M||_<0)return;let e=E.current;if(E.current=n,e===n)return;if((null==o?void 0:o.current)!=="list")return void D(n,!1);let t=window.setTimeout(()=>{D(n,!1)},90);return()=>window.clearTimeout(t)},[M,_,n,o,D]),(0,r.useLayoutEffect)(()=>{if(!M)return;let e=()=>D(n,!0);return M.on("reInit",e),M.on("resize",e),()=>{M.off("reInit",e),M.off("resize",e)}},[M,n,D]);let A=(0,r.useCallback)(e=>{i(e)},[i]),z=(0,r.useCallback)(e=>{i(e),R.closeCalendar()},[i,R]),{isOpen:F,closeCalendar:I}=R;return(0,r.useEffect)(()=>{v&&F&&I()},[v,F,I]),(0,l.jsxs)("div",{className:"flex items-center gap-2 w-full min-[1221px]:max-w-[728px] w2k:max-w-[971px] w4k:max-w-[1456px] mx-auto min-[1221px]:gap-3 w2k:gap-4 w4k:gap-5",children:[b,(0,l.jsxs)("div",{className:"relative grid flex-1 min-w-0 grid-cols-1 grid-rows-1",children:[(0,l.jsx)("div",{className:"col-start-1 row-start-1 min-w-0 ".concat(c?"invisible pointer-events-none":""),"aria-hidden":c,children:(0,l.jsxs)("div",{className:"relative overflow-hidden livescore-date-strip w2k:[--livescore-fade-width:2.67rem] w4k:[--livescore-fade-width:4rem] w2k:[--livescore-fade-blur:5px] w4k:[--livescore-fade-blur:8px]",children:[(0,l.jsx)("div",{className:"embla__viewport",ref:L,children:(0,l.jsx)("div",{className:"embla__container",children:t.map((e,t)=>{let r=C&&e.dateStr===n;return(0,l.jsx)("div",{className:"embla__slide",children:(0,l.jsxs)("button",{type:"button",tabIndex:c?-1:void 0,onClick:()=>A(e.date),className:"\n relative flex flex-col items-center justify-center w-full rounded-lg w2k:rounded-[10px] w4k:rounded-xl\n pt-1.5 w2k:pt-2 w4k:pt-3\n cursor-pointer select-none will-change-transform\n transition-[background-color,transform] duration-200 ease-out\n ".concat(r?"scale-[1.06]":"scale-100 hover:bg-white/10","\n "),children:[(0,l.jsx)("span",{className:"text-[12px] sm:text-[14px] w2k:text-[19px] w4k:text-[28px] font-medium leading-[1.5] transition-colors duration-200 ease-out text-white-smoke",children:e.dayName}),(0,l.jsx)("span",{className:"text-[12px] sm:text-[14px] w2k:text-[19px] w4k:text-[28px] mt-0.5 w2k:mt-1 w4k:mt-1.5 leading-[1.5] mb-[6px] w2k:mb-2 w4k:mb-3 transition-colors duration-200 ease-out text-spanish-gray",children:e.dayMonth}),(0,l.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute bottom-1 w2k:bottom-1.5 w4k:bottom-2 left-1/2 h-0.5 w2k:h-[3px] w4k:h-1 rounded-full bg-[#FF6500] -translate-x-1/2 transition-[opacity,width] duration-300 ease-out ".concat(r?"opacity-100 w-10 w2k:w-[53px] w4k:w-20":"opacity-0 w-2 w2k:w-2.5 w4k:w-4")})]})},"".concat(t,"-").concat(e.dateStr))})})}),(0,l.jsx)("div",{className:"livescore-date-strip-fade-left","aria-hidden":"true"}),(0,l.jsx)("div",{className:"livescore-date-strip-fade-right","aria-hidden":"true"})]})}),c&&g?(0,l.jsx)("div",{className:"col-start-1 row-start-1 z-[1] flex min-w-0 items-center justify-center px-2 pointer-events-none",children:(0,l.jsx)("div",{className:"pointer-events-auto",children:g})}):null]}),!v&&(0,l.jsxs)("div",{className:"relative shrink-0 ".concat(j?"":"min-[1221px]:absolute min-[1221px]:right-[22px] w2k:right-[29px] w4k:right-[44px]"),ref:R.calendarRef,children:[(0,l.jsx)("button",{onClick:R.toggleCalendar,className:"\n flex items-center justify-center\n w-[24px] tablet:w-[48px] w2k:w-16 w4k:w-24\n h-[24px] tablet:h-[48px] w2k:h-16 w4k:h-24\n rounded-[40px] w2k:rounded-[53px] w4k:rounded-[80px]\n border border-white-007\n cursor-pointer\n transition-colors\n ".concat(R.isOpen?"bg-fpl text-white":"bg-white/10 text-spanish-gray hover:text-white","\n "),"aria-label":"Má» lá»ch",children:(0,l.jsx)(h.A,{className:"w-[14px] h-[14px] tablet:w-6 tablet:h-6 w2k:w-8 w2k:h-8 w4k:w-12 w4k:h-12 transition-colors"})}),R.isOpen&&(0,l.jsx)(x,{anchorRef:R.calendarRef,popupRef:R.popupRef,monthLabel:R.monthLabel,calendarDays:R.calendarDays,onPrevMonth:R.prevMonth,onNextMonth:R.nextMonth,onSelectDate:z})]})]})}},85408:(e,t,n)=>{n.d(t,{F6:()=>o,oU:()=>s,s$:()=>i});var l=n(37876),r=n(14232);let a=(0,r.createContext)(new Map);function s(e){let{liveByMatchId:t,children:n}=e;return(0,l.jsx)(a.Provider,{value:t,children:n})}function i(e){let t=(0,r.useContext)(a);if(e)return t.get(e)}function o(){return(0,r.useContext)(a)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.