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]="cd4c6483-945e-4b80-bfe6-7d00bdbbb73b",e._sentryDebugIdIdentifier="sentry-dbid-cd4c6483-945e-4b80-bfe6-7d00bdbbb73b")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4899],{2987:(e,r,t)=>{"use strict";t.d(r,{default:()=>n.a});var o=t(30080),n=t.n(o)},23501:(e,r,t)=>{"use strict";t.d(r,{default:()=>d});var o=t(99702),n=t(83332),s=t(22604),a=t(26294),l=t(56992);let i=(0,a.memo)(function(e){let{error:r,resetErrorBoundary:t,componentName:a}=e,l=(0,s.Qk)(r);return(0,s.A)(r)&&r.isUserFriendly||n.Cp(r,{extra:{componentName:a||"unknown",errorType:r.name,errorMessage:r.message,errorStack:r.stack},tags:{location:a||"unknown",errorType:r.name}}),(0,o.jsxs)("div",{role:"alert",className:"p-4 border border-error rounded-lg bg-error-light max-w-xl mx-auto my-8",children:[(0,o.jsx)("h2",{className:"text-lg font-semibold text-red-800 mb-2",children:"Oops! Something went wrong"}),(0,o.jsx)("p",{className:"text-red-700 mb-4",children:l}),!1,(0,o.jsx)("button",{onClick:t,className:"px-4 py-2 bg-error text-white rounded-sm hover:bg-error-hover transition-colors",children:"Try again"})]})}),d=(0,a.memo)(function(e){let{children:r,componentName:t,fallback:n=i,onError:s}=e,d=(0,a.useCallback)(e=>(0,o.jsx)(n,{...e,componentName:t}),[n,t]);return(0,o.jsx)(l.ErrorBoundary,{FallbackComponent:d,onError:(e,r)=>{s&&s(e,r),console.error("Error in ".concat(t||"component",":"),e,r)},children:r})})},30080:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{default:function(){return i},getImageProps:function(){return l}});let o=t(93971),n=t(19108),s=t(84792),a=o._(t(144));function l(e){let{props:r}=(0,n.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[25,50,75,85,100],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(r))void 0===t&&delete r[e];return{props:r}}let i=s.Image},30414:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var o=t(26294);let n=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},s=function(){for(var e=arguments.length,r=Array(e),t=0;t!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,o.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:u,...m}=e;return(0,o.createElement)("svg",{ref:r,...a,width:n,height:n,stroke:t,strokeWidth:i?24*Number(l)/Number(n):l,className:s("lucide",d),...!c&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(m)&&{"aria-hidden":"true"},...m},[...u.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(c)?c:[c]])}),i=(e,r)=>{let t=(0,o.forwardRef)((t,a)=>{let{className:i,...d}=t;return(0,o.createElement)(l,{ref:a,iconNode:r,className:s("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),i),...d})});return t.displayName=n(e),t}},37297:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,43231,23)),Promise.resolve().then(t.t.bind(t,84792,23)),Promise.resolve().then(t.bind(t,39259)),Promise.resolve().then(t.bind(t,92524)),Promise.resolve().then(t.bind(t,32704)),Promise.resolve().then(t.bind(t,76739)),Promise.resolve().then(t.bind(t,23501))},39259:(e,r,t)=>{"use strict";t.d(r,{BooksGrid:()=>c});var o=t(99702),n=t(26294),s=t(2987),a=t(43231),l=t.n(a),i=t(17700);let d=(0,n.memo)(function(e){let{book:r,isPriority:t}=e,a=(0,n.useCallback)(e=>{e.preventDefault();let t=document.getElementById(r.slug);t&&t.scrollIntoView({behavior:"smooth"})},[r.slug]);return(0,o.jsx)(l(),{href:"#".concat(r.slug),onClick:a,className:"inline-block","aria-label":"View ".concat(r.title),children:(0,o.jsx)(s.default,{src:r.coverSrc,alt:r.title,width:100,height:150,sizes:"(max-width: 768px) 100px, 100px",quality:85,className:"border border-black rounded-xs shadow-md transition-transform hover:scale-105",priority:t,loading:t?"eager":"lazy"})})}),c=(0,n.memo)(function(){let e=i.b.slice(0,10);return(0,o.jsx)("div",{className:"mx-auto max-w-2xl flex flex-wrap gap-4 md:gap-8 justify-center",children:e.map((e,r)=>(0,o.jsx)(d,{book:e,isPriority:r<3},e.slug))})})},43744:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});let o=(0,t(30414).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},56992:(e,r,t)=>{"use strict";t.d(r,{ErrorBoundary:()=>a});var o=t(26294);let n=(0,o.createContext)(null),s={didCatch:!1,error:null};class a extends o.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var r,t,o=arguments.length,n=Array(o),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==r.length||e.some((e,t)=>!Object.is(e,r[t]))}(e.resetKeys,o)){var n,a;null==(n=(a=this.props).onReset)||n.call(a,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(s)}}render(){let{children:e,fallbackRender:r,FallbackComponent:t,fallback:s}=this.props,{didCatch:a,error:l}=this.state,i=e;if(a){let e={error:l,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof r)i=r(e);else if(t)i=(0,o.createElement)(t,e);else if(void 0!==s)i=s;else throw l}return(0,o.createElement)(n.Provider,{value:{didCatch:a,error:l,resetErrorBoundary:this.resetErrorBoundary}},i)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=s}}}},e=>{e.O(0,[3231,6466,4792,2809,4850,9702,888,7700,9110,3947,7358],()=>e(e.s=37297)),_N_E=e.O()}]);