import{F as c,G as o}from"./custom-element.js";class i{#e;#s;constructor(e,t){this.#e=e,this.#s=c(t)}get current(){return this.#s(),this.#e()}}const l=/\(.+\)/,h=new Set(["all","print","screen","and","or","not","only"]);class p extends i{constructor(e,t){let a=l.test(e)||e.split(/[\s,]+/).some(s=>h.has(s.trim()))?e:`(${e})`;const n=window.matchMedia(a);super(()=>n.matches,s=>o(n,"change",s))}}export{p as M};
//# sourceMappingURL=media-query.js.map
