"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8084],{21455:function(e,t,a){a.d(t,{o:function(){return s}});var i=a(52322);a(2784);var n=a(19596),r=a(88169),o=a(75824);let s=e=>{let{cardTitle:t,text:a,reactNodeText:n,href:s,testId:u,expandActionLogger:p,listContent:m}=e,f=(0,o.N)({id:"common_ariaLabels_seeMore",defaultMessage:"See more"}),y=a?(0,i.jsx)(l,{html:a}):n;return(0,i.jsx)(s?d:c,{topPadding:"none",bottomPadding:"none",borderType:"line",children:(0,i.jsx)(r.MetaDataList,{dividers:"none",children:(0,i.jsx)(r.MetaDataListItem,{labelTitle:t,labelLink:s,labelLinkAriaLabel:f,listContent:m,display:"stacked","data-testid":u,overflowTextProps:{height:"short",bgContext:"listCard",onRemoveOverlay:p,clickAriaLabel:f},children:y})})})},l=(0,n.ZP)(r.HTMLContent).withConfig({componentId:"sc-b1c29801-0"})(["display:block;"]);t.Z=s;let d=(0,n.ZP)(r.ListCard).withConfig({componentId:"sc-b1c29801-1"})(["padding-right:0;"]),c=(0,n.ZP)(r.ListCard).withConfig({componentId:"sc-b1c29801-2"})(["padding-right:1rem;"])},39257:function(e,t,a){a.d(t,{Ol:function(){return s},oW:function(){return o}});var i=a(52322),n=a(2784);let r=n.createContext({modalContributionConfigs:{}}),o=e=>{let{children:t,value:a}=e;return(0,i.jsx)(r.Provider,{value:a,children:t})},s=()=>n.useContext(r)},67516:function(e,t,a){a.d(t,{c:function(){return T}});var i=a(52322),n=a(14865),r=a(2784),o=a(88169),s=a(84314),l=a(11438),d=a(14438),c=a(30634),u=a(1833),p=a(39366),m=a(53665),f=a(19596),y=a(23906);let g={id:"common_ariaLabel_closePrompt",defaultMessage:"Close Prompt"},h={id:"common_contributionModal_iframeTitle",defaultMessage:"Contribution form"},b=e=>{let{contributionLink:t,isOpen:a,onClose:n}=e,s=(0,y.wL)("ContributionModal"),l=(0,m.Z)(),[d,c]=(0,r.useState)(a&&!!t),u=r.useRef(),f=()=>{u.current?.contentWindow?.location.href===(0,p.Pj)()&&n()};return r.useEffect(()=>{if(d){if(u.current)return u.current.addEventListener("load",f),()=>{u.current?.removeEventListener("load",f)};s.error("Failed to create or attach contribution iFrame.")}},[d]),r.useEffect(()=>{c(a&&!!t)},[a,t]),(0,i.jsx)(i.Fragment,{children:!!d&&(0,i.jsx)(o.Drawer,{isOpen:a,onCloseClicked:()=>n(),side:"right",closePromptLabel:l.formatMessage(g),children:(0,i.jsx)(v,{"data-testid":"contribution-modal-iframe",ref:u,src:t?.url,title:l.formatMessage(h)})})})},v=f.zo.iframe.withConfig({componentId:"sc-4777df6f-0"})(["height:calc(100vh - 6rem);width:100%;position:absolute;overflow-y:scroll;"]);var P=a(39257);function T(e,t){let a=(0,o.useBreakpointsAsConfig)(),{modalContributionConfigs:m,addContributionModals:f}=(0,P.Ol)(),y=(0,s.n)(),{makeRefMarker:g}=(0,l.Lz)(),h=(0,d.EO)(),[v,T]=(0,r.useState)(!1),[w,_]=(0,r.useState)(void 0);if(m)return{shouldShowCta:e=>!!I(m,e),onOpen:(i,r)=>{if(r.preventDefault(),r.stopPropagation(),!(0,n.getIsBrowser)()||!a)return;let o=I(m,i);if(o){if(t&&(o?.isInIframeLink&&(o.isInIframeLink.url=(0,u.f_)(o.isInIframeLink.url,"category",t.toLowerCase(),!0)),o?.notInIframeLink&&(o.notInIframeLink.url=(0,u.f_)(o.notInIframeLink.url,"category",t.toLowerCase(),!0))),y){if(a.l||a.xl)h({pageAction:p.zq.open,refMarkerSuffix:e}),_(o?.isInIframeLink),T(!0);else{let e=o?.notInIframeLink?.url;window.open(e,"_self")}}else(0,c.rf)(g(e))}},createContributionModal:()=>(0,i.jsx)(b,{contributionLink:w,isOpen:v,onClose:()=>{h({pageAction:p.zq.close,refMarkerSuffix:e}),T(!1)}}),updateContextFromPaginationResults:e=>{e&&f?.(e)}}}let I=(e,t)=>{let a;let{operation:i,imdbConst:n,dataType:r}=t,o=e?.[n]?.[r];if(o){switch(i){case p.OX.ADD:a=o.addUrls;break;case p.OX.EDIT:a=o.editUrls;break;default:a=o.reportUrls}return a}}},64370:function(e,t,a){function i(e,t,a){return t&&a&&a.inIframeAddLink&&a.notInIframeAddLink?{[t]:{[e]:{addUrls:{isInIframeLink:a.inIframeAddLink,notInIframeLink:a.notInIframeAddLink}}}}:{}}function n(e,t,a){let i,n;return t&&a&&(a.inIframeEditLink&&a.notInIframeEditLink&&(i={isInIframeLink:a.inIframeEditLink,notInIframeLink:a.notInIframeEditLink}),a.inIframeReportLink&&a.notInIframeReportLink&&(n={isInIframeLink:a.inIframeReportLink,notInIframeLink:a.notInIframeReportLink}),i&&n)?{[t]:{[e]:{editUrls:i,reportUrls:n}}}:{}}a.d(t,{D:function(){return i},V:function(){return n}})},5515:function(e,t,a){a.d(t,{m:function(){return l}});var i=a(52322),n=a(2784),r=a(27722),o=a(88169),s=a(99513);let l=e=>{let{primaryText:t,primaryTextSuffix:a,secondaryText:l,metadata:d}=e,{palette:{baseColor:c}}=(0,n.useContext)(r.Theme);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.go,{text:t,suffix:a,className:c}),!!l&&(0,i.jsx)(s.MQ,{className:c,children:l}),!!d&&d.length>0&&(0,i.jsx)(s.aK,{showDividers:!0,className:c,children:d.map((e,t)=>(0,i.jsxs)(o.InlineListItem,{children:[!!e.link&&(0,i.jsx)(o.TextLink,{href:e.link,inheritColor:!0,text:e.text}),!e.link&&(0,i.jsx)(i.Fragment,{children:e.text})]},`${e}-${t}`))})]})}},99513:function(e,t,a){a.d(t,{MQ:function(){return m},_2:function(){return d},aK:function(){return f},go:function(){return u}});var i=a(52322);a(2784);var n=a(19596),r=a(88169),o=a(86704);let s="hero__primary-text",l="hero__primary-text-suffix",d=(e,t)=>{let a=3;return e>=t&&(a=2),{fontSize:`${a}rem`,lineHeight:`${a+.125}rem`}},c=(e,t)=>{let{fontSize:a,lineHeight:i}=d(e,t);return` font-size: ${a}; line-height: ${i}; `},u=e=>{let{text:t,suffix:a,className:n}=e;return(0,i.jsxs)(p,{textLength:t.length,"data-testid":"hero__pageTitle",className:n,children:[(0,i.jsx)("span",{className:s,"data-testid":s,children:t}),!!a&&(0,i.jsx)("span",{className:l,"data-testid":l,children:a})]})},p=n.ZP.h1.withConfig({componentId:"sc-cb6a22b2-0"})(["margin-bottom:0;word-break:break-word;"," "," ","{","}","{"," font-weight:400;line-height:2rem;}.","{margin-right:",";}.","{display:inline-block;font-size:0.5em;vertical-align:middle;}&.base .","{","}&.baseAlt .","{","}"],(0,o.setTypographyType)("headline3"),e=>c(e.textLength,34),o.mediaQueries.breakpoints.below.xl,e=>c(e.textLength,23),o.mediaQueries.breakpoints.below.m,(0,o.setTypographyType)("headline4"),s,o.spacing.xs,l,l,(0,o.setPropertyToColorVar)("color","ipt-on-base-textSecondary-color"),l,(0,o.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color")),m=n.ZP.div.withConfig({componentId:"sc-cb6a22b2-1"})([""," margin-top:",";&.base{","}&.baseAlt{","}"],(0,o.setTypographyType)("bodySmall"),o.spacing.xxs,(0,o.setPropertyToColorVar)("color","ipt-on-base-textSecondary-color"),(0,o.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color")),f=(0,n.ZP)(r.InlineList).withConfig({componentId:"sc-cb6a22b2-2"})([""," "," margin-bottom:",";&.base{","}&.baseAlt{","}"],(0,o.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"),(0,o.setTypographyType)("bodySmall"),o.spacing.xs,(0,o.setPropertyToColorVar)("color","ipt-on-base-textSecondary-color"),(0,o.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"))},63083:function(e,t,a){a.d(t,{rC:function(){return f}});var i=a(52322);a(2784);var n=a(88169),r=a(75824);let o={id:"common_details_officialSites_defaultSiteLabel",defaultMessage:"Official Site"},s={id:"common_details_officialSites",defaultMessage:"{siteCount, plural, one {Official site} other {Official sites}}"},l={id:"common_ariaLabels_seeMore",defaultMessage:"See more"};var d=a(23906),c=a(11438),u=a(14438),p=a(1833);let m=()=>{let e=(0,d.wL)("OfficialSites"),t=(0,u.z7)();return async a=>{let{externalUrl:i,id:n,ev:r}=a;r.preventDefault(),r.stopPropagation();try{let e=await (0,p.zG)(i);t({refMarkerSuffix:c.Cd.EXTERNAL,pageAction:e,id:n})}catch(t){e.error("failed to resolve domainBasedPageAction for openExternalLink",t)}finally{window.open(i,"_blank")}}},f=e=>{let{id:t,seeMoreLink:a,officialSites:d}=e,c=(0,r.N)(s,{siteCount:d.externalLinks.length}),u=(0,r.N)(o),p=(0,r.N)(l),f=m();if(0===d.externalLinks.length)return null;let y=d.externalLinks.map(e=>{let a=e.region?` (${e.region})`:"";return{text:e.label&&`${e.label}${a}`||u,href:e.url,linkType:"external",onClick:a=>f({externalUrl:e.url,id:t,ev:a})}});return(0,i.jsx)(n.MetaDataListItem,{labelTitle:c,listContent:y,labelLink:d.total>2?a:void 0,labelLinkAriaLabel:p,"data-testid":"details-officialsites"})}},50883:function(e,t,a){a.d(t,{GQ:function(){return c},Hi:function(){return r},OJ:function(){return d},Qy:function(){return s},a9:function(){return o},g6:function(){return n},hL:function(){return i},z7:function(){return l}});let i={PARENT:"awards",AWARD_INFORMATION:"award_information",TOP_RATED_INFORMATION:"award_top-rated"},n=250,r="top-rated-link",o={ev0000003:"OSCARS",ev0000292:"GOLDEN_GLOBES",ev0000223:"EMMYS",ev0000123:"BAFTAS"},s={OSCARS:{WON:{id:"feature_awards_oscars_won",defaultMessage:"Won {count, plural, one {{count} Oscar} other {{count} Oscars}}"},NOMINATED:{id:"feature_awards_oscars_nominated",defaultMessage:"Nominated for {count, plural, one {{count} Oscar} other {{count} Oscars}}"}},EMMYS:{WON:{id:"feature_awards_emmys_won",defaultMessage:"Won {count, plural, one {{count} Primetime Emmy} other {{count} Primetime Emmys}}"},NOMINATED:{id:"feature_awards_emmys_nominated",defaultMessage:"Nominated for {count, plural, one {{count} Primetime Emmy} other {{count} Primetime Emmys}}"}},GOLDEN_GLOBES:{WON:{id:"feature_awards_globes_won",defaultMessage:"Won {count, plural, one {{count} Golden Globe} other {{count} Golden Globes}}"},NOMINATED:{id:"feature_awards_globes_nominated",defaultMessage:"Nominated for {count, plural, one {{count} Golden Globe} other {{count} Golden Globes}}"}},BAFTAS:{WON:{id:"feature_awards_baftas_won",defaultMessage:"Won {count, plural, one {{count} BAFTA Film Award} other {{count} BAFTA Film Awards}}"},NOMINATED:{id:"feature_awards_baftas_nominated",defaultMessage:"Nominated for {count, plural, one {{count} BAFTA Film Award} other {{count} BAFTA Film Awards}}"}}},l={AWARDS:{id:"feature_awards_title",defaultMessage:"Awards"}},d={DEFAULT_TV:{id:"feature_awards_defaultTV",defaultMessage:"See the top 250 TV shows as rated by IMDb users"},DEFAULT_MOVIE:{id:"feature_awards_defaultMovie",defaultMessage:"See the top 250 movies as rated by IMDb users"},WINS_NOMS:{id:"feature_awards_winsAndNominations",defaultMessage:"{numOfWins} wins & {numOfNoms} nominations"},WINS_NOMS_TOTAL:{id:"feature_awards_winsAndNominationsTotal",defaultMessage:"{numOfWins} wins & {numOfNoms} nominations total"},WINS:{id:"feature_awards_onlyWins",defaultMessage:"{numOfWins} wins"},WINS_TOTAL:{id:"feature_awards_onlyWinsTotal",defaultMessage:"{numOfWins} wins total"},NOMS:{id:"feature_awards_onlyNominations",defaultMessage:"{numOfNoms} nominations"},NOMS_TOTAL:{id:"feature_awards_onlyNominationsTotal",defaultMessage:"{numOfNoms} nominations total"}},c={TV:{id:"feature_awards_topRatedTV",defaultMessage:"Top rated TV #{rating}"},MOVIE:{id:"feature_awards_topRatedMovie",defaultMessage:"Top rated movie #{rating}"}}},45723:function(e,t,a){a.d(t,{O:function(){return o},p:function(){return r}});var i=a(30382),n=a.n(i);let r=n()` fragment NameAwardsSummary on Name { id wins: awardNominations(first: 0, filter: { wins: WINS_ONLY }) { total } nominationsExcludeWins: awardNominations( first: 0 filter: { wins: EXCLUDE_WINS } ) { total } prestigiousAwardSummary { nominations wins award { text id event { id } } } } `,o=n()` fragment TitleAwardsSummary on Title { id wins: awardNominations(first: 0, filter: { wins: WINS_ONLY }) { total } nominationsExcludeWins: awardNominations( first: 0 filter: { wins: EXCLUDE_WINS } ) { total } prestigiousAwardSummary { nominations wins award { text id event { id } } } ratingsSummary { topRanking { id text { value } rank } } } `},65952:function(e,t,a){a.d(t,{E:function(){return f},y:function(){return m}});var i=a(52322),n=a(2784),r=a(19596),o=a(88169),s=a(82925),l=a(86704),d=a(75824),c=a(55634),u=a(59002),p=a(50883);let m=e=>{let{labelText:t,labelContent:a,labelHref:n}=e,r=(0,d.N)({id:"feature_awards_seeMore",defaultMessage:"See More Awards and Nominations"});return(0,i.jsx)(o.MetaDataListItem,{"data-testid":p.hL.AWARD_INFORMATION,labelLink:n,labelLinkAriaLabel:r,labelTitle:t,listContent:[{text:a}]})},f=e=>{let{preTextLink:t,labelHref:a,labelContent:r,labelText:l}=e,d=n.useContext(s.Theme).palette.baseColor;return(0,i.jsx)(u.wW,{componentId:c.NG.Awards,children:(0,i.jsx)(o.PageSection,{children:(0,i.jsxs)(y,{"data-testid":p.hL.PARENT,className:d,children:[(0,i.jsx)(g,{children:t}),(0,i.jsx)(h,{dividers:"none",children:(0,i.jsx)(m,{labelHref:a,labelContent:r,labelText:l})})]})})})},y=r.ZP.div.withConfig({componentId:"sc-e89034dd-0"})(["display:flex;flex-direction:column;border:1px solid transparent;"," "," "," "," ","{flex-direction:row;}&.base{"," ","}&.baseAlt{"," ","}"],(0,l.setPropertyToShapeVar)("border-radius","ipt-cornerRadius"),(0,l.setPropertyToColorVar)("border-color","ipt-accent1-color"),(0,l.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,l.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),l.mediaQueries.breakpoints.above.m,(0,l.setPropertyToColorVar)("background","ipt-base-shade3-bg"),(0,l.setPropertyToColorVar)("color","ipt-on-base-textPrimary-color"),(0,l.setPropertyToColorVar)("background","ipt-baseAlt-shade3-bg"),(0,l.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color")),g=r.ZP.div.withConfig({componentId:"sc-e89034dd-1"})(["display:flex;min-height:",";min-width:",";"," "," ",";align-items:center;flex-shrink:0;.","{padding:"," "," "," ",";position:relative;z-index:1;}","{position:relative;margin-right:",";&::after{content:'';background:inherit;height:100%;left:calc(100% - 0.85rem);position:absolute;width:1.7rem;transform:skewX(-20deg);}}"],l.spacing.l,l.spacing.l,(0,l.setPropertyToColorVar)("background","ipt-accent1-bg"),(0,l.setPropertyToColorVar)("color","ipt-on-accent1-color"),(0,l.setTypographyType)("subtitle"),p.Hi,l.spacing.s,l.spacing.xs,l.spacing.s,l.spacing.s,l.mediaQueries.breakpoints.above.m,l.spacing.s),h=(0,r.ZP)(o.MetaDataList).withConfig({componentId:"sc-e89034dd-2"})(["flex-grow:1;padding-left:",";"],l.spacing.m)},21143:function(e,t,a){a.d(t,{$:function(){return l},E:function(){return s}});var i=a(53665),n=a(66724),r=a(11438),o=a(50883);let s=e=>{let{nameAwardsLinkBuilder:t}=(0,n.WOb)(),a=e?.wins?.total??0,i=e?.nominationsExcludeWins?.total??0,s=e?.prestigiousAwardSummary,l=s?.award.event.id,c=l?o.a9[l]:void 0,u=s?.wins;return d({event:c,totalNominations:i,totalWins:a,eventNominations:s?.nominations,eventWins:u,awardsHref:t({nconst:e?.id||"",refSuffix:r.Cd.AWARDS})})},l=e=>{let{titleAwardsLinkBuilder:t}=(0,n.WOb)(),a=e?.wins?.total??0,i=e?.nominationsExcludeWins?.total??0,s=e?.prestigiousAwardSummary,l=s?.award.event.id,c=l?o.a9[l]:void 0,u=s?.wins;return d({event:c,totalNominations:i,totalWins:a,eventNominations:s?.nominations,eventWins:u,awardsHref:t({tconst:e?.id||"",refSuffix:r.Cd.AWARDS})})},d=e=>{let{event:t,eventWins:a,eventNominations:n,totalWins:r,totalNominations:s,awardsHref:l}=e,d=(0,i.Z)(),c=d.formatMessage(o.z7.AWARDS);if(t&&(a||n)){let e=(a||0)>0?"WON":"NOMINATED";c=d.formatMessage(o.Qy[t][e],{count:"WON"===e?a:n})}let u="";return r>0&&s>0?u=d.formatMessage(o.OJ.WINS_NOMS_TOTAL,{numOfWins:r,numOfNoms:s}):r>0?u=d.formatMessage(o.OJ.WINS_TOTAL,{numOfWins:r}):s>0&&(u=d.formatMessage(o.OJ.NOMS_TOTAL,{numOfNoms:s})),{labelText:c,labelContent:u,labelHref:l}}},76639:function(e,t,a){var i=a(52322),n=a(2784),r=a(53665),o=a(88169),s=a(61229);t.Z=e=>{let{className:t,label:a,query:l,queryVariables:d,queryContext:c,onDataReceived:u,onError:p,onFetching:m,onTrigger:f,pathToPageInfo:y,autoLoadAll:g=!1}=e,h=(0,r.Z)(),[b,v]=(0,n.useState)(g),[P,T]=(0,n.useState)(g);return(0,s.b)({query:l,queryVariables:d,queryContext:c,onDataReceived:(e,t)=>{u(e,t),t&&(v(!1),T(!1))},onError:(e,t)=>{v(!1),T(!1),p&&p(e,t)},onFetching:m,pathToPageInfo:y,triggerRequest:P}),(0,i.jsx)(o.SeeMoreButton,{className:t,isLoading:b,onClick:e=>{v(!0),T(!0),f&&f(e)},ariaLabel:b?h.formatMessage({id:"common_ariaLabel_loading",defaultMessage:"Loading"}):void 0,text:a??h.formatMessage({id:"common_buttons_see_all",defaultMessage:"See all"})})}},52028:function(e,t,a){a.d(t,{W:function(){return s}});var i=a(39366),n=a(67516),r=a(75824),o=a(11438);let s=e=>{let t=(0,r.N)({id:"common_photos_addLabel",defaultMessage:"Add photo"}),a=(0,n.c)(o.Cd.EMPTY),s={operation:i.OX.ADD,dataType:i.nQ.IMAGE,imdbConst:e},l=a?.shouldShowCta(s);return{label:t,action:s,shouldShowAddPhotoCTA:l||!1,modalContributionProps:a}}},66519:function(e,t,a){a.d(t,{M:function(){return n}});var i=a(86704);let n={breakpoints:{below:{m:`@media screen and (max-width: ${i.breakpoints.breakpointsNumbers.m-1}px)`,l:"@media screen and (max-width: 975px)"},above:{l:"@media screen and (min-width: 976px)"},only:{m:`@media screen and (min-width: ${i.breakpoints.breakpointsNumbers.m}px) and (max-width: 975px)`,l:`@media screen and (min-width: 976px) and (max-width: ${i.breakpoints.breakpointsNumbers.xl-1}px)`}}}},64573:function(e,t,a){a.d(t,{e:function(){return g},Z:function(){return T}});var i=a(52322),n=a(72779),r=a.n(n),o=a(2784),s=a(53665),l=a(19596),d=a(88169),c=a(82925),u=a(86704),p=a(91359),m=a(55634),f=a(59002);let y={UPSELL:"pro-upsell",LABEL:"pro-upsell__label",LOGO:"pro-upsell__logo",LINK:"pro-upsell__link"},g=e=>{let{className:t,message:a,href:n,hideLogo:l,preIcon:u,labelMessage:g,labelHref:T,"data-testid":I}=e,w=(0,s.Z)(),_=o.useContext(c.Theme),S=r()(y.UPSELL,t);return(0,i.jsx)(f.wW,{componentId:m.NG.ProUpsellLink,children:(0,i.jsxs)(h,{className:S,id:m.NG.ProUpsellLink,"data-testid":I,children:[g&&T&&(0,i.jsx)(P,{className:y.LABEL,href:T,text:g,inheritColor:!0}),!l&&(0,i.jsx)(b,{"aria-label":w.formatMessage(p.F.GO_TO,{target:"IMDbPro"}),href:T||n,target:"_blank",children:(0,i.jsx)(d.Logo,{className:r()(y.LOGO,`${y.LOGO}--${_.palette.name}`),variation:"imdbpro-color",width:54,height:18})}),(0,i.jsx)(v,{className:y.LINK,preIcon:u,href:n,text:a,type:"external"})]})})},h=l.ZP.div.withConfig({componentId:"sc-1feb23a9-0"})(["display:flex;"]),b=l.ZP.a.withConfig({componentId:"sc-1feb23a9-1"})(["margin-right:0.5rem;.pro-upsell__logo--dark{",";}.pro-upsell__logo--light{",";}"],(0,u.setPropertyToColorVar)("color","ipt-on-baseAlt-color"),(0,u.setPropertyToColorVar)("color","ipt-on-base-color")),v=(0,l.ZP)(d.TextLink).withConfig({componentId:"sc-1feb23a9-2"})(["",""],(0,u.setTypographyType)("subtitle")),P=(0,l.ZP)(d.TextLink).withConfig({componentId:"sc-1feb23a9-3"})([""," margin-right:0.5rem;&:hover{opacity:0.7;text-decoration:none;}"],(0,u.setTypographyType)("subtitle"));var T=g},9216:function(e,t,a){var i=a(2784),n=a(53665),r=a(5035);t.ZP=e=>{let{seconds:t,format:a,unitDisplay:o,round:s=!0}=e,l=(0,n.Z)(),d=a;a&&"{hours} {minutes} {seconds}"!==a||(d=l.messages["formatted-duration-longFormatting"]||"{hours} {minutes} {seconds}"),"{minutes}:{seconds}"===a&&(d=l.messages["formatted-duration-timerFormatting"]||"{hours}:{minutes}:{seconds}");let c=new r.Z(l.locale,{format:d,formatUnits:{[r.Z.units.DAY]:l.messages["formatted-duration-daysUnit"]||"{value, plural, one {day} other {days}}",[r.Z.units.HOUR]:l.messages["formatted-duration-hoursUnit"]||"{value, plural, one {hour} other {hours}}",[r.Z.units.MINUTE]:l.messages["formatted-duration-minutesUnit"]||"{value, plural, one {minute} other {minutes}}",[r.Z.units.SECOND]:l.messages["formatted-duration-secondsUnit"]||"{value, plural, one {second} other {seconds}}"},formatDuration:l.messages["formatted-duration-duration"]||"{value} {unit}",round:s,style:o}).formatToParts(t);return i.createElement(i.Fragment,{},c.map(e=>"literal"===e.type||"unit"===e.type?e.value:i.createElement(i.Fragment,{key:e.type},e.value)))}},61229:function(e,t,a){a.d(t,{b:function(){return s}});var i=a(72579),n=a.n(i),r=a(2784),o=a(4363);let s=e=>{let{query:t,queryContext:a,queryVariables:i,maxPagesToFetch:s,onDataReceived:l,onError:d,onFetching:c,pathToPageInfo:u,triggerRequest:p}=e,[m,f]=(0,r.useState)(!1),[y,g]=(0,r.useState)(i),[h,b]=(0,r.useState)(0),[{data:v,error:P,fetching:T}]=(0,o.E)({query:t,variables:y,context:a,pause:!p&&!m});(0,r.useEffect)(()=>{g(i)},[i.after]),(0,r.useEffect)(()=>{if(T)c&&c();else if(v){let{hasNextPage:e,endCursor:t}=n()(v,u)??{},a=h+1,i="number"==typeof s&&a===s;e&&!i?(g({...y,after:t}),f(!0)):f(!1),b(a),l(v,!e)}else P&&(d&&d(P,y.after),f(!1))},[v,P,T])}},30124:function(e,t,a){var i=a(52322);a(2784);var n=a(10105),r=a(54588),o=a(14149);t.Z=function(e){let{groupConfig:t,pageQueryData:a,hideErrors:s,hasIntersected:l=!0}=e,{data:d,config:c,error:u,fetching:p=!1,retry:m,shouldRenderError:f=!1,allErrorsRetryable:y=!0}=a,g=!!(m&&y);return p||!l?(0,i.jsx)(n.ZP,{"data-testid":"entity-group-loader",height:"feature"}):s&&f?null:(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)(o.ZP,{error:u,name:c?.queryName,canRetry:g,onClickRetry:()=>g&&m()}),!f&&Object.entries(t).map(e=>{let[t,a]=e;if(a.shouldRender&&d&&!1===a.shouldRender(d))return null;let n=a.component;return(0,i.jsx)(r.Z,{name:t,parent:"PageQueryEntity",children:(0,i.jsx)(n,{data:d,fetching:p,error:u})},t)})]})}},32964:function(e,t,a){a.d(t,{W:function(){return i}});function i(e,t){let a=e.thumbnail;if(a&&a.url&&a.height&&a.width)return{url:a.url,maxHeight:a.height,maxWidth:a.width,caption:e.description?.value||t}}},87523:function(e,t,a){a.d(t,{Bm:function(){return d},HF:function(){return c},Wg:function(){return o},d:function(){return l}});var i=a(30382),n=a.n(i),r=a(36362);let o=n()` ${r.p6} ${r.V4} fragment VideoSlateRootVideo on Video { ...SharedVideoRoot ...SharedVideoPlaybackUrls contentType { id displayName { value } } } `,s=n()` ${o} ${r.sq} fragment VideoSlateRelatedVideo on Video { ...VideoSlateRootVideo ...SharedVideoWebAd primaryTitle { titleType { canHaveEpisodes } } } `,l=n()` ${o} ${r.K8} fragment VideoSlateInitialVideo on Video { ...VideoSlateRootVideo ...SharedVideoPreviewUrls } `,d=n()` ${s} query SLATE_RELATED_VIDEOS( $viconsts: [ID!]! $userAgent: String! $pageType: String $subPageType: String $viewportSize: ViewPortSize $autoStartVideo: Boolean ) { videos(ids: $viconsts) { ...VideoSlateRelatedVideo } } `,c=n()` ${r.sq} query SLATE_RELATED_VIDEO_IDS( $viconst: ID! $userAgent: String! $pageType: String $subPageType: String $viewportSize: ViewPortSize $autoStartVideo: Boolean ) { video(id: $viconst) { ...SharedVideoWebAd relatedVideos(first: 30) { # Pagination is not currently supported edges { node { id } } } } } `},8862:function(e,t,a){a.d(t,{$0:function(){return eq}});var i,n,r,o,s,l,d,c,u=a(52322),p=a(98537),m=a.n(p),f=a(2784),y=a(53665),g=a(19596),h=a(88169),b=a(25436),v=a(4027),P=a(27783),T=a(49996),I=a(11438),w=a(73202),_=a(76512),S=a(47290),x=a(81073),A=a(30626);let E=e=>t=>{e(t[0].isIntersecting)},N=e=>{let{playerInstance:t,playerRef:a}=e,[i,n]=(0,f.useState)(!1);(0,f.useEffect)(()=>{if(!t)return},[]),(0,f.useEffect)(()=>{if(!a?.current||!window.IntersectionObserver)return;let e=new IntersectionObserver(E(n),{threshold:.5});return e.observe(a.current),()=>{e.disconnect()}},[a]),(0,f.useEffect)(()=>{if(!a?.current)return;let e=(0,A.y)({isPlayerDismissed:!!t?.getIsPlayerDismissed(),hasUserInteracted:!!t?.getHasUserInteracted(),isMainPlayerInView:i,mainPlayerTopPosition:a.current.getBoundingClientRect().top});t?.setStickyPlayerActiveState(e)},[i])};var C=a(86958),k=a(85778);(i=s||(s={})).AUTO_PAUSE="vp-auto-pause",i.AUTO_PLAY="vp-auto-play";let L=(e,t,a,i)=>{i&&!e.hasPlayed()?e.play({pageAction:x.fZ.videoStart(t),refMarker:a}):e.hasPlayed()?e.play({pageAction:"vp-auto-play",refMarker:void 0}):e.play({pageAction:x.fZ.autoStart(t),refMarker:a})},O=e=>{let t=e.getLatestPlayerInteractionState();return t?.interactedAction==="pause"&&t?.interactionType==="interaction"},M=e=>{let{playerInstance:t,hasUserInteracted:a,permission:i,refMarker:n,isEnabled:r}=e,{isPreferenceEnabled:o}=(0,k.Oh)(),{pageConst:s}=(0,C.B)().context,[l,d]=(0,f.useState)(!1),[c,u]=(0,f.useState)(!1),[p,m]=(0,f.useState)(!1);(0,f.useEffect)(()=>{t&&(window.onbeforeunload=function(){u(!0),t.stop()})},[t]),(0,f.useEffect)(()=>{t&&l&&r&&!c&&!a&&!o&&(t?.getIsStickyPlayerActive()||t.stop(),m(!0))},[o]),(0,f.useEffect)(()=>{if(t&&r&&!c&&(o&&!p||a)){if(!l){L(t,s,n,a),d(!0);return}i!==w.y.GRANTED||O(t)?t.pause({pageAction:"vp-auto-pause"}):L(t,s,n,a)}},[t,a,r,i,o,p,c])};var V=a(78482),R=a(71033);(n=l||(l={})).READY="READY",n.PLAYING="PLAYING",n.NAVIGATING="NAVIGATING",n.COMPLETE="COMPLETE",n.STOPPED="STOPPED",n.HAS_BEEN_UNMUTED="HAS_BEEN_UNMUTED",n.HAS_NEXT_ITEM="HAS_NEXT_ITEM",n.PERMISSION_UPDATED="PERMISSION_UPDATED";let D=(e,t)=>{switch(t.type){case"READY":return{...e,isPlayerReady:!0};case"PLAYING":return{...e,isPlaying:!0,isPlaybackStopped:!1,isNavigating:!1,isPlaybackComplete:!1,hasPlayOccurred:!0};case"NAVIGATING":return{...e,isNavigating:!0};case"COMPLETE":return{...e,isPlaying:!1,isNavigating:e.hasNextPlaylistItem,isPlaybackComplete:!e.hasNextPlaylistItem};case"STOPPED":return{...e,isPlaying:!1,isPlaybackStopped:!0,isPlaybackComplete:!1};case"HAS_BEEN_UNMUTED":if(!e.hasPlayerBeenUnmuted)return{...e,hasPlayerBeenUnmuted:!0};return e;case"HAS_NEXT_ITEM":return{...e,hasNextPlaylistItem:t.payload};case"PERMISSION_UPDATED":return e.permission!==t.payload?{...e,permission:t.payload}:e}},U=(0,f.forwardRef)(function(e,t){let{video:a,hasNextPlaylistItem:i,hasPreviousPlaylistItem:n,assetName:r,locationRefMarker:o,hasBeenFirstInteracted:s,indicateFirstInteraction:l,handleVideoPlayerOnClick:d,className:c,...p}=e,{makeRefMarker:m}=(0,I.Lz)(),y=(0,f.useRef)(null),g=t||y,[h,b]=(0,f.useReducer)(D,{isPlayerReady:!1,isPlaying:!1,isNavigating:!1,isPlaybackComplete:!1,isPlaybackStopped:!1,hasPlayerBeenUnmuted:!1,hasPlayOccurred:!1,hasNextPlaylistItem:!!i,permission:w.y.PENDING});(0,f.useEffect)(()=>{b({type:"HAS_NEXT_ITEM",payload:!!i})},[i]);let v=!h.isNavigating&&(h.isPlaybackStopped||h.isPlaybackComplete);M({playerInstance:h.isPlayerReady?g.current?.playerInstance??null:null,isEnabled:!v,permission:h.permission,hasUserInteracted:h.hasPlayerBeenUnmuted,refMarker:o}),(0,V.d)(h.isPlayerReady,h.hasPlayOccurred,"vp"),N({playerInstance:g.current?.playerInstance??null,playerRef:g.current?.containerRef});let P=f.useMemo(()=>(!!h.isPlaying||!!h.isNavigating)&&!s,[h,s]);return(0,u.jsx)(j,{videoPlayerId:"inline",className:c,configPresetName:S.$.INLINE_VIDEO_PLAYBACK,ref:g,"data-testid":"inline-video-playback-container",video:a,assetName:r,refMarker:o,videoContainerOnClick:d,enableInlineReactions:!0,...p,onPlaylistItemUpdate:e=>{p.onPlaylistItemUpdate?.(e),b({type:"READY"})},onPlay:e=>{p?.onPlay?.(e),b({type:"PLAYING"})},onAdPlay:e=>{p?.onAdPlay?.(e),b({type:"PLAYING"})},onStop:e=>{p?.onStop?.(e),b({type:"STOPPED"})},onComplete:e=>{p?.onComplete?.(e),b({type:"COMPLETE"})},onMute:e=>{p?.onMute?.(e),e.eventData.mute||h.hasPlayerBeenUnmuted||(s||l?.(),b({type:"HAS_BEEN_UNMUTED"}),e.videoInstance.setHasUserInteracted(!0),(e.videoInstance.getState()===R.QT.playing||e.videoInstance.getState()===R.QT.buffering)&&e.videoInstance.play())},hasNextPlaylistItem:i,hasPreviousPlaylistItem:n,onNextPlaylistItem:e=>{b({type:"NAVIGATING"});let t=e.eventData?.trigger==="complete"?m([I.Cd.RELATED_VIDEO,{t:I.Cd.AUTOPLAY,n:1}]):m([I.Cd.NEXT,I.Cd.BUTTON]);e.videoInstance.businessMetricsReporter?.setPlayMetricContext(t),p?.onNextPlaylistItem?.(e)},onPreviousPlaylistItem:e=>{b({type:"NAVIGATING"}),e.videoInstance.businessMetricsReporter?.setPlayMetricContext(m([I.Cd.PREVIOUS,I.Cd.BUTTON])),p?.onPreviousPlaylistItem?.(e)},onPermissionUpdated:e=>{b({type:"PERMISSION_UPDATED",payload:e.eventData.permission}),p?.onPermissionUpdated?.(e)},unmuteButtonConfig:{show:P,isContainerButtonSize:!0,onClick:()=>{g.current?.playerInstance?.play({pageAction:x.oU.play})}}})}),j=(0,g.ZP)(_.Y).withConfig({componentId:"sc-3744c32c-0"})(["position:absolute;inset:0;z-index:6;"]);var W=a(80424),Z=a(43212);let B=(0,f.forwardRef)(function(e,t){let{video:a,assetName:i,locationRefMarker:n,handleVideoPlayerOnClick:r,...o}=e,[s,l]=(0,f.useState)(!1),[d,c]=(0,f.useState)(!1),[p,m]=(0,f.useState)(!1),[y,g]=(0,f.useState)(!1),[h,b]=(0,f.useState)(w.y.PENDING),v=(0,f.useRef)(null),P=t||v;return M({playerInstance:P.current?.playerInstance??null,isEnabled:s&&!y,permission:h,hasUserInteracted:!1,refMarker:n}),(0,V.d)(s,p,"preview"),(0,u.jsx)($,{videoPlayerId:"preview",configPresetName:S.$.NATIVE_VIDEO_PREVIEW,className:d?"show-videoPreview":"hide-videoPreview",playbackType:"preview",video:a,ref:P,"data-testid":"hero-media__video-preview-container",assetName:i,videoContainerOnClick:r,...o,onPlaylistItemUpdate:e=>{o.onPlaylistItemUpdate?.(e),l(!0)},onPlay:e=>{o?.onPlay?.(e),c(!0),m(!0)},onStop:e=>{o?.onStop?.(e),c(!1),g(!0)},onComplete:e=>{o?.onComplete?.(e),c(!1),g(!0)},onPermissionUpdated:e=>{o?.onPermissionUpdated?.(e),b(e.eventData.permission)}})}),$=(0,g.ZP)(_.Y).withConfig({componentId:"sc-d93d5925-0"})(["&.show-videoPreview{visibility:visible;opacity:1;transition:opacity 0.5s linear;}&.hide-videoPreview{visibility:hidden;opacity:0;transition:visibility 0s 0.5s,opacity 0.5s linear;}"]);var F=a(86704),G=a(75824),H=a(14438),z=a(97622);let Y={OVERLAY:"videoPreview_preference_overlay",MENU:"videoPreview_preference_menu",BOTTOMSHEET:"videoPreview_preference_bottomsheet",BUTTON:"videoPreview_preference_button"},Q={buttonLabel:{id:"title_main_hero_media_videoPreviewPreference_buttonLabel",defaultMessage:"Video Preview Preference"},menuTitle:{id:"title_main_hero_media_videoPreviewPreference_menuTitle",defaultMessage:"Video previews"},switchAriaLabel:{id:"title_main_hero_media_videoPreviewPreference_switchAriaLabel",defaultMessage:"Video Preview Preference Options"},switchLabel:{id:"title_main_hero_media_videoPreviewPreference_switchLabel",defaultMessage:"Play a silent video preview when available"}},X={buttonLabel:{id:"title_main_hero_media_videoAutoplayPreference_buttonLabel",defaultMessage:"Video Autoplay Preference"},menuTitle:{id:"title_main_hero_media_videoAutoplayPreference_menuTitle",defaultMessage:"Video autoplay"},switchAriaLabel:{id:"title_main_hero_media_videoAutoplayPreference_switchAriaLabel",defaultMessage:"Video Autoplay Preference Options"},switchLabel:{id:"title_main_hero_media_videoAutoplayPreference_switchLabel",defaultMessage:"Play muted video automatically when available"}},q=e=>{let{experience:t}=e,{isPreferenceEnabled:a,setIsPreferenceEnabled:i}=(0,k.Oh)(),[n,r]=f.useState(!1),o=f.useRef(null),s=(0,H.EO)(),l="playback"===t?X:Q,d=(0,G.N)(l.buttonLabel),c=(0,G.N)(l.menuTitle),p=(0,G.N)(l.switchAriaLabel),m=(0,G.N)(l.switchLabel),y=(0,v.Vu)();return(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(er,{"data-testid":Y.OVERLAY}),(0,u.jsxs)(K,{ref:o,className:z.u.container,children:[(0,u.jsx)(J,{name:"more-vert",title:d,"aria-label":d,onClick:()=>r(!n),"data-testid":Y.BUTTON}),(0,u.jsx)(ei,{isOpen:n,setIsOpen:r,preferenceRef:o,children:(0,u.jsxs)(ee,{children:[(0,u.jsx)(et,{children:c}),(0,u.jsx)(ea,{ariaLabel:p,label:m,labelPosition:"left",baseColor:"baseAlt",checked:a,onChange:()=>{var e;i(e=!a),s({customPageMetadata:y,pageAction:e?"ap-select-on":"ap-select-off",refMarkerSuffix:I.Cd.EMPTY})}})]})})]})]})},K=g.ZP.div.withConfig({componentId:"sc-81e9e639-0"})(["position:absolute;top:10px;right:10px;z-index:10;&.","{position:fixed;top:6px;transform:scale(0.8);}"],z.u.stickyActive),J=(0,g.ZP)(h.IconBorderButton).withConfig({componentId:"sc-81e9e639-1"})(["border:0;padding:0.5rem;"]),ee=g.ZP.div.withConfig({componentId:"sc-81e9e639-2"})(["",""],(0,F.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color")),et=g.ZP.div.withConfig({componentId:"sc-81e9e639-3"})(["",";margin-left:0.5rem;padding-left:0.5rem;margin-bottom:-0.5rem;"],(0,F.setTypographyType)("body")),ea=(0,g.ZP)(h.Switch).withConfig({componentId:"sc-81e9e639-4"})(["",";"," white-space:normal;"],(0,F.setTypographyType)("bodySmall"),(0,F.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color")),ei=e=>{let t=(0,h.useBreakpointsAsConfig)(),a=t.xs||t.s?el:en;return(0,u.jsx)(a,{...e})},en=e=>{let{isOpen:t,setIsOpen:a,preferenceRef:i,children:n}=e,r=e=>{!i.current||i.current.contains(e.target)||a(!1)};return f.useEffect(()=>(t?document.addEventListener("click",r,!0):document.removeEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}),[t]),(0,u.jsx)(eo,{isVisible:t,expandFrom:"top-right",mode:"anchored",menuID:"video-autoplay-preferences-menu-1",baseColor:"baseAlt",children:(0,u.jsx)(es,{"data-testid":Y.MENU,children:n})})},er=g.ZP.div.withConfig({componentId:"sc-81e9e639-5"})(["position:absolute;width:100%;height:100%;z-index:9;cursor:unset;"]),eo=(0,g.ZP)(h.Menu).withConfig({componentId:"sc-81e9e639-6"})(["top:45px;right:0px;width:350px;"]),es=g.ZP.div.withConfig({componentId:"sc-81e9e639-7"})(["margin-top:0.5rem;margin-bottom:0.25rem;"]),el=e=>{let{isOpen:t,setIsOpen:a,children:i}=e;return(0,u.jsx)(h.BottomSheet,{isOpen:t,onCloseClicked:()=>a(!1),closePromptLabel:(0,G.N)({id:"common_ariaLabel_closePrompt",defaultMessage:"Close Prompt"}),children:(0,u.jsx)(ed,{"data-testid":Y.BOTTOMSHEET,children:i})})},ed=g.ZP.div.withConfig({componentId:"sc-81e9e639-8"})(["margin-top:1rem;"]);var ec=a(22372),eu=a(55306),ep=a(66724);(r=d||(d={})).Redirect="redirect",r.InlinePlaylist="inline-playlist",r.ClickToPlay="click-to-play",(o=c||(c={})).Preview="preview",o.Playback="playback",o.Static="static";let em=e=>{let{constId:t,slateVideo:a,actionType:i,playbackPlayerInstance:n}=e,{pageConst:r}=(0,T.y)(),{videoSingleLinkBuilder:o}=(0,ep.WOb)(),{makeRefMarker:s}=(0,I.Lz)(),{isPreferenceEnabled:l,initialPreferenceHasSet:u}=(0,k.Oh)(),[p,m]=(0,f.useState)(!1),[y,g]=(0,f.useState)(!1),[h,b]=(0,f.useState)(!1),[v,P]=(0,f.useState)(!1),[w,_]=(0,f.useState)(!1),[S,A]=(0,f.useState)(c.Static),[E,N]=(0,f.useState)(I.Cd.EMPTY),C=()=>{if(i===d.ClickToPlay&&!v){N([I.Cd.PREVIOUS,I.Cd.HERO,I.Cd.VIDEO]);return}N(S===c.Preview?[I.Cd.PREVIOUS,I.Cd.HERO,I.Cd.VIDEO]:[I.Cd.HERO,I.Cd.VIDEO])},L=()=>{i===d.Redirect?A(c.Preview):i===d.ClickToPlay?v?A(c.Playback):A(c.Preview):i===d.InlinePlaylist&&A(c.Playback)};(0,f.useEffect)(()=>{i&&n&&l&&!y&&L()},[i,l,n]),(0,f.useEffect)(()=>{n&&(l||y||(g(!0),n?.getIsStickyPlayerActive()||A(c.Static)))},[l]),(0,f.useEffect)(()=>{C(),!n||S!==c.Static||n.getIsPlayerDismissed()||n.stop()},[S]),(0,f.useEffect)(()=>{u&&m(!l||i===d.ClickToPlay)},[i,u]);let O=()=>{b(!0)},M=S!==c.Static,V=S===c.Preview||S===c.Static,D=()=>{O(),n&&(n.setHasUserInteracted(!0),n.getIsAgeGateEnabled()||n.setControls(!0))};(0,f.useEffect)(()=>{w&&S===c.Playback&&n&&(U(),_(!1))},[S,w,n]);let U=()=>{if(D(),!n||(n.setIsPlayerDismissed(!1),n.getIsAgeGateEnabled()))return;n.setMute(!1);let e=n.getState()===R.QT.idle;n.play(e?{pageAction:x.fZ.videoStart(r),refMarker:s(E)}:void 0)},j=o({viconst:a.id,query:{playlistId:t},refSuffix:E}),W=(0,f.useMemo)(()=>i===d.Redirect?{href:j}:{onClick:()=>{A(c.Playback),P(!0),_(!0)}},[i,j]);return i?{videoSlateState:S,slateActionProps:W,handleVideoPlayerOnClick:()=>{let e=n?.getCanEnableStickyPlayer();!h&&e&&n?.reportVideoTapMetric(),D()},shouldShowVideoPlayer:M,shouldShowOverlay:V,hasBeenFirstInteracted:h,shouldEnableFirstVideoAd:p,indicatePreviewComplete:()=>{P(!0),A(c.Static)},indicateFirstInteraction:O,indicateVideoPlay:()=>{S!==c.Static||w||L()},indicateVideoPlayInterrupted:()=>{A(c.Static),n?.getIsPlayerDismissed()&&!p&&m(!0)}}:{videoSlateState:S,slateActionProps:void 0,handleVideoPlayerOnClick:void 0,shouldShowVideoPlayer:!1,shouldShowOverlay:!0,hasBeenFirstInteracted:!1,shouldEnableFirstVideoAd:!1,indicatePreviewComplete:void 0,indicateFirstInteraction:void 0,indicateVideoPlay:void 0,indicateVideoPlayInterrupted:void 0}};var ef=a(72579),ey=a.n(ef),eg=a(41174),eh=a(72871),eb=a(14865);function ev(e){return eb.isBrowser?window.navigator.userAgent:e?e["user-agent"]:void 0}var eP=a(87523);let eT=(e,t)=>{let a=[...e],i=[];for(;a.length;)i.push(a.splice(0,t));return i},eI=(e,t,a)=>{if(!e)return[];let i=t?.videos?.filter(e=>e?.playbackURLs?.length)??[],n=a?.filter(t=>t.id!==e.id)??[];return[e].concat(n).concat(i)},ew=e=>{let{primaryVideo:t,shouldPauseQuery:a,enableFirstVideoAd:i}=e,{pageType:n,subPageType:r}=(0,T.y)(),[o,s]=(0,f.useState)(0),[l,d]=(0,f.useState)(!1),[c,u]=(0,f.useState)(0),[p]=(0,eg.E8)({query:eP.HF,variables:{viconst:t.id,userAgent:ev()??"",pageType:n,subPageType:r,viewportSize:void 0,autoStartVideo:!0},pause:a,context:{personalized:!0,serverSideCacheable:!1}}),m=(0,f.useMemo)(()=>{if(p.data)return eT(ey()(p.data,"video.relatedVideos.edges",[]).map(e=>e.node.id),3)},[p.data]),y=(0,f.useMemo)(()=>{if(!p.data)return p.fetching?void 0:t;let e=t;return i&&p.data?.video?.webAdURL&&(e={...t,webAdURL:p.data?.video?.webAdURL}),e},[p.error,p.data,i]),g=(0,eh.NE)({query:eP.Bm,variables:{viconsts:m?.[o]??[],userAgent:ev()??"",pageType:n,subPageType:r,viewportSize:void 0,autoStartVideo:!0},pause:!m?.[o]||!y||a,resolveEdges:(e,t)=>eI(y,e,t),context:{personalized:!0,serverSideCacheable:!1}});return(0,f.useEffect)(()=>{g.isFetching&&u(c+1)},[g.isFetching]),(0,f.useEffect)(()=>{y?.webAdURL&&!l&&i&&(g.refreshEdges(),d(!0))},[y?.webAdURL]),(0,f.useEffect)(()=>{if(g.isFetching||c<=o)return;let e=g.items?.length??0,t=m?.length??0;if(g.currentIndex>=e-2){let e=o+1;e<=t-1&&s(e)}},[g.currentIndex,g.items]),{...g,currentItem:g.items?.length?g.currentItem:y}};var e_=a(32964);let eS=e=>{let t=e?.name?.value,a=(0,G.N)(t?{id:"common_video_watch_text",defaultMessage:"Watch {videoTitle}"}:{id:"common_video_watch_text_fallback",defaultMessage:"Watch video"},{videoTitle:t});return{image:e?(0,e_.W)(e,a):void 0,label:a}},ex={SHOW_CONTAINER:"videoPlayerSlate__show-player",HIDE_CONTAINER:"videoPlayerSlate__hide-player"},eA=g.ZP.div.withConfig({componentId:"sc-5c51ab82-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;&.","{visibility:visible;opacity:1;transition:opacity 0.3s linear;}&.","{visibility:hidden;opacity:0;transition:visibility 0s 0.3s,opacity 0.3s linear;}"],ex.SHOW_CONTAINER,ex.HIDE_CONTAINER);var eE=a(72779),eN=a.n(eE),eC=a(69380),ek=a(9216),eL=a(17708);let eO="video-player__slate-play-icon",eM="videoplayer__slate-overlay-content",eV="videoplayer__slate-inline-playlist",eR="videoplayer__slate-reactions",eD={SLATE_ACTION_TEXT:"video-player-slate-action-text",SLATE_RUNTIME:"video-player-slate-runtime",SLATE_TEXT:"video-player-slate-text",SLATE_OVERLAY:"video-player-slate-overlay",SLATE_REACTIONS:"video-player-slate-reactions"};var eU=a(66519),ej=a(95441);let eW=(0,g.ZP)(h.Slate.Overlay).withConfig({componentId:"sc-8bb8916e-0"})(["padding-left:calc("," + "," + ",");background:linear-gradient( to top,transparent 3.3rem,"," 3.5rem,transparent 6.5rem );padding-bottom:",";font-size:2.25rem;&.","{justify-content:flex-end;flex-grow:1;.","{flex-grow:1;align-items:stretch;}}","{padding-left:",";font-size:2.75rem;background:none;}","{justify-content:flex-start;padding-left:",";font-size:3rem;}","{font-size:3.75rem;}.","{width:calc(3rem + 5%);height:3rem;padding-left:5%;","{width:3.75rem;height:3.75rem;padding-left:0;}","{position:static;height:3rem;width:3rem;margin:0;margin-right:0.5rem;}","{height:3.75rem;width:3.75rem;}}&.","{background:linear-gradient( to top,transparent 0rem,"," 0rem,transparent 3rem );justify-content:flex-start;padding-left:1rem;.","{","{width:3rem;padding-left:0;}}}"],"25vw",F.spacing.m,F.spacing.m,(0,F.getColorVarValue)("ipt-baseAlt-shade3-color"),F.spacing.m,eR,eM,F.mediaQueries.breakpoints.above.m,F.spacing.s,eU.M.breakpoints.above.l,F.spacing.m,F.mediaQueries.breakpoints.above.xl,eO,F.mediaQueries.breakpoints.above.m,eU.M.breakpoints.above.l,F.mediaQueries.breakpoints.above.xl,eV,(0,F.getColorVarValue)("ipt-baseAlt-shade3-color"),eO,F.mediaQueries.breakpoints.below.m),eZ=g.ZP.div.withConfig({componentId:"sc-8bb8916e-1"})([""," padding-right:",";."," &{flex-grow:1;display:grid;align-items:center;padding-right:0;}"],(0,F.setTypographyType)("body"),F.spacing.m,eR);g.ZP.div.withConfig({componentId:"sc-8bb8916e-2"})(["margin-bottom:0;"]),g.ZP.span.withConfig({componentId:"sc-8bb8916e-3"})([""," margin-right:",";","{"," font-weight:400;}"],(0,F.setTypographyType)("body"),F.spacing.xs,eU.M.breakpoints.above.l,(0,F.setTypographyType)("headline5"));let eB=g.ZP.span.withConfig({componentId:"sc-8bb8916e-4"})([""," ",""],(0,F.setTypographyType)("body"),(0,F.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color")),e$=g.ZP.span.withConfig({componentId:"sc-8bb8916e-5"})([""," margin-right:",";","{"," font-weight:400;}"],(0,F.setTypographyType)("body"),F.spacing.xs,F.mediaQueries.breakpoints.above.l,(0,F.setTypographyType)("headline5")),eF=g.ZP.div.withConfig({componentId:"sc-8bb8916e-6"})([""," "," "," ","{"," ","}","{","}"],(0,F.setTypographyType)("copyright"),(0,F.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"),(0,ej.S)(2),F.mediaQueries.breakpoints.above.l,(0,F.setTypographyType)("bodySmall"),(0,ej.S)(1),F.mediaQueries.breakpoints.above.xl,(0,F.setTypographyType)("body")),eG=e=>{let{slateVideo:t,slateActionOverwriteText:a,isVideoInlinePlaylist:i}=e,n=(0,y.Z)(),r=(0,eL.Z)({videoName:t?.name.value??"",contentTypeId:t?.contentType?.id,originalTitleText:t?.primaryTitle?.originalTitleText?.text,titleText:t?.primaryTitle?.titleText?.text,releaseYear:t?.primaryTitle?.releaseYear,canHaveEpisodes:t?.primaryTitle?.titleType?.canHaveEpisodes}),o=(0,f.useMemo)(()=>{if(a)return a;let e=t?.contentType?.displayName?.value;return n.formatMessage(e?{id:"common_video_play",defaultMessage:"Play {videoType}"}:{id:"common_video_play_fallback",defaultMessage:"Play video"},{videoType:e?.toLowerCase()})},[a]);return(0,u.jsx)(eW,{iconName:"play-circle-outline-large-inline",iconType:"inline",iconPlacement:"centered",iconClassName:eO,"data-testid":eD.SLATE_OVERLAY,contentClassName:eM,className:eN()({[eV]:i,[eR]:!0}),children:(0,u.jsxs)(eZ,{children:[(0,u.jsxs)(ez,{children:[(0,u.jsx)(e$,{"data-testid":eD.SLATE_ACTION_TEXT,children:o}),t.runtime&&(0,u.jsx)(eB,{"data-testid":eD.SLATE_RUNTIME,children:(0,u.jsx)(ek.ZP,{seconds:t.runtime.value,format:"{minutes}:{seconds}",unitDisplay:"timer"})}),(0,u.jsx)(eF,{"data-testid":eD.SLATE_TEXT,children:r})]}),(0,u.jsx)(eH,{entityType:"video",associatedConstId:t.id,testIdSuffix:eD.SLATE_REACTIONS})]})})},eH=(0,g.zo)(eC.I).withConfig({componentId:"sc-ae6d0deb-0"})(["justify-self:flex-end;align-self:flex-end;grid-column:2;"]),ez=g.zo.div.withConfig({componentId:"sc-ae6d0deb-1"})(["grid-column:1;"]),eY="hide-player",eQ=b.PageType.VIDEO,eX=b.SubPageType.VIDEO_INLINE_PAGE,eq=e=>(0,u.jsx)(k.F1,{children:(0,u.jsx)(eK,{...e})}),eK=e=>{let t=(0,y.Z)(),a=(0,f.useRef)(null),{pageType:i,subPageType:n}=(0,T.y)(),[r,o]=(0,f.useState)(!1),[s,l]=(0,f.useState)(!1),[p,g]=(0,f.useState)(!1),[b,P]=(0,f.useState)(void 0),I=eS(e.primaryVideo),w=(0,ec.w)(),_=(0,f.useRef)((0,h.useBreakpointsAsConfig)()),{videoSlateState:S,slateActionProps:x,shouldShowOverlay:A,shouldShowVideoPlayer:E,handleVideoPlayerOnClick:N,hasBeenFirstInteracted:C,shouldEnableFirstVideoAd:k,indicateFirstInteraction:L,indicateVideoPlay:O,indicatePreviewComplete:M,indicateVideoPlayInterrupted:V}=em({constId:e.id,slateVideo:e.primaryVideo,actionType:b,playbackPlayerInstance:r?a.current?.playerInstance:null});(0,f.useEffect)(()=>{if(!_.current)return;let e=d.Redirect;w&&(e=d.InlinePlaylist,_.current.xs&&(e=d.ClickToPlay)),P(e)},[_]);let{currentItem:R,gotoNextItem:D,gotoPreviousItem:U,hasNextItem:j,hasPreviousItem:W}=ew({primaryVideo:e.primaryVideo,shouldPauseQuery:!w,enableFirstVideoAd:k}),Z=S===c.Preview;(0,f.useEffect)(()=>{C&&g(!0)},[C]);let B=w?e.primaryVideo.playbackURLs&&e.primaryVideo.playbackURLs.length>0:e.primaryVideo.previewURLs&&e.primaryVideo.previewURLs.length>0,$=f.useMemo(()=>R||{...e.primaryVideo,playbackURLs:[],previewURLs:void 0},[R,e.primaryVideo]),F=(0,u.jsxs)(u.Fragment,{children:[!!B&&(0,u.jsx)(eA,{"data-testid":e.containerTestId,className:E&&(p||s)?ex.SHOW_CONTAINER:ex.HIDE_CONTAINER,children:(0,u.jsx)(eJ,{initialVideo:e.primaryVideo,playlistVideo:$,ref:a,assetName:"INLINE_HERO",actionType:b,videoSlateState:S,locationRefMarker:e.locationRefMarker,hasBeenFirstInteracted:C,startVideoPlayback:x?.onClick,indicateFirstInteraction:L,handleVideoPlayerOnClick:N,onReady:()=>{o(!0)},onPlay:()=>{g(!0),O?.()},onAdPlay:()=>{g(!0),O?.()},onStop:()=>{g(!1),V?.(),Z&&M?.()},onComplete:()=>{j||g(!1),Z&&M?.()},onNextPlaylistItem:()=>{D()},onPreviousPlaylistItem:()=>{U()},hasNextPlaylistItem:j,hasPreviousPlaylistItem:W,onPlayerDismiss:e=>{let{eventData:{dismissed:t}}=e;t&&V?.()},onAgeGate:e=>{let{eventData:{enabled:t}}=e;l(t)}})}),(A||!p&&E)&&(0,u.jsx)(eG,{slateVideo:e.primaryVideo,slateActionOverwriteText:Z&&p?(()=>{let a=e.primaryVideo.contentType?.displayName.value;return t.formatMessage(a?{id:"common_video_play_with_sound",defaultMessage:"Play {videoType} with sound"}:{id:"common_video_play_with_sound_fallback",defaultMessage:"Play video with sound"},{videoType:a?.toLowerCase()})})():"",isVideoInlinePlaylist:w||e.forceInlinePlaylistOverlay})]}),G=m()({imageProps:{imageModel:I?.image,loading:"eager"},ariaLabel:I.label,dynamicWidth:!0},e.wrapperComponentOverrides,{className:`${w?e.wrapperComponentOverrides?.inlineClassName:void 0} ${e.wrapperComponentOverrides?.className}`},x),H=e.wrapperComponentType||e2,z=(0,u.jsx)(H,{...G,children:F});return(0,u.jsxs)(v.mW,{value:{pageType:w?eQ:i,subPageType:w?eX:n,id:w&&R?R.id:e.primaryVideo.id},children:[(0,u.jsx)(q,{experience:b===d.InlinePlaylist?"playback":"preview"}),z]})},eJ=(0,f.forwardRef)(function(e,t){let{initialVideo:a,playlistVideo:i,assetName:n,locationRefMarker:r,videoSlateState:o,actionType:s,hasBeenFirstInteracted:l,hasNextPlaylistItem:p,hasPreviousPlaylistItem:m,...y}=e,g=(0,P.V)(),b=(0,f.useRef)(null),v=(0,f.useRef)(null),[T,I]=(0,f.useState)(!1),[w,_]=(0,f.useState)(!1),[S,x]=(0,f.useState)(!1),A=(s===d.Redirect||s===d.ClickToPlay)&&!T,E=s===d.InlinePlaylist||s===d.ClickToPlay;if((0,f.useEffect)(()=>{if(t)switch(s){case d.InlinePlaylist:case d.ClickToPlay:t.current=v.current;break;case d.Redirect:t.current=b.current;break;default:t.current=null}}),(0,f.useEffect)(()=>{l&&b.current?.playerInstance?.stop()},[l]),(0,f.useEffect)(()=>{o===c.Playback&&I(!0)},[o]),g)return(0,u.jsx)(Z.G,{video:a});let{onNextPlaylistItem:N,onPreviousPlaylistItem:C,indicateFirstInteraction:k,handleVideoPlayerOnClick:L,...O}=y;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(W.k,{}),A&&(0,u.jsx)(B,{video:a,assetName:n+"_preview",locationRefMarker:r,...O,onComplete:e=>{y?.onComplete?.(e),e.videoInstance.stop()},ref:b}),E&&(0,u.jsxs)(u.Fragment,{children:[!S&&(0,u.jsx)(e0,{backgroundImage:(0,eu.c)(i.thumbnail.url),"data-testid":"inline-video-start-loader",children:(0,u.jsx)(h.Loader,{})}),(0,u.jsx)(e1,{...e,video:i,className:o===c.Playback||T?void 0:eY,onPlaylistItemUpdate:t=>{s===d.ClickToPlay&&l&&!w&&e.startVideoPlayback?.(),e.onPlaylistItemUpdate?.(t),x(!0)},onPlay:t=>{_(!0),e.onPlay?.(t)},onAdPlay:t=>{_(!0),e.onAdPlay?.(t)},assetName:n+"_playback",ref:v})]})]})}),e0=g.ZP.div.withConfig({componentId:"sc-9cc9532c-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url(",");background-position:center;background-size:cover;background-repeat:no-repeat;z-index:7;"],e=>e.backgroundImage),e1=(0,g.ZP)(U).withConfig({componentId:"sc-9cc9532c-1"})(["&.","{display:none;}"],eY),e2=(0,g.ZP)(h.Slate).withConfig({componentId:"sc-9cc9532c-2"})(["cursor:pointer;"])},22372:function(e,t,a){a.d(t,{w:function(){return s}});var i=a(86958);let n=e=>{let t=(0,i.B)().context,a=t.sidecar?.localizationResponse?.geolocationCountryCode;return!!a&&e.includes(a)},r=["US","GB","CA","DE","IN"],o=()=>n(r),s=()=>o()},36362:function(e,t,a){a.d(t,{K8:function(){return o},V4:function(){return s},p6:function(){return c},sZ:function(){return l},sq:function(){return d}});var i=a(30382),n=a.n(i);let r=n()` fragment SharedVideoTextTrack on VideoTimedTextTrack { displayName { value language } refTagFragment type language url } `,o=n()` fragment SharedVideoPreviewUrls on Video { previewURLs { displayName { value language } videoMimeType videoDefinition url } } `,s=n()` fragment SharedVideoPlaybackUrls on Video { playbackURLs( filter: { mimeTypes: [MP4], definitions: [DEF_SD, DEF_480p] } ) { displayName { value language } videoMimeType videoDefinition url } } `,l=n()` fragment SharedVideoAllPlaybackUrls on Video { playbackURLs { displayName { value language } videoMimeType videoDefinition url } } `,d=n()` fragment SharedVideoWebAd on Video { webAdURL( adParameters: { userAgent: $userAgent pageType: $pageType subPageType: $subPageType viewportSize: $viewportSize autoStartVideo: $autoStartVideo } ) } `,c=n()` fragment SharedVideoRoot on Video { id createdDate isMature runtime { value } name { value language } description { value language } timedTextTracks(filter: { format: SRT }) { ...SharedVideoTextTrack } recommendedTimedTextTrack(filter: { format: SRT }) { ...SharedVideoTextTrack } thumbnail { url height width } primaryTitle { id titleText { text } originalTitleText { text } releaseYear { year } } } ${r} `}}]);