playron 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/playron.cjs.js
CHANGED
|
@@ -240,7 +240,7 @@ Char: `+L[G])}return G+1&&(G+=1),U}if(L.charCodeAt(G+1)===M){G=L.indexOf(de,G),G
|
|
|
240
240
|
opacity: 0.5;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
`})]})}function Ym({seconds:u=15}){const{skipBackward:e}=kr(),{isLive:t}=Lr();if(t)return null;const n=()=>{e(u)};return fe.jsx("button",{className:`virtus-btn virtus-skip-backward-button ${as.controlButton}`,"aria-label":`Skip Backward ${u}s`,onClick:n,style:{position:"relative"},children:fe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[fe.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("path",{d:"M2 12l-2-2m2 2l2-2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("text",{x:"12",y:"16",fontSize:"10",fill:"currentColor",textAnchor:"middle",fontWeight:"bold",children:u})]})})}function Wm({seconds:u=15}){const{skipForward:e}=kr(),{isLive:t}=Lr();if(t)return null;const n=()=>{e(u)};return fe.jsx("button",{className:`virtus-btn virtus-skip-forward-button ${as.controlButton}`,"aria-label":`Skip Forward ${u}s`,onClick:n,style:{position:"relative"},children:fe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[fe.jsx("path",{d:"M12 2c5.5 0 10 4.5 10 10s-4.5 10-10 10-10-4.5-10-10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("path",{d:"M22 12l2-2m-2 2l-2-2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("text",{x:"12",y:"16",fontSize:"10",fill:"currentColor",textAnchor:"middle",fontWeight:"bold",children:u})]})})}function Xm({sliderDirection:u="right",theme:e}){const t={sliderBackground:e?.sliderBackground??"rgba(10, 10, 20, 0.88)",borderColor:e?.borderColor??"rgba(255,255,255,0.1)",buttonBackground:e?.buttonBackground??"rgba(255,255,255,0.1)",buttonHoverBackground:e?.buttonHoverBackground??"rgba(255,255,255,0.2)",iconColor:e?.iconColor??"#fff",trackColor:e?.trackColor??"rgba(255,255,255,0.3)",fillColor:e?.fillColor??"#3b82f6",handleColor:e?.handleColor??"#fff"},{isMuted:n,volume:r}=Lr(),{toggleMute:i,setVolume:o}=kr(),[l,d]=yt.useState(!1),[c,g]=yt.useState(!1),f=yt.useRef(null),h=u==="top"||u==="bottom",y=yt.useCallback((Z,pe)=>{if(!f.current)return;const be=f.current.getBoundingClientRect(),Ce=h?Math.max(0,Math.min(1,1-(pe-be.top)/be.height)):Math.max(0,Math.min(1,(Z-be.left)/be.width));o(Ce)},[o,h]),E=yt.useCallback(Z=>{g(!0),y(Z.clientX,Z.clientY)},[y]);yt.useEffect(()=>{if(!c)return;const Z=be=>y(be.clientX,be.clientY),pe=()=>g(!1);return window.addEventListener("mousemove",Z),window.addEventListener("mouseup",pe),()=>{window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",pe)}},[c,y]);const S=n?0:r,C=l||c,K={position:"absolute",opacity:C?1:0,transition:"all 0.25s ease",pointerEvents:C?"auto":"none",zIndex:10,background:t.sliderBackground,backdropFilter:"blur(12px)",boxShadow:"4px 0 16px rgba(0,0,0,0.5)",overflow:"hidden"},J=(()=>{const Z=`1px solid ${t.borderColor}`;switch(u){case"left":return{...K,right:"40px",top:"0",width:C?"118px":"0px",height:"40px",paddingRight:"8px",borderRadius:"8px 0 0 8px",border:Z,borderRight:"none"};case"top":return{...K,bottom:"40px",left:"0",width:"40px",height:C?"118px":"0px",paddingBottom:"8px",borderRadius:"8px 8px 0 0",border:Z,borderBottom:"none"};case"bottom":return{...K,top:"40px",left:"0",width:"40px",height:C?"118px":"0px",paddingTop:"8px",borderRadius:"0 0 8px 8px",border:Z,borderTop:"none"};default:return{...K,left:"40px",top:"0",width:C?"118px":"0px",height:"40px",paddingLeft:"8px",borderRadius:"0 8px 8px 0",border:Z,borderLeft:"none"}}})(),re=h?{width:"40px",height:"110px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative",outline:"none"}:{width:"110px",height:"40px",display:"flex",alignItems:"center",cursor:"pointer",position:"relative",paddingRight:"8px",outline:"none"},ye=h?{width:"4px",height:"100%",backgroundColor:t.trackColor,borderRadius:"2px",position:"relative"}:{width:"100%",height:"4px",backgroundColor:t.trackColor,borderRadius:"2px",position:"relative"},Ie=h?{position:"absolute",bottom:0,left:0,right:0,height:`${S*100}%`,backgroundColor:t.fillColor,borderRadius:"2px",transition:c?"none":"height 0.1s ease"}:{position:"absolute",left:0,top:0,bottom:0,width:`${S*100}%`,backgroundColor:t.fillColor,borderRadius:"2px",transition:c?"none":"width 0.1s ease"},we=c?14:12,$=h?{position:"absolute",bottom:`calc(${S*100}% - ${S*we}px)`,left:"50%",transform:"translateX(-50%)",width:`${we}px`,height:`${we}px`,backgroundColor:t.handleColor,borderRadius:"50%",boxShadow:"0 2px 4px rgba(0,0,0,0.3)",transition:c?"none":"all 0.2s ease"}:{position:"absolute",left:`calc(${S*100}% - ${S*we}px)`,top:"50%",transform:"translateY(-50%)",width:`${we}px`,height:`${we}px`,backgroundColor:t.handleColor,borderRadius:"50%",boxShadow:"0 2px 4px rgba(0,0,0,0.3)",transition:c?"none":"all 0.2s ease"};return fe.jsxs("div",{className:"virtus-volume-control",style:{position:"relative",display:"flex",alignItems:"center",height:"40px",width:"40px"},children:[fe.jsx("button",{className:"virtus-btn virtus-mute-button","aria-label":n?"Unmute":"Mute",onClick:i,style:{background:t.buttonBackground,border:"none",borderRadius:"8px",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,position:"relative",zIndex:1},onMouseEnter:Z=>{d(!0),Z.currentTarget.style.background=t.buttonHoverBackground,Z.currentTarget.style.transform="scale(1.05)"},onMouseLeave:Z=>{Z.currentTarget.style.background=t.buttonBackground,Z.currentTarget.style.transform="scale(1)"},children:n||r===0?fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:t.iconColor,viewBox:"0 0 24 24",children:fe.jsx("path",{d:"M5.707 4.293a1 1 0 0 0-1.414 1.414l14 14a1 1 0 0 0 1.414-1.414l-.004-.005C21.57 16.498 22 13.938 22 12a9.972 9.972 0 0 0-2.929-7.071 1 1 0 1 0-1.414 1.414A7.972 7.972 0 0 1 20 12c0 1.752-.403 3.636-1.712 4.873l-1.433-1.433C17.616 14.37 18 13.107 18 12c0-1.678-.69-3.197-1.8-4.285a1 1 0 1 0-1.4 1.428A3.985 3.985 0 0 1 16 12c0 .606-.195 1.335-.59 1.996L13 11.586V6.135c0-1.696-1.978-2.622-3.28-1.536L7.698 6.284l-1.99-1.991Z"})}):r<.5?fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:t.iconColor,viewBox:"0 0 24 24",children:fe.jsx("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06Z"})}):fe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:t.iconColor,viewBox:"0 0 24 24",children:[fe.jsx("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06Z"}),fe.jsx("path",{d:"M18.584 5.106a.75.75 0 0 1 1.06 0 11.5 11.5 0 0 1 0 13.588.75.75 0 0 1-1.06-1.06 10 10 0 0 0 0-11.468.75.75 0 0 1 0-1.06Z"}),fe.jsx("path",{d:"M15.932 7.757a.75.75 0 0 1 1.061 0 6.5 6.5 0 0 1 0 8.486.75.75 0 0 1-1.06-1.06 5 5 0 0 0 0-6.366.75.75 0 0 1 0-1.06Z"})]})}),fe.jsx("div",{onMouseEnter:()=>d(!0),onMouseLeave:()=>{c||d(!1)},style:J,children:fe.jsx("div",{ref:f,role:"slider",tabIndex:0,"aria-label":"Volume","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(S*100),"aria-valuetext":n?"Muted":`${Math.round(S*100)}%`,onMouseDown:E,onKeyDown:Z=>{const Ce=n?0:r;switch(Z.key){case"ArrowRight":case"ArrowUp":Z.preventDefault(),o(Math.min(1,Ce+.05));break;case"ArrowLeft":case"ArrowDown":Z.preventDefault(),o(Math.max(0,Ce-.05));break;case"PageUp":Z.preventDefault(),o(Math.min(1,Ce+.2));break;case"PageDown":Z.preventDefault(),o(Math.max(0,Ce-.2));break;case"Home":Z.preventDefault(),o(0);break;case"End":Z.preventDefault(),o(1);break;case"m":case"M":Z.preventDefault(),i();break}},style:re,children:fe.jsxs("div",{style:ye,children:[fe.jsx("div",{style:Ie}),fe.jsx("div",{style:$})]})})})]})}const hA=[.25,.5,.75,1,1.25,1.5,1.75,2];function gA(){const{setPlaybackRate:u}=kr(),[e,t]=yt.useState(1),n=yt.useCallback(i=>{u(i),t(i)},[u]),r=e===1?"1×":`${e}×`;return fe.jsxs(Bm,{children:[fe.jsx(jm,{children:fe.jsx("button",{className:"virtus-speed-button","aria-label":`Playback speed: ${r}`,"aria-haspopup":"true",style:{background:"transparent",border:"none",color:"white",cursor:"pointer",padding:"8px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",height:"40px",minWidth:"40px",transition:"all 0.2s ease",fontSize:"13px",fontWeight:"600",letterSpacing:"-0.3px",whiteSpace:"nowrap"},onMouseEnter:i=>{i.currentTarget.style.background="rgba(255, 255, 255, 0.15)",i.currentTarget.style.transform="scale(1.05)"},onMouseLeave:i=>{i.currentTarget.style.background="transparent",i.currentTarget.style.transform="scale(1)"},title:"Playback speed",children:r})}),fe.jsx(qm,{placement:"top-right",children:fe.jsxs("div",{style:{minWidth:"130px"},children:[fe.jsx("div",{style:{padding:"8px 12px",fontSize:"12px",fontWeight:"600",color:"rgba(255, 255, 255, 0.6)",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Speed"}),[...hA].reverse().map(i=>fe.jsx(Yl,{selected:e===i,onClick:()=>n(i),children:fe.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:fe.jsx("span",{children:i===1?"1× (Normal)":`${i}×`})})},i))]})})]})}const bu=yt.createContext({textColor:"#fff",accentColor:"#6366f1",accentAlpha15:"rgba(99,102,241,0.15)",accentAlpha30:"rgba(99,102,241,0.3)",borderColor:"rgba(255,255,255,0.07)"});function Ih(u,e){const t=u.replace("#",""),n=t.length===3?t.split("").map(l=>l+l).join(""):t,r=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),o=parseInt(n.slice(4,6),16);return isNaN(r)||isNaN(i)||isNaN(o)?`rgba(99,102,241,${e})`:`rgba(${r},${i},${o},${e})`}const mA=60,pA=[.25,.5,.75,1,1.25,1.5,1.75,2],yA={position:"absolute",backdropFilter:"blur(16px)",borderRadius:"14px",overflow:"hidden",zIndex:9999,animation:"settingsFadeIn 0.18s ease-out",fontFamily:"system-ui, -apple-system, sans-serif",transition:"width 0.2s ease"},EA={display:"flex",alignItems:"center",gap:"8px",padding:"11px 14px",fontSize:"13px",fontWeight:600},bA={display:"flex",alignItems:"center",width:"100%",padding:"9px 14px",background:"transparent",border:"none",cursor:"pointer",fontSize:"13.5px",textAlign:"left",gap:"10px",outline:"none",transition:"background 0.12s"};function wh({values:u,color:e,gradId:t}){if(u.length<2)return fe.jsx("svg",{width:292,height:52,style:{display:"block"},children:fe.jsx("line",{x1:0,y1:52/2,x2:292,y2:52/2,stroke:"rgba(255,255,255,0.08)",strokeWidth:1,strokeDasharray:"4 4"})});const i=Math.max(...u,.001),o=u.map((g,f)=>[f/(mA-1)*292,48-g/i*42]),l=o.map(([g,f],h)=>`${h===0?"M":"L"}${g.toFixed(1)},${f.toFixed(1)}`).join(" "),d=l+` L${292 .toFixed(1)},52 L0,52 Z`,c=o[o.length-1];return fe.jsxs("svg",{width:292,height:52,style:{display:"block",overflow:"visible"},children:[fe.jsx("defs",{children:fe.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[fe.jsx("stop",{offset:"0%",stopColor:e,stopOpacity:.4}),fe.jsx("stop",{offset:"100%",stopColor:e,stopOpacity:.02})]})}),fe.jsx("path",{d,fill:`url(#${t})`}),fe.jsx("path",{d:l,fill:"none",stroke:e,strokeWidth:1.8,strokeLinejoin:"round",strokeLinecap:"round"}),fe.jsx("circle",{cx:c[0],cy:c[1],r:3.5,fill:e}),fe.jsx("circle",{cx:c[0],cy:c[1],r:6,fill:e,fillOpacity:.25})]})}function Sr({label:u,value:e,icon:t,onClick:n,selected:r=!1,isBack:i=!1}){const[o,l]=yt.useState(!1),{textColor:d,accentColor:c,accentAlpha15:g,accentAlpha30:f}=yt.useContext(bu);return fe.jsxs("button",{role:"menuitem","aria-checked":r,onClick:n,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...bA,color:d,background:o?"rgba(255,255,255,0.07)":r?g:"transparent",fontWeight:r?600:400,justifyContent:"space-between"},children:[fe.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0},children:[i?fe.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.6)",strokeWidth:"2.5",style:{flexShrink:0},children:fe.jsx("polyline",{points:"15 18 9 12 15 6"})}):t?fe.jsx("span",{style:{width:"28px",height:"28px",borderRadius:"7px",background:r?f:"rgba(255,255,255,0.08)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:r?c:"rgba(255,255,255,0.65)",transition:"background 0.15s, color 0.15s"},children:t}):r?fe.jsx("svg",{"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:c,strokeWidth:"3",style:{flexShrink:0},children:fe.jsx("polyline",{points:"20 6 9 17 4 12"})}):fe.jsx("span",{style:{display:"inline-block",width:"14px",flexShrink:0}}),fe.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u})]}),e!==void 0&&fe.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[fe.jsx("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.45)",maxWidth:"90px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),fe.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.35)",strokeWidth:"2.5",children:fe.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]})}function Rh(){const{borderColor:u}=yt.useContext(bu);return fe.jsx("div",{style:{height:"1px",background:u,margin:"2px 0"}})}function Qm({theme:u,panelPosition:e}={}){const t=u?.accentColor??"#6366f1",n=u?.textColor??"#fff",r=u?.background??"rgba(12, 12, 20, 0.97)",i=u?.borderColor??"rgba(255,255,255,0.1)",o={textColor:n,accentColor:t,accentAlpha15:t.startsWith("#")?Ih(t,.15):"rgba(99,102,241,0.15)",accentAlpha30:t.startsWith("#")?Ih(t,.3):"rgba(99,102,241,0.3)",borderColor:i.replace("0.1)","0.07)")},l={...EA,color:n,borderBottom:`1px solid ${i.replace("0.1)","0.08)")}`},d=e?.vertical??"top",c=e?.horizontal??"right",{setQuality:g,setAudioTrack:f,setPlaybackRate:h,setSubtitleTrack:y,getPlayerStats:E}=kr(),S=is(),{playbackRate:C=1,isLive:K}=Lr(),{style:J,setStyle:re}=Nm(),[ye,Ie]=yt.useState(!1),[we,$]=yt.useState("root");yt.useEffect(()=>{K&&we==="speed"&&$("root")},[K,we]);const[Z,pe]=yt.useState([]),[be,Ce]=yt.useState(null),[Qe,xe]=yt.useState([]),[Je,Oe]=yt.useState(""),[Me,Ve]=yt.useState([]),[ct,at]=yt.useState(null),[vt,nt]=yt.useState(null),[st,jt]=yt.useState([]);yt.useEffect(()=>{const rt=()=>{pe(S.getAvailableQualities()),Ce(S.getQuality()),xe(S.getAvailableAudioTracks()),Oe(S.getAudioTrack()),Ve(S.getSubtitleTracks()),at(S.getActiveSubtitleLanguage())};S.events.on("tracksready",rt),S.events.on("streamTypeDetected",rt),S.events.on("qualitychange",rt),S.events.on("loadedmetadata",rt),rt();const xt=setTimeout(rt,100);return()=>{S.events.off("tracksready",rt),S.events.off("streamTypeDetected",rt),S.events.off("qualitychange",rt),S.events.off("loadedmetadata",rt),clearTimeout(xt)}},[S]),yt.useEffect(()=>{ye&&(pe(S.getAvailableQualities()),Ce(S.getQuality()),xe(S.getAvailableAudioTracks()),Oe(S.getAudioTrack()),Ve(S.getSubtitleTracks()),at(S.getActiveSubtitleLanguage()))},[ye,S]);const Qt=Qe.length>1;yt.useEffect(()=>{if(we!=="statistics")return;const rt=()=>{const gn=E();nt(gn),jt(Nn=>[...Nn.slice(-59),gn])};rt();const xt=setInterval(rt,1e3);return()=>{clearInterval(xt),jt([])}},[we,E]);const Ne=yt.useRef(null);yt.useEffect(()=>{if(!ye)return;const rt=xt=>{Ne.current&&!Ne.current.contains(xt.target)&&(Ie(!1),$("root"))};return document.addEventListener("pointerdown",rt),()=>document.removeEventListener("pointerdown",rt)},[ye]),yt.useEffect(()=>{if(!ye)return;const rt=xt=>{xt.key==="Escape"&&(Ie(!1),$("root")),xt.key==="Backspace"&&we!=="root"&&$("root")};return document.addEventListener("keydown",rt),()=>document.removeEventListener("keydown",rt)},[ye,we]);const Pe=yt.useCallback(()=>{Ie(rt=>(rt&&$("root"),!rt))},[]),ft=be?be.id==="auto"?"Auto":be.label:"Auto",W=C===1?"1×":`${C}×`,V=Qe.find(rt=>rt.id===Je)?.label??"Auto",I=ct===null?"Off":Me.find(rt=>rt.language===ct)?.label??ct,D=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),fe.jsx("path",{d:"M8 21h8M12 17v4"}),fe.jsx("path",{d:"m7 8 2 2 4-4 2 2"})]}),oe=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0 1 1 0 0 0-2 0"}),fe.jsx("path",{d:"M12 2a10 10 0 0 1 7.39 16.74M12 2A10 10 0 0 0 4.61 18.74"}),fe.jsx("path",{d:"m16.24 7.76-2.12 2.12"})]}),Q=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("path",{d:"M3 18v-6a9 9 0 0 1 18 0v6"}),fe.jsx("path",{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"})]}),Fe=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),fe.jsx("line",{x1:"9",y1:"10",x2:"15",y2:"10"}),fe.jsx("line",{x1:"9",y1:"14",x2:"12",y2:"14"})]}),Ye=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("circle",{cx:"12",cy:"12",r:"3"}),fe.jsx("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"}),fe.jsx("polyline",{points:"16 16 12 20 8 16"})]}),Ue=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),fe.jsx("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),fe.jsx("line",{x1:"6",y1:"20",x2:"6",y2:"14"})]}),qe=()=>fe.jsxs(fe.Fragment,{children:[fe.jsxs("div",{style:l,children:[fe.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.6)",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("circle",{cx:"12",cy:"12",r:"3"}),fe.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),"Settings"]}),fe.jsxs("div",{style:{padding:"4px 0"},children:[fe.jsx(Sr,{icon:D,label:"Quality",value:ft,onClick:()=>$("quality")}),!K&&fe.jsx(Sr,{icon:oe,label:"Speed",value:W,onClick:()=>$("speed")}),Qt&&fe.jsx(Sr,{icon:Q,label:"Audio Track",value:V,onClick:()=>$("audio")}),fe.jsx(Rh,{}),fe.jsx(Sr,{icon:Fe,label:"Subtitles",value:I,onClick:()=>$("subtitles")}),fe.jsx(Sr,{icon:Ye,label:"Subtitle Style",value:`${J.fontSize}px`,onClick:()=>$("subtitleStyle")}),fe.jsx(Rh,{}),fe.jsx(Sr,{icon:Ue,label:"Statistics",onClick:()=>$("statistics")})]})]}),De=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Quality",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{padding:"4px 0",maxHeight:"280px",overflowY:"auto"},children:[Z.map(rt=>fe.jsx(Sr,{label:rt.id==="auto"?"Auto":rt.label,selected:be?.id===rt.id,onClick:()=>{g(rt.id),Ce(rt),Ie(!1),$("root")}},rt.id)),Z.length===0&&fe.jsx("div",{style:{padding:"10px 14px",color:"rgba(255,255,255,0.4)",fontSize:"13px"},children:"No quality levels available"})]})]}),je=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Speed",isBack:!0,onClick:()=>$("root")})}),fe.jsx("div",{style:{padding:"4px 0"},children:pA.map(rt=>fe.jsx(Sr,{label:rt===1?"1× (Normal)":`${rt}×`,selected:C===rt,onClick:()=>{h(rt),Ie(!1),$("root")}},rt))})]}),et=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Audio Track",isBack:!0,onClick:()=>$("root")})}),fe.jsx("div",{style:{padding:"4px 0"},children:Qe.map(rt=>fe.jsx(Sr,{label:rt.label||rt.language||rt.id,selected:Je===rt.id,onClick:()=>{f(rt.id),Oe(rt.id),Ie(!1),$("root")}},rt.id))})]}),Xe=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Subtitles",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{padding:"4px 0"},children:[fe.jsx(Sr,{label:"Off",selected:ct===null,onClick:()=>{y(null),at(null),Ie(!1),$("root")}},"off"),Me.map((rt,xt)=>fe.jsx(Sr,{label:rt.label||rt.language,selected:ct===rt.language,onClick:()=>{y(rt.language),at(rt.language),Ie(!1),$("root")}},rt.url||`${rt.language}-${xt}`)),Me.length===0&&fe.jsx("div",{style:{padding:"10px 14px",color:"rgba(255,255,255,0.4)",fontSize:"13px"},children:"No subtitle tracks available"})]})]}),ht=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Subtitle Style",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{padding:"8px 14px 12px",display:"flex",flexDirection:"column",gap:"14px"},children:[fe.jsxs("div",{children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Position"}),fe.jsxs("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.5)"},children:[J.bottomOffset,"px from bottom"]})]}),fe.jsx("input",{type:"range",min:10,max:200,step:5,value:J.bottomOffset,onChange:rt=>re({bottomOffset:Number(rt.target.value)}),style:{width:"100%",accentColor:"#3b82f6",cursor:"pointer"}})]}),fe.jsxs("div",{children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Font Size"}),fe.jsxs("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.5)"},children:[J.fontSize,"px"]})]}),fe.jsx("input",{type:"range",min:12,max:40,step:1,value:J.fontSize,onChange:rt=>re({fontSize:Number(rt.target.value)}),style:{width:"100%",accentColor:"#3b82f6",cursor:"pointer"}})]}),fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Background"}),fe.jsx("button",{onClick:()=>re({background:J.background?"":"rgba(0,0,0,0.75)"}),style:{padding:"4px 12px",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.2)",background:J.background?"#3b82f6":"transparent",color:"#fff",fontSize:"12px",cursor:"pointer"},children:J.background?"On":"Off"})]}),fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Text Color"}),fe.jsx("div",{style:{display:"flex",gap:"6px"},children:["#ffffff","#ffff00","#00ff00","#00cfff"].map(rt=>fe.jsx("button",{onClick:()=>re({color:rt}),title:rt,style:{width:"22px",height:"22px",borderRadius:"50%",background:rt,border:J.color===rt?"2px solid #3b82f6":"2px solid transparent",cursor:"pointer",outline:"none",padding:0,flexShrink:0}},rt))})]})]})]}),Jt=()=>{const rt=st.map(Pt=>Pt.bandwidth),xt=st.map(Pt=>Pt.bufferHealth),gn=vt?.bandwidth??0,Nn=vt?.bufferHealth??0,Hn=Pt=>Pt>=1e3?`${(Pt/1e3).toFixed(2)} Mbps`:`${Pt.toFixed(0)} kbps`,sr=(Pt,Bt)=>fe.jsxs("div",{style:{background:"rgba(255,255,255,0.04)",borderRadius:"8px",padding:"7px 10px",flex:"1 1 0",minWidth:0},children:[fe.jsx("div",{style:{fontSize:"10px",color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"3px"},children:Pt}),fe.jsx("div",{style:{fontSize:"12px",color:"#fff",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Bt})]}),ar=vt?.segmentUrl??"",fr=ar.length>36?"…"+ar.slice(-36):ar||"—";return fe.jsxs(fe.Fragment,{children:[fe.jsxs("div",{style:{...l,justifyContent:"space-between"},children:[fe.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:fe.jsx(Sr,{label:"Statistics",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",paddingRight:"14px",flexShrink:0},children:[fe.jsx("span",{style:{width:"7px",height:"7px",borderRadius:"50%",background:"#22c55e",boxShadow:"0 0 6px #22c55e",animation:"statsPulse 1.6s ease-in-out infinite",display:"inline-block"}}),fe.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.4)"},children:"LIVE"})]})]}),fe.jsxs("div",{style:{padding:"0 14px 12px",overflowY:"auto",maxHeight:"420px"},children:[fe.jsxs("div",{style:{marginTop:"12px"},children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Connection Speed"}),fe.jsx("span",{style:{fontSize:"16px",fontWeight:600,color:"#4ade80",fontFamily:"monospace"},children:vt?Hn(gn):"—"})]}),fe.jsx("div",{style:{background:"rgba(0,0,0,0.3)",borderRadius:"8px",padding:"6px 8px"},children:fe.jsx(wh,{values:rt,color:"#4ade80",gradId:"bw-grad"})})]}),fe.jsxs("div",{style:{marginTop:"14px"},children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Buffer Health"}),fe.jsx("span",{style:{fontSize:"16px",fontWeight:600,color:"#60a5fa",fontFamily:"monospace"},children:vt?`${Nn.toFixed(1)} s`:"—"})]}),fe.jsx("div",{style:{background:"rgba(0,0,0,0.3)",borderRadius:"8px",padding:"6px 8px"},children:fe.jsx(wh,{values:xt,color:"#60a5fa",gradId:"buf-grad"})})]}),fe.jsx("div",{style:{height:"1px",background:"rgba(255,255,255,0.07)",margin:"14px 0 12px"}}),fe.jsxs("div",{style:{display:"flex",gap:"6px"},children:[sr("Codec",vt?.codec||"—"),sr("Resolution",vt?.resolution||"—"),sr("Dropped",vt?`${vt.droppedFrames}/${vt.totalFrames}`:"—")]}),fe.jsxs("div",{style:{display:"flex",gap:"6px",marginTop:"6px"},children:[sr("Stream",vt?.streamType||"—"),fe.jsxs("div",{style:{background:"rgba(255,255,255,0.04)",borderRadius:"8px",padding:"7px 10px",flex:"2 1 0",minWidth:0},children:[fe.jsx("div",{style:{fontSize:"10px",color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"3px"},children:"Segment"}),fe.jsx("div",{style:{fontSize:"11px",color:"rgba(255,255,255,0.7)",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:ar,children:fr})]})]})]}),fe.jsx("style",{children:`
|
|
243
|
+
`})]})}function Ym({seconds:u=15}){const{skipBackward:e}=kr(),{isLive:t}=Lr();if(t)return null;const n=()=>{e(u)};return fe.jsx("button",{className:`virtus-btn virtus-skip-backward-button ${as.controlButton}`,"aria-label":`Skip Backward ${u}s`,onClick:n,style:{position:"relative"},children:fe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[fe.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("path",{d:"M2 12l-2-2m2 2l2-2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("text",{x:"12",y:"16",fontSize:"10",fill:"currentColor",textAnchor:"middle",fontWeight:"bold",children:u})]})})}function Wm({seconds:u=15}){const{skipForward:e}=kr(),{isLive:t}=Lr();if(t)return null;const n=()=>{e(u)};return fe.jsx("button",{className:`virtus-btn virtus-skip-forward-button ${as.controlButton}`,"aria-label":`Skip Forward ${u}s`,onClick:n,style:{position:"relative"},children:fe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[fe.jsx("path",{d:"M12 2c5.5 0 10 4.5 10 10s-4.5 10-10 10-10-4.5-10-10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("path",{d:"M22 12l2-2m-2 2l-2-2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),fe.jsx("text",{x:"12",y:"16",fontSize:"10",fill:"currentColor",textAnchor:"middle",fontWeight:"bold",children:u})]})})}function Xm({sliderDirection:u="right",theme:e}){const t={sliderBackground:e?.sliderBackground??"rgba(10, 10, 20, 0.88)",borderColor:e?.borderColor??"rgba(255,255,255,0.1)",buttonBackground:e?.buttonBackground??"rgba(255,255,255,0.1)",buttonHoverBackground:e?.buttonHoverBackground??"rgba(255,255,255,0.2)",iconColor:e?.iconColor??"#fff",trackColor:e?.trackColor??"rgba(255,255,255,0.3)",fillColor:e?.fillColor??"#3b82f6",handleColor:e?.handleColor??"#fff"},{isMuted:n,volume:r}=Lr(),{toggleMute:i,setVolume:o}=kr(),[l,d]=yt.useState(!1),[c,g]=yt.useState(!1),f=yt.useRef(null),h=u==="top"||u==="bottom",y=yt.useCallback((Z,pe)=>{if(!f.current)return;const be=f.current.getBoundingClientRect(),Ce=h?Math.max(0,Math.min(1,1-(pe-be.top)/be.height)):Math.max(0,Math.min(1,(Z-be.left)/be.width));o(Ce)},[o,h]),E=yt.useCallback(Z=>{g(!0),n&&i(),y(Z.clientX,Z.clientY)},[y,n,i]);yt.useEffect(()=>{if(!c)return;const Z=be=>y(be.clientX,be.clientY),pe=()=>g(!1);return window.addEventListener("mousemove",Z),window.addEventListener("mouseup",pe),()=>{window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",pe)}},[c,y]);const S=c?r:n?0:r,C=l||c,K={position:"absolute",opacity:C?1:0,transition:"all 0.25s ease",pointerEvents:C?"auto":"none",zIndex:10,background:t.sliderBackground,backdropFilter:"blur(12px)",boxShadow:"4px 0 16px rgba(0,0,0,0.5)",overflow:"hidden"},J=(()=>{const Z=`1px solid ${t.borderColor}`;switch(u){case"left":return{...K,right:"40px",top:"0",width:C?"118px":"0px",height:"40px",paddingRight:"8px",borderRadius:"8px 0 0 8px",border:Z,borderRight:"none"};case"top":return{...K,bottom:"40px",left:"0",width:"40px",height:C?"118px":"0px",paddingBottom:"8px",borderRadius:"8px 8px 0 0",border:Z,borderBottom:"none"};case"bottom":return{...K,top:"40px",left:"0",width:"40px",height:C?"118px":"0px",paddingTop:"8px",borderRadius:"0 0 8px 8px",border:Z,borderTop:"none"};default:return{...K,left:"40px",top:"0",width:C?"118px":"0px",height:"40px",paddingLeft:"8px",borderRadius:"0 8px 8px 0",border:Z,borderLeft:"none"}}})(),re=h?{width:"40px",height:"110px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",position:"relative",outline:"none"}:{width:"110px",height:"40px",display:"flex",alignItems:"center",cursor:"pointer",position:"relative",paddingRight:"8px",outline:"none"},ye=h?{width:"4px",height:"100%",backgroundColor:t.trackColor,borderRadius:"2px",position:"relative"}:{width:"100%",height:"4px",backgroundColor:t.trackColor,borderRadius:"2px",position:"relative"},Ie=h?{position:"absolute",bottom:0,left:0,right:0,height:`${S*100}%`,backgroundColor:t.fillColor,borderRadius:"2px",transition:c?"none":"height 0.1s ease"}:{position:"absolute",left:0,top:0,bottom:0,width:`${S*100}%`,backgroundColor:t.fillColor,borderRadius:"2px",transition:c?"none":"width 0.1s ease"},we=c?14:12,$=h?{position:"absolute",bottom:`calc(${S*100}% - ${S*we}px)`,left:"50%",transform:"translateX(-50%)",width:`${we}px`,height:`${we}px`,backgroundColor:t.handleColor,borderRadius:"50%",boxShadow:"0 2px 4px rgba(0,0,0,0.3)",transition:c?"none":"all 0.2s ease"}:{position:"absolute",left:`calc(${S*100}% - ${S*we}px)`,top:"50%",transform:"translateY(-50%)",width:`${we}px`,height:`${we}px`,backgroundColor:t.handleColor,borderRadius:"50%",boxShadow:"0 2px 4px rgba(0,0,0,0.3)",transition:c?"none":"all 0.2s ease"};return fe.jsxs("div",{className:"virtus-volume-control",style:{position:"relative",display:"flex",alignItems:"center",height:"40px",width:"40px"},children:[fe.jsx("button",{className:"virtus-btn virtus-mute-button","aria-label":n?"Unmute":"Mute",onClick:i,style:{background:t.buttonBackground,border:"none",borderRadius:"8px",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,position:"relative",zIndex:1},onMouseEnter:Z=>{d(!0),Z.currentTarget.style.background=t.buttonHoverBackground,Z.currentTarget.style.transform="scale(1.05)"},onMouseLeave:Z=>{Z.currentTarget.style.background=t.buttonBackground,Z.currentTarget.style.transform="scale(1)"},children:n||r===0?fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:t.iconColor,viewBox:"0 0 24 24",children:fe.jsx("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06ZM17.78 9.22a.75.75 0 1 0-1.06 1.06L18.44 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06l1.72-1.72 1.72 1.72a.75.75 0 1 0 1.06-1.06L20.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-1.72 1.72-1.72-1.72Z"})}):r<.5?fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:t.iconColor,viewBox:"0 0 24 24",children:fe.jsx("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06Z"})}):fe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:t.iconColor,viewBox:"0 0 24 24",children:[fe.jsx("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06Z"}),fe.jsx("path",{d:"M18.584 5.106a.75.75 0 0 1 1.06 0 11.5 11.5 0 0 1 0 13.588.75.75 0 0 1-1.06-1.06 10 10 0 0 0 0-11.468.75.75 0 0 1 0-1.06Z"}),fe.jsx("path",{d:"M15.932 7.757a.75.75 0 0 1 1.061 0 6.5 6.5 0 0 1 0 8.486.75.75 0 0 1-1.06-1.06 5 5 0 0 0 0-6.366.75.75 0 0 1 0-1.06Z"})]})}),fe.jsx("div",{onMouseEnter:()=>d(!0),onMouseLeave:()=>{c||d(!1)},style:J,children:fe.jsx("div",{ref:f,role:"slider",tabIndex:0,"aria-label":"Volume","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(S*100),"aria-valuetext":n?"Muted":`${Math.round(S*100)}%`,onMouseDown:E,onKeyDown:Z=>{const Ce=n?0:r;switch(Z.key){case"ArrowRight":case"ArrowUp":Z.preventDefault(),o(Math.min(1,Ce+.05));break;case"ArrowLeft":case"ArrowDown":Z.preventDefault(),o(Math.max(0,Ce-.05));break;case"PageUp":Z.preventDefault(),o(Math.min(1,Ce+.2));break;case"PageDown":Z.preventDefault(),o(Math.max(0,Ce-.2));break;case"Home":Z.preventDefault(),o(0);break;case"End":Z.preventDefault(),o(1);break;case"m":case"M":Z.preventDefault(),i();break}},style:re,children:fe.jsxs("div",{style:ye,children:[fe.jsx("div",{style:Ie}),fe.jsx("div",{style:$})]})})})]})}const hA=[.25,.5,.75,1,1.25,1.5,1.75,2];function gA(){const{setPlaybackRate:u}=kr(),[e,t]=yt.useState(1),n=yt.useCallback(i=>{u(i),t(i)},[u]),r=e===1?"1×":`${e}×`;return fe.jsxs(Bm,{children:[fe.jsx(jm,{children:fe.jsx("button",{className:"virtus-speed-button","aria-label":`Playback speed: ${r}`,"aria-haspopup":"true",style:{background:"transparent",border:"none",color:"white",cursor:"pointer",padding:"8px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",height:"40px",minWidth:"40px",transition:"all 0.2s ease",fontSize:"13px",fontWeight:"600",letterSpacing:"-0.3px",whiteSpace:"nowrap"},onMouseEnter:i=>{i.currentTarget.style.background="rgba(255, 255, 255, 0.15)",i.currentTarget.style.transform="scale(1.05)"},onMouseLeave:i=>{i.currentTarget.style.background="transparent",i.currentTarget.style.transform="scale(1)"},title:"Playback speed",children:r})}),fe.jsx(qm,{placement:"top-right",children:fe.jsxs("div",{style:{minWidth:"130px"},children:[fe.jsx("div",{style:{padding:"8px 12px",fontSize:"12px",fontWeight:"600",color:"rgba(255, 255, 255, 0.6)",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Speed"}),[...hA].reverse().map(i=>fe.jsx(Yl,{selected:e===i,onClick:()=>n(i),children:fe.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:fe.jsx("span",{children:i===1?"1× (Normal)":`${i}×`})})},i))]})})]})}const bu=yt.createContext({textColor:"#fff",accentColor:"#6366f1",accentAlpha15:"rgba(99,102,241,0.15)",accentAlpha30:"rgba(99,102,241,0.3)",borderColor:"rgba(255,255,255,0.07)"});function Ih(u,e){const t=u.replace("#",""),n=t.length===3?t.split("").map(l=>l+l).join(""):t,r=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),o=parseInt(n.slice(4,6),16);return isNaN(r)||isNaN(i)||isNaN(o)?`rgba(99,102,241,${e})`:`rgba(${r},${i},${o},${e})`}const mA=60,pA=[.25,.5,.75,1,1.25,1.5,1.75,2],yA={position:"absolute",backdropFilter:"blur(16px)",borderRadius:"14px",overflow:"hidden",zIndex:9999,animation:"settingsFadeIn 0.18s ease-out",fontFamily:"system-ui, -apple-system, sans-serif",transition:"width 0.2s ease"},EA={display:"flex",alignItems:"center",gap:"8px",padding:"11px 14px",fontSize:"13px",fontWeight:600},bA={display:"flex",alignItems:"center",width:"100%",padding:"9px 14px",background:"transparent",border:"none",cursor:"pointer",fontSize:"13.5px",textAlign:"left",gap:"10px",outline:"none",transition:"background 0.12s"};function wh({values:u,color:e,gradId:t}){if(u.length<2)return fe.jsx("svg",{width:292,height:52,style:{display:"block"},children:fe.jsx("line",{x1:0,y1:52/2,x2:292,y2:52/2,stroke:"rgba(255,255,255,0.08)",strokeWidth:1,strokeDasharray:"4 4"})});const i=Math.max(...u,.001),o=u.map((g,f)=>[f/(mA-1)*292,48-g/i*42]),l=o.map(([g,f],h)=>`${h===0?"M":"L"}${g.toFixed(1)},${f.toFixed(1)}`).join(" "),d=l+` L${292 .toFixed(1)},52 L0,52 Z`,c=o[o.length-1];return fe.jsxs("svg",{width:292,height:52,style:{display:"block",overflow:"visible"},children:[fe.jsx("defs",{children:fe.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[fe.jsx("stop",{offset:"0%",stopColor:e,stopOpacity:.4}),fe.jsx("stop",{offset:"100%",stopColor:e,stopOpacity:.02})]})}),fe.jsx("path",{d,fill:`url(#${t})`}),fe.jsx("path",{d:l,fill:"none",stroke:e,strokeWidth:1.8,strokeLinejoin:"round",strokeLinecap:"round"}),fe.jsx("circle",{cx:c[0],cy:c[1],r:3.5,fill:e}),fe.jsx("circle",{cx:c[0],cy:c[1],r:6,fill:e,fillOpacity:.25})]})}function Sr({label:u,value:e,icon:t,onClick:n,selected:r=!1,isBack:i=!1}){const[o,l]=yt.useState(!1),{textColor:d,accentColor:c,accentAlpha15:g,accentAlpha30:f}=yt.useContext(bu);return fe.jsxs("button",{role:"menuitem","aria-checked":r,onClick:n,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...bA,color:d,background:o?"rgba(255,255,255,0.07)":r?g:"transparent",fontWeight:r?600:400,justifyContent:"space-between"},children:[fe.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0},children:[i?fe.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.6)",strokeWidth:"2.5",style:{flexShrink:0},children:fe.jsx("polyline",{points:"15 18 9 12 15 6"})}):t?fe.jsx("span",{style:{width:"28px",height:"28px",borderRadius:"7px",background:r?f:"rgba(255,255,255,0.08)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:r?c:"rgba(255,255,255,0.65)",transition:"background 0.15s, color 0.15s"},children:t}):r?fe.jsx("svg",{"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:c,strokeWidth:"3",style:{flexShrink:0},children:fe.jsx("polyline",{points:"20 6 9 17 4 12"})}):fe.jsx("span",{style:{display:"inline-block",width:"14px",flexShrink:0}}),fe.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u})]}),e!==void 0&&fe.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[fe.jsx("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.45)",maxWidth:"90px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),fe.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.35)",strokeWidth:"2.5",children:fe.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]})}function Rh(){const{borderColor:u}=yt.useContext(bu);return fe.jsx("div",{style:{height:"1px",background:u,margin:"2px 0"}})}function Qm({theme:u,panelPosition:e}={}){const t=u?.accentColor??"#6366f1",n=u?.textColor??"#fff",r=u?.background??"rgba(12, 12, 20, 0.97)",i=u?.borderColor??"rgba(255,255,255,0.1)",o={textColor:n,accentColor:t,accentAlpha15:t.startsWith("#")?Ih(t,.15):"rgba(99,102,241,0.15)",accentAlpha30:t.startsWith("#")?Ih(t,.3):"rgba(99,102,241,0.3)",borderColor:i.replace("0.1)","0.07)")},l={...EA,color:n,borderBottom:`1px solid ${i.replace("0.1)","0.08)")}`},d=e?.vertical??"top",c=e?.horizontal??"right",{setQuality:g,setAudioTrack:f,setPlaybackRate:h,setSubtitleTrack:y,getPlayerStats:E}=kr(),S=is(),{playbackRate:C=1,isLive:K}=Lr(),{style:J,setStyle:re}=Nm(),[ye,Ie]=yt.useState(!1),[we,$]=yt.useState("root");yt.useEffect(()=>{K&&we==="speed"&&$("root")},[K,we]);const[Z,pe]=yt.useState([]),[be,Ce]=yt.useState(null),[Qe,xe]=yt.useState([]),[Je,Oe]=yt.useState(""),[Me,Ve]=yt.useState([]),[ct,at]=yt.useState(null),[vt,nt]=yt.useState(null),[st,jt]=yt.useState([]);yt.useEffect(()=>{const rt=()=>{pe(S.getAvailableQualities()),Ce(S.getQuality()),xe(S.getAvailableAudioTracks()),Oe(S.getAudioTrack()),Ve(S.getSubtitleTracks()),at(S.getActiveSubtitleLanguage())};S.events.on("tracksready",rt),S.events.on("streamTypeDetected",rt),S.events.on("qualitychange",rt),S.events.on("loadedmetadata",rt),rt();const xt=setTimeout(rt,100);return()=>{S.events.off("tracksready",rt),S.events.off("streamTypeDetected",rt),S.events.off("qualitychange",rt),S.events.off("loadedmetadata",rt),clearTimeout(xt)}},[S]),yt.useEffect(()=>{ye&&(pe(S.getAvailableQualities()),Ce(S.getQuality()),xe(S.getAvailableAudioTracks()),Oe(S.getAudioTrack()),Ve(S.getSubtitleTracks()),at(S.getActiveSubtitleLanguage()))},[ye,S]);const Qt=Qe.length>1;yt.useEffect(()=>{if(we!=="statistics")return;const rt=()=>{const gn=E();nt(gn),jt(Nn=>[...Nn.slice(-59),gn])};rt();const xt=setInterval(rt,1e3);return()=>{clearInterval(xt),jt([])}},[we,E]);const Ne=yt.useRef(null);yt.useEffect(()=>{if(!ye)return;const rt=xt=>{Ne.current&&!Ne.current.contains(xt.target)&&(Ie(!1),$("root"))};return document.addEventListener("pointerdown",rt),()=>document.removeEventListener("pointerdown",rt)},[ye]),yt.useEffect(()=>{if(!ye)return;const rt=xt=>{xt.key==="Escape"&&(Ie(!1),$("root")),xt.key==="Backspace"&&we!=="root"&&$("root")};return document.addEventListener("keydown",rt),()=>document.removeEventListener("keydown",rt)},[ye,we]);const Pe=yt.useCallback(()=>{Ie(rt=>(rt&&$("root"),!rt))},[]),ft=be?be.id==="auto"?"Auto":be.label:"Auto",W=C===1?"1×":`${C}×`,V=Qe.find(rt=>rt.id===Je)?.label??"Auto",I=ct===null?"Off":Me.find(rt=>rt.language===ct)?.label??ct,D=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),fe.jsx("path",{d:"M8 21h8M12 17v4"}),fe.jsx("path",{d:"m7 8 2 2 4-4 2 2"})]}),oe=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0 1 1 0 0 0-2 0"}),fe.jsx("path",{d:"M12 2a10 10 0 0 1 7.39 16.74M12 2A10 10 0 0 0 4.61 18.74"}),fe.jsx("path",{d:"m16.24 7.76-2.12 2.12"})]}),Q=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("path",{d:"M3 18v-6a9 9 0 0 1 18 0v6"}),fe.jsx("path",{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"})]}),Fe=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),fe.jsx("line",{x1:"9",y1:"10",x2:"15",y2:"10"}),fe.jsx("line",{x1:"9",y1:"14",x2:"12",y2:"14"})]}),Ye=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("circle",{cx:"12",cy:"12",r:"3"}),fe.jsx("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"}),fe.jsx("polyline",{points:"16 16 12 20 8 16"})]}),Ue=fe.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),fe.jsx("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),fe.jsx("line",{x1:"6",y1:"20",x2:"6",y2:"14"})]}),qe=()=>fe.jsxs(fe.Fragment,{children:[fe.jsxs("div",{style:l,children:[fe.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.6)",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[fe.jsx("circle",{cx:"12",cy:"12",r:"3"}),fe.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),"Settings"]}),fe.jsxs("div",{style:{padding:"4px 0"},children:[fe.jsx(Sr,{icon:D,label:"Quality",value:ft,onClick:()=>$("quality")}),!K&&fe.jsx(Sr,{icon:oe,label:"Speed",value:W,onClick:()=>$("speed")}),Qt&&fe.jsx(Sr,{icon:Q,label:"Audio Track",value:V,onClick:()=>$("audio")}),fe.jsx(Rh,{}),fe.jsx(Sr,{icon:Fe,label:"Subtitles",value:I,onClick:()=>$("subtitles")}),fe.jsx(Sr,{icon:Ye,label:"Subtitle Style",value:`${J.fontSize}px`,onClick:()=>$("subtitleStyle")}),fe.jsx(Rh,{}),fe.jsx(Sr,{icon:Ue,label:"Statistics",onClick:()=>$("statistics")})]})]}),De=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Quality",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{padding:"4px 0",maxHeight:"280px",overflowY:"auto"},children:[Z.map(rt=>fe.jsx(Sr,{label:rt.id==="auto"?"Auto":rt.label,selected:be?.id===rt.id,onClick:()=>{g(rt.id),Ce(rt),Ie(!1),$("root")}},rt.id)),Z.length===0&&fe.jsx("div",{style:{padding:"10px 14px",color:"rgba(255,255,255,0.4)",fontSize:"13px"},children:"No quality levels available"})]})]}),je=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Speed",isBack:!0,onClick:()=>$("root")})}),fe.jsx("div",{style:{padding:"4px 0"},children:pA.map(rt=>fe.jsx(Sr,{label:rt===1?"1× (Normal)":`${rt}×`,selected:C===rt,onClick:()=>{h(rt),Ie(!1),$("root")}},rt))})]}),et=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Audio Track",isBack:!0,onClick:()=>$("root")})}),fe.jsx("div",{style:{padding:"4px 0"},children:Qe.map(rt=>fe.jsx(Sr,{label:rt.label||rt.language||rt.id,selected:Je===rt.id,onClick:()=>{f(rt.id),Oe(rt.id),Ie(!1),$("root")}},rt.id))})]}),Xe=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Subtitles",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{padding:"4px 0"},children:[fe.jsx(Sr,{label:"Off",selected:ct===null,onClick:()=>{y(null),at(null),Ie(!1),$("root")}},"off"),Me.map((rt,xt)=>fe.jsx(Sr,{label:rt.label||rt.language,selected:ct===rt.language,onClick:()=>{y(rt.language),at(rt.language),Ie(!1),$("root")}},rt.url||`${rt.language}-${xt}`)),Me.length===0&&fe.jsx("div",{style:{padding:"10px 14px",color:"rgba(255,255,255,0.4)",fontSize:"13px"},children:"No subtitle tracks available"})]})]}),ht=()=>fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{style:l,children:fe.jsx(Sr,{label:"Subtitle Style",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{padding:"8px 14px 12px",display:"flex",flexDirection:"column",gap:"14px"},children:[fe.jsxs("div",{children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Position"}),fe.jsxs("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.5)"},children:[J.bottomOffset,"px from bottom"]})]}),fe.jsx("input",{type:"range",min:10,max:200,step:5,value:J.bottomOffset,onChange:rt=>re({bottomOffset:Number(rt.target.value)}),style:{width:"100%",accentColor:"#3b82f6",cursor:"pointer"}})]}),fe.jsxs("div",{children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Font Size"}),fe.jsxs("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.5)"},children:[J.fontSize,"px"]})]}),fe.jsx("input",{type:"range",min:12,max:40,step:1,value:J.fontSize,onChange:rt=>re({fontSize:Number(rt.target.value)}),style:{width:"100%",accentColor:"#3b82f6",cursor:"pointer"}})]}),fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Background"}),fe.jsx("button",{onClick:()=>re({background:J.background?"":"rgba(0,0,0,0.75)"}),style:{padding:"4px 12px",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.2)",background:J.background?"#3b82f6":"transparent",color:"#fff",fontSize:"12px",cursor:"pointer"},children:J.background?"On":"Off"})]}),fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[fe.jsx("span",{style:{fontSize:"13px",color:"rgba(255,255,255,0.8)"},children:"Text Color"}),fe.jsx("div",{style:{display:"flex",gap:"6px"},children:["#ffffff","#ffff00","#00ff00","#00cfff"].map(rt=>fe.jsx("button",{onClick:()=>re({color:rt}),title:rt,style:{width:"22px",height:"22px",borderRadius:"50%",background:rt,border:J.color===rt?"2px solid #3b82f6":"2px solid transparent",cursor:"pointer",outline:"none",padding:0,flexShrink:0}},rt))})]})]})]}),Jt=()=>{const rt=st.map(Pt=>Pt.bandwidth),xt=st.map(Pt=>Pt.bufferHealth),gn=vt?.bandwidth??0,Nn=vt?.bufferHealth??0,Hn=Pt=>Pt>=1e3?`${(Pt/1e3).toFixed(2)} Mbps`:`${Pt.toFixed(0)} kbps`,sr=(Pt,Bt)=>fe.jsxs("div",{style:{background:"rgba(255,255,255,0.04)",borderRadius:"8px",padding:"7px 10px",flex:"1 1 0",minWidth:0},children:[fe.jsx("div",{style:{fontSize:"10px",color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"3px"},children:Pt}),fe.jsx("div",{style:{fontSize:"12px",color:"#fff",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Bt})]}),ar=vt?.segmentUrl??"",fr=ar.length>36?"…"+ar.slice(-36):ar||"—";return fe.jsxs(fe.Fragment,{children:[fe.jsxs("div",{style:{...l,justifyContent:"space-between"},children:[fe.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:fe.jsx(Sr,{label:"Statistics",isBack:!0,onClick:()=>$("root")})}),fe.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",paddingRight:"14px",flexShrink:0},children:[fe.jsx("span",{style:{width:"7px",height:"7px",borderRadius:"50%",background:"#22c55e",boxShadow:"0 0 6px #22c55e",animation:"statsPulse 1.6s ease-in-out infinite",display:"inline-block"}}),fe.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.4)"},children:"LIVE"})]})]}),fe.jsxs("div",{style:{padding:"0 14px 12px",overflowY:"auto",maxHeight:"420px"},children:[fe.jsxs("div",{style:{marginTop:"12px"},children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Connection Speed"}),fe.jsx("span",{style:{fontSize:"16px",fontWeight:600,color:"#4ade80",fontFamily:"monospace"},children:vt?Hn(gn):"—"})]}),fe.jsx("div",{style:{background:"rgba(0,0,0,0.3)",borderRadius:"8px",padding:"6px 8px"},children:fe.jsx(wh,{values:rt,color:"#4ade80",gradId:"bw-grad"})})]}),fe.jsxs("div",{style:{marginTop:"14px"},children:[fe.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"6px"},children:[fe.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Buffer Health"}),fe.jsx("span",{style:{fontSize:"16px",fontWeight:600,color:"#60a5fa",fontFamily:"monospace"},children:vt?`${Nn.toFixed(1)} s`:"—"})]}),fe.jsx("div",{style:{background:"rgba(0,0,0,0.3)",borderRadius:"8px",padding:"6px 8px"},children:fe.jsx(wh,{values:xt,color:"#60a5fa",gradId:"buf-grad"})})]}),fe.jsx("div",{style:{height:"1px",background:"rgba(255,255,255,0.07)",margin:"14px 0 12px"}}),fe.jsxs("div",{style:{display:"flex",gap:"6px"},children:[sr("Codec",vt?.codec||"—"),sr("Resolution",vt?.resolution||"—"),sr("Dropped",vt?`${vt.droppedFrames}/${vt.totalFrames}`:"—")]}),fe.jsxs("div",{style:{display:"flex",gap:"6px",marginTop:"6px"},children:[sr("Stream",vt?.streamType||"—"),fe.jsxs("div",{style:{background:"rgba(255,255,255,0.04)",borderRadius:"8px",padding:"7px 10px",flex:"2 1 0",minWidth:0},children:[fe.jsx("div",{style:{fontSize:"10px",color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"3px"},children:"Segment"}),fe.jsx("div",{style:{fontSize:"11px",color:"rgba(255,255,255,0.7)",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:ar,children:fr})]})]})]}),fe.jsx("style",{children:`
|
|
244
244
|
@keyframes statsPulse {
|
|
245
245
|
0%, 100% { opacity: 1; }
|
|
246
246
|
50% { opacity: 0.3; }
|
|
@@ -250,4 +250,4 @@ Char: `+L[G])}return G+1&&(G+=1),U}if(L.charCodeAt(G+1)===M){G=L.indexOf(de,G),G
|
|
|
250
250
|
from { opacity: 0; transform: translateY(8px) scale(0.97); }
|
|
251
251
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
252
252
|
}
|
|
253
|
-
`})]})}function vA({label:u="AirPlay",className:e=""}){const t=is(),[n,r]=yt.useState(!1),[i,o]=yt.useState(!1);yt.useEffect(()=>{if(!t)return;r(t.isAirPlayAvailable()),o(t.isAirPlayActive());const d=({isAvailable:c,isActive:g})=>{r(c),o(g)};return t.events.on("airplaychange",d),()=>{t.events.off("airplaychange",d)}},[t]);const l=yt.useCallback(()=>{t?.showAirPlayPicker()},[t]);return n?fe.jsx("button",{className:`virtus-control-btn virtus-airplay-btn${i?" virtus-airplay-btn--active":""}${e?` ${e}`:""}`,onClick:l,title:i?`${u} (Connected)`:u,"aria-label":i?`${u} connected`:`Show ${u} devices`,"aria-pressed":i,children:fe.jsxs("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[fe.jsx("rect",{x:"2",y:"3",width:"20",height:"13",rx:"2",ry:"2"}),fe.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),fe.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),fe.jsx("polygon",{points:"12,8 8,14 16,14",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.5"})]})}):null}function TA({label:u="Cast",className:e=""}){const t=is(),[n,r]=yt.useState(!1),[i,o]=yt.useState(!1);yt.useEffect(()=>{if(!t)return;r(t.isCastAvailable()),o(t.isCastActive());const d=({isAvailable:c,isActive:g})=>{r(c),o(g)};return t.events.on("castchange",d),()=>{t.events.off("castchange",d)}},[t]);const l=yt.useCallback(()=>{i?t?.stopCasting():t?.showCastPicker()},[t,i]);return n?fe.jsx("button",{className:`virtus-control-btn virtus-cast-btn${i?" virtus-cast-btn--active":""}${e?` ${e}`:""}`,onClick:l,title:i?`Stop ${u}ing`:`${u} to TV`,"aria-label":i?"Stop casting":"Cast to a device","aria-pressed":i,children:fe.jsxs("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[fe.jsx("path",{d:"M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"}),fe.jsx("line",{x1:"8",y1:"20",x2:"16",y2:"20"}),fe.jsx("path",{d:"M2 15a4 4 0 0 1 4 4",fill:"none"}),fe.jsx("path",{d:"M2 11a8 8 0 0 1 8 8",fill:"none"}),fe.jsx("circle",{cx:"2",cy:"20",r:"1",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.5"})]})}):null}const SA=({mode:u})=>{const{isLive:e}=Lr(),t=u==="live"||u!=="vod"&&!!e;return fe.jsxs(Om,{children:[fe.jsx(Fm,{}),!t&&fe.jsx(Ym,{seconds:15}),!t&&fe.jsx(Wm,{seconds:15}),fe.jsx(Xm,{}),!t&&fe.jsx(Gm,{}),fe.jsx("div",{style:{flex:1}}),fe.jsx(Qm,{}),fe.jsx(zm,{}),fe.jsx(Um,{})]})},_A=({mode:u="vod",chapters:e,timelineEvents:t,showTimelineMarkers:n,markerSize:r,config:i})=>{const l=(i?.isRichPlayer??!1)&&(n??!0);return fe.jsx(Km,{mode:u,chapters:e,timelineEvents:t,showTimelineMarkers:l,markerSize:r,thumbnailsVttUrl:i?.thumbnails?.vttUrl,seekBarStyle:i?.ui?.seekBar})};class AA{playerCore=null;videoElement=null;container=null;constructor(e){e instanceof HTMLVideoElement?this.initWithElement(e):this.initWithConfig(e)}initWithElement(e){this.videoElement=e,this.playerCore=new Da(e)}initWithConfig(e){this.playerCore=Da.createWithConfig(e),this.videoElement=this.playerCore.getVideoElement(),this.container=this.playerCore.getVideoElement()?.parentElement||null}on(e,t){sa.on(e,t)}off(e,t){sa.off(e,t)}play(){return this.playerCore?.play()||Promise.reject("Player not initialized")}pause(){this.playerCore?.pause()}toggleMute(){this.playerCore?.toggleMute()}setVolume(e){this.playerCore?.setVolume(e)}getState(){return this.playerCore?.getState()||null}async setSource(e){await this.playerCore?.setSource(e)}seekTo(e){this.playerCore?.seekTo(e)}setPlaybackRate(e){this.playerCore?.setPlaybackRate(e)}setPoster(e){this.playerCore?.setPoster(e)}setDimensions(e,t){this.playerCore?.setDimensions(e,t)}destroy(){this.playerCore?.destroy(),this.videoElement&&this.container&&this.videoElement.parentNode===this.container&&this.container.removeChild(this.videoElement),this.playerCore=null,this.videoElement=null,this.container=null}}exports.CastButton=vA;exports.ChromecastButton=TA;exports.ChromecastManager=Tm;exports.ContextMenu=Rm;exports.ControlBar=Om;exports.ControlsContainer=SA;exports.ControlsVisibilityContext=yo;exports.EndCard=km;exports.EventBus=kh;exports.FullscreenButton=Um;exports.GestureHintOverlay=Cm;exports.JumpToLiveButton=$m;exports.KeyboardShortcutsOverlay=wm;exports.LiveLatencyDisplay=Vm;exports.MediaErrorCode=Ha;exports.MuteButton=eA;exports.PipButton=zm;exports.PlayButton=Fm;exports.PlaybackSpeedSelector=gA;exports.Player=Mm;exports.PlayerCore=Da;exports.PlayerProvider=Im;exports.Playron=AA;exports.PlayronEventEmitter=Ch;exports.SeekBar=Km;exports.SeekBarContainer=_A;exports.SettingsButton=rA;exports.SettingsPanel=Qm;exports.SkipBackwardButton=Ym;exports.SkipForwardButton=Wm;exports.SkipIntroButton=cA;exports.StallDetector=ym;exports.StreamDetector=Lh;exports.TheaterModeButton=tA;exports.ThumbnailManager=Hm;exports.TimeDisplay=Gm;exports.VideoEventType=Bn;exports.VolumeControl=Xm;exports.default=Mm;exports.eventBus=sa;exports.isVideoEventType=NE;exports.streamDetector=Dh;exports.useMobileGestures=Lm;exports.usePlayer=is;exports.usePlayerMethods=kr;exports.usePlayerState=Lr;
|
|
253
|
+
`})]})}function vA({label:u="AirPlay",className:e=""}){const t=is(),[n,r]=yt.useState(!1),[i,o]=yt.useState(!1);yt.useEffect(()=>{if(!t)return;r(t.isAirPlayAvailable()),o(t.isAirPlayActive());const d=({isAvailable:c,isActive:g})=>{r(c),o(g)};return t.events.on("airplaychange",d),()=>{t.events.off("airplaychange",d)}},[t]);const l=yt.useCallback(()=>{t?.showAirPlayPicker()},[t]);return n?fe.jsx("button",{className:`virtus-control-btn virtus-airplay-btn${i?" virtus-airplay-btn--active":""}${e?` ${e}`:""}`,onClick:l,title:i?`${u} (Connected)`:u,"aria-label":i?`${u} connected`:`Show ${u} devices`,"aria-pressed":i,children:fe.jsxs("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[fe.jsx("rect",{x:"2",y:"3",width:"20",height:"13",rx:"2",ry:"2"}),fe.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),fe.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),fe.jsx("polygon",{points:"12,8 8,14 16,14",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.5"})]})}):null}function TA({label:u="Cast",className:e=""}){const t=is(),[n,r]=yt.useState(!1),[i,o]=yt.useState(!1);yt.useEffect(()=>{if(!t)return;r(t.isCastAvailable()),o(t.isCastActive());const d=({isAvailable:c,isActive:g})=>{r(c),o(g)};return t.events.on("castchange",d),()=>{t.events.off("castchange",d)}},[t]);const l=yt.useCallback(()=>{i?t?.stopCasting():t?.showCastPicker()},[t,i]);return n?fe.jsx("button",{className:`virtus-control-btn virtus-cast-btn${i?" virtus-cast-btn--active":""}${e?` ${e}`:""}`,onClick:l,title:i?`Stop ${u}ing`:`${u} to TV`,"aria-label":i?"Stop casting":"Cast to a device","aria-pressed":i,children:fe.jsxs("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[fe.jsx("path",{d:"M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"}),fe.jsx("line",{x1:"8",y1:"20",x2:"16",y2:"20"}),fe.jsx("path",{d:"M2 15a4 4 0 0 1 4 4",fill:"none"}),fe.jsx("path",{d:"M2 11a8 8 0 0 1 8 8",fill:"none"}),fe.jsx("circle",{cx:"2",cy:"20",r:"1",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.5"})]})}):null}const SA=({mode:u})=>{const{isLive:e}=Lr(),t=u==="live"||u!=="vod"&&!!e;return fe.jsxs(Om,{children:[fe.jsx(Fm,{}),!t&&fe.jsx(Ym,{seconds:15}),!t&&fe.jsx(Wm,{seconds:15}),fe.jsx(Xm,{sliderDirection:"top"}),!t&&fe.jsx(Gm,{}),fe.jsx("div",{style:{flex:1}}),fe.jsx(Qm,{theme:{background:"#fb0000"}}),fe.jsx(zm,{}),fe.jsx(Um,{})]})},_A=({mode:u="vod",chapters:e,timelineEvents:t,showTimelineMarkers:n,markerSize:r,config:i})=>{const l=(i?.isRichPlayer??!1)&&(n??!0);return fe.jsx(Km,{mode:u,chapters:e,timelineEvents:t,showTimelineMarkers:l,markerSize:r,thumbnailsVttUrl:i?.thumbnails?.vttUrl,seekBarStyle:i?.ui?.seekBar})};class AA{playerCore=null;videoElement=null;container=null;constructor(e){e instanceof HTMLVideoElement?this.initWithElement(e):this.initWithConfig(e)}initWithElement(e){this.videoElement=e,this.playerCore=new Da(e)}initWithConfig(e){this.playerCore=Da.createWithConfig(e),this.videoElement=this.playerCore.getVideoElement(),this.container=this.playerCore.getVideoElement()?.parentElement||null}on(e,t){sa.on(e,t)}off(e,t){sa.off(e,t)}play(){return this.playerCore?.play()||Promise.reject("Player not initialized")}pause(){this.playerCore?.pause()}toggleMute(){this.playerCore?.toggleMute()}setVolume(e){this.playerCore?.setVolume(e)}getState(){return this.playerCore?.getState()||null}async setSource(e){await this.playerCore?.setSource(e)}seekTo(e){this.playerCore?.seekTo(e)}setPlaybackRate(e){this.playerCore?.setPlaybackRate(e)}setPoster(e){this.playerCore?.setPoster(e)}setDimensions(e,t){this.playerCore?.setDimensions(e,t)}destroy(){this.playerCore?.destroy(),this.videoElement&&this.container&&this.videoElement.parentNode===this.container&&this.container.removeChild(this.videoElement),this.playerCore=null,this.videoElement=null,this.container=null}}exports.CastButton=vA;exports.ChromecastButton=TA;exports.ChromecastManager=Tm;exports.ContextMenu=Rm;exports.ControlBar=Om;exports.ControlsContainer=SA;exports.ControlsVisibilityContext=yo;exports.EndCard=km;exports.EventBus=kh;exports.FullscreenButton=Um;exports.GestureHintOverlay=Cm;exports.JumpToLiveButton=$m;exports.KeyboardShortcutsOverlay=wm;exports.LiveLatencyDisplay=Vm;exports.MediaErrorCode=Ha;exports.MuteButton=eA;exports.PipButton=zm;exports.PlayButton=Fm;exports.PlaybackSpeedSelector=gA;exports.Player=Mm;exports.PlayerCore=Da;exports.PlayerProvider=Im;exports.Playron=AA;exports.PlayronEventEmitter=Ch;exports.SeekBar=Km;exports.SeekBarContainer=_A;exports.SettingsButton=rA;exports.SettingsPanel=Qm;exports.SkipBackwardButton=Ym;exports.SkipForwardButton=Wm;exports.SkipIntroButton=cA;exports.StallDetector=ym;exports.StreamDetector=Lh;exports.TheaterModeButton=tA;exports.ThumbnailManager=Hm;exports.TimeDisplay=Gm;exports.VideoEventType=Bn;exports.VolumeControl=Xm;exports.default=Mm;exports.eventBus=sa;exports.isVideoEventType=NE;exports.streamDetector=Dh;exports.useMobileGestures=Lm;exports.usePlayer=is;exports.usePlayerMethods=kr;exports.usePlayerState=Lr;
|
package/dist/playron.es.js
CHANGED
|
@@ -47362,8 +47362,8 @@ function gA({ sliderDirection: u = "right", theme: e }) {
|
|
|
47362
47362
|
const Ee = f.current.getBoundingClientRect(), Ce = h ? Math.max(0, Math.min(1, 1 - (me - Ee.top) / Ee.height)) : Math.max(0, Math.min(1, (Z - Ee.left) / Ee.width));
|
|
47363
47363
|
o(Ce);
|
|
47364
47364
|
}, [o, h]), E = fr((Z) => {
|
|
47365
|
-
g(!0), y(Z.clientX, Z.clientY);
|
|
47366
|
-
}, [y]);
|
|
47365
|
+
g(!0), n && i(), y(Z.clientX, Z.clientY);
|
|
47366
|
+
}, [y, n, i]);
|
|
47367
47367
|
Fn(() => {
|
|
47368
47368
|
if (!c) return;
|
|
47369
47369
|
const Z = (Ee) => y(Ee.clientX, Ee.clientY), me = () => g(!1);
|
|
@@ -47371,7 +47371,7 @@ function gA({ sliderDirection: u = "right", theme: e }) {
|
|
|
47371
47371
|
window.removeEventListener("mousemove", Z), window.removeEventListener("mouseup", me);
|
|
47372
47372
|
};
|
|
47373
47373
|
}, [c, y]);
|
|
47374
|
-
const S = n ? 0 : r, C = l || c, K = {
|
|
47374
|
+
const S = c ? r : n ? 0 : r, C = l || c, K = {
|
|
47375
47375
|
position: "absolute",
|
|
47376
47376
|
opacity: C ? 1 : 0,
|
|
47377
47377
|
transition: "all 0.25s ease",
|
|
@@ -47507,7 +47507,10 @@ function gA({ sliderDirection: u = "right", theme: e }) {
|
|
|
47507
47507
|
onMouseLeave: (Z) => {
|
|
47508
47508
|
Z.currentTarget.style.background = t.buttonBackground, Z.currentTarget.style.transform = "scale(1)";
|
|
47509
47509
|
},
|
|
47510
|
-
children: n || r === 0 ?
|
|
47510
|
+
children: n || r === 0 ? (
|
|
47511
|
+
// Heroicons SpeakerXMarkIcon (solid)
|
|
47512
|
+
/* @__PURE__ */ ke("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: t.iconColor, viewBox: "0 0 24 24", children: /* @__PURE__ */ ke("path", { d: "M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06ZM17.78 9.22a.75.75 0 1 0-1.06 1.06L18.44 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06l1.72-1.72 1.72 1.72a.75.75 0 1 0 1.06-1.06L20.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-1.72 1.72-1.72-1.72Z" }) })
|
|
47513
|
+
) : r < 0.5 ? /* @__PURE__ */ ke("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: t.iconColor, viewBox: "0 0 24 24", children: /* @__PURE__ */ ke("path", { d: "M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06Z" }) }) : /* @__PURE__ */ Bt("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: t.iconColor, viewBox: "0 0 24 24", children: [
|
|
47511
47514
|
/* @__PURE__ */ ke("path", { d: "M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06Z" }),
|
|
47512
47515
|
/* @__PURE__ */ ke("path", { d: "M18.584 5.106a.75.75 0 0 1 1.06 0 11.5 11.5 0 0 1 0 13.588.75.75 0 0 1-1.06-1.06 10 10 0 0 0 0-11.468.75.75 0 0 1 0-1.06Z" }),
|
|
47513
47516
|
/* @__PURE__ */ ke("path", { d: "M15.932 7.757a.75.75 0 0 1 1.061 0 6.5 6.5 0 0 1 0 8.486.75.75 0 0 1-1.06-1.06 5 5 0 0 0 0-6.366.75.75 0 0 1 0-1.06Z" })
|
|
@@ -48321,10 +48324,10 @@ const MA = ({ mode: u }) => {
|
|
|
48321
48324
|
/* @__PURE__ */ ke(Y_, {}),
|
|
48322
48325
|
!t && /* @__PURE__ */ ke(fA, { seconds: 15 }),
|
|
48323
48326
|
!t && /* @__PURE__ */ ke(hA, { seconds: 15 }),
|
|
48324
|
-
/* @__PURE__ */ ke(gA, {}),
|
|
48327
|
+
/* @__PURE__ */ ke(gA, { sliderDirection: "top" }),
|
|
48325
48328
|
!t && /* @__PURE__ */ ke(rA, {}),
|
|
48326
48329
|
/* @__PURE__ */ ke("div", { style: { flex: 1 } }),
|
|
48327
|
-
/* @__PURE__ */ ke(TA, {}),
|
|
48330
|
+
/* @__PURE__ */ ke(TA, { theme: { background: "#fb0000" } }),
|
|
48328
48331
|
/* @__PURE__ */ ke(Q_, {}),
|
|
48329
48332
|
/* @__PURE__ */ ke(X_, {})
|
|
48330
48333
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolumeControl.d.ts","sourceRoot":"","sources":["../../../src/ui/Controls/VolumeControl.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAExE,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,kBAAkB;IAC1B,iFAAiF;IACjF,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,eAAyB,EAAE,KAAK,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"VolumeControl.d.ts","sourceRoot":"","sources":["../../../src/ui/Controls/VolumeControl.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAExE,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,kBAAkB;IAC1B,iFAAiF;IACjF,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,eAAyB,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAwP7F"}
|