!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="89fc6f41-e0bd-4910-ac88-9855ece553d3",e._sentryDebugIdIdentifier="sentry-dbid-89fc6f41-e0bd-4910-ac88-9855ece553d3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7158],{8309:(e,n,t)=>{t.d(n,{CoreProvider:()=>g});var r=t(7620),u=t(5587),a=t(51089),o=t(91305),i=t(63229),c=t(92811),s=t(10707),l=t(22899),d=t(33763),f=t(33520),v=t(82682);let P=function(e){var n=e.api,t=e.children,u=e.devTools,a=e.preloadedState,o=(0,c.useLogger)(),i=(0,s.O)(),P=(0,d.A)({api:n,devTools:u,logger:o,monitor:i,preloadedState:a});return(0,r.useEffect)(function(){P.dispatch((0,v.TI)(!0))},[P]),r.createElement(l.Kq,{store:P,context:f.CoreContextProvider},t)};var S=t(14809),p=t(84767),A=function(e){return e.children},E=(0,u.Zz)(a.h,o.o)(A),b=(0,i.f)(A),y=function(e){var n=e.children;return(0,S.L)(),r.createElement(E,null,n)},g=function(e){var n=e.api,t=e.isDev,u=e.logger,a=e.monitor,o=e.preloadedState,i=e.children,l=e.renderConfig;return r.createElement(c.I,{logger:u},r.createElement(s.u,{monitor:a},r.createElement(P,{api:n,devTools:t,preloadedState:o},(0,p.L)(l)&&r.createElement(b,l,r.createElement(y,null,i)),(0,p.F)(l)&&r.createElement(y,null,i))))}},16660:(e,n,t)=>{t.d(n,{u:()=>u});var r=t(85723),u=function(e){if(!(0,r.f)()){var n;return null!==(n=new URLSearchParams(window.location.search).get(e))&&void 0!==n?n:void 0}}},17674:(e,n,t)=>{t.d(n,{H:()=>l,y:()=>d});var r=t(98369),u=t(7620),a=t(22649),o=t(11972),i=t(30857),c=t(64170),s=t(82447),l=function(e){return e.IDLE="IDLE",e.LOADING="LOADING",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e.ENDED="ENDED",e}({}),d=function(e){var n=e.events,t=e.logPlayerDebug,d=e.playerId,f=e.setup,v=(0,u.useState)(s.H.IDLE),P=(0,r.A)(v,2),S=P[0],p=P[1],A=(0,u.useState)(l.IDLE),E=(0,r.A)(A,2),b=E[0],y=E[1],g=(0,u.useState)(0),D=(0,r.A)(g,2),m=D[0],I=D[1],h=(0,u.useState)(0),M=(0,r.A)(h,2),k=M[0],L=M[1],N=(0,u.useState)(0),U=(0,r.A)(N,2),C=U[0],G=U[1],R=(0,u.useState)(!1),T=(0,r.A)(R,2),O=T[0],B=T[1],F=(0,i.A)((0,a.Ag)(d)),K=(0,i.A)((0,a.U1)(d)),$=(0,i.A)((0,a.Bx)(d)),w=(0,i.A)(o.H_),z=(0,i.A)((0,a.OS)(F)),_=(0,c.k)(d),Y=(0,i.A)((0,a.xS)(d));return(0,u.useEffect)(function(){t("[UsePlayerState] Subscribe events");var e=[n.onBufferingEnd(function(){t("[UsePlayerState] onBufferingEnd"),y(l.PLAYING)}),n.onBufferingStart(function(){t("[UsePlayerState] onBufferingStart"),y(l.LOADING)}),n.onFirstFrameRender(function(){t("[UsePlayerState] onFirstFrameRender"),y(l.IDLE)}),n.onPause(function(){t("[UsePlayerState] onPause"),y(l.PAUSED)}),n.onPlay(function(){t("[UsePlayerState] onPlay"),y(l.PLAYING)}),n.onPlaybackComplete(function(){t("[UsePlayerState] onPlaybackComplete"),y(l.ENDED)}),n.onPlaybackProgress(function(e){L(e.playheadData.contentPlayheadMs)}),n.onSeekEnd(function(){t("[UsePlayerState] onSeekEnd"),y(l.PLAYING)}),n.onSeekStart(function(){t("[UsePlayerState] onSeekStart"),y(l.LOADING)}),n.onTimelineUpdate(function(e){var n=e.contentDurationMs;t("[UsePlayerState] onTimelineUpdate",n),I(n)}),n.onVolumeChange(function(e){var n=e.volumeLevel;t("[UsePlayerState] onVolumeChange",n),G(n)}),f.initStatus.onUpdated$.subscribe(function(e){t("[UsePlayerState] onInitStatus",e),p(e)}),f.isAdPlaying.onUpdated$.subscribe(function(e){t("[UsePlayerState] isAdPlaying",e),B(e)})];return function(){e.forEach(function(e){return e.unsubscribe()})}},[n,t,f]),(0,u.useMemo)(function(){return{autoStart:K,contentDurationMs:m,initStatus:S,isAdPlaying:O,isFirstAsset:$,isMuted:0===C,isOnePsdkAutoplaySupportEnabled:w,pipStatus:Y,playerElement:_,playheadProgressMs:k,status:b,title:z,volume:C}},[K,m,S,O,$,w,Y,_,k,b,z,C])}},22649:(e,n,t)=>{t.d(n,{$h:()=>C,Ag:()=>D,Bk:()=>N,Bx:()=>R,DT:()=>O,OS:()=>M,RC:()=>T,U1:()=>G,YA:()=>I,Z6:()=>A,aK:()=>y,dO:()=>F,k9:()=>b,n1:()=>k,oN:()=>h,p$:()=>U,p4:()=>m,qD:()=>L,qw:()=>g,xS:()=>B});var r=t(23491),u=t(28857),a=t(98786),o=t(21909),i=t(36691),c=t(80190),s=t(31361),l=t(90425),d=t(11972),f=t(34372),v=t(59816),P=t(62828),S=(0,s.V)({name:f.c,entityAdapter:P.M}),p=S.sliceSelector,A=S.entityByIdSelectorFactory,E=S.getEntityByIdSelector,b=S.selectTotalEntitiesSelector,y=(0,r.Mz)(E,function(e){return function(n){var t;return null===(t=e(n))||void 0===t?void 0:t.breakpoint}}),g=function(e){return(0,r.Mz)(y,function(n){return n(e)})},D=function(e){return(0,r.Mz)(A(e),function(e){return null==e?void 0:e.assetReference})},m=function(e){return(0,r.Mz)(c.P8,function(n){if(e){var t=n(e.id);return(0,o.s)(t)?t:void 0}})},I=function(e){return(0,r.Mz)(D(e),c.P8,function(e,n){var t=n(null==e?void 0:e.id);return(0,o.s)(t)?t:void 0})},h=(0,r.Mz)(c.P8,function(e){return function(n){if(n){var t=e(n.id);return(0,o.s)(t)?t.seoTitle:void 0}}}),M=function(e){return(0,r.Mz)(h,function(n){return n(e)})},k=(0,r.Mz)(c.P8,function(e){return function(n){var t;if(n)return null===(t=e(n.id))||void 0===t?void 0:t.pictureFormatIds}}),L=(0,r.Mz)(l.b6,d.f0,d.FX,function(e,n,t){return e===u.A.PRODUCTION?t:n}),N=function(e){return(0,r.Mz)(A(e),function(e){return null==e?void 0:e.error})},U=(0,r.Mz)(E,function(e){return function(n){var t,r;return null!==(t=null===(r=e(n))||void 0===r?void 0:r.embeddedStatus)&&void 0!==t?t:v.A.MAIN}}),C=function(e){return(0,r.Mz)(U,function(n){return n(e)})},G=function(e){return(0,r.Mz)(A(e),function(e){return(null==e?void 0:e.autoStart)||!1})},R=function(e){return(0,r.Mz)(A(e),function(e){return!e||e.isFirstAsset})},T=function(e){return(0,r.Mz)(A(e),function(e){return null==e?void 0:e.nextAssetReference})},O=(0,r.Mz)(p,function(e){return e.currentPlayingPlayerId}),B=function(e){return(0,r.Mz)(A(e),function(e){var n;return null!==(n=null==e?void 0:e.pipStatus)&&void 0!==n?n:a.rQ.IDLE})},F=function(e){return(0,r.Mz)(I(e),function(e){if(e&&e.languageCode)return{language:e.languageCode,role:i.R.PROGRAM}})}},25801:(e,n,t)=>{t.d(n,{N:()=>r});var r=function(e){return e.IDLE="IDLE",e.LOADING="LOADING",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e}({})},30186:(e,n,t)=>{t.d(n,{s:()=>r});var r=(0,t(7620).createContext)(void 0)},32558:(e,n,t)=>{t.d(n,{T:()=>r,h:()=>u});var r=function(e){return e.COMPLETED="COMPLETED",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e}({}),u=function(e){return e.IDLE="IDLE",e.LOADING="LOADING",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e}({})},36450:(e,n,t)=>{t.d(n,{a:()=>r});var r=(0,t(7620).createContext)(void 0)},36691:(e,n,t)=>{t.d(n,{R:()=>u,X:()=>r});var r=function(e){return e.MP4_1024_576="MP4_1024_576",e.VDP="VDP",e}({}),u=function(e){return e.AMBIENT_SOUND="ambient sound",e.DESCRIPTIVE="descriptive",e.ORIGINAL="original",e.PROGRAM="program",e}({})},51995:(e,n,t)=>{t.d(n,{Hz:()=>c,B3:()=>s,P4:()=>l});var r=t(60179),u=t(56088),a=t(31132),o=function(){var e=(0,a.Lg)(u.t9);if(e){var n=parseFloat(e);return isNaN(n)?void 0:n}},i=function(e){(0,a.ZB)(u.t9,"".concat(e))},c=.35,s=function(){if((0,r.p)("localStorage")){var e=o();if(void 0!==e)return e;i(c)}return c},l=function(e){(0,r.p)("localStorage")&&i(e)}},59816:(e,n,t)=>{t.d(n,{A:()=>r,X:()=>u});var r=function(e){return e.MAIN="MAIN",e.EMBED="EMBED",e.HERO_EMBED="HERO_EMBED",e.EXTERNAL_EMBED="EXTERNAL_EMBED",e}({}),u=function(e){return e.MOBILE="MOBILE",e.TABLET="TABLET",e.DESKTOP="DESKTOP",e}({})},64170:(e,n,t)=>{t.d(n,{k:()=>a});var r=t(98369),u=t(7620),a=function(e){var n=(0,u.useState)(null),t=(0,r.A)(n,2),a=t[0],o=t[1];return(0,u.useEffect)(function(){o(document.getElementById(e))},[e]),a}},78500:(e,n,t)=>{t.d(n,{GoogimaInterfaceProvider:()=>s});var r=t(98369),u=t(7620),a=t(85599),o=t(30186),i=t(25801),c=function(e,n){var t=(0,u.useState)(i.N.IDLE),a=(0,r.A)(t,2),o=a[0],c=a[1],s=(0,u.useState)(0),l=(0,r.A)(s,2),d=l[0],f=l[1],v=(0,u.useState)(0),P=(0,r.A)(v,2),S=P[0],p=P[1],A=(0,u.useState)(0),E=(0,r.A)(A,2),b=E[0],y=E[1];return(0,u.useEffect)(function(){if(e){var t=[e.onAdPause(function(){n("[useGoogimaState] onAdPause"),c(i.N.PAUSED)}),e.onAdPlay(function(){n("[useGoogimaState] onAdPlay"),c(i.N.PLAYING)}),e.onAdResume(function(){n("[useGoogimaState] onAdResume"),c(i.N.PLAYING)}),e.onAdComplete(function(){n("[useGoogimaState] onAdComplete"),c(i.N.IDLE)}),e.onAdPlaybackProgress(function(e){f(e.playheadMs)}),e.onAdTimelineUpdate(function(e){var t=e.contentDurationMs;n("[useGoogimaState] onAdTimelineUpdate"),p(t)}),e.onAdVolumeChange(function(e){var t=e.level;n("[useGoogimaState] onAdVolumeChange"),y(t)})];return function(){t.forEach(function(e){return e.unsubscribe()})}}},[e,n]),(0,u.useMemo)(function(){return{durationMs:S,isMuted:0===b,playheadMs:d,status:o,volume:b}},[S,d,o,b])},s=function(e){var n=e.children,t=e.setup.adSDK.update,i=(0,a.i)(),s=i.logPlayerDebug,l=i.playerId,d=(0,u.useState)(),f=(0,r.A)(d,2),v=f[0],P=f[1],S=c(null==v?void 0:v.events,s),p=(0,u.useCallback)(function(e){P(e),t(e)},[t]),A=(0,u.useMemo)(function(){return{adPlayerId:"".concat(l,"-ads"),sdk:v,state:S,updateSDK:p}},[l,v,S,p]);return u.createElement(o.s.Provider,{value:A},n)}},79932:(e,n,t)=>{t.d(n,{A:()=>S,PlayerInterfaceProvider:()=>A});var r=t(98369),u=t(7620),a=t(22899),o=t(33520),i=function(){var e=(0,u.useState)(!1),n=(0,r.A)(e,2),t=n[0],a=n[1];return(0,u.useEffect)(function(){a(!0)},[]),t},c=t(16660),s=function(e){return"PlayerInterfaceProvider - ".concat(e," has changed")},l=function(e){var n=e.assetSDK,t=e.moduleName,r=e.playerId,a=e.setup,o=e.store,i=(0,u.useMemo)(function(){var e=function(e){if((0,c.u)("psdk_debug")){for(var n,u=arguments.length,a=Array(u>1?u-1:0),o=1;o2)||void 0===arguments[2]||arguments[2];t("[".concat(e,"] callbacks.setVolume()"),{level:r,shouldSavePreference:u}),n.setVolume(r),u&&(0,f.P4)(r)},stop:function(e){t("[".concat(e,"] callbacks.stop()")),n.stop()},setPiPStatus:function(e){r.pipStatus.update(e)},setIsAdPlaying:function(e){t("callbacks.setIsAdPlaying(".concat(e,")")),r.isAdPlaying.update(e)},changeFullscreen:function(e){t("callbacks.changeFullscreen()",e),r.fullscreenState.update(e)}}},P=function(e){var n=e.assetSDK,t=e.setup;return{onBufferingEnd:function(e){return n.bufferingEnd$.subscribe(e)},onBufferingStart:function(e){return n.bufferingStart$.subscribe(e)},onError:function(e){return n.error$.subscribe(e)},onFirstFrameRender:function(e){return n.firstFrameRender$.subscribe(e)},onFullscreenChanged:function(e){return t.fullscreenState.onUpdated$.subscribe(e)},onPause:function(e){return n.pause$.subscribe(e)},onPlay:function(e){return n.play$.subscribe(e)},onPlaybackComplete:function(e){return n.playbackComplete$.subscribe(e)},onPlaybackInfoResolutionEnd:function(e){return n.playbackInfoResolutionEnd$.subscribe(e)},onPlaybackInfoResolutionStart:function(e){return n.playbackInfoResolutionStart$.subscribe(e)},onPlaybackProgress:function(e){return n.playbackProgress$.subscribe(e)},onPlaybackSessionEnd:function(e){return n.playbackSessionEnd$.subscribe(e)},onReplay:function(e){return t.replay.onUpdated$.subscribe(e)},onSeekEnd:function(e){return n.seekEnd$.subscribe(e)},onSeekStart:function(e){return n.seekStart$.subscribe(e)},onTimelineUpdate:function(e){return n.timelineUpdate$.subscribe(e)},onVolumeChange:function(e){return n.volumeChange$.subscribe(e)}}},S=(0,u.createContext)(void 0),p=function(e){var n=e.assetSDK,t=e.children,a=e.moduleName,o=e.playerId,c=e.setup,s=e.store,f=(0,u.useState)(),p=(0,r.A)(f,2),A=p[0],E=p[1],b=i(),y=l({assetSDK:n,moduleName:a,playerId:o,setup:c,store:s});(0,u.useEffect)(function(){var e=c.adSDK.onUpdated$.subscribe(function(e){E(e)});return function(){e.unsubscribe()}},[c.adSDK]);var g=(0,u.useMemo)(function(){return v({assetSDK:n.callbacks,logPlayerDebug:y,setup:c})},[n.callbacks,y,c]),D=(0,u.useMemo)(function(){return P({assetSDK:n.events,setup:c})},[n.events,c]),m=(0,d.y)({events:D,logPlayerDebug:y,playerId:o,setup:c}),I=(0,u.useMemo)(function(){return{adSDK:A,callbacks:g,events:D,isReady:b,logPlayerDebug:y,playerId:o,state:m}},[A,g,D,b,y,o,m]);return u.createElement(S.Provider,{value:I},t)},A=function(e){var n=e.assetSDK,t=e.children,r=e.moduleName,i=e.playerId,c=e.setup,s=e.store;return u.createElement(a.Kq,{store:s,context:o.CoreContextProvider},u.createElement(p,{assetSDK:n,moduleName:r,playerId:i,setup:c,store:s},t))}},82447:(e,n,t)=>{t.d(n,{H:()=>r});var r=function(e){return e.IDLE="IDLE",e.READY="READY",e}({})},85599:(e,n,t)=>{t.d(n,{i:()=>a});var r=t(7620),u=t(79932),a=function(){var e=(0,r.useContext)(u.A);if(!e)throw Error("Could not find PlayerInterface context value; please ensure the component is wrapped in a ");return e}},90111:(e,n,t)=>{t.d(n,{FreewheelInterfaceProvider:()=>s});var r=t(98369),u=t(7620),a=t(85599),o=t(36450),i=t(32558),c=function(e,n){var t=(0,u.useState)(i.h.IDLE),a=(0,r.A)(t,2),o=a[0],c=a[1],s=(0,u.useState)(0),l=(0,r.A)(s,2),d=l[0],f=l[1],v=(0,u.useState)(0),P=(0,r.A)(v,2),S=P[0],p=P[1],A=(0,u.useState)(0),E=(0,r.A)(A,2),b=E[0],y=E[1];return(0,u.useEffect)(function(){if(e){var t=[e.onAdPause(function(){n("[useFreewheelState] onAdPause"),c(i.h.PAUSED)}),e.onAdPlay(function(){n("[useFreewheelState] onAdPlay"),c(i.h.PLAYING)}),e.onAdResume(function(){n("[useFreewheelState] onAdResume"),c(i.h.PLAYING)}),e.onAdComplete(function(){n("[useFreewheelState] onAdComplete"),c(i.h.IDLE)}),e.onAdPlaybackProgress(function(e){f(e.playheadMs)}),e.onAdTimelineUpdate(function(e){var t=e.contentDurationMs;n("[useFreewheelState] onAdTimelineUpdate"),p(t)}),e.onAdVolumeChange(function(e){var t=e.level;n("[useFreewheelState] onAdVolumeChange"),y(t)})];return function(){t.forEach(function(e){return e.unsubscribe()})}}},[e,n]),(0,u.useMemo)(function(){return{durationMs:S,isMuted:0===b,playheadMs:d,status:o,volume:b}},[S,d,o,b])},s=function(e){var n=e.children,t=e.setup.adSDK.update,i=(0,a.i)(),s=i.logPlayerDebug,l=i.playerId,d=(0,u.useState)(),f=(0,r.A)(d,2),v=f[0],P=f[1],S=c(null==v?void 0:v.events,s),p=(0,u.useCallback)(function(e){P(e),t(e)},[t]),A=(0,u.useMemo)(function(){return{adPlayerId:"".concat(l,"-ads"),sdk:v,state:S,updateSDK:p}},[l,v,S,p]);return u.createElement(o.a.Provider,{value:A},n)}}}]); //# sourceMappingURL=7158-9b521873ea6d9f65.js.map