1import{j as s}from"./jsx-runtime-u17CrQMm.js";import{i as x,L as d}from"./chunk-LFPYN7LY-CxYJBB4n.js";import{s as i}from"./config-D7Hgu3rf.js";import{F as h}from"./http-CTVYXoFf.js";import{c as p}from"./classname-DRuCqhNm.js";import{R as f}from"./refresh-cw-cNFTOX44.js";import{c as g}from"./createLucideIcon-CLTT37CB.js";import{M as u}from"./map-DdKtxsw_.js";import{S as w}from"./server-crash-D7Omz0HJ.js";import{F as l}from"./frown-LqFC2Eny.js";const y=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],N=g("house",y);function L(c){const{error:e,isNotFound:n=!1,className:m}=c;let a="Oops!",t="Something went wrong. Please try again later.",o=s.jsx(w,{className:"h-16 w-16 opacity-10"}),r;return x(e)?(e.status,e.status===404?(a="Not found",t="Page not found. How about these pages?",o=s.jsx(l,{className:"h-16 w-16 opacity-100"})):(a=`Error ${e.status}`,t=e.statusText||t)):e&&h.isFetchError(e)?(e.status,e.status===404?(a="Not found",t="Page not found. How about these pages?",o=s.jsx(l,{className:"h-16 w-16 opacity-100"})):(a=`Error ${e.status}`,t=e?.message||t),i.isDev&&!n&&(r=e.stack)):e instanceof globalThis.Error&&(t=e.message||t,i.isDev&&(r=e.stack)),s.jsxs("div",{className:p("mx-auto flex h-screen max-w-md flex-col items-center justify-center",m),children:[o,s.jsx("h1",{className:"mt-5 mb-2 text-3xl font-bold",children:a}),s.jsx("p",{className:"mb-5 text-center text-lg text-gray-600",children:t}),s.jsxs("div",{className:"flex flex-row gap-2",children:[s.jsxs("button",{onClick:()=>window.location.reload(),className:"flex items-center gap-2 rounded-md bg-gray-200 px-3 py-2 text-gray-900 transition-colors hover:bg-black hover:text-white",children:[s.jsx(f,{className:"h-5 w-5"}),"Try Again"]}),s.jsxs("a",{href:"/",className:"flex items-center gap-2 rounded-md bg-gray-200 px-3 py-2 text-gray-900 transition-colors hover:bg-black hover:text-white",children:[s.jsx(N,{className:"h-5 w-5"}),"Homepage"]}),s.jsxs(d,{className:"flex items-center gap-2 rounded-md bg-gray-200 px-3 py-2 text-gray-900 transition-colors hover:bg-black hover:text-white",to:"/roadmaps",children:[s.jsx(u,{className:"h-5 w-5"}),"Roadmaps"]})]}),r&&s.jsx("pre",{className:"mt-6 w-full overflow-x-auto rounded-md bg-gray-100 p-4 text-sm",children:s.jsx("code",{children:r})})]})}export{L as E};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.