(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,619245,e=>{"use strict";e.s(["RR_NEWSLETTER_BREAKPOINT",0,"(min-width: 1243px)","RR_NEWSLETTER_DESKTOP_HOST_ID",0,"time-rr-newsletter-desktop-host","RR_NEWSLETTER_MOBILE_HOST_ID",0,"time-rr-newsletter-mobile-host","RR_NEWSLETTER_SLOT_ID",0,"time-rr-newsletter-slot"])},796562,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(619245);function i(e){let t=globalThis.matchMedia(l.RR_NEWSLETTER_BREAKPOINT);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function a(){return(0,r.useSyncExternalStore)(i,()=>globalThis.matchMedia(l.RR_NEWSLETTER_BREAKPOINT).matches,()=>!1)}function n(e){return{__html:`
",">")}" class="my-8 w-full empty:hidden [@media(min-width:1243px)]:my-0">
`}}let s={__html:""};e.s(["MarfeelRrNewsletterBreaker",0,function({section:e}){let r=a();return(0,t.jsx)("div",{id:l.RR_NEWSLETTER_MOBILE_HOST_ID,className:"w-full empty:hidden [@media(min-width:1243px)]:hidden",dangerouslySetInnerHTML:r?s:n(e)})},"RrNewsletterDesktopHost",0,function({section:e}){let r=a();return(0,t.jsx)("div",{className:"hidden [@media(min-width:1243px)]:block",children:(0,t.jsx)("div",{id:l.RR_NEWSLETTER_DESKTOP_HOST_ID,className:"w-[300px] empty:hidden",dangerouslySetInnerHTML:r?n(e):s})})}])},83593,(e,t,r)=>{e.e,t.exports=function(e,t){var r=t.prototype,l=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return l.bind(this)(e);var i=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return l.bind(this)(a)}}},879631,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(822315),i=e.i(895751),a=e.i(4824),n=e.i(83593);let s={EST:"ET",EDT:"ET",CST:"CT",CDT:"CT",MST:"MT",MDT:"MT",PST:"PT",PDT:"PT",AKST:"AKT",AKDT:"AKT",HST:"HST",GMT:"GMT",BST:"GMT",WET:"WET",WEST:"WET",CET:"CET",CEST:"CET",EET:"EET",EEST:"EET",AEST:"AET",AEDT:"AET",ACST:"ACT",ACDT:"ACT",AWST:"AWT",BRT:"BRT",BRST:"BRT",ART:"ART",ARST:"ART",NZST:"NZT",NZDT:"NZT",IST:"IST",IDT:"IST"};l.default.extend(i.default),l.default.extend(a.default),l.default.extend(n.default);let o=r.useLayoutEffect,c=(e,t,r,i)=>{let a=l.default.utc(e).tz(i),n=a.format(t);if(r){let e=a.format("z");/^GMT[+-]/.test(e)&&(e=a.format("zzz").match(/\b(\w)/g)?.join("")??e),e&&s[e]&&(e=s[e]),n=`${n} ${e}`}return n};e.s(["default",0,function({time:e,format:i="MMM D, YYYY h:mm A ",showShortTimezone:a=!0}){let[n,s]=(0,r.useState)(null);return(o(()=>{s(l.default.tz.guess())},[]),e)?n?(0,t.jsx)("time",{dateTime:e,className:"uppercase",children:c(e,i,a,n)}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("noscript",{children:(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"time[data-ssr-fallback]{visibility:visible!important}"}})}),(0,t.jsx)("time",{dateTime:e,className:"uppercase","data-ssr-fallback":"",style:{visibility:"hidden"},children:c(e,i,a,"UTC")})]}):(0,t.jsx)("time",{className:"uppercase",children:"Loading..."})}],879631)},292007,e=>{"use strict";var t=e.i(843476),r=e.i(387644),l=e.i(522016);e.s(["default",0,({href:e,className:i,gtmData:a,children:n})=>(0,t.jsx)(l.default,{href:e,className:i,onClick:()=>{(0,r.sendGTMEvent)(a)},children:n})])},39352,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(26094),i=e.i(495277),a=e.i(815316),n=e.i(963219);let s={top:"bottom-full mb-3 left-1/2 -translate-x-1/2",bottom:"top-full mt-3 left-1/2 -translate-x-1/2",left:"right-full mr-3 top-1/2 -translate-y-1/2",right:"left-full ml-3 top-1/2 -translate-y-1/2"},o={left:"msg-tail-left",right:"msg-tail-right",top:"msg-tail-top",bottom:"msg-tail-bottom","top-right":"msg-tail-top-right","top-left":"msg-tail-top-left"},c={[n.PreferredSourceVariation.DEFAULT]:"bubble-default",[n.PreferredSourceVariation.INVERTED]:"bubble-inverted",[n.PreferredSourceVariation.NO_MEDIA_STANDARD_ARTICLE]:"bubble-no-featured-media"},d=({id:e,text:r,side:d="top-right",placement:u="bottom",className:m="",onClose:f,onLeave:g,variation:h=n.PreferredSourceVariation.DEFAULT})=>(0,t.jsx)("div",{id:e,role:"tooltip",onMouseLeave:g,className:(0,a.cn)("absolute z-50",s[u],"w-full max-w-full break-words","rounded-sm px-3 py-2 text-body-small shadow-md",o[d],c[h],m),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("p",{className:"flex-1 text-left",children:r}),f&&(0,t.jsx)(i.default,{className:"lg:hidden",variant:"icon","aria-label":"Close explanation — Add TIME on Google",onClick:e=>{e.stopPropagation(),f()},children:(0,t.jsx)(l.CloseIcon,{size:"1rem"})})]})}),u=({size:e="1.5rem",className:r,color:l="currentColor",alt:i,...a})=>(0,t.jsxs)("svg",{className:r,width:e,height:e,viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,t.jsx)("title",{children:i}),(0,t.jsx)("path",{d:"M5.99984 7.8125V10.9375",stroke:l,strokeLinecap:"square"}),(0,t.jsx)("path",{d:"M7.66683 9.375H4.3335",stroke:l,strokeLinecap:"square"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.3335 5.9375H9.66683V12.8125H2.3335L2.3335 5.9375Z",stroke:l,strokeLinecap:"square"}),(0,t.jsx)("path",{d:"M6.33315 4.0625C6.33315 3.4375 6.33317 2.8125 6.33301 2.1875H13.6665C13.6665 4.47917 13.6665 6.77083 13.6665 9.0625C12.9998 9.0625 12.3332 9.0625 11.6665 9.0625",stroke:l,strokeLinecap:"square"})]});var m=e.i(522016),f=e.i(387644),g=e.i(19477),h=e.i(618566),p=n,x=e.i(818622);e.s(["PreferredSource",0,({variation:e=p.PreferredSourceVariation.DEFAULT})=>{let[l,i]=(0,r.useState)(!1),n=(0,h.usePathname)(),s=(0,x.useIsMobile)(),o=(0,r.useRef)(null);(0,r.useEffect)(()=>{(0,f.sendGTMEvent)({event:g.eventName.PREFERRED_SOURCE_IMPRESSION,timestamp:new Date().toISOString(),pathName:n})},[n]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&i(!1)};return l&&globalThis.addEventListener("keydown",e),()=>globalThis.removeEventListener("keydown",e)},[l]);let c=e=>{s||(i(!0),(0,f.sendGTMEvent)({event:g.eventName.PREFERRED_SOURCE_TOOLTIP_SHOWN,pagePath:n,timestamp:new Date().toISOString(),trigger:e.type}))},b=e=>{s||(i(!1),(0,f.sendGTMEvent)({event:g.eventName.PREFERRED_SOURCE_TOOLTIP_DISMISS,pagePath:n,timestamp:new Date().toISOString(),dismissReason:e.type}))},w=e=>null!=e&&e instanceof Node&&!!o.current?.contains(e),v={[p.PreferredSourceVariation.DEFAULT]:"border-warm-grey-2 bg-warm-grey-3 text-black-coffee hover:bg-warm-grey-2",[p.PreferredSourceVariation.INVERTED]:"border-ivory-white bg-transparent text-ivory-white hover:text-black-coffee hover:bg-ivory-white ",[p.PreferredSourceVariation.NO_MEDIA_STANDARD_ARTICLE]:"border-warm-grey-2 bg-warm-grey-3 text-black-coffee hover:bg-warm-grey-2 hover:bg-warm-grey-1"};return(0,t.jsxs)("div",{ref:o,className:"relative inline-flex w-max items-center",children:[(0,t.jsxs)(m.default,{href:"https://www.google.com/preferences/source?q=https://time.com",target:"_blank",rel:"noopener noreferrer","aria-label":"“Add TIME on Google — opens in new tab","aria-describedby":l?"google-source-tooltip":void 0,onMouseEnter:c,onMouseLeave:e=>{w(e.relatedTarget)||b(e)},onFocus:c,onBlur:e=>{w(e.relatedTarget)||b(e)},onClick:()=>(0,f.sendGTMEvent)({event:g.eventName.PREFERRED_SOURCE_CLICK,clickText:"ADD TIME ON GOOGLE",timestamp:new Date().toISOString(),clickTargetUrl:"https://www.google.com/preferences/source?q=https://time.com",pathName:n}),className:(0,a.cn)("flex h-8 max-h-8 min-h-8 shrink-0 items-center gap-2 rounded-full border px-3 py-0 text-body-small leading-snug",v[e]),children:[(0,t.jsx)(u,{className:"size-6 lg:size-4","aria-hidden":"true"}),"ADD TIME ON GOOGLE"]}),(0,t.jsx)("div",{className:"hidden lg:flex",children:l&&(0,t.jsx)(d,{id:"google-source-tooltip",text:"Show me more content from TIME on Google Search",placement:"bottom",side:"top-right",variation:e,onLeave:e=>{s||w(e.relatedTarget)||b(e)}})})]})}],39352)},430384,e=>{"use strict";var t=e.i(271645),r=e.i(619245);e.i(843476),e.s(["default",0,function({section:e=""}){return(0,t.useEffect)(()=>{let e=document.querySelector(`#${r.RR_NEWSLETTER_MOBILE_HOST_ID}`),t=document.querySelector('[data-testid="marfeel-article-header-newsletter-wrapper"]');if(!e||!t)return;let l=globalThis.matchMedia(r.RR_NEWSLETTER_BREAKPOINT),i=()=>{let r=!l.matches,i=!!t.querySelector("section");r&&i?e.style.setProperty("display","none","important"):e.style.removeProperty("display")};i();let a=new MutationObserver(i);return a.observe(t,{childList:!0}),l.addEventListener("change",i),()=>{a.disconnect(),l.removeEventListener("change",i)}},[e]),null}],430384)},503670,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(815316),i=e.i(770562),a=e.i(285385),n=e.i(797510);let s=({size:e="1.5rem",className:r,color:l="currentColor",alt:i,...a})=>(0,t.jsxs)("svg",{className:r,width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,t.jsx)("title",{children:i}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9.5",stroke:l,strokeLinecap:"square"}),(0,t.jsx)("path",{d:"M12 11.5V17.5",stroke:l,strokeLinecap:"square"}),(0,t.jsx)("path",{d:"M12 6.5V8.5",stroke:l,strokeLinecap:"square"})]}),o={dark:{banner:e=>(0,l.cn)("bg-black-coffee",!e&&"border-b border-warm-grey-2"),label:"text-ivory-white",disclaimer:"text-ivory-white"},light:{banner:()=>"bg-white",label:"text-black-coffee",disclaimer:"text-black-coffee"}},c=({displayLabel:e,legalCopy:c,theme:d="dark",brandLogo:u,brandUrl:m,hideBottomBorder:f=!1,className:g})=>{let[h,p]=(0,r.useState)(!1),x=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!h)return;let e=e=>{let t=e.target;x.current&&!x.current.contains(t)&&p(!1)};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[h]);let b=o[d],w="function"==typeof b.banner?b.banner(f):b.banner,v=u?.url,y=m?.href,T=!!v,E=(()=>{if(!T)return null;let e=(0,t.jsx)(a.default,{src:v??"",alt:"",width:u?.width??120,height:u?.height??40,className:"h-5 max-h-6 w-auto object-contain lg:h-6"});return y?(0,t.jsx)("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"focus-visible:outline focus-visible:ring-2 focus-visible:ring-brand-red focus-visible:ring-offset-2 focus-visible:ring-offset-black-coffee","aria-label":m?.title??"Partner link",children:e}):e})();return(0,t.jsx)("header",{ref:x,className:(0,l.cn)("flex w-full flex-col gap-2 py-3 items-start lg:items-center",w,g),"aria-label":e,children:(0,t.jsx)(i.default,{children:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsxs)("div",{className:"relative flex w-full items-center gap-2 lg:gap-0",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>p(e=>!e),className:(0,l.cn)("flex min-w-0 flex-1 items-center gap-1 text-left lg:justify-center",b.label,"focus-visible:outline focus-visible:ring-2 focus-visible:ring-brand-red focus-visible:ring-offset-2 focus-visible:ring-offset-black-coffee"),"aria-expanded":h,"aria-label":`${e}. ${h?"Hide":"Show"} disclaimer`,children:[(0,t.jsx)(s,{size:"1rem",className:"shrink-0",color:"currentColor","aria-hidden":!0}),(0,t.jsx)("span",{className:(0,l.cn)("font-graphik text-body-large leading-[1.6]"),children:e})]}),T&&(0,t.jsx)("div",{className:"flex h-5 shrink-0 items-center lg:absolute lg:right-0 lg:top-1/2 lg:h-6 lg:-translate-y-1/2",children:E})]}),c&&(0,t.jsx)("div",{className:"grid transition-[grid-template-rows] duration-200 ease-out",style:{gridTemplateRows:h?"1fr":"0fr"},children:(0,t.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,t.jsx)("section",{className:(0,l.cn)("flex w-full shrink-0 items-center transition-opacity duration-200 ease-out lg:justify-center",h?"opacity-100":"opacity-0"),"aria-label":"Legal disclaimer","aria-hidden":!h,children:(0,t.jsx)("div",{className:(0,l.cn)("w-full max-w-[327px] font-graphik lg:max-w-none lg:text-center","text-body-small lg:text-body-large lg:leading-[1.6]",b.disclaimer),children:(0,t.jsx)(n.SanitizedRichText,{html:c})})})})})]})})})};e.s(["BrandedContentDisclosureBanner",0,c,"default",0,c],503670)},822457,e=>{"use strict";var t=e.i(618566),r=e.i(271645),l=e.i(372611);let i="time-end-of-article-recirculation-slot",a=[0,300,800,1600],n=[4e3,7e3];function s(e){return a.map(t=>globalThis.setTimeout(()=>{!function(e){var t;let r=document.querySelector('[data-testid="marfeel-end-of-article-recirculation-wrapper"]');if(!r)return;let l=document.querySelector(`#${i}`);l?.dataset.section!==e&&(t=e,r.innerHTML=`
",">")}" class="w-full empty:hidden">
`)}(e),(0,l.reinjectMarfeelInlineExperiences)()},t))}e.s(["default",0,function({section:e}){let i=(0,t.usePathname)(),a=(0,r.useRef)(i);(0,r.useEffect)(()=>{let e=n.map(e=>globalThis.setTimeout(l.reinjectMarfeelInlineExperiences,e));return()=>{for(let t of e)globalThis.clearTimeout(t)}},[]),(0,r.useEffect)(()=>{if(a.current===i)return;a.current=i;let t=s(e);return()=>{for(let e of t)globalThis.clearTimeout(e)}},[i,e]);let o=(0,r.useRef)([]);return(0,r.useEffect)(()=>{let t=()=>{for(let e of o.current)globalThis.clearTimeout(e);o.current=[]},r=()=>{t(),o.current=s(e)};return globalThis.addEventListener("popstate",r),globalThis.addEventListener("pageshow",r),()=>{globalThis.removeEventListener("popstate",r),globalThis.removeEventListener("pageshow",r),t()}},[e]),null}],822457)},17663,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(618566),i=e.i(19477),a=e.i(225526),n=e.i(387644);let s="taboola-below-article-thumbnails",o=()=>{let e=(0,l.usePathname)(),[o,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(!1),[m,f]=(0,a.useIntersectionObserver)({threshold:0}),g=(0,r.useCallback)(e=>{m(e)},[m]);return(0,r.useEffect)(()=>{if(o)return;let t=()=>{let r=document.documentElement,l=(window.pageYOffset||r.scrollTop)-(r.clientTop||0),i=r.scrollHeight-r.clientHeight;if(!(i<=0)&&l/i>=.1){let r;if(!document.querySelector("#tb_loader_script")){let e=document.createElement("script");e.async=!0,e.src="//cdn.taboola.com/libtrc/timecom-timecom/loader.js",e.id="tb_loader_script",document.body.append(e),window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic")}window._taboola=window._taboola||[],window._taboola.push({notify:"newPageLoad"},{page_type:"article",url:(r=window.location.origin,`${r}${e}`)},{mode:"thumbnails-b",container:s,placement:"Below Article Thumbnails",target_type:"mix"},{flush:!0}),c(!0),window.removeEventListener("scroll",t)}};return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t)}},[o,e]),(0,r.useEffect)(()=>{!f?.isIntersecting||d||((0,n.sendGTMEvent)({event:i.eventName.TABOOLA_VIEW,componentType:i.componentType.taboola,pagePath:e}),u(!0))},[f?.isIntersecting,d,e]),(0,t.jsx)("div",{id:s,ref:g})};o.displayName="Taboola";let c=(0,r.memo)(o);e.s(["default",0,c],17663)},567750,e=>{"use strict";var t=e.i(843476),r=e.i(26094),l=e.i(533089),i=e.i(495277),a=e.i(815316),n=e.i(271645),s=e.i(19477),o=e.i(657523),c=e.i(387644),d=e.i(618566);let u="before:h-7",m=({isExpanded:e,activeWord:r,handleExpansion:n})=>(0,t.jsx)("div",{className:(0,a.cn)("duration-400 order-1 transition-[margin] ease-linear",e?"mb-6":"mb-3"),children:(0,t.jsxs)(i.default,{variant:"withIcon",theme:"dark",onClick:n,"aria-expanded":e,"aria-label":e?"hide article suggestions":`More on ${r}`,children:[e?"Hide":(0,t.jsxs)("span",{children:["More on"," ",(0,t.jsx)("span",{className:"sm:hidden",children:r.length>13?"this topic":r}),(0,t.jsx)("span",{className:"hidden sm:inline",children:r})]}),(0,t.jsx)(l.ChevronDown,{size:"1rem",className:(0,a.cn)("transition-transform duration-300",e?"rotate-0":"rotate-180")})]})});e.s(["default",0,({surroundStoryWordsList:e})=>{let l=(0,n.useRef)(null),f=(0,n.useRef)(null),g=(0,d.usePathname)(),{isArtilceBodyVisible:h,showOverlay:p,delayOverlay:x,activeIndex:b,suggestedArticles:w,handleClose:v,isExpanded:y,setIsExpanded:T,activeWord:E}=((e,t)=>{let[r,l]=(0,n.useState)(-1),[i,a]=(0,n.useState)([]),[m,f]=(0,n.useState)(""),[g,h]=(0,n.useState)(!0),[p,x]=(0,n.useState)(!1),[b,w]=(0,n.useState)(!1),v=(0,n.useRef)(null),y=(0,n.useRef)(null),[T,E]=(0,n.useState)(!0),N=(0,d.usePathname)(),k=(0,n.useCallback)(e=>{l(t=>{if(e!==t){let r=document.querySelector(`.word-highlight-${e}`),l=document.querySelector(`.word-highlight-${t}`);return l&&l.classList.remove(u),r&&r.classList.add(u),v.current&&clearTimeout(v.current),e>=0?v.current=setTimeout(()=>{x(!0)},700):x(!1),e}return t})},[]),S=(0,n.useCallback)(l=>{let i=Number.parseInt(l.target.dataset.index??"-1");if(i>=0){if(k(i),h(!0),r!==i){let t=e.find(e=>e.foundInBlockIndex===i),r={event:s.eventName.INTERNAL_CLICK,componentType:s.componentType.surroundingStories,clickText:`${t?.text} | open`,pagePath:N};(0,c.sendGTMEvent)({...r})}y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{t&&t?.current?.focus()},100)}},[r,t,e,N,k]),j=(0,n.useCallback)((e,t,r,l)=>{if(l&&k(l.blockIndex),e===t&&!l){let t=document.querySelector(`.word-highlight-${e}`);t&&t.getBoundingClientRect().bottom>=.8*window.innerHeight&&(k(-1),w(!1))}if(e===r&&!l){let t=document.querySelector(`.word-highlight-${e}`);t&&t.getBoundingClientRect().top<=.2*window.innerHeight&&(k(-1),w(!1))}},[k]),C=(0,n.useCallback)(()=>{if(g){let t,l=e[0]?.foundInBlockIndex,i=e?.at(-1)?.foundInBlockIndex;for(let a of e.map(e=>{let t=document.querySelector(`.word-highlight-${e.foundInBlockIndex}`);if(t){let a=t.getBoundingClientRect(),n=!1;return n=a.top>=.2*window.innerHeight&&a.bottom<=.8*window.innerHeight,e.foundInBlockIndex===l&&r===e.foundInBlockIndex&&(n=a.top>=0&&a.bottom<=.8*window.innerHeight),e.foundInBlockIndex===i&&r===e.foundInBlockIndex&&(n=a.top>=.2*window.innerHeight&&a.bottom<=.8*window.innerHeight),{blockIndex:e.foundInBlockIndex,inViewport:n,top:a.top,bottom:a.bottom}}}).filter(Boolean).filter(e=>e.inViewport))(!t||a.blockIndex>t.blockIndex)&&(t=a);j(r,l,i,t)}},[e,r,j,g]);return(0,n.useEffect)(()=>{let t=e.map(e=>e.foundInBlockIndex).filter(e=>void 0!==e),r=Math.min(...t),l=Math.max(...t),i=document.querySelector(`.word-highlight-${r}`),a=document.querySelector(`.word-highlight-${l}`),n=new IntersectionObserver(([e])=>{let{top:t,bottom:r}=e.boundingClientRect;t=0&&E(!0)},{threshold:0}),s=new IntersectionObserver(([e])=>{let{top:t}=e.boundingClientRect;e.isIntersecting?E(!0):t>window.innerHeight&&(E(!1),w(!1),k(-1))},{threshold:0});return i&&s.observe(i),a&&n.observe(a),window.addEventListener("scroll",C),window.addEventListener("click",S),()=>{window.removeEventListener("scroll",C),window.removeEventListener("click",S),s.disconnect(),n.disconnect()}},[t,S,C,e,T,k]),(0,n.useEffect)(()=>{if(-1!==r){let t=e.find(e=>e.foundInBlockIndex===r);queueMicrotask(()=>{a(t?.suggestedArticles??[]),f(t?.text??"")})}},[r,e]),(0,n.useEffect)(()=>{if((0,o.isMobile)())return document.body.style.overflow=b?"hidden":"",()=>{document.body.style.overflow=""}},[b]),{isArtilceBodyVisible:T,showOverlay:g,delayOverlay:p,activeIndex:r,suggestedArticles:i,handleClose:()=>{let t=document.querySelector(`.word-highlight-${r}`);t&&(t.classList.remove(u),t.focus());let i=e.find(e=>e.foundInBlockIndex===r),a={event:s.eventName.INTERNAL_CLICK,componentType:s.componentType.surroundingStories,clickText:`${i?.text} | close`,pagePath:N};(0,c.sendGTMEvent)({...a}),l(-1),h(!1),w(!1)},isExpanded:b,setIsExpanded:w,activeWord:m}})(e,l),N=()=>{let e=document.querySelector(`.word-highlight-${b}`);e&&e.focus()};return(0,t.jsxs)(t.Fragment,{children:[y&&(0,t.jsx)("div",{className:(0,a.cn)("duration-400 fixed inset-0 z-10 bg-black/60 p-5 transition-all ease-linear lg:hidden",y?"visible opacity-100":"invisible opacity-0"),onClick:v,"aria-hidden":"true"}),(0,t.jsxs)("div",{className:(0,a.cn)("duration-400 relative z-20 flex flex-col rounded-lg border border-warm-grey-2 bg-warm-grey-3 p-3 shadow-[2px_2px_22px_0px_rgba(11,9,8,0.12)] transition-all ease-linear lg:p-5",{"fixed bottom-0 right-0 left-0 rounded-none p-6 pb-14 transition-all duration-400 ease-linear":y&&(0,o.isMobile)(),"fixed bottom-14 right-5 left-5 transition-all duration-400 ease-linear px-4 py-3 ":!y&&(0,o.isMobile)(),"opacity-100 translate-y-0":h&&p&&b>=0&&x,"opacity-0 translate-y-full":!h||!p||!(b>=0)||!x,"lg:p-6":y}),"aria-live":"assertive",role:"dialog","aria-labelledby":`word-highlight-${b}`,tabIndex:-1,onKeyDown:e=>{"Escape"===e.key&&N()},children:[(0,t.jsx)("div",{className:"order-2",children:w.length>0&&(0,t.jsx)("div",{className:(0,a.cn)("duration-400 overflow-hidden transition-all ease-linear ",y?"border-b border-warm-grey-1 border-opacity-30 pb-3 lg:pb-4":"border-b-0 pb-0 delay-300")})}),w.length>1&&(0,t.jsx)(m,{activeWord:E,isExpanded:y,handleExpansion:()=>{let e={event:s.eventName.INTERNAL_CLICK,componentType:s.componentType.surroundingStories,clickText:y?"read less":"read more",pagePath:g};(0,c.sendGTMEvent)({...e}),T(!y),setTimeout(()=>{!y&&f.current?f.current.focus():y&&l.current&&l.current.focus()},100)}}),(0,t.jsx)("div",{className:(0,a.cn)("order-3 overflow-hidden transition-all duration-500 ease-linear",y?"max-h-[200px]":"max-h-0"),...y?{}:{inert:""},children:(0,t.jsx)("div",{"aria-hidden":!y,children:w.slice(1).map((e,r)=>(0,t.jsx)("div",{className:(0,a.cn)("border-b border-warm-grey-1/30 py-3 lg:py-4",{"border-b-0 lg:pb-3":r===w?.length-2})},`title-${r}`))})}),(0,t.jsx)(i.default,{className:(0,a.cn)("absolute right-4 top-[0.8125rem] transition-all duration-300 ease-linear lg:right-5 lg:top-[1.375rem]",{"right-6 top-[1.5625rem] lg:right-6 lg:top-[1.5625rem]":y}),variant:"icon",onClick:v,"aria-label":"Close suggestion dialog",onKeyDown:e=>{"Tab"===e.key&&N()},children:(0,t.jsx)(r.CloseIcon,{className:"size-5","aria-hidden":"true"})})]})]})}],567750)},15172,e=>{"use strict";var t=e.i(843476),r=e.i(815316),l=e.i(770562),i=e.i(285385),a=e.i(495277);let n={dark:{bg:"bg-black-coffee",text:"text-ivory-white"},light:{bg:"bg-white",text:"text-black-coffee"},custom:{bg:"",text:""}};function s({href:e,label:l,variant:i,customStyles:n,isPrimary:o,className:c}){let d=e.startsWith("http");if("custom"===i&&n){let i={backgroundColor:n.background??void 0,color:n.text??void 0,borderWidth:n.stroke?"1px":void 0,borderColor:n.stroke??void 0,borderStyle:n.stroke?"solid":void 0};return(0,t.jsx)("a",{href:e,target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,className:(0,r.cn)("inline-flex min-h-10 items-center justify-center whitespace-normal rounded-sm px-4 py-3 text-center font-graphik text-cta-small uppercase tracking-wide transition-colors focus-visible:outline focus-visible:ring-2 focus-visible:ring-offset-2 support:hover:opacity-90",c),style:i,children:l})}return(0,t.jsx)(a.default,{variant:"outlined-filled",size:"md",theme:o?i:"light"===i?"dark":"light",asChild:!0,className:(0,r.cn)("!h-auto !min-h-10 !whitespace-normal !rounded-none px-4 py-3",c),children:(0,t.jsx)("a",{href:e,target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,className:"whitespace-normal text-center",children:l})})}function o(e,t,r=!1){return e?t?"w-full !min-w-[114px] lg:w-auto lg:!min-w-[140px] lg:max-w-[200px]":r?"mx-auto w-auto !min-w-[114px] lg:mx-0 lg:!min-w-[140px] lg:max-w-[200px]":"mx-auto w-auto !min-w-[114px] lg:mx-0 lg:w-auto lg:!min-w-[140px] lg:max-w-[200px]":"w-full !min-w-[114px] lg:w-auto lg:!min-w-[140px] lg:max-w-[200px]"}function c({body:e,variant:l,customColors:i,isCompact:a,isDefaultLayout:n,textClass:d,isCustom:u,textColorStyle:m,ctasSideBySideOnMobile:f}){if(n)return null;let g=!!(e.primaryCta&&e.secondaryCta);return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-3",a&&"lg:flex-row lg:flex-wrap lg:items-center lg:gap-8"),style:m,children:[e.title&&(0,t.jsx)("h2",{className:(0,r.cn)("font-editorial text-mobile-h4 leading-[1.3] lg:text-mobile-h5",!u&&d),style:m,children:e.title}),e.description&&(0,t.jsx)("p",{className:(0,r.cn)("font-graphik text-body-small leading-[1.15]",!u&&d),style:m,children:e.description}),(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center gap-4",f?"flex-row justify-center lg:justify-start":"flex-col lg:flex-row",(e.title||e.description)&&"pt-4"),children:[e.primaryCta&&(0,t.jsx)(s,{href:e.primaryCta.href,label:e.primaryCta.title??"Learn more",variant:l,customStyles:i?.primaryCta,isPrimary:!0,className:o(!0,g)}),e.secondaryCta&&(0,t.jsx)(s,{href:e.secondaryCta.href,label:e.secondaryCta.title??"Learn more",variant:l,customStyles:i?.secondaryCta,isPrimary:!1,className:o(!1,g)})]})]})}let d=({variant:e,customColors:a,logo:d,logoUrl:u,body:m,image:f,layout:g,className:h})=>{let p="custom"===e,x=p?"":n[e].bg,b=p?"":n[e].text,w=p&&a?.background?{backgroundColor:a.background}:void 0,v=!!("full"===g&&f?.url),y=m&&(m.title||m.description||m.primaryCta||m.secondaryCta),T="compact"===g,E=!!(T&&m&&(m.primaryCta||m.secondaryCta)),N="full"===g&&!v,k=d?.url?(0,t.jsx)(i.default,{src:d.url,alt:"",width:d.width??120,height:d.height??40,className:"h-10 w-auto object-contain lg:h-16"}):null,S=u?.href?(0,t.jsx)("a",{href:u.href,target:"_blank",rel:"noopener noreferrer",className:"focus-visible:outline focus-visible:ring-2 focus-visible:ring-brand-red focus-visible:ring-offset-2","aria-label":u.title??"Partner link",children:k}):k,j=p&&a?.text?{color:a.text}:void 0,C=function(e){let{isCompact:l,isDefaultLayout:i,hasBody:a,hasImage:n,body:d,logo:u,logoWrap:m,variant:f,customColors:g,textClass:h,isCustom:p,textColorStyle:x,isDefaultLayoutFlag:b}=e;if(l&&a&&d){let e=!!(d.primaryCta&&d.secondaryCta);return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-4 lg:gap-8",children:[u&&(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center",children:m}),(0,t.jsxs)("div",{className:(0,r.cn)("w-full gap-4 lg:flex lg:w-auto lg:flex-row lg:gap-4",e?"grid grid-cols-2":"flex justify-center"),children:[d.primaryCta&&(0,t.jsx)(s,{href:d.primaryCta.href,label:d.primaryCta.title??"Learn more",variant:f,customStyles:g?.primaryCta,isPrimary:!0,className:o(!0,e)}),d.secondaryCta&&(0,t.jsx)(s,{href:d.secondaryCta.href,label:d.secondaryCta.title??"Learn more",variant:f,customStyles:g?.secondaryCta,isPrimary:!1,className:o(!1,e)})]})]})}if(i&&a&&d){let e=!!(d.primaryCta&&d.secondaryCta);return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 lg:flex-row lg:items-center lg:gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 lg:flex-1 lg:flex-row lg:items-start lg:gap-8",children:[u&&(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center lg:justify-start",children:m}),(0,t.jsxs)("div",{className:(0,r.cn)("flex w-full flex-col items-center gap-2 text-center lg:items-start lg:gap-3 lg:text-left",!p&&h),style:x,children:[d.title&&(0,t.jsx)("h2",{className:(0,r.cn)("w-full font-editorial text-mobile-h4 leading-[1.3] lg:text-mobile-h5",!p&&h),style:x,children:d.title}),d.description&&(0,t.jsx)("p",{className:(0,r.cn)("w-full font-graphik text-body-small leading-[1.15]",!p&&h),style:x,children:d.description})]})]}),(0,t.jsxs)("div",{className:(0,r.cn)("gap-4 lg:flex lg:w-auto lg:max-w-[200px] lg:shrink-0 lg:flex-col lg:gap-4",e?"grid w-full grid-cols-2":"flex w-full justify-center lg:justify-start"),children:[d.primaryCta&&(0,t.jsx)(s,{href:d.primaryCta.href,label:d.primaryCta.title??"Learn more",variant:f,customStyles:g?.primaryCta,isPrimary:!0,className:o(!0,e,!0)}),d.secondaryCta&&(0,t.jsx)(s,{href:d.secondaryCta.href,label:d.secondaryCta.title??"Learn more",variant:f,customStyles:g?.secondaryCta,isPrimary:!1,className:o(!1,e,!0)})]})]})}return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-4 lg:gap-6",n&&"items-center text-center lg:items-start lg:text-left"),children:[u&&(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center lg:justify-start",children:m}),a&&d&&(0,t.jsx)(c,{body:d,variant:f,customColors:g,isCompact:l,isDefaultLayout:b,textClass:h,isCustom:p,textColorStyle:x,ctasSideBySideOnMobile:n})]})}({isCompact:T,isDefaultLayout:N,hasBody:!!y,hasImage:v,body:m,logo:d,logoWrap:S,variant:e,customColors:a,textClass:b,isCustom:p,textColorStyle:j,isDefaultLayoutFlag:N});return(0,t.jsx)("section",{className:(0,r.cn)("w-full py-6 lg:py-8",x,h),style:w,"aria-label":"Recirculation",children:(0,t.jsx)(l.default,{className:"full"===g?"px-4 lg:px-[188px]":"px-4 lg:px-[296px]",children:(0,t.jsxs)("div",{className:(0,r.cn)("flex w-full flex-col gap-6 lg:gap-8",v?"lg:flex-row lg:items-center":T&&E?"lg:flex-row lg:justify-center":""),children:[v&&f&&(0,t.jsx)("div",{className:"w-full shrink-0 lg:w-[min(40%,20rem)]",children:(0,t.jsx)(i.default,{src:f.url,alt:f.description??"",width:f.width??800,height:f.height??600,className:"h-auto w-full object-cover"})}),(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col gap-4 lg:gap-6",v?"lg:flex-1":T?"lg:flex-1 lg:flex lg:flex-col lg:items-center lg:justify-center":""),children:C})]})})})};e.s(["BrandedContentRecirculationBlock",0,d,"default",0,d])},83199,e=>{"use strict";var t=e.i(843476),r=e.i(271645),l=e.i(218369),i=e.i(778497);e.s(["default",0,function({scriptUrl:e}){let a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t,r=a.current,n=(0,l.sanitizePlainText)(e);try{t=new URL(n)}catch(t){(0,i.logError)({message:"[BrandedEmbed]: Embed script validation failed: Invalid URL",error:t,context:{scriptUrl:e,sanitizedUrl:n}});return}let s=document.createElement("script");s.src=t.toString(),s.async=!0;let o=()=>{(0,i.logError)({message:"[BrandedEmbed]: Failed to load external embed script",context:{scriptUrl:t.toString()}}),r&&(r.innerHTML="")};return s.addEventListener("error",o),r&&(r.innerHTML="",r.append(s)),()=>{s.removeEventListener("error",o),r?.contains(s)&&s.remove()}},[e]),(0,t.jsx)("div",{ref:a,className:"min-h-screen w-full","aria-label":"Branded Content Experience"})}])}]);