module.exports=[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"))},74533,(e,r,t)=>{r.exports=e.x("node:child_process",()=>require("node:child_process"))},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"))},25350,e=>{"use strict";var r=e.i(74533);class t extends Error{stderr;exitCode;constructor(e,r,t){const s=r.trim().replace(/\s+/g," ").slice(0,240);super(s?`${e}: ${s}`:e),this.name="OpenClawError",this.stderr=r,this.exitCode=t}}let s=Promise.resolve();async function n(e,r={}){let t=()=>o(e,r),a=s.then(t,t);return s=a.catch(()=>void 0),a}async function o(e,s){let n;for(let o=1;o<=3;o++)try{return await function(e,s){let n=s.timeout??3e4,o=s.json??!0,a=o&&!e.includes("--json")?[...e,"--json"]:e;return new Promise((s,i)=>{let l=(0,r.spawn)("openclaw",a,{stdio:["ignore","pipe","pipe"]}),d="",p="",c=setTimeout(()=>{l.kill("SIGTERM"),i(new t(`openclaw ${e[0]??""} timed out after ${n}ms`,p,null))},n);l.stdout.on("data",e=>{d+=e.toString()}),l.stderr.on("data",e=>{p+=e.toString()}),l.on("error",e=>{(clearTimeout(c),"ENOENT"===e.code)?i(new t("openclaw not found on PATH. Install: https://docs.openclaw.ai/install","",null)):i(new t(e.message,p,null))}),l.on("close",r=>{if(clearTimeout(c),0!==r)return void i(new t(`openclaw ${e.join(" ")} exited with code ${r}`,p,r));if(!o)return void s(d);try{s(d.trim()?JSON.parse(d):null)}catch(e){i(new t(`openclaw output was not valid JSON: ${e.message}`,p,r))}})})}(e,s)}catch(r){if(n=r,!(r instanceof t)||!(1===r.exitCode&&/config changed since last load|EAGAIN|EBUSY/i.test(r.stderr))||3===o)throw r;let e=150*o+Math.floor(100*Math.random());await new Promise(r=>setTimeout(r,e))}throw n}e.s(["OpenClawError",0,t,"openclaw",0,n])}];

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