import{resizeObservers as e}from"../utils/resizeObservers.js";import{ResizeObserverEntry as r}from"../ResizeObserverEntry.js";import{calculateDepthForNode as t}from"./calculateDepthForNode.js";import{calculateBoxSize as a}from"./calculateBoxSize.js";var broadcastActiveObservations=function(){var s=1/0,o=[];e.forEach((function processObserver(e){if(0!==e.activeTargets.length){var c=[];e.activeTargets.forEach((function processTarget(e){var o=new r(e.target),i=t(e.target);c.push(o),e.lastReportedSize=a(e.target,e.observedBox),i<s&&(s=i)})),o.push((function resizeObserverCallback(){e.callback.call(e.observer,c,e.observer)})),e.activeTargets.splice(0,e.activeTargets.length)}}));for(var c=0,i=o;c<i.length;c++){(0,i[c])()}return s};export{broadcastActiveObservations};