const e=/\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi,r={dark:"48842621",light:"70318723"},prefersInterfaceColorDepthReplacer=(e,s)=>`(color: ${r[s.toLowerCase()]})`,creator=r=>{const s=Object.assign({preserve:!0},r);return{postcssPlugin:"postcss-prefers-color-scheme",prepare(){const r=new WeakSet;return{AtRule:o=>{if(r.has(o))return;if("media"!==o.name.toLowerCase())return;const{params:t}=o,a=t.replace(e,prefersInterfaceColorDepthReplacer);t!==a&&(r.add(o),o.cloneBefore({params:a}),s.preserve||o.remove())}}}}};creator.postcss=!0;export{creator as default};
