import { hasActiveObservations } from "../algorithms/hasActiveObservations.mjs";
import { hasSkippedObservations } from "../algorithms/hasSkippedObservations.mjs";
import { deliverResizeLoopError } from "../algorithms/deliverResizeLoopError.mjs";
import { broadcastActiveObservations } from "../algorithms/broadcastActiveObservations.mjs";
import { gatherActiveObservationsAtDepth } from "../algorithms/gatherActiveObservationsAtDepth.mjs";
var process = function() {
  var depth = 0;
  gatherActiveObservationsAtDepth(depth);
  while (hasActiveObservations()) {
    depth = broadcastActiveObservations();
    gatherActiveObservationsAtDepth(depth);
  }
  if (hasSkippedObservations()) {
    deliverResizeLoopError();
  }
  return depth > 0;
};
export {
  process
};
