"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const maxGeneratorDuration = 2e4;
function calcGeneratorDuration(generator) {
  let duration = 0;
  const timeStep = 50;
  let state = generator.next(duration);
  while (!state.done && duration < maxGeneratorDuration) {
    duration += timeStep;
    state = generator.next(duration);
  }
  return duration >= maxGeneratorDuration ? Infinity : duration;
}
exports.calcGeneratorDuration = calcGeneratorDuration;
exports.maxGeneratorDuration = maxGeneratorDuration;
//# sourceMappingURL=dist-es-animation-generators-utils-calc-duration.cjs.map
