import{a as w,b as B}from"/build/_shared/chunk-CEZOOT36.js";import{a as C}from"/build/_shared/chunk-3X23XH62.js";import{a as R}from"/build/_shared/chunk-ZPTQKW3R.js";import{F as o,J as m,M as i,N as h,b as N,f as _,t as A,v as d}from"/build/_shared/chunk-C3GUTQLB.js";import{C as S,D as T,a as F,l as g,s as x,u as y,v,w as k,x as E,y as L,z as b}from"/build/_shared/chunk-UT3CV7CR.js";import{d as u}from"/build/_shared/chunk-G5WX4PPA.js";var n=u(F());var e=u(T()),M=()=>({charset:"utf-8",title:"Runnable",viewport:"width=device-width,initial-scale=1"});var V=()=>[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"}],G=_({components:{MultiSelect:R}}),f=g(({children:t,head:r,includeEnv:D=!0},a)=>{let c=(0,n.useContext)(w),l=(0,n.useContext)(B);return(0,n.useEffect)(()=>{a.sheet.container=document.head;let s=a.sheet.tags;a.sheet.flush();for(let p of s)a.sheet._insertTag(p);l==null||l.reset()},[]),(0,e.jsxs)("html",{lang:"en",children:[(0,e.jsxs)("head",{children:[r,(0,e.jsx)(E,{}),(0,e.jsx)(k,{}),c==null?void 0:c.map(({key:s,ids:p,css:H})=>(0,e.jsx)("style",{"data-emotion":`${s} ${p.join(" ")}`,dangerouslySetInnerHTML:{__html:H}},s))]}),(0,e.jsxs)("body",{children:[(0,e.jsx)(A,{theme:G,children:t}),D&&(0,e.jsx)(O,{}),(0,e.jsx)(S,{}),(0,e.jsx)(L,{}),null]})]})});function P(){return(0,e.jsx)(f,{children:(0,e.jsx)(N,{mode:"wait",children:(0,e.jsx)(x,{})})})}var O=()=>{let t=b();return(0,e.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(t==null?void 0:t.ENV)}`}})};function U({error:t}){return console.error(t),(0,e.jsx)(f,{includeEnv:!1,children:(0,e.jsxs)(m,{h:"100vh",justify:"center",children:[(0,e.jsx)(i,{children:"There was an error"}),(0,e.jsx)(o,{children:t.message}),(0,e.jsx)("hr",{}),(0,e.jsx)(o,{children:(0,e.jsxs)("div",{children:["An unexpected error occurred: ",t.message]})})]})})}function I(){let t=y(),r;switch(t.status){case 401:{r=(0,e.jsxs)(h,{textAlign:"center",py:10,px:6,children:[(0,e.jsx)(i,{display:"inline-block",as:"h2",size:"2xl",bgGradient:"linear(to-r, purple.400, purple.600)",backgroundClip:"text",children:"No Access"}),(0,e.jsx)(o,{color:"gray.500",mb:6,children:"The page you are looking for does not seem to exist"}),(0,e.jsx)(d,{colorScheme:"purple",bgGradient:"linear(to-r, purple.400, purple.500, purple.600)",color:"white",variant:"solid",children:"Go to Home"})]});break}case 404:{r=(0,e.jsxs)(h,{textAlign:"center",py:10,px:6,children:[(0,e.jsx)(i,{display:"inline-block",as:"h1",size:"4xl",bgGradient:"linear(to-r, purple.400, purple.600)",backgroundClip:"text",children:"404"}),(0,e.jsx)(o,{fontSize:"24px",mt:3,mb:2,children:"Page Not Found"}),(0,e.jsx)(o,{color:"gray.500",mb:6,children:"The page you are looking for does not seem to exist"}),(0,e.jsx)(d,{as:v,colorScheme:"purple",bgGradient:"linear(to-r, purple.400, purple.500, purple.600)",color:"white",variant:"solid",to:C(),children:"Go to Home"})]});break}default:throw new Error(t.data||t.statusText)}return(0,e.jsx)(f,{includeEnv:!1,children:(0,e.jsx)(m,{h:"100vh",justify:"center",children:r})})}export{I as CatchBoundary,U as ErrorBoundary,P as default,V as links,M as meta};
