var m=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var d=(t,e)=>{for(var s in e)m(t,s,{get:e[s],enumerable:!0})},i=(t,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of n(e))!h.call(t,r)&&r!==s&&m(t,r,{get:()=>e[r],enumerable:!(o=a(e,r))||o.enumerable});return t};var u=t=>i(m({},"__esModule",{value:!0}),t);var k={};d(k,{useThemeDetector:()=>f});module.exports=u(k);var c=require("react"),f=()=>{let t=()=>window.matchMedia("(prefers-color-scheme: dark)").matches,[e,s]=(0,c.useState)(t()),o=r=>{s(r.matches)};return(0,c.useEffect)(()=>{let r=window.matchMedia("(prefers-color-scheme: dark)");return r.addListener(o),()=>r.removeListener(o)},[]),e};0&&(module.exports={useThemeDetector});
