(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4647],{688:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(14232),i=n(67750);let l=()=>{let e=(0,r.useContext)(i.M);if(!e)throw Error("Components that use this hook must be rendered as children of VideoPlayerComponent's context Provider");return e}},6462:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var r=n(14232),i=n(688);let l=()=>{let e=(0,r.useRef)(!1),{totalTime:t,getVideoPlayerRef:n}=(0,i.Z)();return(0,r.useEffect)(()=>{if(!t||e.current)return;e.current=!0;let r=n();r&&(r.currentTime=0,r.play())},[t,n,e]),null};l.displayName="VideoPlayerAutoPlay"},9848:(e,t,n)=>{"use strict";var r;n.d(t,{o:()=>r}),function(e){e.captions="captions",e.initialize="initialize",e.loadedMetadata="loadedMetadata",e.percentComplete="percentComplete",e.play="play",e.transcript="transcript"}(r||(r={}))},10926:e=>{!function(){"use strict";var t=void 0!==window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,l={};r{"use strict";n.d(t,{S:()=>c});var r=n(37876),i=n(14232),l=n(688),s=n(77232),a=n(82018);let o=s.I4.input.withConfig({componentId:"sc-ba54276d-0"})(["-webkit-appearance:none;height:3px;width:",";transform:",";margin-top:",";background-color:",";outline:none;&::-moz-range-track{-moz-appearance:none;height:3px;background-color:",";outline:none;border:0;}&:focus::-webkit-slider-thumb{outline:1px "," dotted;}&:focus::-moz-range-thumb{outline:1px "," dotted;}&::-webkit-slider-thumb{-webkit-appearance:none !important;height:14px;width:14px;border-radius:50%;background-color:",";cursor:pointer;}&::-moz-range-thumb{height:14px;width:14px;border-radius:50%;outline:none;border:0;background-color:",";cursor:pointer;}"],e=>e.isVertical?"100%":"100px",e=>e.isVertical?"translateX(-5px)":null,a.xe.generic.x3,a.Tj.palette.white,a.Tj.palette.white,a.Tj.palette.white,a.Tj.palette.white,a.Tj.palette.red.default,a.Tj.palette.red.default),c=e=>{let{tagName:t="div",isRenderedOnMute:n=!1,isVertical:s=!1,...a}=e,{isMuted:c,volume:d,setVolume:u}=(0,l.Z)(),p=(0,i.useCallback)(e=>{u&&u(Number.parseInt(e.target.value,10))},[u]);return c&&!n?null:(0,r.jsx)(t,{...a,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("label",{className:"h-sr-only",htmlFor:"volumeSlider",children:"Volume:"}),(0,r.jsx)(o,{id:"volumeSlider",isVertical:s,max:"10",min:"0",onChange:p,type:"range",value:d})]})})};c.displayName="VolumeSlider"},17528:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(14232),i=n(43461);let l=()=>(0,r.useContext)(i.x)},18870:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(37876),i=n(688);let l=e=>{let t=Math.floor(e/60%60),n=Math.floor(e%60);return n<10&&(n=`0${n}`),`${t}:${n}`},s=e=>{let{className:t,tagName:n="div"}=e,{currentTime:s,totalTime:a}=(0,i.Z)();return(0,r.jsx)(n,{children:(0,r.jsxs)("div",{className:t,children:[(0,r.jsx)("span",{className:"h-sr-only",children:"time"}),(0,r.jsx)("span",{children:`${l(s)} ∕ ${l(a)}`})]})})};s.displayName="Duration"},20519:(e,t,n)=>{"use strict";n.d(t,{J:()=>h});var r=n(37876),i=n(98686),l=n(51857),s=n(71236),a=n(41657),o=n(688),c=n(21552),d=n(56970),u=n(45416),p=n(45715);let h=e=>{let{transcriptUrl:t}=e,{isFullscreen:n}=(0,o.Z)();return(0,r.jsxs)(p.jx,{isFullscreen:n,children:[(0,r.jsxs)("div",{className:"videoControls",children:[(0,r.jsx)("div",{className:"videoControlsLeft",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(i.i,{}),(0,r.jsx)(l.x,{}),(0,r.jsx)(s.a,{}),(0,r.jsx)(a.v,{}),(0,r.jsx)(p.l6,{}),(0,r.jsx)(p.Ys,{})]})}),(0,r.jsx)("div",{className:"videoControlsRight",children:(0,r.jsxs)("div",{children:[t&&(0,r.jsx)(u.L,{transcriptUrl:t}),(0,r.jsx)(p.PT,{}),(0,r.jsx)(c.A,{})]})})]}),(0,r.jsx)(d.z,{})]})};h.displayName="VideoPlayerControls"},21552:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(77216),l=n(38927),s=n(688);let a=()=>{let{isFullscreen:e,toggleFullscreenState:t}=(0,s.Z)();return(0,r.jsxs)(l.a,{"data-test":e?"zoomOut":"zoomIn",onClick:t,children:[e?(0,r.jsx)(i.IconMediaScreenNormal,{width:"23px"}):(0,r.jsx)(i.IconMediaScreenFull,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:"Toggle full screen"})]})};a.displayName="FullscreenButton"},38927:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(82018);let i=n(77232).I4.button.withConfig({componentId:"sc-acea1ca5-0"})(["display:inline-block;padding:0;margin-right:16px;width:25px;height:25px;overflow:hidden;cursor:pointer;vertical-align:top;transform:scale(1,1);svg{color:#888;}&.active,&:focus,&:hover{svg{color:white;}}&:hover{transform:scale(1.25,1.25);outline:none;}&:focus{transform:scale(1.25,1.25);outline:"," dashed 1px;outline-offset:2px;-moz-outline-radius:4px;text-decoration:underline;}&:last-child{margin-right:0;}"],r.Tj.border.focusOutline);i.displayName="ControlButton"},41657:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(37876),i=n(77216),l=n(38927),s=n(688);let a={hi:i.IconMediaVolumeHigh,md:i.IconMediaVolumeMedium,lo:i.IconMediaVolumeLow,zero:i.IconMediaVolume},o=()=>{let{isMuted:e,toggleMuteState:t,volume:n}=(0,s.Z)(),o=e?i.IconMediaVolumeMute:a[(e=>e>=8?"hi":e>=4?"md":e>=1?"lo":"zero")(n??0)];return(0,r.jsxs)(l.a,{"data-test":e?"unmuteButton":"muteButton",onClick:t,children:[(0,r.jsx)(o,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:e?"Unmute":"Mute"})]})};o.displayName="VolumeButton"},42272:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(37876),i=n(14232),l=n(10926),s=n(65429),a=n(17528),o=n(9848),c=n(67750);let d=e=>{let{onUnmount:t,ref:n,...l}=e;return(0,i.useEffect)(()=>t(),[t]),(0,r.jsx)("video",{"data-test":"video-player-video-element",...l,ref:n})};d.displayName="Video";let u=e=>{let{children:t,videoRef:n,focusConditions:u}=e,[p,h]=(0,i.useState)(10),[m,x]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(!1),[j,b]=(0,i.useState)(!1),[w,C]=(0,i.useState)(!1),[k,I]=(0,i.useState)(0),[N,M]=(0,i.useState)(0),V=(0,i.useRef)(null),S=(0,s.N)(V,n),E=(0,a.t)(),F=()=>{C(l.isFullscreen)};(0,i.useEffect)(()=>(l.isEnabled&&l.on("change",F),()=>{l.isEnabled&&l.off("change",F)}),[]),(0,i.useEffect)(()=>{E.handleVideoEvent(o.o.initialize)},[E]),(0,i.useEffect)(()=>{V?.current&&(V.current.volume=.1*p)},[p]);let T=(0,i.useCallback)(()=>{y(!0),E.handleVideoEvent(o.o.play)},[E]),P=(0,i.useCallback)(()=>{y(!1)},[]),z=(0,i.useCallback)(()=>{v?V?.current?.pause():V?.current?.play(),y(!v)},[v,y]),L=(0,i.useCallback)(()=>{I(V?.current?.currentTime??0),k/N*100>=90&&E.handleVideoEvent(o.o.percentComplete)},[k,N,E]),R=(0,i.useCallback)(()=>{M(V?.current?.duration??0)},[]),Z=(0,i.useCallback)(()=>{h(10),g(!1),x(!1),y(!1),b(!1),C(!1),I(0),M(0)},[]),B=(0,i.useCallback)(()=>{x(!1)},[]),D=(0,i.useCallback)(()=>{x(!0)},[]);return(0,r.jsx)(c.M.Provider,{value:{volume:p,areCaptionsVisible:f,isBuffering:m,isPlaying:v,isMuted:j,isFullscreen:w,currentTime:k,totalTime:N,setVolume:h,focusConditions:u,toggleCaptionsState:()=>g(!f),togglePlayState:z,toggleMuteState:()=>{V?.current?.currentTime&&(V.current.muted=!j,b(!j))},toggleFullscreenState:()=>{V?.current&&l.toggle(V.current)},fastForward:()=>{V?.current?.currentTime&&(V.current.currentTime=k+10)},rewind:()=>{V?.current?.currentTime&&(V.current.currentTime=k-10)},getVideoPlayerRef:()=>V.current,seekTo:e=>{V?.current?.currentTime&&(V.current.currentTime=N*e)}},children:t((0,r.jsx)(d,{crossOrigin:"anonymous",onLoadedMetadata:R,onPause:P,onPlay:T,onPlaying:B,onTimeUpdate:L,onUnmount:Z,onWaiting:D,preload:"metadata",ref:S}))})};u.displayName="VideoPlayerWrapper"},43461:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(57410);let i=(0,n(14232).createContext)({handleVideoEvent:r});i.displayName="VideoPlayerEventsContext"},45416:(e,t,n)=>{"use strict";n.d(t,{L:()=>p});var r=n(37876),i=n(14232),l=n(77216),s=n(82018),a=n(17528),o=n(9848),c=n(77232),d=n(70065);let u=(0,c.I4)(d.N).withConfig({componentId:"sc-240b76d-0"})(["display:inline-block;width:25px;height:21px;overflow:hidden;&:hover,&:focus{outline:none;transform:scale(1.25,1.25);svg{color:white;}}&:focus{outline:"," dashed 1px;outline-offset:2px;-moz-outline-radius:4px;text-decoration:underline;}"],s.Tj.border.focusOutline),p=e=>{let{transcriptUrl:t,className:n}=e,c=(0,a.t)(),d=(0,i.useCallback)(()=>c.handleVideoEvent(o.o.transcript),[c]);return(0,r.jsxs)(u,{className:n,href:t,onClick:d,rel:"noopener noreferrer",target:"_blank",children:[(0,r.jsx)(l.IconMediaTranscript,{color:s.Tj.palette.gray.medium}),(0,r.jsx)("span",{className:"h-sr-only",children:"Transcript"})]})};p.displayName="TranscriptLink"},45715:(e,t,n)=>{"use strict";n.d(t,{PT:()=>p,Ys:()=>d,jx:()=>c,l6:()=>u});var r=n(77232),i=n(82018),l=n(70302),s=n(18870),a=n(15335);let o=` position: absolute; bottom: 0; width: 100%; z-index: 940; padding: ${i.xe.generic.x4} ${i.xe.generic.x3}; background: #000; `,c=r.I4.div.withConfig({componentId:"sc-5210bd4f-0"})(["background-color:#000;padding:",";",";.videoControls{display:flex;flex-wrap:nowrap;}.videoControlsLeft{flex:0 0 auto;flex-direction:row;flex-basis:75%;max-width:75%;> div{display:flex;flex-wrap:nowrap;justify-content:flex-start;text-align:start;}}.videoControlsRight{flex:0 0 auto;flex-direction:row;flex-basis:25%;max-width:25%;> div{display:flex;flex-wrap:nowrap;justify-content:flex-end;text-align:end;}}"],i.xe.generic.x3,e=>{let{isFullscreen:t}=e;return t&&o}),d=(0,r.I4)(s.d).withConfig({componentId:"sc-5210bd4f-1"})(["width:",";display:inline-block;margin:2px 0 0;font-size:",";color:",";"],e=>{let{isVertical:t}=e;return t?"70px":"100%"},i.gx.size.text.medium,i.Tj.palette.white),u=(0,r.I4)(a.S).withConfig({componentId:"sc-5210bd4f-2"})(["padding:0 ",";font-size:",";"],e=>e.isVertical?"0":`${i.xe.generic.x3}`,i.gx.size.text.small),p=(0,r.I4)(l.K).withConfig({componentId:"sc-5210bd4f-3"})(["width:28px;margin:0 ",";"],i.xe.generic.x5)},51857:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(37876),i=n(68694),l=n(77216),s=n(688),a=n(38927);let o=()=>{let{isPlaying:e,togglePlayState:t,focusConditions:n}=(0,s.Z)(),o=(0,i.i)(null,n);return(0,r.jsx)(a.a,{"data-test":e?"pauseButton":"playButton",onClick:t,ref:o,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.IconMediaPause,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:"Pause"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.IconMediaPlay,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:"Play"})]})})};o.displayName="PlayPauseButton"},56876:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(37876),i=n(14232),l=n(688);let s=e=>{let{onCaptionUpdate:t,videoPlayerContext:n}=e,r=(0,i.useCallback)(()=>e=>{let n=e.currentTarget,r=n?.activeCues,i=r[0]?.text;i&&""!==i&&t(i)},[t]),l=(0,i.useCallback)(()=>{let e=n.getVideoPlayerRef(),t=e?.textTracks??[];for(let n=0;n{l()},[]),null};s.displayName="DefaultCaption";var a=(e=>{let t=t=>{let n=(0,l.Z)();return(0,r.jsx)(e,{...t,videoPlayerContext:n})};return t.displayName=`withVideoPlayerComponentsContext(${e.displayName||e.name})`,t})(s);let o=e=>{let{children:t,captionSource:n}=e,[s,o]=(0,i.useState)(""),{areCaptionsVisible:c,totalTime:d}=(0,l.Z)();return n&&c&&d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a,{onCaptionUpdate:o}),t(s)]}):null};o.displayName="VideoPlayerCaptions"},56970:(e,t,n)=>{"use strict";n.d(t,{z:()=>c});var r=n(37876),i=n(14232),l=n(688),s=n(77232),a=n(82018);let o=s.I4.progress.withConfig({componentId:"sc-da643fa0-0"})(["width:100%;height:5px;border-top:3px solid ",";cursor:pointer;color:",";&::-moz-progress-bar{background:",";}&[value]::-webkit-progress-bar{background-color:",";}&[value]::-webkit-progress-value{background-color:",";}"],a.Tj.palette.gray.darkest,a.Tj.palette.red.default,a.Tj.palette.red.default,a.Tj.palette.white,a.Tj.palette.red.default),c=()=>{let{currentTime:e,totalTime:t,seekTo:n}=(0,l.Z)(),s=e/t*100,a=(0,i.useCallback)(e=>{let{left:t}=e.currentTarget.getBoundingClientRect();n((e.pageX-t)/e.currentTarget.offsetWidth)},[n]);return t?(0,r.jsxs)(o,{max:"100",onClick:a,value:s,children:[(0,r.jsx)("span",{children:s}),"% played"]}):null};c.displayName="ProgressBar"},67750:(e,t,n)=>{"use strict";n.d(t,{M:()=>l});var r=n(14232),i=n(57410);let l=(0,r.createContext)({volume:10,isBuffering:!1,areCaptionsVisible:!1,isPlaying:!1,isMuted:!1,isFullscreen:!1,focusConditions:[],currentTime:0,totalTime:0,toggleCaptionsState:i,togglePlayState:i,toggleMuteState:i,toggleFullscreenState:i,fastForward:i,rewind:i,seekTo:i,setVolume:i,getVideoPlayerRef:()=>void 0});l.displayName="VideoPlayerComponentsContext"},68694:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(14232);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current?.focus&&t.every(Boolean)&&n.current.focus()},t),n}},70302:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(37876),i=n(14232),l=n(15039),s=n(77216),a=n(17528),o=n(9848),c=n(688),d=n(38927);let u=e=>{let{className:t}=e,{areCaptionsVisible:n,toggleCaptionsState:u}=(0,c.Z)(),p=(0,a.t)(),h=(0,i.useCallback)(()=>{p.handleVideoEvent(o.o.captions),u()},[p,u]);return(0,r.jsxs)(d.a,{className:l({active:n,className:t}),"data-test":n?"closedCaptionsOffButton":"closedCaptionsOnButton",onClick:h,children:[(0,r.jsx)(s.IconMediaCc,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:n?"Turn off closed captions":"Turn on closed captions"})]})};u.displayName="ClosedCaptionsButton"},71236:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(37876),i=n(77216),l=n(38927),s=n(688);let a=()=>{let{fastForward:e}=(0,s.Z)();return(0,r.jsxs)(l.a,{onClick:e,children:[(0,r.jsx)(i.IconMediaForward,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:"forward 10 seconds"})]})};a.displayName="ForwardButton"},74647:(e,t,n)=>{"use strict";n.d(t,{L:()=>L});var r,i=n(37876),l=n(50743),s=n(14232),a=n(42272),o=n(17528);let c=e=>{let t=t=>{let n=(0,o.t)();return(0,i.jsx)(e,{...t,onVideoEvent:n.handleVideoEvent})};return t.displayName=`withVideoEventsContext(${e.displayName||e.name})`,t};var d=n(82018),u=n(77232);let p=u.I4.div.withConfig({componentId:"sc-ebc1c1a-0"})([".transcript--play{position:relative;width:100%;height:35vh;background:#000;&::before{display:block;width:100%;height:100%;content:' ';background-image:",";background-size:contain;background-position:center;background-repeat:no-repeat;}&::after{content:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQXJ0d29yayIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIzMS45cHgiIGhlaWdodD0iMzMuNnB4IiB2aWV3Qm94PSItMS41IC0wLjUgMjIuOSAyMy42IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyMi45IDIzLjYiIHhtbDpzcGFjZT0icHJlc2VydmUiIGZpbGw9IndoaXRlIiBzdHJva2U9IiM4ODg4ODgiIHN0cm9rZS13aWR0aD0iMC41Ij48cGF0aCBkPSJNMTkuNiwxMC45YzEsMC42LDEsMS41LDAsMkw1LjgsMjFjLTEsMC42LTEuNywwLjEtMS43LTFWMy45YzAtMS4xLDAuOC0xLjUsMS43LTFMMTkuNiwxMC45eiIvPjwvc3ZnPg==');display:flex;width:70px;height:70px;background-color:white;border:1px solid #e8e8e8;border-radius:50%;right:calc(50% - 35px);top:calc(50% - 35px);position:absolute;text-align:center;justify-content:center;align-items:center;cursor:pointer;pointer-events:none;@media (min-width:","){width:90px;height:90px;top:calc(50% - 45px);right:calc(50% - 45px);}}}.transcript--url{&:hover{color:inherit;text-decoration:underline;}}"],e=>{let{$placeholder:t}=e;return t?`url("${t}")`:"none"},d.fi.lg),h=u.I4.div.withConfig({componentId:"sc-ebc1c1a-1"})(["display:flex;height:100%;width:100%;overflow:hidden;justify-content:center;video{width:100%;}"]),m=e=>{let{className:t,onPlayClick:n,placeholder:r,transcriptUrl:l}=e,a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{a?.current&&a.current?.focus()},[]),(0,i.jsxs)(p,{$placeholder:r,className:t,"data-test":"videoPlayer--transcriptInterstitial",children:[(0,i.jsx)("button",{className:"transcript--play",onClick:n,ref:a,type:"button",children:(0,i.jsx)("span",{className:"h-sr-only",children:"View video"})}),(0,i.jsx)("div",{className:"h-bg-black h-display-block h-padding-v-default h-padding-h-default h-text-right h-text-white",children:(0,i.jsx)("a",{className:"transcript--url",href:l,rel:"noopener noreferrer",target:"_blank",title:"Download the transcript for the video",children:"transcript"})})]})};m.displayName="VideoTranscriptInterstitial",function(e){e.Transcript="transcript",e.Video="video"}(r||(r={}));let x=e=>{let{captionSource:t,placeholder:n,playNow:l,transcriptUrl:o,videoRef:c,videoSource:d,videoStyle:u}=e,[p,x]=(0,s.useState)(r.Transcript),f=(0,s.useCallback)(e=>{e.preventDefault(),x(r.Video)},[]);return p===r.Transcript&&o?(0,i.jsx)(m,{onPlayClick:f,placeholder:n,transcriptUrl:o}):(0,i.jsx)(h,{"data-test":"videoPlayer--native",children:(0,i.jsx)(a.K,{videoRef:c,children:e=>(0,s.cloneElement)(e,{crossOrigin:"anonymous",style:u,poster:n,controls:!0,autoPlay:l||p===r.Video},(0,i.jsxs)(i.Fragment,{children:[d.map(e=>(0,i.jsx)("source",{src:e.path,type:e.type},`native-video-${e.path??""}`)),t&&(0,i.jsx)("track",{kind:"captions",label:"English",src:t,srcLang:"en"})]}))})})};var f=c(x);x.displayName="NativeVideoPlayer";var g=n(63427),v=n(6462),y=n(85857),j=n(56876),b=n(67750),w=n(20519),C=n(688),k=n(21552),I=n(51857),N=n(56970),M=n(45416),V=n(41657),S=n(45715);let E=e=>{let{transcriptUrl:t}=e,{isFullscreen:n}=(0,C.Z)();return(0,i.jsxs)(S.jx,{isFullscreen:n,isVertical:!0,children:[(0,i.jsxs)("div",{className:"videoControls",children:[(0,i.jsx)("div",{className:"videoControlsLeft",children:(0,i.jsxs)("div",{children:[(0,i.jsx)(I.x,{}),(0,i.jsx)(S.Ys,{}),(0,i.jsx)(V.v,{}),(0,i.jsx)(S.l6,{isVertical:!0})]})}),(0,i.jsx)("div",{className:"videoControlsRight",children:(0,i.jsxs)("div",{children:[t&&(0,i.jsx)(M.L,{transcriptUrl:t}),(0,i.jsx)(S.PT,{}),(0,i.jsx)(k.A,{})]})})]}),(0,i.jsx)(N.z,{})]})};E.displayName="VerticalVideoControls";let F=u.I4.div.withConfig({componentId:"sc-e1ae74d2-0"})(["position:absolute;top:0;left:0;width:100%;padding:0.5em;min-height:2.5em;background-color:#000;color:#fff;font-size:1.1em;text-align:center;opacity:0.75;",";"],e=>e.isFullscreen&&` min-height: 3.5em; font-size: 2.5em; padding: 1em; `);F.displayName="VideoCaptions";let T=u.I4.div.withConfig({componentId:"sc-2902a986-0"})(["background:#000;height:auto;@media (min-width:","){min-width:",";}video{width:100%;height:",";display:block;}",";"],d.fi.md,e=>e.isVertical?null:"500px",e=>{let{isVertical:t}=e;return t?"100%":"auto"},e=>e.isFullscreen&&` position: fixed; top: 0; bottom: 0; left: 0; right: 0; -webkit-cursor-visibility: auto-hide; `);T.displayName="VideoContainer";let P=e=>{let{alwaysShowVideoControls:t,videoSource:n,captionSource:r,placeholder:l,transcriptUrl:o,hideVideoControls:c,playNow:d,focusConditions:u,style:p,isVertical:h,videoStyle:m,videoRef:x}=e;return(0,i.jsx)(a.K,{focusConditions:u,videoRef:x,children:e=>(0,i.jsx)(b.M.Consumer,{children:a=>{let u,{isPlaying:x,isFullscreen:f}=a,b=t||x||!c,{height:C}=m;return(C||h)&&(u={height:b?`calc(${C??"100%"} - 72px) `:C??"100%"}),(0,i.jsxs)(T,{"data-test":"videoPlayer--skinned",isFullscreen:f,isVertical:h,style:p,children:[d&&(0,i.jsx)(v.w,{}),(0,i.jsxs)(g.f,{className:"h-position-relative",style:u,children:[(0,i.jsx)(j.a,{captionSource:r,children:e=>e&&(0,i.jsx)(F,{id:"display",isFullscreen:f,children:e})}),(0,s.cloneElement)(e,{poster:l,style:m,autoPlay:d},(0,i.jsxs)(i.Fragment,{children:[n.map(e=>(0,i.jsx)("source",{src:e.path,type:e.type},`skinned-video-${e.path}`)),(0,i.jsx)("track",{kind:"captions",label:"English",src:r,srcLang:"en"})]})),(0,i.jsx)(y.w,{})]}),b&&h&&(0,i.jsx)(E,{transcriptUrl:o}),b&&!h&&(0,i.jsx)(w.J,{transcriptUrl:o})]})}})})};var z=c(P);P.displayName="SkinnedVideoPlayer";let L=e=>{let{alwaysShowVideoControls:t=!1,captionSource:n,hideVideoControls:r=!1,isNativePlayer:s=!1,isVertical:a,placeholder:o="",playNow:c=!1,style:d={},focusConditions:u,transcriptUrl:p,videoRef:h,videoSource:m=[],videoStyle:x={}}=e,{screenMd:g}=(0,l.e)();return!s&&g?(0,i.jsx)(z,{alwaysShowVideoControls:t,captionSource:n,focusConditions:u,hideVideoControls:r,isVertical:a,placeholder:o,playNow:c,style:d,transcriptUrl:p,videoRef:h,videoSource:m,videoStyle:x}):(0,i.jsx)(f,{captionSource:n,placeholder:o,playNow:c,transcriptUrl:p,videoRef:h,videoSource:m,videoStyle:x})};L.displayName="VideoPlayer"},85857:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(37876),i=n(85642),l=n(50743);let s=()=>{let{screenMd:e}=(0,l.e)();return(0,r.jsx)(i.y,{size:e?"large":"medium",spinnerColor:"inverse"})};s.displayName="Spinner";var a=n(688);let o=n(77232).I4.div.withConfig({componentId:"sc-ded6fdc6-0"})(["position:absolute;top:0;right:0;left:0;bottom:0;display:flex;justify-content:center;align-items:center;background:rgb(0 0 0 / 70%);"]),c=()=>{let{isBuffering:e,isPlaying:t}=(0,a.Z)();return(0,r.jsx)(r.Fragment,{children:e&&t&&(0,r.jsx)(o,{children:(0,r.jsx)(s,{})})})};c.displayName="VideoPlayerBufferingIcon"},98686:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(37876),i=n(77216),l=n(38927),s=n(688);let a=()=>{let{rewind:e}=(0,s.Z)();return(0,r.jsxs)(l.a,{onClick:e,children:[(0,r.jsx)(i.IconMediaReverse,{width:"23px"}),(0,r.jsx)("span",{className:"h-sr-only",children:"rewind 10 seconds"})]})};a.displayName="RewindButton"}}]);