import { tapIf as e } from "../helpers/functions.js";
var t = /* @__PURE__ */ new WeakMap(), n = new ResizeObserver((n) => {
	for (let r of n) e(t.get(r.target), (e) => e(r));
});
function r(e, r) {
	t.set(e, r), n.unobserve(e), n.observe(e);
}
function i(e) {
	n.unobserve(e), t.delete(e);
}
export { r as startResizeObserving, i as stopResizeObserving };

//# sourceMappingURL=resizeObserver.js.map