var u=e=>{throw TypeError(e)};var l=(e,t,s)=>t.has(e)||u("Cannot "+s);var i=(e,t,s)=>(l(e,t,"read from private field"),s?s.call(e):t.get(e)),o=(e,t,s)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),n=(e,t,s,c)=>(l(e,t,"write to private field"),c?c.call(e,s):t.set(e,s),s);import{o as b}from"./Brw7Adzg.js";import{a as f}from"./BNKx-7xT.js";var r,a;class p{constructor(t,s){o(this,r);o(this,a);n(this,r,t),n(this,a,f(s))}get current(){return i(this,a).call(this),i(this,r).call(this)}}r=new WeakMap,a=new WeakMap;const d=/\(.+\)/;class w extends p{constructor(t,s){let c=d.test(t)?t:`(${t})`;const h=window.matchMedia(c);super(()=>h.matches,m=>b(h,"change",m))}}export{w as M};
