1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,578320,178343,382989,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(647163);let a=(0,r.createContext)({currentMedia:null,isPlaying:!1,play:()=>{},pause:()=>{},stop:()=>{},activeMediaId:null});function s({children:e}){let[l,s]=(0,r.useState)(null),[i,n]=(0,r.useState)(!1),[o,c]=(0,r.useState)(null),d=(0,r.useRef)(null),u=(0,r.useCallback)(e=>{let t=e.id||e.url;d.current===t&&i||(d.current=t,c(t),l?.url===e.url?n(!0):(n(!1),setTimeout(()=>{s(e),n(!0)},10)))},[l,i]),m=(0,r.useCallback)(()=>{n(!1)},[]),h=(0,r.useCallback)(()=>{s(null),n(!1),c(null),d.current=null},[]);return(0,t.jsx)(a.Provider,{value:{currentMedia:l,isPlaying:i,play:u,pause:m,stop:h,activeMediaId:o},children:e})}function i(){let e=(0,r.useContext)(a);if(!e)throw Error("useMedia must be used within a MediaProvider");return e}e.s(["MediaProvider",()=>s,"useMedia",()=>i],178343);var n=e.i(846932),o=e.i(88653),c=e.i(563662),d=e.i(657688),u=e.i(90382),m=e.i(41533);let h=(0,r.forwardRef)(({media:e,post:a,layout:s="standard",captions:h=[],qualities:x=[],className:f},p)=>{let{currentMedia:b,isPlaying:g,play:v,pause:j,activeMediaId:w}=i(),[y,N]=(0,r.useState)(1),[k,C]=(0,r.useState)(!1),[S,T]=(0,r.useState)(!1),[E,M]=(0,r.useState)(0),[L,z]=(0,r.useState)(0),[I,P]=(0,r.useState)(!0),[B,A]=(0,r.useState)(1),[q,R]=(0,r.useState)(0),[V,D]=(0,r.useState)(!1),[F,G]=(0,r.useState)(!1),[U,W]=(0,r.useState)(!0),[O,$]=(0,r.useState)("auto"),[H,K]=(0,r.useState)(!1),_=(0,r.useRef)(null),J=(0,r.useRef)(null),Q=(0,r.useRef)(null),X=(()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{t(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e})(),Y=w===(e.id||e.url),Z=x.length>0?x:[{label:"auto",url:e.url}],ee=()=>{if(!_.current)return;U&&W(!1);let t=b?.url===e.url&&Y;V&&t?j():v(e)},et=async()=>{if(J.current)try{document.fullscreenElement?await document.exitFullscreen():await J.current.requestFullscreen()}catch(e){console.error("Fullscreen toggle failed:",e)}},er=()=>{_.current&&z(_.current.currentTime)},el=()=>{P(!0),K(!0),Q.current&&clearTimeout(Q.current),Q.current=setTimeout(()=>{V&&!H&&P(!1)},3e3)},ea=()=>{K(!1),Q.current&&clearTimeout(Q.current),Q.current=setTimeout(()=>{V&&!H&&P(!1)},1e3)};return(0,r.useImperativeHandle)(p,()=>({togglePlay:ee,isCurrentlyPlaying:V})),(0,r.useEffect)(()=>{let e=_.current;if(!e)return;e.volume=y,e.muted=k;let t=()=>{M(e.duration)},r=()=>{e.buffered.length>0&&R(e.buffered.end(e.buffered.length-1))},l=()=>{G(!0)},a=()=>{G(!1)},s=()=>{G(!1),W(!1)};return e.addEventListener("loadedmetadata",t),e.addEventListener("progress",r),e.addEventListener("waiting",l),e.addEventListener("canplay",a),e.addEventListener("playing",s),e.addEventListener("timeupdate",er),()=>{e.removeEventListener("loadedmetadata",t),e.removeEventListener("progress",r),e.removeEventListener("waiting",l),e.removeEventListener("canplay",a),e.removeEventListener("playing",s),e.removeEventListener("timeupdate",er)}},[y,k]),(0,r.useEffect)(()=>{let e=()=>{T(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[]),(0,r.useEffect)(()=>{let t=_.current;if(!t)return;let r=g&&Y&&b?.url===e.url;r!==V&&D(r),r?(W(!1),t.paused&&t.play().catch(console.error)):t.paused||t.pause()},[g,b,e.url,s,Y,w]),(0,r.useEffect)(()=>{let e=J.current;if(!e||"standard"!==s)return;let t=()=>{el()},r=()=>{ea()};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",r),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r),Q.current&&clearTimeout(Q.current)}},[s,V,H]),(0,t.jsxs)("div",{ref:J,className:(0,l.cn)("relative bg-[#0a0a0a] overflow-hidden group rounded-lg /border border-white/10 backdrop-blur-sm select-none","standard"===s&&"aspect-video",f),onMouseEnter:el,onMouseLeave:ea,onContextMenu:e=>e.preventDefault(),children:[(0,t.jsx)("video",{ref:_,src:(()=>{if("auto"===O||!x.length)return e.url;let t=Z.find(e=>e.label===O);return t?.url||e.url})(),className:(0,l.cn)("w-full h-full object-contain rounded-lg pointer-events-none",U&&"opacity-0"),poster:e.thumbnail,preload:"metadata",onClick:"standard"===s?ee:void 0,playsInl
1ine:!0,draggable:!1,controlsList:"nodownload",onContextMenu:e=>e.preventDefault(),children:h.map((e,r)=>(0,t.jsx)("track",{kind:"subtitles",src:e.src,srcLang:e.srcLang,label:e.label},r))}),(0,t.jsx)("div",{className:"absolute inset-0 z-0",onClick:"standard"===s?ee:void 0,onContextMenu:e=>e.preventDefault()}),U&&e.thumbnail&&(0,t.jsx)(n.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 flex items-center justify-center cursor-pointer rounded-xl overflow-hidden",onClick:ee,children:(0,t.jsx)(d.default,{src:e.thumbnail,alt:e.alt||"Video thumbnail",fill:!0,className:"object-contain",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",priority:!0})}),"masonry"===s&&(0,t.jsx)("div",{className:"absolute top-0 left-0 right-0 z-30 pb-2 transition-all duration-300",children:(0,t.jsx)("div",{className:"relative group/progress",children:(0,t.jsx)(u.Slider,{value:[L],min:0,max:E||100,step:.1,onValueChange:e=>{if(!_.current)return;let t=e[0];_.current.currentTime=t,z(t)},hideThumb:!0,className:(0,l.cn)("cursor-pointer h-[1px] transition-all duration-300 relative z-10","[--slider-track-bg:rgba(255,255,255,0.2)]",`[--slider-range-bg:${m.theme.colors.primary.DEFAULT}]`)})})}),"standard"===s&&(0,t.jsx)(o.AnimatePresence,{children:(I||!V)&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.3},className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent p-4 rounded-b-xl",onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1),children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)("div",{className:"rounded-full",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(u.Slider,{value:[L],max:E||1,step:.1,onValueChange:([e])=>{_.current&&(_.current.currentTime=e,z(e))},className:(0,l.cn)("w-full cursor-pointer rounded-full","[--slider-track-bg:rgba(255,255,255,0.2)]",`[--slider-range-bg:${m.theme.colors.primary.DEFAULT}]`,"[--slider-thumb-border:white]","[--slider-thumb-bg:rgba(1,1,1,0.9)]")})})}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(n.motion.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:ee,className:"w-10 h-10 rounded-full bg-white/10 backdrop-blur-md border border-white/20 flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,t.jsx)(c.Icon,{icon:V?"solar:pause-bold":"solar:play-bold",className:"w-5 h-5 text-white"})}),(0,t.jsx)(n.motion.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:()=>{if(!_.current)return;let e=!k;C(e),_.current.muted=e},className:"w-8 h-8 rounded-full bg-white/10 backdrop-blur-md border border-white/20 flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,t.jsx)(c.Icon,{icon:k||0===y?"solar:volume-cross-bold":y<.5?"solar:volume-small-bold":"solar:volume-loud-bold",className:"w-4 h-4 text-white"})}),!X&&(0,t.jsx)("div",{className:"group/volume flex items-center",children:(0,t.jsx)("div",{className:"w-16",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(u.Slider,{value:[k?0:100*y],max:100,step:1,onValueChange:([e])=>{let t=e/100;N(t),_.current&&(_.current.volume=t,t>0&&k&&(C(!1),_.current.muted=!1))},className:(0,l.cn)("w-full cursor-pointer rounded-full","[--slider-track-bg:rgba(255,255,255,0.2)]",`[--slider-range-bg:${m.theme.colors.primary.DEFAULT}]`,"[--slider-thumb-border:white]","[--slider-thumb-bg:rgba(1,1,1,0.9)]")})})}),(0,t.jsxs)("span",{className:"text-white text-sm font-medium",children:[(0,l.formatTime)(L)," / ",(0,l.formatTime)(E)]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(n.motion.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:()=>{if(!_.current)return;let e=[.5,.75,1,1.25,1.5,2],t=e.indexOf(B),r=e[(t+1)%e.length];A(r),_.current.playbackRate=r},className:"w-8 h-8 rounded-full bg-white/10 backdrop-blur-md border border-white/20 flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,t.jsxs)("span",{className:"text-white text-xs font-bold",children:[B,"x"]})}),!X&&(0,t.jsx)(n.motion.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():_.current&&await _.current.requestPictureInPicture()}catch(e){console.error("Picture-in-Picture failed:",e)}},className:"w-8 h-8 rounded-full bg-white/10 backdrop-blur-md border border-white/20 flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,t.jsx)(c.Icon,{icon:"solar:pip-bold",className:"w-4 h-4 text-white"})}),(0,t.jsx)(n.motion.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:et,className:"w-8 h-8 rounded-full bg-white/10 backdrop-blur-md border border-white/20 flex items-center justify-center hover:bg-white/20 transition-colors",children:(0,t.jsx)(c.Icon,{icon:S?"solar:minimize-bold":"solar:maximize-bold",className:"w-4 h-4 text-white"})})]})]})]})}),(0,t.jsx)(o.AnimatePresence,{children:F&&(0,t.jsx)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 flex items-center justify-center z-30 bg-black/50 backdrop-blur-sm rounded-xl",children:(0,t.jsx)(n.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},style:{border:"solid 4px",borderColor:m.theme.colors.primary.opacity(30),borderTop:"solid 4px",borderTopColor:m.theme.colors.primary.DEFAULT},className:"w-12 h-12 rounded-full flex items-center justify-center"})})})]})});h.displayName="VideoPlayer",e.s(["VideoPlayer",0,h],578320);var x=e.i(167881),f=e.i(292192),p=e.i(728231),b=e.i(829939);let g=({isPlaying:e,className:l=""})=>{let a=(0,r.useRef)(),s=(0,r.useRef)(0),[i,o]=(0,r.useState)(["","",""]),c=[{amplitude:7.5,frequency:.025,speed:.024,phaseOffset:0,organicMultiplier:.3,opacity:1,strokeWidth:3,gradientId:"gradient1",glowId:"glow1"},{amplitude:5,frequency:.035,speed:.036,phaseOffset:Math.PI/3,organicMultiplier:.4,opacity:.8,strokeWidth:2.55,gradientId:"gradient2",glowId:"glow2"},{amplitude:4,frequency:.018,speed:.018,phaseOffset:Math.PI/1.5,organicMultiplier:.5,opacity:.7,strokeWidth:2.0999999999999996,gradientId:"gradient3",glowId:"glow3"}],d="#ffffff",u="#FD8D41",m="#872676",h="#ffffff",x="#60a5fa",f="#3b82f6",p="#ffffff",b="#38bdf8",g="#0ea5e9",v=(t,r)=>{let l=[];for(let a=0;a<=150;a++){let s=a,i=a/150*100,n=50;if(e){let e=r+t.phaseOffset,l=Math.sin(t.frequency*s+e*t.speed);n=50+t.amplitude*l;let a=.001*Date.now();n+=Math.sin(t.frequency*s*.7+.08*e+.3*a)*(t.amplitude*t.organicMultiplier)+Math.cos(t.frequency*s*1.5+e*t.speed*.6)*(.15*t.amplitude)}0===a?l.push(`M ${i} ${n}`):l.push(`L ${i} ${n}`)}return l.join(" ")},j=()=>{e?(s.current+=1,o(c.map(e=>v(e,s.current)))):o(c.map(e=>v({...e,amplitude:0},0))),a.current=requestAnimationFrame(j)};return(0,r.useEffect)(()=>(a.current=requestAnimationFrame(j),()=>{a.current&&cancelAnimationFrame(a.current)}),[e]),(0,r.useEffect)(()=>{o(c.map(e=>v({...e,amplitude:0},0)))},[]),(0,t.jsx)(n.motion.div,{className:`relative w-full ${l}`,children:(0,t.jsxs)("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"w-full h-full",style:{overflow:"visible"},children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"gradient1",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:d}),(0,t.jsx)("stop",{offset:"50%",stopColor:u}),(0,t.jsx)("stop",{offset:"100%",stopColor:m})]}),(0,t.jsxs)("linearGradient",{id:"gradient2",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:h}),(0,t.jsx)("stop",{offset:"50%",stopColor:x}),(0,t.jsx)("stop",{offset:"100%",stopColor:f})]}),(0,t.jsxs)("linearGradient",{id:"gradient3",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:p}),(0,t.jsx)("stop",{offset:"50%",stopColor:b}),(0,t.jsx)("stop",{offset:"100%",stopColor:g})]}),(0,t.jsxs)("filter",{id:"glow1",x:"-100%",y:"-100%",width:"300%",height:"300%",children:[(0,t.jsx)("feGaussianBlur",{stdDeviation:5,result:"coloredBlur"}),(0,t.jsxs)("feMerge",{children:[(0,t.jsx)("feMergeNode",{in:"coloredBlur"}),(0,t.jsx)("feMergeNode",{in:"coloredBlur"}),(0,t.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,t.jsxs)("filter",{id:"glow2",x:"-100%",y:"-100%",width:"300%",height:"300%",children:[(0,t.jsx)("feGaussianBlur",{stdDeviation:4,result:"coloredBlur"}),(0,t.jsxs)("feMerge",{children:[(0,t.jsx)("feMergeNode",{in:"coloredBlur"}),(0,t.jsx)("feMergeNode",{in:"coloredBlur"}),(0,t.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,t.jsxs)("filter",{id:"glow3",x:"-100%",y:"-100%",width:"300%",height:"300%",children:[(0,t.jsx)("feGaussianBlur",{stdDeviation:3,result:"coloredBlur"}),(0,t.jsxs)("feMerge",{children:[(0,t.jsx)("feMergeNode",{in:"coloredBlur"}),(0,t.jsx)("feMergeNode",{in:"coloredBlur"}),(0,t.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})]}),c.map((e,r)=>(0,t.jsx)("path",{d:i[r],fill:"none",stroke:`url(#${e.gradientId})`,strokeWidth:e.strokeWidth,opacity:e.opacity,filter:`url(#${e.glowId})`,vectorEffect:"non-scaling-stroke"},r))]})})},v=(0,r.forwardRef)(({media:e,layout:a="standard",isHovered:s},h)=>{let v,{currentMedia:j,isPlaying:w,play:y,pause:N}=i(),[k,C]=(0,r.useState)(1),[S,T]=(0,r.useState)(!1),[E,M]=(0,r.useState)(0),[L,z]=(0,r.useState)(0),[I,P]=(0,r.useState)(!1),[B,A]=(0,r.useState)(!1),[q,R]=(0,r.useState)(!1),[V,D]=(0,r.useState)(!1),F=(0,r.useRef)(null),G=(0,r.useRef)(null),U=(0,r.useRef)(null),W=(0,r.useRef)(null),O=(0,b.useIsMobile)(),[$,H]=(0,r.useState)(0),K=w&&j?.url===e.url;(0,r.useEffect)(()=>{let e=()=>{H(window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{let e=F.current;if(!e)return;let t=()=>{M(e.duration)},r=()=>{I?(e.currentTime=0,e.play()):N()};return e.addEventListener("loadedmetadata",t),e.addEventListener("ended",r),()=>{e.removeEventListener("loadedmetadata",t),e.removeEventListener("ended",r)}},[I,N]),(0,r.useEffect)(()=>
1{if(!O||!V)return;let e=e=>{G.current&&!G.current.contains(e.target)&&D(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[V,O]),(0,r.useEffect)(()=>{let e=F.current;e&&(K?e.play():e.pause())},[K]),(0,r.useEffect)(()=>{F.current&&(F.current.volume=S?0:k)},[k,S]);let _=()=>{K?(console.log("pause"),N()):(console.log("play"),y(e))};(0,r.useImperativeHandle)(h,()=>({togglePlay:_,isCurrentlyPlaying:K}));let J=()=>{T(!S)},Q=e=>{let t=e[0];C(t),T(0===t)},X=()=>{F.current&&z(F.current.currentTime)},Y=e=>{if(!F.current)return;let t=e[0];F.current.currentTime=t,z(t)},Z=()=>S||0===k?(0,t.jsx)(c.Icon,{icon:"solar:volume-cross-linear",className:"h-5 w-5"}):k<.5?(0,t.jsx)(c.Icon,{icon:"solar:volume-small-linear",className:"h-5 w-5"}):(0,t.jsx)(c.Icon,{icon:"solar:volume-loud-linear",className:"h-5 w-5"});if("masonry"===a)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"z-30 absolute top-2 right-2 flex items-center group/volume /relative",children:[!O&&(0,t.jsx)("div",{className:"w-0 overflow-hidden group-hover/volume:w-[100px] transition-all duration-300 ease-out ml-1",children:(0,t.jsx)("div",{className:"bg-black/30 backdrop-blur-md rounded-full py-2 px-3",children:(0,t.jsx)(u.Slider,{value:[S?0:k],min:0,max:1,step:.01,onValueChange:Q,className:"relative z-40"})})}),(0,t.jsx)(p.TooltipProvider,{children:(0,t.jsxs)(p.Tooltip,{children:[(0,t.jsx)(p.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(n.motion.button,{whileHover:{scale:1.1},whileTap:{scale:.95},className:"relative group flex items-center justify-center w-8 h-8 rounded-full hover: bg-black/40",onClick:J,children:Z()})}),(0,t.jsx)(p.TooltipContent,{children:(0,t.jsx)("p",{children:S?"Unmute":"Mute"})})]})})]}),(0,t.jsx)("div",{className:"absolute top-0 left-0 right-0 z-30 pb-2 transition-all duration-300",children:(0,t.jsx)("div",{className:"relative group/progress",children:(0,t.jsx)(u.Slider,{value:[L],min:0,max:E||100,step:.1,onValueChange:Y,hideThumb:!0,className:(0,l.cn)("cursor-pointer h-[1px] transition-all duration-300 relative z-10","[--slider-track-bg:rgba(255,255,255,0.2)]",`[--slider-range-bg:${m.theme.colors.primary.DEFAULT}]`)})})}),(0,t.jsxs)("div",{className:(0,l.cn)("size-full z-10 transition-all duration-500 ease-in-out flex items-center justify-center relative",s?"p-4/":"p-0"),children:[(0,t.jsx)("audio",{ref:F,src:e.url,onTimeUpdate:X}),(0,t.jsx)("img",{src:e.thumbnail,className:(0,l.cn)(s?"scale-125 opacity-20":"opacity-70 scale-100","transition-all duration-500 ease-in-out z-0 absolute brightness-75"),alt:""}),(0,t.jsx)("div",{className:(0,l.cn)(s?"opacity-100 translate-y-0":"opacity-0 translate-y-8","absolute transition-all duration-500 ease-in-out w-full h-full pt-32 bottom-0 flex flex-col items-center justify-center text-center"),children:(0,t.jsx)("div",{className:"w-full h-full max-h-full",children:(0,t.jsx)(f.default,{lyrics:e.songLyrics||"This song does not contain any lyrics",bgImage:e.thumbnail,progress:L,duration:E})})}),(0,t.jsxs)("div",{className:(0,l.cn)("transition-all duration-500 ease-in-out h-full aspect-square relative flex items-center justify-center",s?"p-4 -translate-y-[50%]":"p-0"),children:[(0,t.jsxs)(n.motion.div,{className:`size-full shadow-xl shadow-orange-100/10 overflow-hidden ${K&&s?"animate-slow-spin":""} z-10 relative`,initial:{borderRadius:"0%"},animate:{borderRadius:s?"50%":"0%"},transition:{duration:.5,ease:"easeInOut"},children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,l.cn)("absolute inset-0 transition-all duration-500 ease-in-out mix-blend-overlay z-10",s?"opacity-100":"opacity-0"),viewBox:"0 0 400 400",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("filter",{id:"noise",x:"0%",y:"0%",width:"100%",height:"100%",children:[(0,t.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.65",numOctaves:"3",stitchTiles:"stitch"}),(0,t.jsx)("feColorMatrix",{type:"saturate",values:"0"}),(0,t.jsx)("feBlend",{mode:"overlay",in:"SourceGraphic"})]}),(0,t.jsxs)("radialGradient",{id:"vignette",cx:"50%",cy:"50%",r:"70%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.5)"})]})]}),(0,t.jsx)("rect",{x:"0",y:"0",width:"400",height:"400",fill:"gray",filter:"url
1(#noise)"}),(0,t.jsx)("rect",{x:"0",y:"0",width:"400",height:"400",fill:"url(#vignette)"})]}),(0,t.jsx)("img",{src:e.thumbnail,className:"w-full h-full object-cover",alt:""})]}),(0,t.jsx)("div",{className:(0,l.cn)("transition-all duration-500 ease-in-out absolute bg-white/60 backdrop-blur-sm rounded-full z-20",s?"opacity-100":"opacity-0"),children:(0,t.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("radialGradient",{id:"at-grad",cx:"50%",cy:"50%",r:"60%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.35)"}),(0,t.jsx)("stop",{offset:"70%",stopColor:"rgba(255,255,255,0.05)"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"rgba(255,255,255,0)"})]}),(0,t.jsxs)("filter",{id:"at-inner-shadow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[(0,t.jsx)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"4",result:"blur"}),(0,t.jsx)("feOffset",{dy:"1",in:"blur",result:"offsetBlur"}),(0,t.jsx)("feComposite",{in:"offsetBlur",in2:"SourceAlpha",operator:"out",result:"innerShadow"}),(0,t.jsx)("feColorMatrix",{in:"innerShadow",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"innerShadow",mode:"normal"})]})]}),(0,t.jsx)("circle",{cx:"40",cy:"40",r:"39",stroke:"rgba(255,255,255,0.7)",strokeWidth:"1.5",fill:"gray",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"40",cy:"40",r:"22",fill:"url(#at-grad)",filter:"url(#at-inner-shadow)"}),(0,t.jsxs)("g",{children:[(0,t.jsx)("circle",{cx:"40",cy:"40",r:"22",fill:"rgba(255,255,255,0.12)"}),(0,t.jsx)("path",{d:"M18 40a22 22 0 0 1 44 0",fill:"none",stroke:"rgba(255,255,255,0.25)",strokeWidth:"4",strokeLinecap:"round"})]})]})}),(0,t.jsx)("div",{className:(0,l.cn)("absolute inset-0 z-30 flex items-center justify-center pointer-events-none transition-all duration-500 ease-in-out",s?"opacity-0":"opacity-100",K?"bg-black/70":"bg-transparent"),children:(0,t.jsx)(g,{isPlaying:K})}),(0,t.jsx)("div",{className:(0,l.cn)("absolute z-40 pointer-events-none transition-all duration-500 ease-in-out bottom-10 left-0 right-0 text-center w-fit mx-auto text-xl font-bold text-nowrap",K&&!s?"opacity-100":"opacity-0"),children:(0,t.jsx)("div",{style:{background:m.theme.gradients.primaryTriple.horizontal()},className:"bg-[length:200%_200%] animate-gradient-x bg-clip-text text-transparent",children:"Now Playing"})})]})]})]});let ee=(e.songLyrics||"").split("\n").filter(e=>{let t=e.trim();return t&&!(t.startsWith("[")&&t.endsWith("]"))}),et=ee.length,er=Math.floor(L/(E>0&&et>0?E/et:1));(0,r.useEffect)(()=>{if(U.current&&er>=0&&er<et){let e=U.current.children[er];e&&e.scrollIntoView({behavior:"smooth",block:"center"})}if(W.current&&er>=0&&er<et){let e=W.current.querySelector("div.flex.flex-col");if(e){let t=e.children[er];t&&t.scrollIntoView({behavior:"smooth",block:"center"})}}},[er,et,q]);let el=()=>{F.current&&(F.current.currentTime=Math.max(0,L-5))},ea=()=>{F.current&&(F.current.currentTime=Math.min(E,L+5))};return O?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("audio",{ref:F,src:e.url,onTimeUpdate:X}),(0,t.jsxs)("div",{className:"w-full bg-[#0a0a0a] rounded-xl overflow-hidden shadow-lg md:hidden",children:[(0,t.jsxs)("div",{className:"relative w-full aspect-square overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)(d.default,{src:e.thumbnail||"",alt:e.title||"Album cover",className:"w-full h-full object-cover blur-3xl op
1acity-50 scale-150",width:1e3,height:1e3})}),(0,t.jsx)(o.AnimatePresence,{mode:"wait",children:q?(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:"relative h-full flex flex-col p-6 bg-black/60 backdrop-blur-sm ",children:(0,t.jsx)("div",{ref:W,className:"flex-1 overflow-y-auto overflow-x-hidden px-2",style:{scrollbarWidth:"thin",scrollbarColor:"rgba(255, 255, 255, 0.3) transparent"},children:ee.length>0?(0,t.jsx)("div",{className:"flex flex-col space-y-3",children:ee.map((e,r)=>{let a=r===er;return(0,t.jsx)("p",{className:(0,l.cn)("text-sm font-normal transition-colors duration-300 leading-relaxed text-center",a?"text-white font-semibold scale-105":"text-gray-400"),children:e},r)})}):(0,t.jsx)("p",{className:"text-gray-400 text-center text-sm",children:"No lyrics available"})})},"lyrics"):(0,t.jsx)(n.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3},className:"relative h-full flex items-center justify-center p-6",children:(0,t.jsx)("div",{className:"w-full max-w-xs aspect-square rounded-2xl overflow-hidden shadow-2xl",children:(0,t.jsx)(d.default,{src:e.thumbnail||"",alt:e.title||"Album cover",className:"w-full h-full object-cover",width:1e3,height:1e3})})},"cover")})]}),(0,t.jsxs)("div",{className:"bg-gradient-to-t from-[#0a0a0a] via-[#0a0a0a] to-[#0a0a0a] pt-6 pb-6 px-6 space-y-5",children:[(0,t.jsxs)("div",{className:"text-center space-y-1",children:[(0,t.jsx)("h3",{className:"text-xl font-bold text-white",children:e.title?.split(" - ")[1]||e.title||"Song Title"}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:e.name||"Unknown Artist"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.Slider,{value:[L],min:0,max:E||100,step:.1,onValueChange:Y,"aria-label":"Seek time",className:"w-full"}),(0,t.jsxs)("div",{className:"flex justify-between text-xs text-gray-400",children:[(0,t.jsx)("span",{children:(0,l.formatTime)(L)}),(0,t.jsx)("span",{children:(0,l.formatTime)(E)})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:()=>R(!q),className:(0,l.cn)("h-10 w-10 rounded-full",q?"text-white bg-white/20":"text-gray-400 hover:text-white"),"aria-label":q?"Hide lyrics":"Show lyrics",children:(0,t.jsx)(c.Icon,{icon:"solar:document-text-linear",className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:el,className:"h-10 w-10 rounded-full text-gray-400 hover:text-white","aria-label":"Skip backward",children:(0,t.jsx)(c.Icon,{icon:"mingcute:rewind-backward-square-5-line",className:"h-6 w-6"})}),(0,t.jsx)(x.Button,{size:"icon",onClick:_,className:"h-14 w-14 rounded-full bg-white text-black hover:bg-gray-200 shadow-lg","aria-label":K?"Pause":"Play",children:K?(0,t.jsx)(c.Icon,{icon:"solar:pause-bold",className:"h-7 w-7"}):(0,t.jsx)(c.Icon,{icon:"solar:play-bold",className:"h-7 w-7"})}),(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:ea,className:"h-10 w-10 rounded-full text-gray-400 hover:text-white","aria-label":"Skip forward",children:(0,t.jsx)(c.Icon,{icon:"mingcute:rewind-forward-square-5-line",className:"h-6 w-6"})})]}),(0,t.jsxs)("div",{className:"relative flex items-center",ref:G,children:[(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:()=>D(!V),className:"h-10 w-10 rounded-full text-gray-400 hover:text-white","aria-label":"Volume control",children:Z()}),(0,t.jsx)(o.AnimatePresence,{children:V&&(0,t.jsx)(n.motion.div,{initial:{height:0,opacity:0,y:10},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:10},transition:{duration:.3,ease:"easeInOut"},className:"absolute bottom-full right-0 mb-2 overflow-hidden z-50",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"px-3 py-4 bg-black/90 backdrop-blur-md rounded-lg border border-white/10 shadow-xl",children:(0,t.jsx)("div",{className:"flex flex-col items-center h-32",children:(0,t.jsx)(u.Slider,{value:[S?0:k],min:0,max:1,step:.
101,onValueChange:Q,orientation:"vertical",className:"h-full",style:{"--slider-track-bg":"rgba(255, 255, 255, 0.2)","--slider-range-bg":"#ffffff","--slider-thumb-bg":"#ffffff","--slider-thumb-border":"rgba(255, 255, 255, 0.3)"},"aria-label":"Volume"})})})})})]})]})]})]})]}):(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 w-full bg-card rounded-xl overflow-hidden shadow-lg backdrop-blur-sm hover:shadow-xl transition-all duration-300 relative",children:[(0,t.jsx)("audio",{ref:F,src:e.url,onTimeUpdate:X}),(0,t.jsxs)("div",{className:"relative w-full h-full min-h-[400px] xl:min-h-[500px] overflow-hidden bg-black",children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-10 blur-[5px]",children:(0,t.jsx)(d.default,{src:e.thumbnail||"",alt:e.title||"Album cover",className:"w-full h-full object-cover scale-110",width:1e3,height:1e3})}),(0,t.jsx)(d.default,{src:e.thumbnail||"",alt:e.title||"Album cover",className:"w-full h-full object-cover relative z-10",width:1e3,height:1e3}),(0,t.jsx)("div",{className:(0,l.cn)("absolute inset-0 z-30 flex items-center justify-center pointer-events-none transition-all duration-500 ease-in-out",s?"opacity-0":"opacity-100",K?"bg-black/70":"bg-transparent"),children:(0,t.jsx)(g,{isPlaying:K})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/20 to-transparent z-20"}),(0,t.jsx)("div",{className:"hidden md:flex xl:hidden absolute inset-0 z-40 items-end justify-center pointer-events-none",children:(0,t.jsx)("div",{ref:W,className:(0,l.cn)("absolute top-0 left-0 right-0 w-full max-w-md bg-black/60 backdrop-blur-md p-2","max-h-[60%] overflow-y-auto pointer-events-auto","scroll-smooth border border-white/10"),style:{scrollbarWidth:"thin",scrollbarColor:"rgba(255, 255, 255, 0.3) transparent"},children:ee.length>0?(0,t.jsx)("div",{className:"flex flex-col space-y-2",children:ee.map((e,r)=>{let a=r===er;return(0,t.jsx)("p",{className:(0,l.cn)("text-sm font-normal transition-colors duration-300 leading-relaxed",a?"text-white font-medium":"text-gray-400"),children:e},r)})}):(0,t.jsx)("p",{className:"text-gray-400 text-sm",children:"No lyrics available"})})})]}),(0,t.jsxs)("div",{className:"w-full bg-[#0a0a0a] p-4 md:p-6 flex flex-col min-h-[400px] md:min-h-[500px]",children:[(0,t.jsx)("div",{ref:U,className:(0,l.cn)("flex flex-col justify-start space-y-2 mb-2 overflow-y-auto","max-h-[120px] sm:max-h-[140px]","md:hidden xl:block xl:max-h-[200px]","scroll-smooth"),style:{scrollbarWidth:"thin",scrollbarColor:"rgba(75, 85, 99, 0.5) transparent"},children:ee.length>0?ee.map((e,r)=>{let a=r===er;return(0,t.jsx)("p",{className:(0,l.cn)("text-sm font-normal transition-colors duration-300 leading-relaxed px-1",a?"text-white font-medium":"text-gray-500"),children:e},r)}):(0,t.jsx)("p",{className:"text-gray-400 dark:text-gray-500 text-sm md:text-base",children:"No lyrics available"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-start space-y-2 my-6 overflow-y-auto",children:[(0,t.jsxs)("div",{className:"space-y-1 mb-2",children:[(0,t.jsx)("h3",{className:"text-xl md:text-2xl font-bold text-white",children:e.title?.split(" - ")[1]||e.title||"Song Title"}),(0,t.jsx)("p",{className:"text-sm md:text-base text-gray-400",children:e.name||"Unknown Artist"})]}),(0,t.jsxs)("div",{className:"space-y-2 mb-3",children:[(0,t.jsx)(u.Slider,{value:[L],min:0,max:E||100,step:.1,onValueChange:Y,"aria-label":"Seek time",className:"w-full"}),(0,t.jsxs)("div",{className:"flex justify-between text-sm text-gray-400",children:[(0,t.jsx)("span",{children:(0,l.formatTime)(L)}),(0,t.jsx)("span",{children:(0,l.formatTime)(E)})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:el,className:"h-8 w-8 flex md:hidden lg:flex rounded-full text-gray-400 hover:text-white","aria-label":"Skip backward",children:(0,t.jsx)(c.Icon,{icon:"mingcute:rewind-backward-square-5-line",className:"h-5 w-5"})}),(0,t.jsx)(x.Button,{size:"icon",onClick:_,className:"h-10 w-10 rounded-full bg-white text-black hover:bg-gray-200","aria-label":K?"Pause":"Play",children:K?(0,t.jsx)(c.Icon,{icon:"ph:pause-fill",className:"h-6 w-6"}):(0,t.jsx)(c.Icon,{icon:"ph:play-fill",className:"h-6 w-6"})}),(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:ea,className:"h-8 w-8 flex md:hidden lg:flex rounded-full text-gray-400 hover:text-white","aria-label":"Skip forward",children:(0,t.jsx)(c.Icon,{icon:"mingcute:rewind-forward-square-5-line",className:"h-5 w-5"})})]}),(0,t.jsxs)("div",{className:"flex items-center",ref:G,onMouseEnter:()=>{clearTimeout(v),A(!0)},onMouseLeave:()=>{v=setTimeout(()=>{A(!1)},300)},children:[(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:J,className:"h-8 w-8 text-gray-400 hover:text-white","aria-label":S?"Unmute":"Mute",children:Z()}),(0,t.jsx)(o.AnimatePresence,{children:B&&(0,t.jsx)(n.motion.div,{initial:{width:0,opacity:0}
1,animate:{width:"auto",opacity:1},exit:{width:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:(0,t.jsx)("div",{className:"px-3 py-1.5 rounded-full",children:(0,t.jsx)(u.Slider,{value:[S?0:k],min:0,max:1,step:.01,onValueChange:Q,className:"w-20 rounded-full relative z-10 h-1!important","aria-label":"Volume"})})})})]})]})]})]})]})});e.s(["AudioPlayer",0,v],382989)}]);
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.