1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,408821,e=>{"use strict";var t=e.i(843476),n=e.i(633160);e.s(["default",0,function({error:e,reset:o}){return(0,t.jsx)(n.default,{error:e,reset:o,context:"app-level"})}])},633160,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(522016),s=e.i(313800);let r={chunk:{icon:(0,t.jsx)("svg",{className:"mx-auto mb-4 h-16 w-16 text-blue-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})}),title:"Page Update Available",description:"A new version of this page is available. Reloading nowâ¦"},timeout:{icon:(0,t.jsx)("svg",{className:"mx-auto mb-4 h-16 w-16 text-amber-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),title:"Connection Timed Out",description:"The server took too long to respond. This is usually temporary â please try again in a few moments."},connection:{icon:(0,t.jsx)("svg",{className:"mx-auto mb-4 h-16 w-16 text-red-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})}),title:"Connection Error",description:"We were unable to connect to the server. This is usually temporary â please try again in a few moments."},generic:{icon:(0,t.jsx)("svg",{className:"mx-auto mb-4 h-16 w-16 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})}),title:"Something Went Wrong",description:"An unexpected error occurred while loading this page. Please try again."},"rate-limit":{icon:(0,t.jsx)("svg",{className:"mx-auto mb-4 h-16 w-16 text-amber-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m0 3.75h.008M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),title:"Too Many Requests",description:"You have made too many requests in a short period. Please wait a moment and try again."},"bad-gateway":{icon:(0,t.jsx)("svg",{className:"mx-auto mb-4 h-16 w-16 text-red-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})}),title:"Service Temporarily Unavailable",description:"We are unable to connect to the service right now. Please try again in a few moments."}};e.s(["default",0,function({error:e,reset:i,context:a}
1){let[c,l]=(0,n.useState)(!1),[d,m]=(0,n.useState)(!1),u=(0,n.useMemo)(()=>{let t,n;return t=(e.message||"").toLowerCase(),(n=(e.name||"").toLowerCase()).includes("chunkloaderror")||t.includes("failed to load chunk")||t.includes("loading chunk")||t.includes("loading css chunk")?"chunk":"aborterror"===n||t.includes("timed out")||t.includes("timeout")||t.includes("etimedout")?"timeout":t.includes("fetch failed")||t.includes("econnrefused")||t.includes("econnreset")||t.includes("network")||t.includes("dns")||t.includes("bad gateway")||t.includes("service unavailable")?"connection":t.includes("rate_limited")?"rate-limit":t.includes("bad_gateway")?"bad-gateway":"generic"},[e]),h=r[u];return(0,n.useEffect)(()=>{l((0,s.isDevelopment)())},[]),(0,n.useEffect)(()=>{if("chunk"===u){let e=`chunk-reload-${window.location.pathname}`;if(!sessionStorage.getItem(e)){sessionStorage.setItem(e,"1");let t=setTimeout(()=>{window.location.reload()},1500);return()=>clearTimeout(t)}sessionStorage.removeItem(e)}},[u]),(0,n.useEffect)(()=>{let t={type:u,name:e.name,message:e.message,digest:e.digest,stack:e.stack,url:window.location.href,context:a||"unknown",timestamp:new Date().toISOString()};console.error(`[ErrorPage] ${u.toUpperCase()} error on ${t.url}`,JSON.stringify(t,null,2));try{fetch("/api/log-error",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"CLIENT_ERROR",level:"ERROR",message:`${"timeout"===u?"Connection timeout":"connection"===u?"Connection error":"Page error"} occurred`,error:{name:e.name,message:(e=>{if("object"==typeof e.message&&null!==e.message)try{return JSON.stringify(e.message)}catch{return String(e.message)}return e.message||"Unknown error"})(e),type:u},stack:e.stack,url:t.url,custom:{digest:e.digest,route:a||"unknown",errorType:u},timestamp:t.timestamp})}).catch(()=>{})}catch{}},[e,u,a]),(0,t.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-white to-zinc-50 flex items-center justify-center px-4 py-12",children:(0,t.jsxs)("div",{className:"text-center max-w-lg w-full",children:[h.icon,(0,t.jsx)("h1",{className:"text-3xl font-bold text-zinc-900 mb-3 sm:text-4xl",children:h.title}),(0,t.jsx)("p",{className:"text-zinc-500 text-base mb-8 leading-relaxed max-w-md mx-auto",children:h.description}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center mb-8",children:[(0,t.jsx)("button",{onClick:()=>{m(!0),setTimeout(()=>{i(),m(!1)},500)},disabled:d,className:"inline-flex items-center justify-center gap-2 rounded-lg bg-emerald-600 px-6 py-3 text-white font-semibold shadow-sm transition-all duration-200 hover:bg-emerald-700 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Retryingâ¦"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})}),"Try Again"]})}),(0,t.jsxs)(o.default,{prefetch:!1,href:"/",className:"inline-flex items-center justify-center gap-2 rounded-lg border border-zinc-300 bg-white px-6 py-3 text-zinc-700 font-semibold transition-all duration-200 hover:bg-zinc-50 hover:border-zinc-400 focus:outline-none focus:ring-2 focus:ring-zinc-500 focus:ring-offset-2",children:[(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})}),"Go to Homepage"]})]}),("timeout"===u||"connection"===u)&&(0,t.jsxs)("div",{className:"rounded-lg bg-amber-50 border border-amber-200 p-4 text-sm text-amber-800 max-w-md mx-auto",children:[(0,t.jsx)("p",{className:"font-medium mb-1",children:"What can you do?"}),(0,t.jsxs)("ul",{className:"list-disc list-inside text-left space-y-1 text-amber-700",children:[(0,t.jsx)("li",{children:'Wait a few moments and click "Try Again"'}),(0,t.jsx)("li",{children:"Check your internet connection"}),(0,t.jsx)("li",{children:"If the problem persists, please try again later"})]})]}),c&&(0,t.jsxs)("details",{className:"mt-6 text-left rounded-lg border border-zinc-200 bg-zinc-50 p-4 max-w-md mx-auto",children:[(0,t.jsxs)("summary",{className:"cursor-pointer text-sm font-medium text-zinc-600",children:["Developer Details (",u,")"]}),(0,t.jsxs)("pre",{className:"mt-3 overflow-auto text-xs text-zinc-500 whitespace-pre-wrap break-words",children:[e.name,": ",e.message,"\n\n",e.stack,e.digest&&` 2 3Digest: ${e.digest}`]})]})]})})}])}]);
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.