import{c as s,w as o,c4 as t,bi as u,bh as l,a5 as v,c5 as c}from"./index-BT5eY4j5.js";function d(a){{const e={active:!0};if(typeof a=="function"){const n=s(a);e.val=n.value,o(n,i=>{e.val=i,e.active===!0&&t()})}else e.val=a;c.push(e),t(),u(()=>{e.active=!0,t()}),l(()=>{e.active=!1,t()}),v(()=>{c.splice(c.indexOf(e),1),t()})}}export{d as u};
