"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=new WeakMap,t=new WeakMap,n=t=>{const n=e.get(t.target);n&&n(t)},o=e=>{e.forEach(n)};exports.observeIntersection=function(n,r,s){const c=function(e){let{root:n,...r}=e;const s=n||document;t.has(s)||t.set(s,{});const c=t.get(s),u=JSON.stringify(r);return c[u]||(c[u]=new IntersectionObserver(o,{root:n,...r})),c[u]}(r);return e.set(n,s),c.observe(n),()=>{e.delete(n),c.unobserve(n)}};
//# sourceMappingURL=observers.mjs.js.map
