(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,596584,e=>{"use strict";e.i(951672);var r=e.i(278191),t=e.i(136357);e.s(["default",0,function({error:e,reset:n}){let s=(0,t.useRef)(""),a=(0,t.useRef)(null);return((0,t.useEffect)(()=>{if(window.parent===window)return;let e=e=>window.parent.postMessage(e,"*"),r=r=>e({type:"ERROR_CAPTURED",error:{message:r.message,stack:r.error?.stack,filename:r.filename,lineno:r.lineno,colno:r.colno,source:"window.onerror"},timestamp:Date.now()}),t=r=>e({type:"ERROR_CAPTURED",error:{message:r.reason?.message??String(r.reason),stack:r.reason?.stack,source:"unhandledrejection"},timestamp:Date.now()});return window.addEventListener("error",r),window.addEventListener("unhandledrejection",t),a.current=setInterval(()=>{let r=document.querySelector("[data-nextjs-dialog-overlay]"),t=r?.querySelector("h1, h2, .error-message, [data-nextjs-dialog-body]")??null,n=t?.textContent??t?.innerHTML??"";n&&n!==s.current&&(s.current=n,e({type:"ERROR_CAPTURED",error:{message:n,source:"nextjs-dev-overlay"},timestamp:Date.now()}))},1e3),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",t),null!==a.current&&clearInterval(a.current)}},[]),(0,t.useEffect)(()=>{e&&window.parent.postMessage({type:"global-error-reset",error:{message:e.message,stack:e.stack,digest:e.digest,name:e.name},timestamp:Date.now(),userAgent:navigator.userAgent},"*")},[e]),e)?(0,r.jsx)("html",{children:(0,r.jsx)("body",{className:"min-h-screen bg-background text-foreground flex items-center justify-center p-4",children:(0,r.jsxs)("div",{className:"max-w-md w-full text-center space-y-6",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-destructive",children:"Something went wrong!"}),(0,r.jsx)("p",{className:"text-muted-foreground",children:"An unexpected error occurred. Please try again fixing with Orchids"})]}),(0,r.jsx)("div",{className:"space-y-2",children:!1})]})})}):null}],596584)}]);