1import{k as w,g as P,l as S,a as $,w as n,F as k,A as l,e as s,x as c,S as o,$ as g}from"./index-Dgtrqqdu.js";import{c as x}from"./index-Dg5Zyu-A.js";import{c as q}from"./index-CDT3Y8E_.js";import"./Header-BBC-_1G5.js";const _=()=>{const[e,t]=w([]),r=()=>{navigator.mediaDevices.enumerateDevices().then(t)};return r(),navigator.mediaDevices.addEventListener("devicechange",r),S(()=>navigator.mediaDevices.removeEventListener("devicechange",r)),e},f=(e,t)=>e.length===t.length&&e.every(r=>t.includes(r)),L=()=>{const e=_();return $(()=>e().filter(t=>t.kind==="audioinput"),[],{name:"microphones",equals:f})},M=()=>{const e=_();return $(()=>e().filter(t=>t.kind==="audiooutput"),[],{name:"speakers",equals:f})},N=()=>{const e=_();return $(()=>e().filter(t=>t.kind==="videoinput"),[],{name:"cameras",equals:f})},z=(e=!1,t=100)=>{const[r,i]=w();let a=!1;const m=u=>{if(a)return;a=!0,setTimeout(()=>{a=!1},t);const d=e?u.accelerationIncludingGravity:u.acceleration;i(d||void 0)};return addEventListener("devicemotion",m),P()&&S(()=>removeEventListener("devicemotion",m)),r};var F=c("<h3>Cameras"),h=c("<ul>"),j=c("<p>No cameras found"),v=c("<li>"),G=c("<h3>Microphones"),I=c("<h3>Speakers"),O=c("<p>No microphones found"),R=c("<p>No speakers found"),T=c('<div class="box-border flex min-h-screen w-full flex-col items-center justify-center space-y-4 bg-gray-800 p-24 text-white"><div class=wrapper-v><h2>Accelerometer</h2><p></p><h2>Devices</h2><!$><!/><!$><!/>'),B=c("<p>Please grant camera permissions"),H=c("<p>Please grant microphone permissions");const J=()=>{const e=N();return[n(F),s(o,{get when(){return e().length>0},get fallback(){return n(j)},get children(){var t=n(h);return l(t,s(g,{get each(){return e()},children:r=>(()=>{var i=n(v);return l(i,()=>r.label),i})()})),t}})]},K=()=>{const e=L(),t=M();return[n(G),s(o,{get when(){return e().length>0},get fallback(){return n(O)},get children(){var r=n(h);return l(r,s(g,{get each(){return e()},children:i=>(()=>{var a=n(v);return l(a,()=>i.label),a})()})),r}}),n(I),s(o,{get when(){return t().length>0},get fallback(){return n(R)},get children(){var r=n(h);return l(r,s(g,{get each(){return t()},children:i=>(()=>{var a=n(v);return l(a,()=>i.label),a})()})),r}})]},X=()=>{q();const e=z(),t=x("microphone"),r=x("camera");return(()=>{var i=n(T),a=i.firstChild,m=a.firstChild,u=m.nextSibling,d=u.nextSibling,D=d.nextSibling,[b,y]=k(D.nextSibling),C=b.nextSibling,[A,E]=k(C.nextSibling);return l(u,s(o,{get when(){return e()},fallback:"not supported",keyed:!0,children:p=>`x=${p.x} y=${p.y} z=${p.z}`})),l(a,s(o,{get when(){return r()==="granted"},get fallback(){return n(B)},get children(){return s(J,{})}}),b,y),l(a,s(o,{get when(){return t()==="granted"},get fallback(){return n(H)},get children(){return s(K,{})}}),A,E),i})()};export{X as default}; 2//# sourceMappingURL=index-CUSp3on8.js.map
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.