/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/launchpod@1.0.6/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const cluster=require("cluster");var worker,replWorker=require("./lib/repl-worker.js");function launch(r,e){if(!r)throw new Error(`Application path is invalid. Provided path: ${r}`);cluster.isMaster?forkNewWorker(r,e):replWorker.launch()}function forkNewWorker(r,e){if(worker){worker.process.removeAllListeners("message"),worker.once("exit",((o,l)=>{_forkNewWorker(r,e)}));try{worker.disconnect(),worker.kill()}catch(r){console.log(r)}}else _forkNewWorker(r,e)}function _forkNewWorker(r,e){(worker=cluster.fork({appPath:r,configJSONPath:e})).process.on("message",(o=>{"CMD"!==o.type||"QUIT"!==o.value?"CMD"!==o.type||"RESTART"!==o.value||forkNewWorker(r,e):process.exit()}))}launch(process.argv[2]||null,process.argv[3]||null),module.exports={launch:launch};
//# sourceMappingURL=/sm/5ead0930bad593b704c437a607ea3e9e8b8f652e909fe53aadc62e393ac8b029.map