import{n,s as t}from"./index-ce8c147b.js";const e=[];function s(s,o=n){let c;const i=new Set;function f(n){if(t(s,n)&&(s=n,c)){const n=!e.length;for(const n of i)n[1](),e.push(n,s);if(n){for(let n=0;n{i.delete(r),0===i.size&&(c(),c=null)}}}}export{s as w};