class StartupError extends Error{}async function getBundleName(e){const t=await fetch(new URL("index.html",e).toString());if(!t.ok)throw new StartupError(`Couldn't fetch index.html to prefill bundle; ${t.status} ${t.statusText}`);return(await t.text()).split("\n").map(e=>e.match(/