const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-BwXDdQrM.js","assets/chunk-zsgVPwQN.js","assets/preload-helper-rov5CBGT.js","assets/chunk-A7RFOIQ7-jlNKEM6a.js","assets/chunk-BTBUZ646-DM3JdZYw.js","assets/chunk-EADU5A67-CVVwbce8.js","assets/chunk-WGR4JCLS-BWJvuO-n.js","assets/dist-BsAHseYP.js","assets/chunk-3WWIVTCY-BYrk_Nvy.js","assets/chunk-QY3QWFKW-D9_sMH3U.js","assets/dist-DisOkfCO.js","assets/chunk-F2DQ4FIK-Hc2gUWci.js","assets/chunk-VBDAOXYI-4h3am91F.js"])))=>i.map(i=>d[i]);
import{t as e}from"./preload-helper-rov5CBGT.js";import{l as t}from"./module-D-kY811l.js";var n=`ph:pending-pg-seed`;async function r(){let r=localStorage.getItem(n);if(!r)return;let i=parseInt(r,10);console.info(`[pglite-seed] Seeding fresh PG${i} data dir...`);try{if(i===16){let{PGlite:t}=await e(async()=>{let{PGlite:e}=await import(`./dist-BwXDdQrM.js`);return{PGlite:e}},__vite__mapDeps([0,1,2,3,4,5,6])),n=new t(`idb://reactor`);try{await n.waitReady}finally{await n.close()}}else if(i===17){let{PGlite:t}=await e(async()=>{let{PGlite:e}=await import(`./dist-BsAHseYP.js`);return{PGlite:e}},__vite__mapDeps([7,8,1,2,9,10,11,12])),n=new t(`idb://reactor`);try{await n.waitReady}finally{await n.close()}}else{console.warn(`[pglite-seed] Unsupported version ${r}, skipping`);return}console.info(`[pglite-seed] Seeded PG${i} data dir.`)}finally{localStorage.removeItem(n),t()}}export{r as n,n as t};
//# sourceMappingURL=pglite-seed-BtXWFpHf-BZ6di5-I.js.map