module.exports=[93695,(e,r,t)=>{r.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},18622,(e,r,t)=>{r.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},22734,(e,r,t)=>{r.exports=e.x("fs",()=>require("fs"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},54799,(e,r,t)=>{r.exports=e.x("crypto",()=>require("crypto"))},17883,e=>{"use strict";var r=e.i(22734),t=e.i(46786),s=e.i(14747);let o=(0,s.join)((0,t.homedir)(),".config","evoscientist","langgraph_dev.workspace.json");function i(e){for(let r=0;r<e.length;r+=1){let t=e.charCodeAt(r);if(t<32||127===t||t>=128&&t<=159||8232===t||8233===t)return!0}return!1}let a=new Set(["large_tool_results","conversation_history","__pycache__","node_modules","__MACOSX"]),n=[".pyc",".pyo"];function p(e){return!!(e.startsWith(".")||a.has(e))||n.some(r=>e.endsWith(r))}async function c(){let e;try{let t=JSON.parse(await r.promises.readFile(o,"utf-8")),s=t.workspace,i=t.pid;"string"==typeof s&&s.trim()&&(!("number"==typeof i&&i>0)||function(e){try{return process.kill(e,0),!0}catch(e){return"EPERM"===e.code}}(i))&&(e=s)}catch{}if(!(e||=process.env.EVOSCIENTIST_WORKSPACE_DIR))throw Error("No active EvoScientist workspace found. Start the backend with `EvoSci deploy` first.");let t=(0,s.resolve)(e);if(!(await r.promises.stat(t)).isDirectory())throw Error("The active EvoScientist workspace is not a directory.");return r.promises.realpath(t)}async function l(e,t){let o,a=function(e,r){if(i(r))throw Error("Invalid path.");let t=r.replaceAll("\\","/").replace(/^\/+/,"");if(t.split("/").some(e=>""!==e&&p(e)))throw Error("Path is not accessible.");let o=(0,s.resolve)(e,t);if(o!==e&&!o.startsWith(e+s.sep))throw Error("Path is outside the workspace.");return o}(e,t);try{o=await r.promises.realpath(a)}catch{throw Error("Path is not accessible.")}if(o!==e&&!o.startsWith(e+s.sep))throw Error("Path is not accessible.");let n=(0,s.relative)(e,o);if(n&&n.split(s.sep).some(e=>""!==e&&p(e)))throw Error("Path is not accessible.");return o}e.s(["getWorkspaceDir",0,c,"hasControlChar",0,i,"isCrossOrigin",0,function(e){let r=e.headers.get("sec-fetch-site");if(r&&"same-origin"!==r&&"same-site"!==r&&"none"!==r)return!0;let t=e.headers.get("origin");return!!t&&t!==e.nextUrl.origin},"isHiddenEntry",0,p,"safeResolve",0,l,"zipExcludeArgs",0,function(){let e=[".*","*/.*"];for(let r of a)e.push(`${r}/*`,`*/${r}/*`,r,`*/${r}`);for(let r of n)e.push(`*${r}`);return e.flatMap(e=>["-x",e])}])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__0hlva1f._.js.map