1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,846300,e=>{e.v({className:"montserrat_48e2d4b5-module__ai7s0W__className"})},61096,e=>{"use strict";var s=e.i(843476),t=e.i(271645),a=e.i(437902),l=e.i(21357),r=e.i(262633),i=e.i(364569),n=e.i(867927),o=e.i(786563),d=e.i(474816),c=e.i(697886),m=e.i(657688),x=e.i(522016),h=e.i(277625),u=e.i(776559),p=e.i(598784),g=e.i(846932),f=e.i(450088),b=e.i(582227);function j(){let{session:e,isLoading:a}=(0,b.useAuth)(),l=(0,t.useRef)(null);(0,t.useEffect)(()=>{let e=l.current;if(!e)return;let s=()=>{let s=e.getBoundingClientRect().top+window.scrollY;e.style.height=`calc(100svh - ${Math.max(0,Math.round(s))}px)`};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]);let r=e?.user?.name?.trim().split(/\s+/)[0],i=r?`Hi ${r},`:"Hi there,";return(0,s.jsx)("div",{ref:l,className:"pointer-events-none absolute top-0 right-2 z-30 flex h-screen items-end pb-14 sm:right-4 sm:pb-16 xl:right-8 xl:pb-20",children:(0,s.jsxs)(g.motion.div,{initial:{opacity:0,y:28},animate:{opacity:1,y:0},transition:{duration:.7,delay:.7,ease:[.16,1,.3,1]},className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-24 bg-emerald-400/15 blur-3xl"}),(0,s.jsx)(f.LeoKingMascot,{animation:"hi",quality:"md",delay:900,label:"Leo King, the Chessveda mascot, waving hello",className:"relative w-24 drop-shadow-2xl sm:w-28 md:w-36 xl:w-44"}),(0,s.jsxs)(g.motion.div,{initial:{opacity:0,x:10,scale:.94},animate:{opacity:+!a,x:0,scale:1},transition:{duration:.5,delay:1.1,ease:[.16,1,.3,1]},className:"absolute top-[22%] right-full mr-1.5 w-[145px] rounded-xl border border-white/10 bg-slate-950/75 px-2.5 py-2 text-left shadow-xl backdrop-blur-md sm:mr-2 sm:w-[175px] sm:rounded-2xl sm:px-3 sm:py-2.5 xl:mr-2.5 xl:w-[210px] xl:px-4 xl:py-3",children:[(0,s.jsx)("p",{className:"text-xs font-bold text-white sm:text-sm xl:text-base",children:i}),(0,s.jsx)("p",{className:"mt-0.5 text-[10px] leading-snug text-slate-300 sm:text-xs xl:text-sm",children:r?"Welcome back to Chessveda":"Welcome to Chessveda"}),(0,s.jsx)("span",{className:"absolute top-1/2 -right-[7px] h-3 w-3 -translate-y-1/2 rotate-45 border-t border-r border-white/10 bg-white/10 backdrop-blur-md"})]})]})})}var v=e.i(846300);let w={className:v.default.className,style:{fontFamily:"'Montserrat', 'Montserrat Fallback'",fontStyle:"normal"}};null!=v.default.variable&&(w.variable=v.default.variable);var y=e.i(163524);function N({icon:e,value:t,label:a,sublabel:l,iconColor:r}){let{count:i}=(0,u.useCountUp)({end:t,duration:2500,delay:800,formatDuringAnimation:!0});return(0,s.jsxs)("div",{className:`group bg-white/5 backdrop-blur-md border border-white/10 rounded-2xl w-40 sm:w-72 md:w-80 lg:w-96 p-4 sm:p-6 lg:p-8 hover:bg-white/10 ${{emerald:"hover:border-emerald-500/30",amber:"hover:border-amber-500/30",blue:"hover:border-blue-500/30"}[r]} transition-all duration-300 hover:scale-105 hover:shadow-xl`,children:[(0,s.jsxs)("div",{className:"flex items-center justify-center mb-2 sm:mb-3",children:[e,(0,s.jsx)("div",{className:`text-xl sm:text-3xl lg:text-4xl font-black text-white ${{emerald:"group-hover:text-emerald-400",amber:"group-hover:text-amber-400",blue:"group-hover:text-blue-400"}[r]} transition-colors`,children:0===t?"Loading...":i})]}),(0,s.jsx)("div",{className:"text-slate-300 text-xs sm:text-base lg:text-lg font-medium",children:a}),(0,s.jsx)("div",{className:"text-[10px] sm:text-xs text-slate-500 mt-1",children:l})]})}function C({afterActions:e,hideStats:u=!1}){let[g,f]=(0,t.useState)({x:0,y:0}),[b,v]=(0,t.useState)(0),[C,k]=(0,t.useState)(!1),S=(0,t.useRef)(null),[z,T]=(0,t.useState)({totalUsers:0,totalPuzzles:0});return(0,t.useEffect)(()=>{k(!0),(async()=>{try{let[e,s]=await Promise.all([p.homeService.getPlatformStats(),p.homeService.getPuzzleStats()]);T({totalUsers:e.activePlayers>0?e.activePlayers:0,totalPuzzles:s?.totalPuzzles||0})}catch(e){console.error("Error fetching hero stats:",e)}})();let e=e=>{if(S.current){let s=S.current.getBoundingClientRect();f({x:(e.clientX-s.left)/s.width,y:(e.clientY-s.top)/s.height})}},s=()=>{v(window.scrollY)};return window.addEventListener("mousemove",e),window.addEventListener("scroll",s),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("scroll",s)}},[]),(0,s.jsxs)("div",{ref:S,role:"banner","aria-label":"Chess Veda Hero Section",className:"jsx-2f9dd84a83fe5228 relative min-h-screen overflow-hidden bg-gradient-to-br from-slate-950 via-slate-900 to-black",children:[(0,s.jsx)("div",{suppressHydrationWarning:!0,className:"jsx-2f9dd84a83fe5228 absolute inset-0 opacity-50",children:(0,s.jsx)("div",{suppressHydrationWarning:!0,style:{transform:`translate(${-10*g.x}px, ${-10*g.y}px) scale(${1+1e-4*b})`},className:"jsx-2f9dd84a83fe5228 grid grid-cols-8 h-full w-full transition-transform duration-1000 ease-out",children:Array.from({length:64}).map((e,t)=>(0,s.jsx)("div",{suppressHydrationWarning:!0,style:{animationDelay:`${.02*t}s`,transform:`translateZ(${2*Math.sin(.1*t+.01*b)}px)`},className:`jsx-2f9dd84a83fe5228 border border-white/10 transition-all duration-500 hover:bg-emerald-500/5 ${Math.floor(t/8)%2==t%2?"bg-white/5":"bg-transparent"} aspect-square`},t))})}),(0,s.jsxs)("div",{suppressHydrationWarning:!0,className:"jsx-2f9dd84a83fe5228 absolute inset-0 pointer-events-none",children:[(0,s.jsx)("div",{style:{transform:`translate(${50*g.x}px, ${30*g.y}px)`},className:"jsx-2f9dd84a83fe5228 absolute top-1/4 left-1/4 w-96 h-96 bg-emerald-500/10 rounded-full blur-3xl animate-pulse-slow"}),(0,s.jsx)("div",{style:{animationDelay:"2s",transform:`translate(${-40*g.x}px, ${-25*g.y}px)`},className:"jsx-2f9dd84a83fe5228 absolute bottom-1/3 right-1/3 w-80 h-80 bg-amber-500/8 rounded-full blur-3xl animate-pulse-slow"}),(0,s.jsx)("div",{style:{animationDelay:"4s",transform:`translate(${30*g.x}px, ${40*g.y}px)`},className:"jsx-2f9dd84a83fe5228 absolute top-1/2 left-1/2 w-72 h-72 bg-blue-500/6 rounded-full blur-3xl animate-pulse-slow"})]}),(0,s.jsxs)("div",{suppressHydrationWarning:!0,className:"jsx-2f9dd84a83fe5228 absolute inset-0 pointer-events-none",children:[(0,s.jsx)("div",{style:{transform:`translate(${20*g.x}px, ${15*g.y+(C?8*Math.sin(.001*Date.now()):0)}px) rotate(${5*g.x}deg)`}
1,className:"jsx-2f9dd84a83fe5228 absolute top-16 left-8 lg:left-16 opacity-20 hover:opacity-40 transition-all duration-700",children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 relative group",children:[(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 absolute inset-0 bg-emerald-400/20 rounded-full blur-xl scale-150 opacity-0 group-hover:opacity-100 transition-all duration-500"}),(0,s.jsx)(m.default,{src:h.PieceImages3D.white.king,alt:"",width:120,height:120,className:"w-24 h-24 lg:w-32 lg:h-32 object-cover rounded-lg shadow-2xl filter brightness-110",loading:"eager"})]})}),(0,s.jsx)("div",{style:{transform:`translate(${-25*g.x}px, ${20*g.y+(C?10*Math.cos(.0012*Date.now()):0)}px) rotate(${-3*g.x}deg)`},className:"jsx-2f9dd84a83fe5228 absolute top-20 right-8 lg:right-20 opacity-25 hover:opacity-50 transition-all duration-700",children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 relative group",children:[(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 absolute inset-0 bg-amber-400/20 rounded-full blur-xl scale-150 opacity-0 group-hover:opacity-100 transition-all duration-500"}),(0,s.jsx)(m.default,{src:h.PieceImages3D.black.queen,alt:"",width:140,height:140,className:"w-28 h-28 lg:w-36 lg:h-36 object-cover rounded-lg shadow-2xl filter brightness-110",loading:"eager"})]})}),(0,s.jsx)("div",{style:{transform:`translate(${15*g.x}px, ${-10*g.y+(C?6*Math.sin(8e-4*Date.now()):0)}px)`},className:"jsx-2f9dd84a83fe5228 absolute bottom-24 left-12 lg:left-24 opacity-15 hover:opacity-35 transition-all duration-700",children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 relative group",children:[(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 absolute inset-0 bg-blue-400/20 rounded-full blur-xl scale-150 opacity-0 group-hover:opacity-100 transition-all duration-500"}),(0,s.jsx)(m.default,{src:h.PieceImages3D.white.knight,alt:"",width:100,height:100,className:"w-20 h-20 lg:w-28 lg:h-28 object-cover rounded-lg shadow-2xl filter brightness-110",loading:"eager"})]})})]}),(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 relative z-20 flex flex-col items-center justify-center min-h-screen px-4 sm:px-6 lg:px-8 text-center pt-16 sm:pt-0",children:[(0,s.jsx)("div",{className:`jsx-2f9dd84a83fe5228 mb-6 lg:mb-8 transition-all duration-1000 ${C?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 inline-flex items-center px-4 py-2 bg-white/5 backdrop-blur-md rounded-full border border-emerald-500/20 text-emerald-400 text-xs sm:text-sm font-medium hover:bg-white/10 hover:border-emerald-500/40 transition-all duration-300 group",children:[(0,s.jsx)(o.Star,{className:"w-4 h-4 mr-2 group-hover:rotate-12 transition-transform"}),(0,s.jsx)("span",{className:"jsx-2f9dd84a83fe5228 hidden sm:inline",children:"Loved by chess players across the globe"}),(0,s.jsx)("span",{className:"jsx-2f9dd84a83fe5228 sm:hidden",children:"Loved globally"}),(0,s.jsx)(i.Zap,{className:"w-4 h-4 ml-2 text-amber-400 group-hover:scale-110 transition-transform"})]})}),(0,s.jsxs)("div",{className:`jsx-2f9dd84a83fe5228 mb-6 lg:mb-8 transition-all duration-1000 delay-200 ${C?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[(0,s.jsxs)("h1",{className:`jsx-2f9dd84a83fe5228 ${w.className} text-3xl sm:text-5xl lg:text-7xl xl:text-8xl font-black leading-tight mb-4`,children:[(0,s.jsx)("span",{className:"jsx-2f9dd84a83fe5228 block bg-linear-to-r from-white via-emerald-200 to-white bg-clip-text text-transparent drop-shadow-2xl",children:"Master Chess"})," ",(0,s.jsx)("span",{className:"jsx-2f9dd84a83fe5228 block bg-linear-to-r from-emerald-400 via-amber-300 to-emerald-400 bg-clip-text text-transparent drop-shadow-2xl",children:"Like Never Before"})]}),(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 h-1 w-24 lg:w-32 bg-linear-to-r from-emerald-500 to-amber-500 mx-auto rounded-full"})]}),(0,s.jsxs)("div",{className:`jsx-2f9dd84a83fe5228 mb-8 lg:mb-12 transition-all duration-1000 delay-400 ${C?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[(0,s.jsx)("p",{className:"jsx-2f9dd84a83fe5228 text-base sm:text-lg lg:text-2xl text-slate-300 mb-4 font-light tracking-wide max-w-7xl mx-auto",children:"Challenge players worldwide ⢠Train with AI puzzles ⢠Analyze every move"}),(0,s.jsx)("p",{className:"jsx-2f9dd84a83fe5228 text-sm sm:text-base lg:text-lg text-slate-400 max-w-3xl mx-auto leading-relaxed",children:y.PAGE_SEO.home.description})]}),(0,s.jsxs)("div",{className:`jsx-2f9dd84a83fe5228 mb-12 lg:mb-16 transition-all duration-1000 delay-600 ${C?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 flex flex-row flex-wrap gap-3 items-center justify-center",children:[(0,s.jsx)(x.default,{href:"/play",className:"w-auto",children:(0,s.jsx)("button",{"aria-label":"Start playing chess now",className:"jsx-2f9dd84a83fe5228 group relative cursor-pointer bg-gradient-to-r from-emerald-600 to-emerald-500 hover:from-emerald-500 hover:to-emerald-400 text-white font-bold text-base sm:text-lg px-6 sm:px-8 lg:px-12 py-3 sm:py-4 lg:py-5 rounded-2xl transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-emerald-500/25 transform-gpu min-w-[150px]",children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 relative z-10 flex items-center justify-center",children:[(0,s.jsx)(l.Play,{className:"mr-3 h-5 w-5 sm:h-6 sm:w-6 group-hover:scale-110 transition-transform",fill:"
1currentColor"}),(0,s.jsx)("span",{className:"jsx-2f9dd84a83fe5228",children:"Play Now"}),(0,s.jsx)(n.ChevronRight,{className:"ml-2 h-4 w-4 sm:h-5 sm:w-5 group-hover:translate-x-1 transition-transform"})]})})}),(0,s.jsx)(x.default,{href:"/puzzles",className:"w-auto",children:(0,s.jsx)("button",{"aria-label":"Solve chess puzzles to improve",className:"jsx-2f9dd84a83fe5228 group relative cursor-pointer border-2 border-white/20 hover:border-amber-500/50 bg-white/5 hover:bg-white/10 backdrop-blur-md text-white font-bold text-base sm:text-lg px-6 sm:px-8 lg:px-12 py-3 sm:py-4 lg:py-5 rounded-2xl transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-amber-500/10 min-w-[150px]",children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 relative z-10 flex items-center justify-center",children:[(0,s.jsx)(r.Brain,{className:"mr-3 h-5 w-5 sm:h-6 sm:w-6 group-hover:scale-110 transition-transform"}),(0,s.jsx)("span",{className:"jsx-2f9dd84a83fe5228",children:"Solve Puzzles"})]})})})]}),e]}),!u&&(0,s.jsx)("div",{className:`jsx-2f9dd84a83fe5228 transition-all duration-1000 delay-800 ${C?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 grid grid-cols-2 gap-3 sm:gap-6 place-items-center text-center",children:[(0,s.jsx)(N,{icon:(0,s.jsx)(c.Target,{className:"w-6 h-6 sm:w-8 sm:h-8 text-amber-400 mr-2 sm:mr-3 group-hover:scale-110 transition-transform"}),value:z.totalPuzzles,label:"Daily Puzzles",sublabel:"Updated daily",iconColor:"amber"}),(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 group bg-white/5 backdrop-blur-md border border-white/10 rounded-2xl w-full sm:w-72 md:w-80 lg:w-96 p-4 sm:p-6 lg:p-8 hover:bg-white/10 hover:border-blue-500/30 transition-all duration-300 hover:scale-105 hover:shadow-xl",children:[(0,s.jsxs)("div",{className:"jsx-2f9dd84a83fe5228 flex items-center justify-center mb-2 sm:mb-3",children:[(0,s.jsx)(d.Trophy,{className:"w-6 h-6 sm:w-8 sm:h-8 text-blue-400 mr-2 sm:mr-3 group-hover:scale-110 transition-transform"}),(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 text-xl sm:text-3xl lg:text-4xl font-black text-white group-hover:text-blue-400 transition-colors",children:"Weekly"})]}),(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 text-slate-300 text-xs sm:text-base lg:text-lg font-medium",children:"Tournaments"}),(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 text-[10px] sm:text-xs text-slate-500 mt-1",children:"All skill levels"})]})]})})]}),(0,s.jsx)("div",{className:"jsx-2f9dd84a83fe5228 absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-slate-950 to-transparent pointer-events-none"}),(0,s.jsx)(j,{}),(0,s.jsx)(a.default,{id:"2f9dd84a83fe5228",children:"@keyframes pulse-slow{0%,to{opacity:.3;transform:scale(1)}50%{opacity:.8;transform:scale(1.05)}}.animate-pulse-slow.jsx-2f9dd84a83fe5228{animation:6s ease-in-out infinite pulse-slow}@media (prefers-reduced-motion:reduce){.jsx-2f9dd84a83fe5228{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}"})]})}var k=e.i(920851),S=e.i(856423),z=e.i(7219),T=e.i(768877),P=e.i(970065),A=e.i(167881);function $(){let e={initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6}},t=[{title:"Tactical Puzzles",desc:"Sharpen your tactical vision with thousands of curated puzzles",img:h.HeroImages.chessPuzzle,icon:k.Puzzle,iconColor:"text-amber-600",gradient:"from-amber-500 to-amber-600",points:["5 difficulty levels","Daily challenges"],buttonText:"Solve Puzzles",buttonColor:"bg-amber-600 hover:bg-amber-700",link:"/puzzles"},{title:"Interactive Lessons",desc:"Master chess fundamentals with structured learning paths",img:h.HeroImages.chessLearn,icon:S.BookOpen,iconColor:"text-blue-600",gradient:"from-blue-500 to-blue-600",points:["Beginner to advanced","Progress tracking"],buttonText:"Start Learning",buttonColor:"bg-blue-600 hover:bg-blue-700",link:"/learn"},{title:"Game Analysis",desc:"Deep analysis powered by advanced chess engines and AI",img:h.HeroImages.chessHero,icon:z.TrendingUp,iconColor:"text-purple-600",gradient:"from-purple-500 to-purple-600",points:["Engine analysis","Opening explorer"],buttonText:"Analyze Games",buttonColor:"bg-purple-600 hover:bg-purple-700",link:"/play"}];return(0,s.jsx)("section",{className:"py-16 px-4",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,s.jsxs)(g.motion.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[(0,s.jsx)("span",{className:"w-2 h-2 bg-primary rounded-full"}),"Chess Mastery Platform"]}),(0,s.jsxs)("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight text-foreground mb-6",children:["Everything You Need to"," ",(0,s.jsx)("span",{className:"text-primary",children:"Master Chess"})]}),(0,s.jsx)("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"From beginner lessons to grandmaster analysis, we provide tools for every skill level"})]}),(0,s.jsx)(g.motion.div,{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6 md:gap-8",variants:{animate:{transition:{staggerChildren:.12}}},initial:"initial",whileInView:"animate",viewport:{once:!0},children:t.map((t,a)=>{let l=t.icon;return(0,s.jsx)(g.motion.div,{variants:e,whileHover:{y:-5},transition:{duration:.3},className:2===a?"sm:col-span-2 xl:col-span-1":"",children:(0,s.jsx)(x.default,{href:t.link,children:(0,s.jsxs)(P.Card,{className:"h-full border-0 shadow-3d hover:shadow-elevated transition-all duration-300 overflow-hidden group pt-0 transform hover:-translate-y-1",children:[(0,s.jsxs)("div",{className:"relative overflow-hidden",children:[(0,s.jsx)("div",{className:`w-full h-48 bg-gradient-to-r ${t.gradient} rounded-t-lg overflow-hidden`,children:(0,s.jsx)(m.default,{src:t.img,alt:t.title,width:400,height:220,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),(0,s.jsx)("div",{className:"absolute top-4 right-4 bg-white/90 backdrop-blur-sm rounded-full p-2 shadow-md",children:(0,s.jsx)(l,{className:`h-5 w-5 ${t.iconColor}`})})]}),(0,s.jsxs)(P.CardHeader,{className:"pb-4",children:[(0,s.jsx)(P.CardTitle,{className:"text-lg md:text-xl",children:t.title}),(0,s.jsx)(P.CardDescription,{className:"text-sm md:text-base",children:t.desc})]}),(0,s.jsxs)(P.CardContent,{className:"pt-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-4",children:t.points.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[0!==t&&(0,s.jsx)("span",{className:"w-1 h-1 bg-muted-foreground rounded-full"}),(0,s.jsx)("span",{children:e})]},t))}),(0,s.jsxs)(A.Button,{className:`w-full text-white py-3 text-base font-medium ${t.buttonColor}`,children:[t.buttonText,(0,s.jsx)(T.ArrowRight,{className:"ml-2 h-4 w-4"})]})]})]})})},a)})})]})})}var D=e.i(474544),B=e.i(882303),I=e.i(149882),R=e.i(632781),L=e.i(994179),E=e.i(671428),H=e.i(511339);let F={initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.6}},M={animate:{transition:{staggerChildren:.1}}},W=e=>e&&e.amount?`â¹${e.amount.toLocaleString()}`:"Free",U=e=>{let s=e?.clockRules?.timeControls?.[0];if(s&&"number"==typeof s.timeSeconds&&"number"==typeof s.incrementSeconds)return(0,H.formatTimeControl)({timeControls:[{timeSeconds:s.timeSeconds,incrementSeconds:s.incrementSeconds}]});let t=e?.gameRules?.timeControl;return t?.timeControls?.length?(0,H.formatTimeControl)(t):"Standard"};function _(){let{isAuthenticated:e}=(0,b.useAuth)(),[a,l]=(0,t.useState)([]),[r,n]=(0,t.useState)([]),[o,c]=(0,t.useState)(!0);return(0,t.useEffect)(()=>{(async()=>{c(!0);try{let{live:e,upcoming:s}=await p.homeService.getTournaments();l(e||[]),n(s||[])}catch(e){console.error("Error fetching tournaments:",e),l([]),n([])}finally{c(!1)}})()},[]),(0,s.jsx)("section",{className:"py-12 md:py-16 lg:py-20 bg-gradient-to-b from-background to-muted/30",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)(g.motion.div,{className:"text-center mb-10 md:mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium mb-4 md:mb-6",children:[(0,s.jsx)(d.Trophy,{className:"w-4 h-4"}),"Compete & Win"]}),(0,s.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-foreground mb-4 md:mb-6",children:e?(0,s.jsxs)(s.Fragment,{children:["Your ",(0,s.jsx)("span",{className:"text-primary",children:"Tournament"})," Hub"]}):(0,s.jsxs)(s.Fragment,{children:["Join Exciting ",(0,s.jsx)("span",{className:"text-primary",children:"Tournaments"})]})}),(0,s.jsx)("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:e?"Compete in daily tournaments, climb the leaderboard, and win real prizes":"Register now to participate in tournaments with real prizes and compete with players worldwide"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 md:gap-8",children:[(0,s.jsx)(g.motion.div,{className:"lg:col-span-1",variants:F,initial:"initial",whileInView:"animate",viewport:{once:!0},children:(0,s.jsxs)(P.Card,{className:"h-full border-2 border-red-500/20 bg-gradient-to-br from-red-500/5 to-transparent",children:[(0,s.jsxs)(P.CardHeader,{className:"pb-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)(P.CardTitle,{className:"flex items-center gap-2 text-lg md:text-xl",children:[(0,s.jsxs)("span",{className:"relative flex h-3 w-3",children:[(0,s.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),(0,s.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-red-500"})]}),"Live Now"]}),(0,s.jsx)(L.Badge,{variant:"destructive",className:"animate-pulse",children:o?(0,s.jsx)(R.Loader2,{className:"h-3 w-3 animate-spin"}):`${a.length} Active`})]}),(0,s.jsx)(P.CardDescription,{children:"Watch and spectate ongoing matches"})]}),(0,s.jsxs)(P.CardContent,{className:"space-y-3 md:space-y-4",children:[o?Array.from({length:2}).map((e,t)=>
1(0,s.jsxs)("div",{className:"p-3 md:p-4 rounded-xl bg-background/50 border",children:[(0,s.jsx)(E.Skeleton,{className:"h-5 w-3/4 mb-2"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-1/2 mb-2"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-2/3"})]},t)):a.length>0?a.map(e=>(0,s.jsxs)("div",{className:"p-3 md:p-4 rounded-xl bg-background/50 border border-border/50 hover:border-primary/50 transition-all duration-300",children:[(0,s.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,s.jsx)("h4",{className:"font-semibold text-sm md:text-base truncate max-w-[150px] md:max-w-[200px]",children:e.name}),(0,s.jsxs)(L.Badge,{variant:"outline",className:"text-xs shrink-0 ml-2",children:["Round ",e.currentRound||1,"/",e.sections?.[0]?.rounds||1]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs md:text-sm text-muted-foreground mb-2",children:[(0,s.jsx)(B.Users,{className:"h-3 w-3 md:h-4 md:w-4"}),(0,s.jsxs)("span",{children:[void 0!==e.registeredPlayers?e.registeredPlayers:e.sections.reduce((e,s)=>e+(s.players?.length||0),0)," players"]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-xs md:text-sm",children:(0,s.jsx)("span",{className:"text-muted-foreground",children:U(e)})}),e.prizePool&&(0,s.jsx)(L.Badge,{variant:"secondary",className:"text-xs",children:W(e.prizePool)})]})]},e._id)):(0,s.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,s.jsx)(d.Trophy,{className:"h-12 w-12 mx-auto mb-3 opacity-50"}),(0,s.jsx)("p",{className:"text-sm",children:"No live tournaments"})]}),(0,s.jsx)(A.Button,{variant:"outline",className:"w-full mt-2",asChild:!0,children:(0,s.jsxs)(x.default,{href:"/tournaments",children:["Watch All",(0,s.jsx)(T.ArrowRight,{className:"ml-2 h-4 w-4"})]})})]})]})}),(0,s.jsx)(g.motion.div,{className:"lg:col-span-2",variants:M,initial:"initial",whileInView:"animate",viewport:{once:!0},children:(0,s.jsxs)(P.Card,{className:"h-full",children:[(0,s.jsx)(P.CardHeader,{className:"pb-4",children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(P.CardTitle,{className:"flex items-center gap-2 text-lg md:text-xl",children:[(0,s.jsx)(I.Calendar,{className:"h-5 w-5 text-primary"}),"Upcoming Tournaments"]}),(0,s.jsx)(P.CardDescription,{className:"mt-1",children:"Register now to secure your spot"})]}),(0,s.jsx)(A.Button,{size:"sm",asChild:!0,children:(0,s.jsxs)(x.default,{href:"/tournaments",children:["View All",(0,s.jsx)(T.ArrowRight,{className:"ml-1 h-4 w-4"})]})})]})}),(0,s.jsx)(P.CardContent,{children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3 md:gap-4",children:o?Array.from({length:3}).map((e,t)=>(0,s.jsx)(g.motion.div,{variants:F,children:(0,s.jsxs)("div",{className:"p-4 rounded-xl border h-full",children:[(0,s.jsx)(E.Skeleton,{className:"h-6 w-20 mb-3"}),(0,s.jsx)(E.Skeleton,{className:"h-5 w-3/4 mb-2"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-1/2 mb-1"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-2/3 mb-1"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-1/2 mb-3"}),(0,s.jsx)(E.Skeleton,{className:"h-9 w-full"})]})},t)):r.length>0?r.slice(0,6).map((t,a)=>{let l,r,n,o,d;return(0,s.jsx)(g.motion.div,{variants:F,children:(0,s.jsxs)("div",{className:"p-4 rounded-xl border bg-card hover:shadow-lg transition-all duration-300 hover:scale-[1.02] h-full flex flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsxs)(L.Badge,{variant:"live"===t.stage?"destructive":"registration"===t.stage?"default":"secondary",className:"text-xs",children:["live"===t.stage&&(0,s.jsx)(i.Zap,{className:"h-3 w-3 mr-1"}),"registration"===t.stage?"Open":t.stage.charAt(0).toUpperCase()+t.stage.slice(1)]}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:W(t.prizePool)})]}),(0,s.jsx)("h4",{className:"font-bold text-sm md:text-base mb-2 line-clamp-1",children:t.name}),(0,s.jsxs)("div",{className:"space-y-1.5 text-xs md:text-sm text-muted-foreground mb-3 flex-grow",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(D.Clock,{className:"h-3 w-3 md:h-4 md:w-4 shrink-0"}),(0,s.jsx)("span",{children:U(t)})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(B.Users,{className:"h-3 w-3 md:h-4 md:w-4 shrink-0"}),(0,s.jsx)("span",{children:t?.sections[0]?.name})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(I.Calendar,{className:"h-3 w-3 md:h-4 md:w-4 shrink-0"}),(0,s.jsx)("span",{children:(l=new Date(t.startDateTime),r=new Date,o=Math.floor((n=l.getTime()-r.getTime())/36e5),d=Math.floor(n/864e5),o<0?"In Progress":o<1?"Starting Soon":o<24?`In ${o} hours`:1===d?"Tomorrow":d<7?`In ${d} days`:l.toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}))})]})]}),e?(0,s.jsx)(A.Button,{size:"sm",className:"w-full mt-auto",variant:0===a?"default":"outline",asChild:!0,children:(0,s.jsx)(x.default,{href:`/tourn
1aments/upcoming/${t.slug||t._id}`,children:"registration"===t.stage?"Register":"View Details"})}):(0,s.jsx)(A.Button,{size:"sm",className:"w-full mt-auto",variant:"outline",asChild:!0,children:(0,s.jsx)(x.default,{href:"/play",children:"Sign in to Join"})})]})},t._id)}):(0,s.jsxs)("div",{className:"col-span-full text-center py-8 text-muted-foreground",children:[(0,s.jsx)(I.Calendar,{className:"h-12 w-12 mx-auto mb-3 opacity-50"}),(0,s.jsx)("p",{children:"No upcoming tournaments"}),(0,s.jsx)("p",{className:"text-sm mt-1",children:"Check back soon!"})]})})})]})})]})]})})}var V=e.i(591783),O=e.i(43011),G=e.i(808306),Y=e.i(91511),K=e.i(63270),q=e.i(27392);let J={initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6}},Z={animate:{transition:{staggerChildren:.08}}},X=e=>e>=1e6?`${(e/1e6).toFixed(1)}M+`:e>=1e3?`${(e/1e3).toFixed(0)}K+`:e>0?`${e}+`:"0";function Q(){let{isAuthenticated:e,session:a}=(0,b.useAuth)(),[l,r]=(0,t.useState)("standard"),[i,n]=(0,t.useState)({standard:[],blitz:[],bullet:[]}),[c,m]=(0,t.useState)(null),[h,u]=(0,t.useState)(!0);(0,t.useEffect)(()=>{(async()=>{u(!0);try{let[e,s,t,a]=await Promise.all([p.homeService.getTopPlayers("standard",5),p.homeService.getTopPlayers("blitz",5),p.homeService.getTopPlayers("bullet",5),p.homeService.getPlatformStats()]);n({standard:e,blitz:s,bullet:t}),m(a)}catch(e){console.error("Error fetching community data:",e)}finally{u(!1)}})()},[]);let f=i[l],j=[{label:"Active Players",value:X(c?.activePlayers||0),icon:B.Users},{label:"Games Played Today",value:X(c?.gamesToday||0),icon:G.Gamepad2},{label:"Tournaments This Week",value:X(c?.tournamentsThisWeek||0),icon:d.Trophy},{label:"Countries",value:X(c?.countries||0),icon:Y.Globe}];return(0,s.jsx)("section",{className:"py-12 md:py-16 lg:py-20 bg-muted/30",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)(g.motion.div,{className:"text-center mb-10 md:mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium mb-4 md:mb-6",children:[(0,s.jsx)(B.Users,{className:"w-4 h-4"}),"Global Community"]}),(0,s.jsxs)("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-foreground mb-4 md:mb-6",children:["Join Our ",(0,s.jsx)("span",{className:"text-primary",children:"Thriving"})," Community"]}),(0,s.jsx)("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"Connect with chess enthusiasts, compete for top rankings, and become part of the fastest-growing chess platform"})]}),(0,s.jsx)(g.motion.div,{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6 mb-10 md:mb-14",variants:Z,initial:"initial",whileInView:"animate",viewport:{once:!0},children:h?Array.from({length:4}).map((e,t)=>(0,s.jsx)(g.motion.div,{variants:J,children:(0,s.jsxs)(P.Card,{className:"text-center p-4 md:p-6",children:[(0,s.jsx)(E.Skeleton,{className:"h-10 w-10 mx-auto rounded-full mb-3"}),(0,s.jsx)(E.Skeleton,{className:"h-8 w-16 mx-auto mb-1"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-24 mx-auto"})]})},t)):j.map((e,t)=>{let a=e.icon;return(0,s.jsx)(g.motion.div,{variants:J,children:(0,s.jsxs)(P.Card,{className:"text-center p-4 md:p-6 bg-gradient-to-br from-card to-primary/5 border-primary/10 hover:border-primary/30 transition-all duration-300 hover:scale-105",children:[(0,s.jsx)("div",{className:"flex justify-center mb-3",children:(0,s.jsx)("div",{className:"p-2 md:p-3 rounded-full bg-primary/10",children:(0,s.jsx)(a,{className:"h-5 w-5 md:h-6 md:w-6 text-primary"})})}),(0,s.jsx)("div",{className:"text-xl sm:text-2xl md:text-3xl font-bold text-foreground mb-1",children:e.value}),(0,s.jsx)("div",{className:"text-xs sm:text-sm text-muted-foreground",children:e.label})]})},t)})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 md:gap-8",children:[(0,s.jsx)(g.motion.div,{variants:J,initial:"initial",whileInView:"animate",viewport:{once:!0},children:(0,s.jsxs)(P.Card,{className:"h-full",children:[(0,s.jsx)(P.CardHeader,{className:"pb-4",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(P.CardTitle,{className:"flex items-center gap-2 text-lg md:text-xl",children:[(0,s.jsx)(z.TrendingUp,{className:"h-5 w-5 text-primary"}),"Top Players"]}),(0,s.jsxs)(P.CardDescription,{className:"mt-1",children:[{standard:"Standard",blitz:"Blitz",bullet:"Bullet"}[l]," leaderboard"]})]}),(0,s.jsx)(A.Button,{size:"sm",variant:"outline",asChild:!0,children:(0,s.jsxs)(x.default,{href:`/leaderboard?mode=${l}`,children:["Full Rankings",(0,s.jsx)(T.ArrowRight,{className:"ml-1 h-4 w-4"})]})})]})}),(0,s.jsx)(P.CardContent,{className:"pt-0",children:(0,s.jsxs)("div",{className:"space-y-3",children:[h?Array.from({length:5}).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-4 p-3 md:p-4 roun
1ded-xl bg-muted/50",children:[(0,s.jsx)(E.Skeleton,{className:"h-8 w-8 rounded-full"}),(0,s.jsx)(E.Skeleton,{className:"h-10 w-10 rounded-full"}),(0,s.jsxs)("div",{className:"flex-grow",children:[(0,s.jsx)(E.Skeleton,{className:"h-4 w-32 mb-1"}),(0,s.jsx)(E.Skeleton,{className:"h-3 w-20"})]}),(0,s.jsx)(E.Skeleton,{className:"h-6 w-16"})]},t)):f.map((e,t)=>(0,s.jsxs)(g.motion.div,{className:`flex items-center gap-3 md:gap-4 p-3 md:p-4 rounded-xl transition-all duration-300 hover:scale-[1.02] ${t<3?"bg-gradient-to-r from-primary/10 to-transparent border border-primary/20":"bg-muted/50 hover:bg-muted"}`,initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.1*t},children:[(0,s.jsx)("div",{className:"w-8 flex justify-center shrink-0",children:(e=>{switch(e){case 1:return(0,s.jsx)(O.Crown,{className:"h-5 w-5 text-yellow-500"});case 2:return(0,s.jsx)(V.Medal,{className:"h-5 w-5 text-gray-400"});case 3:return(0,s.jsx)(V.Medal,{className:"h-5 w-5 text-amber-600"});default:return(0,s.jsxs)("span",{className:"text-sm font-bold text-muted-foreground",children:["#",e]})}})(t+1)}),(0,s.jsxs)(K.Avatar,{className:"h-9 w-9 md:h-10 md:w-10 border-2 border-primary/20 shrink-0",children:[(0,s.jsx)(K.AvatarImage,{src:e.profilePic,alt:e.name||e.username}),(0,s.jsx)(K.AvatarFallback,{children:e.name?.[0]||e.username?.[0]||"?"})]}),(0,s.jsxs)("div",{className:"flex-grow min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-semibold text-sm md:text-base truncate",children:e.name||e.username}),(0,s.jsx)("span",{className:"text-sm md:text-base",children:(0,s.jsx)(q.CountryFlag,{country:e.country})})]}),(0,s.jsxs)("div",{className:"text-xs md:text-sm text-muted-foreground",children:[e.wins," wins ⢠",e.games," games"]})]}),(0,s.jsx)("div",{className:"text-right shrink-0",children:(0,s.jsx)(L.Badge,{variant:"secondary",className:"font-bold text-xs md:text-sm",children:e.rating?.standard})})]},e.id)),!h&&0===f.length&&(0,s.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,s.jsx)(d.Trophy,{className:"h-12 w-12 mx-auto mb-3 opacity-50"}),(0,s.jsx)("p",{children:"No players found"})]})]})})]})}),(0,s.jsx)(g.motion.div,{variants:J,initial:"initial",whileInView:"animate",viewport:{once:!0},children:e&&a?.user?(0,s.jsxs)(P.Card,{className:"h-full bg-gradient-to-br from-primary/5 to-card",children:[(0,s.jsxs)(P.CardHeader,{className:"pb-4",children:[(0,s.jsxs)(P.CardTitle,{className:"flex items-center gap-2 text-lg md:text-xl",children:[(0,s.jsx)(o.Star,{className:"h-5 w-5 text-primary"}),"Your Progress"]}),(0,s.jsx)(P.CardDescription,{children:"Keep climbing the ranks!"})]}),(0,s.jsxs)(P.CardContent,{className:"space-y-4 md:space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 p-4 md:p-6 rounded-xl bg-card border",children:[(0,s.jsxs)(K.Avatar,{className:"h-14 w-14 md:h-16 md:w-16 border-2 border-primary shrink-0",children:[(0,s.jsx)(K.AvatarImage,{src:a.user.profilePic||"/assets/human.png"}),(0,s.jsx)(K.AvatarFallback,{children:a.user.name?.[0]||"U"})]}),(0,s.jsxs)("div",{className:"flex-grow min-w-0",children:[(0,s.jsx)("h4",{className:"font-bold text-base md:text-lg truncate",children:a.user.name}),(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Rating:"," ",a.user.rating?.standard||a.user.rating?.blitz||1500]})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 md:gap-4",children:[(0,s.jsxs)("div",{className:"p-3 md:p-4 roun
1ded-xl bg-card border text-center",children:[(0,s.jsx)("div",{className:"text-xl md:text-2xl font-bold text-primary",children:a.user.stats?.wins||0}),(0,s.jsx)("div",{className:"text-xs md:text-sm text-muted-foreground",children:"Wins"})]}),(0,s.jsxs)("div",{className:"p-3 md:p-4 rounded-xl bg-card border text-center",children:[(0,s.jsx)("div",{className:"text-xl md:text-2xl font-bold text-primary",children:a.user.stats?.totalGames||0}),(0,s.jsx)("div",{className:"text-xs md:text-sm text-muted-foreground",children:"Total Games"})]})]}),(0,s.jsx)(A.Button,{className:"w-full",size:"lg",asChild:!0,children:(0,s.jsxs)(x.default,{href:"/play",children:["Continue Playing",(0,s.jsx)(T.ArrowRight,{className:"ml-2 h-4 w-4"})]})})]})]}):(0,s.jsx)(P.Card,{className:"h-full bg-gradient-to-br from-primary/10 via-card to-primary/5 border-primary/20",children:(0,s.jsxs)(P.CardContent,{className:"flex flex-col items-center justify-center h-full py-8 md:py-12 text-center",children:[(0,s.jsx)("div",{className:"mb-4 md:mb-6 p-4 md:p-6 rounded-full bg-primary/10",children:(0,s.jsx)(d.Trophy,{className:"h-10 w-10 md:h-12 md:w-12 text-primary"})}),(0,s.jsx)("h3",{className:"text-xl md:text-2xl font-bold mb-2 md:mb-3",children:"Ready to Compete?"}),(0,s.jsx)("p",{className:"text-sm md:text-base text-muted-foreground mb-4 md:mb-6 max-w-sm",children:"Join our players, track your progress, and climb the global leaderboard"}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 w-full max-w-xs sm:max-w-none sm:w-auto",children:[(0,s.jsx)(A.Button,{size:"lg",className:"w-full sm:w-auto",asChild:!0,children:(0,s.jsxs)(x.default,{href:"/play",children:["Create Free Account",(0,s.jsx)(T.ArrowRight,{className:"ml-2 h-4 w-4"})]})}),(0,s.jsx)(A.Button,{size:"lg",variant:"outline",className:"w-full sm:w-auto",asChild:!0,children:(0,s.jsx)(x.default,{href:"/play",children:"Sign In"})})]})]})})})]})]})})}var ee=e.i(772382),es=e.i(203358),et=e.i(287336);let ea={initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6}},el={animate:{transition:{staggerChildren:.1}}},er=[{label:"Quick Play",icon:i.Zap,href:"/play",color:"bg-emerald-500"},{label:"Daily Puzzle",icon:k.Puzzle,href:"/puzzles",color:"bg-amber-500"},{label:"Learn",icon:S.BookOpen,href:"/learn",color:"bg-blue-500"},{label:"Tournaments",icon:d.Trophy,href:"/tournaments",color:"bg-purple-500"}];function ei(){let{isAuthenticated:e,session:a}=(0,b.useAuth)(),[l,r]=(0,t.useState)(null),[i,n]=(0,t.useState)([]),[o,u]=(0,t.useState)(null),[f,j]=(0,t.useState)(!0);return(0,t.useEffect)(()=>{(async()=>{j(!0);try{let[s,t]=await Promise.all([p.homeService.getPuzzleStats(),p.homeService.getRecentStreams(3)]);if(r(s),n(t),e&&a?.user?._id){let e=await p.homeService.getUserPuzzleStreaks(a.user._id);u(e)}}catch(e){console.error("Error fetching activity data:",e)}finally{j(!1)}})()},[e,a?.user?._id]),(0,s.jsx)("section",{className:"py-12 md:py-16 lg:py-20 bg-background",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)(g.motion.div,{className:"text-center mb-10 md:mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium mb-4 md:mb-6",children:[(0,s.jsx)(D.Clock,{className:"w-4 h-4"}),e?"Continue Your Journey":"What's Happening"]}),(0,s.jsx)("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-foreground mb-4 md:mb-6",children:e?(0,s.jsxs)(s.Fragment,{children:["Welcome Back,"," ",(0,s.jsx)("span",{className:"text-primary",children:a?.user?.name?.split(" ")[0]||"Player"}),"!"]}):(0,s.jsxs)(s.Fragment,{children:["Daily ",(0,s.jsx)("span",{className:"text-primary",children:"Activity"})," & Highlights"]})}),(0,s.jsx)("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:e?"Pick up where you left off or try something new today":"See what's happening in the chess world right now"})]}),e&&(0,s.jsx)(g.motion.div,{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mb-8 md:mb-12",variants:el,initial:"initial",whileInView:"animate",viewport:{once:!0},children:er.map((e,t)=>{let a=e.icon;return(0,s.jsx)(g.motion.div,{variants:ea,children:(0,s.jsx)(x.default,{href:e.href,children:(0,s.jsx)(P.Card,{className:"cursor-pointer group hover:shadow-lg transition-all duration-300 hover:scale-105 hover:border-primary/30",children:(0,s.jsxs)(P.CardContent,{className:"flex items-center gap-3 p-4 md:p-6",children:[(0,s.jsx)("div",{className:`p-2 md:p-3 rounded-xl ${e.color} text-white group-hover:scale-110 transition-transform`,children:(0,s.jsx)(a,{className:"h-5 w-5 md:h-6 md:w-6"})}),(0,s.jsx)("span",{className:"font-semibold text-sm md:text-base group-hover:text-primary transition-colors",children:e.label})]})})})},t)})}),(0,s.jsxs)(g.motion.div,{className:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8",variants:el,initial:"initial",whileInView:"animate",viewport:{once:!0},children:[(0,s.jsx)(g.motion.div,{variants:ea,children:(0,s.jsxs)(P.Card,{className:"h-full overflow-hidden group",children:[(0,s.jsxs)(P.CardHeader,{className:"pb-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)(P.CardTitle,{className:"flex items-center gap-2 text-lg md:text-xl",children:[(0,s.jsx)(c.Target,{className:"h-5 w-5 text-primary"}),"Daily Puzzle"]}),f?(0,s.jsx)(E.Skeleton,{className:"h-6 w-16"}):(0,s.jsx)(L.Badge,{variant:"outline",children:l?.totalPuzzles?`${l.totalPuzzles.toLocaleStr
1ing()} puzzles`:"Practice"})]}),(0,s.jsx)(P.CardDescription,{children:"Sharpen your tactical vision with daily challenges"})]}),(0,s.jsxs)(P.CardContent,{children:[(0,s.jsxs)("div",{className:"relative w-full aspect-square max-h-48 md:max-h-56 rounded-xl overflow-hidden mb-4 bg-gradient-to-br from-amber-100 to-amber-200 dark:from-amber-900/30 dark:to-amber-800/30",children:[(0,s.jsx)(m.default,{src:h.HeroImages.chessPuzzle,alt:"Daily Chess Puzzle",fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"}),(0,s.jsxs)("div",{className:"absolute bottom-3 left-3 right-3 flex justify-between items-end",children:[(0,s.jsx)("div",{children:f?(0,s.jsx)(E.Skeleton,{className:"h-5 w-24 bg-white/20"}):(0,s.jsxs)(L.Badge,{variant:"secondary",className:"bg-white/90 text-black text-xs",children:["Puzzle Rating: ",l?.avgRating||1500]})}),(0,s.jsx)("div",{className:"text-white text-xs",children:l?.totalPuzzles?`${l.totalPuzzles.toLocaleString()} available`:"Ready to solve"})]})]}),e?(0,s.jsxs)("div",{className:"space-y-3 mb-4",children:[(0,s.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Daily Streak"}),f?(0,s.jsx)(E.Skeleton,{className:"h-5 w-20"}):(0,s.jsxs)("span",{className:"font-bold text-primary",children:[o?.currentStreak||0," days ð¥"]})]}),(0,s.jsx)(et.Progress,{value:(o?.currentStreak||0)/30*100,className:"h-2"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Solve today's puzzle to keep your streak going!"})]}):(0,s.jsx)("div",{className:"p-3 rounded-lg bg-muted/50 mb-4",children:(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:[(0,s.jsx)("span",{className:"font-semibold text-foreground",children:"Sign in"})," ","to track your daily streak and compete on the leaderboard"]})}),(0,s.jsx)(A.Button,{className:"w-full",asChild:!0,children:(0,s.jsxs)(x.default,{href:"/puzzles",children:["Solve Puzzles",(0,s.jsx)(T.ArrowRight,{className:"ml-2 h-4 w-4"})]})})]})]})}),(0,s.jsx)(g.motion.div,{variants:ea,children:(0,s.jsxs)(P.Card,{className:"h-full",children:[(0,s.jsx)(P.CardHeader,{className:"pb-4",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(P.CardTitle,{className:"flex items-center gap-2 text-lg md:text-xl",children:[(0,s.jsx)(d.Trophy,{className:"h-5 w-5 text-primary"}),"Featured Streams"]}),(0,s.jsx)(P.CardDescription,{className:"mt-1",children:"Watch exciting chess content"})]}),(0,s.jsx)(A.Button,{size:"sm",variant:"outline",asChild:!0,children:(0,s.jsx)(x.default,{href:"/watch",children:"Watch Live"})})]})}),(0,s.jsxs)(P.CardContent,{className:"space-y-4",children:[f?Array.from({length:2}).map((e,t)=>(0,s.jsxs)("div",{className:"p-4 rounded-xl border bg-card",children:[(0,s.jsx)(E.Skeleton,{className:"h-5 w-3/4 mb-2"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-1/2 mb-2"}),(0,s.jsx)(E.Skeleton,{className:"h-4 w-2/3"})]},t)):i.length>0?i.map(e=>(0,s.jsxs)("div",{className:"p-4 rounded-xl border bg-card hover:shadow-md hover:border-primary/30 transition-all duration-300 cursor-pointer group",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsxs)("div",{className:"flex-grow",children:[(0,s.jsx)("h4",{className:"font-semibold text-sm md:text-base group-hover:text-primary transition-colors line-clamp-1",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-1 mt-1",children:e.description})]}),e.isLive&&(0,s.jsx)(L.Badge,{variant:"destructive",className:"ml-2 shrink-0",children:"Live"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(ee.Eye,{className:"h-3 w-3"}),e.viewsCount]}),(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(es.ThumbsUp,{
1className:"h-3 w-3"}),e.upvotes]})]}),(0,s.jsx)("span",{children:new Date(e.streamDate).toLocaleDateString()})]})]},e._id)):(0,s.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,s.jsx)(d.Trophy,{className:"h-12 w-12 mx-auto mb-3 opacity-50"}),(0,s.jsx)("p",{children:"No streams available"}),(0,s.jsx)("p",{className:"text-sm mt-1",children:"Check back soon!"})]}),(0,s.jsx)(A.Button,{variant:"outline",className:"w-full",asChild:!0,children:(0,s.jsxs)(x.default,{href:"/watch",children:["View All Streams",(0,s.jsx)(T.ArrowRight,{className:"ml-2 h-4 w-4"})]})})]})]})})]})]})})}var en=e.i(690699),en=en,eo=e.i(647163);let ed=t.forwardRef(({variant:e="default",demo:a=!1,onAcceptCallback:l=()=>{},className:r,description:i="We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.",learnMoreHref:n="/legal/privacy-policy",...o},d)=>{let[c,m]=t.useState(!1),[h,u]=t.useState(!1),p=t.useCallback(()=>{m(!1),document.cookie="cookieConsent=true; path=/; max-age=31536000; SameSite=Lax",localStorage.setItem("cookieConsent","true"),setTimeout(()=>{u(!0)},700),l()},[l]);if(t.useEffect(()=>{try{m(!0),(document.cookie.split(";").some(e=>e.trim().startsWith("cookieConsent=true"))||"true"===localStorage.getItem("cookieConsent"))&&!a&&(m(!1),setTimeout(()=>{u(!0)},700))}catch(e){console.warn("Cookie consent error:",e)}},[a]),h)return null;let g=(0,eo.cn)("fixed z-50 transition-all duration-700",c?"translate-y-0 opacity-100":"translate-y-full opacity-0",r),f={ref:d,className:(0,eo.cn)(g,"mini"===e?"left-0 right-0 bottom-4 w-full sm:left-auto sm:right-4 sm:max-w-3xl":"bottom-0 left-0 right-0 w-full sm:bottom-4 sm:left-auto sm:right-4 sm:max-w-md"),...o};return"default"===e?(0,s.jsx)("div",{...f,children:(0,s.jsxs)(P.Card,{className:"m-3 shadow-lg",children:[(0,s.jsxs)(P.CardHeader,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,s.jsx)(P.CardTitle,{className:"text-lg",children:"We use cookies"}),(0,s.jsx)(en.default,{className:"h-5 w-5"})]}),(0,s.jsxs)(P.CardContent,{className:"space-y-2",children:[(0,s.jsx)(P.CardDescription,{className:"text-sm",children:i}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["By clicking"," ",(0,s.jsx)("span",{className:"font-medium",children:'"Accept"'}),", you agree to our use of cookies."]}),(0,s.jsx)(x.default,{href:n,className:"text-xs text-primary underline underline-offset-4 hover:no-underline",children:"Learn more"})]}),(0,s.jsx)(P.CardFooter,{className:"pt-2",children:(0,s.jsx)(A.Button,{onClick:p,className:"flex-1",children:"Accept"})})]})}):"small"===e?(0,s.jsx)("div",{...f,children:(0,s.jsxs)(P.Card,{className:"m-3 shadow-lg",children:[(0,s.jsxs)(P.CardHeader,{className:"flex flex-row items-center justify-between space-y-0 pb-2 h-0 px-4",children:[(0,s.jsx)(P.CardTitle,{className:"text-base",children:"We use cookies"}),(0,s.jsx)(en.default,{className:"h-4 w-4"})]}),(0,s.jsx)(P.CardContent,{className:"pt-0 pb-2 px-4",children:(0,s.jsx)(P.CardDescription,{className:"text-sm",children:i})}),(0,s.jsx)(P.CardFooter,{className:"h-0 py-2 px-4",children:(0,s.jsx)(A.Button,{onClick:p,size:"sm",className:"flex-1 rounded-full",children:"Accept"})})]})}):"mini"===e?(0,s.jsx)("div",{...f,children:(0,s.jsx)(P.Card,{className:"mx-3 p-0 py-3 shadow-lg",children:(0,s.jsxs)(P.CardContent,{className:"sm:flex grid gap-4 p-0 px-3.5",children:[(0,s.jsx)(P.CardDescription,{className:"text-xs sm:text-sm flex-1",children:i}),(0,s.jsx)("div",{className:"flex items-center justify-end sm:gap-3",children:(0,s.jsxs)(A.Button,{onClick:p,size:"sm",className:"text-xs h-7",children:["Accept",(0,s.jsx)("span",{className:"sr-only sm:hidden",children:"Accept"})]})})]})})}):null});ed.displayName="CookieConsent";var ec=e.i(853138),em=e.i(53532),ex=e.i(846696),eh=e.i(912830);function eu(){let{signOut:e}=(0,b.useAuth)(),[a,l]=(0,t.useState)(!1),[r,i]=(0,t.useState)(null),[n,o]=(0,t.useState)(0),[d,c]=(0,t.useState)(!1),[m,x]=(0,t.useState)(!0);(0,t.useEffect)(()=>{let e=localStorage.getItem("isDeletionScheduled"),s=localStorage.getItem("scheduledDeletionDate");if("true"===e&&s){l(!0),i(s);let e=new Date(s),t=new Date;o(Math.max(0,Math.ceil((e.getTime()-t.getTime())/864e5)))}},[]);let h=async()=>{c(!0);
1try{await eh.authService.cancelAccountDeletion(),localStorage.removeItem("isDeletionScheduled"),localStorage.removeItem("deletionScheduledAt"),localStorage.removeItem("scheduledDeletionDate"),l(!1),ex.toast.success("Account deletion cancelled successfully!"),x(!1)}catch(e){console.error("Error cancelling deletion:",e),ex.toast.error("Failed to cancel account deletion. Please try again.")}finally{c(!1)}};return a&&m?(0,s.jsx)("div",{className:"container mx-auto px-4 pt-6",children:(0,s.jsx)(P.Card,{className:"bg-destructive/10 border-destructive/50 p-4 sm:p-6 mb-6",children:(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)(ec.AlertTriangle,{className:"h-6 w-6 text-destructive shrink-0 mt-1"}),(0,s.jsxs)("div",{className:"flex-1 space-y-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-lg text-destructive mb-1",children:"Account Deletion Scheduled"}),(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Your account will be permanently deleted in"," ",(0,s.jsxs)("span",{className:"font-bold text-destructive",children:[n," days"]}),"."]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,s.jsx)(A.Button,{onClick:h,disabled:d,className:"bg-green-600 hover:bg-green-700 text-white",children:d?"Cancelling...":"Cancel Deletion"}),(0,s.jsx)(A.Button,{variant:"outline",onClick:()=>{localStorage.clear(),e(),window.location.href="/login"},disabled:d,className:"border-destructive text-destructive hover:bg-destructive/10",children:"Log Out"})]})]}),(0,s.jsx)("button",{onClick:()=>x(!1),className:"text-muted-foreground hover:text-foreground shrink-0","aria-label":"Dismiss banner",children:(0,s.jsx)(em.X,{className:"h-5 w-5"})})]})})}):null}var ep=e.i(375775),eg=e.i(24071),ef=e.i(165489);let eb=/^#[0-9a-f]{6}([0-9a-f]{2})?$/i;function ej(e,s){return e&&eb.test(e)?e:s}function ev(e){let s=e.webTarget;if(!s?.value)return null;if("external"===s.type)try{let e=new URL(s.value);return["http:","https:"].includes(e.protocol)?e.toString():null}catch{return null}return s.value.startsWith("/")?s.value:`/${s.value}`}function ew({banners:e}){let t=e.filter(e=>"marquee"===e.type);return 0===t.length?null:(0,s.jsx)("section",{"aria-label":"Chessveda announcements",className:"absolute inset-x-0 top-0 z-30",children:t.map(e=>{let t=ev(e),a=(0,s.jsxs)("div",{className:"mx-auto flex min-h-10 max-w-7xl items-center justify-center gap-2.5 px-4 py-2 text-center text-sm font-semibold sm:px-6",children:[(0,s.jsx)(ef.Megaphone,{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),(0,s.jsx)("span",{children:e.text||e.title}),t&&(0,s.jsx)(n.ChevronRight,{"aria-hidden":"true",className:"h-4 w-4 shrink-0"})]});return t?(0,s.jsx)(x.default,{href:t,target:"external"===e.webTarget.type?"_blank":void 0,rel:"external"===e.webTarget.type?"noreferrer":void 0,className:"block transition-[filter] hover:brightness-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white",style:{backgroundColor:ej(e.backgroundColor,"#2f6b35"),color:ej(e.textColor,"#ffffff")},children:a},e._id):(0,s.jsx)("div",{style:{backgroundColor:ej(e.backgroundColor,"#2f6b35"),color:ej(e.textColor,"#ffffff")},children:a},e._id)})})}function ey({banners:e}){let[a,l]=(0,t.useState)(0),[r,i]=(0,t.useState)(!1),o=e.filter(e=>"image"===e.type&&!!e.imageUrl);if((0,t.useEffect)(()=>{if(o.length<2||r)return;let e=window.setInterval(()=>{l(e=>(e+1)%o.length)},5e3);return()=>window.clearInterval(e)},[o.length,r]),0===o.length)return null;let d=o[a];return(0,s.jsx)("section",{"aria-label":"Featured Chessveda promotions",className:"w-full",children:d&&(0,s.jsx)("div",{className:"px-1 pt-6 sm:px-3 sm:pt-8",children:(0,s.jsxs)("div",{className:"group relative mx-auto w-full max-w-7xl",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocusCapture:()=>i(!0),onBlurCapture:()=>i(!1),children:[(0,s.jsxs)(x.default,{href:ev(d)??"",target:"external"===d.webTarget.type?"_blank":void 0,rel:"external"===d.webTarget.type?"noreferrer":void 0,"aria-label":d.title,className:"relative block aspect-16/11 overflow-hidden shadow-2xl shadow-black/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-400",children:[(0,s.jsx)(m.default,{src:d.imageUrl,alt:d.title,fill:!0,priority:0===a,sizes:"(max-width: 640px) 100v
1w, (max-width: 1280px) 95vw, 1280px",className:"object-contain transition duration-500 group-hover:scale-[1.015]"},d._id),"external"===d.webTarget.type&&(0,s.jsx)("span",{className:"absolute right-3 top-3 rounded-full bg-black/55 p-2 text-white backdrop-blur-md sm:right-4 sm:top-4",children:(0,s.jsx)(ep.ArrowUpRight,{"aria-hidden":"true",className:"h-4 w-4"})})]}),o.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>l(e=>(e-1+o.length)%o.length),"aria-label":"Previous banner",className:"absolute left-2 top-1/2 grid h-9 w-9 -translate-y-1/2 place-items-center rounded-full border border-white/15 bg-black/55 text-white backdrop-blur-md transition hover:bg-black/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-400 sm:left-4 sm:h-10 sm:w-10",children:(0,s.jsx)(eg.ChevronLeft,{"aria-hidden":"true",className:"h-5 w-5"})}),(0,s.jsx)("button",{type:"button",onClick:()=>l(e=>(e+1)%o.length),"aria-label":"Next banner",className:"absolute right-2 top-1/2 grid h-9 w-9 -translate-y-1/2 place-items-center rounded-full border border-white/15 bg-black/55 text-white backdrop-blur-md transition hover:bg-black/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-400 sm:right-4 sm:h-10 sm:w-10",children:(0,s.jsx)(n.ChevronRight,{"aria-hidden":"true",className:"h-5 w-5"})}),(0,s.jsx)("div",{className:"mt-3 flex justify-center gap-1.5",role:"tablist","aria-label":"Choose a banner",children:o.map((e,t)=>(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":t===a,"aria-label":`Show banner ${t+1}: ${e.title}`,onClick:()=>l(t),className:`h-1.5 rounded-full transition-all ${t===a?"w-6 bg-emerald-400":"w-1.5 bg-white/30 hover:bg-white/60"}`},e._id))})]})]})})})}var eN=e.i(949131);let eC={async getActiveBanners(){try{return((await eN.api.get("/banners/active")).data.data??[]).sort((e,s)=>e.sortOrder-s.sortOrder)}catch(e){return console.error("Failed to load homepage banners",e),[]}}};function ek(){let{session:e}=(0,b.useAuth)(),[a,l]=(0,t.useState)(!1),[r,i]=(0,t.useState)([]);(0,t.useEffect)(()=>
1{l(!!localStorage.getItem("isDeletionScheduled"))},[]);let n=r.some(e=>"image"===e.type&&!!e.imageUrl);return(0,t.useEffect)(()=>{let e=!0;return eC.getActiveBanners().then(s=>{e&&i(s)}),()=>{e=!1}},[]),(0,s.jsxs)("div",{className:"min-h-screen bg-background",children:[e?.user&&a&&(0,s.jsx)(eu,{}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(ew,{banners:r}),(0,s.jsx)(C,{afterActions:(0,s.jsx)(ey,{banners:r}),hideStats:n})]}),(0,s.jsx)($,{}),(0,s.jsx)(_,{}),(0,s.jsx)(ei,{}),(0,s.jsx)(Q,{}),(0,s.jsx)(ed,{variant:"default",onAcceptCallback:()=>{localStorage.setItem("cookieConsent","true")}})]})}e.s(["default",()=>ek],61096)}]);
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.