try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cbd7d764-1234-4b56-97b9-be74cf933a33",e._sentryDebugIdIdentifier="sentry-dbid-cbd7d764-1234-4b56-97b9-be74cf933a33")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{1652:(e,t,r)=>{"use strict";r.d(t,{SentryBreadcrumbTracker:()=>a});var n=r(28681),s=r(71390),l=r(24375);function a(e){let{pageTitle:t}=e,r=(0,n.usePathname)(),a=(0,n.useSearchParams)();return(0,l.useEffect)(()=>{let e=r+((null==a?void 0:a.toString())?"?".concat(a.toString()):"");s.jU.pageView(e,t)},[r,a,t]),null}},10142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ReviewsCarousel:()=>o});var n=r(65183),s=r(24375),l=r(39812);let a=(0,s.memo)(function(e){var t;let{review:r,showRating:a,showBorder:o,index:i,onCardClick:c}=e,d=(0,s.useCallback)(()=>c(i),[c,i]),u=(0,s.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c(i))},[c,i]);return(0,n.jsx)("div",{className:"w-52 md:w-72 h-48 shrink-0 flex snap-center","data-index":i,onClick:d,onKeyDown:u,role:"button",tabIndex:0,"aria-label":"Center review ".concat(i+1," of ").concat((null==(t=r.author)?void 0:t.name)||"anonymous"),children:(0,n.jsx)(l.ReviewCard,{review:r,showRating:a,showBorder:o,className:"h-full"})})}),o=(0,s.memo)(function(e){let{reviews:t,showRatings:r,title:l="Some reviews",width:o,height:i,showBorder:c=!0}=e,d=(0,s.useRef)(null),{isDragging:u,handleDragStart:m,handleDragEnd:h,handleDragMove:x}=(e=>{let[t,r]=(0,s.useState)(!1),n=(0,s.useRef)({x:0,scrollLeft:0}),l=(0,s.useCallback)(t=>{var s,l;e.current&&(r(!0),n.current={x:"touches"in t&&t.touches&&t.touches.length>0&&null!=(l=null==(s=t.touches[0])?void 0:s.clientX)?l:t.clientX,scrollLeft:e.current.scrollLeft})},[e]),a=(0,s.useCallback)(()=>{r(!1)},[]),o=(0,s.useCallback)(r=>{var s,l;if(!t||!e.current)return;r.preventDefault();let a="touches"in r&&r.touches&&r.touches.length>0&&null!=(l=null==(s=r.touches[0])?void 0:s.clientX)?l:r.clientX,o=n.current.x-a;e.current.scrollLeft=n.current.scrollLeft+o},[t,e]);return{isDragging:t,handleDragStart:l,handleDragEnd:a,handleDragMove:o}})(d),f=(0,s.useCallback)(e=>{if(d.current){let t=d.current.children[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},[d]),g=(0,s.useCallback)(e=>{if(!d.current)return;let t=d.current;t.scrollLeft;let r=t.clientWidth,n=t.querySelector(".carousel-item");if(!n)return;let s=n.getBoundingClientRect().width,l=(r-s*Math.floor(r/s))/(Math.floor(r/s)-1||1),a=s+l;"ArrowRight"===e.key?t.scrollBy({left:a,behavior:"smooth"}):"ArrowLeft"===e.key&&t.scrollBy({left:-a,behavior:"smooth"})},[]),v=(0,s.useCallback)(e=>t=>{(null==t?void 0:t.currentTarget)&&(null==t?void 0:t.target)&&(t.persist(),e(t))},[]),p=t.length<2,b=t.length<3&&"lg"===o;return(0,n.jsxs)("div",{className:"".concat("sm"===i?"mt-0 mb-0 p-0":"")+" p-4",children:[(0,n.jsx)("h3",{className:"text-xl font-semibold mb-4",children:l}),(0,n.jsx)("div",{className:"w-full relative",children:(0,n.jsx)("div",{className:"relative",onKeyDown:g,role:"region",tabIndex:0,"aria-label":"Reviews carousel - use arrow keys to navigate, or drag to scroll",children:(0,n.jsx)("div",{className:"mx-auto mb-4 relative overflow-x-scroll select-none\n max-w-[280px] sm:max-w-[380px] md:max-w-[420px] ".concat("lg"===o?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(p?"flex justify-center":"","\n scrollbar-hide h-48\n scroll-smooth snap-x snap-mandatory"),ref:d,onMouseDown:v(m),onMouseUp:v(h),onMouseLeave:v(h),onMouseMove:v(x),onTouchStart:v(m),onTouchEnd:v(h),onTouchMove:v(x),role:"region","aria-label":"Reviews carousel - drag to scroll or click on a review to center it","aria-live":"polite",children:(0,n.jsx)("div",{className:"flex space-x-4 md:space-x-6 h-full ".concat(b?"md:justify-center":""),children:t.map((e,t)=>(0,n.jsx)(a,{review:e,showRating:r,showBorder:c,index:t,onCardClick:f},"review-".concat(t)))})})})})]})})},32601:()=>{},37142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GoogleAnalyticsWrapper:()=>a});var n=r(65183),s=r(23177);let l={gaId:"G-MQGC7LJZ33"};function a(e){let{gaId:t}=e,r=t||l.gaId;return r?(0,n.jsx)(s.GoogleAnalytics,{gaId:r}):null}},44565:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(9613),s=r(24375);let l=function(){let e=(0,s.useRef)(new Set),t=(0,s.useCallback)(async t=>{if(!e.current.has(t.src)&&0===t.naturalWidth&&0===t.naturalHeight)try{let r=await fetch(t.src,{method:"HEAD"});if(404!==r.status)return;let s={src:t.src,message:"Image returned 404",timestamp:new Date().toISOString(),elementId:t.id||void 0,altText:t.alt||void 0,loadingStrategy:t.loading||void 0,viewport:{width:window.innerWidth,height:window.innerHeight}};e.current.add(t.src),n.wd("Image 404: ".concat(t.src),{level:"error",extra:{...s},tags:{imageHost:new URL(t.src).hostname,imageSize:"".concat(t.width,"x").concat(t.height),errorType:"404"}})}catch(e){console.debug("Could not verify image status:",t.src,e)}},[]);return(0,s.useEffect)(()=>{let r=e=>{let r=e.target;r instanceof HTMLImageElement&&t(r)},n=e.current;return document.addEventListener("error",r,{capture:!0,passive:!0}),()=>{document.removeEventListener("error",r,!0),n.clear()}},[t]),null}},64197:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ConsentBanner:()=>o});var n=r(65183),s=r(24375),l=r(44301),a=r(56275);function o(e){let{className:t=""}=e,{setConsent:r,getConsent:o}=(0,a.s)(),[i,c]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{l.config.analytics.consentBannerEnabled&&1&&null===localStorage.getItem("analytics-consent")&&c(!0)},[o]),i)?(0,n.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4 shadow-lg z-50 ".concat(t),children:(0,n.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"We value your privacy"}),(0,n.jsx)("p",{className:"text-sm text-muted",children:"We use cookies and analytics to improve your experience on our website. This helps us understand how visitors use our site and make it better for everyone."})]}),(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("button",{onClick:()=>{r(!1),c(!1)},className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md transition-colors",children:"Decline"}),(0,n.jsx)("button",{onClick:()=>{r(!0),c(!1)},className:"px-4 py-2 text-sm font-medium text-white bg-primary hover:bg-primary-hover rounded-md transition-colors",children:"Accept"})]})]})})}):null}},66295:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(65183),s=r(15376),l=r(36047),a=r(32812),o=r(10142),i=r(69266),c=r(49275);let d=()=>(0,n.jsxs)("div",{className:"mt-8 rounded-lg p-6 bg-muted/10 border border-muted/20",children:[(0,n.jsx)("p",{className:"font-semibold text-lg mb-6 text-center text-foreground",children:"In the welcome email, you will find:"}),(0,n.jsxs)("ul",{className:"space-y-4 w-full",children:[(0,n.jsxs)("li",{className:"flex items-start gap-4",children:[(0,n.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,n.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:"A guide on how to bring clarity to your teams"})]}),(0,n.jsxs)("li",{className:"flex items-start gap-4",children:[(0,n.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,n.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:'A 33% discount code for my book "Best Practices For Operational Excellence"'})]}),(0,n.jsxs)("li",{className:"flex items-start gap-4",children:[(0,n.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,n.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:"An archive of my top Twitter threads, including the ones marked with a ⭐️ that are my favorite"})]}),(0,n.jsxs)("li",{className:"flex items-start gap-4",children:[(0,n.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,n.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:'A digital copy of my book "The Employee Engagement Handbook", with plenty of concrete advice to increase talent retention and commitment'})]})]})]}),u=()=>(0,n.jsxs)("div",{id:"logo-reel",className:"mt-8",children:[(0,n.jsx)("p",{className:"text-center text-sm text-muted mb-4",children:"Part of my portfolio / trusted by leaders at"}),(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(s.ClientsGrid,{logos:i.c4})})]}),m=e=>{let{size:t}=e;return(0,n.jsxs)("div",{className:"flex flex-col lg:flex-row items-center gap-6 lg:gap-8 w-full max-w-2xl",children:[(0,n.jsxs)("div",{id:"headline-and-form",className:"flex-1 text-center lg:text-left",children:["lg"===t?(0,n.jsx)("h2",{className:"mb-3 text-2xl lg:text-3xl xl:text-4xl font-bold text-foreground",children:"Luca's newsletter"}):(0,n.jsx)("h3",{className:"mt-0 sm:mt-2 lg:mt-4 mb-3 text-xl lg:text-2xl font-bold text-foreground",children:"Luca's newsletter"}),(0,n.jsx)("p",{className:"text-sm text-muted mb-6 leading-relaxed",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,n.jsx)("div",{id:"ck-form",className:"flex justify-center lg:justify-start",children:(0,n.jsx)(l.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,n.jsx)(a.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:180,width:120,className:"border border-border-strong rounded-lg hidden lg:block flex-shrink-0 shadow-md hover:shadow-lg transition-shadow duration-300",priority:"lg"===t})]})},h=function(e){let{size:t="lg",border:r=!0}=e,s=c.Y.filter(e=>e.object.includes("Luca"));return(0,n.jsxs)("section",{className:"w-full max-w-[calc(100vw-1rem)] sm:max-w-lg md:max-w-2xl lg:max-w-3xl mx-auto p-4 sm:p-6 lg:p-8 mt-4 mb-12 ".concat(r?"border border-border-strong rounded-lg shadow-lg hover:shadow-xl transition-shadow duration-300":""),children:[(0,n.jsx)("div",{className:"flex flex-col items-center justify-center mb-8",children:(0,n.jsx)(m,{size:t})}),(0,n.jsx)(o.ReviewsCarousel,{width:"lg",height:"sm",reviews:s,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d,{}),(0,n.jsx)(u,{})]})]})}},75025:(e,t,r)=>{"use strict";r.d(t,{default:()=>S});var n=r(65183),s=r(19815),l=r(50846),a=r(24375),o=r(82212),i=r.n(o),c=r(89493);let d=[{href:"/books",name:"Books",links:[{href:"/books",name:"My bestselling books",isBold:!0},{href:"/audiobooks",name:"Audiobooks"},{href:"/teachers",name:"For teachers"}]},{href:"/consulting",name:"Services",links:[{href:"/consulting/business-leaders",name:"For business leaders"},{href:"/consulting/fund-managers",name:"For fund managers"},{href:"/consulting/individuals",name:"For individuals"},{href:"/ai",name:"Nail your AI initiative"},{href:"/courses",name:"Courses"},{href:"/coaching",name:"Coaching"},{href:"https://calendly.com/lucadellanna/one-on-one",name:"Book a one-on-one consultation",isBold:!0}]},{href:"/blog",name:"Blog",links:[{href:"/blog",name:"All posts",isBold:!0},{href:"/podcasts",name:"Podcasts"},{href:"https://www.youtube.com/c/LucaDellannaChannel",name:"YouTube"}]},{href:"/newsletter",name:"Newsletter"},{href:"/contact",name:"Contact",links:[{href:"/about",name:"About Luca"},{href:"/media",name:"Media"},{href:"/contact",name:"Contact",isBold:!0}]}];(0,c.u6)(d);let u=(0,a.memo)(e=>{let{item:t,isLast:r}=e;return(0,n.jsx)(i(),{href:t.href,className:"".concat(r?"bg-primary text-white hover:text-white px-4 py-2 rounded-md font-bold":"group-hover:text-focus"," transition-colors duration-300 ").concat(t.isBold?"font-bold":""),"aria-label":t.links?"".concat(t.name," menu"):t.name,children:t.name})}),m=(0,a.memo)(e=>{let{links:t}=e;return(0,n.jsx)("div",{className:"absolute left-0 mt-2 w-48 bg-white border border-black rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300",role:"menu","aria-label":"Dropdown menu",children:t.map(e=>(0,n.jsx)(i(),{href:e.href,className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 ".concat(e.isBold?"font-bold":""),role:"menuitem","aria-label":e.name,children:e.name},e.name))})}),h=(0,a.memo)(()=>(0,n.jsx)("nav",{className:"hidden md:flex space-x-4","aria-label":"Desktop navigation",children:d.map((e,t)=>(0,n.jsxs)("div",{className:"group relative",children:[(0,n.jsx)(u,{item:e,isLast:t===d.length-1}),e.links&&(0,n.jsx)(m,{links:e.links})]},e.name))}));u.displayName="NavLink",m.displayName="DropdownMenu",h.displayName="DesktopMenu";var x=r(8367),f=r(9094);let g=(0,a.memo)(e=>{let{showExpandButton:t,isAtBottom:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute bottom-2 right-2 text-muted ".concat(t&&!r?"":"hidden"),"aria-hidden":"true",children:(0,n.jsx)(x.A,{})}),(0,n.jsx)("div",{className:"absolute top-2 right-2 text-muted ".concat(t&&r?"":"hidden"),"aria-hidden":"true",children:(0,n.jsx)(f.A,{})})]})}),v=(0,a.memo)(e=>{let{item:t,onLinkClick:r}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)(i(),{href:t.href,className:"block px-3 py-2 rounded-md font-extrabold ".concat(t===d[d.length-1]?"bg-primary text-white hover:bg-primary-dark":""),onClick:r,"aria-label":t.links?"".concat(t.name," menu"):t.name,children:t.name}),t.links&&(0,n.jsx)("div",{className:"pl-4",role:"group","aria-label":"".concat(t.name," submenu"),children:t.links.map(e=>(0,n.jsx)(i(),{href:e.href,className:"block px-3 py-2 rounded-md text-sm ".concat(e.isBold?"font-semibold":""),onClick:r,"aria-label":e.name,children:e.name},e.name))})]})}),p=(0,a.memo)(e=>{let{onLinkClick:t,isOpen:r}=e,[s,l]=(0,a.useState)(!1),[o,i]=(0,a.useState)(!1),c=(0,a.useRef)(null),u=(0,a.useCallback)(()=>{if(!c.current)return;let e=c.current.scrollHeight;l(e>window.innerHeight-64)},[]),m=(0,a.useCallback)(()=>{if(!c.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:r}=c.current;i(1>Math.abs(t-r-e))},[]);return(0,a.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{u(),m()},100);return()=>clearTimeout(e)},[r,u,m]),(0,a.useEffect)(()=>(window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)),[u]),(0,a.useEffect)(()=>{let e=c.current;if(e)return e.addEventListener("scroll",m),()=>e.removeEventListener("scroll",m)},[m]),(0,n.jsxs)("div",{className:"relative block md:hidden",children:[(0,n.jsx)(g,{showExpandButton:s,isAtBottom:o}),(0,n.jsx)("div",{ref:c,className:"px-2 pt-2 pb-3 space-y-1 sm:px-3 shadow-lg max-h-[calc(100vh-64px)] overflow-y-auto",role:"menu","aria-label":"Mobile navigation menu",children:d.map(e=>(0,n.jsx)(v,{item:e,onLinkClick:t},e.name))})]})});g.displayName="ScrollIndicator",v.displayName="MenuItem",p.displayName="MobileMenu";var b=r(28681);let w=e=>{let{href:t,label:r,isLast:s}=e;return(0,n.jsx)("li",{className:"list-none m-0",children:(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[(0,n.jsx)("svg",{className:"w-2 h-2 text-muted mx-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:(0,n.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})}),s?(0,n.jsx)("span",{className:"ml-1 text-xs font-medium text-gray-500",children:r}):(0,n.jsx)(i(),{href:t||"#",className:"ml-1 text-xs font-medium text-gray-700 hover:text-focus",children:r})]})})},y=()=>{let e=(0,b.usePathname)(),t=null==e?void 0:e.split("/").filter(Boolean);return!t||t.length<2?null:(0,n.jsx)("nav",{className:"flex ".concat("hidden md:block"),"aria-label":"Breadcrumb",children:(0,n.jsxs)("ul",{className:"inline-flex items-center justify-center mx-0",children:[!1,t.map((e,r)=>{let s="/".concat(t.slice(0,r+1).join("/")),l=r===t.length-1;return(0,n.jsx)(w,{href:s,label:e,isLast:l},e)})]})})};var j=r(32812);let k="Luca Dellanna",N=(0,a.memo)(()=>(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)(i(),{href:"/",className:"flex items-center font-bold text-xl","aria-label":"".concat(k," home page"),children:[(0,n.jsx)(j.default,{src:"/luca.png",alt:"".concat(k," logo"),width:32,height:32,className:"rounded-full mr-2",priority:!0}),(0,n.jsx)("span",{children:k})]}),(0,n.jsx)(y,{})]}));N.displayName="NavBarLogo";let E="h-16",C=(0,a.memo)(e=>{let{isOpen:t,onClick:r}=e;return(0,n.jsx)("div",{className:"block md:hidden",children:(0,n.jsx)("button",{onClick:r,className:"no-button-style focus:outline-hidden focus:ring-0 w-6 h-6 rounded-full bg-white shadow-none","aria-label":t?"Close menu":"Open menu","aria-expanded":t,children:t?(0,n.jsx)(s.A,{size:24}):(0,n.jsx)(l.A,{size:24})})})}),L=(0,a.memo)(()=>{let[e,t]=(0,a.useState)(!1),r=(0,a.useCallback)(()=>{t(e=>!e)},[]),s=(0,a.useCallback)(()=>{t(!1)},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("nav",{className:"fixed top-0 left-0 right-0 bg-white z-50",role:"navigation",children:[(0,n.jsx)("div",{className:"w-full mx-auto px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"flex justify-between items-center ".concat(E),children:[(0,n.jsx)(N,{}),(0,n.jsx)(h,{}),(0,n.jsx)(C,{isOpen:e,onClick:r})]})}),e&&(0,n.jsx)(p,{onLinkClick:s,isOpen:e})]}),(0,n.jsx)("div",{className:E,"aria-hidden":"true"})]})});C.displayName="MobileMenuButton",L.displayName="Navbar";let S=L},75786:(e,t,r)=>{"use strict";r.d(t,{RandomSelector:()=>l});var n=r(65183),s=r(24375);function l(e){let{children:t}=e,r=(0,s.useMemo)(()=>{let e=s.Children.toArray(t),r=Math.floor(Math.random()*e.length);return e[r]},[t]);return(0,n.jsx)(n.Fragment,{children:r})}},80100:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnalyticsProvider:()=>i});var n=r(65183),s=r(62742);let l=(0,s.default)(()=>Promise.resolve().then(r.bind(r,37142)).then(e=>({default:e.GoogleAnalyticsWrapper})),{loadableGenerated:{webpack:()=>[37142]},loading:()=>null}),a=(0,s.default)(()=>Promise.resolve().then(r.bind(r,86998)).then(e=>({default:e.VercelAnalytics})),{loadableGenerated:{webpack:()=>[86998]},loading:()=>null});(0,s.default)(()=>Promise.resolve().then(r.bind(r,80100)).then(e=>({default:e.AnalyticsProvider})),{loadableGenerated:{webpack:()=>[80100]},loading:()=>null}),(0,s.default)(()=>Promise.resolve().then(r.bind(r,64197)).then(e=>({default:e.ConsentBanner})),{loadableGenerated:{webpack:()=>[64197]},loading:()=>null});var o=r(64197);function i(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a,{}),(0,n.jsx)(l,{}),(0,n.jsx)(o.ConsentBanner,{})]})}},85471:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>i});var n=r(65183),s=r(9613),l=r(24375);let a=e=>{if(!e)return!1;let t="string"==typeof e?e:e instanceof Error?e.message:String(e);return t.includes("Object Not Found Matching Id")||t.includes("unhandledrejection")||t.includes("/_vercel/speed-insights/vitals")||e instanceof CustomEvent&&"unhandledrejection"===e.type&&!e.reason},o=e=>e instanceof Error?{message:e.message,type:e.name}:e instanceof CustomEvent?{message:e.reason instanceof Error?e.reason.message:String(e.reason)||"Custom Event Error",type:"CustomEvent:".concat(e.type)}:"string"==typeof e?{message:e,type:"StringError"}:{message:String(e),type:"UnknownError"};function i(e){var t;let{children:r}=e;return t="GlobalProviders",(0,l.useEffect)(()=>{let e=history.pushState,t=history.replaceState;return history.pushState=function(t,r,n){if(n&&"string"==typeof n)try{if(n.startsWith("/"))return e.call(this,t,r,n);return new URL(n),e.call(this,t,r,n)}catch(e){console.warn("Invalid URL detected in pushState: ".concat(n),e);return}return e.call(this,t,r,n)},history.replaceState=function(e,r,n){if(n&&"string"==typeof n)try{if(n.startsWith("/"))return t.call(this,e,r,n);return new URL(n),t.call(this,e,r,n)}catch(e){console.warn("Invalid URL detected in replaceState: ".concat(n),e);return}return t.call(this,e,r,n)},()=>{history.pushState=e,history.replaceState=t}},[]),(0,l.useEffect)(()=>{let e=e=>{var t,r,n,s,l,a;if((null==(r=e.error)||null==(t=r.message)?void 0:t.includes("replaceState"))||(null==(s=e.error)||null==(n=s.message)?void 0:n.includes("pushState"))||(null==(a=e.error)||null==(l=a.message)?void 0:l.includes("SecurityError")))return console.warn("URL-related error caught:",e.error),e.preventDefault(),!1};return window.addEventListener("error",e),()=>window.removeEventListener("error",e)},[]),(0,l.useEffect)(()=>{let e=e=>{var t,r,n,s,l,a;if((null==(r=e.reason)||null==(t=r.message)?void 0:t.includes("replaceState"))||(null==(s=e.reason)||null==(n=s.message)?void 0:n.includes("pushState"))||(null==(a=e.reason)||null==(l=a.message)?void 0:l.includes("SecurityError")))return console.warn("URL-related promise rejection caught:",e.reason),e.preventDefault(),!1};return window.addEventListener("unhandledrejection",e),()=>window.removeEventListener("unhandledrejection",e)},[]),(0,l.useEffect)(()=>{let e=e=>{if(a(e.error))return void console.debug("Suppressed non-critical error:",e.error);let r=o(e.error);s.Cp(e.error,{extra:{componentName:t,timestamp:new Date().toISOString(),errorDetails:r},tags:{location:t,errorType:r.type}})},r=e=>{let r="reason"in e?e.reason:e;if(a(r))return void console.debug("Suppressed non-critical promise rejection:",r);let n=o(r);s.Cp(r,{extra:{componentName:t,promiseError:!0,timestamp:new Date().toISOString(),errorDetails:n},tags:{location:t,errorType:n.type}})};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",r),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",r)}},[t]),(0,n.jsx)(n.Fragment,{children:r})}},85762:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(65183),s=r(24375),l=r(28681);let a="exitPopupShown",o=e=>{let{children:t,delayMs:r=15e3,onClose:o}=e,[i,c]=(0,s.useState)(!1),d=(0,l.useRouter)(),u=(0,l.usePathname)(),m=(0,s.useCallback)(()=>{c(!1),null==o||o()},[o]),h=(0,s.useCallback)(e=>{e.target===e.currentTarget&&m()},[m]),x=(0,s.useCallback)(e=>{"Escape"===e.key&&m()},[m]),f=(0,s.useCallback)(()=>{c(!0);try{return void localStorage.setItem(a,"true")}catch(e){console.warn("Unable to access localStorage:",e)}},[]);return((0,s.useEffect)(()=>{if(i)return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[i,x]),(0,s.useEffect)(()=>{try{if(localStorage.getItem(a))return}catch(e){console.warn("Unable to access localStorage:",e)}let e=!1,t=0,n=!1,s=setTimeout(()=>{n=!0},r),l=t=>{t.clientY<=0&&!e&&n&&(e=!0,f())},o=()=>{!e&&n&&(e=!0,f(),u&&d.push(u))},i=()=>{let r=window.scrollY;r>t&&r>300&&!e&&n&&(e=!0,f()),t=r<=0?0:r},c=t=>{let r=t.touches[0];r&&r.clientY<10&&!e&&n&&(e=!0,f())};return document.addEventListener("mouseleave",l),window.addEventListener("popstate",o),window.addEventListener("scroll",i),document.addEventListener("touchmove",c),()=>{clearTimeout(s),document.removeEventListener("mouseleave",l),window.removeEventListener("popstate",o),window.removeEventListener("scroll",i),document.removeEventListener("touchmove",c)}},[r,u,d,f]),i)?(0,n.jsx)("div",{id:"exit-popup",className:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center z-50",role:"dialog","aria-modal":"true","aria-label":"Exit popup","aria-describedby":"exit-popup-description",onClick:h,children:(0,n.jsxs)("div",{className:"relative bg-white p-4 sm:p-6 lg:p-8 rounded-lg max-h-[90vh] max-w-2xl w-full",children:[(0,n.jsx)("div",{id:"exit-popup-description",className:"sr-only",children:"Click outside or press Escape to close this popup"}),(0,n.jsx)("button",{onClick:m,className:"absolute top-2 right-2 text-gray-500 hover:text-gray-700 transition-colors","aria-label":"Close popup",children:(0,n.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),t]})}):null}},86998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VercelAnalytics:()=>a});var n=r(65183),s=r(36112),l=r(98525);function a(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.j,{}),(0,n.jsx)(l.b,{})]})}},93247:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,82212,23)),Promise.resolve().then(r.t.bind(r,91045,23)),Promise.resolve().then(r.bind(r,13080)),Promise.resolve().then(r.bind(r,16517)),Promise.resolve().then(r.t.bind(r,49388,23)),Promise.resolve().then(r.t.bind(r,5148,23)),Promise.resolve().then(r.t.bind(r,93945,23)),Promise.resolve().then(r.t.bind(r,18349,23)),Promise.resolve().then(r.t.bind(r,44548,23)),Promise.resolve().then(r.bind(r,80100)),Promise.resolve().then(r.bind(r,64197)),Promise.resolve().then(r.bind(r,37142)),Promise.resolve().then(r.bind(r,86998)),Promise.resolve().then(r.bind(r,36047)),Promise.resolve().then(r.bind(r,85762)),Promise.resolve().then(r.bind(r,44565)),Promise.resolve().then(r.bind(r,75025)),Promise.resolve().then(r.bind(r,66295)),Promise.resolve().then(r.bind(r,75786)),Promise.resolve().then(r.bind(r,1652)),Promise.resolve().then(r.t.bind(r,32601,23)),Promise.resolve().then(r.bind(r,85471))}},e=>{e.O(0,[2662,2382,1045,3998,8305,1475,9493,4661,9275,7150,435,3675,7358],()=>e(e.s=93247)),_N_E=e.O()}]);