PageSourceSearch

https://fortune.com/_next/static/chunks/372-8aa71b311e61bcbc.js

js fortune.com collected 2026-09-24 09:05:35 UTC 47,435 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[372],{19:(e,t,a)=>{"use strict";a.d(t,{UC:()=>f,VY:()=>d,ZL:()=>s,bL:()=>l,bm:()=>m,hE:()=>c,hJ:()=>u,l9:()=>p});var r=a(95155),o=a(43146),i=a(12115),n=a(55507);let l=o.bL;l.displayName="DialogRoot";let s=o.ZL;s.displayName="DialogPortal";let c=o.hE;c.displayName="DialogTitle";let d=o.VY;d.displayName="DialogDescription";let u=o.hJ;u.displayName="DialogOverlay";let p=i.forwardRef(({className:e,children:t,asChild:a,...i},l)=>(0,r.jsx)(o.l9,{asChild:a,className:(0,n.cn)(e),ref:l,...i,children:t}));p.displayName="DialogTrigger";let f=i.forwardRef(({className:e,children:t,...a},i)=>(0,r.jsx)(o.UC,{className:(0,n.cn)("",e),ref:i,...a,children:t}));f.displayName="DialogContent";let m=i.forwardRef(({className:e,children:t,...a},i)=>(0,r.jsx)(o.bm,{className:(0,n.cn)("",e),ref:i,...a,children:t}));m.displayName="DialogClose"},1780:(e,t,a)=>{"use strict";a.d(t,{Root:()=>i});var r=a(95155),o=a(51279);let i=a(12115).forwardRef(({className:e,children:t,...a},i)=>(0,r.jsx)(o.b,{className:e,ref:i,...a,children:t}));i.displayName="SeparatorRoot"},2457:(e,t,a)=>{"use strict";a.d(t,{Pz:()=>r,RZ:()=>i,og:()=>o});let r={author:{apiFollow:"/api/followAuthor",apiGetFollowed:"/api/getFollowedAuthors",dataCy:"follow-author-button",defaultLabel:"Follow",followErrorMsg:"Unable to follow author. Please try again.",idKey:"authorId",myFortuneListNoun:"following authors",nameKey:"authorName",pendingIdKey:"pendingFollowAuthorId",popoverDescription:"Sign in or sign up to get stories from this writer as soon as they're published.",popoverTitle:"Follow This Author",responseKey:"followedAuthors",slugKey:"authorSlug",unfollowErrorMsg:"Unable to unfollow author. Please try again."},topic:{apiFollow:"/api/followSection",apiGetFollowed:"/api/getFollowedSections",dataCy:"follow-section-button",defaultLabel:"Follow",followErrorMsg:"Unable to follow topic. Please try again.",idKey:"sectionId",myFortuneListNoun:"followed topics",nameKey:"sectionName",pendingIdKey:"pendingFollowSectionId",popoverDescription:"Sign in or sign up to stay ahead with new stories and updates.",popoverTitle:"Track This Topic",responseKey:"followedSections",slugKey:"sectionSlug",unfollowErrorMsg:"Unable to unfollow topic. Please try again."}},o="w-[276px] max-w-[calc(100vw-32px)] z-body-popover !fixed !mt-0",i="w-[276px] max-w-[calc(100vw-32px)] z-body-popover !fixed !left-1/2 !-translate-x-1/2 !right-auto !mt-0"},6240:(e,t,a)=>{"use strict";a.d(t,{l:()=>s});var r=a(12115),o=a(41994),i=a(2501);let n=new WeakSet,l=(e,t,a)=>{let r=(e=>{for(let t of[e?.ad?.netCpm,e?.ad?.bidCpm,e?.cpm]){let e="number"==typeof t?t:Number(t);if(null!=t&&Number.isFinite(e))return e}return 0})(a);(async()=>{try{let a=await (0,o.pP)(e,window?.arcSpanPageConfig);if(!a)return;a.trackEvent(t,{value:r})}catch{}})()},s=(e=!0)=>{let{optimizely:t}=(0,i.G)();(0,r.useEffect)(()=>{if(!(e&&t))return;let a=()=>{for(let e of window.voltax?.getAllPlayersOnPage()??[])n.has(e)||(n.add(e),e.on("adImpression",e=>l(t,"stn_ad_impression",e)),e.on("adViewableImpression",e=>l(t,"stn_ad_viewable_impression",e)))};return window.voltax&&a(),window.addEventListener("voltaxPlayerLoaded",a),()=>{window.removeEventListener("voltaxPlayerLoaded",a)}},[e,t])}},6480:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Image:()=>p});var r=a(95155),o=a(5772),i=a(19578),n=a(97643),l=a(55507),s=a(16e3);function c(e){return(e.split("?")[0]?.toLowerCase()??"").endsWith(".gif")}let d=({src:e,width:t,quality:a})=>(0,n.l)(e)&&!c(e)?(0,n.u)(e,t):`${e.split("?")[0]}?format=webp&w=${t}&quality=${a||75}`;function u(e){try{let t=e.currentTarget;t.src!==s.QF&&(t.src=s.QF,t.srcset="")}catch(e){}}let p=({alt:e,className:t,disableLoadTransition:a=!1,fetchPriority:p,fill:f=!1,fullWidth:m=!0,height:g=200,loading:h="lazy",priority:y=!1,sizes:w,src:v,unoptimized:b=!1,width:x=300,...A})=>{let N=(b||"string"==typeof v&&(0,n.l)(v)&&!c(v)?v:v?.toString().includes("format=webp")||!v?v:`${v}${v.toString().includes("?")?"&":"?"}format=webp`)||s.QF;return(0,r.jsx)(o.default,{alt:e,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=",className:(0,l.cn)(a?void 0:"transition-opacity duration-300",t),"data-cy":A["data-cy"]||i.F.ArticleImage,fetchPriority:p??(y?"high":void 0),loader:d,loading:y?"eager":h,onError:u,placeholder:"blur",priority:y,sizes:w??(m?"(max-width: 320px) 50vw, (max-width: 768px) 85vw, (max-width: 1024px) 50vw, (max-width: 1200px) 40vw, 33vw":""),src:N,unoptimized:b,...f&&{fill:f},...!f&&{height:g},...!f&&{width:x},...A})}},14093:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Breadcrumbs:()=>d});var r=a(95155),o=a(8666),i=a(52425),n=a(19578),l=a(55507);let s={contentPlacementCD:"top breadcrumb navigation",eventAction:"click breadcrumb link",eventCategory:"navigation"},c=({label:e,href:t,className:a,isEnabled:n=!0,index:c})=>(0,r.jsx)("nav",{"aria-label":`breadcrumb ${e}`,className:(0,l.cn)("flex items-center typography-default md:typography-sm font-medium capitalize min-w-0 flex-1",a),children:t&&n?(0,r.jsxs)("span",{className:"group flex items-center gap-sm","data-isfirst":0===c?"true":"false",children:[(0,r.jsx)(o.Icon,{className:"md:group-data-[isfirst=true]:hidden hidden md:flex icon-helper",icon:"ButtonRight",mode:"custom",size:"custom"}),(0,r.jsxs)(i.Link,{"aria-label":`breadcrumb link ${e}`,className:"whitespace-pre flex items-center gap-sm hover:text-primary-hover transition-colors duration-200",href:t,trackingData:{data:{...s,eventLabel:e}},children:[(0,r.jsx)(o.Icon,{className:"md:hidden icon-helper",icon:"ButtonLeft",mode:"custom",size:"custom"}),e]})]}):(0,r.jsxs)("span",{className:"text-secondary flex items-center gap-sm min-w-0",children:[(0,r.jsx)(o.Icon,{className:"hidden md:flex icon-helper",icon:"ButtonRight",mode:"custom",size:"custom"}),(0,r.jsx)("span",{className:"truncate flex-1",children:e})]})}),d=({items:e})=>0===e.length?null:(0,r.jsx)("nav",{"aria-label":"breadcrumbs",className:(0,l.cn)("min-w-0"),"data-cy":n.F.Breadcrumbs,children:(0,r.jsx)("span",{className:"flex items-center justify-start gap-sm",children:e.map(({label:t,href:a},o)=>(0,r.jsx)("span",{className:(0,l.cn)("hidden md:flex items-center gap-sm",o===e.length-1&&"min-w-0 flex-1",(e.length>1&&o===e.length-2||1===e.length)&&"flex"),children:(0,r.jsx)(c,{href:a,index:o,isEnabled:o!==e.length-1,label:t})},t))})})},15278:(e,t,a)=>{"use strict";a.d(t,{Mz:()=>c,UC:()=>u,ZL:()=>s,bL:()=>l,bm:()=>p,l9:()=>d});var r=a(95155),o=a(40093),i=a(12115),n=a(55507);let l=o.Root;l.displayName="PopoverRoot";let s=o.Portal;s.displayName="PopoverPortal",o.Arrow.displayName="PopoverArrow";let c=o.Anchor;c.displayName="PopoverAnchor";let d=i.forwardRef(({className:e,children:t,asChild:a,...i},l)=>(0,r.jsx)(o.Trigger,{asChild:a,className:(0,n.cn)(e),ref:l,...i,children:t}));d.displayName="PopoverTrigger";let u=i.forwardRef(({className:e,children:t,...a},i)=>(0,r.jsx)(o.Content,{className:(0,n.cn)("",e),ref:i,...a,children:t}));u.displayName="PopoverContent";let p=i.forwardRef(({className:e,children:t,...a},i)=>(0,r.jsx)(o.Close,{className:(0,n.cn)("",e),ref:i,...a,children:t}));p.displayName="PopoverClose"},18876:(e,t,a)=>{"use strict";a.d(t,{O:()=>o});var r=a(12115);function o(e){(0,r.useEffect)(()=>
1{if(!e)return;let t=`stn-playlist-hidden-${e}`;if(!document.getElementById(t)){let a=document.createElement("style");a.id=t,a.textContent=`.stn-video-player[class*="${e}"] .playlistContainer {   display: none !important;   pointer-events: none !important; }`,document.head.appendChild(a)}let a=()=>{let t=document.querySelector(`.stn-video-player[class*="${e}"]`),a=t?.querySelector("voltax-player")?.shadowRoot;if(!a)return!1;if(!a.querySelector("#stn-player-overrides")){let e=document.createElement("style");e.id="stn-player-overrides",e.textContent=".playlistContainer { visibility: hidden !important; pointer-events: none !important; } .voltax-mp-title-bar { display: none !important; }",a.appendChild(e)}return!0},r=0,o=0;return a()||(r=window.setInterval(()=>{a()&&window.clearInterval(r)},500),o=window.setTimeout(()=>window.clearInterval(r),2e4)),()=>{window.clearInterval(r),window.clearTimeout(o),document.getElementById(t)?.remove()}},[e])}},19578:(e,t,a)=>{"use strict";a.d(t,{F:()=>n,X:()=>i});var r,o,i=((r={}).ImpressionElement="impression-element",r),n=((o={}).Header="header",o.TopicNavigation="topicNavigation",o.AccountDropdown="myAccountDropdown",o.MyAccountLink="myAccountLink",o.DrawerMenu="drawer-menu",o.MenuMobile="menu-mobile",o.MyProfileLink="my-account-my-profile-navlink",o.Footer="footer-navigation",o.FooterSection="footer-navigation-link-wrapper",o.FooterSectionTitle="footer-navigation-section-title",o.FooterLink="footer-navigation-link",o.MenuItem="itemLink",o.SubmenuItem="subMenuLevel",o.BurgerButton="burger-button",o.CloseButton="closeButton",o.ArrowButton="arrow-button",o.LogoutButton="logoutBtnDesktop",o.UserIconButton="userIconButton",o.SignOutButton="logoutBtnDesktop",o.SearchButton="search-button",o.SubscribeButton="subscribeBtnDesktop",o.SigninButtonDesktop="signinBtnDesktop",o.SigninButtonMobile="signinBtnMobile",o.Logo="logo",o.FortuneLogo="fortune-logo",o.FeatureHeaderF500Svg="feature-header-f500-svg",o.FeaturedImage="featured-image",o.PrimaryImage="primary_image",o.ImageCaption="caption",o.ImageCredit="credit",o.Image="image",o.ImageWrapper="image-wrapper",o.FacebookIcon="facebook-icon",o.TwitterIcon="x-icon",o.LinkedinIcon="linkedin-icon",o.InstagramIcon="instagram-icon",o.EmailIcon="email-icon",o.ShareIcon="share-icon",o.NativeShareIcon="native-share-icon",o.AuthorItem="author-item",o.AuthorByText="author-by-text",o.AuthorName="author-name",o.AuthorByline="authorByLine",o.ReviewedByText="reviewed-by-text",o.PublishDate="feature-byline-publish-date",o.ReadTime="read-time",o.SocialProofBadge="social-proof-badge",o.AuthorRole="author-role",o.AuthorsBioCards="authors-bio-cards",o.AuthorsBioSectionTitle="authors-bio-section-title",o.AuthorBio="author-bio",o.AuthorLink="author-link",o.AuthorSeeFullBio="author-see-full-bio",o.AuthorShortIntro="author-short-intro",o.AuthorImage="author-image",o.AuthorFollowButton="author-follow-button",o.Breadcrumbs="bread-crumbs",o.MobileBreadcrumbs="tablet-and-mobile-breadcrumbs",o.DesktopBreadcrumbs="desktop-breadcrumbs",o.ArticleHero="article-container-eyebrow",o.ArticleWrapper="article-wrapper",o.ArticleContent="article-content",o.ArticleAuthorAndDate="article-author-and-date",o.ArticleTitle="article-title",o.ArticleAuthors="article-authors",o.ArticleEyebrow="article-eyebrow",o.ArticleSectionEyebrow="article-section-eyebrow",o.ArticleTagEyebrow="article-tag-eyebrow",o.SubscriptionPlea="subscriptionPlea",o.BrandedArticleContent="branded-article-content",o.ArticleGeoTag="article-geo-tag",o.ArticleRightRail="article-right-rail",o.RightRailNavigation="rightRailNavigation",o.EducationArticleRail="education-article-rail",o.ArticleCardWrapper="article-card-wrapper",o.ArticleCardImage="article-card-image",o.ArticleImageLink="article-image-link",o.CardWrapper="card-wrapper",o.ArticleCardTitle="article-card-title",o.ArticleCardByline="article-card-by-line",o.BylineAuthor="by-line-author",o.ArticleCardDate="article-card-date",o.ArticleCardExcerpt="article-card-excerpt",o.ArticleImage="article-image",o.PostList="post-list",o.TimeAgo="time-ago-wrapper",o.TopArticles="top-articles",o.TopArticlesTitle="top-articles-title",o.TopArticlesArticleList="top-articles-article-list",o.EducationArticleInstreamAd="edu_article_instream_ad",o.EducationCard="edu-card",o.EducationCardBanner="edu-card-banner",o.EducationCardContainer="edu-card-container",o.EducationCardContent="edu-card-content",o.EducationCardTitle="edu-card-title",o.EducationCardTitleHeading="edu-card-title-heading",o.EducationCardTitleSubheading="edu-card-title-subheading",o.EducationCardContentDescription="edu-card-content-description",o.EducationCardAction="edu-card-action",o.EducationCardPicture="edu-card-picture",o.EducationCardActionCta="edu-card-action-cta",o.EzNewswirePressReleasesList="ez-newswire-press-releases-list",o.EzNewswireListPagination="ez-newswire-list-pagination",o.EzNewswireDisclaimerLink="ez-newswire-disclaimer-link",o.EzNewswirePressReleaseListInlineCta="ez-newswire-press-release-list-inline-cta",o.EzNewswireRightRail="ez-newswire-right-rail",o.EzNewswireRightRailCta="ez-newswire-right-rail-cta",o.EzNewswireRightRailCtaButton="ez-newswire-right-rail-cta-button",o.EzNewswirePressReleaseListInlineCtaButton="ez-newswire-press-release-list-inline-cta-button",o.EzNewswireListHeader="ez-newswire-list-header",o.EzNewswireListHeadlineLink="ez-newswire-list-headline-link",o.InStream
1="in-stream",o.InContent="in-content",o.NativoTout="nativoTout",o.RightRailFlex="right-rail-flex",o.RightRailArticleSticky="right-rail-article-sticky",o.StickyFooter="sticky-footer",o.AffiliateProductCardWrapper="affiliate-product-card-wrapper",o.AffiliateProductCardHeader="affiliate-product-card-header",o.AffiliateProductCardContentWrapper="affiliate-product-card-content-wrapper",o.AffiliateProductCardBodyWrapper="affiliate-product-card-body",o.AffiliateProductCardProductName="affiliate-product-card-product-name",o.AffiliateProductCardPromotion="affiliate-product-card-promotion",o.AffiliateProductCardTabs="affiliate-product-card-tabs",o.AffiliateProductCardImageCarousel="affiliate-product-card-image-carousel",o.AffiliateTable="affiliate-table",o.AffiliateTableCell="affiliate-table-cell",o.TrendingTopBarLink="trending-top-bar-link",o.PromotionTopBarLink="promotion-top-bar-link",o.TrendingTopBar="trending-top-bar",o.PromotionTopBar="promotion-top-bar",o.DisclosureStripe="disclosure-stripe",o.EngagementBar="engagement-bar",o.EngagementBarShare="engagement-bar-share",o.RegistrationOnboarding="registration-onboarding",o.RegistrationOnboardingLink="registration-onboarding-link",o.OneTrustScript="one-trust-script",o.OneTrustUser="one-trust-user",o)},21042:(e,t,a)=>{"use strict";a.d(t,{C$:()=>A,ly:()=>x});var r=a(12115),o=a(46657);let i=["follow","save"],n={follow:!1,pending:{},save:!1,synced:!1,userId:null},l=n,s=new Set,c=null;function d(e){for(let t of(l=e,s))t()}function u(e){return s.add(e),()=>{s.delete(e)}}function p(){return l}function f(){return n}function m(e){return`popoverDismissals:${e}`}function g(e){try{let t=localStorage.getItem(m(e));if(!t)return{...n,userId:e};let a=JSON.parse(t);return{follow:!!a.follow,pending:a.pending??{},save:!!a.save,synced:!!a.synced,userId:e}}catch{return{...n,userId:e}}}function h(e){if(e.userId)try{localStorage.setItem(m(e.userId),JSON.stringify({follow:e.follow,pending:e.pending,save:e.save,synced:e.synced}))}catch{}d(e)}async function y(e){let t=l.userId;if(t)try{if(!(await fetch("/api/dismissPopover",{body:JSON.stringify({type:e}),headers:{"Content-Type":"application/json"},method:"POST"})).ok||l.userId!==t)return;if(l.pending[e]){let t={...l.pending};delete t[e],h({...l,pending:t})}}catch{}}function w(){for(let e of i)l.pending[e]&&y(e)}async function v(e){try{let t=await fetch("/api/getPopoverDismissals");if(!t.ok)return;let a=await t.json();if(l.userId!==e)return;h({...l,follow:!!a.follow||!!l.pending.follow,save:!!a.save||!!l.pending.save,synced:!0,userId:e}),w()}catch{}}function b(e){(l.userId!==e&&d(g(e)),l.synced&&l.userId===e)?w():c?.userId===e||(c={promise:v(e).finally(()=>{c?.userId===e&&(c=null)}),userId:e})}async function x(e,t){return!!t&&(b(t),c?.userId===t&&await c.promise,!!t&&(l.userId===t?l[e]:g(t)[e]))}function A(e){let{userAccess:{loggedIn:t,data:a}}=(0,o.J)(),i=a?.sub??null,n=(0,r.useSyncExternalStore)(u,p,f);return(0,r.useEffect)(()=>{t&&i&&b(i)},[t,i]),{dismiss:(0,r.useCallback)(()=>{l[e]||(h({...l,[e]:!0,pending:{...l.pending,[e]:!0}}),y(e))},[e]),isDismissed:!!t&&n.userId===i&&n[e]}}},29727:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FollowEntityButton:()=>A});var r=a(95155),o=a(73321),i=a(12115),n=a(93318),l=a(52425),s=a(38256),c=a(21042),d=a(36004),u=a(31070),p=a(41994),f=a(46657),m=a(15296),g=a(14794),h=a(90204),y=a(55507),w=a(2501),v=a(2457),b=a(65832);let x="pendingFollowAuthMethod",A=({kind:e,id:t,name:a,slug:A,className:N,articleId:j})=>{let C=v.Pz[e],S=(0,i.useRef)(null),[I,E]=(0,i.useState)(!1),[L,k]=(0,i.useState)(null),[R,P]=(0,i.useState)(!1),[_,T]=(0,i.useState)(!1),F=(0,i.useRef)(!1),{userAccess:{loggedIn:$,data:z}}=(0,f.J)(),{optimizely:B}=(0,w.G)(),{dismiss:D}=(0,c.C$)("follow"),O=z?.sub||"",M=(0,o.useSearchParams)(),U=M?.get("social_response_id"),{followedList:K,hasLoaded:V,idKey:q,mutate:W}=(0,s.A)(e,!!$),J=K.some(e=>Number(e[q])===t),Y=!!$&&!V,H=(0,b.o)(S,null!==L||R),G=(0,i.useCallback)(()=>({[C.idKey]:t}),[C,t]);(0,i.useEffect)(()=>{U&&!$&&localStorage.getItem(C.pendingIdKey)===String(t)&&T(!0)},[U,$,C.pendingIdKey,t]);let Q=(0,i.useCallback)((e,t={})=>{let a={timestamp:Date.now(),user_id:O,...t};(0,p.oj)(B,e,a),(0,h.sx)({customData:a,eventLabel:e})},[B,O]);(0,i.useEffect)(()=>
1{if(!(t&&$&&z&&V)||Number(localStorage.getItem(C.pendingIdKey))!==t)return;localStorage.removeItem(C.pendingIdKey);let r=localStorage.getItem(x)||"login";localStorage.removeItem(x);let o="author"===e?"author_id":"section_id",i="author"===e?"follow_author_complete":"follow_section_complete";Q("registration"===r?`follow_${"author"===e?"author":"section"}_registration_complete`:`follow_${"author"===e?"author":"section"}_login_complete`,{[o]:t}),J||(async()=>{E(!0);try{if((await fetch(C.apiFollow,{body:JSON.stringify(G()),headers:{"Content-Type":"application/json"},method:"POST"})).ok){let e=[...K,{[q]:t,[C.nameKey]:a,...A?{[C.slugKey]:A}:{}}];W(e,!1),P(!await (0,c.ly)("follow",z?.sub??null)),W(),Q(i,{[o]:t})}else k(C.followErrorMsg)}catch{k(C.followErrorMsg)}finally{E(!1)}})()},[t,$,z,V,C,G,J,W,K,q,a,A,e,Q]);let Z=async()=>{if(!t||F.current)return;let r="author"===e?"author_id":"section_id";if(!J){let a="author"===e?"follow_author_click":"follow_section_click",o={[r]:t,is_registered:$?"true":"false"};"author"===e&&j&&(o.article_id=j),Q(a,o)}if(!$){localStorage.setItem(C.pendingIdKey,String(t)),localStorage.setItem(x,"login"),Q("follow_registration_modal_view",{[r]:t}),T(!0);return}let o=J?"DELETE":"POST",i=J?C.unfollowErrorMsg:C.followErrorMsg;F.current=!0,k(null),P(!1);let n=J?{[C.idKey]:t}:G();W(J?K.filter(e=>Number(e[q])!==t):[...K,{[q]:t,[C.nameKey]:a,...A?{[C.slugKey]:A}:{}}],!1);try{if(!(await fetch(C.apiFollow,{body:JSON.stringify(n),headers:{"Content-Type":"application/json"},method:o})).ok){W(),k(i);return}W();let l="author"===e?"author_name":"section_name";if(J){let o="author"===e?"unfollow_author":"unfollow_section",i="author"===e?m.A.AUTHOR_UNFOLLOWED:m.A.SECTION_UNFOLLOWED;(0,g.v)(i,{[r]:t,[l]:a}),Q(o,{[r]:t})}else{P(!await (0,c.ly)("follow",z?.sub??null));let o="author"===e?"follow_author_complete":"follow_section_complete",i="author"===e?m.A.AUTHOR_FOLLOWED:m.A.SECTION_FOLLOWED;(0,g.v)(i,{[r]:t,[l]:a}),Q(o,{[r]:t})}}catch{W(),k(i)}finally{F.current=!1}},X=$&&J?`Unfollow ${a}`:$?`Follow ${a}`:`Follow ${a} (requires sign in)`,ee=(0,r.jsxs)("div",{className:"p-xxs flex flex-col gap-sm typography-default text-primary",children:[(0,r.jsx)("p",{className:"typography-default",children:"author"===e?(0,r.jsxs)(r.Fragment,{children:["You are now following ",a,". Find your followed authors in"," ",(0,r.jsx)(l.Link,{className:"text-accent underline",href:"/account/my-fortune/",children:"My Fortune"}),"."]}):(0,r.jsxs)(r.Fragment,{children:["You're now following ",a,". We'll email you new articles — find your"," ",C.myFortuneListNoun," in"," ",(0,r.jsx)(l.Link,{className:"text-accent underline",href:"/account/my-fortune/",children:"My Fortune"}),"."]})}),(0,r.jsxs)("div",{className:"flex flex-col gap-xs",children:[(0,r.jsx)(u.ButtonV2,{as:"button",className:"w-full normal-case",onClick:()=>{P(!1),D()},variant:"primaryOutline",children:"Ok, got it"}),(0,r.jsx)("p",{className:"typography-xxs text-secondary leading-[1.5]",children:"Fortune may send me information, offers, and additional newsletters relating to other Fortune products and services by email. I may opt-out at any time by clicking the unsubscribe link in those emails."})]})]});return(0,r.jsxs)("span",{className:(0,y.cn)("relative inline-flex font-graphik-compact",N),ref:S,children:[(0,r.jsx)(d._,{align:"start",articleId:j,description:C.popoverDescription,intentTrigger:"follow",isOpen:_,onAuthSuccess:()=>{let e=new URL(window.location.href);e.searchParams.delete("social_response_id"),window.history.replaceState(null,"",`${e.pathname}${e.search}${e.hash}`)},onOpenChange:T,title:C.popoverTitle,children:(0,r.jsx)("span",{className:"inline-flex",children:(0,r.jsx)(u.ButtonV2,{"aria-busy":I||Y,"aria-label":X,"aria-pressed":J,as:"button",className:(0,y.cn)((I||Y)&&"opacity-60 cursor-wait animate-pulse pointer-events-none"),"data-cy":C.dataCy,disabled:I||Y,noCapitalize:!0,onClick:Z,size:"sm",variant:J?"primaryOutline":"secondaryOutline",children:(0,r.jsx)("span",{children:J?"Following":C.defaultLabel})})})}),L&&(0,r.jsx)(n.Y,{className:H.className,content:(0,r.jsx)("p",{className:"typography-default",role:"alert",children:L}),isOpen:null!==L&&H.isReady,onClose:()=>k(null),portal:H.portal,showClose:!1,style:H.style,variant:"error"}),R&&(0,r.jsx)(n.Y,{className:H.className,content:ee,isOpen:R&&H.isReady,onClose:()=>{P(!1)},portal:H.portal,showClose:!1,style:H.style})]})}},30939:(e,t,a)=>{"use strict";a.d(t,{StnVideo:()=>p});var r=a(95155),o=a(12115),i=a(65596),n=a(6240),l=a(46657),s=a(68820),c=a(19578),d=a(43154),u=a(55507);let p=({videoId:e,adTags:t,dataCy:a="",floatVerticalTranslate:p=0,float:f=!1,className:m,playerKey:g,target:h="s2nPlayer","aria-label":y="Featured Video"})=>{let{personalizedAds:w}=(0,l.J)(),[v,b]=(0,o.useState)(!1),[x,A]=(0,o.useState)(!1),N=(0,o.useSyncExternalStore)(d.tv,d.So,()=>!1),j=(0,o.useRef)(null),C=!!g,S=t?.find(e=>e===s.l.NoVideoAds||e===s.l.NoAds)?e.replace(/-14497$/g,"-16481"):e,I=C?`s2nPlayer-fk-${g}`:`${h}-${S}`;(0,n.l)(!0===w),(0,o.useEffect)(()=>{let e=window.setupS2NApi,t=e=>{let t=C?document.querySelector(`[data-stn-player="${g}"]`):document.querySelector(`.${I}`);t&&(window.s2nApi=e(t),b(!0))};return window.setupS2NApi=t,()=>{window.setupS2NApi===t&&(e?window.setupS2NApi=e:delete window.setupS2NApi)}},[I,C,g]),(0,o.useEffect)(()=>{let e=new MutationObserver(e=>{e.some(e=>Array.from(e.addedNodes).some(e=>e?.classList?.contains("tp-modal")))?A(!0):e.some(e=>
1Array.from(e.removedNodes).some(e=>e?.classList?.contains("tp-modal")))&&A(!1)});return e.observe(document.body,{childList:!0}),()=>e.disconnect()},[]);let E=f&&!N;return((0,o.useEffect)(()=>{let e=E&&!x;if(v&&window.s2nApi&&(window.s2nApi.floatVerticalTranslate=p,C?"boolean"==typeof window.s2nApi.float&&(window.s2nApi.float=e):window.s2nApi.float=e),!(C&&g))return;let t=`[data-stn-player="${g}"]`,a=t=>{t.setFloatingMargins?.(p),t.setFloatingEnabled?.(e)};j.current&&a(j.current);let r=e=>{let r=(e=>{let a=document.querySelector(t);if(!a?.querySelector("voltax-player"))return null;let r=e.detail;return r?.player&&"fortune-video-modal-player"!==r.externalID?r.player:null})(e);!r||j.current&&j.current!==r||(j.current=r,a(r))};return window.addEventListener("voltaxPlayerLoaded",r),()=>window.removeEventListener("voltaxPlayerLoaded",r)},[E,v,p,C,x,g]),!0!==w)?null:C?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{"aria-label":y,src:`https://embed.sendtonews.com/player3/embedcode.js?fk=${g}`,strategy:"afterInteractive"},`stn-fk-${g}`),(0,r.jsx)("div",{className:(0,u.cn)("stn-video-player w-full",I,m,c.X.ImpressionElement),"data-content-placement":"stn-video","data-cy":a,"data-s2n-api":"setupS2NApi","data-stn-player":g},`stn-fk-player-${g}`)]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{"aria-label":y,src:`https://embed.sendtonews.com/player3/embedcode.js?SC=${S}`,strategy:"afterInteractive"},I),(0,o.createElement)("div",{className:(0,u.cn)(`stn-video-player k-${S}`,I,m,c.X.ImpressionElement),"data-content-placement":"stn-video","data-cy":a,"data-s2n-api":"setupS2NApi",...E?{"data-type":"float"}:{},key:`stn-video-player-${I}`})]})}},32767:(e,t,a)=>{"use strict";a.d(t,{j:()=>n});var r=a(95155),o=a(12115),i=a(67214);let n=e=>{let t=(0,o.useRef)(null),[a,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=t.current;if(!e)return;let{width:a}=e.getBoundingClientRect();n(a>190)},[]),(0,r.jsx)(i.Q1,{...e,containerRef:t,src:a?e.src?.replace("/LG/","/XL/"):e.src})}},35906:(e,t,a)=>{"use strict";a.d(t,{m:()=>o});var r=a(46657);function o(e){let{userAccess:t}=(0,r.J)();return e&&!t.hasAccess}},36004:(e,t,a)=>{"use strict";a.d(t,{_:()=>C});var r=a(95155),o=a(73321),i=a(12115),n=a(29160),l=a(8666),s=a(58889),c=a(20281),d=a(46657),u=a(29598),p=a(10716),f=a(18290);let m=()=>{let e=(0,o.useRouter)(),{refreshUserAccess:t}=(0,d.J)(),a=(0,i.useCallback)(async()=>{await (0,f.qD)({flow:u.nK.Popover,redirectCookieKey:(0,f.SM)(u.nK.Popover),refreshUserAccess:t,router:e})},[t,e]),n=(0,i.useCallback)(()=>{(0,p.Ic)("notification:message",{message:"There was an error logging you in. Please try again or use another method.",type:"error"})},[]);return(0,r.jsx)(c.g,{flow:u.nK.Popover,onLoadingChange:()=>{},onLoginError:n,onLoginSuccess:a,children:null})};var g=a(19),h=a(39160),y=a(1976),w=a(55507);let v=({isOpen:e,onOpenChange:t,title:a,description:c,onAuthSuccess:p,children:v})=>{let b=(0,o.usePathname)(),x=(0,o.useSearchParams)(),A=x?.get("social_response_id"),{userAccess:N}=(0,d.J)(),j=(0,i.useRef)(!1),C=(0,i.useId)(),S=(0,i.useId)();(0,i.useEffect)(()=>{if(!e)return;let t=(0,h.c)("social_response_id",x),a=`${b}${t?`?${t}`:""}`;(0,y.NW)((0,f.SM)(u.nK.Modal),a)},[e,b,x]);let I=(0,i.useCallback)(()=>{j.current||(j.current=!0,p?.(),t(!1))},[p,t]);return(0,i.useEffect)(()=>{e&&(j.current=!1)},[e]),(0,i.useEffect)(()=>{e&&!0===N.loggedIn&&I()},[e,N.loggedIn,I]),(0,r.jsxs)(r.Fragment,{children:[A?(0,r.jsx)(m,{}):null,v,(0,r.jsx)(g.bL,{onOpenChange:t,open:e,children:(0,r.jsxs)(g.ZL,{children:[(0,r.jsx)(g.hJ,{className:(0,w.cn)("fixed inset-0 z-modal-backdrop bg-black/48","data-[state=open]:fade-in data-[state=closed]:fade-out")}),(0,r.jsxs)(g.UC,{"aria-describedby":S,"aria-labelledby":C,className:(0,w.cn)("fixed top-1/2 left-1/2 z-modal-content w-[calc(100%-32px)] max-w-[450px] -translate-x-1/2 -translate-y-1/2","max-h-[90vh] overflow-y-auto rounded-md bg-pure px-10 py-16 outline-none","shadow-[2px_2px_20px_0px_rgba(0,0,0,0.08)]","data-[state=open]:fade-in data-[state=closed]:fade-out"),children:[(0,r.jsx)(g.hE,{className:"sr-only",id:C,children:a}),(0,r.jsx)(g.VY,{className:"sr-only",id:S,children:c}),(0,r.jsx)(g.bm,{asChild:!0,children:(0,r.jsx)(n.ActionableIcon,{"aria-label":"Close sign in dialog",className:"absolute top-4 right-4",type:"button",children:(0,r.jsx)(l.Icon,{icon:"X"})})}),(0,r.jsx)(s.SignInFlowManager,{bodyCopy:c,flow:u.nK.Modal,initialTitleOverride:a,onAuthSuccess:I})]})]})})]})};var b=a(15278),x=a(37017);let A=({isOpen:e,onOpenChange:t,title:a,description:c,onAuthSuccess:p,align:g="end",intentTrigger:v="generic",articleId:A,authorId:N,children:j})=>{let C=(0,o.usePathname)(),S=(0,o.useSearchParams)(),I=S?.get("social_response_id"),{userAccess:E}=(0,d.J)(),L=(0,i.useRef)(!1),k=(0,i.useRef)(!1),R=(0,i.useId)(),P=(0,i.useId)();(0,i.useEffect)(()=>
1{if(!e){k.current=!1;return}k.current||(k.current=!0,(0,x.bV)({articleId:A,authorId:N,trigger:v}))},[e,v,A,N]),(0,i.useEffect)(()=>{if(!e)return;let t=(0,h.c)("social_response_id",S),a=`${C}${t?`?${t}`:""}`;(0,y.NW)((0,f.SM)(u.nK.Popover),a)},[e,C,S]);let _=(0,i.useCallback)(()=>{L.current||(L.current=!0,p?.(),t(!1))},[p,t]);return(0,i.useEffect)(()=>{e&&(L.current=!1)},[e]),(0,i.useEffect)(()=>{e&&!0===E.loggedIn&&_()},[e,E.loggedIn,_]),(0,r.jsxs)(r.Fragment,{children:[I?(0,r.jsx)(m,{}):null,(0,r.jsxs)(b.bL,{onOpenChange:t,open:e,children:[(0,r.jsx)(b.Mz,{asChild:!0,children:j}),(0,r.jsx)(b.ZL,{children:(0,r.jsxs)(b.UC,{align:g,"aria-describedby":P,"aria-labelledby":R,avoidCollisions:!1,className:(0,w.cn)("relative z-body-popover w-[328px] max-h-[90vh] overflow-y-auto","rounded-sm border-t-4 stroke-accent bg-pure px-4 py-6 outline-none","shadow-[2px_2px_20px_0px_rgba(0,0,0,0.08)]","data-[state=open]:fade-in data-[state=closed]:fade-out"),side:"bottom",sideOffset:8,children:[(0,r.jsx)("h2",{className:"sr-only",id:R,children:a}),(0,r.jsx)("p",{className:"sr-only",id:P,children:c}),(0,r.jsx)(b.bm,{asChild:!0,children:(0,r.jsx)(n.ActionableIcon,{"aria-label":"Close sign in dialog",className:"absolute top-2 right-3",type:"button",children:(0,r.jsx)(l.Icon,{icon:"X"})})}),(0,r.jsx)(s.SignInFlowManager,{bodyCopy:c,flow:u.nK.Popover,initialTitleOverride:a,onAuthSuccess:_})]})})]})]})};var N=a(2501),j=a(5018);let C=({align:e="end",intentTrigger:t="generic",...a})=>{let{signInModalOn:o}=(()=>{let{userFlags:e,isReady:t}=(0,N.G)(),a=t&&!!e.sign_in_modal?.enabled;return{isReady:t,signInModalOn:a,signInPopoverOn:t&&!a}})(),i=(0,j.Ub)(j.Rp.Mobile,void 0,{getInitialValueInEffect:!1}),n="follow"===t||"follow_authors"===t;return o||i&&n?(0,r.jsx)(v,{...a}):(0,r.jsx)(A,{...a,align:e,intentTrigger:t})}},38187:(e,t,a)=>{"use strict";a.d(t,{N:()=>i});var r=a(46657),o=a(72008);let i=(e,t,a)=>{let{personalizedAds:i}=(0,r.J)();if(!(t&&e))return"";let n=a?.topics??t.topics??[],l=a?.tags??t.tags??[],s=(0,o.Nn)(t.ch,e);return`pubads.g.doubleclick.net/gampad/ads?iu=/21809533738/${s}&description_url=${encodeURIComponent(e)}&env=vp&impl=s&tfcd=0&npa=${i?"0":"1"}&gdfp_req=1&output=vast&sz=640x360&ciu_szs=300x250,728x90&unviewed_position_start=1&cust_params=cid=${t.cid}%26topics=${encodeURIComponent(n.join(","))}%26tags=${encodeURIComponent(l.join(","))}%26ctype=${t.ctype}%26premiumCategory=${t.premiumCategory}`}},38256:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(44855),o=a(2457);let i=async([e,t])=>{let a=await fetch(e);if(!a.ok)return[];let r=await a.json();return r?.[t]??[]};function n(e,t){let{apiGetFollowed:a,idKey:n,responseKey:l}=o.Pz[e],{data:s,mutate:c}=(0,r.Ay)(t?[a,l]:null,i,{dedupingInterval:5e3,revalidateOnFocus:!1});return{followedList:s??[],hasLoaded:void 0!==s,idKey:n,mutate:c}}},43154:(e,t,a)=>{"use strict";a.d(t,{RZ:()=>s,So:()=>c,tv:()=>d,yd:()=>l});let r=!1,o=!1,i=new Set;function n(){for(let e of i)e()}function l(e){r!==e&&(r=e,n())}function s(e){o!==e&&(o=e,n())}function c(){return r||o}function d(e){return i.add(e),()=>{i.delete(e)}}},44181:(e,t,a)=>{"use strict";a.r(t),a.d(t,{TopicPaywallGate:()=>l});var r=a(95155),o=a(12115),i=a(46657),n=a(55507);function l({children:e,className:t,enabled:a}){let{userAccess:s}=(0,i.J)(),c=(0,o.useRef)(null),d=a&&!s.hasAccess;return(0,o.useEffect)(()=>{let e=c.current;e&&(e.classList.toggle("paywallActive",d),d?e.setAttribute("data-cy","topic-paywall-gated"):e.removeAttribute("data-cy"))},[d]),(0,o.useEffect)(()=>{let e=c.current;if(!(e&&d))return;let t=()=>{for(let t of e.querySelectorAll("video"))t.pause(),t.removeAttribute("autoplay");for(let t of e.querySelectorAll("voltax-player")){let e=t.shadowRoot?.querySelector("video");e?.pause()}},a=e=>{let t=e.target;t instanceof HTMLVideoElement&&(e.preventDefault(),t.pause())};t(),e.addEventListener("play",a,!0);let r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0}),()=>{e.removeEventListener("play",a,!0),r.disconnect()}},[d]),(0,r.jsx)("div",{className:(0,n.cn)(t),ref:c,children:e})}},49453:(e,t,a)=>{"use strict";a.d(t,{CustomVideo:()=>g});var r=a(95155),o=a(12115),i=a(922),n=a(29217),l=a(29160),s=a(8666),c=a(6480),d=a(55507),u=a(16e3);function p(e){let t=e.current;t&&!t.isDisposed()&&t.dispose(),e.current=null}function f(e){let t=e.split("?")[0]?.toLowerCase()??"";return t.endsWith(".m3u8")?"application/x-mpegURL":t.endsWith(".mp4")?"video/mp4":t.endsWith(".webm")?"video/webm":"application/x-mpegURL"}a(23028);let m=(0,n.tv)({slots:{close:"",container:"",iframe:""},variants:{dockingMode:{false:{close:"hidden",container:"w-full h-full aspect-video",iframe:"w-full h-full aspect-video"},true:{close:"absolute top-0 right-0 w-5 z-[10001] text-primary-inverse",container:"w-[300px] h-[169px] fixed bottom-[70px] right-4 z-header-popover",iframe:"w-[300px] h-[169px] fixed bottom-[70px] right-4 z-header-popover"}}}}),g=({videoUrl:e,className:t="",dataCy:n="",videoPosterCy:g="",autoplay:h=!0,docking:y=!1,loading:w=null,onEnd:v})=>{let b=(0,o.useRef)(null),x=(0,o.useRef)(null),A=(0,o.useRef)(v);A.current=v;let[N,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(!1),[I,E]=(0,o.useState)(!1),[L,k]=(0,i.Wx)({threshold:.5}),R=w??(0,r.jsx)(c.Image,{alt:"Video Poster",className:"w-full h-full aspect-video","data-cy":g,height:450,priority:!0,src:`${u.QF}?resize=800,450`,width:800});(0,o.useEffect)(()=>
1{if(!(N||I)){let e=setTimeout(()=>{k&&j(!0)},1e3);return()=>clearTimeout(e)}return N&&!k&&y&&S(!0),N&&k&&y&&S(!1),()=>{}},[I,k,N,y]);let P=N&&!!e;return(0,o.useLayoutEffect)(()=>(P||p(x),()=>{p(x)}),[P]),(0,o.useEffect)(()=>{if(!N||!e||!b.current||x.current&&!x.current.isDisposed())return;let t=!1;return(async()=>{let r=(await Promise.resolve().then(a.bind(a,90881))).default;if(t||!b.current)return;let o=r(b.current,{autoplay:!!h&&"any",controls:!0,fluid:!0,loop:!1,responsive:!0,sources:[{src:e,type:f(e)}]});o.on("ended",()=>{A.current?.()}),x.current=o})(),()=>{t=!0}},[N,e,h]),(0,o.useEffect)(()=>{let t=x.current;N&&e&&t&&(t.isDisposed()||(t.src({src:e,type:f(e)}),t.play()?.catch(()=>{})))},[N,e]),(0,r.jsx)("div",{className:(0,d.cn)("relative block w-full aspect-video",t),ref:L,children:(0,r.jsxs)("div",{className:m().container({dockingMode:C}),"data-cy":n,children:[(0,r.jsx)(l.ActionableIcon,{className:m().close({dockingMode:C}),onClick:()=>{y&&(S(!1),E(!0)),j(!1)},children:(0,r.jsx)(s.Icon,{icon:"X"})}),(0,r.jsxs)("div",{className:(0,d.cn)("relative w-full h-full",m().iframe({dockingMode:C})),children:[!P&&(0,r.jsx)("div",{className:"absolute inset-0 z-1 flex w-full h-full items-center justify-center",children:R}),(0,r.jsx)("video",{className:(0,d.cn)("video-js vjs-big-play-centered h-full w-full",!P&&"invisible"),playsInline:!0,ref:b})]})]})})}},53495:(e,t,a)=>{"use strict";a.d(t,{N:()=>o});var r=a(73321);function o(){let e=(0,r.usePathname)(),t=(0,r.useSearchParams)();return e+(t&&"?"===t.toString()?t.toString():"")}},65832:(e,t,a)=>{"use strict";a.d(t,{o:()=>n});var r=a(12115),o=a(5018),i=a(2457);let n=(e,t)=>{let a=(0,o.Ub)(o.Rp.Mobile,void 0,{getInitialValueInEffect:!1}),[n,l]=(0,r.useState)(null),s=(0,r.useCallback)(()=>{let t,r=e.current;if(!r)return;let{bottom:o,left:i}=r.getBoundingClientRect();l({left:a?void 0:(t=Math.min(276,window.innerWidth-32),Math.max(16,Math.min(i,window.innerWidth-t-16))),top:o+8})},[e,a]);return((0,r.useLayoutEffect)(()=>t?(s(),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}):void l(null),[t,s]),t&&null!==n)?{className:a?i.RZ:i.og,isReady:!0,portal:!0,style:void 0===n.left?{top:n.top}:{left:n.left,top:n.top}}:{className:a?i.RZ:i.og,isReady:!1,portal:!0}}},67214:(e,t,a)=>{"use strict";a.d(t,{L9:()=>x,Q1:()=>b,Y6:()=>A,b$:()=>v,eg:()=>j,yN:()=>y,yp:()=>N,zR:()=>w});var r=a(95155),o=a(29217),i=a(49453),n=a(8666),l=a(6480),s=a(30939),c=a(57903),d=a(77635),u=a(97643),p=a(55507);let f=({children:e,className:t=""})=>(0,r.jsx)("span",{className:(0,p.cn)("py-xxxs px-xxs typography-xs rounded-sm",t),children:e}),m=({className:e=""})=>(0,r.jsx)(f,{className:(0,p.cn)("bg-blue-100 text-blue-600 font-medium",e),children:"Watching"}),g=({duration:e,className:t=""})=>(0,r.jsx)(f,{className:(0,p.cn)("bg-black text-light font-medium",t),children:e}),h=({className:e=""})=>(0,r.jsx)(n.Icon,{className:(0,p.cn)("size-[30%]",e),icon:"CirclePlayFilled",mode:"both",size:"custom"}),y=(0,o.tv)({compoundVariants:[{class:{title:"typography-level-6"},layout:"default",modal:!1}],defaultVariants:{layout:"default",orientation:"vertical"},slots:{base:"flex gap-lg text-primary w-full",content:"flex flex-col flex-1 gap-sm",date:"text-secondary font-graphik typography-xs",description:"",player:"[--stn-player-borderRadius:8px] aspect-video w-full flex items-center justify-center",thumbnail:"rounded-md aspect-video w-full object-cover",title:"w-fit"},variants:{layout:{default:{base:"max-w-[1096px]",title:"font-semibold group-hover/card:text-secondary cursor-pointer line-clamp-2 lg:line-clamp-none"},hero:{base:"lg:gap-6",content:"lg:flex-row layout-grid-gap gap-2xl",description:"lg:flex-1",player:"md:[--stn-player-borderRadius:16px]",title:"typography-level-1 font-bold font-inria-serif lg:flex-1"}},modal:{false:{},true:{description:"text-secondary",player:"lg:[--stn-player-borderRadius:8px] [--stn-player-titleBarColor:#ffffff]",title:"typography-default font-semibold"}},orientation:{horizontal:{base:"flex-row items-center",thumbnail:"flex-1"},vertical:{base:"flex-col items-start flex-1"}}}}),w=({children:e,layout:t,orientation:a,modal:o=!1,className:i,dataCy:n})=>(0,r.jsx)("div",{className:(0,p.cn)("group/card",y({layout:t,modal:o,orientation:a}).base(),i),"data-cy":n,children:e}),v=({children:e,layout:t,orientation:a})=>(0,r.jsx)("div",{className:y({layout:t,orientation:a}).content(),"data-cy":"video-content-wrapper",children:e}),b=({src:e,layout:t,orientation:a,watching:o=!1,modal:i=!1,duration:n="10:00",className:s,"data-index":c,containerRef:d,interactive:f=!0,priority:w=!1})=>(0,r.jsxs)("span",{className:(0,p.cn)("group relative",f&&!o&&"cursor-pointer",!f&&"pointer-events-none",y({layout:t,modal:i,orientation:a}).thumbnail(),s),"data-index":c,ref:d,children:[(0,r.jsx)(l.Image,{alt:"Video Thumbnail",className:y({layout:t,modal:i,orientation:a}).thumbnail(),"data-cy":"video-thumbnail",disableLoadTransition:w,fill:!0,priority:w,src:(0,u.u)(e)}),o?(0,r.jsx)(m,{className:"absolute top-2 left-2 z-2"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h,{className:"absolute top-1/2 left-1/2 z-2 -translate-x-1/2 -translate-y-1/2 text-light"}),n&&(0,r.jsx)(g,{className:"absolute bottom-2 right-2 z-2",duration:n})]}),(0,r.jsx)("div",{className:(0,p.cn)("top-0 absolute w-full h-full aspect-video z-1",o?"bg-black/20 border-3 border-blue-300":"bg-inverse/0 group-hover/card:bg-black/20",y({layout:t,modal:i,orientation:a}).thumbnail())})]}),x=({layout:e,orientation:t,modal:a=!1,videoId:o,adTags:n,target:l,videoType:u="stn",videoUrl:p,subtitlesUrl:f,onEnd:m,autoPlay:g,enableAds:h=!1,dataCy:w="video-data-cy",tags:v,topics:b})=>{switch(u){case"stn":return(0,r.jsx)(s.StnVideo,{adTags:n,"aria-label":"Video Player",className:y({layout:e,modal:a,orientation:t}).player(),dataCy:w,float:!1,target:l,videoId:o});case"hls":return(0,r.jsx)(d.LegacyVideoJs8Player,{autoPlay:g??!0,className:y({layout:e,modal:a,orientation:t}).player(),enableAds:h,onEnd:m,src:p??"",subtitlesUrl:f,tags:v,topics:b,videoId:o},o);default:{let o=(0,r.jsx)(c.SpinningLoader,{size:48});return(0,r.jsx)(i.CustomVideo,{autoplay:g,className:y({layout:e,modal:a,orientation:t}).player(),loading:o,onEnd:m,videoUrl:p})}}},A=({layout:e,orientation:t,modal:a=!1,className:o,title:i,playing:n=!1,watching:l=!1,"data-index":s})=>(0,r.jsx)("span",{className:(0,p.cn)(y({layout:e,modal:a,orientation:t}
1).title(),(l||n)&&"hover:text-primary cursor-default",o),"data-cy":"video-title","data-index":s,children:i}),N=({layout:e,orientation:t,modal:a=!1,description:o})=>(0,r.jsx)("span",{className:y({layout:e,modal:a,orientation:t}).description(),"data-cy":"video-description",children:o}),j=({layout:e,orientation:t,modal:a=!1,date:o,hidden:i=!1})=>i?null:(0,r.jsx)("span",{className:y({layout:e,modal:a,orientation:t}).date(),"data-cy":"video-date",children:o})},77635:(e,t,a)=>{"use strict";a.d(t,{LegacyVideoJs8Player:()=>h});var r=a(95155),o=a(25423),i=a(73321),n=a(65596),l=a(12115),s=a(90881);a(23028),a(49801),a(91697),a(84206),a(64610);var c=a(6480),d=a(38187),u=a(6803),p=a(55507);function f(e){e.play()?.catch(()=>{})}function m(e,t){if(!t)return;let a=e.el();if(!a)return;let r=a.querySelector(".vjs-subs-caps-button");r&&(r.classList.remove("vjs-hidden"),r.removeAttribute("hidden"),r.setAttribute("aria-hidden","false"))}function g(e){let t=e.el()?.querySelector(".ima-ad-container");t&&(t.setAttribute("aria-hidden","true"),t.style.pointerEvents="",t.style.zIndex="")}let h=({adTagUrl:e,autoPlay:t,autoplay:a,className:h,enableAds:y=!1,isPlaying:w,onEnd:v,onPause:b,onPlay:x,poster:A,src:N,subtitlesUrl:j,tags:C,topics:S,videoId:I})=>{let E=t??a??!0,L=(0,i.usePathname)(),{pageAdConfig:k}=(0,u.W8)(),R=(0,d.N)(L,k,void 0===C&&void 0===S?void 0:{tags:C,topics:S}),P=e??R,_=(0,l.useRef)(null),T=(0,l.useRef)(null),F=(0,l.useRef)(!1),$=(0,l.useRef)(null),z=(0,l.useRef)(null),[B,D]=(0,l.useState)(!1),O=(0,l.useMemo)(()=>`legacy-videojs8-player-${I}`,[I]),M=(0,l.useRef)({onEnd:v,onPause:b,onPlay:x});(0,l.useEffect)(()=>{M.current={onEnd:v,onPause:b,onPlay:x}},[v,b,x]);let U=(0,l.useRef)({src:N,subtitlesUrl:j});U.current={src:N,subtitlesUrl:j};let K=(0,l.useCallback)((e,t)=>{let a,r=_.current;if(!r)return;T.current&&!T.current.isDisposed()&&T.current.dispose();let{src:o,subtitlesUrl:i}=U.current,n=((a=document.createElement("video")).id=O,a.className="video-js vjs-default-skin vjs-16-9 legacy-videojs8-player",a.playsInline=!0,a);r.replaceChildren(n);let l=(0,s.default)(n,{autoplay:e,controls:!0,experimentalSvgIcons:!0,muted:t,playsinline:!0,poster:A,preload:"auto",responsive:!0,sources:[{src:o,type:"application/x-mpegURL"}],tracks:function(e){if(e)return[{default:!1,kind:"captions",label:"English",language:"en",src:e,srclang:"en"}]}(i)});if(T.current=l,l.ready(()=>{m(l,i)}),$.current=o,z.current=i??null,y&&P&&window.google?.ima){let a=/^https?:\/\//i.test(P)?P:`https://${P.replace(/^\/+/,"")}`;l.ima({adsRequest:{adWillAutoplay:e,adWillPlayMuted:t,continuousPlayback:!1},adTagUrl:a,autoPlayAdBreaks:!1,contribAdsSettings:{prerollTimeout:8e3,timeout:8e3},disableCustomPlaybackForIOS10Plus:!0,id:O,vastLoadTimeout:8e3,vpaidMode:window.google.ima.ImaSdkSettings.VpaidMode.INSECURE}),l.on("readyforpreroll",()=>{l.ima.playAdBreak()}),l.on("adstart",()=>{let e;(e=l.el()?.querySelector(".ima-ad-container"))&&(e.classList.remove("hide-ad-container"),e.removeAttribute("aria-hidden"),e.style.pointerEvents="auto",e.style.zIndex="20")}),l.on("adend",()=>{g(l),window.setTimeout(()=>{T.current===l&&!l.isDisposed()&&l.paused()&&f(l)},250)}),l.on("adserror",()=>{g(l)})}l.on("ended",()=>{M.current.onEnd?.()}),l.on("pause",()=>{M.current.onPause?.()}),l.on("play",()=>{M.current.onPlay?.()}),e&&f(l)},[y,O,A,P]);return(0,l.useEffect)(()=>{if(!_.current||y&&!B)return;let e=!1;return(async()=>{if(!E){F.current=!0,K(!1,!1);return}try{let t=await o.A.video({muted:!1,timeout:5e3});if(e)return;if(t.result){F.current=!0,K(!0,!1);return}let a=await o.A.video({muted:!0,timeout:5e3});if(e)return;F.current=!0,K(a.result,!0)}catch{e||(F.current=!0,K(!1,!1))}})(),()=>{e=!0,T.current&&!T.current.isDisposed()&&T.current.dispose(),T.current=null,F.current=!1,$.current=null,z.current=null}},[y,B,K,E]),(0,l.useEffect)(()=>{if(!F.current)return;let e=T.current;if(!e||e.isDisposed())return;let t=$.current!==N,a=z.current!==(j??null);(t||a)&&(t&&(e.src({src:N,type:"application/x-mpegURL"}),E&&f(e)),(t||a)&&(!function(e,t){let a=e.remoteTextTracks(),r=[];for(let e=0;e<a.length;e+=1){let t=a[e];t&&r.push(t)}r.forEach(t=>{e.removeRemoteTextTrack(t)}),t&&e.addRemoteTextTrack({default:!1,kind:"captions",label:"English",language:"en",src:t,srclang:"en"}
1,!1)}(e,j),m(e,j)),$.current=N,z.current=j??null)},[E,N,j]),(0,l.useEffect)(()=>{if("boolean"!=typeof w)return;let e=T.current;if(!(!e||e.isDisposed())){if(w)return void f(e);e.pause()}},[w]),(0,r.jsxs)(r.Fragment,{children:[y&&(0,r.jsx)(n.default,{id:"legacy-videojs8-ima-sdk",onError:()=>{D(!0)},onReady:()=>{D(!0)},src:"https://imasdk.googleapis.com/js/sdkloader/ima3.js",strategy:"afterInteractive"}),(0,r.jsxs)("div",{className:(0,p.cn)(A&&"relative",h),children:[A&&(0,r.jsx)(c.Image,{alt:"","aria-hidden":!0,className:"aspect-video w-full object-cover",disableLoadTransition:!0,height:720,priority:!0,src:A,unoptimized:!0,width:1280}),(0,r.jsx)("div",{className:(0,p.cn)("w-full",A&&"absolute inset-0"),ref:_})]})]})}},80542:()=>{},81550:(e,t,a)=>{"use strict";a.d(t,{VideoHero:()=>c});var r=a(95155),o=a(12115),i=a(67214),n=a(32767),l=a(18876),s=a(35906);let c=({video:e,adTags:t,paywallGated:a=!1})=>{let c=(0,s.m)(a);return(0,l.O)("video-player-hero"),(0,o.useEffect)(()=>{if(c)return;let e=()=>{let e=window.voltax?.getAllPlayersOnPage();if(!e||0===e.length)return;let t=e[0],a=!1;t.on("videoStart",()=>{let e,t,r;e=document.querySelector('[class*="video-player-hero"]'),t=e?.querySelector("voltax-player"),(r=t?.shadowRoot?.querySelector("video"))&&!a&&
1(r.addEventListener("timeupdate",()=>{if(r.duration-r.currentTime<=.7){r.currentTime=0;let e=r.play();e&&"function"==typeof e.catch&&e.catch(()=>{})}}),a=!0);let o=document.querySelector('[class*="video-player-hero"]'),i=o?.querySelector("voltax-player")?.shadowRoot,n=i?.querySelector(".voltax-mp-play-button");n?.click(),n?.click()})};return window.voltax?e():window.addEventListener("voltaxPlayerLoaded",e),()=>{window.removeEventListener("voltaxPlayerLoaded",e)}},[c]),(0,r.jsxs)(i.zR,{dataCy:"video-hero",layout:"hero",orientation:"vertical",children:[c?(0,r.jsx)(n.j,{duration:e.duration??void 0,interactive:!1,layout:"hero",orientation:"vertical",src:e.thumbnail}):(0,r.jsx)(i.L9,{adTags:t,dataCy:"video-hero-player",layout:"hero",orientation:"vertical",target:"video-player-hero",videoId:e.id}),e.showVideoDetails&&(0,r.jsxs)(i.b$,{layout:"hero",orientation:"vertical",children:[(0,r.jsx)(i.Y6,{layout:"hero",orientation:"vertical",title:e.title}),(0,r.jsx)(i.yp,{description:e.summary,layout:"hero",orientation:"vertical"})]})]})}},93318:(e,t,a)=>{"use strict";a.d(t,{Y:()=>u});var r=a(95155),o=a(50716),i=a(33210),n=a(12115),l=a(47650),s=a(29217),c=a(55507);let d=(0,s.tv)({base:"absolute right-0 top-full mt-2 w-80 bg-white rounded shadow-lg p-2 z-10 border-t-4",defaultVariants:{variant:"default"},variants:{variant:{default:"border-t-blue-500",error:"border-t-red-500"}}});function u({isOpen:e,onClose:t,title:a,content:s,className:p="",showClose:f=!0,variant:m="default",portal:g=!1,style:h}){let[y,w]=(0,n.useState)(!1);if((0,n.useLayoutEffect)(()=>{w(!0)},[]),!e||g&&!y)return null;let v=(0,r.jsxs)("div",{className:(0,c.cn)(d({variant:m}),p),style:h,children:[a&&(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3 gap-2 h-11",children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-neutral-900","data-cy":"ndr-tooltip-title",children:a}),f&&(0,r.jsx)("button",{"aria-label":"Close disclosure",className:"text-neutral-900 transition-colors p-1 cursor-pointer","data-cy":"ndr-tooltip-close-button",onClick:t,type:"button",children:(0,r.jsx)(i.A,{className:"w-4 h-4"})})]}),(0,r.jsx)("div",{className:"text-sm text-neutral-900 font-normal leading-relaxed [&_a]:underline [&_a]:text-blue-500","data-cy":"ndr-tooltip-content",children:"string"==typeof s?(0,o.Ay)(s):s})]});return g&&y?(0,l.createPortal)(v,document.body):v}},97643:(e,t,a)=>{"use strict";a.d(t,{l:()=>i,u:()=>n});let r="/image/upload/",o=/^[a-z]{1,3}_[^,]+$/;function i(e){return e.includes(r)}function n(e,t){let a=e.split("?")[0]??"",i=a.indexOf(r);if(-1===i)return e;let n=i+r.length,l=a.slice(n),[s="",...c]=l.split("/");if(c.length>0&&s.split(",").every(e=>o.test(e)))return null==t?a:`${a.slice(0,n)}${/(^|,)w_\d+(,|$)/.test(s)?s.replace(/(^|,)w_\d+/,`$1w_${t}`):`${s},w_${t}`}/${c.join("/")}`;let d=null==t?"f_auto,q_auto":`f_auto,q_auto,w_${t}`;return`${a.slice(0,n)}${d}/${l}`}}}]);

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.