var n=8,o=1,_=64;function U(e){if(!e||typeof e!="object")return 8;let t=e.parallel;if(!t||typeof t!="object")return 8;let R=t.maxConcurrentRuns??t.maxConcurrent,r=Number(R);if(!Number.isFinite(r))return 8;let N=Math.floor(r);return N<1?8:Math.min(64,N)}function a(e){if(!e||typeof e!="object")return!1;let t=e.parallel;return!(!t||typeof t!="object"||t.waitWhenAtCapacity===!1)}export{n as DEFAULT_MAX_CONCURRENT_RUNS,_ as MAX_MAX_CONCURRENT_RUNS,o as MIN_MAX_CONCURRENT_RUNS,U as resolveMaxParallelRuns,a as resolveWaitWhenAtCapacity};
