import{U as o,k as n,a3 as v,K as i,M as l,L as c}from"./index-DRopsKkO.js";function f(u,s,a={childList:!0,attributes:!0,characterData:!0}){if(o)return;const r=new MutationObserver(s),e=n(()=>v(u));return i(()=>{e.value&&(Array.isArray(e.value)?e.value.forEach(t=>{r.observe(t,a)}):r.observe(e.value,a))}),l(e,()=>{if(e.value){if(Array.isArray(e.value)){e.value.forEach(t=>{r.observe(t,a)});return}r.observe(e.value,a)}},{deep:!0}),c(()=>{r.disconnect()}),{observer:r}}export{f as u};
