import{o as e}from"./chunk-zsgVPwQN.js";import{l as t}from"./chunk-BTBUZ646-DM3JdZYw.js";import{s as n,t as r}from"./chunk-WGR4JCLS-BWJvuO-n.js";import{t as i}from"./__vite-browser-external-a4Y4nBkk.js";var a=e(i(),1);t();var o=class extends n{constructor(e){super(e),this.rootDir=a.resolve(e),a.existsSync(a.join(this.rootDir))||a.mkdirSync(this.rootDir)}async init(e,t){return this.pg=e,{emscriptenOpts:{...t,preRun:[...t.preRun||[],e=>{let t=e.FS.filesystems.NODEFS;e.FS.mkdir(r),e.FS.mount(t,{root:this.rootDir},r)}]}}}async closeFs(){this.pg.Module.FS.quit()}};export{o as NodeFS};
//# sourceMappingURL=nodefs-C6a8W5Y2.js.map