try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4c87d72c-3752-4ae7-bdc6-9840d79a63c3",e._sentryDebugIdIdentifier="sentry-dbid-4c87d72c-3752-4ae7-bdc6-9840d79a63c3")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3011],{4672:(e,r,t)=>{"use strict";var a=t(59376);t.o(a,"useParams")&&t.d(r,{useParams:function(){return a.useParams}}),t.o(a,"usePathname")&&t.d(r,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})},22604:(e,r,t)=>{"use strict";t.d(r,{A:()=>g,Qk:()=>m,UL:()=>i,go:()=>d,ic:()=>l,rD:()=>h,tS:()=>c});class a extends Error{constructor(e,r){super(e),this.code="VALIDATION_ERROR",this.isUserFriendly=!0,this.name="ValidationError",this.context=r}}class n extends Error{constructor(e,r){super(e),this.code="NETWORK_ERROR",this.isUserFriendly=!0,this.name="NetworkError",this.context=r}}class s extends Error{constructor(e,r){super(e),this.code="SERVER_ERROR",this.isUserFriendly=!1,this.name="ServerError",this.context=r}}class o extends Error{constructor(e,r){super(e),this.code="USER_ACTION_ERROR",this.isUserFriendly=!0,this.name="UserActionError",this.context=r}}let i=(e,r)=>new a(e,r),c=(e,r)=>new n(e,r),l=(e,r)=>new s(e,r),d=(e,r)=>new o(e,r);class u extends Error{constructor(e,r){super(e),this.code="CONFIGURATION_ERROR",this.isUserFriendly=!1,this.name="ConfigurationError",this.context=r}}let h=(e,r)=>new u(e,r),g=e=>e instanceof Error&&"code"in e&&"isUserFriendly"in e,m=e=>g(e)&&e.isUserFriendly?e.message:e instanceof Error?"Something went wrong. Please try again.":"An unexpected error occurred. Please try again."},22849:(e,r,t)=>{"use strict";t.d(r,{A:()=>d});var a=t(99702),n=t(83332),s=t(22604),o=t(43231),i=t.n(o),c=t(26294);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"primary";return"".concat("px-4 py-2 rounded transition-colors font-medium"," ").concat({primary:"bg-error text-white hover:bg-error-hover",secondary:"bg-gray-600 text-white hover:bg-gray-700",tertiary:"bg-gray-500 text-white hover:bg-gray-600"}[e])},d=(0,c.memo)(function(e){let{error:r,onReset:t,title:o="Oops! Something went wrong",message:d,navigationLinks:u=[{href:"/",label:"Go to homepage",variant:"secondary"}],sentryContext:h={location:"unknown"},showDevDetails:g=!1}=e,m=(0,c.useRef)(null);m.current!==r&&((0,s.A)(r)&&r.isUserFriendly||(m.current=r,n.Cp(r,{extra:{digest:r.digest,...h.extra},tags:{location:h.location,errorType:r.name}})));let b=d||(0,s.Qk)(r);return(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center px-4",children:(0,a.jsxs)("div",{role:"alert",className:"p-6 border border-error rounded-lg bg-error-light max-w-xl w-full",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold text-error-heading mb-3",children:o}),(0,a.jsx)("p",{className:"text-error-text mb-6",children:b}),g&&(0,a.jsxs)("details",{className:"mb-6",children:[(0,a.jsx)("summary",{className:"cursor-pointer text-sm font-medium text-error-heading mb-2",children:"Developer details"}),(0,a.jsxs)("pre",{className:"text-xs bg-white p-3 rounded overflow-auto border border-error",children:[r.message,r.stack&&"\n\nStack trace:\n".concat(r.stack),r.digest&&"\n\nDigest: ".concat(r.digest)]})]}),(0,a.jsxs)("div",{className:"flex gap-3 flex-wrap",children:[(0,a.jsx)("button",{onClick:t,className:l("primary"),type:"button",children:"Try again"}),u.map((e,r)=>(0,a.jsx)(i(),{href:e.href,className:l(e.variant||(0===r?"secondary":"tertiary")),children:e.label},e.href))]})]})})})},44413:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var a=t(99702),n=t(22849),s=t(4672),o=t(26294);let i=[{path:"/blog",title:"Error Loading Blog",message:"We couldn't load the blog content.",navigationLinks:[{href:"/blog",label:"Back to blog",variant:"secondary"},{href:"/",label:"Homepage",variant:"tertiary"}]},{path:"/games",title:"Error Loading Game",message:"We couldn't load the game.",navigationLinks:[{href:"/games",label:"Back to games",variant:"secondary"},{href:"/",label:"Homepage",variant:"tertiary"}]},{path:"/courses",title:"Error Loading Course",message:"We couldn't load the course content.",navigationLinks:[{href:"/courses",label:"Back to courses",variant:"secondary"},{href:"/",label:"Homepage",variant:"tertiary"}]},{path:"/books",title:"Error Loading Book",message:"We couldn't load the book information.",navigationLinks:[{href:"/books",label:"Back to books",variant:"secondary"},{href:"/",label:"Homepage",variant:"tertiary"}]},{path:"/contact",title:"Error Loading Contact Form",message:"We couldn't load the contact form. Please try again or reach out via email.",navigationLinks:[{href:"/",label:"Go to homepage",variant:"secondary"}]}],c={title:"Oops! Something went wrong",message:"We encountered an unexpected error.",navigationLinks:[{href:"/",label:"Go to homepage",variant:"secondary"}]};function l(e){let{error:r,reset:t}=e,l=(0,s.usePathname)()||"/",d=(0,o.useMemo)(()=>i.find(e=>l===e.path||l.startsWith("".concat(e.path,"/")))||c,[l]);return(0,a.jsx)(n.A,{error:r,onReset:t,title:d.title,message:d.message,navigationLinks:d.navigationLinks,sentryContext:{location:"(pages) route group",extra:{pathname:l}}})}},51764:(e,r,t)=>{Promise.resolve().then(t.bind(t,44413))}},e=>{e.O(0,[3231,9110,3947,7358],()=>e(e.s=51764)),_N_E=e.O()}]);