export declare const nativeBridgeJs = "(function(){var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),t=null,n=!0,r=`__bbNativeHistoryStack`;function i(){return window[r]||null}function a(e){e?window[r]={stack:[],isNativeMode:!0}:window[r]&&(window[r].isNativeMode=!1)}function o(){let e=i();if(e!=null&&e.isNativeMode)return e.stack.length>0;let{params:t}=s();return!!t.bbch}function s(){let e=window.location.hash.slice(1);if(!e)return{basePath:``,params:{}};let t=e.indexOf(`?`),n=``,r=``;t===-1?e.includes(`=`)?r=e:n=e:(n=e.substring(0,t),r=e.substring(t+1));let i={};if(r){let e=r.split(`&`);for(let t of e){let[e,n]=t.split(`=`);e&&n&&(i[e]=decodeURIComponent(n))}}return{basePath:n,params:i}}function c(){if(n)return t;let{params:e}=s(),r=e.bbch;if(!r)return null;try{let e;if(!RegExp(`^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`).test(r))return console.warn(`Invalid base64 in bbch parameter:`,r),null;e=decodeURIComponent(atob(r));let t=JSON.parse(e);t.pageType&&![`main`,`detailPage`,`overviewPage`,`searchPage`,`gridPage`].includes(t.pageType)&&(t.pageType=`main`);let n=/^[\\w-]{0,128}$/;return t.contentId&&!n.test(t.contentId)&&(t.contentId=void 0),t.contextId&&!n.test(t.contextId)&&(t.contextId=void 0),t.blockId&&!n.test(t.blockId)&&(t.blockId=void 0),t}catch(e){return console.warn(`Failed to parse navigation state from hash:`,e),null}}function l(e,r=!1){var a,o;let c={pageType:e.pageType};if(e.contentId&&(c.contentId=e.contentId),e.contentType&&(c.contentType=e.contentType),e.searchQuery&&(c.searchQuery=e.searchQuery),e.clickedSearchResult&&(c.clickedSearchResult=e.clickedSearchResult),e.activeBlockId&&(c.blockId=e.activeBlockId),(a=e.currentContext)!=null&&a.contentId&&(c.contextId=e.currentContext.contentId),e.detailPagePlayout&&(c.playout=e.detailPagePlayout),(o=e.collectionContext)!=null&&o.id&&(c.collectionId=e.collectionContext.id),e.activeSubChannelId&&(c.subChannelId=e.activeSubChannelId),n){t=c.pageType===`main`&&!c.contentId&&!c.searchQuery&&!c.subChannelId?null:c;return}if(c.pageType===`main`&&!c.contentId&&!c.searchQuery&&!c.subChannelId){let{basePath:e,params:t}=s();delete t.bbch;let n=Object.entries(t).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(`&`),i;i=e?n?`#${e}?${n}`:`#${e}`:n?`#${n}`:window.location.pathname+window.location.search,new URL(i,window.location.href).href!==window.location.href&&(r?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));return}let l=JSON.stringify(c),u=btoa(encodeURIComponent(l)),{basePath:d,params:f}=s();f.bbch=u;let p=Object.entries(f).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(`&`),m;if(m=d?`${window.location.pathname}${window.location.search}#${d}?${p}`:`${window.location.pathname}${window.location.search}#${p}`,new URL(m,window.location.href).href===window.location.href)return;let h=i();if(h!=null&&h.isNativeMode){let e=window.location.hash;if(r)h.stack.length>0?h.stack[h.stack.length-1]=m:h.stack.push(m);else if(e){let e=window.location.href;(h.stack.length===0||h.stack[h.stack.length-1]!==e)&&h.stack.push(e)}window.history.replaceState(null,``,m)}else r?window.history.replaceState(null,``,m):window.history.pushState(null,``,m);h!=null&&h.isNativeMode&&window.dispatchEvent(new CustomEvent(`bbHashChange`))}var u={},d=new WeakMap,f=null;function p(e,t){let n=e[t];return n||(n=new Set,e[t]=n),n}function m(e,t){let n;if(f){let e=d.get(f);e||(e={},d.set(f,e)),n=e}else n=u;let r=p(n,e);return r.add(t),()=>{r.delete(t)}}function h(e,t){let n=new Set;if(f){let t=d.get(f);t!=null&&t[e]&&t[e].forEach(e=>n.add(e))}if(u[e]&&u[e].forEach(e=>n.add(e)),e===`CONTENT_BLOCKED`){let e=t;(f||document).dispatchEvent(new CustomEvent(`contentblocked`,{bubbles:!0,composed:!0,detail:{contentId:e.contentId,contentType:e.contentType,reason:e.violation}}))}n.size!==0&&n.forEach(n=>{try{n(t)}catch(t){console.error(`[ChannelEvents] Error in handler for ${e}:`,t)}})}var g=null,_=null,v=null;function y(e){_=e}function b(e){v=e}var x=50,S=`__bbNativeBridgeState`;function C(){return window[S]||(window[S]={commandQueue:[],appCallbacksReady:!1}),window[S]}function w(){return C().commandQueue}function T(e){C().commandQueue=e}function E(){return C().appCallbacksReady}function D(e){C().appCallbacksReady=e}function O(e){let t=w();t.length>=x&&(console.warn(`[NativeBridge] Command queue full, dropping oldest command`),t.shift()),t.push(e)}function ee(){D(!0);let e=w();T([]),e.forEach(e=>{switch(e.type){case`navigateToPage`:h(`NATIVE_NAVIGATE_TO_PAGE`,{page:e.page});break;case`navigateBack`:h(`NATIVE_NAVIGATE_BACK`,{});break;case`search`:h(`NATIVE_SEARCH`,{query:e.query});break;case`playEntity`:h(`NATIVE_PLAY_ENTITY`,{entityId:e.videoId,entityType:e.entityType,blockId:e.blockId,playout:e.playout});break;case`updateDetailEntity`:h(`NATIVE_UPDATE_DETAIL_ENTITY`,{entityId:e.videoId});break;case`navigateToSubChannel`:h(`NATIVE_NAVIGATE_TO_SUBCHANNEL`,{subChannelId:e.subChannelId});break;case`setNavigationState`:H(e.state);break}})}function k(){D(!1),T([])}var A=`__bbPlayerRegistry`,j=`__bbActivePlayerId`;function M(){return typeof window>`u`?new Map:(window[A]||(window[A]=new Map),window[A])}function N(){return typeof window>`u`?null:window[j]||null}function P(e){typeof window>`u`||(window[j]=e,window.ReactNativeWebView&&R(`ACTIVE_PLAYER_CHANGE`,{playerId:e}))}function F(e){let t=M();if(e)return t.get(e)||null;let n=N();if(n)return t.get(n)||null;let r=t.values().next();return r.done?null:r.value}function I(e){let t=F(e);if(!t||!t.ref.current)return null;let n=t.ref.current;return{isPlaying:typeof n.isPlaying==`function`?n.isPlaying():!1,currentTime:typeof n.getCurrentTime==`function`?n.getCurrentTime():0,duration:typeof n.getDuration==`function`?n.getDuration():0,volume:typeof n.getVolume==`function`?n.getVolume():1,isMuted:typeof n.isMuted==`function`?n.isMuted():!1,isFullscreen:typeof n.isFullscreen==`function`?n.isFullscreen():!1}}function L(){let e=M(),t=N();return Array.from(e,([e])=>({id:e,isActive:e===t,state:I(e)}))}function te(){typeof window<`u`&&(delete window[A],delete window[j])}function R(e,t,n){if(window.ReactNativeWebView){let r=n?{type:e,payload:t,requestId:n}:{type:e,payload:t};window.ReactNativeWebView.postMessage(JSON.stringify(r))}}function z(){if(_)return _();let e=c();return e===null?{pageType:`main`}:e}function B(){return v?v():o()}function V(){return 0}function ne(e){l({pageType:e.pageType,contentId:e.contentId,contentType:e.contentType,searchQuery:e.searchQuery,clickedSearchResult:e.clickedSearchResult,activeBlockId:e.blockId,detailPagePlayout:e.playout,activeSubChannelId:e.subChannelId,currentEntity:null,currentContext:null,collectionContext:null,activeBlockConfig:null,debouncedSearchQuery:e.searchQuery||``,searchResults:[],searchLoading:!1},!0)}function H(e){ne(e),e.pageType===`main`?h(`NATIVE_NAVIGATE_TO_PAGE`,{page:`main`}):e.pageType===`searchPage`?(h(`NATIVE_NAVIGATE_TO_PAGE`,{page:`search`}),e.searchQuery&&h(`NATIVE_SEARCH`,{query:e.searchQuery})):e.pageType===`detailPage`&&e.contentId?h(`NATIVE_PLAY_ENTITY`,{entityId:e.contentId,entityType:e.contentType||`mediaclip`,blockId:e.blockId,playout:e.playout}):e.pageType===`overviewPage`&&e.contentId&&h(`NATIVE_PLAY_ENTITY`,{entityId:e.contentId,entityType:e.contentType||`mediacliplist`,blockId:e.blockId,playout:e.playout})}function U(e,t){let n=t===void 0?B():t;g&&g(e,n,V()),R(`NAVIGATION_STATE_CHANGE`,{state:e,canGoBack:n,stackDepth:V()})}function re(){R(`DEBUG`,{bridgeInit:!0,hasRNWebView:!!window.ReactNativeWebView}),window.ReactNativeWebView&&(a(!0),window.__bbChannelNavigateTo=e=>{E()?h(`NATIVE_NAVIGATE_TO_PAGE`,{page:e}):O({type:`navigateToPage`,page:e})},window.__bbChannelNavigateBack=()=>{E()?h(`NATIVE_NAVIGATE_BACK`,{}):O({type:`navigateBack`})},window.__bbChannelSearch=e=>{E()?h(`NATIVE_SEARCH`,{query:e}):O({type:`search`,query:e})},window.__bbChannelPlayVideo=(e,t)=>{E()?h(`NATIVE_PLAY_ENTITY`,{entityId:e,entityType:t}):O({type:`playEntity`,videoId:e,entityType:t})},window.__bbChannelSetNavigationState=e=>{try{let t=JSON.parse(e);if(!t||typeof t.pageType!=`string`){console.error(`[NativeBridge] Invalid navigation state: missing pageType`);return}let n=t;E()?H(n):O({type:`setNavigationState`,state:n})}catch(e){console.error(`[NativeBridge] Failed to parse navigation state JSON:`,e)}},window.__bbChannelGetNavigationState=e=>{R(`NAVIGATION_STATE_RESPONSE`,{state:z(),canGoBack:B(),requestId:e},e)},window.__bbChannelNavigateToEntity=(e,t,n)=>{let r={};if(n)try{r=JSON.parse(n)||{}}catch(e){console.error(`[NativeBridge] Failed to parse options JSON:`,e)}E()?h(`NATIVE_PLAY_ENTITY`,{entityId:e,entityType:t,blockId:r.blockId,playout:r.playout}):O({type:`playEntity`,videoId:e,entityType:t,blockId:r.blockId,playout:r.playout})},window.__bbChannelUpdateDetailEntity=e=>{E()?h(`NATIVE_UPDATE_DETAIL_ENTITY`,{entityId:e}):O({type:`updateDetailEntity`,videoId:e})},window.__bbChannelNavigateToSubChannel=e=>{E()?h(`NATIVE_NAVIGATE_TO_SUBCHANNEL`,{subChannelId:e}):O({type:`navigateToSubChannel`,subChannelId:e})},window.__bbChannelResetNavigation=()=>{E()?h(`NATIVE_NAVIGATE_TO_PAGE`,{page:`main`}):O({type:`navigateToPage`,page:`main`})},window.__bbChannelSetJwt=e=>{window.__bbSetJwt&&window.__bbSetJwt(e)},window.__bbChannelSetRpcToken=e=>{window.__bbSetRpcToken&&window.__bbSetRpcToken(e)},window.__bbChannelPlayerPlay=e=>{K(e,e=>{typeof e.play==`function`&&e.play()})},window.__bbChannelPlayerPause=e=>{K(e,e=>{typeof e.pause==`function`&&e.pause()})},window.__bbChannelPlayerSeek=(e,t)=>{K(t,t=>{typeof t.seek==`function`&&t.seek(e)})},window.__bbChannelPlayerSetVolume=(e,t)=>{K(t,t=>{typeof t.setVolume==`function`&&t.setVolume(e)})},window.__bbChannelPlayerSetMuted=(e,t)=>{K(t,t=>{typeof t.setMuted==`function`&&t.setMuted(e)})},window.__bbChannelPlayerEnterFullscreen=e=>{K(e,e=>{typeof e.enterFullscreen==`function`&&e.enterFullscreen()})},window.__bbChannelPlayerExitFullscreen=e=>{K(e,e=>{typeof e.exitFullscreen==`function`&&e.exitFullscreen()})},window.__bbChannelGetPlayerState=(e,t)=>{let n=F(t),r=(n==null?void 0:n.id)||null;R(`PLAYER_STATE_RESPONSE`,{...n&&n.ref.current?I(r||void 0):null,playerId:r},e)},window.__bbChannelGetPlayers=e=>{R(`PLAYERS_RESPONSE`,{players:L()},e)},window.__bbChannelSetActivePlayer=e=>{P(e)},oe(),ue(),window.addEventListener(`popstate`,()=>{W(B()),U(z())}),window.addEventListener(`bbHashChange`,()=>{W(B()),U(z())}),R(`DEBUG`,{clickInterceptorRegistering:!0}),document.addEventListener(`click`,e=>{let t=e.target.closest(`a`);if(R(`DEBUG`,{clickInterceptor:!0,hasAnchor:!!t,href:(t==null?void 0:t.href)||null,target:(t==null?void 0:t.target)||null}),!t||!t.href)return;let n=t.href;if(!(n.startsWith(`javascript:`)||n.startsWith(`#`)))try{let r=new URL(n).hostname;(!(r===`bluebillywig.com`||r.endsWith(`.bluebillywig.com`)||r===`bbvms.com`||r.endsWith(`.bbvms.com`)||r===`localhost`||r===`127.0.0.1`)||t.target===`_blank`)&&(e.preventDefault(),e.stopPropagation(),R(`EXTERNAL_LINK`,{url:n}))}catch{}},!0))}function W(e){R(`CAN_GO_BACK_CHANGE`,{canGoBack:e})}function G(e,t,n=!1){if(!window.ReactNativeWebView)return()=>{};let r=M();return r.set(e,{id:e,ref:t}),R(`PLAYERS_CHANGE`,{players:L()}),n&&P(e),()=>{r.delete(e),N()===e&&P(null),R(`PLAYERS_CHANGE`,{players:L()})}}function K(e,t){let n=F(e);n&&n.ref.current&&t(n.ref.current)}function ie(e){return G(`default`,e,!0)}function ae(e,t){R(`SEARCH`,{query:e,resultCount:t})}function q(e,t,n){R(`ANALYTICS`,{sessionId:e,eventCode:t,properties:n})}function oe(){window.ReactNativeWebView&&(window.bbCustomStatistics={send:(e,t,n)=>{q(e,t,n)}})}var J=null;function Y(){return J||(J=`ch_${Date.now()}_${Math.random().toString(36).substring(2,9)}`),J}function se(){J=null}function ce(e,t,n){if(!window.ReactNativeWebView)return;let r=Y(),i={ev:`xst`,et:`Channel`,id:e,si:r,ts:Date.now()};t&&(i.ct=t),n&&(i.pet=`Channel`,i.pid=n),q(r,`xst`,i)}function le(e,t,n,r,i,a){if(!window.ReactNativeWebView)return;let o=Y();q(o,`xcl`,{ev:`xcl`,et:`ChannelItem`,id:`${e}#${n}`,si:o,cet:i.toLowerCase(),cid:r,gbt:t,\"pet#0\":`ChannelBlock`,\"pid#0\":e,\"pet#1\":`Channel`,\"pid#1\":a,ts:Date.now()})}var X=[];function ue(){window.ReactNativeWebView&&(Z(),X.push(m(`CHANNEL_LOADED`,e=>{ce(e.channelId,e.channelTitle,e.parentChannelId)})),X.push(m(`ITEM_CLICK`,e=>{le(e.blockId,e.blockType,e.itemIndex,e.entityId,e.entityType,e.channelId)})),X.push(m(`SEARCH`,e=>{ae(e.query,e.resultCount)})),X.push(m(`PLAYER_ANALYTICS`,e=>{q(e.sessionId,e.eventCode,e.properties)})))}function Z(){X.forEach(e=>e()),X=[]}function Q(){Z(),te(),k(),se(),g=null}var de=e((e=>{var t=Symbol.for(`react.consumer`),n=Symbol.for(`react.context`),r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i=Object.assign,a={};function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||r}o.prototype.isReactComponent={},o.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function s(){}s.prototype=o.prototype;function c(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||r}var l=c.prototype=new s;l.constructor=c,i(l,o.prototype),l.isPureReactComponent=!0,Array.isArray,e.createContext=function(e){return e={$$typeof:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:t,_context:e},e}})),fe=e(((e,t)=>{t.exports=de()}))();function pe(e){switch(e){case`project`:case`Project`:return`p`;case`mediaclip`:case`Mediaclip`:case`MediaClip`:return`c`;default:return`l`}}var me={cliplist:`MediaClipList`,mediaclip:`MediaClip`,project:`Project`};function $(e){let{contentType:t,imageId:n,width:r,height:i=0,extension:a=``,scalingMode:o=`cover`,set:s=`default`,removeProtocol:c=!1,baseurl:l,imgCacheDate:u}=e;if(!n)return``;let d=c?`//${l.replace(/(^\\w+:|^)\\/\\//,``)}`:l,f=a?`.${a}`:``,p=u?`&${u}`:``;return`${d}/${t}/${n}/pthumbnail/${r?Math.max(Math.round(Number(r)/128)*128,128/2):`default`}/${i||`default`}${f}?scalingMode=${o}&set=${s}${p}`}var he=e((e=>{}));e(((e,t)=>{t.exports=he()}))(),(0,fe.createContext)({onPlayRequest:()=>{},shouldSkipFirstPlayerBlock:!1,isNativeMode:!1}),window.__bbNativeMode={isNative:!0,useShadowDom:!1,playerStrategy:{onPlayRequest:(e,t,n,r)=>{var i,a,o,s,c,l,u,d,f;if(typeof window>`u`||!window.ReactNativeWebView)return;let p=window.__bbChannelBaseUrl||``,m=((i=r.fromBlock)==null?void 0:i.playout)||`default`;if(!e.type){console.warn(`[NativePlayerStrategy] entity missing type, skipping MEDIA_PLAY`,{id:e.id});return}let h=pe(e.type),g=document.querySelector(`.bb-channel-wrapper`),_=g?getComputedStyle(g):null,v=_==null||(a=_.getPropertyValue(`--bb-channel-detail-page-background-color`))==null?void 0:a.trim(),y=v&&/^#[0-9a-fA-F]{3,8}$/.test(v)?v:`#000`,b=_==null||(o=_.getPropertyValue(`--bb-channel-detail-page-text-color`))==null?void 0:o.trim(),x=b&&/^#[0-9a-fA-F]{3,8}$/.test(b)?b:`#fff`,S=((s=e._imageCache)==null?void 0:s.type)??((c=e.type)==null?void 0:c.toLowerCase())??`mediaclip`,C=((l=e._imageCache)==null||(l=l.extension)==null?void 0:l.replace(/^\\./,``))||`jpg`,w=$({contentType:S,imageId:e.id,width:((u=e._imageCache)==null?void 0:u.width)??Math.round(window.devicePixelRatio*384).toString(),height:((d=e._imageCache)==null?void 0:d.height)??`default`,extension:C,scalingMode:`cover`,set:`default`,baseurl:p}),T=$({contentType:S,imageId:e.id,width:`64`,height:`default`,extension:C,scalingMode:`cover`,set:`default`,baseurl:p}),E={jsonUrl:`${p}/p/${m}/${h}/${e.id}.json`,playoutId:m,autoplay:!0,thumbnailUrl:w,blurredThumbnailUrl:T,title:e.title||``,entityId:e.id,entityType:e.type,playerBlockId:t,backgroundColor:y,textColor:x,...r.contextItem&&{contextEntityType:e.type,contextEntityId:e.id,contextCollectionType:me[(f=r.contextItem.contentType)==null?void 0:f.toLowerCase()]||r.contextItem.contentType||`MediaClipList`,contextCollectionId:r.contextItem.contentId},...r.isInlinePlayer!==void 0&&{isInlinePlayer:r.isInlinePlayer},...r.blockId!==void 0&&{blockId:r.blockId},...r.listIndex!==void 0&&{listIndex:r.listIndex},...r.showThumbnailAsBackground&&{showThumbnailAsBackground:!0}};window.ReactNativeWebView.postMessage(JSON.stringify({type:`MEDIA_PLAY`,payload:E}))},shouldSkipFirstPlayerBlock:!0,isNativeMode:!0},onInit:e=>{var t;window.__bbChannelBaseUrl=(t=e.publicationData)==null?void 0:t.baseurl,Q()},onReady:e=>{window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({type:`READY`,payload:{channelId:e.appConfig.id,channelName:e.appConfig.name}}))}},window.__bbBridge={registerPlayer:G,registerPlayerCallbacks:ie,setActivePlayer:P,subscribeToEvent:m,registerNavigationStateGetter:y,registerCanGoBackGetter:b,markAppCallbacksReady:ee,resetAppCallbacksReady:k,destroyNativeBridge:Q},re()})();"; export declare const channelJs = "(function(){var e=document.createElement(`style`);e.textContent=`.bb-channel-navigation-bar{width:100%;padding:0;position:relative}.bb-channel-navigation-bar .nav-container{padding:10px var(--bb-channel-padding);flex-wrap:nowrap;gap:10px;transition:all .3s;display:flex;position:relative;overflow:visible}.bb-channel-navigation-bar .nav-items-measurement{visibility:hidden;pointer-events:none;gap:10px;display:flex;position:absolute;top:0;left:0}.bb-channel-navigation-bar .nav-item-measure{white-space:nowrap}.bb-channel-navigation-bar .overflow-menu-wrapper{align-items:center;display:flex;position:relative}.bb-channel-navigation-bar .overflow-menu-button{justify-content:center;align-items:center;min-width:auto;padding:10px 12px;display:flex}.bb-channel-navigation-bar .overflow-menu-button svg{display:block}.bb-channel-navigation-bar .overflow-menu-button:hover{opacity:.9}.bb-channel-navigation-bar .overflow-dropdown{z-index:100;flex-direction:column;gap:4px;min-width:180px;padding:5px;animation:.2s slideDown;display:flex;position:absolute;top:calc(100% + 5px);right:0;box-shadow:0 4px 12px #00000026}.bb-channel-navigation-bar .overflow-dropdown-item{cursor:pointer;width:100%;font-size:calc(16px * var(--bb-font-scale-navigation,1));text-align:left;white-space:nowrap;background:0 0;border:none;padding:10px 16px;font-weight:500;-webkit-text-decoration:underline #0000;text-decoration:underline #0000;transition:color .3s,background-color .3s,text-decoration-color .3s}.bb-channel-navigation-bar .overflow-dropdown-item:hover[data-underline-hover=true],.bb-channel-navigation-bar .overflow-dropdown-item.active[data-underline-active=true]{text-decoration-color:currentColor}.bb-channel-navigation-bar .overflow-dropdown-item.active{pointer-events:none;font-weight:600}.bb-channel-navigation-bar .overflow-dropdown-item:hover{opacity:.9}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.bb-channel-navigation-bar .nav-item{cursor:pointer;font-size:calc(16px * var(--bb-font-scale-navigation,1));white-space:nowrap;background:0 0;border:none;padding:10px 20px;font-weight:500;-webkit-text-decoration:underline #0000;text-decoration:underline #0000;transition:color .3s,background-color .3s,text-decoration-color .3s;position:relative}.bb-channel-navigation-bar .nav-item:hover[data-underline-hover=true],.bb-channel-navigation-bar .nav-item.active[data-underline-active=true]{text-decoration-color:currentColor}.bb-channel-navigation-bar .nav-item.active{pointer-events:none}.bb-channel-navigation-bar .nav-item:focus{outline:2px solid var(--bb-channel-button-color,#007bff);outline-offset:2px}.bb-channel-navigation-bar .nav-item:focus:not(:focus-visible){outline:none}.bb-channel-navigation-bar .mobile-menu-overlay{z-index:999;background-color:#000000b3;animation:.3s fadeIn;position:fixed;top:0;bottom:0;left:0;right:0}.bb-channel-navigation-bar .mobile-menu{z-index:1000;flex-direction:column;justify-content:center;align-items:center;width:100%;padding:20px;animation:.3s fadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow-y:auto}.bb-channel-navigation-bar .mobile-menu-items{flex-direction:column;justify-content:space-around;align-items:stretch;gap:16px;width:auto;min-width:min(65%,230px);max-width:max(400px,95%);max-height:90vh;display:flex;overflow-y:auto}.bb-channel-navigation-bar .mobile-nav-item{cursor:pointer;width:100%;font-size:calc(20px * var(--bb-font-scale-navigation,1));text-align:center;background:0 0;border:none;padding:12px 16px;-webkit-text-decoration:underline #0000;text-decoration:underline #0000;transition:color .3s,background-color .3s,text-decoration-color .3s}.bb-channel-navigation-bar .mobile-nav-item:hover[data-underline-hover=true],.bb-channel-navigation-bar .mobile-nav-item.active[data-underline-active=true]{text-decoration-color:currentColor}.bb-channel-navigation-bar .mobile-menu-close{top:var(--base-padding);right:max(var(--bb-channel-padding), var(--base-padding));cursor:pointer;background:0 0;border:none;padding:8px;transition:all .3s;position:absolute}.bb-channel-navigation-bar .mobile-menu-close:hover{opacity:.7}.bb-channel-navigation-bar .mobile-menu-close svg{display:block}.bb-channel-navigation-bar .hamburger-button{cursor:pointer;margin-left:auto;margin-right:max(var(--bb-channel-padding), var(--base-padding));margin-top:var(--base-padding);border:none;border-radius:5px;padding:8px;transition:all .3s;display:none}.bb-channel-navigation-bar .hamburger-button:hover{opacity:.9}.bb-channel-navigation-bar .hamburger-button:active{opacity:.8}.bb-channel-navigation-bar .hamburger-button:focus{outline:2px solid var(--bb-channel-button-color,#007bff);outline-offset:2px}.bb-channel-navigation-bar .hamburger-button:focus:not(:focus-visible){outline:none}.bb-channel-navigation-bar .hamburger-button svg{display:block}.bb-channel-navigation-bar:has(+.bb-channel-featured-header-wrapper) .hamburger-button{z-index:3;position:absolute;top:0;right:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}:not(:-webkit-any(.bb-channel-size-S,.bb-channel-size-M)) .bb-channel-navigation-bar:not(:has(+.bb-channel-featured-header-wrapper)){padding-bottom:var(--base-padding)}:not(:-moz-any(.bb-channel-size-S,.bb-channel-size-M)) .bb-channel-navigation-bar:not(:has(+.bb-channel-featured-header-wrapper)){padding-bottom:var(--base-padding)}:not(:is(.bb-channel-size-S,.bb-channel-size-M)) .bb-channel-navigation-bar:not(:has(+.bb-channel-featured-header-wrapper)){padding-bottom:var(--base-padding)}.bb-channel-size-S .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-M .bb-channel-navigation-bar .hamburger-button{display:block}.bb-channel-size-S .bb-channel-navigation-bar .nav-container,.bb-channel-size-M .bb-channel-navigation-bar .nav-container,.bb-channel-size-L .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-XL .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-XXL .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-XXXL .bb-channel-navigation-bar .hamburger-button{display:none}.bb-channel-size-L .bb-channel-navigation-bar .nav-container,.bb-channel-size-XL .bb-channel-navigation-bar .nav-container,.bb-channel-size-XXL .bb-channel-navigation-bar .nav-container,.bb-channel-size-XXXL .bb-channel-navigation-bar .nav-container{display:flex}\n/*$vite$:1*/`,document.head.appendChild(e);var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;lt[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=c((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function E(e,t){return ee(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={\"=\":`=0`,\":\":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=f()})),m=c((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-Tt&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,k=O.port2;O.port1.onmessage=E,D=function(){k.postMessage(null)}}else D=function(){_(E,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=c(((e,t)=>{t.exports=m()})),g=c((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=c((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1R||(e.current=te[R],te[R]=null,R--)}function V(e,t){R++,te[R]=e.current,e.current=t}var H=z(null),ne=z(null),re=z(null),ie=z(null);function ae(e,t){switch(V(re,t),V(ne,e),V(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}B(H),V(H,e)}function oe(){B(H),B(ne),B(re)}function se(e){e.memoizedState!==null&&V(ie,e);var t=H.current,n=Hd(t,e.type);t!==n&&(V(ne,e),V(H,n))}function ce(e){ne.current===e&&(B(H),B(ne)),ie.current===e&&(B(ie),Qf._currentValue=L)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);le=t&&t[1]||``,ue=-1)`:-1i||c[r]!==l[i]){var u=`\n`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?de(n):``}function me(e,t){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return e.child!==t&&t!==null?de(`Suspense Fallback`):de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return de(`Activity`);default:return``}}function he(e){try{var t=``,n=null;do t+=me(e,n),n=e,e=e.return;while(e);return t}catch(e){return`\nError generating stack: `+e.message+`\n`+e.stack}}var ge=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,ve=t.unstable_cancelCallback,ye=t.unstable_shouldYield,be=t.unstable_requestPaint,U=t.unstable_now,xe=t.unstable_getCurrentPriorityLevel,W=t.unstable_ImmediatePriority,Se=t.unstable_UserBlockingPriority,Ce=t.unstable_NormalPriority,we=t.unstable_LowPriority,Te=t.unstable_IdlePriority,Ee=t.log,De=t.unstable_setDisableYieldValue,Oe=null,ke=null;function Ae(e){if(typeof Ee==`function`&&De(e),ke&&typeof ke.setStrictMode==`function`)try{ke.setStrictMode(Oe,e)}catch{}}var je=Math.clz32?Math.clz32:Pe,Me=Math.log,Ne=Math.LN2;function Pe(e){return e>>>=0,e===0?32:31-(Me(e)/Ne|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function He(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function We(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,\"passive\",{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch{Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e=Fn),Rn=` `,zn=!1;function Bn(e,t){switch(e){case`keyup`:return Nn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Vn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Hn=!1;function Un(e,t){switch(e){case`compositionend`:return Vn(t);case`keypress`:return t.which===32?(zn=!0,Rn):null;case`textInput`:return e=t.data,e===Rn&&zn?null:e;default:return null}}function Wn(e,t){if(Hn)return e===`compositionend`||!Pn&&Bn(e,t)?(e=nn(),tn=en=$t=null,Hn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=fr(n)}}function mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Tt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tt(e.document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var _r=Xt&&`documentMode`in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function Sr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xr||vr==null||vr!==Tt(r)||(r=vr,`selectionStart`in r&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&dr(br,r)||(br=r,r=Td(yr,`onSelect`),0>=o,i-=o,mi=1<<32-je(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ci&&gi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ci&&gi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ci&&gi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ci&&gi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&_a(l)===r.type){n(e,r.sibling),c=a(r,o.props),wa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ti(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ei(o.type,o.key,o.props,null,e.mode,c),wa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ii(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=_a(o),b(e,r,o,c)}if(P(o))return h(e,r,o,c);if(j(o)){if(l=j(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ca(o),c);if(o.$$typeof===C)return b(e,r,Gi(e,o),c);Ta(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Sa=0;var i=b(e,t,n,r);return xa=null,i}catch(t){if(t===da||t===pa)throw t;var a=Xr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Da=Ea(!0),Oa=Ea(!1),ka=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Nl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=qr(e),Kr(e,null,n),t}return Ur(e,r,t,n),qr(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function Fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ia=!1;function La(){if(Ia){var e=na;if(e!==null)throw e}}function Ra(e,t,n,r){Ia=!1;var i=e.updateQueue;ka=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Fl&p)===p:(r&p)===p){p!==0&&p===ta&&(Ia=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:ka=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ba(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=F.T,s={};F.T=s,Es(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ts(e,t,aa(c,r),du(e)):Ts(e,t,r,du(e))}catch(n){Ts(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function hs(){}function gs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=_s(e).queue;ms(e,a,t,L,n===null?hs:function(){return vs(e),n(r)})}function _s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:L},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vs(e){var t=_s(e);t.next===null&&(t=e.alternate.memoizedState),Ts(e,t.next.queue,{},du())}function ys(){return Wi(Qf)}function bs(){return So().memoizedState}function xs(){return So().memoizedState}function Ss(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Ma(n);var r=Na(t,e,n);r!==null&&(pu(r,t,n),Pa(r,t,n)),t={cache:Zi()},e.payload=t;return}t=t.return}}function Cs(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(e)?Os(t,n):(n=Wr(e,t,n,r),n!==null&&(pu(n,e,r),ks(n,t,r)))}function ws(e,t,n){Ts(e,t,n,du())}function Ts(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))Os(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ur(s,o))return Ur(e,t,i,0),Pl===null&&Hr(),!1}catch{}if(n=Wr(e,t,i,r),n!==null)return pu(n,e,r),ks(n,t,r),!0}return!1}function Es(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(t)throw Error(i(479))}else t=Wr(e,n,r,2),t!==null&&pu(t,e,2)}function Ds(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function Os(e,t){ao=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ks(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var As={readContext:Wi,use:To,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useLayoutEffect:fo,useInsertionEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useSyncExternalStore:fo,useId:fo,useHostTransitionStatus:fo,useFormState:fo,useActionState:fo,useOptimistic:fo,useMemoCache:fo,useCacheRefresh:fo};As.useEffectEvent=fo;var js={readContext:Wi,use:To,useCallback:function(e,t){return xo().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:ts,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),$o(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){$o(4,2,e,t)},useMemo:function(e,t){var n=xo();t=t===void 0?null:t;var r=e();if(oo){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=xo();if(n!==void 0){var i=n(t);if(oo){Ae(!0);try{n(t)}finally{Ae(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Cs.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=xo();return e={current:e},t.memoizedState=e},useState:function(e){e=Lo(e);var t=e.queue,n=ws.bind(null,Z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ls,useDeferredValue:function(e,t){return fs(xo(),e,t)},useTransition:function(){var e=Lo(!1);return e=ms.bind(null,Z,e.queue,!0,!1),xo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Z,a=xo();if(Ci){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Pl===null)throw Error(i(349));Fl&127||Mo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ts(Po.bind(null,r,o,e),[e]),r.flags|=2048,Zo(9,{destroy:void 0},No.bind(null,r,o,n,t),null),n},useId:function(){var e=xo(),t=Pl.identifierPrefix;if(Ci){var n=hi,r=mi;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=so++,0<\\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Tc(t)}}return Ac(t),Ec(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Tc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=re.current,Ai(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Di(t,!0)}else e=Bd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Ac(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ai(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[$e]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ac(t),e=!1}else n=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qa(t),t):(Qa(t),null);if(t.flags&128)throw Error(i(558))}return Ac(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[$e]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ac(t),a=!1}else a=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Qa(t),t):(Qa(t),null)}return Qa(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Oc(t,t.updateQueue),Ac(t),null);case 4:return oe(),e===null&&xd(t.stateNode.containerInfo),Ac(t),null;case 10:return Ri(t.type),Ac(t),null;case 19:if(B($a),r=t.memoizedState,r===null)return Ac(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)kc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=eo(e),o!==null){for(t.flags|=128,kc(r,!1),e=o.updateQueue,t.updateQueue=e,Oc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)$r(n,e),n=n.sibling;return V($a,$a.current&1|2),Ci&&gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&U()>$l&&(t.flags|=128,a=!0,kc(r,!1),t.lanes=4194304)}else{if(!a)if(e=eo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Oc(t,e),kc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ci)return Ac(t),null}else 2*U()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,kc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ac(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=U(),e.sibling=null,n=$a.current,V($a,a?n&1|2:n&1),Ci&&gi(t,r.treeForkCount),e);case 22:case 23:return Qa(t),Ga(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ac(t),t.subtreeFlags&6&&(t.flags|=8192)):Ac(t),n=t.updateQueue,n!==null&&Oc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&B(sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ri(Xi),Ac(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Mc(e,t){switch(yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(Xi),oe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ce(t),null;case 31:if(t.memoizedState!==null){if(Qa(t),t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B($a),null;case 4:return oe(),null;case 10:return Ri(t.type),null;case 22:case 23:return Qa(t),Ga(),e!==null&&B(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ri(Xi),null;case 25:return null;default:return null}}function Nc(e,t){switch(yi(t),t.tag){case 3:Ri(Xi),oe();break;case 26:case 27:case 5:ce(t);break;case 4:oe();break;case 31:t.memoizedState!==null&&Qa(t);break;case 13:Qa(t);break;case 19:B($a);break;case 10:Ri(t.type);break;case 22:case 23:Qa(t),Ga(),e!==null&&B(sa);break;case 24:Ri(Xi)}}function Pc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Fc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Ic(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ba(t,n)}catch(t){Uu(e,e.return,t)}}}function Lc(e,t,n){n.props=Rs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Rc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}function Bc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Vc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[et]=t}catch(t){Uu(e,e.return,t)}}function Hc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Uc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Hc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[$e]=e,t[et]=n}catch(t){Uu(e,e.return,t)}}var qc=!1,Jc=!1,Yc=!1,Xc=typeof WeakSet==`function`?WeakSet:Set,Zc=null;function Qc(e,t){if(e=e.containerInfo,Rd=sp,e=hr(e),gr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Zc=t;Zc!==null;)if(t=Zc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Zc=e;else for(;Zc!==null;){switch(t=Zc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=pr(s,h),v=pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,F.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Nl&6)throw Error(i(331));var c=Nl;if(Nl|=4,Ol(o.current),bl(o,o.current,s,n),Nl=c,rd(0,!1),ke&&typeof ke.onPostCommitFiberRoot==`function`)try{ke.onPostCommitFiberRoot(Oe,o)}catch{}return!0}finally{I.p=a,F.T=r,zu(e,t)}}function Hu(e,t,n){t=oi(n,t),t=Ws(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(We(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=oi(n,e),n=Gs(2),r=Na(t,n,2),r!==null&&(Ks(n,r,t,e),We(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ml;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Pl===e&&(Fl&n)===n&&(Hl===4||Hl===3&&(Fl&62914560)===Fl&&300>U()-Zl?!(Nl&2)&&bu(e,0):Gl|=n,ql===Fl&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=He()),e=Gr(e,t),e!==null&&(We(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return _e(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Fl,a=ze(r,r===Pl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=U(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Dt(t);i=`link[rel=\"`+e+`\"][href=\"`+i+`\"]`,typeof n==`string`&&(i+=`[crossorigin=\"`+n+`\"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel=\"preload\"][as=\"`+Dt(t)+`\"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset=\"`+Dt(n.imageSrcSet)+`\"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes=\"`+Dt(n.imageSizes)+`\"]`)):i+=`[href=\"`+Dt(e)+`\"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel=\"modulepreload\"][as=\"`+Dt(r)+`\"][href=\"`+Dt(e)+`\"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=dt(r).hoistableStyles,a=Af(e);t=t||`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,\"data-precedence\":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);ft(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),ft(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),ft(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=re.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href=\"`+Dt(e)+`\"`}function jf(e){return`link[rel=\"stylesheet\"][`+e+`]`}function Mf(e){return f({},e,{\"data-precedence\":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel=\"preload\"][as=\"style\"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),ft(t),e.head.appendChild(t))}function Pf(e){return`[src=\"`+Dt(e)+`\"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~=\"`+Dt(n.href)+`\"]`);if(r)return t.instance=r,ft(r),r;var a=f({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,ft(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel=\"stylesheet\"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=d(p()),x=_(),S=y(),C={};C.loadBlueBillywigScript=function(e,t,n,r){n||(n=`script#`+Math.random()),window.bluebillywig=window.bluebillywig||{},bluebillywig._internal=bluebillywig._internal||{};function i(){typeof bluebillywig._internal[n].addEventListener==`function`&&bluebillywig._internal[n].addEventListener(`load`,function(e){typeof r==`function`&&r(!0)},!0)}bluebillywig[t]?typeof r==`function`&&r(!0):bluebillywig._internal[n]?i():(bluebillywig._internal[n]=document.createElement(`script`),bluebillywig._internal[n].setAttribute(`type`,`text/javascript`),i(),bluebillywig._internal[n].setAttribute(`src`,e),document.getElementsByTagName(`head`)[0].appendChild(bluebillywig._internal[n]))},C.loadPlayer=function(e,t){if(e){var n=e.playerPath+`player.js`;C.loadBlueBillywigScript(n,`Player`,`PlayerScript`,t)}else typeof t==`function`&&t(!1)},C.loadShortsPlayer=function(e,t){if(e){let n=e.playerPath+`shorts-player.js`;C.loadBlueBillywigScript(n,`ShortsPlayer`,`ShortsPlayerScript`,t)}else typeof t==`function`&&t(!1)},C.loadChannel=function(e,t){if(e){var n=e.scriptSrc||`https://cdn.bluebillywig.com/apps/channel/latest/app.js`;C.loadBlueBillywigScript(n,`Channel`,`channelScript`,t)}else typeof t==`function`&&t(!1)},C.loadGallery=function(e,t){if(e){var n=e.scriptSrc||`https://cdn.bluebillywig.com/apps/gallery/latest/app.js`;C.loadBlueBillywigScript(n,`Gallery`,`galleryScript`,t)}else typeof t==`function`&&t(!1)},C.loadRenderer=function(e,t){if(e){var n=e.scriptSrc||`https://cdn.bluebillywig.com/apps/renderer/latest/app.js`;C.loadBlueBillywigScript(n,`Renderer`,`rendererScript`,t)}else typeof t==`function`&&t(!1)},C.publicationNameFromBaseUrl=function(e){var t=``;if(e&&e.match){var n=null;n=e.match(/^[\\w\\:]*\\/\\/([^\\/]+)\\.bbvms\\.com/),n&&n.length>1&&(t=n[1]),n=e.match(/^[\\w\\:]*\\/\\/([^\\/]+)\\.mainroll\\.com/),n&&n.length>1&&(t=n[1])}return t},C.createBlueBillywigInstance=function(e,t,n,r){var i=e?e.charAt(0).toLowerCase()+e.slice(1)+`s`:`instances`,a={};if(typeof t==`string`){var o=t;o=o.replace(/[?#]+.*$/,``),o=o.replace(/\\.[^.]*$/,``);var s=o.split(`/`);s&&s.length>4&&(a.publicationData={},a.publicationData.name=C.publicationNameFromBaseUrl(s[0]+`//`+s[2]),a.embedData={},a.embedData.baseurl=s[0]+`//`+s[2],a.embedData.forceSSL=`true`,a.embedData.playoutIndicator=s[3],a.embedData.playoutSafeName=s[4],a.embedData.appIndicator=s[3],a.embedData.appId=s[4]),s&&s.length>6&&(a.embedData.contentIndicator=s[5],a.embedData.contentId=s[6]),Object.assign(a,n)}else Object.assign(a,t,n);window.bluebillywig=window.bluebillywig||{},bluebillywig[i]=bluebillywig[i]||[];function c(e){var t=``;for(var n in e){t.length==0?t+=`?`:t+=`&`;var r=e[n];r??(r=``),t+=n+`=`+encodeURIComponent(r)}t=t.replace(/-/g,`%2d`);var i=`https://stats.bluebillywig.com`,a=new Image(1,1);a.src=i+t}var l=!1;try{l=new bluebillywig[e](t,n),C.getBlueBillywigInstance(e,l._id)||bluebillywig[i].push(l)}catch(t){var u={ev:`pf`};u.why=`error instantiating bluebillywig.`+e+`: `+t.stack.replace(/\\(.*\\)/gm,``),u.pp=(a&&a.publicationData?a.publicationData.name:``)||`unknown`,a&&a.embedData&&(u.aid=a.embedData.appId||a.embedData.playoutSafeName),a&&a.embedData&&(u.cid=a.embedData.contentId),c(u)}finally{typeof r==`function`&&r(l)}return l},C.createPlayer=function(e,t,n){return C.createBlueBillywigInstance(`Player`,e,t,n)},C.createShortsPlayer=function(e,t,n){return C.createBlueBillywigInstance(`ShortsPlayer`,e,t,n)},C.createChannel=function(e,t,n){return C.createBlueBillywigInstance(`Channel`,e,t,n)},C.createGallery=function(e,t,n){return C.createBlueBillywigInstance(`Gallery`,e,t,n)},C.createRenderer=function(e,t,n){return C.createBlueBillywigInstance(`Renderer`,e,t,n)},C.getBlueBillywigInstance=function(e,t){var n=!1;window.bluebillywig=window.bluebillywig||{};var r=e?e.charAt(0).toLowerCase()+e.slice(1)+`s`:`instances`;return bluebillywig[r]&&(t?n=bluebillywig[r].find(function(e){return e&&e._id===t}):bluebillywig[r].length===1&&(n=bluebillywig[r][0])),n},C.getPlayer=function(e){var t=null;if(typeof e==`string`)t=e;else if(e&&e.embedData){var n=e.embedData.appIndicator||e.embedData.playoutIndicator||`p`,r=e.embedData.appId||e.embedData.playoutSafeName||`default`;t=`/`+n+`/`+r+`/`+e.embedData.contentIndicator+`/`+e.embedData.contentId}return C.getBlueBillywigInstance(`Player`,t)},C.getChannel=function(e){var t=null;if(typeof e==`string`)t=e;else if(e&&e.embedData){var n=C.publicationNameFromBaseUrl(e.embedData.baseurl),r=e.embedData.appIndicator||`ch`,i=e.embedData.appId;t=n+`-`+r+`-`+i,e.embedData.contentIndicator&&(t+=`-`+e.embedData.contentIndicator+`-`+e.embedData.contentId)}return C.getBlueBillywigInstance(`Channel`,t)},C.getGallery=function(e){var t=null;if(typeof e==`string`)t=e;else if(e&&e.embedData){var n=C.publicationNameFromBaseUrl(e.embedData.baseurl),r=e.embedData.appIndicator||`g`,i=e.embedData.appId;t=n+`-`+r+`-`+i,e.embedData.contentIndicator&&(t+=`-`+e.embedData.contentIndicator+`-`+e.embedData.contentId)}return C.getBlueBillywigInstance(`Gallery`,t)},C.getRenderer=function(e){var t=null;if(typeof e==`string`)t=e;else if(e&&e.embedData){var n=``,r=`https://bb.bbvms.com`,i=`bb`;if(e&&e.embedData&&e.embedData.appId!==void 0&&(n=e.embedData.appId),e&&e.embedData&&e.embedData.baseurl){r=e.embedData.baseurl;var a=null;a=r.match(/^[\\w\\:]*\\/\\/([^\\/]+)\\.bbvms\\.com/),a&&a.length>1&&(i=a[1]),a=r.match(/^[\\w\\:]*\\/\\/([^\\/]+)\\.mainroll\\.com/),a&&a.length>1&&(i=a[1])}t=i+`-`+n}return C.getBlueBillywigInstance(`Renderer`,t)},C.findTarget=function(e,t){if(t=t||`app`,e&&e.target!==void 0)return{containerNode:e.target,replaceNode:void 0};if(e&&e.lastScript&&e.lastScript.getAttribute){var n=e.lastScript.getAttribute(`data-target`);if(n){var r=document.getElementById(n);if(!r)try{r=document.querySelector(n)}catch{}if(r)return{containerNode:r,replaceNode:void 0}}}if(e&&e.embedData!==void 0){var i=(e.embedData.baseurl?e.embedData.baseurl.replace(/^\\w+:\\/\\//,`//`):``)+`/`+e.embedData.appIndicator+`/`+e.embedData.appId;if(e.embedData.contentIndicator&&(i+=`/`+e.embedData.contentIndicator+`/`+e.embedData.contentId),e.lastScript&&e.lastScript.src&&e.lastScript.src.indexOf(i)!=-1)return{containerNode:e.lastScript.parentElement,replaceNode:e.lastScript};for(var a=document.querySelectorAll(`script`),o=0,s=a.length;o-1);)o++;if(o-1);)o++;if(o`${encodeURIComponent(e.replace(/#\\d+$/,``))}=${encodeURIComponent(t)}`).join(`&`);t+=`&sn=${this._sn++}&_cb=${Date.now()}`,t=t.replace(`~~00~~`,`%7E%7E00%7E%7E`).replace(/ad/g,`~~00~~`),t=t.replace(`~~01~~`,`%7E%7E01%7E%7E`).replace(/aD/g,`~~01~~`),t=t.replace(`~~02~~`,`%7E%7E02%7E%7E`).replace(/Ad/g,`~~02~~`),t=t.replace(`~~03~~`,`%7E%7E03%7E%7E`).replace(/AD/g,`~~03~~`),fetch(`${this._loggerUrl}?${t}`,{method:`GET`,mode:`no-cors`}).catch(()=>{})}render(){return null}};function T(e){let t=e.hostname;return t===`localhost`||t===`127.0.0.1`||t===`10.0.2.2`?e.protocol===`http:`||e.protocol===`https:`:e.protocol===`https:`?t===`bluebillywig.com`||t.endsWith(`.bluebillywig.com`)||t===`bbvms.com`||t.endsWith(`.bbvms.com`):!1}function ee(e){if(!T(e))return;let t=localStorage.getItem(`bbtl_jwt`);t&&e.searchParams.set(`jwt`,t);let n=localStorage.getItem(`bbtl_rpctoken`);n&&e.searchParams.set(`rpctoken`,n)}var E=`bb-channel-watched-progress`,D=500,O=null,k=null,A=null;function j(){return O?`${E}-${O}`:null}function M(e){let t=e?String(e):null;t!==O&&(t||console.warn(`[watched-progress] scope cleared; tracking disabled until set`),O=t,k=null,A=null,z.forEach(e=>e()))}function N(){let e=j();if(!e)return{};if(k&&A===e)return k;try{let t=localStorage.getItem(e);k=t?JSON.parse(t):{}}catch(e){console.warn(`[watched-progress] read failed:`,e),k={}}return A=e,k}function P(e){let t=j();if(t){k=e,A=t;try{localStorage.setItem(t,JSON.stringify(e))}catch(e){console.warn(`[watched-progress] write failed (quota or disabled storage):`,e)}}}function F(e){var t;return e?((t=N()[e])==null?void 0:t.p)??0:0}function I(){return Object.entries(N()).filter(([,e])=>e.p>.02&&e.p<.95).map(([e,t])=>({id:e,progress:t.p,updatedAt:t.t})).sort((e,t)=>t.updatedAt-e.updatedAt)}function L(e){if(!(e!=null&&e.length))return null;let t=N(),n=0,r=null;for(let i of e){let e=t[i.id];!e||e.p<=.02||e.p>=.95||!i.length||e.t>n&&(n=e.t,r={entity:i,progress:e.p})}return r}function te(e,t){var n;if(!e||!Number.isFinite(t)||t<=0)return;let r={...N()},i=t>=.95?1:Math.min(1,t);r[e]={p:i,t:Date.now()};let a=Object.keys(r);a.length>D&&a.sort((e,t)=>r[e].t-r[t].t).slice(0,a.length-D).forEach(e=>delete r[e]),P(r),(n=R.get(e))==null||n.forEach(e=>e(i)),z.forEach(e=>e())}var R=new Map,z=new Set;function B(e,t){if(!e)return()=>{};let n=R.get(e);return n||(n=new Set,R.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&R.delete(e)}}function V(e){return z.add(e),()=>{z.delete(e)}}function H(e,t,...n){let r=null;return function(){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}function ne(e){if(e=Math.round(e),!isFinite(e))return``;let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=e=>`${0x38d7ea4c68000+e}`.slice(-2);return t>0?`${i(t)}:${i(n)}:${i(r)}`:`${i(n)}:${i(r)}`}function re(){var e;let t=[`en`,`nl`,`sv`,`fr`,`de`,`es`,`da`,`fi`],n=(e=navigator.languages)!=null&&e.length?[...navigator.languages]:[navigator.language||`en`];for(let e of n){let n=e.slice(0,2);if(t.includes(n))return n}return`en`}function ie(e){switch(e){case`project`:case`Project`:return`p`;case`mediaclip`:case`Mediaclip`:case`MediaClip`:return`c`;default:return`l`}}function ae(e){let t=`ontouchstart`in window||navigator.maxTouchPoints>0,n=n=>{t!==n&&(t=n,t?document.addEventListener(`mousemove`,i,{once:!0}):document.addEventListener(`touchstart`,r,{once:!0})),e==null||e(t)},r=()=>{n(!0)},i=e=>{Math.abs(e.movementX)>0||Math.abs(e.movementY)>0?n(!1):document.addEventListener(`mousemove`,i,{once:!0})};document.addEventListener(`touchstart`,r,{once:!0}),document.addEventListener(`mousemove`,i,{once:!0})}function oe(e){var t;e==null||(t=e.querySelectorAll(`.bb-scroll-item`))==null||t.forEach(e=>{se(e.querySelector(`button`),!e.classList.contains(`clone`))})}function se(e,t){e&&(t?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,`-1`))}function ce(e){if(!e)return``;let t=e.match(/\\/\\/([^/]+)\\.bbvms\\.com/)||e.match(/\\/\\/([^/]+)\\.mainroll\\.com/);if(t)return t[1];try{let t=e;t.startsWith(`//`)?t=`https:${t}`:t.includes(`://`)||(t=`https://${t}`);let n=new URL(t).hostname;return n.includes(`.`)?n.split(`.`)[0]:``}catch{return``}}function le(e,t){return new Promise((n,r)=>{if(!/^https?:\\/\\//i.test(e)){r(Error(`fetchScript: invalid URL scheme: ${e}`));return}let i=document.createElement(`script`);Object.keys(t).forEach(e=>i.setAttribute(e,t[e])),i.onload=n,i.onerror=r,i.src=e,document.head.appendChild(i)})}function ue(e){return(e==null?void 0:e.replace(/<[^>]+>/g,``))||``}function de(e){return e.trim().replace(/-/g,`*`).replace(/[^\\w-]{1,}/g,`_`).toLowerCase()}function fe(){return new Promise(e=>{let t=new Image;t.onload=()=>e(!0),t.onerror=()=>e(!1),t.src=`data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA`})}function pe(e,t,n){return new Promise((r,i)=>{let a=setTimeout(()=>{e(),r()},t);n&&n.addEventListener(`abort`,()=>{clearTimeout(a),i(Error(`Operation aborted`))})})}function me(){let e=window.navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/.test(e)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1}function he(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode();return t instanceof ShadowRoot&&t.host?t.host:null}function ge(e){return e.overflow===`auto`||e.overflow===`scroll`||e.overflowY===`auto`||e.overflowY===`scroll`}function _e(e){let t=he(e),n=null;for(;t;){let e=window.getComputedStyle(t);if(!n&&e.position===`fixed`&&ge(e)&&(n=t),n&&e.transform!==`none`)return n;t=he(t)}return null}function ve(e,t,n,r=`center`){let i=e.top-t.top+n,a=i-t.height+e.height;if(r===`start`)return i;if(r===`end`)return a;if(r===`center`)return i-t.height/2+e.height/2;let o=e.top-t.top,s=e.bottom-t.top;return o>=0&&s<=t.height?n:Math.abs(o)<=Math.abs(t.height-s)?i:a}function ye(e,t={behavior:`smooth`,block:`center`},n=500){if(!e)return;let r=_e(e);if(r){let n=ve(e.getBoundingClientRect(),r.getBoundingClientRect(),r.scrollTop,t.block);t.behavior===`smooth`?r.scrollTo({top:n,behavior:`smooth`}):r.scrollTop=n;return}e.scrollIntoView(t),me()&&setTimeout(()=>{let n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;if(n.top>=0&&n.left>=0&&n.bottom<=r&&n.right<=i)return;let a=e;for(let n of be(e))n.scrollTop=ve(a.getBoundingClientRect(),n.getBoundingClientRect(),n.scrollTop,t.block),a=n;let o=e.getBoundingClientRect(),s=new DOMRect(0,0,0,window.innerHeight);window.scrollTo(0,ve(o,s,window.pageYOffset,t.block))},n)}function be(e){let t=[],n=he(e);for(;n;){let e=window.getComputedStyle(n),r=n.scrollHeight>n.clientHeight;ge(e)&&r&&t.push(n),n=he(n)}return t}function U(e){let{contentType:t,imageId:n,width:r,height:i=0,extension:a=``,scalingMode:o=`cover`,set:s=`default`,removeProtocol:c=!1,baseurl:l,imgCacheDate:u}=e;if(!n)return``;let d=c?`//${l.replace(/(^\\w+:|^)\\/\\//,``)}`:l,f=a?`.${a}`:``,p=u?`&${u}`:``;return`${d}/${t}/${n}/pthumbnail/${r?Math.max(Math.round(Number(r)/128)*128,128/2):`default`}/${i||`default`}${f}?scalingMode=${o}&set=${s}${p}`}var xe,W=s((()=>{xe={cliplist:`MediaClipList`,mediaclip:`MediaClip`,project:`Project`}}));W();function Se(e){try{let t=atob(e),n=Uint8Array.from(t,e=>e.codePointAt(0));return new TextDecoder().decode(n)}catch{return null}}function Ce(e,t){let{sourceType:n,sourceValue:r,defaultValue:i}=e,a=i??``;if(n===`QueryString`&&r){let e=t.get(r);if(e!=null&&e!==``){if(e.startsWith(`b64:`)){let t=Se(e.slice(4));if(t!==null)return t}return e}return a}if(n===`LocalStorage`&&r){let e=localStorage.getItem(r);if(e===null)return a;if(!r.startsWith(`bbtl_`))try{let t=JSON.parse(e);return typeof t==`string`?t:e}catch{}return e}return n===`PlainText`&&r||a}function we(e){if(typeof e==`object`)return e;if(typeof e==`string`)try{return JSON.parse(e.replace(/^dataSource:/i,``).trim())}catch{return null}return null}function Te(e,t,n,r){return{filterset:(Array.isArray(e)?e:Ee(e)).map(e=>{let n=(e.filters||[]).map(e=>{let n={...e};if(n.datasource){let e=we(n.datasource);e&&(n.value=Ce(e,t)??n.value),delete n.datasource}return n});return{...e,filters:n}}),sort:n??(Array.isArray(e)?void 0:e.sort),limit:r??(Array.isArray(e)?void 0:e.limit)??15}}function Ee(e){let t=[],n=0;for(;e[n];)t.push(e[n]),n++;return t}function De(e){\"@babel/helpers - typeof\";return De=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},De(e)}function Oe(e,t){if(De(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(De(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ke(e){var t=Oe(e,`string`);return De(t)==`symbol`?t:t+``}function Ae(e,t,n){return(t=ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=300*1e3,Me=new class{constructor(){Ae(this,`cache`,new Map),Ae(this,`pendingRequests`,new Map)}getCacheKey(e,t){return`${t}:${e}`}isCacheEntryValid(e){return Date.now()-e.timestamp=je&&this.cache.delete(t)}addToCache(e,t,n){let r=this.getCacheKey(e,t);if(this.cache.size>0&&this.cache.size%10==0&&this.cleanExpiredEntries(),this.cache.size>=100){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(r,{data:n,timestamp:Date.now()})}getFromCache(e,t){let n=this.getCacheKey(e,t),r=this.cache.get(n);return r&&this.isCacheEntryValid(r)?(this.cache.delete(n),this.cache.set(n,r),r.data):(r&&this.cache.delete(n),null)}async fetchEntity(e,t,n){let r=t===`cliplist`?`papi/search`:`json/${t}/${e}`,i=new URL(`${n}/${r}`);t===`cliplist`&&(i.searchParams.set(`cliplistid`,e),i.searchParams.set(`allowCache`,`true`)),ee(i);let a=await fetch(i.toString());if(!a.ok)throw Error(`HTTP ${a.status} fetching ${t}/${e}`);let o=await a.json();if(t===`cliplist`&&(o.allowDatasource===!0||o.allowDatasource===`true`||o.allowDatasource_boolean===!0)){let e=await this.fetchDynamicPlaylistItems(o,n);e&&(o.items=e)}return o}async fetchDynamicPlaylistItems(e,t){let n;if(e.filters&&typeof e.filters==`object`)n=e.filters;else if(typeof e.filters_string==`string`)try{n=JSON.parse(e.filters_string)}catch{return console.warn(`Failed to parse filters_string for dynamic playlist`,e.id),null}if(!n)return null;let r=new URLSearchParams(window.location.search),i=Te(n,r,e.sort,e.limit),a=new URL(`${t}/papi/search`);a.searchParams.set(`filterset`,JSON.stringify(i.filterset)),i.sort&&a.searchParams.set(`sort`,i.sort),a.searchParams.set(`limit`,String(i.limit)),ee(a);let o;try{o=await fetch(a.toString())}catch(t){return console.warn(`Network error fetching dynamic playlist items`,e.id,t),null}if(!o.ok)return console.warn(`Non-OK response fetching dynamic playlist items`,e.id,o.status),null;let s;try{s=await o.json()}catch(t){return console.warn(`Failed to parse dynamic playlist response as JSON (server may have returned an error page)`,e.id,t),null}return s&&s.error!==!0&&s.error!==`true`&&s.items?s.items:null}async getEntityData(e,t,n,r){let i=this.getFromCache(e,t);if(i)return r&&r(i,t),i;let a=t===`cliplist`?`${this.getCacheKey(e,t)}|${window.location.search}`:this.getCacheKey(e,t);if(this.pendingRequests.has(a)){let e=await this.pendingRequests.get(a);return r&&e&&r(e,t),e}let o=this.fetchEntity(e,t,n).then(n=>(n&&(t===`cliplist`&&(n.allowDatasource===!0||n.allowDatasource===`true`||n.allowDatasource_boolean===!0)||this.addToCache(e,t,n),r&&r(n,t)),n)).catch(e=>(console.warn(`[entity-data-service] fetch error`,e),null)).finally(()=>{this.pendingRequests.delete(a)});return this.pendingRequests.set(a,o),o}clearEntityCache(e,t){let n=this.getCacheKey(e,t);this.cache.delete(n)}clearCache(){this.cache.clear(),this.pendingRequests.clear()}getCacheStats(){let e=0,t=0;for(let n of this.cache.values())this.isCacheEntryValid(n)?e++:t++;return{totalEntries:this.cache.size,validEntries:e,expiredEntries:t,cacheHitRatio:this.cache.size>0?e/this.cache.size:0}}getPendingRequestsCount(){return this.pendingRequests.size}};async function Ne(e,t){var n;let r=new URL(`${e}/papi/channel/${t}`),i=await fetch(r.toString());if(!i.ok)throw Error(`Failed to load sub-channel ${t}: ${i.status} ${i.statusText}`);let a=await i.json();return(n=a.blocks)==null||n.forEach(e=>{let t=e.config;t.previewTitleDisplay===void 0?t.previewTitleDisplay=t.showClipTitles?`below`:`none`:t.previewTitleDisplay===null&&(t.previewTitleDisplay=a.previewTitleDisplay||`below`),t.previewTimestampDisplay=t.previewTimestampDisplay||a.previewTimestampDisplay||`bottomRight`}),a}function Pe(e,t){return{...t,channelType:e.channelType,searchBar:!1,containedChannel:e.containedChannel,navigationConfig:e.navigationConfig,pagePadding:e.pagePadding,pagePaddingMobile:e.pagePaddingMobile,maxWidth:e.maxWidth,cpp:e.cpp}}function Fe(e){if(!(e!=null&&e.items)||e.items.length===0)return null;let t=e.items.find(e=>e.type===`channel`);return(t==null?void 0:t.channelId)||null}function Ie(e){var t;return e.channelType===`multi`&&!!(!((t=e.navigationConfig)==null||(t=t.items)==null)&&t.length)}function Le(e){let t=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(e);return t?t.map(e=>parseInt(e,16)).slice(1):null}function Re(e,t,n){let r=[e,t,n].map(function(e){return e/=255,e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return r[0]*.2126+r[1]*.7152+r[2]*.0722}function ze(e,t){let n=Re(e[0],e[1],e[2]),r=Re(t[0],t[1],t[2]),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function Be(e,t){let n=Le(e),r=Le(t);return!n||!r?0:ze(n,r)}function Ve(e){return Be(e,`#ffffff`)<3?`#000000`:`#ffffff`}var He={xs:1.5,s:1.75,m:2,l:2.5,xl:3},Ue={xs:1.25,s:1.5,m:1.75,l:2.25,xl:2.75},We={xs:1,s:1.25,m:1.5,l:1.75,xl:2},Ge={xs:.875,s:1,m:1.25,l:1.5,xl:1.75},Ke={xs:.8125,s:.875,m:1,l:1.125,xl:1.25},qe={xs:.6875,s:.75,m:.875,l:1,xl:1.125},Je={xs:.5625,s:.625,m:.75,l:.875,xl:1},Ye={featuredTitle:He,featuredDescription:Ke,featuredButton:Je,featuredEmbargoValue:He,featuredEmbargoLabel:Je,playlistTitle:We,playlistDescription:Ke,videoTitleThumbnail:Ge,videoDescription:Ke,videoTimestamp:Je,videoCustomField:Ke,videoTitleDetail:Ue,detailDescription:Ke,detailButton:qe,detailCustomField:Ke,detailVideoTitle:Ge,detailCloseButton:qe,overviewTitle:Ue,overviewDescription:Ke,overviewButton:qe,overviewCustomField:Ke,gridPageTitle:We,playerTitle:Ue,playerDescription:Ke,playerCustomField:Je,navigation:Ke,subheading:Ge,body:Ke,smallText:Je},Xe={small:`s`,medium:`m`,large:`l`},G=Object.keys(Ye);function Ze(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()}function Qe(e){return Object.fromEntries(G.map(t=>[t,`--bb-font-${e}-${Ze(t)}`]))}var $e=Qe(`multiplier`),et=Qe(`scale`);function tt(e){let t={};if(e.fontSizeConfig){for(let n of G)t[n]=e.fontSizeConfig[n]||`m`;return t}let n=e.fontSize&&Xe[e.fontSize]||`m`;for(let e of G)t[e]=n;return t}function nt(e,t){var n,r,i;let a=e.borderRadius||`0`,o=e.pagePadding||0,s=e.backgroundColor?`#`+e.backgroundColor:`transparent`,c=(n=e.detailPageConfig)!=null&&n.showThumbnailAsBackground?e.backgroundColor||`000000`:(r=e.detailPageConfig)==null?void 0:r.backgroundColor,l=e.backgroundColor||`ffffff`;e.colorTheme===`dark`&&(l=e.backgroundColor||`1e1e1e`);let u=e.primaryFontColor?e.primaryFontColor:`141414`,d=`${e.fontFamilyPrimary?it(e.fontFamilyPrimary):`Lato`}, sans-serif`,f=e.secondaryFontColor?e.secondaryFontColor:`141414`,p=`${e.fontFamilySecondary?it(e.fontFamilySecondary):`Lato`}, sans-serif`,m=e.maxWidth&&e.maxWidth>0?e.maxWidth:2e4,h=tt(e);for(let e of G){let n=Ye[e],r=n[h[e]];t.style.setProperty($e[e],String(r)),t.style.setProperty(et[e],String(r/n.m))}if(t.style.setProperty(`--bb-channel-font-size-scale`,String(Ye.body[h.body])),rt(t,`--bb-channel-border-radius`,a,e.borderRadiusMobile),t.style.setProperty(`--bb-channel-detail-page-background-color`,`#`+c),!((i=e.detailPageConfig)!=null&&i.showThumbnailAsBackground)&&c){let e=Ve(`#`+c);t.style.setProperty(`--bb-channel-detail-page-text-color`,e)}rt(t,`--bb-channel-padding`,o,e.pagePaddingMobile),t.style.setProperty(`--bb-channel-background-color`,s),t.style.setProperty(`--bb-channel-neutral-background-color`,`#`+l),t.style.setProperty(`--bb-channel-background-color-0`,`#`+s+`00`),t.style.setProperty(`--bb-channel-background-color-100`,`#`+s+`ff`),t.style.setProperty(`--bb-channel-primary-color`,`#`+u),t.style.setProperty(`--bb-channel-primary-font-family`,d),t.style.setProperty(`--bb-channel-secondary-color`,`#`+f),t.style.setProperty(`--bb-channel-secondary-font-family`,p),t.style.setProperty(`--bb-channel-max-width`,m+`px`),t.style.setProperty(`--bb-channel-button-border-radius`,(e.buttonBorderRadius??5)+`px`),e.buttonStyle===`outlined`||!e.buttonStyle?(t.style.setProperty(`--bb-channel-button-border-color`,`#`+(e.buttonStrokeColor||`1e1e1e`)),t.style.setProperty(`--bb-channel-button-border-width`,(e.buttonBorderWidth??2)+`px`),t.style.setProperty(`--bb-channel-button-background-color`,`transparent`),t.style.setProperty(`--bb-channel-button-background-color-fill`,`#`+s)):(t.style.setProperty(`--bb-channel-button-background-color`,`#`+(e.buttonStrokeColor||`1e1e1e`)),t.style.setProperty(`--bb-channel-button-background-color-fill`,`#`+(e.buttonStrokeColor||`1e1e1e`)),e.buttonStyleHover===`outlined`?(t.style.setProperty(`--bb-channel-button-border-color`,`#`+(e.buttonStrokeColor||`1e1e1e`)),t.style.setProperty(`--bb-channel-button-border-width`,(e.buttonBorderWidthHover??2)+`px`)):(t.style.setProperty(`--bb-channel-button-border-color`,`transparent`),t.style.setProperty(`--bb-channel-button-border-width`,`0`))),t.style.setProperty(`--bb-channel-button-font-color`,`#`+(e.buttonFontColor||`1e1e1e`)),e.buttonStyleHover===`outlined`?(t.style.setProperty(`--bb-channel-button-border-color-hover`,`#`+(e.buttonStrokeColorHover||`1e1e1e`)),t.style.setProperty(`--bb-channel-button-border-width-hover`,(e.buttonBorderWidthHover??2)+`px`),t.style.setProperty(`--bb-channel-button-background-color-hover`,`transparent`),t.style.setProperty(`--bb-channel-button-background-color-fill-hover`,`#`+s)):(t.style.setProperty(`--bb-channel-button-background-color-hover`,`#`+(e.buttonStrokeColorHover||`1e1e1e`)),t.style.setProperty(`--bb-channel-button-background-color-fill-hover`,`#`+(e.buttonStrokeColorHover||`1e1e1e`)),e.buttonStyle===`outlined`?(t.style.setProperty(`--bb-channel-button-border-color-hover`,`#`+(e.buttonStrokeColorHover||`1e1e1e`)),t.style.setProperty(`--bb-channel-button-border-width-hover`,(e.buttonBorderWidth??2)+`px`)):(t.style.setProperty(`--bb-channel-button-border-color-hover`,`transparent`),t.style.setProperty(`--bb-channel-button-border-width-hover`,`0`))),t.style.setProperty(`--bb-channel-button-font-color-hover`,`#`+(e.buttonFontColorHover||`ffffff`))}function rt(e,t,n,r){let i=n+`px`;e.style.setProperty(t,i),e.style.setProperty(t+`-desktop`,i),r==null?e.style.removeProperty(t+`-mobile`):e.style.setProperty(t+`-mobile`,r+`px`)}function it(e){return e.replace(/\\.[^/.]+$/,``)}function at(e){return!!e&&typeof e.originalfilename==`string`&&e.originalfilename.length>0&&Array.isArray(e.assets)&&e.assets.length>0}var ot=new Set([`woff`,`woff2`,`ttf`,`otf`,`eot`]);function st(e){return e.replace(/[\\\\'<>\\x00-\\x1f]/g,e=>`\\\\`+e.charCodeAt(0).toString(16)+` `)}function ct(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function lt(e,t,n){var r,i;if(!e)return;let a=[],o=[];if(e.fontFamilyPrimaryId&&parseFloat(e.fontFamilyPrimaryId)>0)o.push(e.fontFamilyPrimaryId);else{var s;a.push(((s=e.fontFamilyPrimary)==null?void 0:s.replace(/ /g,`+`))||`Lato`)}if(e.fontFamilySecondaryId&&parseFloat(e.fontFamilySecondaryId)>0)o.push(e.fontFamilySecondaryId);else{var c;a.push(((c=e.fontFamilySecondary)==null?void 0:c.replace(/ /g,`+`))||`Lato`)}(r=e.navigationConfig)!=null&&r.navBarFontFamilyId&&parseFloat(e.navigationConfig.navBarFontFamilyId)>0?o.push(e.navigationConfig.navBarFontFamilyId):(i=e.navigationConfig)!=null&&i.navBarFontFamily&&a.push(e.navigationConfig.navBarFontFamily.replace(/ /g,`+`)),a.forEach(e=>{let t=`https://fonts.googleapis.com/css2?family=${e}:wght@100;200;300;400;500;600;700;800;900&display=swap`;if(ft(t))return;let n=document.createElement(`link`);n.id=`generate-fonts-css`,n.rel=`stylesheet`,n.href=t,n.type=`text/css`,n.media=`all`,document.head.appendChild(n)}),!(!n||!t||o.length===0)&&o.forEach(e=>{dt(e,`mediaclip`,t).then(e=>{ut(e,n)}).catch(t=>{console.warn(`[channel] Failed to load font clip:`,e,t)})})}function ut(e,t){if(t.match(/^\\/\\//)&&(t=`https:${t}`),t=t.replace(/\\/+$/,``),at(e)){let n=e.originalfilename.replace(/\\.[^.]*$/,``),r={ttf:`truetype`},i=e.assets.filter(e=>e.mediatype&&e.src&&ot.has(e.mediatype.toLowerCase())).sort((e,t)=>e.mediatype.toLowerCase()===`eot`?-1:+(t.mediatype.toLowerCase()===`eot`)).map(e=>{if(e.src.match(/^\\/\\//)&&(e.src=`https:${e.src}`),e.src.match(/^\\w+:\\/\\//)||(e.src=`${t}${e.src}`),!ct(e.src))return null;e.src.match(/\\.eot$/i)&&(e.src+=`?`);let n=r[e.mediatype.toLowerCase()]||e.mediatype.toLowerCase();return`url('${st(e.src)}') format('${st(n)}')`}).filter(e=>e!==null);if(i.length===0)return;i.splice(Math.max(0,i.findIndex(e=>e.indexOf(`eot`)>-1)+1),0,`local('\u263A')`);let a=st(n),o=st(e.originalfilename),s=document.createElement(`style`);s.type=`text/css`,s.textContent=`\n\t\t\t@font-face {\n\t\t\t\tfont-family: '${a}';\n\t\t\t\tsrc: ${i.join(`, `)};\n\t\t\t}\n\t\t\t@font-face {\n\t\t\t\tfont-family: '${o}';\n\t\t\t\tsrc: ${i.join(`, `)};\n\t\t\t}`,document.head.appendChild(s)}}async function dt(e,t=`mediaclip`,n){n!=null&&n.match(/^\\/\\//)&&(n=`https:${n}`);let r=new URL(`${n}/json/${t}/${e}`);ee(r);let i=await fetch(r.toString());if(!i.ok)throw Error(`HTTP ${i.status} fetching font clip ${e}`);return i.json()}function ft(e){return Array.from(document.getElementsByTagName(`link`)).some(t=>t.href===e)}function pt(e,t,n){return r=>{for(let i of r)if(i.isIntersecting){let r=i.target,a=r.dataset.blockid,o=r.dataset.blocktype;a&&o&&!e.has(a)&&(e.add(a),w.log({et:`Channel`,ev:`xbv`,pp:t,id:`${n}-${a}`,gbt:o,pet:`Channel`,pid:n}))}}}var mt=`.bb-channel-block[data-blockid][data-blocktype]`;function ht(e,t,n){return n===1?e:t}function K(e,t){var n;return((n=gt[e])==null?void 0:n[t])||e}var gt,_t=s((()=>{gt={LIVE:{en:`Live`,nl:`Live`,sv:`Live`,fr:`Live`,de:`Live`,es:`En Vivo`,da:`Live`,fi:`Suora l\u00E4hetys`},LIVE_IN:{en:`Live in`,nl:`Live over`,sv:`Live om`,fr:`Live dans`,de:`Live in`,es:`En vivo en`,da:`Live om`,fi:`Suorana`},DAY:{en:`day`,nl:`dag`,sv:`dag`,fr:`jour`,de:`Tag`,es:`d\u00EDa`,da:`dag`,fi:`p\u00E4iv\u00E4`},DAYS:{en:`days`,nl:`dagen`,sv:`dagar`,fr:`jours`,de:`Tage`,es:`d\u00EDas`,da:`dage`,fi:`p\u00E4iv\u00E4\u00E4`},HOUR:{en:`hour`,nl:`uur`,sv:`timme`,fr:`heure`,de:`Stunde`,es:`hora`,da:`time`,fi:`tunti`},HOURS:{en:`hours`,nl:`uur`,sv:`timmar`,fr:`heures`,de:`Stunden`,es:`horas`,da:`timer`,fi:`tuntia`},MINUTE:{en:`minute`,nl:`minuut`,sv:`minut`,fr:`minute`,de:`Minute`,es:`minuto`,da:`minut`,fi:`minuutti`},MINUTES:{en:`minutes`,nl:`minuten`,sv:`minuter`,fr:`minutes`,de:`Minuten`,es:`minutos`,da:`minutter`,fi:`minuuttia`},SECOND:{en:`second`,nl:`seconde`,sv:`sekund`,fr:`seconde`,de:`Sekunde`,es:`segundo`,da:`sekund`,fi:`sekunti`},SECONDS:{en:`seconds`,nl:`seconden`,sv:`sekunder`,fr:`secondes`,de:`Sekunden`,es:`segundos`,da:`sekunder`,fi:`sekuntia`},INTERACTIVE:{en:`Interactive`,nl:`Interactief`,sv:`Interaktiv`,fr:`Interactif`,de:`Interaktiv`,es:`Interactivo`,da:`Interaktiv`,fi:`Interaktiivinen`},WATCH_VIDEO:{en:`Watch video`,nl:`Bekijk video`,sv:`Titta p\u00E5 videon`,fr:`Voir vid\u00E9o`,de:`Video ansehen`,es:`Ver v\u00EDdeo`,da:`Afspil nu`,fi:`Katso video`},NEXT:{en:`Next`,nl:`Volgende`,sv:`N\u00E4sta`,fr:`Suivant`,de:`Weiter`,es:`Siguiente`,da:`N\u00E6ste`,fi:`Seuraava`},PREVIOUS:{en:`Previous`,nl:`Vorige`,sv:`F\u00F6reg\u00E5ende`,fr:`Pr\u00E9c\u00E9dent`,de:`Vorherige`,es:`Anterior`,da:`Forrige`,fi:`Edellinen`},SHOW_MORE:{en:`Show more`,nl:`Meer tonen`,sv:`Visa mer`,fr:`Afficher plus`,de:`Mehr anzeigen`,es:`Mostrar m\u00E1s`,da:`Vis mere`,fi:`N\u00E4yt\u00E4 lis\u00E4\u00E4`},SHOW_LESS:{en:`Show less`,nl:`Minder tonen`,sv:`Visa mindre`,fr:`Montrer moins`,de:`Weniger anzeigen`,es:`Mostrar menos`,da:`Vis mindre`,fi:`N\u00E4yt\u00E4 v\u00E4hemm\u00E4n`},VIEW_ALL:{en:`View all`,nl:`Bekijk alles`,sv:`Visa alla`,fr:`Voir tous`,de:`Alle anzeigen`,es:`Ver todo`,da:`Se alt`,fi:`N\u00E4yt\u00E4 kaikki`},PLAYING_NOW:{en:`Playing now`,nl:`Speelt af`,sv:`Spelas nu`,fr:`En cours de lecture`,de:`L\u00E4uft jetzt`,es:`Reproduciendo`,da:`Afspiller nu`,fi:`Toistetaan nyt`},RESUME:{en:`Resume`,nl:`Hervatten`,sv:`\u00C5teruppta`,fr:`Reprendre`,de:`Fortsetzen`,es:`Reanudar`,da:`Genoptag`,fi:`Jatka`},WATCHED_OF:{en:`of`,nl:`van`,sv:`av`,fr:`sur`,de:`von`,es:`de`,da:`af`,fi:`/`},IMAGE:{en:`Image`,nl:`Afbeelding`,sv:`Bild`,fr:`Image`,de:`Bild`,es:`Imagen`,da:`Billede`,fi:`Kuva`},CLOSE:{en:`Close`,nl:`Sluiten`,sv:`St\u00E4ng`,fr:`Fermer`,de:`Schlie\u00DFen`,es:`Cerca`,da:`Luk`,fi:`Sulje`},BACK:{en:`Back`,nl:`Terug`,sv:`Tillbaka`,fr:`Retour`,de:`Zur\u00FCck`,es:`Atr\u00E1s`,da:`Tilbage`,fi:`Takaisin`},SEARCH:{en:`Search`,nl:`Zoeken`,sv:`S\u00F6ka`,fr:`Rechercher`,de:`Suchen`,es:`Buscar`,da:`S\u00F8g`,fi:`Hae`},SEARCHING:{en:`Searching`,nl:`Zoeken`,sv:`S\u00F6ker`,fr:`Recherche`,de:`Suchen`,es:`Buscando`,da:`S\u00F8ger`,fi:`Haetaan`},RESULTS_FOUND:{en:`results found`,nl:`resultaten gevonden`,sv:`resultat hittades`,fr:`r\u00E9sultats trouv\u00E9s`,de:`Ergebnisse gefunden`,es:`resultados encontrados`,da:`resultater fundet`,fi:`tulosta l\u00F6ytyi`},RESULT_FOUND_FOR:{en:`result found for`,nl:`resultaat gevonden voor`,sv:`resultat hittat f\u00F6r`,fr:`r\u00E9sultat trouv\u00E9 pour`,de:`Ergebnis gefunden f\u00FCr`,es:`resultado encontrado para`,da:`resultater fundet for`,fi:`tulos l\u00F6ytyi haulle`},RESULTS_FOUND_FOR:{en:`results found for`,nl:`resultaten gevonden voor`,sv:`resultat hittades f\u00F6r`,fr:`r\u00E9sultats trouv\u00E9s pour`,de:`Ergebnisse gefunden f\u00FCr`,es:`resultados encontrados para`,da:`resultater for`,fi:`tulosta l\u00F6ytyi haulle`},NO_RESULTS_FOUND_FOR:{en:`No results found for`,nl:`Geen resultaten gevonden voor`,sv:`Inga resultat hittades f\u00F6r`,fr:`Aucun r\u00E9sultat trouv\u00E9 pour`,de:`Keine Ergebnisse gefunden f\u00FCr`,es:`No se encontraron resultados para`,da:`Ingen resultater for`,fi:`Ei hakutuloksia`},RELATED_VIDEOS:{en:`Related videos`,nl:`Gerelateerde video's`,sv:`Relaterade videor`,fr:`Vid\u00E9os associ\u00E9es`,de:`Verwandte Videos`,es:`V\u00EDdeos relacionados`,da:`Relaterede videoer`,fi:`Samanaiheiset videot`},SUGGESTED_VIDEOS:{en:`Suggested videos`,nl:`Voorgestelde video's`,sv:`F\u00F6reslagna videor`,fr:`Vid\u00E9os sugg\u00E9r\u00E9es`,de:`Empfohlene Videos`,es:`V\u00EDdeos sugeridos`,da:`Anbefalede videoer`,fi:`Suositellut videot`},YES:{en:`Yes`,nl:`Ja`,sv:`Ja`,fr:`Oui`,de:`Ja`,es:`S\u00ED`,da:`Ja`,fi:`Kyll\u00E4`},NO:{en:`No`,nl:`Nee`,sv:`Nej`,fr:`Non`,de:`Nein`,es:`No`,da:`Nej`,fi:`Ei`},CLIP_DETAILS:{en:`Clip details`,nl:`Clipdetails`,sv:`Klippdetaljer`,fr:`D\u00E9tails du clip`,de:`Clip-Details`,es:`Detalles del clip`,da:`Klippdetaljer`,fi:`Leike tiedot`},PLAYLIST_DETAILS:{en:`Playlist details`,nl:`Afspeellijstdetails`,sv:`Spellistadetaljer`,fr:`D\u00E9tails de la playlist`,de:`Playlist-Details`,es:`Detalles de la lista de reproducci\u00F3n`,da:`Afspilningslistedetaljer`,fi:`Soittolistan tiedot`},TAGS:{en:`Tags`,nl:`Tags`,sv:`Taggar`,fr:`Tags`,de:`Tags`,es:`Etiquetas`,da:`Tags`,fi:`Tunnisteet`},LOAD_MORE:{en:`Load more`,nl:`Meer laden`,sv:`Ladda mer`,fr:`Charger plus`,de:`Mehr laden`,es:`Cargar m\u00E1s`,da:`Indl\u00E6s mere`,fi:`Lataa lis\u00E4\u00E4`},LOADING:{en:`Loading`,nl:`Laden`,sv:`Laddar`,fr:`Chargement`,de:`L\u00E4dt`,es:`Cargando`,da:`Indl\u00E6ser`,fi:`Ladataan`},SET_REMINDER:{en:`Set reminder`,nl:`Herinnering instellen`,sv:`St\u00E4ll p\u00E5minnelse`,fr:`D\u00E9finir un rappel`,de:`Erinnerung setzen`,es:`Establecer recordatorio`,da:`S\u00E6t p\u00E5mindelse`,fi:`Aseta muistutus`},REMINDER_SET:{en:`Reminder set`,nl:`Herinnering ingesteld`,sv:`P\u00E5minnelse inst\u00E4lld`,fr:`Rappel d\u00E9fini`,de:`Erinnerung gesetzt`,es:`Recordatorio establecido`,da:`P\u00E5mindelse sat`,fi:`Muistutus asetettu`},AT:{en:`at`,nl:`om`,sv:`kl.`,fr:`\u00E0`,de:`um`,es:`a las`,da:`kl.`,fi:`klo`},NOTIFICATIONS_NOT_SUPPORTED:{en:`This browser does not support notifications`,nl:`Deze browser ondersteunt geen meldingen`,sv:`Denna webbl\u00E4sare st\u00F6der inte aviseringar`,fr:`Ce navigateur ne prend pas en charge les notifications`,de:`Dieser Browser unterst\u00FCtzt keine Benachrichtigungen`,es:`Este navegador no admite notificaciones`,da:`Denne browser underst\u00F8tter ikke notifikationer`,fi:`T\u00E4m\u00E4 selain ei tue ilmoituksia`},NOTIFICATIONS_BLOCKED:{en:`Notifications blocked`,nl:`Meldingen geblokkeerd`,sv:`Aviseringar blockerade`,fr:`Notifications bloqu\u00E9es`,de:`Benachrichtigungen blockiert`,es:`Notificaciones bloqueadas`,da:`Notifikationer blokeret`,fi:`Ilmoitukset estetty`}}})),vt,q,J=s((()=>{vt=d(p()),q=(0,vt.createContext)({channelId:``,baseurl:``,cropsetmap:{},playerPath:``,mediaAssetPath:``,navigationState:{pageType:`main`,currentEntity:null,currentContext:null,collectionContext:null,activeBlockConfig:null,detailPagePlayout:void 0,targetBlockId:null,contentId:null,contentType:null},setNavigationState:()=>{},app_navigateToPage:()=>{},app_setSearchQuery:()=>{},app_updateSearchResults:()=>Promise.resolve(),isDetailPageActive:!1,isOverviewPageActive:!1,app_hideDetailPage:()=>{},app_registerPlayer:()=>{},app_playEntity:()=>{},app_getEntityData:()=>Promise.resolve(null),app_getQueryData:()=>Promise.resolve(null),app_clearEntityCache:()=>{},app_getCacheStats:()=>({totalEntries:0,validEntries:0,expiredEntries:0,cacheHitRatio:0}),lang:`en`,imageExtension:``})})),yt=c((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),bt=c(((e,t)=>{t.exports=yt()}));_t(),J();var Y=bt(),xt=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M176 480c-27.4 0-48-22.4-48-48V80c0-25.38 20.4-47.98 48.01-47.98a48 48 0 0 1 25.02 7.031l288 176C503.3 223.8 512 239.3 512 256a48.02 48.02 0 0 1-22.97 40.95l-288 176C193.4 477.6 184.7 480 176 480z`})})),St=({block:e,maxWidth:t})=>{let{app_playEntity:n,app_getEntityData:r,channelId:i,lang:a,baseurl:o,appConfig:s}=(0,b.useContext)(q),[c,l]=(0,b.useState)(null),[u,d]=(0,b.useState)(``),[f,p]=(0,b.useState)(``);return(0,b.useEffect)(()=>{if(!t)return;let n=e.config.featuredImageId||e.config.contentId;d(U({contentType:e.config.featuredImageId?`mediaclip`:e.config.contentType,imageId:n,width:t,baseurl:o,imgCacheDate:s==null?void 0:s.imgCacheDate}));let r=e.config.featuredImageIdMobile||e.config.featuredImageId||e.config.contentId;p(U({contentType:e.config.featuredImageIdMobile||e.config.featuredImageId?`mediaclip`:e.config.contentType,imageId:r,width:t,baseurl:o,imgCacheDate:s==null?void 0:s.imgCacheDate}))},[e.config.featuredImageId,e.config.featuredImageIdMobile,e.config.contentId,e.config.contentType,s==null?void 0:s.imgCacheDate,t,o]),(0,b.useEffect)(()=>{let{contentId:t,contentType:n}=e.config;if(!t){l(null);return}r(t,n).then(e=>{l(e)})},[e.config.contentId,e.config.contentType]),(0,Y.jsx)(`div`,{className:`bb-channel-block`,\"data-blockid\":e.id,\"data-blocktype\":`Featured`,\"data-cy\":`featured-wrapper`,children:(0,Y.jsxs)(`div`,{className:`bb-channel-featured-wrapper`,children:[(0,Y.jsx)(`h2`,{className:`featured-title`,children:e.config.header}),c&&(0,Y.jsxs)(`button`,{type:`button`,className:`bb-button bb-button-fill featured-button`,onClick:()=>{if(!c)return;let r=ce(o);r&&w.log({ev:`xcl`,et:`ChannelItem`,id:`${e.id}`,pp:r,cet:c.type.toLowerCase(),cid:c.id,gbt:`Featured`,\"pet#0\":`ChannelBlock`,\"pid#0\":e.id,\"pet#1\":`Channel`,\"pid#1\":i}),n({entity:c,playerBlockId:e.config.playIn,contentId:e.config.contentId,blockType:e.type,contextItem:e.config.contentType===`cliplist`?{contentType:`cliplist`,contentId:e.config.contentId}:null,clickedImgCache:{width:t.toString(),type:e.config.featuredImageId?`mediaclip`:e.config.contentType,extension:``},fromBlock:e.config,fromBlockId:e.id})},\"data-cy\":`featured-contentId-${c.id}`,children:[(0,Y.jsx)(xt,{className:`play-icon`}),K(`WATCH_VIDEO`,a)]}),(0,Y.jsxs)(`div`,{className:`image-container-featured`,children:[(0,Y.jsx)(`div`,{className:`img-gradient`}),u&&(0,Y.jsx)(`img`,{className:`featured-img`,loading:`lazy`,alt:``,src:u}),f&&(0,Y.jsx)(`img`,{className:`featured-img-mobile`,loading:`lazy`,alt:``,src:f})]})]})})};_t(),J();var Ct=({children:e,autoplayDelay:t=6e3,showDots:n=!0,showArrows:r=!0,disabled:i=!1,speed:a=500,onSlideChange:o,className:s=``,ariaLabel:c=`Featured slider`})=>{let{lang:l}=(0,b.useContext)(q),[u,d]=(0,b.useState)(0),[f,p]=(0,b.useState)(!1),m=(0,b.useRef)(null),h=e.length,g=(0,b.useCallback)(()=>{d(e=>(e+1)%h)},[h]),_=(0,b.useCallback)(()=>{d(e=>(e-1+h)%h)},[h]),v=(0,b.useCallback)(e=>{d(e)},[]);(0,b.useEffect)(()=>{o==null||o(u)},[u,o]),(0,b.useEffect)(()=>{if(i||!t||f||h<=1){m.current&&(clearInterval(m.current),m.current=null);return}return m.current=setInterval(()=>{g()},t),()=>{m.current&&(clearInterval(m.current),m.current=null)}},[t,i,f,h,g]);let y=()=>p(!0),x=()=>p(!1),S=e=>{e.target===e.currentTarget&&p(!0)},C=e=>{e.target===e.currentTarget&&p(!1)},w=(0,b.useRef)(null),T=(0,b.useRef)(null);return(0,Y.jsxs)(`div`,{className:`bb-fade-slider ${s}`,role:`region`,\"aria-label\":c,tabIndex:0,onMouseEnter:y,onMouseLeave:x,onFocus:S,onBlur:C,onKeyDown:e=>{i||(e.key===`ArrowLeft`?(e.preventDefault(),_()):e.key===`ArrowRight`&&(e.preventDefault(),g()))},onTouchStart:e=>{w.current=e.touches[0].clientX,T.current=e.touches[0].clientY},onTouchEnd:e=>{if(i||w.current===null||T.current===null)return;let t=e.changedTouches[0].clientX-w.current,n=e.changedTouches[0].clientY-T.current;w.current=null,T.current=null,Math.abs(t)>50&&Math.abs(t)>Math.abs(n)&&(t<0?g():_())},style:{\"--fade-speed\":`${a}ms`,\"--autoplay-duration\":`${t}ms`},children:[(0,Y.jsx)(`div`,{className:`bb-fade-slider-track`,children:e.map((e,t)=>(0,Y.jsx)(`div`,{className:`bb-fade-slide ${t===u?`active`:``}`,\"aria-hidden\":t!==u,children:e},t))}),r&&h>1&&!i&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`button`,{type:`button`,className:`bb-fade-arrow prev`,onClick:_,\"aria-label\":K(`PREVIOUS`,l)}),(0,Y.jsx)(`button`,{type:`button`,className:`bb-fade-arrow next`,onClick:g,\"aria-label\":K(`NEXT`,l)})]}),n&&h>1&&!i&&(0,Y.jsx)(`div`,{className:`bb-fade-dots`,role:`group`,children:e.map((e,n)=>(0,Y.jsx)(`button`,{type:`button`,\"aria-selected\":n===u,className:`bb-fade-dot ${n===u?`active`:``} ${t&&!f?`with-progress`:``}`,onClick:()=>v(n),\"aria-label\":`Go to slide ${n+1}`},n))})]})};W(),J();function wt(e){return e.includes(`://`)?/^https?:\\/\\//i.test(e)?e:null:`https://`+e}var Tt=({imageId:e,url:t,openInNewTab:n,maxWidth:r,className:i,trackingId:a,channelId:o,isActive:s=!0})=>{let{baseurl:c,appConfig:l}=(0,b.useContext)(q),[u,d]=(0,b.useState)(``),f=(0,b.useRef)(!1),p=(0,b.useRef)(!1),m=(0,b.useRef)(null),h=ce(c);(0,b.useEffect)(()=>{!r||!e||d(U({contentType:`mediaclip`,imageId:e,width:r,baseurl:c,imgCacheDate:l==null?void 0:l.imgCacheDate}))},[e,l==null?void 0:l.imgCacheDate,r,c]),(0,b.useEffect)(()=>{!u||!a||!h||f.current||(f.current=!0,w.log({et:`Promotional`,ev:`xit`,id:a,...o&&{pid:o},pp:h}))},[u,a,h]),(0,b.useEffect)(()=>{if(!m.current||!a||!h||!s)return;let e=new IntersectionObserver(([t])=>{t.isIntersecting&&!p.current&&(p.current=!0,w.log({et:`Promotional`,ev:`xiv`,id:a,...o&&{pid:o},pp:h}),e.disconnect())},{threshold:.5});return e.observe(m.current),()=>e.disconnect()},[u,a,h,s]);let g=(0,b.useCallback)(()=>{!a||!h||w.log({et:`Promotional`,ev:`xcl`,id:a,...o&&{pid:o},pp:h})},[a,h]);if(!e)return null;let _=u&&(0,Y.jsx)(`img`,{ref:m,className:`promotional-img`,alt:``,src:u}),v=t?wt(t):null;return v?(0,Y.jsx)(`a`,{href:v,target:n?`_blank`:void 0,className:`url${i?` ${i}`:``}`,rel:`noreferrer`,onClick:g,children:_}):(0,Y.jsx)(`span`,{className:i,children:_})},Et={large:`promo-layout-large`,small:`promo-layout-small`,columns:`promo-layout-columns`},Dt=({block:e,maxWidth:t,channelSize:n})=>{let{channelId:r}=(0,b.useContext)(q),[i,a]=(0,b.useState)(0),o=n===`S`,s=Et[e.config.promoLayout]??`promo-layout-small`;if(e.config.promoLayout===`columns`){var c;let n=((c=e.config.positions)==null?void 0:c.filter(e=>e.promotionalImageId||e.promotionalImageMobileId))||[];return n.length?o&&n.length>1?(0,Y.jsx)(`div`,{className:`bb-channel-block bb-channel-promotional-wrapper ${s}`,\"data-blockid\":e.id,\"data-blocktype\":`Promotional`,\"data-cy\":`promotional-wrapper`,children:(0,Y.jsx)(Ct,{showDots:!0,showArrows:!1,autoplayDelay:6e3,ariaLabel:`Promotional carousel`,onSlideChange:a,children:n.map((e,n)=>(0,Y.jsx)(Tt,{imageId:e.promotionalImageMobileId||e.promotionalImageId,url:e.promotionalUrl,openInNewTab:e.openInNewTab,maxWidth:t,className:`promo-column`,trackingId:e.promotionalImageId||e.promotionalImageMobileId?`${r}-${e.promotionalImageId??e.promotionalImageMobileId}`:void 0,channelId:r,isActive:n===i},e.id))})}):(0,Y.jsx)(`div`,{className:`bb-channel-block bb-channel-promotional-wrapper ${s}`,\"data-blockid\":e.id,\"data-blocktype\":`Promotional`,\"data-cy\":`promotional-wrapper`,children:n.map(e=>(0,Y.jsx)(Tt,{imageId:o&&e.promotionalImageMobileId?e.promotionalImageMobileId:e.promotionalImageId,url:e.promotionalUrl,openInNewTab:e.openInNewTab,maxWidth:o?t:Math.floor(t/n.length),className:`promo-column`,trackingId:e.promotionalImageId||e.promotionalImageMobileId?`${r}-${e.promotionalImageId??e.promotionalImageMobileId}`:void 0,channelId:r},e.id))}):null}return e.config.promotionalImageId?(0,Y.jsx)(`div`,{className:`bb-channel-block bb-channel-promotional-wrapper ${s}`,\"data-blockid\":e.id,\"data-blocktype\":`Promotional`,\"data-cy\":`promotional-wrapper`,children:(0,Y.jsx)(Tt,{imageId:e.config.promotionalImageId,url:e.config.promotionalUrl,openInNewTab:e.config.openInNewTab,maxWidth:t,trackingId:`${r}-${e.config.promotionalImageId}`,channelId:r})}):null};W();function Ot({config:e,baseurl:t,imgCacheDate:n}){let r=e.backgroundImageId?U({contentType:`mediaclip`,imageId:e.backgroundImageId,width:1920,baseurl:t,imgCacheDate:n}):``;return{headerLayout:e.headerLayout||`logo-right`,logoElement:e.logoImageId?(0,Y.jsx)(`img`,{className:`header-logo`,src:U({contentType:`mediaclip`,imageId:e.logoImageId,width:Math.round(400*(window.devicePixelRatio||1)),baseurl:t,imgCacheDate:n}),alt:``}):null,wrapperStyle:{...r&&{\"--promo-bg-image\":`url(${r})`},...e.backgroundColor&&{\"--promo-bg-color\":`#${e.backgroundColor}`},...e.fontColor&&{\"--playlist-font-color\":`#${e.fontColor}`},...typeof e.blockBorderRadius==`number`&&{borderRadius:`${e.blockBorderRadius}px`}}}}function kt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:sn;if(Wt&&Wt(e,null),!on(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Gt(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Lt(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:Un(),t=e=>Ht(e);if(t.version=`3.4.5`,t.removed=[],!e||!e.document||e.document.nodeType!==Hn.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript,a=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=Bt(h,`cloneNode`),_=Bt(h,`remove`),v=Bt(h,`nextSibling`),y=Bt(h,`childNodes`),b=Bt(h,`parentNode`),x=s&&s.prototype?Bt(s.prototype,`nodeType`):null;if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w=n,T=w.implementation,ee=w.createNodeIterator,E=w.createDocumentFragment,D=w.getElementsByTagName,O=r.importNode,k=Gn();t.isSupported=typeof Ut==`function`&&typeof b==`function`&&T&&T.createHTMLDocument!==void 0;let A=Mn,j=Nn,M=Pn,N=Fn,P=In,F=Rn,I=zn,L=Vn,te=Ln,R=null,z=X({},[...xn,...Sn,...Cn,...Tn,...Dn]),B=null,V=X({},[...On,...kn,...An,...jn]),H=Object.seal(Xt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,re=null,ie=Object.seal(Xt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ae=!0,oe=!0,se=!1,ce=!0,le=!1,ue=!0,de=!1,fe=!1,pe=!1,me=!1,he=!1,ge=!1,_e=!0,ve=!1,ye=`user-content-`,be=!0,U=!1,xe={},W=null,Se=X({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ce=null,we=X({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Te=null,Ee=X({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),De=`http://www.w3.org/1998/Math/MathML`,Oe=`http://www.w3.org/2000/svg`,ke=`http://www.w3.org/1999/xhtml`,Ae=ke,je=!1,Me=null,Ne=X({},[De,Oe,ke],cn),Pe=X({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Fe=X({},[`annotation-xml`]),Ie=X({},[`title`,`style`,`font`,`a`,`script`]),Le=null,Re=[`application/xhtml+xml`,`text/html`],ze=null,Be=null,Ve=n.createElement(`form`),He=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Be&&Be===e)return;(!e||typeof e!=`object`)&&(e={}),e=Rt(e),Le=Re.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ze=Le===`application/xhtml+xml`?cn:sn,R=_n(e,`ALLOWED_TAGS`)&&on(e.ALLOWED_TAGS)?X({},e.ALLOWED_TAGS,ze):z,B=_n(e,`ALLOWED_ATTR`)&&on(e.ALLOWED_ATTR)?X({},e.ALLOWED_ATTR,ze):V,Me=_n(e,`ALLOWED_NAMESPACES`)&&on(e.ALLOWED_NAMESPACES)?X({},e.ALLOWED_NAMESPACES,cn):Ne,Te=_n(e,`ADD_URI_SAFE_ATTR`)&&on(e.ADD_URI_SAFE_ATTR)?X(Rt(Ee),e.ADD_URI_SAFE_ATTR,ze):Ee,Ce=_n(e,`ADD_DATA_URI_TAGS`)&&on(e.ADD_DATA_URI_TAGS)?X(Rt(we),e.ADD_DATA_URI_TAGS,ze):we,W=_n(e,`FORBID_CONTENTS`)&&on(e.FORBID_CONTENTS)?X({},e.FORBID_CONTENTS,ze):Se,ne=_n(e,`FORBID_TAGS`)&&on(e.FORBID_TAGS)?X({},e.FORBID_TAGS,ze):Rt({}),re=_n(e,`FORBID_ATTR`)&&on(e.FORBID_ATTR)?X({},e.FORBID_ATTR,ze):Rt({}),xe=_n(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Rt(e.USE_PROFILES):e.USE_PROFILES:!1,ae=e.ALLOW_ARIA_ATTR!==!1,oe=e.ALLOW_DATA_ATTR!==!1,se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,le=e.SAFE_FOR_TEMPLATES||!1,ue=e.SAFE_FOR_XML!==!1,de=e.WHOLE_DOCUMENT||!1,me=e.RETURN_DOM||!1,he=e.RETURN_DOM_FRAGMENT||!1,ge=e.RETURN_TRUSTED_TYPE||!1,pe=e.FORCE_BODY||!1,_e=e.SANITIZE_DOM!==!1,ve=e.SANITIZE_NAMED_PROPS||!1,be=e.KEEP_CONTENT!==!1,U=e.IN_PLACE||!1,te=Vt(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ln,Ae=typeof e.NAMESPACE==`string`?e.NAMESPACE:ke,Pe=_n(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Rt(e.MATHML_TEXT_INTEGRATION_POINTS):X({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Fe=_n(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Rt(e.HTML_INTEGRATION_POINTS):X({},[`annotation-xml`]);let t=_n(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Rt(e.CUSTOM_ELEMENT_HANDLING):Xt(null);if(H=Xt(null),_n(t,`tagNameCheck`)&&He(t.tagNameCheck)&&(H.tagNameCheck=t.tagNameCheck),_n(t,`attributeNameCheck`)&&He(t.attributeNameCheck)&&(H.attributeNameCheck=t.attributeNameCheck),_n(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(H.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),le&&(oe=!1),he&&(me=!0),xe&&(R=X({},Dn),B=Xt(null),xe.html===!0&&(X(R,xn),X(B,On)),xe.svg===!0&&(X(R,Sn),X(B,kn),X(B,jn)),xe.svgFilters===!0&&(X(R,Cn),X(B,kn),X(B,jn)),xe.mathMl===!0&&(X(R,Tn),X(B,An),X(B,jn))),ie.tagCheck=null,ie.attributeCheck=null,_n(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ie.tagCheck=e.ADD_TAGS:on(e.ADD_TAGS)&&(R===z&&(R=Rt(R)),X(R,e.ADD_TAGS,ze))),_n(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ie.attributeCheck=e.ADD_ATTR:on(e.ADD_ATTR)&&(B===V&&(B=Rt(B)),X(B,e.ADD_ATTR,ze))),_n(e,`ADD_URI_SAFE_ATTR`)&&on(e.ADD_URI_SAFE_ATTR)&&X(Te,e.ADD_URI_SAFE_ATTR,ze),_n(e,`FORBID_CONTENTS`)&&on(e.FORBID_CONTENTS)&&(W===Se&&(W=Rt(W)),X(W,e.FORBID_CONTENTS,ze)),_n(e,`ADD_FORBID_CONTENTS`)&&on(e.ADD_FORBID_CONTENTS)&&(W===Se&&(W=Rt(W)),X(W,e.ADD_FORBID_CONTENTS,ze)),be&&(R[`#text`]=!0),de&&X(R,[`html`,`head`,`body`]),R.table&&(X(R,[`tbody`]),delete ne.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw bn(`TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw bn(`TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.`);S=e.TRUSTED_TYPES_POLICY,C=S.createHTML(``)}else S===void 0&&(S=Wn(m,i)),S!==null&&typeof C==`string`&&(C=S.createHTML(``));Jt&&Jt(e),Be=e},We=X({},[...Sn,...Cn,...wn]),Ge=X({},[...Tn,...En]),Ke=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:Ae,tagName:`template`});let n=sn(e.tagName),r=sn(t.tagName);return Me[e.namespaceURI]?e.namespaceURI===Oe?t.namespaceURI===ke?n===`svg`:t.namespaceURI===De?n===`svg`&&(r===`annotation-xml`||Pe[r]):!!We[n]:e.namespaceURI===De?t.namespaceURI===ke?n===`math`:t.namespaceURI===Oe?n===`math`&&Fe[r]:!!Ge[n]:e.namespaceURI===ke?t.namespaceURI===Oe&&!Fe[r]||t.namespaceURI===De&&!Pe[r]?!1:!Ge[n]&&(Ie[n]||!We[n]):!!(Le===`application/xhtml+xml`&&Me[e.namespaceURI]):!1},qe=function(e){rn(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},Je=function(e,n){try{rn(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{rn(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(me||he)try{qe(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ye=function(e){let t=null,r=null;if(pe)e=``+e;else{let t=ln(e,/^[\\r\\n\\t ]+/);r=t&&t[0]}Le===`application/xhtml+xml`&&Ae===ke&&(e=``+e+``);let i=S?S.createHTML(e):e;if(Ae===ke)try{t=new p().parseFromString(i,Le)}catch{}if(!t||!t.documentElement){t=T.createDocument(Ae,`template`,null);try{t.documentElement.innerHTML=je?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ae===ke?D.call(t,de?`html`:`body`)[0]:de?t.documentElement:a},Xe=function(e){return ee.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},G=function(e){e.normalize();let t=ee.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;en([A,j,M],t=>{e=un(e,t,` `)}),n.data=e,n=t.nextNode()}},Ze=function(e){return e instanceof f&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Qe=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function $e(e,n,r){en(e,e=>{e.call(t,n,r,Be)})}let et=function(e){let n=null;if($e(k.beforeSanitizeElements,e,null),Ze(e))return qe(e),!0;let r=ze(e.nodeName);if($e(k.uponSanitizeElement,e,{tagName:r,allowedTags:R}),ue&&e.hasChildNodes()&&!Qe(e.firstElementChild)&&yn(/<[/\\w!]/g,e.innerHTML)&&yn(/<[/\\w!]/g,e.textContent)||ue&&e.namespaceURI===ke&&r===`style`&&Qe(e.firstElementChild)||e.nodeType===Hn.progressingInstruction||ue&&e.nodeType===Hn.comment&&yn(/<[/\\w]/g,e.data))return qe(e),!0;if(ne[r]||!(ie.tagCheck instanceof Function&&ie.tagCheck(r))&&!R[r]){if(!ne[r]&&rt(r)&&(H.tagNameCheck instanceof RegExp&&yn(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r)))return!1;if(be&&!W[r]){let t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);t.insertBefore(r,v(e))}}}return qe(e),!0}return e instanceof c&&!Ke(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&yn(/<\\/no(script|embed|frames)/i,e.innerHTML)?(qe(e),!0):(le&&e.nodeType===Hn.text&&(n=e.textContent,en([A,j,M],e=>{n=un(n,e,` `)}),e.textContent!==n&&(rn(t.removed,{element:e.cloneNode()}),e.textContent=n)),$e(k.afterSanitizeElements,e,null),!1)},tt=function(e,t,r){if(re[t]||_e&&(t===`id`||t===`name`)&&(r in n||r in Ve))return!1;let i=B[t]||ie.attributeCheck instanceof Function&&ie.attributeCheck(t,e);if(!(oe&&!re[t]&&yn(N,t))&&!(ae&&yn(P,t))){if(!i||re[t]){if(!(rt(e)&&(H.tagNameCheck instanceof RegExp&&yn(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&yn(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t,e))||t===`is`&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&yn(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r))))return!1}else if(!Te[t]&&!yn(te,un(r,I,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&dn(r,`data:`)===0&&Ce[e])&&!(se&&!yn(F,un(r,I,``)))&&r)return!1}return!0},nt=X({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),rt=function(e){return!nt[sn(e)]&&yn(L,e)},it=function(e){$e(k.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||Ze(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=ze(o),u=c,d=o===`value`?u:fn(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,$e(k.uponSanitizeAttribute,e,r),d=r.attrValue,ve&&(l===`id`||l===`name`)&&dn(d,ye)!==0&&(Je(o,e),d=ye+d),ue&&yn(/((--!?|])>)|<\\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Je(o,e);continue}if(l===`attributename`&&ln(d,`href`)){Je(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Je(o,e);continue}if(!ce&&yn(/\\/>/i,d)){Je(o,e);continue}le&&en([A,j,M],e=>{d=un(d,e,` `)});let f=ze(e.nodeName);if(!tt(f,l,d)){Je(o,e);continue}if(S&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=S.createHTML(d);break;case`TrustedScriptURL`:d=S.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),Ze(e)?qe(e):nn(t.removed)}catch{Je(o,e)}}$e(k.afterSanitizeAttributes,e,null)},at=function(e){let t=null,n=Xe(e);for($e(k.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)$e(k.uponSanitizeShadowNode,t,null),et(t),it(t),t.content instanceof a&&at(t.content);$e(k.afterSanitizeShadowDOM,e,null)},ot=function(e){if(e.nodeType===Hn.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;ot(t),at(t)}let t=e.childNodes;if(!t)return;let n=[];en(t,e=>{rn(n,e)});for(let e of n)ot(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,s=null,c=null;if(je=!e,je&&(e=``),typeof e!=`string`&&!Qe(e)&&(e=zt(e),typeof e!=`string`))throw bn(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(fe||Ue(n),t.removed=[],typeof e==`string`&&(U=!1),U){let t=e.nodeName;if(typeof t==`string`){let e=ze(t);if(!R[e]||ne[e])throw bn(`root node is forbidden and cannot be sanitized in-place`)}ot(e)}else if(Qe(e))i=Ye(``),o=i.ownerDocument.importNode(e,!0),o.nodeType===Hn.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),ot(o);else{if(!me&&!le&&!de&&e.indexOf(`<`)===-1)return S&&ge?S.createHTML(e):e;if(i=Ye(e),!i)return me?null:ge?C:``}i&&pe&&qe(i.firstChild);let l=Xe(U?e:i);for(;s=l.nextNode();)et(s),it(s),s.content instanceof a&&at(s.content);if(U)return le&&G(e),e;if(me){if(le&&G(i),he)for(c=E.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(B.shadowroot||B.shadowrootmode)&&(c=O.call(r,c,!0)),c}let u=de?i.outerHTML:i.innerHTML;return de&&R[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&yn(Bn,i.ownerDocument.doctype.name)&&(u=`\n`+u),le&&en([A,j,M],e=>{u=un(u,e,` `)}),S&&ge?S.createHTML(u):u},t.setConfig=function(){Ue(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),fe=!0},t.clearConfig=function(){Be=null,fe=!1},t.isValidAttribute=function(e,t,n){return Be||Ue({}),tt(ze(e),ze(t),n)},t.addHook=function(e,t){typeof t==`function`&&rn(k[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=tn(k[e],t);return n===-1?void 0:an(k[e],n,1)[0]}return nn(k[e])},t.removeHooks=function(e){k[e]=[]},t.removeAllHooks=function(){k=Gn()},t}var Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn=s((()=>{Ut=Object.entries,Wt=Object.setPrototypeOf,Gt=Object.isFrozen,Kt=Object.getPrototypeOf,qt=Object.getOwnPropertyDescriptor,Jt=Object.freeze,Yt=Object.seal,Xt=Object.create,Zt=typeof Reflect<`u`&&Reflect,Qt=Zt.apply,$t=Zt.construct,Jt||(Jt=function(e){return e}),Yt||(Yt=function(e){return e}),Qt||(Qt=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r`u`?null:Ft(BigInt.prototype.toString),gn=typeof Symbol>`u`?null:Ft(Symbol.prototype.toString),_n=Ft(Object.prototype.hasOwnProperty),vn=Ft(Object.prototype.toString),yn=Ft(RegExp.prototype.test),bn=It(TypeError),xn=Jt(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Sn=Jt(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Cn=Jt([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),wn=Jt([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Tn=Jt(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),En=Jt([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Dn=Jt([`#text`]),On=Jt(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),kn=Jt(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),An=Jt(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),jn=Jt([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Mn=Yt(/{{[\\w\\W]*|^[\\w\\W]*}}/g),Nn=Yt(/<%[\\w\\W]*|^[\\w\\W]*%>/g),Pn=Yt(/\\${[\\w\\W]*/g),Fn=Yt(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/),In=Yt(/^aria-[\\-\\w]+$/),Ln=Yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i),Rn=Yt(/^(?:\\w+script|data):/i),zn=Yt(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g),Bn=Yt(/^html$/i),Vn=Yt(/^[a-z][.\\w]*(-[.\\w]+)+$/i),Hn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Un=function(){return typeof window>`u`?null:window},Wn=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Gn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Kn=Ht()}));function Jn(e){return e?Kn.sanitize(e).replace(/ /g,` `).replace(/\\r?\\n/g,`
`):``}var Yn=s((()=>{qn()}));Yn();var Xn=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 576 512`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z`})})),Zn=(0,b.forwardRef)((e,t)=>(0,Y.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 53 53`,fill:`none`,ref:t,...e,children:[(0,Y.jsx)(`circle`,{cx:26,cy:26,r:26,fill:`var(--play-bg-color, #181818)`}),(0,Y.jsx)(`path`,{d:`M32.342 24.312a2 2 0 0 1 0 3.377l-9.269 5.887c-1.331.846-3.072-.111-3.072-1.688V20.113c0-1.577 1.741-2.534 3.072-1.688l9.269 5.887z`,fill:`var(--play-icon-color, #fff)`})]})),Qn=`search-highlight`,$n=`_highlighted`,er=`_s_highlighted`,tr={},nr=new WeakMap,rr=null;function ir(e){rr=e}function ar(e,t){let n=new Set;if(rr){let t=nr.get(rr);t!=null&&t[e]&&t[e].forEach(e=>n.add(e))}if(tr[e]&&tr[e].forEach(e=>n.add(e)),e===`CONTENT_BLOCKED`){let e=t;(rr||document).dispatchEvent(new CustomEvent(`contentblocked`,{bubbles:!0,composed:!0,detail:{contentId:e.contentId,contentType:e.contentType,reason:e.violation}}))}n.size!==0&&n.forEach(n=>{try{n(t)}catch(t){console.error(`[ChannelEvents] Error in handler for ${e}:`,t)}})}function or(e,t,n){let r=!n||isNaN(n.getTime());if(t??(t=navigator.language||`en-GB`),n??(n=new Date),e.displayFormat===`relative`){let e=new Intl.RelativeTimeFormat(t,{numeric:`auto`});if(r)return e.format(-2,`hour`);let i=Math.floor((new Date().getTime()-n.getTime())/1e3);if(i<60)return e.format(-i,`second`);let a=Math.floor(i/60);if(a<60)return e.format(-a,`minute`);let o=Math.floor(a/60);if(o<24)return e.format(-o,`hour`);let s=Math.floor(o/24);if(s<30)return e.format(-s,`day`);let c=Math.floor(s/30);if(c<12)return e.format(-c,`month`);let l=Math.floor(c/12);return e.format(-l,`year`)}if(e.displayFormat===`user-locale`){let t={year:`numeric`,month:`2-digit`,day:`2-digit`};return e.includeDayOfWeek===`short`?t.weekday=`short`:e.includeDayOfWeek===`long`&&(t.weekday=`long`),e.includeTime&&(t.hour=`2-digit`,t.minute=`2-digit`,t.hour12=!1),new Intl.DateTimeFormat(void 0,t).format(n)}let i={},a=`-`;switch(e.displayFormat.includes(`/`)?a=`/`:e.displayFormat.includes(`.`)&&(a=`.`),e.includeDayOfWeek===`short`?i.weekday=`short`:e.includeDayOfWeek===`long`&&(i.weekday=`long`),e.displayFormat){case`DD-MM-YYYY`:t=`en-GB`,i={...i,day:`2-digit`,month:`2-digit`,year:`numeric`};break;case`MM/DD/YYYY`:t=`en-US`,i={...i,month:`2-digit`,day:`2-digit`,year:`numeric`};break;case`YYYY-MM-DD`:t=`sv-SE`,i={...i,year:`numeric`,month:`2-digit`,day:`2-digit`};break;case`DD MMM YYYY`:i={...i,day:`2-digit`,month:`short`,year:`numeric`};break;case`MMMM DD, YYYY`:i={...i,day:`2-digit`,month:`long`,year:`numeric`};break;case`DD.MM.YYYY`:t=`de-DE`,i={...i,day:`2-digit`,month:`2-digit`,year:`numeric`};break;default:i={...i,day:`2-digit`,month:`2-digit`,year:`numeric`}}e.includeTime&&(i.hour=`2-digit`,i.minute=`2-digit`,i.hour12=!1);try{return new Intl.DateTimeFormat(t,i).formatToParts(n).map(e=>e.type===`literal`&&[`/`,`-`,`.`].includes(e.value)?a:e.value).join(``)}catch{return n.toLocaleDateString()}}qn(),_t();var sr=({entity:e,customFieldConfig:t,lang:n,full:r=!1})=>{if(!t)return null;let i=e[t.name];switch(t.type){case`date`:i=or(t.config||{displayFormat:`DD MMM YYYY`},n,new Date(e[t.name]));break;case`string`:var a;if(((a=t.options)==null?void 0:a.length)>0){let n=t.options.find(n=>n.value===e[t.name]);n!=null&&n.label&&(i=n.label)}break;case`array`:var o;i=(o=e[t.name])==null?void 0:o.join(`, `);break;case`multistring`:var s,c,l;i=(s=Array.isArray(e[t.name])?e[t.name]:(c=e[t.name])==null||(l=c.split)==null?void 0:l.call(c,`\n`))==null?void 0:s.map(e=>{var n;let r=e;if(((n=t.options)==null?void 0:n.length)>0){let n=t.options.find(t=>t.value===e);n!=null&&n.label&&(r=n.label)}return r}).join(`, `);break;case`int`:case`float`:i=parseFloat(e[t.name]).toLocaleString(n);break;case`boolean`:i=e[t.name]?K(`YES`,n):K(`NO`,n);break;default:break}return r?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`field-label`,children:(0,Y.jsx)(`strong`,{children:t.label})}),t.itype===`richtext`?(0,Y.jsx)(`div`,{className:`field-value richtext`,dangerouslySetInnerHTML:{__html:Kn.sanitize(i)}}):(0,Y.jsx)(`span`,{className:`field-value`,children:i})]}):(0,Y.jsx)(`span`,{className:`field-value-plain`,children:i})};W();var cr=({props:e})=>{let t=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var t;let n=e==null||(t=e.baseurl)==null?void 0:t.split(`.`)[1],r=`cdn`;[`dev`,`acc`,`test`].includes(n)&&(r+=`-${n}`),le(`https://${r}.bluebillywig.com/apps/bb-components/latest/lib/bb-cp-overlay.wc.js`,{type:`module`,async:!0})},[]),(0,b.useEffect)(()=>{if(!t.current||!e)return;let n=new Map;return Object.keys(e).forEach(r=>{if(t.current[r]=e[r],typeof e[r]==`function`){let i=t=>{e[r](t.detail)};n.set(r,i),t.current.addEventListener(r,i)}}),()=>{t.current&&(n.forEach((e,n)=>{t.current.removeEventListener(n,e)}),Object.keys(e).forEach(e=>{delete t.current[e]}))}},[e]),(0,Y.jsx)(`div`,{className:`overlay-wrapper`,children:(0,Y.jsx)(`bb-cp-overlay`,{ref:t})})};function lr(e){return{d:Math.floor(e/864e5),h:Math.floor(e%864e5/36e5),m:Math.floor(e%36e5/6e4),s:Math.floor(e%6e4/1e3)}}function ur(e,t,n,r){return Me.clearEntityCache(e,t),Me.getEntityData(e,t,n).then(e=>{e!=null&&e.softEmbargo&&new Date(e.softEmbargo).getTime()>Date.now()?r(e.softEmbargo):r(void 0)}).catch(r=>{console.error(`Failed to refetch embargoed entity`,{contentId:e,contentType:t,baseurl:n,error:r})})}var dr=.12;dr*100;var fr={small:.8,medium:1.2,large:1.6},pr=16/9,mr=1280,hr=.2,gr=(e,t=1,n=pr)=>{let r=dr*mr,i=(e/mr)**+hr,a=Math.sqrt(pr/n);return Math.round(r*t*i*a)},_r=e=>fr[e]||fr.medium;J();function vr(e){let{appConfig:t}=(0,b.useContext)(q);return(0,b.useMemo)(()=>{let n=t||{},r=e.config,i=r.hoverUseChannelDefault===!1,a=i&&r.hoverStyle!==void 0?r.hoverStyle:n.hoverStyle,o=i&&r.hoverShowDescription!==void 0?r.hoverShowDescription:!!n.hoverShowDescription,s=(i&&r.hoverScaleContainer!==void 0?r.hoverScaleContainer:n.hoverScaleContainer)!==!1;return{style:a,showDescription:o,scaleContainer:s,showPreview:i&&r.hoverShowPreview!==void 0?r.hoverShowPreview:!!n.hoverShowPreview,classes:[a&&a!==`default`?`hover-style-${a}`:``,o?`hover-desc-on`:`hover-desc-off`,s?``:`hover-scale-off`].filter(Boolean).join(` `),itemGap:!s&&a===`background-color`?16:s?4:12}},[t,e.config])}J(),qn(),W(),_t();var yr=200,br=new Map;async function xr(e,t,n){if(br.has(n.id))return br.get(n.id)??null;if(br.size>=yr){let e=br.keys().next().value;br.delete(e)}try{let i=n.id;if(n.type===`MediaClipList`||n.type===`cliplist`){var r;let t=(r=(await(await fetch(`${e}/papi/search?query=*&context=cliplist:${n.id}&limit=1`)).json()).items)==null?void 0:r[0];if(!t||t.type===`MediaClipList`)return br.set(n.id,null),null;i=t.id}let a=await(await fetch(`${e}/json/mediaclip/${i}`)).json();if(a.error)return br.set(n.id,null),null;let o=a.movingThumbnails,s=o==null?void 0:o[o.length-1],c=s!=null&&s.src?`${t}${s.src}`:null;return br.set(n.id,c),c}catch{return br.set(n.id,null),null}}var Sr=(0,b.forwardRef)(({tellParentIAmLoaded:e,isDragging:t,block:n,listIndex:r,entity:i,hideSelected:a,playerPlaylistType:o,contextItem:s,aspectRatio:c,componentClass:l,lazyLoadImage:u,onItemSelected:d,disabled:f,displayMode:p,isLoadingPlaylist:m,playButtonColor:h,playIconColor:g,playoutColor:_},v)=>{var y,x,S,C,T;(0,b.useImperativeHandle)(v,()=>({getOffsetTop:()=>I.current.offsetTop}));let{app_playEntity:ee,baseurl:E,mediaAssetPath:D,channelId:O,lang:k,cropsetmap:A,customFields:j,navigationState:M,imageExtension:N,appConfig:P}=(0,b.useContext)(q),I=(0,b.useRef)(null),[L,te]=(0,b.useState)(void 0),[R,z]=(0,b.useState)(void 0),[V,H]=(0,b.useState)(void 0),[re,ie]=(0,b.useState)(void 0),[ae,oe]=(0,b.useState)(null),[se,le]=(0,b.useState)(!1),[de,fe]=(0,b.useState)(!1),[pe,me]=(0,b.useState)(!1),[he,ge]=(0,b.useState)(),[_e,ve]=(0,b.useState)(i.softEmbargo),[ye,be]=(0,b.useState)(null),[xe,W]=(0,b.useState)(null),[Se,Ce]=(0,b.useState)(!1),we=!!(P!=null&&P.previewAddWatchedHistory),[Te,Ee]=(0,b.useState)(()=>we?F(i.id):0),De=(0,b.useRef)(null),Oe=(0,b.useRef)(!1),{showPreview:ke,style:Ae,showDescription:je}=vr(n),Me=(0,b.useCallback)(async()=>{if(!(se||i.mediatype===`image`)&&ke&&!(pe||ye||i.cpp))if(Oe.current=!0,Ce(!0),!xe&&!br.has(i.id)){let e=await xr(E,D,i);Oe.current&&e&&W(e)}else br.has(i.id)&&W(br.get(i.id)??null)},[ke,i,E,D,se,xe,pe,ye]),Ne=(0,b.useCallback)(()=>{Oe.current=!1,Ce(!1),De.current&&(De.current.pause(),De.current.currentTime=0)},[]);(0,b.useEffect)(()=>{if(!_e)return;let e=new Date(_e).getTime();if(isNaN(e))return;let t=!1,n=()=>{let n=e-Date.now();if(n<=0){var r;be(null),!t&&((r=i.type)==null?void 0:r.toLowerCase())===`mediaclip`&&(t=!0,ur(i.id,`mediaclip`,E,ve));return}let{d:a,h:o,m:s,s:c}=lr(n);be(a>0?`${a} ${K(ht(`DAY`,`DAYS`,a),k)}`:`${String(o).padStart(2,`0`)}:${String(s).padStart(2,`0`)}:${String(c).padStart(2,`0`)}`)};n();let r=setInterval(n,1e3);return()=>clearInterval(r)},[_e]),(0,b.useEffect)(()=>{e==null||e()},[]),(0,b.useEffect)(()=>{if(!we){Ee(0);return}return Ee(F(i.id)),B(i.id,Ee)},[i.id,we]),(0,b.useEffect)(()=>{m&&fe(!1)},[i.id,m]),(0,b.useEffect)(()=>{var e,t;le(!a&&((e=M.currentEntity)==null?void 0:e.id)&&((t=M.currentEntity)==null?void 0:t.id)===i.id&&M.pageType!==`overviewPage`)},[M.pageType,a,M.currentEntity]),(0,b.useEffect)(()=>{var e;oe(j==null||(e=j.mediaclip)==null||(e=e.filter(e=>(e==null?void 0:e.publicDisplay)&&i[(e==null?void 0:e.name)+`_s_highlighted`]))==null?void 0:e[0])},[j,i]),(0,b.useEffect)(()=>{var e,t;let r=(e=n.config)==null?void 0:e.hideMetadataCollectionPlaylist,a=((t=n.config)==null?void 0:t.playlistType)===`collection`,o=(i==null?void 0:i.type)===`MediaClipList`||(i==null?void 0:i.type)===`cliplist`;if(r&&a&&o){te(void 0),z(`none`),H(void 0),ie(void 0);return}te(n.config.previewTitleDisplay===`none`?void 0:n.config.previewTitleDisplay),z(n.config.previewTimestampDisplay),H(n.config.previewCustomField),ie(n.config.previewCustomFieldDisplay||n.config.previewTitleDisplay)},[n.config.previewTitleDisplay,n.config.previewTimestampDisplay,n.config.previewCustomField,n.config.hideMetadataCollectionPlaylist,n.config.playlistType,i==null?void 0:i.type]);let Pe=()=>{var e,a,c;if(t||ye)return;if(pe){ar(`CONTENT_BLOCKED`,{contentId:i.id,contentType:(i.type??`mediaclip`).toLowerCase(),violation:he});return}let l=ce(E);l&&w.log({ev:`xcl`,et:`ChannelItem`,id:`${n.id}#${r}`,pp:l,cet:i.type.toLowerCase(),cid:i.id,gbt:n.type,\"pet#0\":`ChannelBlock`,\"pid#0\":n.id,\"pet#1\":`Channel`,\"pid#1\":O});let u=o||n.type,f=i.type===`MediaClipList`&&n.type!==`Player`&&((e=n.config)==null?void 0:e.playlistType)===`collection`,p=o||n.type===`Player`&&M.pageType===`main`,m;m=f?`overviewPage`:p?`player`:n.config.playIn||(P==null?void 0:P.playIn)||`detailPage`,d==null||d(i),ee({entity:i,playerBlockId:m,contentId:i.id,blockType:u,contextItem:{contentType:`cliplist`,contentId:s!=null&&s.contentId?s==null?void 0:s.contentId:n.config.playlistType===`nested`&&n.config.subPlaylistId?n.config.subPlaylistId:n.config.contentId,aspectRatio:n.config.aspectRatio,aspectRatioSubPlaylist:n.config.aspectRatioSubPlaylist,listIndex:r,playlistTitle:n.config.header,previewTitleDisplay:L,previewTimestampDisplay:R,listtype:s==null?void 0:s.listtype},fromBlock:n.config,fromBlockId:n.id,collectionId:(s==null?void 0:s.listtype)===`collection`?s==null?void 0:s.contentId:((a=M.collectionContext)==null?void 0:a.listtype)===`collection`?(c=M.collectionContext)==null?void 0:c.id:void 0})},Fe=(e,t,n,r,i)=>{if(e)return K(`PLAYING_NOW`,k);if(t===`project`)return K(`INTERACTIVE`,k);if(t===`image`)return null;if(i){let e=new Date(i);if(!isNaN(e.getTime())&&e.getTime()>Date.now())return`${new Intl.DateTimeFormat(void 0,{day:`numeric`,month:`short`}).format(e)} ${new Intl.DateTimeFormat(void 0,{hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(e)}`}return r===`live`?K(`LIVE`,k):n?ne(n):null};function Ie(){if(!(i!=null&&i.title))return``;let e=((s==null?void 0:s.listtype)===`collection`||M.pageType===`overviewPage`)&&i.shortTitle?i.shortTitle:i.title;return(0,Y.jsx)(`h5`,{className:`bb-channel-list-item-title`,title:ue(e),dangerouslySetInnerHTML:{__html:Kn.sanitize(i.title_highlighted||e)}})}function Le(){return i!=null&&i.description?(0,Y.jsx)(`div`,{className:`bb-channel-list-item-description text-md`,title:ue(i.description),dangerouslySetInnerHTML:{__html:Jn(i.description_highlighted||i.description)}}):``}function Re(e){if(e){let t=i[e.name],n=``;typeof t==`string`?n=ue(t):Array.isArray(t)&&(n=t.join(`, `));let r=Jn(i[e.name+`_highlighted`]||i[e.name]);return e.itype===`list`&&e.options&&(n=e.options.filter(t=>{var n;return(n=i[e.name+`_highlighted`])==null?void 0:n.includes(t.value)}).map(e=>e.label).join(`, `)),(0,Y.jsxs)(`div`,{className:`bb-channel-list-item-custom-field text-sm`,children:[(0,Y.jsxs)(`span`,{className:`bb-channel-list-item-custom-field-label`,children:[e.label,`: `]}),(0,Y.jsx)(`span`,{className:`bb-channel-list-item-custom-field-value`,title:n,dangerouslySetInnerHTML:{__html:r}})]},e.name)}else{var t;return V&&i[V]&&(0,Y.jsx)(`span`,{className:`bb-channel-list-item-preview-custom-field text-sm`,children:(0,Y.jsx)(sr,{entity:i,customFieldConfig:j==null||(t=j.mediaclip)==null?void 0:t.find(e=>e.name===V),lang:k})})}}if(!(i!=null&&i.id))return null;let ze=Fe(se,i.mediatype,i.length,i.sourcetype,_e);return c??(c=n.config.aspectRatio||`default`),(0,Y.jsx)(`div`,{className:`bb-channel-list-item-wrapper`,style:{\"--thumb-aspect-ratio\":((y=A[c])==null?void 0:y.aspectratio)??16/9},children:(0,Y.jsxs)(`button`,{type:`button`,disabled:f,onClick:Pe,onMouseEnter:Me,onMouseLeave:Ne,className:`bb-channel-list-item display-${p} ${((x=A[c])==null?void 0:x.aspectratio)<1?`portrait`:`landscape`} ${l||``} ${se?`selected`:``} ${n.config.previewTitleDisplay===`below`?`show-title`:``} ${i.mediatype===`image`?`image-entity`:``}`,ref:I,\"aria-label\":ue(((s==null?void 0:s.listtype)===`collection`||M.pageType===`overviewPage`)&&i.shortTitle?i.shortTitle:i.title),\"aria-selected\":se,style:{\"--play-bg-color\":h,\"--play-icon-color\":g,\"--watched-progress-color\":_||h},\"data-cy\":`listitem-wrapper`,children:[(0,Y.jsxs)(`div`,{className:`bb-channel-list-item-thumbnail ${m||!de?`loading`:``}`,style:p===`horizontal`?{width:`calc(`+(((C=A[c])==null?void 0:C.aspectratio)??16/9)+` * 100cqh)`}:{aspectRatio:``+(((S=A[c])==null?void 0:S.aspectratio)??16/9)},children:[(0,Y.jsx)(`div`,{className:`thumbnail-on-error`,children:(0,Y.jsx)(Xn,{})}),(0,Y.jsx)(`img`,{alt:ue(((s==null?void 0:s.listtype)===`collection`||M.pageType===`overviewPage`)&&i.shortTitle?i.shortTitle:i.title),loading:u?`lazy`:`eager`,src:U({contentType:i.type.toLowerCase(),imageId:i.id,width:Math.round(384*devicePixelRatio),extension:N,set:c,baseurl:E,imgCacheDate:P==null?void 0:P.imgCacheDate}),onLoad:e=>{if(fe(!0),Ae!==`background-color`)return;let t=e.target,n=new Image;n.crossOrigin=`anonymous`,n.onload=()=>{try{let e=document.createElement(`canvas`);e.width=16,e.height=16;let r=e.getContext(`2d`);if(!r)return;r.drawImage(n,0,0,16,16);let i=r.getImageData(0,0,16,16).data,a=0,o=0,s=0,c=0;for(let e=0;e235)continue;let f=l===0?0:(l-u)/l;f>c&&(c=f,a=t,o=n,s=r)}if(c<.05){let e=0,t=0,n=0,r=0;for(let a=0;a0?120/l:1;a=Math.min(255,Math.round(a*e)),o=Math.min(255,Math.round(o*e)),s=Math.min(255,Math.round(s*e))}let u=t.closest(`.bb-channel-list-item-wrapper`);u&&u.style.setProperty(`--thumb-color`,`rgb(${a} ${o} ${s} / 40%)`)}catch{}},n.src=t.src},onError:e=>{var t;fe(!0),!(e==null||(t=e.target)==null)&&t.parentElement&&e.target.parentElement.classList.add(`no-thumb`)}}),Se&&xe&&!pe&&!ye&&!i.cpp&&(0,Y.jsx)(`video`,{ref:De,className:`bb-channel-moving-thumbnail`,src:xe,muted:!0,autoPlay:!0,loop:!0,playsInline:!0}),!pe&&!(i.type===`MediaClipList`&&n.type!==`Player`&&((T=n.config)==null?void 0:T.playlistType)===`collection`)&&(0,Y.jsx)(Zn,{className:`playbutton`}),ye&&_e&&(0,Y.jsxs)(`div`,{className:`bb-channel-list-item-embargo-countdown${[`topLeft`,`bottomLeft`].includes(L)?` title-in-thumbnail`:``}`,children:[(0,Y.jsx)(`span`,{className:`text-sm`,children:K(`LIVE_IN`,k)}),(0,Y.jsx)(`span`,{className:`text-lg`,children:ye}),(0,Y.jsx)(`span`,{className:`bb-channel-list-item-embargo-date text-xs`,children:new Intl.DateTimeFormat(void 0,{day:`numeric`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(_e))})]}),(0,Y.jsxs)(`div`,{className:`title-timestamp-overlay pos-${(L||re)===`topLeft`?`top-left`:`bottom-left`} ${se?`selected`:``} ${L===`topLeft`&&R===`topRight`||(L===`bottomLeft`||re===`bottomLeft`)&&R===`bottomRight`?`same-line`:``} ${L===R||re===R?`same-position`:``}`,children:[!se&&(0,Y.jsxs)(Y.Fragment,{children:[[`topLeft`,`bottomLeft`].includes(L)&&Ie(),re===`bottomLeft`&&L!==R&&re!==R&&Re()]}),!pe&&ze&&(se||R!==`none`)&&(0,Y.jsxs)(`span`,{className:`bb-channel-list-item-duration text-xs`,style:L!==R&&re!==R&&{[R!=null&&R.includes(`top`)?`top`:`bottom`]:`var(--spacing-vertical)`,[R!=null&&R.includes(`Left`)?`left`:`right`]:`var(--spacing-horizontal)`}||{},children:[ze,!se&&re!==`below`&&(L===R||re===R)&&V&&i[V]&&(0,Y.jsxs)(Y.Fragment,{children:[` - `,Re()]})]})]}),!se&&i.mediatype!==`image`&&Te>.02&&(0,Y.jsx)(`div`,{className:`bb-channel-list-item-watched-progress`,children:(0,Y.jsx)(`div`,{className:`bb-channel-list-item-watched-progress-fill`,style:{width:`${Math.min(100,Te*100)}%`}})}),(Ae&&Ae!==`default`||je)&&(0,Y.jsxs)(`div`,{className:`bb-channel-list-item-hover-info`,children:[Ie(),(i==null?void 0:i.description)&&(0,Y.jsx)(`div`,{className:`bb-channel-list-item-hover-description text-sm`,dangerouslySetInnerHTML:{__html:Jn(i.description)}}),ze&&!se&&(0,Y.jsx)(`span`,{className:`bb-channel-list-item-hover-duration text-xs`,children:ze})]}),(i==null?void 0:i.cpp)&&(0,Y.jsx)(`div`,{className:`cp-overlay-container`,children:(0,Y.jsx)(cr,{props:{cpConfigID:i.cpp,violationdetected:e=>{me(!0),ge(e)},baseurl:E}})})]}),!i.fromSearch&&p!==`horizontal`&&L===`below`&&Ie(),!i.fromSearch&&p!==`horizontal`&&re===`below`&&Re(),(i.fromSearch||p===`horizontal`)&&(0,Y.jsxs)(Y.Fragment,{children:[Ie(),Le(),ae&&Re(ae)]})]})})});Sr.displayName=`ListItem`,J();var Cr=({block:e,playlistCollection:t,subPlaylist:n,playlistHeader:r,playlistDescription:i,hideHeader:a=!1,className:o=``,showCollectionSelect:s=!1,onCollectionTitleClick:c,onSubPlaylistChange:l,isLoadingPlaylist:u=!1})=>{var d;let{navigationState:f}=(0,b.useContext)(q);if(a)return null;let p=f.pageType===`overviewPage`,m=``;r?m=r:`playlistTitle`in e.config?m=p&&e.config.playlistShortTitle||e.config.playlistTitle:`header`in e.config&&(m=e.config.header);let h=s||(t==null?void 0:t.listtype)===`collection`,g=t?p&&t.shortTitle||t.title:``;return(0,Y.jsxs)(Y.Fragment,{children:[h&&e.type!==`Player`&&t&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`h4`,{className:`bb-channel-block-title ${o}`,children:[c?(0,Y.jsx)(`button`,{onClick:()=>c(t),className:(t==null?void 0:t.listtype)===`collection`?`is-collection`:``,children:g}):(0,Y.jsx)(`span`,{children:g}),n&&((d=t.items)==null?void 0:d.length)>1&&(0,Y.jsx)(`span`,{className:`bb-channel-block-subtitle`,children:(0,Y.jsx)(`select`,{name:`subPlaylist`,className:`bb-channel-block-subtitle-select ${u?`loading`:``}`,value:n.id,onChange:e=>l==null?void 0:l(e.target.value),disabled:u,children:t.items.map(e=>(0,Y.jsx)(`option`,{value:e.id,children:e.shortTitle||e.title},e.id))})})]}),i&&(0,Y.jsx)(`p`,{className:`header-description description-text`,children:i})]}),!h&&(m||i)&&(0,Y.jsxs)(Y.Fragment,{children:[m&&(0,Y.jsx)(`h4`,{className:`bb-channel-block-title ${o}`,children:m}),i&&(0,Y.jsx)(`p`,{className:`header-description description-text`,children:i})]})]})};J();var wr=()=>{let{app_getEntityData:e}=(0,b.useContext)(q);return{loadPlaylistData:(0,b.useCallback)(async t=>{if(!t)return null;try{let n=await e(t,`cliplist`);if((n==null?void 0:n.items)!==void 0)return n}catch(e){console.error(`Error loading playlist data:`,e)}return null},[e]),getPlaylistHeader:e=>`playlistTitle`in e.config?e.config.playlistTitle:`header`in e.config?e.config.header:``,calculateThumbnailSizeDelta:(e,t,n)=>{let r=0;return e<=768&&n?n===`large`?r=-1:n===`small`&&(r=1):t&&(t===`large`?r=-1:t===`small`&&(r=1)),r}}};J();var Tr=1500,Er=({block:e,enabled:t=!0})=>{let{app_playEntity:n,app_getEntityData:r,appConfig:i}=(0,b.useContext)(q),{loadPlaylistData:a,getPlaylistHeader:o}=wr(),[s,c]=(0,b.useState)([]),[l,u]=(0,b.useState)(),[d,f]=(0,b.useState)(),[p,m]=(0,b.useState)(),[h,g]=(0,b.useState)(!1),_=(0,b.useRef)(0),v=e.config.playlistType===`continue_watching`;(0,b.useEffect)(()=>{if(t&&e.type!==`Player`){let t=e.config;f(void 0),t.subPlaylistId?m(t.subPlaylistId):(m(void 0),c([]))}},[t,e.type,e.config.contentId,e.type===`Player`?null:e.config.subPlaylistId]);let y=(0,b.useRef)(0),x=(0,b.useCallback)(async()=>{if(!(i!=null&&i.previewAddWatchedHistory)){c([]);return}let e=++y.current;g(!0);try{let t=new Set(((i==null?void 0:i.blocks)??[]).flatMap(e=>e.type===`FeaturedHeader`?e.slides??[]:[]).filter(e=>e.contentType===`mediaclip`&&e.contentId).map(e=>String(e.contentId))),n=I().filter(e=>!t.has(e.id)),a=await Promise.all(n.map(e=>r(e.id,`mediaclip`).catch(t=>(console.warn(`[continue-watching] failed to fetch entity`,e.id,t),null))));if(e!==y.current)return;c(a.filter(e=>!!e&&!!e.id))}finally{e===y.current&&g(!1)}},[i==null?void 0:i.previewAddWatchedHistory,i==null?void 0:i.blocks,r]),S=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(t){if(v){x();let e=V(()=>{S.current&&clearTimeout(S.current),S.current=setTimeout(x,Tr)});return()=>{e(),S.current&&clearTimeout(S.current)}}C()}},[t,e.config.contentId,p,v,x]);let C=async()=>{let t=++_.current,n=e.config.contentId,r=p;g(!0);try{let e=l;if(n&&(l==null?void 0:l.id)!==n){let i=await a(n);if(t!==_.current)return;if((i==null?void 0:i.items)!==void 0){let o=i;if(i.listtype===`collection`&&i.items.length){let e=await Promise.all(i.items.map(e=>a(e.id)));if(t!==_.current)return;let n=i.items.filter((t,n)=>{var r;return e[n]!==null&&((r=e[n])==null||(r=r.items)==null?void 0:r.length)>0});o={...i,items:n}}r&&r!==n&&o.listtype===`collection`||f(void 0),e=o,u(o)}}if(r&&r!==n&&(e==null?void 0:e.listtype)===`collection`){let e=await a(r);if(t!==_.current)return;(e==null?void 0:e.items)!==void 0&&(c(e.items),f(e))}else e!=null&&e.items&&c(e.items)}catch(e){console.warn(`Error loading playlist data:`,e)}finally{t===_.current&&g(!1)}};return{items:s,mainPlaylist:l,subPlaylist:d,selectedSubPlaylistId:p,playlistHeader:o(e),setSelectedSubPlaylistId:m,onCollectionTitleClick:t=>{t&&t.id&&n({entity:t,playerBlockId:`overviewPage`,blockType:e.type,contextItem:t,fromBlock:e.config,fromBlockId:e.id,collectionId:t.id})},loadClipList:C,isLoadingPlaylist:h}},Dr=50,Or=new Map;function kr(){if(Or.size<=Dr)return;let e=Array.from(Or.keys()),t=e.slice(0,e.length-Dr);for(let e of t)Or.delete(e)}J();var Ar={backgroundColor:null,iconColor:null,playoutColor:null},jr=({block:e})=>{let{baseurl:t,appConfig:n}=(0,b.useContext)(q),[r,i]=(0,b.useState)(Ar),a=e.config,o=!!a.usePlayoutPlayButtonColor,s=o||!!(n!=null&&n.previewAddWatchedHistory),c=a.playout||(n==null?void 0:n.playout);return(0,b.useEffect)(()=>{if(!s||!c){i(Ar);return}let e=e=>{let t=e!=null&&e.skin_foregroundColor?`#`+e.skin_foregroundColor:null,n=o&&!!t;i({backgroundColor:n?t:null,iconColor:n?Ve(t):null,playoutColor:t})},n=`${t}/papi/playout/${c}`,r=Or.get(n);if(r!=null&&r.data){e(r.data);return}((r==null?void 0:r.promise)??(()=>{let e=fetch(`${t}/papi/playout/${c}`).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status} ${e.statusText}`);return e.json()}).then(e=>(Or.set(n,{loading:!1,data:e,promise:null}),e)).catch(e=>{throw Or.delete(n),e});return Or.set(n,{loading:!0,data:null,promise:e}),e})()).then(e).catch(e=>{console.error(`Failed to fetch playout color:`,e)})},[s,o,c,t]),r};W();function Mr(e){let{totalItems:t,infinite:n=!1,aspectRatio:r=pr,sizeMultiplier:i=1,sizeMultiplierMobile:a,mobileBreakpoint:o=768,wrapperRef:s,onPageChange:c,onBeforeChange:l,onAfterChange:u,onInit:d,maxPages:f,itemGap:p=4}=e,m=(0,b.useRef)(null),h=(0,b.useRef)(0),g=(0,b.useRef)(null),[_,v]=(0,b.useState)(0),[y,x]=(0,b.useState)(!1),[S,C]=(0,b.useState)(0),[w,T]=(0,b.useState)(!1),[ee,E]=(0,b.useState)(!0),[D,O]=(0,b.useState)(!1),[k,A]=(0,b.useState)(120),[j,M]=(0,b.useState)(3),N=r,P=f===void 0?t:Math.min(t,j*f),F=P>j,I=n&&F&&P>j?Math.min(j*2,P):0,L=Math.ceil(P/j),te=F&&(n||!ee),R=F&&(n||!D),z=(0,b.useCallback)(()=>{let e=m.current;if(!e)return 0;let t=e.querySelector(`.bb-scroll-item`);if(t)return t.offsetWidth;if(P===0)return 0;let n=P+I*2;return(e.scrollWidth-p*(n-1))/n},[P,I]),B=(0,b.useCallback)(e=>{if(!n||!F||e.length<=j)return e.map((e,t)=>({...e,_originalIndex:t}));let t=e.slice(-I).map((t,n)=>({...t,_isClone:!0,_originalIndex:e.length-I+n})),r=e.slice(0,I).map((e,t)=>({...e,_isClone:!0,_originalIndex:t}));return[...t,...e.map((e,t)=>({...e,_originalIndex:t})),...r]},[n,j,I,F]);(0,b.useEffect)(()=>{F?n||ce():(E(!0),O(!0))},[F]);let V=(0,b.useCallback)(()=>{let e=s==null?void 0:s.current;if(!e)return;let t=e.offsetWidth,n=gr(t,t<=o&&typeof a==`number`?a:i,N),r=n*N,c=Math.max(1,Math.floor(t/(r+p)));A(n),M(c)},[s,i,a,o,N,p]),ne=(0,b.useCallback)(e=>{if(!m.current)return 0;let t=z();return(e+I)*(t+p)},[z,I,p]),re=(0,b.useCallback)((e,t=!0)=>{var n;let r=m.current;if(!r)return;(n=g.current)==null||n.call(g),g.current=null,l==null||l(S);let i=ne(e);r.scrollTo({left:i,behavior:t?`smooth`:`instant`})},[ne,l,S]),ie=(0,b.useCallback)(e=>{let t=e*j;re(Math.min(t,P-1))},[j,P,re]),ae=(0,b.useCallback)(e=>{let t=m.current;if(!t)return;let r=t.scrollLeft<=5,i=t.scrollLeft+t.clientWidth>=t.scrollWidth-5;if(!(e===`prev`&&r)&&!(e===`next`&&i))if(n){let t=e===`prev`?S-j:S+j;re(e===`prev`&&t<0||e===`next`&&t>=P?t:e===`prev`?Math.max(0,t):Math.min(t,Math.max(0,P-j)),!0)}else{let n=(z()+p)*j,r=Math.round(t.scrollLeft/n),i=e===`prev`?Math.max(0,r-1):Math.min(r+1,L-1);t.scrollTo({left:i*n,behavior:`smooth`})}},[n,S,j,P,re,z,L,p]),oe=(0,b.useCallback)(()=>ae(`next`),[ae]),se=(0,b.useCallback)(()=>ae(`prev`),[ae]),ce=(0,b.useCallback)(()=>{let e=m.current;if(!e)return;let t=z();if(t===0)return;let r=e.scrollLeft,i=Math.round(r/(t+p))-I,a=Math.max(1,Math.ceil(j/2));if(n&&I>0){let t=null;if(i<-a?t=P+i:i>P-a&&(t=i-P),t!==null){let n=e.style.scrollSnapType;e.style.scrollSnapType=`none`,e.scrollTo({left:ne(t),behavior:`auto`}),requestAnimationFrame(()=>{e.style.scrollSnapType=n}),i=t}}i=Math.max(0,Math.min(i,P-1)),C(i);let o=Math.floor(i/j);if(!n){let t=r<=5,n=r+e.clientWidth>=e.scrollWidth-5;E(t),O(n),n&&(o=L-1)}o!==_&&(v(o),c==null||c(o)),u==null||u(i),x(!1)},[z,I,n,P,j,L,_,c,u,ne,p]),le=(0,b.useMemo)(()=>H(ce,150),[ce]);return(0,b.useEffect)(()=>{let e=m.current;if(!e)return;let t=()=>{x(!0),le()},n=`onscrollend`in window;return n&&e.addEventListener(`scrollend`,ce),e.addEventListener(`scroll`,t,{passive:!0}),()=>{n&&e.removeEventListener(`scrollend`,ce),e.removeEventListener(`scroll`,t)}},[ce,le]),(0,b.useEffect)(()=>{if(w||!m.current||P===0)return;let e=m.current,t=!1,r=!1,i,a=()=>{if(!g.current||m.current!==e)return;let t=n&&I>0?ne(0):0;Math.abs(e.scrollLeft-t)>2&&e.scrollTo({left:t,behavior:`instant`}),e.style.removeProperty(`scroll-snap-type`)},o=()=>{if(t||r)return;t=!0,clearTimeout(i),clearTimeout(c),e.removeEventListener(`scroll`,s);let o=n&&I>0?ne(0):0;e.style.scrollSnapType=`none`,e.scrollTo({left:o,behavior:`instant`}),T(!0),d==null||d();let l=setTimeout(a,300),u=()=>{clearTimeout(l),e.scrollTo({left:o,behavior:`instant`}),l=setTimeout(a,300)};e.addEventListener(`scroll`,u,{passive:!0});let f=setTimeout(()=>{e.removeEventListener(`scroll`,u),a()},2e3);g.current=()=>{clearTimeout(l),clearTimeout(f),e.removeEventListener(`scroll`,u),e.style.removeProperty(`scroll-snap-type`)}},s=()=>{clearTimeout(i),i=setTimeout(o,200)};e.addEventListener(`scroll`,s,{passive:!0}),i=setTimeout(o,200);let c=setTimeout(o,3e3);return()=>{if(r=!0,clearTimeout(i),clearTimeout(c),e.removeEventListener(`scroll`,s),!t){var n;(n=g.current)==null||n.call(g),g.current=null,e.style.removeProperty(`scroll-snap-type`)}}},[P,w,n,I,ne,d]),(0,b.useEffect)(()=>{!w||!m.current||n&&h.current!==I&&(h.current=I,m.current.scrollTo({left:ne(S),behavior:`instant`}))},[I,w,n,ne,S]),(0,b.useEffect)(()=>{let e=m.current;if(!e)return;let t=()=>x(!0),n=()=>{setTimeout(()=>x(!1),10)};return e.addEventListener(`pointerdown`,t),e.addEventListener(`pointerup`,n),e.addEventListener(`pointercancel`,n),()=>{e.removeEventListener(`pointerdown`,t),e.removeEventListener(`pointerup`,n),e.removeEventListener(`pointercancel`,n)}},[]),(0,b.useLayoutEffect)(()=>{let e=s==null?void 0:s.current;if(!e)return;let t=new ResizeObserver(()=>{V()});return t.observe(e),V(),()=>t.disconnect()},[V,s]),{containerRef:m,currentPage:_,totalPages:L,canScrollPrev:te,canScrollNext:R,scrollPrev:se,scrollNext:oe,scrollToPage:ie,scrollToIndex:re,isDragging:y,getItemsToRender:B,firstVisibleIndex:S,itemHeight:k,itemsPerPage:j,aspectRatio:N}}var Nr=(0,b.forwardRef)((e,t)=>(0,Y.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:58,height:58,fill:`none`,\"xmlns:v\":`https://vecta.io/nano`,ref:t,...e,children:[(0,Y.jsxs)(`g`,{children:[(0,Y.jsx)(`circle`,{cx:29,cy:29,r:25,transform:`rotate(180 29 29)`,fill:`#181818`}),(0,Y.jsx)(`path`,{d:`M25 36l8-7.5-8-7.5`,stroke:`#fff`,strokeWidth:2,strokeLinecap:`round`})]}),(0,Y.jsxs)(`defs`,{children:[(0,Y.jsx)(`feFlood`,{floodOpacity:0,result:`A`}),(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`B`}),(0,Y.jsx)(`feOffset`,{}),(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:2}),(0,Y.jsx)(`feComposite`,{in2:`B`,operator:`out`}),(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),(0,Y.jsx)(`feBlend`,{in2:`A`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`})]})]})),Pr=(0,b.forwardRef)((e,t)=>(0,Y.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:58,height:58,fill:`none`,\"xmlns:v\":`https://vecta.io/nano`,ref:t,...e,children:[(0,Y.jsxs)(`g`,{children:[(0,Y.jsx)(`circle`,{cx:29,cy:29,r:25,fill:`#181818`}),(0,Y.jsx)(`path`,{d:`M31 22l-8 7.5 8 7.5`,stroke:`#fff`,strokeWidth:2,strokeLinecap:`round`})]}),(0,Y.jsxs)(`defs`,{children:[(0,Y.jsx)(`feFlood`,{floodOpacity:0,result:`A`}),(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`B`}),(0,Y.jsx)(`feOffset`,{}),(0,Y.jsx)(`feGaussianBlur`,{stdDeviation:2}),(0,Y.jsx)(`feComposite`,{in2:`B`,operator:`out`}),(0,Y.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),(0,Y.jsx)(`feBlend`,{in2:`A`}),(0,Y.jsx)(`feBlend`,{in:`SourceGraphic`})]})]}));_t(),J();var Fr=({onClick:e,disabled:t,className:n=``})=>{let{lang:r}=(0,b.useContext)(q);return(0,Y.jsx)(`button`,{type:`button`,className:`bb-scroll-arrow next ${t?`disabled`:``} ${n}`,onClick:e,\"aria-label\":K(`NEXT`,r),disabled:t,children:(0,Y.jsx)(Nr,{className:`arrow-right-circle`,viewBox:`0 0 58 58`})})},Ir=({onClick:e,disabled:t,className:n=``})=>{let{lang:r}=(0,b.useContext)(q);return(0,Y.jsx)(`button`,{type:`button`,className:`bb-scroll-arrow prev ${t?`disabled`:``} ${n}`,onClick:e,\"aria-label\":K(`PREVIOUS`,r),disabled:t,children:(0,Y.jsx)(Pr,{className:`arrow-left-circle`,viewBox:`0 0 58 58`})})};W(),J(),_t();var Lr=({block:e,playerPlaylistType:t})=>{var n,r,i;let{lang:a,cropsetmap:o,baseurl:s,appConfig:c,app_navigateToPage:l}=(0,b.useContext)(q),u=vr(e),{items:d,mainPlaylist:f,subPlaylist:p,selectedSubPlaylistId:m,playlistHeader:h,onCollectionTitleClick:g,setSelectedSubPlaylistId:_,isLoadingPlaylist:v}=Er({block:e}),[y,x]=(0,b.useState)(!1),S=(o==null||(n=o[e.config.aspectRatio])==null?void 0:n.aspectratio)||1.7777777777777777,C=_r(e.config.thumbnailSize),w=e.config.thumbnailSizeMobile?_r(e.config.thumbnailSizeMobile):void 0,T=(0,b.useRef)(null),{backgroundColor:ee,iconColor:E,playoutColor:D}=jr({block:e}),O=(0,b.useCallback)(()=>x(!0),[]),{containerRef:k,currentPage:A,canScrollPrev:j,canScrollNext:M,scrollPrev:N,scrollNext:P,scrollToPage:F,isDragging:I,itemHeight:L,itemsPerPage:te,aspectRatio:R}=Mr({totalItems:d.length,infinite:!1,maxPages:4,aspectRatio:S,sizeMultiplier:C,sizeMultiplierMobile:w,wrapperRef:T,itemGap:u.itemGap,onInit:O}),z=te*4,B=d.length>z,V=d.slice(0,z-+!!B),H=()=>{let t=p||f;t&&l(`gridPage`,{currentEntity:t,contentId:t.id,contentType:`cliplist`,currentContext:{contentType:`cliplist`,contentId:t.id},blockConfig:e.config,activeBlockId:e.id})},ne=B?d[z-1]:null,re=ne?U({contentType:(r=ne.type)==null?void 0:r.toLowerCase(),imageId:ne.id,width:Math.round(384*(window.devicePixelRatio||1)),baseurl:s,imgCacheDate:c==null?void 0:c.imgCacheDate}):void 0,ie=e.config.previewTitleDisplay===`below`,ae=te>=d.length,oe=e.config,{headerLayout:se,logoElement:ce,wrapperStyle:le}=Ot({config:oe,baseurl:s,imgCacheDate:c==null?void 0:c.imgCacheDate});return(0,Y.jsx)(`div`,{className:`ref-wrapper${v?` loading`:``}`,ref:T,style:le,children:(d==null?void 0:d.length)>0&&(0,Y.jsx)(`div`,{className:`bb-channel-block bb-channel-cliplist-outer-wrapper ${u.classes}`,style:{\"--item-gap\":u.itemGap+`px`},\"data-blockid\":e.id,\"data-blocktype\":`Cliplist`,\"data-cy\":`cliplist-wrapper`,children:(0,Y.jsxs)(`div`,{className:`slider-container ${B?`has-view-all`:``}`,children:[ce,(h||oe.description||ce||(f==null?void 0:f.listtype)===`collection`||oe.showPagination!==!1&&d.length>te)&&(0,Y.jsxs)(`div`,{className:`bb-channel-cliplist-header layout-${se}`,children:[se===`logo-left`&&ce,(0,Y.jsx)(`div`,{className:`header-metadata`,children:(0,Y.jsx)(`div`,{className:`header-title`,children:(0,Y.jsx)(Cr,{block:e,playlistCollection:f,subPlaylist:p,playlistHeader:h,playlistDescription:oe.description,onCollectionTitleClick:g,onSubPlaylistChange:_,hideHeader:!1,isLoadingPlaylist:v})})}),(0,Y.jsxs)(`div`,{className:`header-right`,children:[se===`logo-right`&&ce,oe.showPagination!==!1&&d.length>te&&(0,Y.jsx)(`div`,{className:`progress-tab-container`,children:[...Array(Math.ceil(Math.min(z,d.length)/te))].map((e,t)=>(0,Y.jsx)(`button`,{type:`button`,className:t===A||A>3&&t===3?`progress-tab active`:`progress-tab`,onClick:()=>F(t),\"aria-label\":`Go to page ${t+1}`},t))})]})]}),(0,Y.jsxs)(`div`,{style:{\"--item-height\":`${L}px`,\"--carousel-aspect-ratio\":R},className:`bb-scroll-wrapper ${y?`initialized`:``} ${ae?`align-left`:``} ${ie?`with-titles`:``} ${j?`can-scroll-prev`:``} ${M?`can-scroll-next`:``}`,children:[(0,Y.jsx)(Ir,{onClick:N,disabled:!j}),(0,Y.jsxs)(`div`,{ref:k,className:`bb-scroll-container ${I?`dragging`:``}`,children:[V.map((n,r)=>{let i=e.type!==`Player`&&e.config.playlistType===`collection`?{contentType:`cliplist`,contentId:m,listtype:`collection`,playlistTitle:(p==null?void 0:p.shortTitle)||(p==null?void 0:p.title)||e.config.header}:void 0;return(0,Y.jsx)(`div`,{className:`bb-scroll-item ${I?`dragging`:``}`,\"data-index\":r,children:(0,Y.jsx)(Sr,{componentClass:`cliplist-carousel`,listIndex:r,block:e,entity:n,isDragging:I,playerPlaylistType:t,contextItem:i,isLoadingPlaylist:v,playButtonColor:ee,playIconColor:E,playoutColor:D})},`${n.id}_${r}`)}),B&&(0,Y.jsx)(`div`,{className:`bb-scroll-item`,\"data-index\":V.length,children:(0,Y.jsxs)(`button`,{type:`button`,className:`bb-channel-list-item view-all-wrapper cliplist-carousel`,onClick:H,children:[(0,Y.jsx)(`span`,{className:`view-all-count`,children:(0,Y.jsx)(`span`,{className:`view-all-label`,children:K(`VIEW_ALL`,a)})}),re&&(0,Y.jsx)(`img`,{src:re,alt:K(`VIEW_ALL`,a),className:`bb-channel-list-item-thumbnail`,style:e.config.aspectRatio?{aspectRatio:((i=o[e.config.aspectRatio])==null?void 0:i.aspectratio)||16/9}:{}})]})},`viewall`)]}),(0,Y.jsx)(Fr,{onClick:P,disabled:!M})]})]})})})};W(),J();var Rr=({block:e,playerPlaylistType:t,hideHeader:n,onItemSelected:r})=>{var i;let{cropsetmap:a,baseurl:o,appConfig:s}=(0,b.useContext)(q),c=vr(e),{items:l,mainPlaylist:u,subPlaylist:d,selectedSubPlaylistId:f,playlistHeader:p,setSelectedSubPlaylistId:m,onCollectionTitleClick:h,isLoadingPlaylist:g}=Er({block:e}),[_,v]=(0,b.useState)(!1),[y,x]=(0,b.useState)(!1),S=(a==null||(i=a[e.config.aspectRatio])==null?void 0:i.aspectratio)||1.7777777777777777,C=_r(e.config.thumbnailSize),w=e.config.thumbnailSizeMobile?_r(e.config.thumbnailSizeMobile):void 0,T=(0,b.useRef)(null),ee=(0,b.useRef)(new AbortController),{backgroundColor:E,iconColor:D,playoutColor:O}=jr({block:e}),{containerRef:k,canScrollPrev:A,canScrollNext:j,scrollPrev:M,scrollNext:N,isDragging:P,getItemsToRender:F,itemHeight:I,itemsPerPage:L,aspectRatio:te}=Mr({totalItems:l.length,infinite:!0,aspectRatio:S,sizeMultiplier:C,sizeMultiplierMobile:w,wrapperRef:T,itemGap:c.itemGap,onInit:()=>{v(!0),pe(()=>x(!0),1,ee.current.signal).catch(()=>{})}});(0,b.useEffect)(()=>(e.type!==`Player`&&e.config.subPlaylistId&&m(e.config.subPlaylistId),()=>{ee.current.abort(),ee.current=new AbortController}),[e.type!==`Player`&&e.config.subPlaylistId,e.type]);let R=()=>{y||pe(()=>x(!0),350,ee.current.signal).catch(()=>{})},z=()=>{R(),M()},B=()=>{R(),N()},V=F(l),H=e.type!==`Player`&&e.config.previewTitleDisplay===`below`,ne=L>=l.length,re=e.config,{headerLayout:ie,logoElement:ae,wrapperStyle:oe}=Ot({config:re,baseurl:o,imgCacheDate:s==null?void 0:s.imgCacheDate});return(0,Y.jsx)(`div`,{className:`ref-wrapper${g?` loading`:``}`,ref:T,style:oe,children:(l==null?void 0:l.length)>0&&(0,Y.jsx)(`div`,{className:`bb-channel-block bb-channel-carousel ${c.classes}`,\"data-blockid\":e.id,\"data-blocktype\":`Carousel`,style:{\"--item-gap\":c.itemGap+`px`},\"data-cy\":`carousel-wrapper-`+e.id,children:(0,Y.jsxs)(`div`,{className:`slider-container`,children:[!n&&ae,!n&&(p||re.description||ae||(u==null?void 0:u.listtype)===`collection`)&&(0,Y.jsxs)(`div`,{className:`bb-channel-carousel-header layout-${ie}`,children:[ie===`logo-left`&&ae,(0,Y.jsx)(`div`,{className:`header-metadata`,children:(0,Y.jsx)(`div`,{className:`header-title`,children:(0,Y.jsx)(Cr,{block:e,playlistCollection:u,subPlaylist:d,playlistHeader:p,playlistDescription:re.description,onCollectionTitleClick:h,onSubPlaylistChange:m,isLoadingPlaylist:g})})}),(0,Y.jsx)(`div`,{className:`header-right`,children:ie===`logo-right`&&ae})]}),(0,Y.jsxs)(`div`,{style:{\"--item-height\":`${I}px`,\"--carousel-aspect-ratio\":te},className:`bb-scroll-wrapper ${_?`initialized`:``} ${H?`with-titles`:``} ${y?`alignment-false`:`alignment-true`} ${ne?`align-left`:``} ${A?`can-scroll-prev`:``} ${j?`can-scroll-next`:``}`,children:[(0,Y.jsx)(Ir,{onClick:z,disabled:!A}),(0,Y.jsx)(`div`,{ref:k,className:`bb-scroll-container ${P?`dragging`:``}`,children:V.map((n,i)=>{let a=n._originalIndex??i,o=n._isClone,s=e.type!==`Player`&&e.config.playlistType===`collection`?{contentType:`cliplist`,contentId:f,listtype:`collection`,playlistTitle:(d==null?void 0:d.shortTitle)||(d==null?void 0:d.title)||e.config.header}:void 0;return(0,Y.jsx)(`div`,{className:`bb-scroll-item ${P?`dragging`:``} ${o?`clone`:``}`,\"data-index\":a,children:(0,Y.jsx)(Sr,{onItemSelected:r,componentClass:`carousel`,listIndex:a,block:e,entity:n,isDragging:P,playerPlaylistType:t,contextItem:s,isLoadingPlaylist:g,playButtonColor:E,playIconColor:D,playoutColor:O})},`${n.id}_${i}${o?`_clone`:``}`)})}),(0,Y.jsx)(Fr,{onClick:B,disabled:!j})]})]})})})};function zr({borderRadius:e,inheritDimensions:t,autoPlay:n}){let r={cornerRadius:String(e??0),width:`100%`,aspectRatio:`16:9`};return t?(r.responsiveSizing=`false`,r.autoHeight=`false`,r.height=`100%`):r.responsiveSizing=`true`,typeof n==`boolean`&&(r.autoPlay=n?`true`:`false`),r}function Br({inDetailPage:e,forceAutoPlay:t,detailPagePlayout:n}){if(e||t)return!!(t||n)}function Vr(e,t){return t?{...e,...t}:e}J(),W();var Hr=(0,b.forwardRef)(({block:e,contextItem:t,contentId:n,playlistItems:r,allPlaylistItems:i,compactMode:a},o)=>{let{navigationState:s}=(0,b.useContext)(q),c=s.currentEntity,l=(0,b.useRef)(new AbortController),{backgroundColor:u,iconColor:d,playoutColor:f}=jr({block:e}),[p,m]=(0,b.useState)(!1),h=!!i,g=p&&i?i:r,_=(0,b.useRef)(null),v=g.reduce((e,t)=>(e[t.id]=(0,b.createRef)(),e),{}),y=e=>{if(e&&e.id&&v[e.id]){let t=v[e.id].getOffsetTop();pe(()=>{requestAnimationFrame(()=>{_==null||_.current.scrollTo({top:t,behavior:`smooth`})})},700,l.current.signal).catch(()=>{})}};return(0,b.useImperativeHandle)(o,()=>({scrollToItem:y})),(0,b.useEffect)(()=>{if(m(!1),n)return y(c),()=>{l.current.abort(),l.current=new AbortController}},[n]),(0,Y.jsxs)(`div`,{className:[`playerblock-content-wrapper`,a&&`compact-mode`,a&&h&&`has-toggle`,a&&p&&`expanded`].filter(Boolean).join(` `),\"data-cy\":`player-content-wrapper`,children:[(0,Y.jsx)(`div`,{className:`playerblock-content-list ${a?`compact`:``} ${e.config.previewTitleDisplay===`below`?`flex`:`grid`}`,ref:_,children:g.map((n,r)=>(0,Y.jsx)(Sr,{ref:e=>{v[n.id]=e},componentClass:`bb-channel-listitems-player`,aspectRatio:`landscape`,listIndex:r,block:e,entity:n,contextItem:t,lazyLoadImage:!0,playButtonColor:u,playIconColor:d,playoutColor:f},`${n.id}_${r}`))}),h&&(0,Y.jsx)(`button`,{type:`button`,className:`playerblock-view-all`,onClick:()=>{var e;m(!p),(e=_.current)==null||e.scrollTo({top:0})},children:p?`Show less`:`Show more`})]})});Hr.displayName=`PlayerContent`;var Ur,Wr,Gr,Kr=s((()=>{Ur=d(p()),J(),_t(),W(),Yn(),Wr=bt(),Gr=({description:e,theme:t,scrollable:n=!1})=>{let{lang:r}=(0,Ur.useContext)(q),[i,a]=(0,Ur.useState)(!0),[o,s]=(0,Ur.useState)(0),c=(0,Ur.useRef)(null),l=(0,Ur.useCallback)(()=>{if(!(c!=null&&c.current))return;let e=c.current.scrollHeight;s(e/parseFloat(getComputedStyle(c.current).lineHeight))},[]);return(0,Ur.useEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(()=>{l()})});return t.observe(e),()=>t.disconnect()},[l]),(0,Ur.useEffect)(()=>{if(!e)return;let t=new AbortController;return pe(()=>{l()},2,t.signal).catch(()=>{}),()=>{t.abort()}},[e,l]),e?(0,Wr.jsxs)(`div`,{className:`description-wrapper ${i&&![`detailPage`,`overviewPage`].includes(t)&&!n?`minimize-description`:``} ${t?`theme-`+t:``}`,children:[(0,Wr.jsx)(`div`,{className:`description-text`,\"data-cy\":`player-description`,children:(0,Wr.jsx)(`div`,{ref:c,dangerouslySetInnerHTML:{__html:Jn(e)}})}),!n&&t!==`detailPage`&&o>3&&(0,Wr.jsx)(`button`,{type:`button`,className:`description-show-more-less`,onClick:()=>a(e=>!e),children:K(i?`SHOW_MORE`:`SHOW_LESS`,r)})]}):null}}));function qr({strategy:e,children:t}){return(0,Zr.jsx)(ei.Provider,{value:e,children:t})}function Jr(){return(0,Xr.useContext)(ei)}function Yr(e){return e?$r:Qr}var Xr,Zr,Qr,$r,ei,ti=s((()=>{Xr=d(p()),W(),Zr=bt(),Qr={onPlayRequest:()=>{},shouldSkipFirstPlayerBlock:!1,isNativeMode:!1},$r={onPlayRequest:(e,t,n,r)=>{var i,a,o,s,c,l,u,d,f;if(typeof window>`u`||!window.ReactNativeWebView)return;let p=window.__bbChannelBaseUrl||``,m=((i=r.fromBlock)==null?void 0:i.playout)||`default`;if(!e.type){console.warn(`[NativePlayerStrategy] entity missing type, skipping MEDIA_PLAY`,{id:e.id});return}let h=ie(e.type),g=document.querySelector(`.bb-channel-wrapper`),_=g?getComputedStyle(g):null,v=_==null||(a=_.getPropertyValue(`--bb-channel-detail-page-background-color`))==null?void 0:a.trim(),y=v&&/^#[0-9a-fA-F]{3,8}$/.test(v)?v:`#000`,b=_==null||(o=_.getPropertyValue(`--bb-channel-detail-page-text-color`))==null?void 0:o.trim(),x=b&&/^#[0-9a-fA-F]{3,8}$/.test(b)?b:`#fff`,S=((s=e._imageCache)==null?void 0:s.type)??((c=e.type)==null?void 0:c.toLowerCase())??`mediaclip`,C=((l=e._imageCache)==null||(l=l.extension)==null?void 0:l.replace(/^\\./,``))||`jpg`,w=U({contentType:S,imageId:e.id,width:((u=e._imageCache)==null?void 0:u.width)??Math.round(window.devicePixelRatio*384).toString(),height:((d=e._imageCache)==null?void 0:d.height)??`default`,extension:C,scalingMode:`cover`,set:`default`,baseurl:p}),T=U({contentType:S,imageId:e.id,width:`64`,height:`default`,extension:C,scalingMode:`cover`,set:`default`,baseurl:p}),ee={jsonUrl:`${p}/p/${m}/${h}/${e.id}.json`,playoutId:m,autoplay:!0,thumbnailUrl:w,blurredThumbnailUrl:T,title:e.title||``,entityId:e.id,entityType:e.type,playerBlockId:t,backgroundColor:y,textColor:x,...r.contextItem&&{contextEntityType:e.type,contextEntityId:e.id,contextCollectionType:xe[(f=r.contextItem.contentType)==null?void 0:f.toLowerCase()]||r.contextItem.contentType||`MediaClipList`,contextCollectionId:r.contextItem.contentId},...r.isInlinePlayer!==void 0&&{isInlinePlayer:r.isInlinePlayer},...r.blockId!==void 0&&{blockId:r.blockId},...r.listIndex!==void 0&&{listIndex:r.listIndex},...r.showThumbnailAsBackground&&{showThumbnailAsBackground:!0}};window.ReactNativeWebView.postMessage(JSON.stringify({type:`MEDIA_PLAY`,payload:ee}))},shouldSkipFirstPlayerBlock:!0,isNativeMode:!0},ei=(0,Xr.createContext)(Qr)}));Kr(),ti(),J(),_t();var ni=({limit:e,offset:t,numFound:n,parentLoad:r,loadMore:i,onLoadMore:a,isLoading:o,hasMore:s})=>{let{lang:c}=(0,b.useContext)(q),l=t=>{r(t===1?0:(t-1)*e,e)},u=t===0?1:t/e+1,d=u1;return i===`showMoreButton`?s&&(0,Y.jsx)(`div`,{className:`bb-channel-clipgrid-buttons load-more`,children:(0,Y.jsx)(`button`,{type:`button`,className:`bb-button clipgrid-button load-more-button`,onClick:a,disabled:o,\"data-cy\":`grid-button-load-more`,children:(0,Y.jsx)(`span`,{children:K(o?`LOADING`:`LOAD_MORE`,c)})})}):i===`auto`||i===`showAll`?null:(f||d)&&(0,Y.jsxs)(`div`,{className:`bb-channel-clipgrid-buttons ${d&&!f?`next-only`:``}`,children:[f&&(0,Y.jsx)(`button`,{type:`button`,className:`bb-button clipgrid-button`,onClick:()=>l(u-1),\"data-cy\":`grid-button-prev`,children:(0,Y.jsx)(`span`,{children:K(`PREVIOUS`,c)})}),d&&(0,Y.jsx)(`button`,{type:`button`,className:`bb-button clipgrid-button`,onClick:()=>l(u+1),\"data-cy\":`grid-button-next`,children:(0,Y.jsx)(`span`,{\"data-cy\":`grid-button-next-text`,children:K(`NEXT`,c)})})]})},ri=(e,t,n=0,r=`carousel`)=>{let i={};switch(r){case`carousel`:e<=768?i.slideOptions=2:e<=1200?i.slideOptions=3:e<=1550?i.slideOptions=4:e<=1800?i.slideOptions=5:i.slideOptions=6,i.slideOptions=Math.max(Math.min((i.slideOptions||0)+n,7),1);break;case`cliplist`:{let r;r=e>1800?6:e>1550?5:e>1200?4:e>768?3:e>480?2:t&&e>t?2.1:2.4,i.slidesPerPage=Math.min(Math.max(r+n,1),7);break}case`clipgrid`:{let t;t=e>1800?6:e>1550?5:e>1200?4:e>480?3:2,i.columns=Math.min(Math.max(n+t,2),6);break}}return i};J(),W();var ii=({block:e,playerPlaylistType:t,searchResults:n,displayMultiplier:r,onLoad:i})=>{let{app_getEntityData:a,baseurl:o,appConfig:s}=(0,b.useContext)(q),c=vr(e),{getPlaylistHeader:l,calculateThumbnailSizeDelta:u}=wr(),d=!n&&!!e.config.contentId,f=Er({block:e,enabled:d}),p=(f==null?void 0:f.playlistHeader)||l(e),m=f==null?void 0:f.mainPlaylist,h=f==null?void 0:f.subPlaylist,g=f==null?void 0:f.selectedSubPlaylistId,_=f==null?void 0:f.onCollectionTitleClick,v=f==null?void 0:f.setSelectedSubPlaylistId,y=(f==null?void 0:f.isLoadingPlaylist)||!1,x=f==null?void 0:f.items,[S,C]=(0,b.useState)([]),[w,T]=(0,b.useState)([]),[ee,E]=(0,b.useState)(0),[D,O]=(0,b.useState)(),[k,A]=(0,b.useState)(),[j,M]=(0,b.useState)(!1),N=(0,b.useRef)(null),{backgroundColor:P,iconColor:F,playoutColor:I}=jr({block:e}),L=(0,b.useRef)(void 0);L.current=x,(0,b.useEffect)(()=>{let e=H(te,100,!1,!1);return window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[D,ee,x,S,r,n,i,d]),(0,b.useEffect)(()=>{let e=new AbortController;return pe(()=>{requestAnimationFrame(()=>te(!0,!0))},100,e.signal).catch(()=>{}),()=>{e.abort()}},[e.config.contentId,e.config.thumbnailSize,e.config.thumbnailSizeMobile,e.config.header]),(0,b.useEffect)(()=>{n!==void 0&&te(!0,!0)},[n]),(0,b.useEffect)(()=>{if(x!==void 0){if(D){C(x),R(x,0,D,!1),x.length>0&&(i==null||i(),M(!1));return}requestAnimationFrame(()=>te(!0,!0))}},[x,g]);let te=(t,i)=>{var a;if(!((a=N.current)!=null&&a.offsetWidth))return;let o=N.current.offsetWidth,s=o>768?Math.ceil((r??1)/2):r??1,c=u(o,e.config.thumbnailSize,e.config.thumbnailSizeMobile),l=o>768?3:2,d=ri(o,void 0,c,`clipgrid`).columns||2;n!=null&&n.length&&(d=o<768?1:2);let f=l*d*s;if(t||f!==D){let e=i?0:ee;z(e-e%f,f,!0),O(f),A(d)}},R=(t,n,r,i)=>{let a=e.config.loadMore;if(a===`showAll`)T(t),E(0);else if(a&&a!==`pagination`)if(i){let e=t.slice(n,n+r);e.length>0&&(T(t=>[...t,...e]),E(n+r))}else T(t.slice(0,r)),E(r);else T(t.slice(n,n+r)),E(n)},z=(t,r,o=!1,s=!1)=>{let c=e.config.contentId,l=L.current;if(!c&&n===void 0){C([]),T([]),E(0);return}if(l&&l.length>0){C(l),R(l,t,r,s),i==null||i(),M(!1);return}!o&&S!=null&&S.length||n!==void 0?(R(n??S,t,r,s),o||i==null||i(),M(!1)):c&&!f&&(M(!0),a(c,`cliplist`).then(e=>{e.items&&(C(e.items),R(e.items,t,r,s)),M(!1)}))},B=()=>{let e=(n==null?void 0:n.length)??S.length;w.length{if(e.config.loadMore===`auto`&&N.current){let e=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&!j){let e=(n==null?void 0:n.length)??S.length;w.length{e.disconnect(),t.parentNode&&t.remove()}}},[e.config.loadMore,S.length,w.length,n==null?void 0:n.length,j]);let V=e.config.loadMore&&e.config.loadMore!==`pagination`,ne=e.config,{headerLayout:re,logoElement:ie,wrapperStyle:ae}=Ot({config:ne,baseurl:o,imgCacheDate:s==null?void 0:s.imgCacheDate});return(0,Y.jsx)(`div`,{className:`ref-wrapper${y?` loading`:``}`,ref:N,style:ae,children:w.length>0&&(0,Y.jsxs)(`div`,{className:`bb-channel-block bb-channel-clipgrid ${c.classes}`,\"data-blockid\":e.id,\"data-blocktype\":`Grid`,style:{\"--item-gap\":c.itemGap+`px`},\"data-cy\":`grid-wrapper`,children:[ie,(p||ne.description||ie||(m==null?void 0:m.listtype)===`collection`)&&(0,Y.jsxs)(`div`,{className:`bb-channel-grid-header layout-${re}`,children:[re===`logo-left`&&ie,(0,Y.jsx)(`div`,{className:`header-metadata`,children:(0,Y.jsx)(`div`,{className:`header-title`,children:(0,Y.jsx)(Cr,{block:e,playlistCollection:m,subPlaylist:h,playlistHeader:p,playlistDescription:ne.description,onCollectionTitleClick:_,onSubPlaylistChange:v,className:n!=null&&n.length?`search-mode`:``,isLoadingPlaylist:y})})}),(0,Y.jsx)(`div`,{className:`header-right`,children:re===`logo-right`&&ie})]}),k&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`grid-columns grid-columns-${k}`,children:w.map((r,i)=>{let a=V?i:i+ee,o=e.type!==`Player`&&e.config.playlistType===`collection`?{contentType:`cliplist`,contentId:g,listtype:`collection`,playlistTitle:(h==null?void 0:h.shortTitle)||(h==null?void 0:h.title)||e.config.header}:void 0;return(0,Y.jsx)(Sr,{componentClass:`bb-channel-listitems-grid`,listIndex:a,block:e,entity:r,hideSelected:!!(n!=null&&n.length),playerPlaylistType:t,displayMode:n!=null&&n.length?`horizontal`:`vertical`,contextItem:o,isLoadingPlaylist:y,playButtonColor:P,playIconColor:F,playoutColor:I},`${r.id}_${a}`)})}),(0,Y.jsx)(ni,{parentLoad:z,numFound:(n==null?void 0:n.length)??S.length,offset:V?0:ee,limit:D,loadMore:e.config.loadMore,onLoadMore:B,isLoading:j,hasMore:w.length<((n==null?void 0:n.length)??S.length)})]})]})})},ai=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M8.277 7.858v9.375c0 .172-.133.313-.295.313h-.687c-.162 0-.295-.141-.295-.312V7.858c0-.172.133-.312.295-.312h.688c.162 0 .295.141.295.313zm10.28 4.909l-3.644 3.854a.28.28 0 0 1-.417-.005l-.481-.51c-.115-.122-.113-.323.005-.445l2.384-2.44h-6.109c-.162 0-.295-.141-.295-.312v-.729c0-.172.133-.312.295-.312h6.109l-2.384-2.44c-.12-.12-.123-.32-.005-.445l.481-.51c.115-.122.302-.122.417 0l3.644 3.854c.115.122.115.32 0 .443z`,fill:`#000`})})),oi=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:18,height:20,fill:`none`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M17.755 6.535l-.796-.773c-.189-.184-.494-.184-.683 0L9 12.82 1.724 5.762c-.189-.184-.494-.184-.683 0l-.796.773a.46.46 0 0 0 0 .664l8.413 8.18c.189.184.494.184.683 0l8.413-8.18a.46.46 0 0 0 0-.664z`,fill:`#191919`})})),si=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ci=l({NativePlayerPlaceholder:()=>di}),li,ui,di,fi=s((()=>{li=d(p()),J(),W(),ui=bt(),di=({block:e,entity:t,contextItemPlaylist:n,playout:r})=>{let{baseurl:i,imageExtension:a,appConfig:o}=(0,li.useContext)(q),s=Jr(),c=e.config.contentType===`cliplist`||e.config.contentType===`mediacliplist`,l=c&&n!=null&&n[0]?n[0]:t;if(!(l!=null&&l.id))return null;let u=l.id&&a?U({contentType:(l.type||`mediaclip`).toLowerCase(),imageId:l.id,width:640,height:360,extension:a,removeProtocol:!0,baseurl:i,imgCacheDate:o==null?void 0:o.imgCacheDate}):``,d=l.length||t.length,f=d?ne(d):null;return(0,ui.jsx)(`div`,{className:`bb-channel-playerblock-wrapper`,children:(0,ui.jsxs)(`div`,{className:`bb-channel-playerblock-player-wrapper`,children:[(0,ui.jsx)(`div`,{className:`player-container`,children:(0,ui.jsxs)(`button`,{type:`button`,className:`bb-channel-inline-player-placeholder`,onClick:()=>{s.onPlayRequest(l,e.config.playIn||`player`,l.id,{fromBlock:{...e.config,playout:r},isInlinePlayer:!0,blockId:e.id,listIndex:0,...c?{contextItem:{contentId:e.config.contentId,contentType:e.config.contentType}}:{}})},\"aria-label\":`Play ${l.title||`video`}`,children:[u&&(0,ui.jsx)(`img`,{alt:l.title||``,className:`bb-channel-inline-player-thumbnail`,src:u}),l.title&&(0,ui.jsx)(`div`,{className:`bb-channel-inline-player-title-overlay`,children:(0,ui.jsx)(`span`,{className:`bb-channel-inline-player-title`,children:l.title})}),(0,ui.jsx)(`div`,{className:`bb-channel-inline-player-play-btn`}),f&&(0,ui.jsx)(`span`,{className:`bb-channel-inline-player-duration`,children:f})]})}),e.config.showDescription&&t.description&&(0,ui.jsx)(Gr,{description:t.description})]})})}}));J(),W(),Kr(),ti();var pi=(0,b.lazy)(()=>si(()=>Promise.resolve().then(()=>(fi(),ci)).then(e=>({default:e.NativePlayerPlaceholder})),void 0)),mi={S:2,M:2,L:3,XL:3,XXL:4,XXXL:4},hi=({block:e,playout:t,borderRadius:n,inheritDimensions:r,noStats:i,inDetailPage:a,channelSize:o,entityLoaded:s,playlistLoaded:c})=>{var l,u;let{isNativeMode:d}=Jr(),{app_registerPlayer:f,app_hideDetailPage:p,baseurl:m,app_getEntityData:h,playerPath:g,channelId:_,navigationState:v,setNavigationState:y,imageExtension:x,appConfig:S,customFields:w,lang:T}=(0,b.useContext)(q),[E,D]=(0,b.useState)(!0),[O,k]=(0,b.useState)({id:``,title:``,description:``}),[A,j]=(0,b.useState)(`-1`),[M,N]=(0,b.useState)([]),[P,F]=(0,b.useState)(``),I=(0,b.useRef)(!1),[L,R]=(0,b.useState)({contentId:``,contentType:null}),[z,B]=(0,b.useState)(null),[V,H]=(0,b.useState)(!1),[ne,re]=(0,b.useState)(null),ae={Grid:ii,Carousel:Rr,Cliplist:Lr},oe=(0,b.useRef)(null),se=(0,b.useRef)(null),ce=(0,b.useRef)(null),le=(0,b.useRef)(!1),ue=(0,b.useRef)(A);ue.current=A;let de=(0,b.useRef)(v.pageType);de.current=v.pageType;let fe=v.currentEntity,he=v.detailPagePlayout;(0,b.useEffect)(()=>()=>{var e;(e=oe.current)==null||(e=e.closest(`.detail-page-wrapper`))==null||e.classList.remove(`bb-player-fullscreen`)},[]),(0,b.useEffect)(()=>{if(_e({contentId:e.config.contentId,contentType:e.config.contentType}),d){h(e.config.contentId,e.config.contentType).then(t=>{t&&(k(t),(e.config.contentType===`cliplist`||e.config.contentType===`mediacliplist`)&&(N(t.items||[]),F(t.title||``)))});return}requestAnimationFrame(()=>{le.current||ye({playoutLabel:t||`default`,contentId:e.config.contentId,contentType:e.config.contentType,blockId:e.id,collectionId:ne})})},[e.config.contentId,ne,d]),(0,b.useEffect)(()=>{a&&O!=null&&O.id&&y(e=>{let t=e.contentType;return O.type===`MediaClip`?t=`mediaclip`:O.type===`Project`&&(t=`project`),{...e,currentEntity:O,contentId:O.id,contentType:t}})},[O,a]),(0,b.useEffect)(()=>{if(a&&(v==null?void 0:v.pageType)===`detailPage`&&!z&&!le.current&&!d){var n;let r=(fe==null?void 0:fe.type)??((n=e.config)==null?void 0:n.contentType)??`cliplist`;ye({playoutLabel:t||`default`,contentId:A!==`-1`&&A||e.config.contentId,contentType:r,blockId:e.id,forceAutoPlay:!0,collectionId:ne})}},[v==null?void 0:v.pageType,d]),(0,b.useEffect)(()=>{j(e.config.contentId)},[e.config.contentId]),(0,b.useEffect)(()=>{o&&o!==`S`&&D(e.config.layout!==`right`)},[e.config.layout,o]),(0,b.useEffect)(()=>{let e=new AbortController;return z&&(pe(()=>{window.dispatchEvent(new Event(`resize`))},0,e.signal).catch(()=>{}),pe(()=>{window.dispatchEvent(new Event(`resize`))},100,e.signal).catch(()=>{})),()=>{e.abort()}},[E]);let ge=e=>{let t=e&&(e.getProjectData()||e.getClipData());s&&(t==null?void 0:t.code)!==`404`&&s(t),t&&(O&&O.id!==t.id||!O)&&(k(t),requestAnimationFrame(()=>{var e;ce==null||(e=ce.current)==null||e.scrollToItem(t)}))},_e=t=>{if(e.config.layout!==`right`||!t||[`mediaclip`,`project`].includes(t.contentType)||!parseInt(t.contentId,10)){R({contentId:``,contentType:null}),F(``),N([]),D(!1),(!t||parseInt(t.contentId,10))&&c&&c(t);return}h(t.contentId,t.contentType),c&&c(t),R(t),a||be(t.contentId)},ve=()=>D(e=>!e),ye=t=>{let{playoutLabel:o,contentId:s,contentType:c,blockId:l,forceAutoPlay:u,collectionId:d}=t;if(!m||le.current)return;if(!s){if(z){var h,y;(h=oe.current)==null||(h=h.closest(`.detail-page-wrapper`))==null||h.classList.remove(`bb-player-fullscreen`),(y=z.__watchedProgressCleanup)==null||y.call(z),z.destruct(),le.current=!1}k({id:``,title:``,description:``});return}let b=ie(c);le.current=!0,C.loadPlayer({playerPath:g},()=>{var t;let c=new URL(`${m}/p/${o}/${b}/${s}.json`),h=c.searchParams;h.set(`bb_app`,`ch`),h.set(`iframeBreakout`,`false`),h.set(`isolatePlayer`,`true`);let g=zr({borderRadius:n,inheritDimensions:r,autoPlay:Br({inDetailPage:a,forceAutoPlay:u,detailPagePlayout:he})});for(let[e,t]of Object.entries(g))h.set(e,String(t));i===`true`&&h.set(`noStats`,`true`);let y=new URLSearchParams(window.location.search).get(`bb_t`);y&&h.set(`bb_t`,y),l&&l!==`detailPage`&&h.set(`bb_ch_bid`,l);let x=a?v==null?void 0:v.currentContext:L;x!=null&&x.contentId&&(h.set(`contextEntityType`,`MediaClipList`),h.set(`contextEntityId`,x.contentId));let w=d||(v==null?void 0:v.collectionIdToLoad)||(v==null||(t=v.collectionContext)==null?void 0:t.id);w&&(h.set(`contextCollectionType`,`MediaClipList`),h.set(`contextCollectionId`,w)),ee(c);let T={target:oe.current,initiator:`Channel/${_}`,inheritDimensions:r?`true`:`false`};a&&(T.alias=`channelDetailPage_${_}`);let E=C.createPlayer(c.toString(),T);if(E){if(z){var D,O;(D=oe.current)==null||(D=D.closest(`.detail-page-wrapper`))==null||D.classList.remove(`bb-player-fullscreen`),(O=z.__watchedProgressCleanup)==null||O.call(z),z.destruct(),window.playersReady--}if(B(E),le.current=!0,f(E,e.id,se,{setContentId:j,setContextItem:_e,setCollectionId:re},!!(he&&a),o,g),typeof E.on==`function`){let t=null,n=null;if(S!=null&&S.previewAddWatchedHistory){let e=0,t=()=>{try{var e;let t=(e=E.getClipData)==null?void 0:e.call(E);return(t==null?void 0:t.id)!==null&&(t==null?void 0:t.id)!==void 0?String(t.id):null}catch(e){return console.warn(`[watched-progress] getClipData failed:`,e),null}},n=(n=!1)=>{let r=Date.now();if(!n&&r-e<2e3)return;let i=t();if(!i)return;let a,o;try{var s,c;a=(s=E.getDuration)==null?void 0:s.call(E),o=(c=E.getCurrentTime)==null?void 0:c.call(E)}catch(e){console.warn(`[watched-progress] getDuration/getCurrentTime failed:`,e);return}!a||a<=0||!Number.isFinite(o)||(e=r,te(i,o/a))},r=()=>n(),i=()=>n(!0),a=()=>{let e=t();e&&te(e,1)};E.on(`timeupdate`,r),E.on(`pause`,i),E.on(`ended`,a),E.__watchedProgressCleanup=()=>{try{var e,t,n;(e=E.off)==null||e.call(E,`timeupdate`,r),(t=E.off)==null||t.call(E,`pause`,i),(n=E.off)==null||n.call(E,`ended`,a)}catch(e){console.warn(`[watched-progress] off() failed:`,e)}}}E.on(`loadedclipdata`,()=>{!I.current&&a?(I.current=!0,E.load(null)):ge(E)}),E.on(`floatstart`,()=>{t??(t=E.getWrapper()),n??(n=t==null?void 0:t.parentNode),H(!0),me()&&t&&t.parentNode!==document.body&&(t.parentNode.removeChild(t),document.body.appendChild(t))}),E.on(`floatend`,()=>{H(!1),me()&&t&&n&&t.parentNode!==n&&(document.body.removeChild(t),n.appendChild(t))}),E.on(`fullscreen`,()=>{if(me()){var e;(e=oe.current)==null||(e=e.closest(`.detail-page-wrapper`))==null||e.classList.add(`bb-player-fullscreen`)}}),E.on(`retractfullscreen`,()=>{if(me()){var e;(e=oe.current)==null||(e=e.closest(`.detail-page-wrapper`))==null||e.classList.remove(`bb-player-fullscreen`)}}),E.on(`ready`,()=>{window.playersReady=(window.playersReady||0)+1}),a&&E.on(`contentblocked`,(t,n)=>{let r=n||{};ar(`CONTENT_BLOCKED`,{contentId:r.contentId||ue.current,contentType:(r.contentType||e.config.contentType||`mediaclip`).toLowerCase(),violation:r.reason}),de.current===`detailPage`&&p()})}}})},be=e=>{h(e,`cliplist`).then(e=>{e&&(F(e.title||``),N(e.items||[]))})},xe=mi[o],W=(l=M[0])==null?void 0:l.id,[Se,Ce]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ce(!1)},[W]),(0,b.useEffect)(()=>{O.id&&W&&O.id!==W&&M.some(e=>e.id===O.id)&&Ce(!0)},[O.id,W,M]);let we=(0,b.useMemo)(()=>e.config.layout===`right`?Se?M:M.slice(1):[],[e.config.layout,Se,M]),Te=(0,b.useMemo)(()=>e.config.showMoreButton?we.slice(0,xe):we,[e.config.showMoreButton,we,xe]),Ee=M==null?void 0:M.findIndex(e=>e.id===O.id),De=e.config.previewCustomField,Oe=De&&O!=null&&O.type?w==null||(u=w[O.type.toLowerCase()])==null?void 0:u.find(e=>e.name===De):void 0,ke=Oe&&O[De]?(0,Y.jsx)(`div`,{className:`bb-channel-playerblock-mediaclip-customfield`,\"data-cy\":`player-customfield`,children:(0,Y.jsx)(sr,{entity:O,customFieldConfig:Oe,lang:T})}):null,Ae,je=e.config.layout===`below`&&e.config.playlistLayout&&ae[e.config.playlistLayout];return je&&(Ae=ae[e.config.playlistLayout]),d?a?null:(0,Y.jsx)(`div`,{className:`bb-channel-block`,ref:se,\"data-blockid\":e.id,\"data-cy\":`player-`+e.id,children:(0,Y.jsxs)(`div`,{className:`bb-channel-playerblock bb-channel-playerblock--native context-type-${L==null?void 0:L.contentType}`,children:[(0,Y.jsx)(b.Suspense,{fallback:null,children:(0,Y.jsx)(pi,{block:e,entity:O,contextItemPlaylist:M,playout:t})}),je&&(0,Y.jsx)(Ae,{block:e,playerPlaylistType:e.config.playlistLayout})]})}):(0,Y.jsx)(`div`,{className:`bb-channel-block`,ref:se,\"data-blockid\":e.id,\"data-cy\":`player-`+e.id,children:(0,Y.jsxs)(`div`,{className:`bb-channel-playerblock ${E||(L==null?void 0:L.contentType)!==`cliplist`?`hide-content`:``} context-type-${L==null?void 0:L.contentType}`,children:[(0,Y.jsx)(`div`,{className:`bb-channel-playerblock-title-toggle ${e.config.showPlayerTitle?``:`bb-channel-playerblock-no-video-titles`} `,children:!a&&L.contentType===`cliplist`&&e.config.layout===`right`&&(0,Y.jsx)(`button`,{type:`button`,className:`bb-button toggle-player`,onClick:ve,\"data-cy\":`player-list-toggle`,children:(0,Y.jsx)(ai,{className:`bb-channel-toggle-black`})})}),(0,Y.jsxs)(`div`,{className:`bb-channel-playerblock-wrapper`,style:e.config.layout===`right`&&Te.length?{\"--sidebar-count\":Math.min(Te.length,xe)}:void 0,children:[(0,Y.jsxs)(`div`,{className:`bb-channel-playerblock-player-wrapper`,children:[(0,Y.jsxs)(`div`,{className:`player-container`,children:[x&&O.type&&O.id&&(0,Y.jsx)(`img`,{alt:``,className:`player-bg`,style:{display:V?`block`:`none`},src:U({contentType:O.type.toLowerCase(),imageId:O.id,width:640,height:360,extension:x,removeProtocol:!0,baseurl:m,imgCacheDate:S==null?void 0:S.imgCacheDate})}),(0,Y.jsx)(`div`,{ref:oe,className:`bb-channel-playerblock-player${V?` is-floating`:``}`})]}),!a&&e.config.showPlayerTitle&&O.title&&(0,Y.jsx)(`h4`,{className:`bb-channel-playerblock-mediaclip-title`,\"data-cy\":`player-title`,children:O.title}),!a&&ke,!a&&L.contentType===`cliplist`&&e.config.layout!==`single`&&e.config.layout!==`below`&&e.config.layout!==`right`&&(0,Y.jsxs)(`button`,{type:`button`,className:`bb-channel-playerblock-mobile-nextup`,onClick:ve,children:[(0,Y.jsxs)(`div`,{className:`bb-channel-playerblock-mobile-nextup-container`,children:[(0,Y.jsx)(`h3`,{className:`bb-channel-playerblock-mobile-nextup-title`,children:P||(0,Y.jsx)(Y.Fragment,{children:`\\xA0`})}),(0,Y.jsxs)(`p`,{className:`bb-channel-playerblock-mobile-nextup-text`,children:[Ee+1,` / `,M.length]})]}),(0,Y.jsx)(oi,{className:`bb-channel-playerblock-mobile-nextup-arrow`})]}),!a&&e.config.showDescription&&O.description&&(0,Y.jsx)(Gr,{description:O.description})]}),!a&&!(o===`S`&&e.config.layout===`right`)&&(0,Y.jsx)(`div`,{className:`bb-channel-playerblock-content`,\"data-cy\":`player-content-id-${O.id}`,children:(0,Y.jsx)(Hr,{ref:ce,block:e,contextItem:L,contentId:A,playlistItems:e.config.layout===`right`?Te:M,allPlaylistItems:e.config.layout===`right`&&e.config.showMoreButton&&we.length>Te.length?we:void 0,compactMode:e.config.layout===`right`})})]}),je&&(0,Y.jsx)(Ae,{block:e,playerPlaylistType:e.config.playlistLayout}),o===`S`&&e.config.layout===`right`&&(L==null?void 0:L.contentType)===`cliplist`&&(0,Y.jsx)(`div`,{className:`bb-channel-mobile-playlist-below`,children:(0,Y.jsx)(Lr,{block:{...e,type:`Cliplist`,config:{...e.config,contentId:L.contentId,playIn:`detailPage`}}})})]})})};J(),_t(),W();var gi=()=>{let{lang:e,navigationState:t}=(0,b.useContext)(q),n=t.searchQuery||``,r=t.searchResults||[],i=t.searchLoading||!1,[a,o]=(0,b.useState)(!1),s=(0,b.useRef)(null);return(0,b.useEffect)(()=>{o(!0)},[]),(0,Y.jsxs)(`div`,{className:`search-results-grid bb-channel-block ${i?`loading`:``} ${a?`show`:``}`,children:[(0,Y.jsx)(`div`,{className:`scroll-anchor`,ref:s}),(0,Y.jsx)(`div`,{className:`detail-search-container`,children:(0,Y.jsxs)(`h4`,{className:`bb-channel-block-title`,\"data-cy\":`search-title`,children:[i&&(0,Y.jsxs)(Y.Fragment,{children:[K(`SEARCHING`,e),`...`]}),!i&&(0,Y.jsxs)(Y.Fragment,{children:[!n&&r.length>0&&(0,Y.jsx)(Y.Fragment,{children:K(`SUGGESTED_VIDEOS`,e)}),n&&r.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[r.length,` `,K(`RESULT${r.length>1?`S`:``}_FOUND_FOR`,e),` \"`,n,`\"`]}),n&&r.length===0&&(0,Y.jsxs)(Y.Fragment,{children:[K(`NO_RESULTS_FOUND_FOR`,e),` \"`,n,`\"`]})]})]})}),(0,Y.jsx)(`div`,{className:`detail-search-results`,children:(0,Y.jsx)(ii,{block:{id:`searchPage`,type:`Grid`,config:{previewTimestampDisplay:`bottomRight`,previewTitleDisplay:`below`,playIn:`detailPage`}},searchResults:r,displayMultiplier:5,onLoad:()=>{requestAnimationFrame(()=>{s!=null&&s.current&&ye(s.current,{block:`start`,behavior:`smooth`})})}})})]})},_i=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:20,height:20,viewBox:`0 0 448 512`,fill:`currentColor`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M393.4 41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 256 438.6 425.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 301.3 54.6 470.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L178.7 256 9.4 86.6C-3.1 74.1-3.1 53.9 9.4 41.4s32.8-12.5 45.3 0L224 210.7 393.4 41.4z`})})),vi=(0,b.forwardRef)((e,t)=>(0,Y.jsxs)(`svg`,{width:31,height:20,viewBox:`0 0 31 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:t,...e,children:[(0,Y.jsx)(`g`,{filter:`url(#filter0_d_135_2704)`,children:(0,Y.jsx)(`path`,{d:`M6.61658 11.4027H29.0624C30.1341 11.4027 31 10.5537 31 9.50297C31 8.4522 30.1341 7.60327 29.0624 7.60327H6.61658L11.0609 3.24582C11.8178 2.50375 11.8178 1.29863 11.0609 0.556554C10.3041 -0.185518 9.07491 -0.185518 8.31803 0.556554L0.567655 8.15537C-0.189218 8.89744 -0.189218 10.1026 0.567655 10.8446L8.31803 18.4434C9.07491 19.1855 10.3041 19.1855 11.0609 18.4434C11.8178 17.7014 11.8178 16.4963 11.0609 15.7542L6.61658 11.4027Z`,fill:`white`})}),(0,Y.jsx)(`defs`,{children:(0,Y.jsxs)(`filter`,{id:`filter0_d_135_2704`,x:0,y:0,width:31,height:20,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[(0,Y.jsx)(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),(0,Y.jsx)(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),(0,Y.jsx)(`feOffset`,{dy:1}),(0,Y.jsx)(`feComposite`,{in2:`hardAlpha`,operator:`out`}),(0,Y.jsx)(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),(0,Y.jsx)(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_135_2704`}),(0,Y.jsx)(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_135_2704`,result:`shape`})]})})]}));J(),_t();var yi=({onClose:e,text:t})=>{let{lang:n}=(0,b.useContext)(q),r=(0,b.useCallback)(t=>{t.key===`Escape`&&(e==null||e())},[e]);return(0,b.useEffect)(()=>(document.addEventListener(`keydown`,r),()=>{document.removeEventListener(`keydown`,r)}),[r]),(0,Y.jsx)(`div`,{className:`bb-channel-detail-page-back-arrow`,children:(0,Y.jsxs)(`button`,{\"data-cy\":`detail-page-back-arrow`,type:`button`,className:`back-arrow text-xl back-arrow-${t}`,onClick:e,children:[t===`close`?(0,Y.jsx)(_i,{}):(0,Y.jsx)(vi,{}),(0,Y.jsx)(`span`,{children:K(t===`close`?`CLOSE`:`BACK`,n)})]})})};J();var bi=({entity:e,onNoFields:t})=>{var n,r;let{customFields:i,lang:a}=(0,b.useContext)(q),o=(i==null?void 0:i[e==null||(n=e.type)==null?void 0:n.toLowerCase()])||[],s=(e==null?void 0:e.type)&&(o==null||(r=o.filter(t=>t&&t.publicDisplay&&e[t.name]))==null?void 0:r.length)>0;return(0,b.useEffect)(()=>{e&&!s&&(t==null||t())},[e,s,t]),(0,Y.jsx)(`div`,{className:`clip-fields-wrapper`,children:e&&(o==null?void 0:o.map((t,n)=>!t.publicDisplay||!e[t.name]||![`text`,`date`,`datetime`,`multistring`,`array`,`string`,`boolean`,`int`,`float`].includes(t.type)?null:(0,Y.jsx)(`div`,{className:`clip-field text-sm`,children:(0,Y.jsx)(sr,{entity:e,customFieldConfig:t,lang:a,full:!0})},n)))})};J(),_t();var xi=({entity:e,currentContext:t,showRelatedItems:n,relatedListType:r,carouselReady:i,showMetadata:a,relatedContent:o,onNoCustomFieldsFound:s,dataCy:c})=>{let{lang:l,activeBlockConfig:u}=(0,b.useContext)(q),[d,f]=(0,b.useState)(0),p=(0,b.useRef)(null),m=(0,b.useRef)(null),[h,g]=(0,b.useState)({left:0,width:0}),[_,v]=(0,b.useState)(!1);(0,b.useEffect)(()=>()=>{m.current!==null&&clearTimeout(m.current)},[]);let y=(t==null?void 0:t.contentType)===`cliplist`,x=(u==null?void 0:u.header)||((e==null?void 0:e.type)===`MediaClipList`?e.shortTitle||e.title:null)||K(`RELATED_VIDEOS`,l),S=(e==null?void 0:e.type)===`MediaClipList`||(e==null?void 0:e.type)===`cliplist`?K(`PLAYLIST_DETAILS`,l):K(`CLIP_DETAILS`,l);(0,b.useEffect)(()=>{f((t==null?void 0:t.contentType)===`cliplist`?0:1)},[t==null?void 0:t.contentType]);let C=e=>{e!==d&&(v(!0),setTimeout(()=>{f(e),setTimeout(()=>{v(!1)},50)},300))};return(0,b.useEffect)(()=>{!n&&!a||requestAnimationFrame(()=>{var e;let t=(e=p.current)==null?void 0:e.querySelectorAll(`.tab`);if(!t)return;let n=t[d]||t[0];n&&g({left:n.offsetLeft,width:n.offsetWidth})})},[d,n,a,x]),!n&&!a?null:(0,Y.jsx)(`div`,{className:`bb-channel-related-items-section`,children:(0,Y.jsxs)(`div`,{className:`bb-channel-playerblock-content`,\"data-cy\":c,children:[(0,Y.jsx)(`h4`,{className:`bb-channel-block-title`,children:(0,Y.jsxs)(`span`,{ref:p,className:`tabs`,children:[y&&n&&(0,Y.jsx)(`button`,{onClick:()=>C(0),className:`tab`+(d===0?` active`:``),children:x}),a&&(0,Y.jsx)(`button`,{onClick:()=>C(+!!y),className:`tab clip-details-tab`+(d===+!!y?` active`:``),children:S}),(0,Y.jsx)(`div`,{className:`tabs-underline`,style:{left:h.left,width:h.width}})]})}),(0,Y.jsxs)(`div`,{className:`tab-contents-wrapper`+(_?` transitioning`:``),children:[i&&(t==null?void 0:t.contentId)&&y&&(0,Y.jsx)(`div`,{className:`tab-contents playlist-tab`+(d===0?` active`:` inactive`)+(r===`verticalList`?` vertical-list`:``),children:o}),e&&a&&(0,Y.jsx)(`div`,{className:`clip-details tab-contents `+(d===+!!y?`active`:`inactive`),children:(0,Y.jsx)(bi,{entity:e,onNoFields:()=>{if(s)return s();m.current!==null&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,f(0)},0)}})})]})]})})};J();var Si=({block:e,hideHeader:t,playerPlaylistType:n,onItemSelected:r})=>{let{app_getEntityData:i}=(0,b.useContext)(q),[a,o]=(0,b.useState)([]),s=(0,b.useRef)(null),{backgroundColor:c,iconColor:l,playoutColor:u}=jr({block:e});return(0,b.useEffect)(()=>{let t=e.config.contentId;t&&i(t,`cliplist`).then(e=>{o(e.items??[])})},[e.config.contentId]),(0,Y.jsx)(`div`,{className:`ref-wrapper`,ref:s,children:(a==null?void 0:a.length)>0&&(0,Y.jsxs)(`div`,{className:`bb-channel-block bb-channel-vertical-list`,\"data-cy\":`verticalList-wrapper-`+e.id,children:[e.config.header&&!t?(0,Y.jsx)(`h3`,{className:`bb-channel-block-title`,children:e.config.header}):null,(0,Y.jsx)(`div`,{className:`list-container`,children:a.map((t,i)=>(0,Y.jsx)(Sr,{onItemSelected:r,componentClass:`verticalList`,listIndex:i,block:e,entity:t,playerPlaylistType:n,displayMode:`horizontal`,playButtonColor:c,playIconColor:l,playoutColor:u},`${t.id}_${i}`))})]})})};J(),Kr(),W(),ti();var Ci=({playout:e,borderRadius:t,noStats:n,detailPageConfig:r,blocks:i})=>{let{app_hideDetailPage:a,navigationState:o,setNavigationState:s,imageExtension:c,app_setSearchQuery:l,baseurl:u,appConfig:d}=(0,b.useContext)(q),{isNativeMode:f}=Jr(),[p,m]=(0,b.useState)(!0),[h,g]=(0,b.useState)(),[_,v]=(0,b.useState)(),[y,x]=(0,b.useState)(),[S,C]=(0,b.useState)(),[w,T]=(0,b.useState)(),[ee,E]=(0,b.useState)(!1),D=(0,b.useRef)(null),O=navigator.userAgent.includes(`SamsungBrowser`),k=navigator.userAgent.includes(`Safari`)&&!navigator.userAgent.includes(`Chrome`),A=(0,b.useRef)(new AbortController),j=o.currentEntity,M=o.currentContext,N=o.activeBlockConfig,P=o.detailPagePlayout,F=o.pageType===`searchPage`,I=o.searchQuery||``,L=(r==null?void 0:r.displayMode)===`modal`,te=r.showMetadata??!0;(0,b.useEffect)(()=>{var e,t,n,r,i;if(!j||!c)return;let a=new AbortController,o=Math.round(devicePixelRatio*384).toString(),s=(e=j._imageCache)!=null&&e.extension?j._imageCache.extension.replace(/^\\./,``):c;return v({width:((t=j._imageCache)==null?void 0:t.width)??o,height:((n=j._imageCache)==null?void 0:n.height)??`default`,type:((r=j._imageCache)==null?void 0:r.type)??(j==null||(i=j.type)==null?void 0:i.toLowerCase()),extension:s}),E(!0),pe(()=>{var e;if(T(j),(e=j._imageCache)!=null&&e.type||j!=null&&j.type){var t,n,r,i;x({width:((t=j._imageCache)==null?void 0:t.width)??o,height:((n=j._imageCache)==null?void 0:n.height)??`default`,type:((r=j._imageCache)==null?void 0:r.type)??(j==null||(i=j.type)==null?void 0:i.toLowerCase()),extension:s})}E(!1)},500,a.signal).catch(()=>{}),()=>{a.abort()}},[j,c]),(0,b.useEffect)(()=>{if(o.pageType===`detailPage`&&!F&&!S){var e;(o==null||(e=o.previousState)==null?void 0:e.pageType)===`overviewPage`&&C(structuredClone(o.previousState)),z()}(o.pageType!==`detailPage`||F)&&C(void 0)},[o.pageType,F,o.previousState]),(0,b.useEffect)(()=>{if(h||!i||i.length===0)return;let e=``,t;i.find(n=>{if(`contentId`in n.config&&n.config.contentId)return e=n.config.contentId,t=`contentType`in n.config?n.config.contentType:`cliplist`,!0;if(`slides`in n&&n.slides.length>0&&n.slides[0].contentId&&n.slides[0].contentType)return e=n.slides[0].contentId,t=n.slides[0].contentType,!0}),!(!e||!t)&&g({type:`Player`,id:`detailPage`,config:{contentType:t,contentId:e,showDescription:!1,showPlayerTitle:!1,previewTitleDisplay:`below`,previewTimestampDisplay:`bottomRight`,playIn:`detailPage`,layout:`right`}})},[i]);let R=z;function z(){pe(()=>{requestAnimationFrame(()=>{D&&ye(D.current,{behavior:`smooth`,block:`center`})})},50,A.current.signal).catch(()=>{})}let B=()=>{m(!0)},V=()=>{if(m(!1),T(null),S){s(S);return}I?l(I):a()},H=L||(r==null?void 0:r.playerAlignment)===`fullWidth`?`detailPage-fullWidth`:`detailPage`;return(0,Y.jsxs)(`div`,{className:`bb-channel-detail-page ${L?`modal-mode`:``} ${L&&!te?`no-metadata`:``} ${F?`search-mode bg-neutral `:``} player-align-${r==null?void 0:r.playerAlignment} ${!L&&!(r!=null&&r.showThumbnailAsBackground)&&r!=null&&r.enableBackgroundBlur?`background-blur`:``} ${!L&&!(r!=null&&r.showThumbnailAsBackground)?`use-bg-color`:``} ${f?`native-player-mode`:``}`,children:[F&&(0,Y.jsx)(gi,{}),r!=null&&r.showThumbnailAsBackground&&!F&&!L?(0,Y.jsxs)(Y.Fragment,{children:[w&&y&&(0,Y.jsx)(`img`,{src:U({contentType:y.type,imageId:w.id,width:y.width,height:y.height,extension:y.extension,set:(M==null?void 0:M.aspectRatio)??`default`,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate}),alt:``,className:`bb-channel-detail-page-background`}),(j==null?void 0:j.id)&&_&&(0,Y.jsx)(`img`,{src:U({contentType:_.type,imageId:j.id,width:_.width,height:_.height,extension:_.extension,set:(M==null?void 0:M.aspectRatio)??`default`,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate}),alt:``,className:`bb-channel-detail-page-background ${ee?`fade-in`:``}`})]}):null,L&&o.pageType===`detailPage`?(0,Y.jsxs)(`button`,{type:`button`,className:`modal-close-btn`,onClick:V,children:[`Close`,(0,Y.jsx)(_i,{})]}):null,(0,Y.jsx)(`div`,{className:`detail-page-player-section`,children:(0,Y.jsxs)(`div`,{className:`bb-channel-detail-page-data`,\"data-cy\":j!=null&&j.id?`player-content-id-${j.id}`:void 0,children:[!L&&!f&&(0,Y.jsx)(yi,{text:!S&&r!=null&&r.enableBackgroundBlur&&!I?`close`:`back`,onClose:V}),!L&&f&&(0,Y.jsx)(`button`,{className:`sr-only`,\"aria-label\":`Go back`,onClick:V}),!f&&(0,Y.jsx)(`div`,{className:`${O||k?`fix-aspect-ratio`:``} bb-channel-detail-page-player`,ref:D,children:h&&(0,Y.jsx)(hi,{block:h,inheritDimensions:r.playerAlignment===`fullWidth`,playout:e,borderRadius:t,noStats:n,inDetailPage:!0,playlistLoaded:B})}),o.pageType===`detailPage`&&(0,Y.jsxs)(Y.Fragment,{children:[te&&(0,Y.jsxs)(`div`,{className:`bb-channel-detail-page-text`,children:[(0,Y.jsx)(`h2`,{className:`bb-channel-detail-page-title`,children:j==null?void 0:j.title}),(0,Y.jsx)(Gr,{description:j==null?void 0:j.description,theme:H})]}),(r==null?void 0:r.showRelatedItems)&&!L&&(0,Y.jsx)(`div`,{className:`bb-channel-detail-page-related-items`,children:(0,Y.jsx)(xi,{entity:j,currentContext:M,showRelatedItems:r.showRelatedItems,showMetadata:te,relatedListType:r.relatedListType,carouselReady:p&&!!h,dataCy:`player-content-id-${j==null?void 0:j.id}`,relatedContent:(r==null?void 0:r.relatedListType)===`verticalList`?(0,Y.jsx)(Si,{hideHeader:!0,block:{id:o.activeBlockId||`detailpagePlaylist`,type:`VerticalList`,config:{header:(N==null?void 0:N.header)||(j==null?void 0:j.shortTitle)||(j==null?void 0:j.title),contentId:M==null?void 0:M.contentId,previewTitleDisplay:(N==null?void 0:N.previewTitleDisplay)||`none`,previewTimestampDisplay:(N==null?void 0:N.previewTimestampDisplay)||`none`,playIn:`detailPage`,aspectRatio:(N==null?void 0:N.aspectRatioSubPlaylist)||(N==null?void 0:N.aspectRatio)||`16:9`,aspectRatioSubPlaylist:N==null?void 0:N.aspectRatioSubPlaylist,listIndex:M==null?void 0:M.listIndex,playout:P||(N==null?void 0:N.playout),usePlayoutPlayButtonColor:N==null?void 0:N.usePlayoutPlayButtonColor}},playerPlaylistType:h==null?void 0:h.config.playlistLayout,onItemSelected:R}):p&&(0,Y.jsx)(Rr,{onItemSelected:R,hideHeader:!0,block:{id:o.activeBlockId||`detailpagePlaylist`,type:`Carousel`,config:{header:(N==null?void 0:N.header)||(j==null?void 0:j.shortTitle)||(j==null?void 0:j.title),contentId:M==null?void 0:M.contentId,previewTitleDisplay:(N==null?void 0:N.previewTitleDisplay)||`none`,previewTimestampDisplay:(N==null?void 0:N.previewTimestampDisplay)||`none`,playIn:`detailPage`,aspectRatio:(N==null?void 0:N.aspectRatioSubPlaylist)||(N==null?void 0:N.aspectRatio)||`16:9`,aspectRatioSubPlaylist:N==null?void 0:N.aspectRatioSubPlaylist,listIndex:M==null?void 0:M.listIndex,previewCustomField:N==null?void 0:N.previewCustomField,previewCustomFieldDisplay:N==null?void 0:N.previewCustomFieldDisplay,thumbnailSize:N==null?void 0:N.thumbnailSize,thumbnailSizeMobile:N==null?void 0:N.thumbnailSizeMobile,playout:P||(N==null?void 0:N.playout),usePlayoutPlayButtonColor:N==null?void 0:N.usePlayoutPlayButtonColor}},playerPlaylistType:h==null?void 0:h.config.playlistLayout})})})]})]})})]})};J(),_t(),W();var wi=({entity:e,subtitle:t,hideTitle:n,onResume:r,className:i,buttonClassName:a})=>{let{lang:o}=(0,b.useContext)(q),[s,c]=(0,b.useState)(()=>F(e.id));(0,b.useEffect)(()=>(c(F(e.id)),B(e.id,c)),[e.id]);let l=Math.round(s*e.length),u=ne(e.length),d=ne(l),f=Math.min(100,Math.max(0,s*100));return(0,Y.jsxs)(`div`,{className:`bb-channel-resume-card${i?` `+i:``}`,children:[(0,Y.jsxs)(`button`,{type:`button`,className:a||`bb-button`,onClick:r,children:[(0,Y.jsx)(xt,{className:`play-icon`}),K(`RESUME`,o)]}),(0,Y.jsxs)(`div`,{className:`bb-channel-resume-info`,children:[!n&&(0,Y.jsxs)(`div`,{className:`bb-channel-resume-titles`,children:[(0,Y.jsx)(`span`,{className:`bb-channel-resume-title`,children:e.title}),t&&(0,Y.jsx)(`span`,{className:`bb-channel-resume-subtitle`,children:t})]}),(0,Y.jsxs)(`div`,{className:`bb-channel-resume-progress-row`,children:[(0,Y.jsx)(`div`,{className:`bb-channel-resume-progress`,children:(0,Y.jsx)(`div`,{className:`bb-channel-resume-progress-fill`,style:{width:`${f}%`}})}),(0,Y.jsxs)(`span`,{className:`bb-channel-resume-time`,children:[d,` `,K(`WATCHED_OF`,o),` `,u]})]})]})]})};J(),Kr(),W();var Ti=({currentContext:e,detailPageConfig:t})=>{var n,r;let{app_hideDetailPage:i,app_navigateToPage:a,app_playEntity:o,activeBlockConfig:s,navigationState:c,imageExtension:l,baseurl:u,appConfig:d}=(0,b.useContext)(q),{loadPlaylistData:f}=wr(),p=c.pageType===`overviewPage`,[m,h]=(0,b.useState)(!0),[g,_]=(0,b.useState)(),[v,y]=(0,b.useState)(),[x,S]=(0,b.useState)(),[C,w]=(0,b.useState)(!1),[T,ee]=(0,b.useState)(null),[E,D]=(0,b.useState)([]),[O,k]=(0,b.useState)(null),{playoutColor:A}=jr({block:{type:`Carousel`,id:`overviewPage`,config:{playout:s==null?void 0:s.playout}}}),j=c.collectionContext,M=c.currentEntity,N=!j||(e==null?void 0:e.contentId)===(j==null?void 0:j.id),P=!N&&!!(s!=null&&s.aspectRatioSubPlaylist),F=P?`medium`:s==null?void 0:s.thumbnailSize,I=P?`medium`:s==null?void 0:s.thumbnailSizeMobile,te=(0,b.useRef)(null),R=(0,b.useRef)(new AbortController),z=String((((n=te.current)==null?void 0:n.clientWidth)-((r=te.current)==null?void 0:r.clientWidth)%16)*devicePixelRatio||1);(0,b.useEffect)(()=>()=>{R.current.abort(),R.current=new AbortController},[]),(0,b.useEffect)(()=>{p&&te.current&&pe(()=>{requestAnimationFrame(()=>{ye(te.current,{behavior:`smooth`,block:`start`})})},50,R.current.signal).catch(()=>{})},[p]),(0,b.useEffect)(()=>{(async()=>{if(e!=null&&e.contentId&&(e==null?void 0:e.contentType)===`cliplist`){let t=await f(e.contentId);t&&(ee(t),D(t.items||[]),h(!0))}else ee(null),D([]),h(!0)})()},[e==null?void 0:e.contentId,e==null?void 0:e.contentType]),(0,b.useEffect)(()=>{p&&h(!0)},[p]),(0,b.useEffect)(()=>{if(!(d!=null&&d.previewAddWatchedHistory)){k(null);return}let e=()=>k(L(E));return e(),V(e)},[E,d==null?void 0:d.previewAddWatchedHistory]);let B=()=>{O&&o({entity:O.entity,playerBlockId:(s==null?void 0:s.playIn)||`detailPage`,contentId:O.entity.id,blockType:`Carousel`,contextItem:T?{contentType:`cliplist`,contentId:T.id}:null,fromBlock:s,fromBlockId:c.activeBlockId})},H=T||(E.length>0?E[0]:M);return(0,b.useEffect)(()=>{var e,t,n,r,i;if(!H||!l)return;let a=(e=H._imageCache)!=null&&e.extension?H._imageCache.extension.replace(/^\\./,``):l;_({width:((t=H._imageCache)==null?void 0:t.width)??z,height:((n=H._imageCache)==null?void 0:n.height)??`default`,type:((r=H._imageCache)==null?void 0:r.type)??(H==null||(i=H.type)==null?void 0:i.toLowerCase()),extension:a}),w(!0);let o=new AbortController;return pe(()=>{var e;if(S(H),(e=H._imageCache)!=null&&e.type||H!=null&&H.type){var t,n,r,i;y({width:((t=H._imageCache)==null?void 0:t.width)??z,height:((n=H._imageCache)==null?void 0:n.height)??`default`,type:((r=H._imageCache)==null?void 0:r.type)??(H==null||(i=H.type)==null?void 0:i.toLowerCase()),extension:a})}w(!1)},500,o.signal).catch(()=>{}),()=>{o.abort()}},[H,l]),(0,Y.jsxs)(`div`,{className:`bb-channel-overview-page bg-neutral`,ref:te,style:A?{\"--watched-progress-color\":A}:void 0,children:[x&&v&&(0,Y.jsx)(`img`,{src:U({contentType:v.type,imageId:x.id,width:v.width,height:v.height,extension:v.extension,set:`hero`,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate}),alt:``,className:`bb-channel-overview-page-background`}),(H==null?void 0:H.id)&&g&&(0,Y.jsx)(`img`,{src:U({contentType:g.type,imageId:H.id,width:g.width,height:g.height,extension:g.extension,set:`hero`,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate}),alt:``,className:`bb-channel-overview-page-background ${C?`fade-in`:``}`}),(0,Y.jsx)(`div`,{className:`overview-page-content-section`,children:(0,Y.jsxs)(`div`,{className:`bb-channel-overview-page-data`,children:[(0,Y.jsx)(yi,{text:`close`,onClose:()=>{h(!1),S(null),i()}}),(0,Y.jsxs)(`div`,{className:`bb-channel-overview-page-text`,children:[(0,Y.jsx)(`div`,{className:`bb-channel-overview-page-title`,children:(0,Y.jsx)(Cr,{block:{id:c.activeBlockId||`overviewPagePlaylist`,type:`Carousel`,config:{header:(j==null?void 0:j.shortTitle)||(j==null?void 0:j.title)||`Main Playlist`,contentId:(j==null?void 0:j.id)||``}},playlistCollection:j,subPlaylist:N?void 0:T,showCollectionSelect:!0,onCollectionTitleClick:N?void 0:t=>{if(t){var n,r;a(`overviewPage`,{currentEntity:((n=t.items)==null?void 0:n[0])||t,contentId:t.id,contentType:`cliplist`,currentContext:{contentType:`cliplist`,contentId:t.id,aspectRatio:(e==null?void 0:e.aspectRatio)||`16:9`,aspectRatioSubPlaylist:s==null?void 0:s.aspectRatioSubPlaylist,listtype:`static`,previewTitleDisplay:(e==null?void 0:e.previewTitleDisplay)||`none`,previewTimestampDisplay:(e==null?void 0:e.previewTimestampDisplay)||`none`},blockConfig:s,activeBlockId:c.activeBlockId,collectionContext:null,replaceHistory:!0,previousState:((r=c.previousState)==null?void 0:r.previousState)??null})}},onSubPlaylistChange:t=>{let n=((j==null?void 0:j.items)||[]).find(e=>e.id===t);if(n&&j){var r;a(`overviewPage`,{currentEntity:(n==null||(r=n.items)==null?void 0:r[0])||n,contentId:n.id,contentType:`cliplist`,currentContext:{contentType:`cliplist`,contentId:n.id,aspectRatio:(e==null?void 0:e.aspectRatio)||`16:9`,aspectRatioSubPlaylist:s==null?void 0:s.aspectRatioSubPlaylist,listtype:`collection`,previewTitleDisplay:(e==null?void 0:e.previewTitleDisplay)||`none`,previewTimestampDisplay:(e==null?void 0:e.previewTimestampDisplay)||`none`},blockConfig:s,activeBlockId:c.activeBlockId,collectionContext:j,replaceHistory:!0,previousState:c.previousState??null})}},className:`overview-page-collection-header`})}),(0,Y.jsx)(Gr,{scrollable:!0,description:(T==null?void 0:T.description)||(T==null?void 0:T.label)||(M==null?void 0:M.description)||(M==null?void 0:M.label),theme:`overviewPage`}),O&&(0,Y.jsx)(wi,{className:`overview-resume`,entity:O.entity,buttonClassName:`featured-button bb-button`,onResume:B})]}),(0,Y.jsx)(`div`,{className:`bb-channel-overview-page-related-items`,children:(0,Y.jsx)(xi,{entity:T||M,currentContext:e,showRelatedItems:!0,showMetadata:(t==null?void 0:t.showMetadata)??!0,relatedListType:t.relatedListType,carouselReady:m,dataCy:`overview-content-id-${(T==null?void 0:T.id)||(M==null?void 0:M.id)}`,relatedContent:(t==null?void 0:t.relatedListType)===`verticalList`?(0,Y.jsx)(Si,{hideHeader:!0,block:{id:c.activeBlockId||`overviewPagePlaylist`,type:`VerticalList`,config:{header:(s==null?void 0:s.header)||(T==null?void 0:T.shortTitle)||(T==null?void 0:T.title),contentId:e==null?void 0:e.contentId,playlistType:s==null?void 0:s.playlistType,hideMetadataCollectionPlaylist:s==null?void 0:s.hideMetadataCollectionPlaylist,previewTitleDisplay:(s==null?void 0:s.previewTitleDisplay)||`none`,previewTimestampDisplay:(s==null?void 0:s.previewTimestampDisplay)||`none`,playIn:N?`overviewPage`:`detailPage`,aspectRatio:!N&&s!=null&&s.aspectRatioSubPlaylist?s.aspectRatioSubPlaylist:(s==null?void 0:s.aspectRatio)||`16:9`,aspectRatioSubPlaylist:s==null?void 0:s.aspectRatioSubPlaylist,listIndex:e==null?void 0:e.listIndex,thumbnailSize:F,thumbnailSizeMobile:I}},playerPlaylistType:`VerticalList`}):m&&(0,Y.jsx)(Rr,{hideHeader:!0,block:{id:c.activeBlockId||`overviewPagePlaylist`,type:`Carousel`,config:{header:(s==null?void 0:s.header)||(T==null?void 0:T.shortTitle)||(T==null?void 0:T.title),contentId:e==null?void 0:e.contentId,playlistType:s==null?void 0:s.playlistType,hideMetadataCollectionPlaylist:s==null?void 0:s.hideMetadataCollectionPlaylist,previewTitleDisplay:(s==null?void 0:s.previewTitleDisplay)||`none`,previewTimestampDisplay:(s==null?void 0:s.previewTimestampDisplay)||`none`,playIn:N?`overviewPage`:`detailPage`,aspectRatio:!N&&s!=null&&s.aspectRatioSubPlaylist?s.aspectRatioSubPlaylist:(s==null?void 0:s.aspectRatio)||`16:9`,aspectRatioSubPlaylist:s==null?void 0:s.aspectRatioSubPlaylist,listIndex:e==null?void 0:e.listIndex,previewCustomField:s==null?void 0:s.previewCustomField,previewCustomFieldDisplay:s==null?void 0:s.previewCustomFieldDisplay,thumbnailSize:F,thumbnailSizeMobile:I}}})})})]})})]})};J(),_t();var Ei=()=>{var e,t;let{navigationState:n,app_hideDetailPage:r,activeBlockConfig:i,lang:a}=(0,b.useContext)(q),{loadPlaylistData:o}=wr(),s=(0,b.useMemo)(()=>({id:n.activeBlockId||`gridPage`,type:`Cliplist`,config:i||{}}),[n.activeBlockId,i]),c=vr(s),{backgroundColor:l,iconColor:u,playoutColor:d}=jr({block:s}),[f,p]=(0,b.useState)(()=>{var e;return((e=n.currentEntity)==null?void 0:e.items)||[]}),[m,h]=(0,b.useState)(!(!((e=n.currentEntity)==null||(e=e.items)==null)&&e.length)),[g,_]=(0,b.useState)(!1),v=(i==null?void 0:i.header)||(i==null?void 0:i.playlistTitle)||``,y=(t=n.currentContext)==null?void 0:t.contentId;return(0,b.useEffect)(()=>{var e;let t=((e=n.currentEntity)==null?void 0:e.items)||[];if(p(t),_(!1),t.length>0){h(!1);return}if(!y){h(!1);return}h(!0),o(y).then(e=>{e?p(e.items||[]):_(!0)}).catch(()=>_(!0)).finally(()=>h(!1))},[y,o]),(0,b.useEffect)(()=>{let e=e=>{e.key===`Escape`&&r()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),(0,Y.jsxs)(`div`,{className:`bb-channel-grid-page ${c.classes}`,style:{\"--item-gap\":c.itemGap+`px`},children:[(0,Y.jsxs)(`div`,{className:`grid-page-header`,children:[(0,Y.jsx)(`div`,{className:`header-action`,children:(0,Y.jsx)(yi,{text:`close`,onClose:()=>r()})}),v&&(0,Y.jsx)(`h3`,{className:`grid-page-title`,children:v})]}),(0,Y.jsxs)(`div`,{className:`grid-page-content`,children:[m&&(0,Y.jsx)(`div`,{className:`grid-page-loading`,\"aria-live\":`polite`,children:K(`LOADING`,a)}),g&&!m&&(0,Y.jsx)(`div`,{className:`grid-page-error`,\"aria-live\":`assertive`,children:`\u2013`}),!m&&!g&&f.map((e,t)=>(0,Y.jsx)(Sr,{listIndex:t,block:s,entity:e,lazyLoadImage:!0,playButtonColor:l,playIconColor:u,playoutColor:d},`${e.id}_${t}`))]})]})};W(),J();var Di=({logoId:e,pageTitle:t,searchBar:n})=>{let{baseurl:r,appConfig:i}=(0,b.useContext)(q),[a,o]=(0,b.useState)(``);return(0,b.useEffect)(()=>{o(U({contentType:`mediaclip`,imageId:e,width:0,height:60,baseurl:r,imgCacheDate:i==null?void 0:i.imgCacheDate}))},[e,i==null?void 0:i.imgCacheDate,r]),!e&&!t?null:(0,Y.jsxs)(`div`,{className:`bb-channel-block bb-channel-logo ${n?`search-bar`:``}`,\"data-cy\":`logo-wrapper`,children:[e&&a&&(0,Y.jsx)(`img`,{alt:``,src:a}),t&&(0,Y.jsx)(`h2`,{children:t})]})},Oi=(0,b.forwardRef)((e,t)=>(0,Y.jsxs)(`svg`,{viewBox:`100 100 200 200`,ref:t,...e,children:[(0,Y.jsx)(`defs`,{children:(0,Y.jsxs)(`radialGradient`,{id:`grad2`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,children:[(0,Y.jsx)(`stop`,{offset:`20%`,style:{stopColor:`rgb(0,0,0)`},stopOpacity:.5}),(0,Y.jsx)(`stop`,{offset:`100%`,style:{stopColor:`rgb(0,0,0)`},stopOpacity:0})]})}),(0,Y.jsx)(`ellipse`,{cx:200,cy:200,rx:100,ry:100,fill:`url(#grad2)`})]})),ki=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 640 512`,ref:t,...e,children:(0,Y.jsx)(`path`,{transform:`translate(96, 0)`,d:`M224 0a31.97 31.97 0 0 0-32 32v17.9C119.5 61.4 64 124.2 64 200v33.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416h400c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6c-28.3-35.5-43.8-79.6-43.8-125V200c0-75.8-55.5-138.6-128-150.1V32a31.97 31.97 0 0 0-32-32zM288 448H160c0 17 6.7 33.3 18.7 45.3S207 512 224 512s33.3-6.7 45.3-18.7S288 465 288 448z`})})),Ai=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 640 512`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M320 0a31.97 31.97 0 0 0-32 32v19.2C215 66 160 130.6 160 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S115.4 416 128 416h384c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3c-31.2-35.2-48.5-80.5-48.5-127.6V208c0-77.4-55-142-128-156.8V32a31.97 31.97 0 0 0-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3h-64-64c0 17 6.7 33.3 18.7 45.3S303 512 320 512s33.3-6.7 45.3-18.7zM0 200c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24H24c-13.3 0-24 10.7-24 24zm536-24c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-80zm61.5-154.7c-5.9-11.9-20.3-16.7-32.2-10.7l-64 32c-11.9 5.9-16.7 20.3-10.7 32.2s20.3 16.7 32.2 10.7l64-32c11.9-5.9 16.7-20.3 10.7-32.2zM53.3 53.5l64 32c11.9 5.9 26.3 1.1 32.2-10.7s1.1-26.3-10.7-32.2l-64-32c-11.9-6-26.3-1.2-32.3 10.7s-1.1 26.3 10.7 32.2z`})}));_t(),J(),W();var ji=typeof window<`u`&&`Notification`in window,Mi=({block:e,maxWidth:t,disabled:n})=>{var r,i;let{app_playEntity:a,app_getQueryData:o,app_getEntityData:s,channelId:c,lang:l,baseurl:u,appConfig:d}=(0,b.useContext)(q),{playoutColor:f}=jr({block:e}),[p,m]=(0,b.useState)({}),[h,g]=(0,b.useState)(null),[_,v]=(0,b.useState)({}),[y,x]=(0,b.useState)({}),S=(0,b.useRef)(new Set),[C,T]=(0,b.useState)(()=>{try{return JSON.parse(localStorage.getItem(`bb-channel-reminders-${c}`)||`{}`)}catch{return{}}}),ee=(0,b.useRef)(C),E=(0,b.useRef)(new Set);(0,b.useEffect)(()=>{ee.current=C;try{localStorage.setItem(`bb-channel-reminders-${c}`,JSON.stringify(C))}catch{}},[C,c]);let[D,O]=(0,b.useState)(0),[k,A]=(0,b.useState)(0);(0,b.useEffect)(()=>{O(t),A(e.config.imageFitMode===`fill`&&t===480?Math.ceil(window.innerHeight*.7):0)},[t,d==null?void 0:d.imgCacheDate]),(0,b.useEffect)(()=>{if(!h)return;let t={};for(let n of e.slides){let e=h[n.contentType+n.contentId];e!=null&&e.softEmbargo&&(t[n.contentId]={date:e.softEmbargo,contentType:n.contentType})}x(t)},[h,e.slides]);let[j,M]=(0,b.useState)(ji&&Notification.permission===`denied`),N=(0,b.useCallback)(e=>{let t=t=>({...t,[e]:!t[e]});if(Notification.permission===`denied`){M(!0);return}Notification.permission===`granted`?T(t):Notification.requestPermission().then(e=>{e===`granted`?T(t):e===`denied`&&M(!0)})},[]);(0,b.useEffect)(()=>{if(!(!h||!ji||Notification.permission!==`granted`))for(let[t,n]of Object.entries(_)){if(n!==null||!ee.current[t]||E.current.has(t))continue;let{contentType:r}=y[t]??{};if(!r)continue;E.current.add(t);let i=h[r+t];if(i){let n=U({contentType:r,imageId:t,width:120,height:120,baseurl:u}),a=new Notification(i.title,{body:ue(i.description),icon:n}),o=e.slides.find(e=>e.contentId===t);a.onclick=()=>{window.focus(),o&&F(o)}}T(e=>({...e,[t]:!1}))}},[_,h,y,u,e.slides]),(0,b.useEffect)(()=>{if(!Object.keys(y).length){v({});return}let e=()=>{let e=Date.now();v(Object.fromEntries(Object.entries(y).map(([t,{date:n,contentType:r}])=>{let i=new Date(n).getTime()-e;return i<=0?(S.current.has(t)||(S.current.add(t),ur(t,r,u,e=>{e?x(n=>({...n,[t]:{date:e,contentType:r}})):(x(e=>{let n={...e};return delete n[t],n}),v(e=>{let n={...e};return delete n[t],n}))}).finally(()=>{S.current.delete(t)})),[t,null]):[t,lr(i)]})))};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[y,u]),(0,b.useEffect)(()=>{var t;n||(t=e.slides)!=null&&t.length&&o(e.slides.map(e=>`(type:\"${xe[e.contentType]}\" AND id:\"${e.contentId}\")`).join(` OR `)).then(e=>{g(e)})},[e.slides]),(0,b.useEffect)(()=>{if(!(d!=null&&d.previewAddWatchedHistory)||!h){m({});return}let t=!1,n=null,r=0,i=async()=>{let n=++r,i=await Promise.all(e.slides.map(async e=>{let t=h[e.contentType+e.contentId];if(!t)return[e.contentId,null];if(e.contentType===`mediaclip`)return[e.contentId,[t]];if(e.contentType===`cliplist`){let t=await s(e.contentId,`cliplist`).catch(t=>(console.warn(`[featured-header resume] failed to fetch cliplist`,e.contentId,t),null));return[e.contentId,t==null?void 0:t.items]}return[e.contentId,null]}));if(t||n!==r)return;let a={};for(let[e,t]of i){let n=L(t);n&&(a[e]=n)}m(a)};i();let a=V(()=>{n&&clearTimeout(n),n=setTimeout(i,Tr)});return()=>{t=!0,a(),n&&clearTimeout(n)}},[h,d==null?void 0:d.previewAddWatchedHistory,e.slides,s]);let P=(t,n)=>{let r=ce(u);r&&w.log({ev:`xcl`,et:`ChannelItem`,id:`${t.id}`,pp:r,cet:`mediaclip`,cid:n.id,gbt:`FeaturedHeader`,\"pet#0\":`ChannelBlock`,\"pid#0\":e.id,\"pet#1\":`Channel`,\"pid#1\":c}),a({entity:n,playerBlockId:e.config.playIn,contentId:n.id,blockType:e.type,contextItem:t.contentType===`cliplist`?{contentType:`cliplist`,contentId:t.contentId}:null,fromBlock:e.config,fromBlockId:e.id})},F=t=>{if(!h)return;let n=ce(u);n&&w.log({ev:`xcl`,et:`ChannelItem`,id:`${t.id}`,pp:n,cet:t.contentType.toLowerCase(),cid:t.contentId,gbt:`FeaturedHeader`,\"pet#0\":`ChannelBlock`,\"pid#0\":e.id,\"pet#1\":`Channel`,\"pid#1\":c}),a({entity:h[t.contentType+t.contentId],playerBlockId:e.config.playIn,contentId:t.contentId,blockType:e.type,contextItem:t.contentType===`cliplist`?{contentType:`cliplist`,contentId:t.contentId}:null,clickedImgCache:{width:D.toString(),height:k?k.toString():void 0,type:t.featuredImageId?`mediaclip`:t.contentType,extension:``},fromBlock:e.config,fromBlockId:e.id})},I=h?e.slides.filter(e=>!!h[e.contentType+e.contentId]):e.slides,te=I.length>1&&!n;return(0,Y.jsxs)(`div`,{className:`bb-channel-featured-header-wrapper bb-channel-block bb-image-mode-${(e==null||(r=e.config)==null?void 0:r.imageFitMode)||`fit`} bb-header-mode-${(e==null||(i=e.config)==null?void 0:i.headerVariant)||`fullWidth`}`,\"data-blockid\":e.id,\"data-blocktype\":`FeaturedHeader`,style:f?{\"--watched-progress-color\":f}:void 0,children:[(0,Y.jsx)(Ct,{autoplayDelay:n?0:6e3,showDots:te,showArrows:te,disabled:n,speed:500,className:`bb-header-slider`,children:I.map(t=>{let n=_[t.contentId],r=!!C[t.contentId];return(0,Y.jsxs)(`div`,{className:`featured-slide`,children:[e.slides.length>1&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`arrowPrevBackground`,children:(0,Y.jsx)(Oi,{})}),(0,Y.jsx)(`div`,{className:`arrowNextBackground`,children:(0,Y.jsx)(Oi,{})})]}),(0,Y.jsx)(`div`,{className:`image-container-featured `+(e.config.logoImageId===null?``:`with-top-gradient`),children:D&&(t.featuredImageId||t.contentType&&t.contentId)&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`img`,{className:`featured-img`,loading:`lazy`,alt:``,src:U({contentType:t.featuredImageId?`mediaclip`:t.contentType,imageId:t.featuredImageId||t.contentId,width:D,height:k,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate})}),(0,Y.jsx)(`img`,{className:`featured-img-mobile`,loading:`lazy`,alt:``,src:U({contentType:t.featuredImageIdMobile||t.featuredImageId?`mediaclip`:t.contentType,imageId:t.featuredImageIdMobile||t.featuredImageId||t.contentId,width:D,height:k,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate})})]})}),(0,Y.jsxs)(`div`,{className:`slide-content`,children:[(0,Y.jsx)(`div`,{className:`slide-logo-wrapper`,children:t.logoImageId&&(0,Y.jsx)(`img`,{className:`slide-logo-img`,alt:``,src:U({contentType:`mediaclip`,imageId:t.logoImageId,width:0,height:110,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate})})}),n&&(0,Y.jsxs)(`div`,{className:`featured-embargo-countdown${te?` positioned`:` no-pagination`}`,children:[(0,Y.jsx)(`span`,{className:`featured-embargo-label text-sm`,children:K(`LIVE_IN`,l)}),h&&t.contentId&&ji&&(0,Y.jsx)(`button`,{type:`button`,className:`featured-button bb-button featured-reminder-btn featured-reminder-btn-inline${r?` active`:``}${j?` denied`:``}`,disabled:j,onClick:()=>N(t.contentId),\"aria-label\":K(j?`NOTIFICATIONS_BLOCKED`:r?`REMINDER_SET`:`SET_REMINDER`,l),children:r?(0,Y.jsx)(Ai,{className:`bell-icon`}):(0,Y.jsx)(ki,{className:`bell-icon`})}),(0,Y.jsxs)(`div`,{className:`featured-embargo-units`,children:[n.d>0&&(0,Y.jsxs)(`div`,{className:`featured-embargo-unit`,children:[(0,Y.jsx)(`span`,{className:`featured-embargo-value`,children:String(n.d).padStart(2,`0`)}),(0,Y.jsx)(`span`,{className:`text-xs`,children:K(ht(`DAY`,`DAYS`,n.d),l)})]}),(0,Y.jsxs)(`div`,{className:`featured-embargo-unit`,children:[(0,Y.jsx)(`span`,{className:`featured-embargo-value`,children:String(n.h).padStart(2,`0`)}),(0,Y.jsx)(`span`,{className:`text-xs`,children:K(ht(`HOUR`,`HOURS`,n.h),l)})]}),(0,Y.jsxs)(`div`,{className:`featured-embargo-unit`,children:[(0,Y.jsx)(`span`,{className:`featured-embargo-value`,children:String(n.m).padStart(2,`0`)}),(0,Y.jsx)(`span`,{className:`text-xs`,children:K(ht(`MINUTE`,`MINUTES`,n.m),l)})]}),n.d===0&&(0,Y.jsxs)(`div`,{className:`featured-embargo-unit`,children:[(0,Y.jsx)(`span`,{className:`featured-embargo-value`,children:String(n.s).padStart(2,`0`)}),(0,Y.jsx)(`span`,{className:`text-xs`,children:K(ht(`SECOND`,`SECONDS`,n.s),l)})]})]})]}),t.header&&(0,Y.jsx)(`h2`,{className:`featured-title`,title:t.header,children:t.header}),t.description&&(0,Y.jsx)(`span`,{className:`featured-description text-md`,title:t.description,children:t.description}),h&&t.contentId&&(n&&ji?(0,Y.jsxs)(`button`,{type:`button`,className:`featured-button bb-button featured-reminder-btn${r?` active`:``}${j?` denied`:``}`,disabled:j,onClick:()=>N(t.contentId),\"aria-label\":K(j?`NOTIFICATIONS_BLOCKED`:r?`REMINDER_SET`:`SET_REMINDER`,l),children:[r?(0,Y.jsx)(Ai,{className:`bell-icon`}):(0,Y.jsx)(ki,{className:`bell-icon`}),(0,Y.jsx)(`span`,{className:`reminder-text`,children:K(j?`NOTIFICATIONS_BLOCKED`:r?`REMINDER_SET`:`SET_REMINDER`,l)})]}):n?null:p[t.contentId]?(0,Y.jsx)(wi,{entity:p[t.contentId].entity,buttonClassName:`featured-button bb-button`,hideTitle:!0,onResume:()=>P(t,p[t.contentId].entity)}):(0,Y.jsxs)(`button`,{type:`button`,className:`featured-button bb-button`,onClick:()=>F(t),children:[(0,Y.jsx)(xt,{className:`play-icon`}),K(`WATCH_VIDEO`,l)]}))]})]},t.id)})}),(0,Y.jsx)(`div`,{className:`header-logo-wrapper`,children:e.config.logoImageId&&(0,Y.jsx)(`img`,{className:`featured-logo-img`,alt:``,src:U({contentType:`mediaclip`,imageId:e.config.logoImageId,width:0,height:40,baseurl:u,imgCacheDate:d==null?void 0:d.imgCacheDate})})})]})},Ni=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{width:20,height:20,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M19.6967 18.3984L14.4609 13.1641C15.594 11.7773 16.2192 10.0312 16.2192 8.125C16.2192 3.63672 12.5803 0 8.09202 0C3.60371 0 0 3.63789 0 8.125C0 12.6121 3.63848 16.25 8.09202 16.25C9.99839 16.25 11.7473 15.5895 13.1324 14.4906L18.3682 19.725C18.587 19.9102 18.8293 20 19.0676 20C19.306 20 19.5474 19.9084 19.7307 19.7254C20.0952 19.3594 20.0952 18.7656 19.6967 18.3984ZM1.87551 8.125C1.87551 4.67891 4.68017 1.875 8.12719 1.875C11.5742 1.875 14.3789 4.67891 14.3789 8.125C14.3789 11.5711 11.5742 14.375 8.12719 14.375C4.68017 14.375 1.87551 11.5703 1.87551 8.125Z`,fill:`white`})})),Pi=(0,b.forwardRef)((e,t)=>(0,Y.jsx)(`svg`,{height:`12px`,viewBox:`0 0 512 512`,width:`12px`,ref:t,...e,children:(0,Y.jsx)(`path`,{d:`M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z`})}));J(),_t();var Fi=({detailPageWithinBorder:e,enableBackgroundBlur:t})=>{let{lang:n,navigationState:r,app_setSearchQuery:i,app_hideDetailPage:a}=(0,b.useContext)(q),o=r.pageType===`detailPage`,s=r.pageType===`overviewPage`,c=r.pageType===`searchPage`,l=r.searchQuery||``,u=r.clickedSearchResult||!1,d=e=>{i(e)};return(0,Y.jsxs)(`div`,{className:[`search-container`,s&&`overview-page-active`,o&&`detail-page-active`,c&&`search-page-active search-mode bg-neutral`,t&&`background-blur`,c&&!u&&`search-mode-within`,(!o||e||c&&!u)&&`within-channel-border`].filter(Boolean).join(` `),children:[(0,Y.jsx)(`div`,{className:`search-bg`}),(0,Y.jsx)(`div`,{className:`search-bar`,children:c&&(0,Y.jsx)(`input`,{autoFocus:!0,value:l,onChange:e=>d(e.target.value),placeholder:K(`SEARCH`,n)})}),(!o||c)&&(0,Y.jsxs)(`button`,{type:`button`,className:`icon`,onClick:c?()=>a():()=>{i(``)},children:[(0,Y.jsx)(Ni,{className:`search-icon`}),(0,Y.jsx)(Pi,{className:`cross-icon`})]})]})};J();var Ii=({config:e})=>{let{app_navigateToChannel:t,navigationState:n}=(0,b.useContext)(q),[r,i]=(0,b.useState)(0),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(!1),[l,u]=(0,b.useState)(!1),[d,f]=(0,b.useState)(e.items.length),p=(0,b.useRef)(null),m=(0,b.useRef)([]);(0,b.useEffect)(()=>{if(n.activeSubChannelId){let t=e.items.findIndex(e=>e.type===`channel`&&e.channelId===n.activeSubChannelId);t!==-1&&i(t)}else i(0)},[n.activeSubChannelId,e.items]),(0,b.useEffect)(()=>(s?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[s]),(0,b.useEffect)(()=>{let t=()=>{if(!p.current)return;let t=p.current,n=window.getComputedStyle(t),r=parseFloat(n.paddingLeft)||0,i=parseFloat(n.paddingRight)||0,a=t.clientWidth-r-i,o=0,s=0;for(let t=0;t0?10:0),l=c+10+50;if(i&&l>a)break;if(c<=a)s++,o=c;else break}f(Math.max(1,s))};t();let n=new ResizeObserver(t);return p.current&&n.observe(p.current),()=>{n.disconnect()}},[e.items.length]);let h=async(e,n)=>{if(e.type===`channel`&&i(n),c(!1),u(!1),e.type===`url`)e.url&&window.open(e.url,e.urlTarget||`_blank`);else if(e.type===`channel`&&e.channelId&&t)try{await t(e.channelId)}catch(e){console.error(`Failed to navigate to channel:`,e)}},g=()=>{c(e=>!e)},_=()=>{u(e=>!e)},v=e.items.slice(0,d),y=e.items.slice(d),x=y.length>0,S=e.navBarBackgroundColor?`#${e.navBarBackgroundColor}`:`transparent`,C=Ve(S),w={justifyContent:e.navBarAlignment||`center`,backgroundColor:S,fontFamily:e.navBarFontFamily?`\"${e.navBarFontFamily}\", sans-serif`:void 0},T=t=>{let n=t===r,i=t===a,o=e.navItemTextColor?`#${e.navItemTextColor}`:void 0,s=e.navItemBackgroundColor?`#${e.navItemBackgroundColor}`:void 0;return n&&(o=e.navItemTextColorActive?`#${e.navItemTextColorActive}`:o,s=e.navItemBackgroundColorActive?`#${e.navItemBackgroundColorActive}`:s),i&&(o=e.navItemTextColorHover?`#${e.navItemTextColorHover}`:o,s=e.navItemBackgroundColorHover?`#${e.navItemBackgroundColorHover}`:s),{borderRadius:e.navItemBorderRadius?`${e.navItemBorderRadius}px`:void 0,color:o,backgroundColor:s}};return(0,Y.jsxs)(`div`,{className:`bb-channel-block bb-channel-navigation-bar`,children:[(0,Y.jsx)(`button`,{className:`hamburger-button mobile-menu-button`,onClick:g,\"aria-label\":`Toggle navigation menu`,style:{backgroundColor:S===`transparent`?`rgba(255,255,255,0.3)`:S,color:C},children:(0,Y.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,children:(0,Y.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M4 6h16M4 12h16M4 18h16`})})}),(0,Y.jsxs)(`nav`,{className:`nav-container`,style:w,ref:p,children:[v.map((t,n)=>(0,Y.jsx)(`button`,{className:`nav-item ${n===r?`active`:``}`,style:T(n),onClick:()=>h(t,n),onMouseEnter:()=>o(n),onMouseLeave:()=>o(null),\"data-underline-hover\":e.navItemUnderlineHover?`true`:`false`,\"data-underline-active\":e.navItemUnderlineActive?`true`:`false`,children:t.label},t.id)),(0,Y.jsx)(`div`,{className:`nav-items-measurement`,children:e.items.map((e,t)=>(0,Y.jsx)(`button`,{ref:e=>{m.current[t]=e},className:`nav-item nav-item-measure`,style:T(t),tabIndex:-1,\"aria-hidden\":`true`,children:e.label},`measure-${e.id}`))}),x&&(0,Y.jsxs)(`div`,{className:`overflow-menu-wrapper`,children:[(0,Y.jsx)(`button`,{className:`overflow-menu-button nav-item mobile-menu-button`,onClick:_,style:{color:e.navItemTextColor?`#${e.navItemTextColor}`:void 0,backgroundColor:e.navItemBackgroundColor?`#${e.navItemBackgroundColor}`:void 0,borderRadius:e.navItemBorderRadius?`${e.navItemBorderRadius}px`:void 0},\"aria-label\":`More items`,\"aria-expanded\":l,children:(0,Y.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,children:(0,Y.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M4 6l4 4 4-4`})})}),l&&(0,Y.jsx)(`div`,{className:`overflow-dropdown`,style:{backgroundColor:S,borderRadius:e.navItemBorderRadius?`${e.navItemBorderRadius}px`:void 0},children:y.map((t,n)=>{let i=d+n;return(0,Y.jsx)(`button`,{className:`overflow-dropdown-item ${i===r?`active`:``}`,style:{...T(i),borderRadius:e.navItemBorderRadius?`${e.navItemBorderRadius}px`:void 0},onClick:()=>h(t,i),onMouseEnter:()=>o(i),onMouseLeave:()=>o(null),\"data-underline-hover\":e.navItemUnderlineHover?`true`:`false`,\"data-underline-active\":e.navItemUnderlineActive?`true`:`false`,children:t.label},t.id)})})]})]}),s&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`mobile-menu-overlay`,onClick:g}),(0,Y.jsxs)(`div`,{className:`mobile-menu`,style:{backgroundColor:S,fontFamily:e.navBarFontFamily?`\"${e.navBarFontFamily}\", sans-serif`:void 0},children:[(0,Y.jsx)(`button`,{className:`mobile-menu-close mobile-menu-button`,onClick:g,\"aria-label\":`Close menu`,style:T(r),children:(0,Y.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,children:(0,Y.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M6 18L18 6M6 6l12 12`})})}),(0,Y.jsx)(`div`,{className:`mobile-menu-items`,children:e.items.map((t,n)=>(0,Y.jsx)(`button`,{className:`mobile-nav-item ${n===r?`active`:``}`,style:{...T(n),borderRadius:e.navItemBorderRadius?`${e.navItemBorderRadius}px`:void 0},onClick:()=>h(t,n),onMouseEnter:()=>o(n),onMouseLeave:()=>o(null),\"data-underline-hover\":e.navItemUnderlineHover?`true`:`false`,\"data-underline-active\":e.navItemUnderlineActive?`true`:`false`,children:t.label},t.id))})]})]})]})};J();var Li=(0,b.forwardRef)(({isContained:e,enableBackgroundBlur:t,onClose:n,children:r},i)=>{let{navigationState:a}=(0,b.useContext)(q),o=(0,b.useRef)(null);(0,b.useImperativeHandle)(i,()=>o.current,[]);let s=[`detailPage`,`overviewPage`,`searchPage`].includes(a.pageType),c=e?`div`:`dialog`,l=(0,b.useRef)(!1);(0,b.useEffect)(()=>{if(e)return;let t=o.current;if(!t||t.tagName!==`DIALOG`)return;let n=t;if(s&&!n.open)try{n.showModal()}catch{}else !s&&n.open&&(l.current=!0,n.close())},[s,e]);let u=[`overlay-wrapper`,`bb-channel-block-wrapper`,s?`show`:``,t?`background-blur`:``,e?`within-channel-border`:``].filter(Boolean).join(` `);return(0,Y.jsx)(c,{ref:o,\"data-cy\":`overlay-wrapper`,className:u,...!e&&{onClose:()=>{if(l.current){l.current=!1;return}n()}},children:r})});Li.displayName=`OverlayWrapper`,W();var Ri={Geo:`LOCATION`,Domain:`DOMAIN`,IpAddress:`IPADDRESS`,Subscription:`SUBSCRIPTION`,SharedSecret:`PERMISSION`,BadRequest:`PERMISSION`},zi=({type:e,baseurl:t})=>{let n=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=t==null?void 0:t.split(`.`)[1],n=`cdn`;[`dev`,`acc`,`test`].includes(e)&&(n+=`-${e}`),le(`https://${n}.bluebillywig.com/apps/bb-components/latest/lib/bb-display-message.wc.js`,{type:`module`,async:!0}).catch(e=>{console.warn(`Failed to load bb-display-message script:`,e)})},[t]),(0,b.useEffect)(()=>{n.current&&(n.current.type=Ri[e])},[e]),(0,Y.jsx)(`bb-display-message`,{ref:n})},Bi=null,Vi=!0,Hi=`__bbNativeHistoryStack`;function Ui(){return window[Hi]||null}function Wi(){let e=Ui();if(!(e!=null&&e.isNativeMode)||e.stack.length===0)return null;let t=e.stack.pop();return window.history.replaceState(null,``,t),window.dispatchEvent(new HashChangeEvent(`hashchange`)),window.dispatchEvent(new CustomEvent(`bbHashChange`)),t}function Gi(e){Vi=e}function Ki(){let e=window.location.hash.slice(1);if(!e)return{basePath:``,params:{}};let t=e.indexOf(`?`),n=``,r=``;t===-1?e.includes(`=`)?r=e:n=e:(n=e.substring(0,t),r=e.substring(t+1));let i={};if(r){let e=r.split(`&`);for(let t of e){let[e,n]=t.split(`=`);e&&n&&(i[e]=decodeURIComponent(n))}}return{basePath:n,params:i}}function qi(){if(Vi)return Bi;let{params:e}=Ki(),t=e.bbch;if(!t)return null;try{let e;if(!RegExp(`^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$`).test(t))return console.warn(`Invalid base64 in bbch parameter:`,t),null;e=decodeURIComponent(atob(t));let n=JSON.parse(e);n.pageType&&![`main`,`detailPage`,`overviewPage`,`searchPage`,`gridPage`].includes(n.pageType)&&(n.pageType=`main`);let r=/^[\\w-]{0,128}$/;return n.contentId&&!r.test(n.contentId)&&(n.contentId=void 0),n.contextId&&!r.test(n.contextId)&&(n.contextId=void 0),n.blockId&&!r.test(n.blockId)&&(n.blockId=void 0),n}catch(e){return console.warn(`Failed to parse navigation state from hash:`,e),null}}function Ji(e,t=!1){var n,r;let i={pageType:e.pageType};if(e.contentId&&(i.contentId=e.contentId),e.contentType&&(i.contentType=e.contentType),e.searchQuery&&(i.searchQuery=e.searchQuery),e.clickedSearchResult&&(i.clickedSearchResult=e.clickedSearchResult),e.activeBlockId&&(i.blockId=e.activeBlockId),(n=e.currentContext)!=null&&n.contentId&&(i.contextId=e.currentContext.contentId),e.detailPagePlayout&&(i.playout=e.detailPagePlayout),(r=e.collectionContext)!=null&&r.id&&(i.collectionId=e.collectionContext.id),e.activeSubChannelId&&(i.subChannelId=e.activeSubChannelId),Vi){Bi=i.pageType===`main`&&!i.contentId&&!i.searchQuery&&!i.subChannelId?null:i;return}if(i.pageType===`main`&&!i.contentId&&!i.searchQuery&&!i.subChannelId){let{basePath:e,params:n}=Ki();delete n.bbch;let r=Object.entries(n).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(`&`),i;i=e?r?`#${e}?${r}`:`#${e}`:r?`#${r}`:window.location.pathname+window.location.search,new URL(i,window.location.href).href!==window.location.href&&(t?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));return}let a=JSON.stringify(i),o=btoa(encodeURIComponent(a)),{basePath:s,params:c}=Ki();c.bbch=o;let l=Object.entries(c).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(`&`),u;if(u=s?`${window.location.pathname}${window.location.search}#${s}?${l}`:`${window.location.pathname}${window.location.search}#${l}`,new URL(u,window.location.href).href===window.location.href)return;let d=Ui();if(d!=null&&d.isNativeMode){let e=window.location.hash;if(t)d.stack.length>0?d.stack[d.stack.length-1]=u:d.stack.push(u);else if(e){let e=window.location.href;(d.stack.length===0||d.stack[d.stack.length-1]!==e)&&d.stack.push(e)}window.history.replaceState(null,``,u)}else t?window.history.replaceState(null,``,u):window.history.pushState(null,``,u);d!=null&&d.isNativeMode&&window.dispatchEvent(new CustomEvent(`bbHashChange`))}function Yi(e,t,n=!1){let r=window.__bbBridge;return r!=null&&r.registerPlayer?r.registerPlayer(e,t,n):()=>{}}function Xi(e){let t=window.__bbBridge;t!=null&&t.setActivePlayer&&t.setActivePlayer(e)}W(),J(),ti();var Zi,Qi=2e3,$i=30,ea=(e,t)=>{let n=`S`,r=480;e>480&&e<=768?t===`S`&&e<492?(n=`S`,r=480):(n=`M`,r=768):e>768&&e<=1024?t===`M`&&e<780?(n=`M`,r=768):(n=`L`,r=1024):e>1024&&e<=1200?t===`L`&&e<1036?(n=`L`,r=1024):(n=`XL`,r=1200):e>1200&&e<=1550?t===`XL`&&e<1212?(n=`XL`,r=1200):(n=`XXL`,r=1550):e>1550&&(t===`XXL`&&e<1562?(n=`XXL`,r=1550):(n=`XXXL`,r=Math.ceil(e/200)*200));let i=Math.round((devicePixelRatio||1)*r);return[n,i]},ta=({opts:e})=>{var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,x;let S=(0,b.useRef)(null),C=(0,b.useRef)(0),T=(0,b.useRef)(null),E=(0,b.useRef)(null),D=(0,b.useRef)(null),[O,k]=(0,b.useState)({currentEntity:null,collectionContext:null,searchResults:[],searchLoading:!1,debouncedSearchQuery:``,previousState:null}),[A,j]=(0,b.useState)(0),N=()=>j(e=>e+1),[P,I]=(0,b.useState)(e.appConfig),[L,te]=(0,b.useState)(e.appConfig),[R,z]=(0,b.useState)(Pe(P,L)),B=(0,b.useRef)(L);B.current=L;let[V,H]=(0,b.useState)(!1),[ne,le]=(0,b.useState)([]),[ue,me]=(0,b.useState)(null),[he,ge]=(0,b.useState)(null),[_e,ve]=(0,b.useState)(null),[be,U]=(0,b.useState)(),[W,Se]=(0,b.useState)(),[Ce,we]=(0,b.useState)(null),[Te,Ee]=(0,b.useState)(null),[De,Oe]=(0,b.useState)([]),ke=(0,b.useRef)([]),[Ae,je]=(0,b.useState)(null),[Le,Re]=(0,b.useState)(!1),[ze,Be]=(0,b.useState)(``),[Ve,He]=(0,b.useState)(!1),[Ue,We]=(0,b.useState)(null),[Ge,Ke]=(0,b.useState)([]),[qe,Je]=(0,b.useState)(!1),[Ye,Xe]=(0,b.useState)(``),G=(0,b.useMemo)(()=>{var e;let t=qi();if(!t)return{pageType:`main`,currentEntity:null,currentContext:null,collectionContext:null,collectionIdToLoad:null,activeBlockConfig:null,activeBlockId:null,detailPagePlayout:void 0,searchQuery:``,debouncedSearchQuery:``,searchResults:[],searchLoading:!1,clickedSearchResult:!1,activeSubChannelId:null};t.subChannelId&&(S.current=t);let n=null,r=null;if(t.blockId&&(e=L.blocks)!=null&&e.length){let e=L.blocks.find(e=>e.id===t.blockId);e&&(n=e.config,r=e.id)}let i=null;return t.contextId&&(i={contentId:t.contextId,contentType:`cliplist`}),{pageType:t.pageType,contentId:t.contentId,contentType:t.contentType,currentEntity:O.currentEntity,currentContext:i,collectionContext:O.collectionContext,collectionIdToLoad:t.collectionId||null,activeBlockConfig:n,activeBlockId:r,detailPagePlayout:t.playout,searchQuery:t.searchQuery||``,debouncedSearchQuery:O.debouncedSearchQuery||t.searchQuery||``,searchResults:O.searchResults,searchLoading:O.searchLoading,clickedSearchResult:t.clickedSearchResult||!1,activeSubChannelId:t.subChannelId||null,previousState:O.previousState}},[L.blocks,O,A]),Ze=(0,b.useRef)(G);Ze.current=G;let Qe=(0,b.useRef)(null),$e=(0,b.useRef)(null),et=(0,b.useRef)(null),tt=(0,b.useRef)(null),rt=e=>{let t=Ze.current,n=typeof e==`function`?e(t):{...t,...e};Ze.current=n,Ji(n,!0),k({currentEntity:n.currentEntity||null,collectionContext:n.collectionContext||null,searchResults:n.searchResults||[],searchLoading:n.searchLoading||!1,debouncedSearchQuery:n.debouncedSearchQuery||``,previousState:n.previousState||null}),N()},it=G.currentContext,at=G.collectionContext,ot=G.activeBlockConfig,st=G.detailPagePlayout,ct=G.pageType===`detailPage`,ut=G.pageType===`overviewPage`,dt=G.pageType===`searchPage`,ft=G.searchQuery||``,ht=G.searchResults||[],K=G.searchLoading||!1,gt=G.clickedSearchResult||!1,_t=R.containedChannel===void 0?((t=R.detailPageConfig)==null?void 0:t.withinBorder)??!1:R.containedChannel,vt=(e,t)=>{let n={pageType:e,contentId:t==null?void 0:t.contentId,contentType:t==null?void 0:t.contentType,currentEntity:t==null?void 0:t.currentEntity,currentContext:(t==null?void 0:t.currentContext)??G.currentContext,collectionContext:(t==null?void 0:t.collectionContext)??G.collectionContext,activeBlockConfig:(t==null?void 0:t.blockConfig)??G.activeBlockConfig,activeBlockId:(t==null?void 0:t.activeBlockId)??G.activeBlockId,detailPagePlayout:(t==null?void 0:t.detailPagePlayout)??G.detailPagePlayout,searchQuery:e===`searchPage`?(t==null?void 0:t.searchQuery)??G.searchQuery:(t==null?void 0:t.searchQuery)??``,debouncedSearchQuery:e===`searchPage`?(t==null?void 0:t.searchQuery)??G.debouncedSearchQuery:(t==null?void 0:t.searchQuery)??``,searchResults:e===`searchPage`?(t==null?void 0:t.searchResults)??G.searchResults:(t==null?void 0:t.searchResults)??[],searchLoading:e===`searchPage`?(t==null?void 0:t.searchLoading)??G.searchLoading:(t==null?void 0:t.searchLoading)??!1,clickedSearchResult:e===`searchPage`?(t==null?void 0:t.clickedSearchResult)??G.clickedSearchResult:(t==null?void 0:t.clickedSearchResult)??!1,activeSubChannelId:G.activeSubChannelId,previousState:(t==null?void 0:t.previousState)===void 0?G:t.previousState};Ji(n,(t==null?void 0:t.replaceHistory)??(G.pageType===e&&G.contentId===(t==null?void 0:t.contentId)&&G.activeBlockId===(t==null?void 0:t.activeBlockId))),Ze.current=n,k({currentEntity:n.currentEntity,collectionContext:n.collectionContext,searchResults:n.searchResults,searchLoading:n.searchLoading,debouncedSearchQuery:n.debouncedSearchQuery,previousState:n.previousState}),N()},J=async(t,n=!1)=>{try{var r,i;G.pageType===`detailPage`&&Zt();let a=await Ne(e.publicationData.baseurl,t),o=((r=e.publicationData)==null?void 0:r.secureMediaAssetPath)||((i=e.publicationData)==null?void 0:i.defaultMediaAssetPath);lt(a,e.publicationData.baseurl,o);let s=ce(e.publicationData.baseurl);s&&w.log({ev:`xit`,et:`Channel`,pp:s,pet:`Channel`,pid:P.id,id:a.id});let c=Pe(P,a);te(c),Ft(c),n||Ji({activeSubChannelId:t,pageType:`main`},!1),k({currentEntity:null,collectionContext:null,searchResults:[],searchLoading:!1,debouncedSearchQuery:``,previousState:null}),N()}catch(e){throw console.error(`Failed to load sub-channel:`,e),e}},yt=new URLSearchParams(window.location.search),bt=yt.get(`bb_ch_bid`),xt=R.blocks.find(e=>e.id===bt),Ct=yt.get(`bb_cid`),wt=yt.get(`bb_ctype`)||`mediaclip`,Tt=[`title`,`label`,`description`],Et=(0,b.useRef)(null),Ot=(0,b.useRef)(!1),kt=(0,b.useRef)(!1),At=(0,b.useRef)(!1),jt=(()=>{let e=yt.get(`bb_t`);if(!e)return null;if(typeof e==`string`&&e.match(/^\\d*h?\\d*m?[\\d.]+s?$/i)&&(e=e.replace(/h|m/gi,`:`).replace(/s/gi,``)),typeof e==`string`&&e.match(/:+/)){let t=0,n=e.split(/:+/g).reverse();for(let e=0;e{P.channelType===`multi`?z(Pe(P,L)):z(P)},[P,L]),(0,b.useEffect)(()=>{R.channelType===`multi`&&Ht(R)},[R]),(0,b.useEffect)(()=>{var t;let n=new AbortController;return!((t=e.publicationData)==null||(t=t.baseurl)==null)&&t.startsWith(`//`)&&(e.publicationData.baseurl=`https:${e.publicationData.baseurl}`),We(e.publicationData.customfields),Nt(e,n.signal),Et.current||(Et.current={overflowX:document.body.style.overflowX,overflowY:document.body.style.overflowY}),fe().then(e=>{Xe(e?`webp`:`jpg`)}),()=>{n.abort()}},[]),(0,b.useEffect)(()=>{var t;I(e.appConfig),M((t=e.appConfig)==null?void 0:t.id),e.appConfig.channelType!==`multi`&&te(e.appConfig),e.appConfig.channelType===`multi`&&requestAnimationFrame(()=>{var t,n,r;lt(R,(t=e.publicationData)==null?void 0:t.baseurl,((n=e.publicationData)==null?void 0:n.secureMediaAssetPath)||((r=e.publicationData)==null?void 0:r.defaultMediaAssetPath))})},[e.appConfig]),(0,b.useEffect)(()=>{(async()=>{if(Ie(P)){let t=null,n=!1,r=qi();if(r!=null&&r.subChannelId?(t=r.subChannelId,n=!0,S.current=r):t=Fe(P.navigationConfig),t)try{await J(t,n)}catch(r){var e;n&&((e=S.current)==null?void 0:e.subChannelId)===t&&(S.current=null),console.error(`Failed to load initial sub-channel:`,r)}}})()},[]),(0,b.useEffect)(()=>{let e=S.current;e&&(e.subChannelId&&(e.subChannelId!==G.activeSubChannelId||(L==null?void 0:L.id)!==e.subChannelId)||(N(),S.current=null))},[L,G.activeSubChannelId]),(0,b.useEffect)(()=>{if(G.activeBlockId){var e;(e=L.blocks)!=null&&e.find(e=>e.id===G.activeBlockId)||(Ji({...G,activeBlockId:null},!0),N())}Je(!1)},[L]);let Mt=e.nativePlayerMode===!0;(0,b.useEffect)(()=>{if(!Mt&&P.enableUrlNavigation!==!0)return;let e=()=>{let e=qi(),t=Ze.current;if(e!=null&&e.subChannelId&&e.subChannelId!==(t==null?void 0:t.activeSubChannelId)){S.current=e,J(e.subChannelId,!0).catch(t=>{var n;((n=S.current)==null?void 0:n.subChannelId)===e.subChannelId&&(S.current=null),console.error(`Failed to load sub-channel from hash:`,t)});return}N()};return window.addEventListener(`hashchange`,e),()=>{window.removeEventListener(`hashchange`,e)}},[P.enableUrlNavigation,Mt]),(0,b.useEffect)(()=>{var e;let t=window.__bbBridge;if(!(t!=null&&t.subscribeToEvent))return;let n=[];return n.push(t.subscribeToEvent(`NATIVE_NAVIGATE_TO_PAGE`,({page:e})=>{if(e===`main`){var t;(t=$e.current)==null||t.call($e,`main`,{currentEntity:null,currentContext:null,collectionContext:null})}else if(e===`search`){var n;(n=$e.current)==null||n.call($e,`searchPage`,{})}})),n.push(t.subscribeToEvent(`NATIVE_NAVIGATE_BACK`,()=>{Ze.current.pageType===`detailPage`?Qt():Wi()===null&&window.history.back()})),n.push(t.subscribeToEvent(`NATIVE_SEARCH`,({query:e})=>{var t;(t=et.current)==null||t.call(et,e)})),n.push(t.subscribeToEvent(`NATIVE_PLAY_ENTITY`,({entityId:e,entityType:t,blockId:n})=>{let r=t===`mediacliplist`?`cliplist`:`mediaclip`;nn(e,r).then(i=>{if(i){var a,o;let s=B.current,c=n?(a=s.blocks)==null||(a=a.find(e=>e.id===n))==null?void 0:a.config:void 0;(o=Qe.current)==null||o.call(Qe,{entity:i,playerBlockId:t===`mediacliplist`?`overviewPage`:`detailPage`,contentId:e,contextItem:{contentId:e,contentType:r},fromBlock:c,fromBlockId:n})}})})),n.push(t.subscribeToEvent(`NATIVE_UPDATE_DETAIL_ENTITY`,({entityId:e})=>{nn(e,`mediaclip`).then(e=>{var t;if(e&&((t=Ze.current)==null?void 0:t.pageType)===`detailPage`){var n;(n=$e.current)==null||n.call($e,`detailPage`,{currentEntity:e,contentId:e.id,contentType:e.type===`MediaClip`?`mediaclip`:`cliplist`,currentContext:Ze.current.currentContext,blockConfig:Ze.current.activeBlockConfig,activeBlockId:Ze.current.activeBlockId,replaceHistory:!0})}}).catch(e=>{console.warn(`[Channel] Failed to update detail entity:`,e)})})),n.push(t.subscribeToEvent(`NATIVE_NAVIGATE_TO_SUBCHANNEL`,({subChannelId:e})=>{var t;(t=tt.current)==null||t.call(tt,e)})),(e=t.markAppCallbacksReady)==null||e.call(t),()=>{n.forEach(e=>e())}},[]),(0,b.useEffect)(()=>()=>{var e,t;T.current!==null&&(cancelAnimationFrame(T.current),T.current=null),C.current=0,(e=E.current)==null||e.disconnect(),E.current=null,(t=D.current)==null||t.disconnect(),D.current=null},[]),(0,b.useEffect)(()=>{var e,t,n;if(G.collectionIdToLoad&&!G.collectionContext){nn(G.collectionIdToLoad,`cliplist`).then(e=>{e&&e.id===G.collectionIdToLoad&&(k(t=>({...t,collectionContext:e})),N())});return}(e=G.currentContext)!=null&&e.contentId&&((t=G.currentContext)==null?void 0:t.contentType)===`cliplist`&&!G.collectionContext&&((n=G.currentEntity)==null?void 0:n.type)!==`MediaClipList`&&nn(G.currentContext.contentId,`cliplist`).then(e=>{var t;e&&((t=G.currentContext)==null?void 0:t.contentId)===e.id&&(k(t=>({...t,collectionContext:e})),N())})},[G]),(0,b.useEffect)(()=>{var e,t;let n=(Ue==null||(e=Ue.mediaclip)==null?void 0:e.filter(e=>(e==null?void 0:e.publicDisplay)&&[`text`,`multistring`,`array`,`string`,`int`,`float`,`date`].includes(e.type)))||[],r=(Ue==null||(t=Ue.mediacliplist)==null?void 0:t.filter(e=>(e==null?void 0:e.publicDisplay)&&[`text`,`multistring`,`array`,`string`,`int`,`float`,`date`].includes(e.type)))||[],i=[...n,...r];Ke((i==null?void 0:i.map(e=>e.name))||[])},[Ue]),(0,b.useEffect)(()=>{let e=new AbortController;if(xt!=null&&xt.config&&Ct){xt.config.contentType=wt,xt.config.contentId=Ct;let t=It.current.querySelector(`[data-blockid=\"${bt}\"]`);t&&pe(()=>{requestAnimationFrame(()=>{ye(t,{behavior:`smooth`,block:`center`})})},1e3,e.signal).catch(()=>{})}return()=>{e.abort()}},[Ve]),(0,b.useEffect)(()=>{if(!Ve||!It.current)return;let t=ce(e.publicationData.baseurl);if(!t)return;let n=new Set,r=pt(n,t,P.id),i=new IntersectionObserver(e=>{r(e);for(let t of e)t.isIntersecting&&i.unobserve(t.target)},{threshold:0}),a=()=>{var e;let t=(e=It.current)==null?void 0:e.querySelectorAll(mt);t==null||t.forEach(e=>{let t=e.dataset.blockid;t&&!n.has(t)&&i.observe(e)})},o=requestAnimationFrame(()=>a()),s,c=new MutationObserver(()=>{clearTimeout(s),s=setTimeout(a,100)});return c.observe(It.current,{childList:!0,subtree:!0}),()=>{cancelAnimationFrame(o),clearTimeout(s),i.disconnect(),c.disconnect()}},[Ve,P.id]),(0,b.useEffect)(()=>()=>{let e=Et.current;e&&(document.body.style.overflowX=e.overflowX||``,document.body.style.overflowY=e.overflowY||``)},[]),(0,b.useEffect)(()=>{var e,t;if(!((e=document)!=null&&e.body))return;let n=G.pageType===`detailPage`||G.pageType===`overviewPage`||G.pageType===`gridPage`,r=G.pageType===`searchPage`;if((n||r)&&(!_t||be)&&!(!be&&r&&!gt))document.body.style.overflowX=`hidden`,document.body.style.overflowY=`hidden`;else{var i,a;document.body.style.overflowX=((i=Et.current)==null?void 0:i.overflowX)||``,document.body.style.overflowY=((a=Et.current)==null?void 0:a.overflowY)||``}G.pageType!==`detailPage`&&(((t=G.previousState)==null?void 0:t.pageType)===`detailPage`||G.pageType===`overviewPage`)&&Zt(),(n||r)&&Gt(It.current)},[G.pageType,Ve,be,gt]),(0,b.useEffect)(()=>{if(_t&&!be)return;let e=Lt.current;if(!e||e.tagName!==`DIALOG`)return;let t=e,n=G.pageType===`gridPage`;if(n&&!t.open)try{t.showModal()}catch(e){console.warn(`Grid page dialog.showModal() failed:`,e)}else !n&&t.open&&t.close()},[G.pageType,_t,be]);let Nt=(e,t)=>{e.cpRuleViolation?(Be(e.cpRuleViolation),pe(()=>{Pt(!0,t)},400,t).catch(()=>{})):(Be(``),Pt(!1,t))},Pt=(t=!1,n)=>{He(!0);let r=ce(e.publicationData.baseurl);r&&w.log({ev:`xit`,et:`Channel`,pp:r,id:P.id}),Ut(),!t&&(Ft(L),Wt(n),Ee(re()),ae(H))},Ft=e=>{let t=e==null?void 0:e.blocks.some(e=>(e==null?void 0:e.config).playIn===`detailPage`),n=e==null?void 0:e.blocks.some(e=>(e==null?void 0:e.config).playIn===`overviewPage`),r=(e==null?void 0:e.playIn)===`detailPage`&&(e==null?void 0:e.blocks.some(e=>{var t;return[`detailPage`,`null`,`default`,null].includes(e==null||(t=e.config)==null?void 0:t.playIn)})),i=(e==null?void 0:e.playIn)===`overviewPage`&&(e==null?void 0:e.blocks.some(e=>{var t;return[`overviewPage`,`null`,`default`,null].includes(e==null||(t=e.config)==null?void 0:t.playIn)}));Re(t||r||n||i||(e==null?void 0:e.searchBar))};(0,b.useEffect)(()=>{var t,n;if(!De.some(e=>e.playerBlockId===`detailPage`))return;let r=((t=e.embedData)==null?void 0:t.cid)&&((n=e.embedData)==null?void 0:n.ctype)||Ct&&!(xt!=null&&xt.config)&&!Ot.current,i=G.pageType===`detailPage`&&G.contentId&&G.contentType&&(!G.currentEntity||G.currentEntity.id!==G.contentId)&&Ae!==G.contentId;if(!r&&!i)return;let a,o,s=null;if(i)a=G.contentId,o=G.contentType,G.currentContext&&(s={contentId:G.currentContext.contentId,contentType:G.currentContext.contentType});else if(a=Ct||e.embedData.cid,o=wt||e.embedData.ctype,Ct){Ot.current=!0;let e=new URL(window.location.href);e.searchParams.delete(`bb_cid`),e.searchParams.delete(`bb_ctid`),e.searchParams.delete(`bb_ctype`),e.searchParams.delete(`bb_cttype`),e.searchParams.delete(`bb_ch_bid`),e.searchParams.delete(`bb_app`),window.history.replaceState({},``,e.toString())}je(a),nn(a,o).then(e=>{Yt({entity:e,playerBlockId:`detailPage`,contentId:a,contextItem:s,collectionId:G.collectionIdToLoad})})},[De,(n=e.embedData)==null?void 0:n.cid,(r=e.embedData)==null?void 0:r.ctype,G.pageType,G.contentId,G.contentType,G.currentEntity]),(0,b.useEffect)(()=>{let e=setTimeout(()=>{ln(ft),k(e=>({...e,debouncedSearchQuery:ft})),N()},500);return()=>clearTimeout(e)},[ft,dt]),(0,b.useEffect)(()=>{qe||(Je(!0),L.blocks.forEach(e=>{var t,n;((t=e.config)==null?void 0:t.playlistType)===`collection`&&(n=e.config)!=null&&n.contentId&&nn(e.config.contentId,`cliplist`).then(e=>{(e==null?void 0:e.type)===`MediaClipList`&&e.items&&e.items.forEach(e=>{nn(e.id,`cliplist`)})})}),ln(ft))},[qe,ft,L]);let It=(0,b.useRef)(null),X=(0,b.useRef)(null),Lt=(0,b.useRef)(null),Rt=(0,b.useRef)(new Map),zt=(0,b.useRef)(new Map),Bt=(0,b.useRef)(new Map),Vt=(0,b.useRef)(new Map);function Ht(e){let t=`bb-channel-${P.id}`,n=document.getElementById(t);n&&nt(e,n)}let Ut=()=>{var e;(e=E.current)==null||e.disconnect(),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null),C.current=0;let t=It.current,n=new ResizeObserver(()=>{requestAnimationFrame(()=>Gt(It.current))});n.observe(t),E.current=n},Wt=e=>{var t;(t=D.current)==null||t.disconnect();let n=It.current,r=new MutationObserver(t=>{t.forEach(t=>{let n=t.target;if(n.classList){if(n.classList.contains(`bb-scroll-item`)){let e=n.querySelector(`button`);e&&se(e,!n.classList.contains(`clone`))}n.classList.contains(`bb-scroll-container`)||(n=n.querySelector(`.bb-scroll-container`)),pe(()=>{var e;!(n==null||(e=n.classList)==null)&&e.contains(`bb-scroll-container`)&&oe(n)},1,e)}})});r.observe(n,{childList:!0,subtree:!0}),D.current=r},Gt=e=>{let t=X.current,n=e==null?void 0:e.offsetWidth;if(!n){if(!e||!e.isConnected)return;if(C.current<$i)C.current+=1,T.current!==null&&cancelAnimationFrame(T.current),T.current=requestAnimationFrame(()=>{T.current=null,Gt(e)});else if(C.current===$i){C.current+=1,console.warn(`[Channel] setResize gave up after`,$i,`rAF retries \u2014 wrapper width still 0; falling back to window.innerWidth`);let[e,t]=ea(document.documentElement.clientWidth||window.innerWidth,ue);T.current!==null&&cancelAnimationFrame(T.current),T.current=requestAnimationFrame(()=>{T.current=null,me(e),ge(e),ve(t)})}return}C.current=0,T.current!==null&&(cancelAnimationFrame(T.current),T.current=null);let r=(t==null?void 0:t.offsetWidth)||window.innerWidth,[i,a]=ea(n,ue),[o]=ea(r,he),s=Math.min(R.maxWidth&&R.maxWidth>0?R.maxWidth:2e4,e==null?void 0:e.scrollWidth);U(Math.abs((e==null?void 0:e.scrollHeight)-document.documentElement.scrollHeight)<10&&Math.abs(s-document.documentElement.scrollWidth)<30),Se(e==null?void 0:e.scrollHeight),requestAnimationFrame(()=>{me(i),ge(o),ve(a)})},Kt=(t,n,r,i,a=!1,o,s)=>{!kt.current&&typeof t.on==`function`&&t.on(`started`,()=>{if(!kt.current){let t=ce(e.publicationData.baseurl);t&&(kt.current=!0,w.log({et:`Channel`,ev:`xvw`,pp:t,id:P.id}))}});let c={player:t,playerBlockId:n,playerComponentRef:r,playerComponent:i,playoutOverrides:s};o&&Rt.current.set(n,o);let l=De.findIndex(e=>e.playerBlockId===n);Oe(l===-1?e=>{let t=[...e,c];return ke.current=t,t}:e=>{let t=[...e];return t[l]=c,ke.current=t,t}),a&&we(t);let u=Bt.current.get(n);u||(u={current:null},Bt.current.set(n,u)),u.current=t;let d=Vt.current.get(n);d&&d();let f=Yi(n,u,a);Vt.current.set(n,f),a&&Xi(n)},qt=(0,b.useMemo)(()=>Yr(e.nativePlayerMode===!0),[e.nativePlayerMode]),Jt=qt.isNativeMode,Yt=async(t,n)=>{var r;let{entity:i,contentId:a,blockType:o,contextItem:s,clickedImgCache:c,fromBlock:l,fromBlockId:u,collectionId:d}=t,{playerBlockId:f}=t;if(!i)return;let p=G.pageType===`detailPage`&&f===`detailPage`,m=p?G.activeBlockConfig:l,h=p?G.activeBlockId:u;if((!f||f===`null`||f===`default`)&&(f=o===`Player`?`player`:L.playIn||`detailPage`),Jt){var g;if(qt.onPlayRequest(i,f,a,{contextItem:s,fromBlock:m,listIndex:s==null?void 0:s.listIndex,showThumbnailAsBackground:(g=R.detailPageConfig)==null?void 0:g.showThumbnailAsBackground}),f===`player`&&G.pageType===`main`)return;f===`player`&&(f=`detailPage`)}if(f===`deeplink`){if(Jt)return;let t=i.deeplink||i.gendeeplink;if(!t){let n=ie(i.type);t=`${e.publicationData.baseurl}/p/${L.playout||`default`}/${n}/${i.id}.html`}try{let n=new URL(t,e.publicationData.baseurl);return n.protocol!==`http:`&&n.protocol!==`https:`?void 0:window.open(n.toString(),`_top`)}catch{return}}let _;if(f===`detailPage`?De.forEach(e=>{e.playerBlockId===`detailPage`&&(_=e)}):f===`overviewPage`?_=null:f===`player`&&De.forEach(e=>{e.playerBlockId!==`detailPage`&&(_=e)}),!_&&f!==`overviewPage`&&(_=De.find(e=>e.playerBlockId===`detailPage`),f=`detailPage`,!_&&!Jt))return;i.type===`MediaClipList`&&(i.items||(i.items=(await nn(i.id,`cliplist`)).items),s.contentId=i.id,s.contentType=`cliplist`,delete s.listIndex),s&&(s.previewTitleDisplay=(m==null?void 0:m.previewTitleDisplay)||`none`,s.previewTimestampDisplay=(m==null?void 0:m.previewTimestampDisplay)||`none`,s.previewCustomField=(m==null?void 0:m.previewCustomField)||null,s.previewCustomFieldDisplay=(m==null?void 0:m.previewCustomFieldDisplay)||null,s.aspectRatio=(m==null?void 0:m.aspectRatio)||`16:9`,s.aspectRatioSubPlaylist=(m==null?void 0:m.aspectRatioSubPlaylist)||`16:9`,s.thumbnailSize=(m==null?void 0:m.thumbnailSize)||`medium`,s.thumbnailSizeMobile=(m==null?void 0:m.thumbnailSizeMobile)||`medium`);let v=at,y=null;if(i.type===`MediaClipList`){var b;(b=i.items)!=null&&b.some(e=>e.type===`MediaClipList`)?v=i:(m==null?void 0:m.playlistType)===`collection`&&(at==null?void 0:at.id)!==m.contentId&&(y=m.contentId)}else (m==null?void 0:m.playlistType)===`collection`&&(at==null?void 0:at.id)!==m.contentId?y=m.contentId:at&&(v=null);pe(()=>{var e;let t=`main`;f===`detailPage`?t=`detailPage`:f===`overviewPage`&&(t=`overviewPage`);let n=i.type===`MediaClipList`&&((e=i.items)==null?void 0:e[0])||i,r=n.id,a=n.type===`MediaClip`?`mediaclip`:n.type===`Project`?`project`:`cliplist`;y?nn(y,`cliplist`).then(e=>{vt(t,{currentEntity:n,contentId:r,contentType:a,currentContext:s,blockConfig:m,activeBlockId:h,collectionContext:e||v,detailPagePlayout:(m==null?void 0:m.playout)||B.current.playout,searchQuery:dt?ft:void 0,searchResults:dt?ht:void 0,searchLoading:dt?K:void 0,clickedSearchResult:dt?!0:void 0})}):vt(t,{currentEntity:n,contentId:r,contentType:a,currentContext:s,blockConfig:m,activeBlockId:h,collectionContext:v,detailPagePlayout:(m==null?void 0:m.playout)||B.current.playout,searchQuery:dt?ft:void 0,searchResults:dt?ht:void 0,searchLoading:dt?K:void 0,clickedSearchResult:dt?!0:void 0})},0,n).catch(()=>{});let x={initiator:`Channel/${L.id}`,autoPlay:!0};if(jt!==null&&!At.current)x.seekTo=jt,At.current=!0;else if((r=B.current)!=null&&r.previewAddWatchedHistory&&i.type===`MediaClip`&&i.length>0){let e=F(i.id);e>.02&&e<.95&&(x.seekTo=Math.floor(e*i.length))}x[`${i.type.toLowerCase().replace(`media`,``)}Id`]=i.id;let S=localStorage.getItem(`bbtl_rpctoken`),C=localStorage.getItem(`bbtl_jwt`);S&&(x.rpctoken=S),C&&(x.jwt=C),s!=null&&s.contentId&&(x.contextEntityType=`MediaClipList`,x.contextEntityId=s.contentId);let w=d||(v==null?void 0:v.id);if(w&&(x.contextCollectionType=`MediaClipList`,x.contextCollectionId=w),f!==`overviewPage`&&_&&!Jt){let t=(m==null?void 0:m.playout)||B.current.playout||`default`,r=Rt.current.get(_.playerBlockId),i=r!==void 0&&r!==t,a=(zt.current.get(_.playerBlockId)??0)+1;zt.current.set(_.playerBlockId,a);let o=i?_.playerComponentRef.current:null;o&&(o.style.transition=`none`,o.style.opacity=`0.001`);let s=()=>{o&&(o.style.transition=`none`,o.style.opacity=`1`)};pe(()=>{if(!i){_.player.load(x);return}let r,c,l=()=>{if(n!=null&&n.aborted||zt.current.get(_.playerBlockId)!==a)return!0;let e=ke.current.find(e=>e.playerBlockId===_.playerBlockId);return!e||e.player!==_.player},u=()=>{l()||(_.player.load(x),o&&(r=setTimeout(()=>{n!=null&&n.aborted||(o.style.transition=`opacity 0.3s ease-in`,o.style.opacity=`1`)},300)))},d=e=>{let i=!1,a=()=>o(!1),o=e=>{i||(i=!0,_.player.off(`changedplayoutdata`,a),clearTimeout(c),!e&&!l()&&Rt.current.set(_.playerBlockId,t),e&&console.warn(`[Channel] changedplayoutdata not fired within`,Qi,`ms for`,t,`\u2014 loading anyway`),u())};_.player.on(`changedplayoutdata`,a),c=setTimeout(()=>o(!0),Qi),n==null||n.addEventListener(`abort`,()=>{i||(i=!0,_.player.off(`changedplayoutdata`,a),clearTimeout(c),clearTimeout(r),s())},{once:!0});let d=Vr(e,_.playoutOverrides),f=!1;try{f=_.player.updatePlayout(d)}catch(e){console.warn(`[Channel] updatePlayout threw for`,t,`:`,e),o(!1);return}f||(console.warn(`[Channel] Player does not support updatePlayout \u2014 loading against current playout`),o(!1))},f=`${e.publicationData.baseurl}/papi/playout/${t}`,p=Or.get(f);if(p!=null&&p.data)d(p.data);else{let e=(p==null?void 0:p.promise)??fetch(f).then(e=>e.ok?e.json():Promise.reject(Error(`HTTP ${e.status}`))).then(e=>(Or.set(f,{loading:!1,data:e,promise:null}),kr(),e)).catch(e=>{throw Or.delete(f),e});p||Or.set(f,{loading:!0,data:null,promise:e}),e.then(e=>{l()||d(e)}).catch(e=>{console.warn(`[Channel] Playout fetch failed for`,t,`:`,e),u()})}},0,n).catch(e=>{n!=null&&n.aborted||console.warn(`[Channel] Unexpected error in playEntity load setup:`,e),s()}),we(_.player)}(f===`detailPage`||f===`overviewPage`)&&c&&(i._imageCache=c),_!=null&&_.playerComponentRef&&o!==`Player`&&f!==`detailPage`&&pe(()=>{requestAnimationFrame(()=>{var e;ye(_==null||(e=_.playerComponentRef)==null?void 0:e.current,{behavior:`smooth`,block:`center`,inline:`nearest`})})},40,n).catch(()=>{}),De.forEach(e=>{e.playerBlockId!==f&&e.player&&typeof e.player.getPropertyValue==`function`&&e.player.getPropertyValue(`playing`)===!0&&typeof e.player.pause==`function`&&e.player.pause()}),_&&_.playerComponent&&(_.playerComponent.setContentId(a),_.playerComponent.setContextItem(s),_.playerComponent.setCollectionId(w))},Xt=()=>{De.forEach(e=>{var t,n;(t=e.player)==null||(n=t.pause)==null||n.call(t)})},Zt=()=>{try{var e,t,n,r;let i=De.find(e=>e.playerBlockId===`detailPage`);i==null||(t=(e=i.player).pause)==null||t.call(e),i==null||(r=(n=i.player).load)==null||r.call(n,null)}catch(e){console.debug(`unloadDetailPagePlayer: player in bad state`,e)}},Qt=e=>{if(Zt(),!e){let e=Ze.current.previousState;for(;(e==null?void 0:e.pageType)===`detailPage`;)e=e.previousState??null;e&&e.pageType!==`main`?vt(e.pageType,{currentEntity:e.currentEntity,currentContext:e.currentContext,collectionContext:e.collectionContext,blockConfig:e.activeBlockConfig,activeBlockId:e.activeBlockId,searchQuery:e.searchQuery,searchResults:e.searchResults,previousState:e.previousState??null}):vt(`main`,{currentEntity:null,currentContext:null,collectionContext:null})}try{Ce&&typeof Ce.pause==`function`&&(Ce.pause(),Ce.load(null))}catch(e){console.debug(`hideDetailPage: player in bad state`,e)}},$t=(e,t)=>{if(Xt(),dt)Ji({...G,searchQuery:e},!0),N();else{let n=e===G.debouncedSearchQuery&&G.searchResults.length>0;vt(`searchPage`,{searchQuery:e,searchResults:n?G.searchResults:void 0,searchLoading:n?!1:void 0,clickedSearchResult:!1}),n||pe(()=>{k(t=>({...t,debouncedSearchQuery:e})),N()},0,t).catch(()=>{})}};Qe.current=Yt,$e.current=vt,et.current=$t,tt.current=J;let en=(0,b.useCallback)((e,t)=>{le(n=>n.some(n=>n.id===e.id&&n.type.toLowerCase()===t)?n:[...n,e])},[]),tn=(0,b.useCallback)((e,t)=>{if(t===`mediaclip`||t===`project`)en(e,t);else if(t===`cliplist`){var n;((n=e.items)==null?void 0:n.length)>0&&e.items.forEach(e=>{[`project`,`mediaclip`].includes(e.type.toLowerCase())&&en(e,e.type.toLowerCase())})}},[en]),nn=(0,b.useCallback)(async(t,n)=>{let r=e.publicationData.baseurl;return await Me.getEntityData(t,n,r,tn)},[e.publicationData.baseurl,tn]),rn=()=>{Me.clearCache()},an=()=>Me.getCacheStats(),on=async t=>{let n=e.publicationData.baseurl,r=new URL(`${n}/papi/search`);return r.searchParams.set(`q`,t),r.searchParams.set(`allowCache`,`true`),ee(r),await fetch(r.toString()).then(e=>e.json()).then(e=>{var t;let n={};return e==null||(t=e.items)==null||t.forEach(e=>{var t;let r=e==null||(t=e.type)==null||(t=t.toLowerCase())==null?void 0:t.replace(`mediacliplist`,`cliplist`);n[r+(e==null?void 0:e.id)]=e,tn(e,r)}),n})};function sn(e,t){if(typeof e!=`string`)return``;if(!t)return e;let n=t.replace(/[.*+?^${}()|[\\]\\\\]/g,`\\\\$&`),r=RegExp(`(${n.length?n+`|`:``}${n.split(` `).join(`|`)})(?![^<>]*>)`,`gi`);return Array.isArray(e)&&(e=e.join(`, `)),e==null?void 0:e.replace(r,e=>`${e}`)}async function cn(t){t=t.trim().replace(/([+&|!(){}[\\\\/\\]^\"~*?:\\\\-])/g,`\\\\$1`);let n={title:4,label:3,description:1},r=Tt.concat(Ge),i=`id:(${ne.map(e=>e.id).join(` `)})`,a={query:`(\"${t}\")^4 OR (${t}*)^3 OR (*${t}*)^3 OR (${t})^1 OR (${de(t)})^1`,fields:r.concat([`type`,`id`]).join(`,`),filter:[`type:${xe.mediaclip} type:${xe.project}`,`${i}`],params:{defType:`edismax`,qf:r.map(e=>`${e}^${n[e]||1}`).join(` `),hl:`true`,\"hl.fl\":r.join(`,`),\"hl.usePhraseHighlighter\":`true`,\"hl.highlightMultiTerm\":`true`,\"hl.simple.pre\":``,\"hl.simple.post\":``,\"hl.snippets\":`1`,\"hl.fragsize\":`130`},limit:100,sort:`score desc`},o=new URL(`${e.publicationData.baseurl}/papi/search`);ee(o),Zi==null||Zi.abort(),Zi=new AbortController;let{signal:s}=Zi;try{let e=await fetch(o.toString(),{method:`POST`,headers:{\"Content-Type\":`application/json`},signal:s,body:JSON.stringify(a)});Zi=null;let t=await e.json();k(e=>({...e,searchLoading:!1})),N();let n=Tt.concat(Ge),r=(t==null?void 0:t.items)||[];return t!=null&&t.highlighting&&r.map(e=>(e.fromSearch=!0,n.forEach(n=>{var r;e[n+er]=(r=t.highlighting[e.id])==null||(r=r[n])==null||(r=r.filter(e=>!!e))==null?void 0:r[0]}),e)),r}catch{return null}finally{Zi=null}}let ln=async e=>{if(Ie(P))return;if(e=e.trim(),!e){k(e=>({...e,searchResults:ne.map(e=>{let t={...e};return t.fromSearch=!0,t}),searchLoading:!1})),N();return}k(e=>({...e,searchLoading:!0})),N();let t=Tt.concat(Ge),n={title:60,label:60,description:150},r=await cn(e);if(!r)return;let i=r.map(r=>{let i=r;return i.fromSearch=!0,t.forEach(t=>{if(delete i[t+$n],e.split(` `).length&&i[t]){var r,a,o;let s=(Ue==null||(r=Ue.mediaclip)==null?void 0:r.find(e=>e.name===t))||(Ue==null||(a=Ue.mediacliplist)==null?void 0:a.find(e=>e.name===t));if((s==null?void 0:s.itype)===`list`&&s.options)i[t+$n]=`${s.options.filter(e=>{var t;return(t=i[s.name+`_s_highlighted`])==null?void 0:t.includes(e.value)}).map(e=>e.label).join(`, `)}`;else if(Array.isArray(i[t])){let e=i[t].filter(e=>{var n;return!(!((n=i[t+`_s_highlighted`])==null||(n=n.toLowerCase())==null)&&n.includes(e.toLowerCase()))});e.unshift(i[t+er]),i[t+$n]=e.join(`, `)}else i[t+$n]=i[t+`_s_highlighted`]||sn(i[t],e);if(((o=i[t])==null?void 0:o.length)>(n[t]||60)){let e=``,r=i[t+$n];if(Array.isArray(r)&&(r=r.join(`, `)),r){let a=r.indexOf(e),o=(n[t]||60)/2;a>o&&(i[t+$n]=`...${r.substring(a-o)}`)}}}}),i});k(e=>({...e,searchResults:i,searchLoading:!1})),N()},un=(e,t,n)=>{let r=`${e.type}_${e.id}`;switch(e.type){case`Player`:var i;return(0,Y.jsx)(hi,{block:e,playout:((i=e.config)==null?void 0:i.playout)||t.playout,borderRadius:t.borderRadius,noStats:(n||t).noStats,channelSize:ue},r);case`Grid`:return(0,Y.jsx)(ii,{block:e},r);case`Cliplist`:return(0,Y.jsx)(Lr,{block:e},r);case`Carousel`:return(0,Y.jsx)(Rr,{block:e},r);case`Featured`:return(0,Y.jsx)(St,{block:e,maxWidth:_e},r);case`Promotional`:return(0,Y.jsx)(Dt,{block:e,maxWidth:_e,channelSize:ue},r);case`FeaturedHeader`:return(0,Y.jsx)(Mi,{block:e,maxWidth:_e,disabled:!!ze},r);case`HeaderLogoTitle`:return(0,Y.jsx)(Di,{logoId:e.config.logoId,pageTitle:e.config.title,searchBar:t.searchBar},r);default:return null}},dn={};(i=e.publicationData.cropsets)==null||i.forEach(e=>{e.default||(dn[e.name]=e)});let fn={channelId:P.id,appConfig:L,playerPath:e.playerPath,baseurl:e.publicationData.baseurl,mediaAssetPath:e.publicationData.secureMediaAssetPath||e.publicationData.defaultMediaAssetPath||e.publicationData.baseurl,activeBlockConfig:ot,detailPagePlayout:st,navigationState:G,setNavigationState:rt,app_navigateToPage:vt,app_navigateToChannel:J,app_setSearchQuery:$t,app_updateSearchResults:ln,isDetailPageActive:ct,isOverviewPageActive:ut,cropsetmap:dn,app_hideDetailPage:Qt,app_registerPlayer:Kt,app_playEntity:Yt,app_getEntityData:nn,app_getQueryData:on,app_clearEntityCache:rn,app_getCacheStats:an,lang:Te,imageExtension:Ye,customFields:Ue};if(L===void 0)return null;let pn=_t&&!be,mn=pn?`div`:`dialog`;return(0,Y.jsx)(qr,{strategy:qt,children:(0,Y.jsx)(q.Provider,{value:fn,children:(0,Y.jsxs)(`div`,{className:`bb-channel-app ${R.colorTheme===`dark`?`dark-theme`:`light-theme`} ${R.showGradients?``:`no-gradients`} ${_t&&!be||!be&&dt&&!gt?`stay-within-channel `:``} ${ze?`bb-protected`:``} ${V?`bb-channel-touch-device`:`bb-channel-no-touch-device`} bb-channel-size-${ue} bb-channel-detail-page-size-${he} bb-channel-overview-page-size-${he} ${G.pageType===`detailPage`?`detail-page-active`:``} ${G.pageType===`overviewPage`?`overview-page-active`:``} ${G.pageType===`searchPage`?`search-page-active`:``} ${G.pageType===`gridPage`?`grid-page-active`:``} ${Jt?`bb-native-mode`:``}`,ref:It,style:{\"--channel-height\":be?`100vh`:W+`px`},children:[ze&&(0,Y.jsx)(`div`,{className:`error-message-container`,children:(0,Y.jsx)(zi,{type:e.cpRuleViolation,baseurl:(a=e.publicationData)==null?void 0:a.baseurl})}),(0,Y.jsx)(w,{opts:e}),Ve&&(0,Y.jsxs)(Y.Fragment,{children:[!ze&&R.searchBar&&G.pageType===`main`&&(0,Y.jsx)(Fi,{detailPageWithinBorder:_t&&!be,enableBackgroundBlur:!((o=R.detailPageConfig)!=null&&o.showThumbnailAsBackground)&&((s=R.detailPageConfig)==null?void 0:s.enableBackgroundBlur)}),Le&&(0,Y.jsxs)(Li,{ref:X,isContained:Jt||_t&&!be,enableBackgroundBlur:!((c=R.detailPageConfig)!=null&&c.showThumbnailAsBackground)&&((l=R.detailPageConfig)==null?void 0:l.enableBackgroundBlur),onClose:()=>Qt(),children:[(0,Y.jsxs)(`div`,{\"data-cy\":`detail-page-wrapper`,className:`detail-page-wrapper ${((u=R.detailPageConfig)==null?void 0:u.displayMode)===`modal`?`modal-mode`:``} ${G.pageType===`detailPage`||G.pageType===`searchPage`?`show`:``} ${((d=R.detailPageConfig)==null?void 0:d.displayMode)!==`modal`&&!((f=R.detailPageConfig)!=null&&f.showThumbnailAsBackground)&&(p=R.detailPageConfig)!=null&&p.enableBackgroundBlur?`background-blur`:``}`,style:{...((m=R.detailPageConfig)==null?void 0:m.modalBackgroundColor)&&{\"--modal-bg-color\":`#${R.detailPageConfig.modalBackgroundColor}`},...((h=R.detailPageConfig)==null?void 0:h.modalFontColor)&&{\"--modal-font-color\":`#${R.detailPageConfig.modalFontColor}`}},...((g=R.detailPageConfig)==null?void 0:g.displayMode)===`modal`&&{onClick:e=>{e.target===e.currentTarget&&Qt()}},children:[!ze&&R.searchBar&&(G.pageType===`detailPage`||G.pageType===`searchPage`)&&(0,Y.jsx)(Fi,{detailPageWithinBorder:_t&&!be,enableBackgroundBlur:!((_=R.detailPageConfig)!=null&&_.showThumbnailAsBackground)&&((v=R.detailPageConfig)==null?void 0:v.enableBackgroundBlur)}),(0,Y.jsx)(Ci,{currentContext:dt?null:it,playout:G.detailPagePlayout||R.playout,borderRadius:R.borderRadius,noStats:R.noStats,detailPageConfig:R.detailPageConfig,blocks:R.blocks})]}),(0,Y.jsx)(`div`,{\"data-cy\":`overview-page-wrapper`,className:`overview-page-wrapper ${G.pageType===`overviewPage`?`show`:``}`,children:G.pageType===`overviewPage`&&(0,Y.jsx)(Ti,{currentContext:it,detailPageConfig:R.detailPageConfig})})]}),(0,Y.jsx)(mn,{ref:Lt,\"data-cy\":`grid-page-wrapper`,className:`grid-page-wrapper ${G.pageType===`gridPage`?`show`:``} ${pn?`within-channel-border`:``}`,...!pn&&{onCancel:e=>e.preventDefault()},children:G.pageType===`gridPage`&&(0,Y.jsx)(Ei,{})}),R.searchBar&&((y=R.blocks)==null?void 0:y.length)>0&&![`FeaturedHeader`,`HeaderLogoTitle`].includes(R.blocks[0].type)&&(0,Y.jsx)(`div`,{className:`search-spacer`}),P.navigationConfig&&((x=P.navigationConfig.items)==null?void 0:x.length)>0&&(0,Y.jsx)(Ii,{config:P.navigationConfig}),R.blocks.map(e=>un(e,L,P))]})]})})})},na=`.bb-channel-app{--bb-channel-dropdown-arrow:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e\");--bb-channel-dropdown-hover-bg:#dddddd80;--bb-channel-dropdown-focus-bg:#dddddd80;--bb-channel-dropdown-option-bg:#dcdcdc;--bb-channel-dropdown-option-color:#000;--bb-channel-dropdown-option-hover-bg:#f3f4f6;--bb-channel-dropdown-option-selected-bg:#e5e7eb;--bb-channel-contained-header-background:#1e1e1e;--bb-channel-contained-header-gradient:linear-gradient(0deg, #1e1e1e 0%, var(--bb-channel-contained-header-background) 75%);--bb-channel-contained-header-gradient-with-top:linear-gradient(to top, #ffffffbf 0%, #fff0 70%, #fff0 75%, #ffffffbf 100%);--bb-channel-button-color:#141414;--bb-channel-button-color-hover:#fff;--bb-channel-progress-bar-background:#eaeaea9e;--bb-channel-progress-bar-color:#1e1e1e;--bb-channel-progress-bar-color-inactive:#858585;--bb-channel-scroll-bar-color:#141414;--bb-channel-panel-color:#e9e9e9;--bb-channel-search-bar-color:#e6eaeb;--bb-channel-search-bar-focus-color:#ccd4d7;--hover-outline-color:#000;--hover-outline-glow:#00000026}.bb-channel-app.dark-theme,.bb-channel-app.overview-page-active{--bb-channel-dropdown-arrow:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e\");--bb-channel-dropdown-hover-bg:#141414;--bb-channel-dropdown-focus-bg:#141414;--bb-channel-dropdown-option-bg:#141414;--bb-channel-dropdown-option-color:#f9fafb;--bb-channel-dropdown-option-hover-bg:#292929;--bb-channel-dropdown-option-selected-bg:#636363;--bb-channel-contained-header-gradient-with-top:linear-gradient(to top, #1e1e1ebf 0%, #1e1e1e00 70%, #1e1e1e00 75%, #1e1e1ebf 100%);--bb-channel-button-color:#fff;--bb-channel-button-color-hover:#141414;--bb-channel-progress-bar-background:#3333339e;--bb-channel-progress-bar-color:#fff;--bb-channel-progress-bar-color-inactive:#7c7c7c;--bb-channel-scroll-bar-color:#424242;--bb-channel-panel-color:#2d2d2d;--bb-channel-search-bar-color:#3a3a3280;--bb-channel-search-bar-focus-color:#545454;--hover-outline-color:#fff;--hover-outline-glow:#ffffff26}.bb-channel-shadow-wrapper{all:initial;-webkit-overflow-scrolling:touch;-webkit-user-select:none;user-select:none;width:100%;height:100%;overflow:hidden}.bb-channel-shadow-wrapper *{scrollbar-width:thin;box-sizing:border-box}.bb-channel-shadow-wrapper .error-message-container{z-index:9999;background-color:#00000040;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}blockquote{border-left:5px solid #ccc;margin-left:0;margin-right:0;padding-left:1.5em;padding-right:1.5em;font-style:italic;overflow:hidden}:where(button){cursor:pointer;text-align:inherit;font-size:inherit;font-weight:inherit;color:inherit;font:inherit;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;--bb-ring-color:white;--bb-ring-color-inner:white;background:0 0;border:none;outline:none;padding:0;line-height:normal}:where(button):not(:has(svg)):focus-visible{box-shadow:#000 0 0 0 1px inset, var(--bb-ring-color) 0 0 0 3px inset}:where(button):focus-visible svg{filter:drop-shadow(0 0 2px var(--bb-ring-color-inner)) drop-shadow(0 0 4px var(--bb-ring-color))}:where(button):disabled{cursor:default;pointer-events:none}:where(button).disabled{cursor:default;pointer-events:none}[aria-hidden=true] :where(button){pointer-events:none}.bb-channel-app{width:100%;max-height:100%;max-width:var(--bb-channel-max-width);scroll-behavior:smooth;box-sizing:border-box;font-family:var(--bb-channel-secondary-font-family);color:var(--bb-channel-secondary-color);--base-font-size:var(--bb-base-font-size,1rem);--max-player-block-width:1800px;--text-max-width:90ch;--focus-visible-shadow:inset 0px 0px 0px 2px var(--bb-channel-search-bar-focus-color);--base-padding:16px;margin:0 auto;position:relative;overflow:hidden auto;container:channel-app/inline-size}.bb-channel-app .bb-button{font-weight:600}.bb-channel-app .bb-channel-block-title{margin-bottom:.4em}.bb-channel-app .featured-title{margin-bottom:.83em}.bb-channel-app :not(:-webkit-any(.mobile-menu-button,.bb-channel-navigation-bar,h2,h3,h4,h5,h6,.bb-channel-block-title,:where(h2,h3,h4,h5,h6,.bb-channel-block-title,.mobile-menu-button,.bb-channel-navigation-bar) *)){font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-body,1));color:var(--bb-channel-secondary-color);font-family:var(--bb-channel-secondary-font-family)}.bb-channel-app :not(:-moz-any(.mobile-menu-button,.bb-channel-navigation-bar,h2,h3,h4,h5,h6,.bb-channel-block-title,:where(h2,h3,h4,h5,h6,.bb-channel-block-title,.mobile-menu-button,.bb-channel-navigation-bar) *)){font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-body,1));color:var(--bb-channel-secondary-color);font-family:var(--bb-channel-secondary-font-family)}.bb-channel-app :not(:is(.mobile-menu-button,.bb-channel-navigation-bar,h2,h3,h4,h5,h6,.bb-channel-block-title,:where(h2,h3,h4,h5,h6,.bb-channel-block-title,.mobile-menu-button,.bb-channel-navigation-bar) *)){font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-body,1));color:var(--bb-channel-secondary-color);font-family:var(--bb-channel-secondary-font-family)}.bb-channel-app h2,.bb-channel-app .featured-title{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-featured-title,2))}.bb-channel-app h3{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-video-title-detail,1.75))}.bb-channel-app h4,.bb-channel-app .text-xl{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-playlist-title,1.5))}.bb-channel-app h5,.bb-channel-app .text-lg{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-subheading,1.25))}.bb-channel-app h6{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-small-text,.75))}.bb-channel-app p,.bb-channel-app .text-md,.bb-channel-app .description-text{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-body,1))}.bb-channel-app .text-sm{font-size:calc(var(--base-font-size) * .875)}.bb-channel-app .text-xs{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-small-text,.75))}.bb-channel-app h2,.bb-channel-app h3,.bb-channel-app h4,.bb-channel-app h5,.bb-channel-app h6,.bb-channel-app .description-text,.bb-channel-app .text-xl,.bb-channel-app .text-lg,.bb-channel-app .text-md,.bb-channel-app .text-sm,.bb-channel-app .text-xs{max-width:var(--text-max-width);margin:0}.bb-channel-app :where(svg):where(:not([fill=none])){fill:var(--play-icon-color,var(--bb-channel-primary-color,white))}.bb-channel-app :where(svg) :where(path:not(:-webkit-any([fill=none],[stroke]))){fill:var(--play-icon-color,var(--bb-channel-primary-color,white))}.bb-channel-app :where(svg) :where(path:not(:-moz-any([fill=none],[stroke]))){fill:var(--play-icon-color,var(--bb-channel-primary-color,white))}.bb-channel-app :where(svg) :where(path:not(:is([fill=none],[stroke]))){fill:var(--play-icon-color,var(--bb-channel-primary-color,white))}.bb-channel-app h2,.bb-channel-app h3,.bb-channel-app h4,.bb-channel-app h5,.bb-channel-app h6,.bb-channel-app .bb-channel-block-title,.bb-channel-app h2 *,.bb-channel-app h3 *,.bb-channel-app h4 *,.bb-channel-app h5 *,.bb-channel-app h6 *,.bb-channel-app .bb-channel-block-title *{font-family:var(--bb-channel-primary-font-family);color:var(--bb-channel-primary-color)}.bb-channel-app.dark-theme .bg-neutral{--bb-channel-primary-color:white;--bb-channel-secondary-color:white}.bb-channel-app.light-theme .bg-neutral{--bb-channel-primary-color:black;--bb-channel-secondary-color:black}.bb-channel-app.no-gradients .bb-scroll-wrapper{--gradient-size:var(--bb-playlist-gutter,10px);--slider-mask:linear-gradient(to right, var(--mask-start-color) 0, var(--mask-start-color) var(--gradient-size), black var(--gradient-size), black calc(100% - var(--gradient-size)), var(--mask-end-color) calc(100% - var(--gradient-size)), var(--mask-end-color) 100%)}.bb-channel-app *,.bb-channel-app :before,.bb-channel-app :after{box-sizing:border-box}.bb-channel-app>*{padding:0 var(--bb-channel-padding,10px) 0 var(--bb-channel-padding,10px);margin:0 auto}.bb-channel-app>.bb-channel-featured-header-wrapper{padding:0;padding-bottom:var(--base-padding)}.bb-channel-app .search-spacer{height:3.5em}.bb-channel-app .search-highlight{--c:#ffffa3;color:#000;font-style:normal;display:inline-block;position:relative}.bb-channel-app .search-highlight:after{z-index:-1;content:\"\";background-color:var(--c);opacity:.75;border-radius:4px;width:calc(100% + 1px);height:100%;position:absolute;top:0;left:0;transform:scaleX(1.02)}.bb-channel-app.bb-protected{pointer-events:none;background-color:var(--bb-channel-background-color,#fff);height:100%;position:absolute;overflow:hidden}.bb-channel-app.stay-within-channel{transform:translateZ(0)}.bb-channel-app.detail-page-active,.bb-channel-app.overview-page-active,.bb-channel-app.search-page-active,.bb-channel-app.grid-page-active{overflow:hidden}.ref-wrapper.loading{min-height:300px}.bb-channel-size-S .ref-wrapper.loading{min-height:150px}.bb-channel-size-M .ref-wrapper.loading{min-height:200px}.bb-channel-block{padding-top:var(--base-padding);padding-bottom:var(--base-padding)}.bb-channel-block.bb-channel-featured-header-wrapper{margin-bottom:0}.bb-channel-block .bb-channel-block{margin-top:0;margin-bottom:0}.bb-channel-block-title{white-space:nowrap;text-overflow:ellipsis;margin:0 0 4px;font-weight:600;overflow:hidden}.bb-button{border-radius:var(--bb-channel-button-border-radius);color:var(--bb-channel-button-font-color);border:var(--bb-channel-button-border-width) solid var(--bb-channel-button-border-color);background-color:var(--bb-channel-button-background-color);transition:transform .25s,background-color .25s,color .25s,border-color .25s}.bb-button.bb-button-fill{background-color:var(--bb-channel-button-background-color-fill)}.bb-button>*{color:inherit}.bb-button svg path{fill:var(--bb-channel-button-font-color);transition:fill .25s}.bb-button svg rect{stroke:var(--bb-channel-button-background-color);transition:stroke .25s}.bb-button:hover,.bb-button.cypress-hovered{color:var(--bb-channel-button-font-color-hover);border:var(--bb-channel-button-border-width-hover) solid var(--bb-channel-button-border-color-hover);background-color:var(--bb-channel-button-background-color-hover)}.bb-button:focus-visible{color:var(--bb-channel-button-font-color-hover);border:var(--bb-channel-button-border-width-hover) solid var(--bb-channel-button-border-color-hover);background-color:var(--bb-channel-button-background-color-hover)}.bb-button:hover.bb-button-fill,.bb-button.cypress-hovered.bb-button-fill{background-color:var(--bb-channel-button-background-color-fill-hover)}.bb-button:focus-visible.bb-button-fill{background-color:var(--bb-channel-button-background-color-fill-hover)}.bb-button:hover svg path,.bb-button.cypress-hovered svg path{fill:var(--bb-channel-button-font-color-hover)}.bb-button:focus-visible svg path{fill:var(--bb-channel-button-font-color-hover)}.bb-button:hover svg rect,.bb-button.cypress-hovered svg rect{stroke:var(--bb-channel-button-background-color-hover)}.bb-button:focus-visible svg rect{stroke:var(--bb-channel-button-background-color-hover)}.bb-button:focus-visible:not(:has(svg)){box-shadow:var(--bb-channel-button-border-color-hover) 0 0 0 1px inset, #fff 0 0 0 3px inset}.bb-button:focus-visible svg{filter:drop-shadow(0 0 2px var(--bb-channel-button-border-color-hover))}.bb-channel-size-S{--base-font-size:.75rem;--bb-channel-border-radius:var(--bb-channel-border-radius-mobile,var(--bb-channel-border-radius-desktop));--bb-channel-padding:var(--bb-channel-padding-mobile,var(--bb-channel-padding-desktop))}.bb-channel-size-M{--base-font-size:.875rem}.bb-channel-size-L{--base-font-size:.9375rem}.bb-scroll-wrapper{--mask-start-color:black;--mask-end-color:black;--gradient-size:30px;--slider-mask:linear-gradient(to right, var(--mask-start-color) 0%, black var(--gradient-size), black calc(100% - var(--gradient-size)), var(--mask-end-color) 100%);-webkit-mask-image:var(--slider-mask);-webkit-mask-image:var(--slider-mask);mask-image:var(--slider-mask);position:relative}.bb-scroll-wrapper.can-scroll-prev{--mask-start-color:transparent}.bb-scroll-wrapper.can-scroll-next{--mask-end-color:transparent}.bb-scroll-wrapper.initialized{overflow:visible}.bb-scroll-wrapper.initialized .bb-scroll-container{scroll-snap-type:x proximity}.bb-scroll-wrapper:before,.bb-scroll-wrapper:after{content:\"\";z-index:1;width:52px;height:20px;position:absolute;bottom:0}.bb-scroll-wrapper:before{left:0}.bb-scroll-wrapper:after{right:0}.bb-scroll-container{gap:var(--item-gap,4px);overflow-anchor:none;padding-inline:var(--bb-playlist-gutter,10px);scroll-padding-inline:var(--bb-playlist-gutter,10px);scroll-snap-type:none;scroll-behavior:auto;scroll-snap-align:start;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;padding-bottom:4px;display:flex;overflow:auto clip}.bb-scroll-container::-webkit-scrollbar{display:none}.bb-scroll-container.dragging{cursor:grabbing;scroll-behavior:auto}.bb-scroll-item{scroll-snap-align:start;scroll-snap-stop:always;width:calc(var(--item-height) * var(--carousel-aspect-ratio));flex:none;position:relative}.bb-scroll-item .bb-channel-list-item-thumbnail{aspect-ratio:var(--carousel-aspect-ratio)}.bb-scroll-item img{display:block}.bb-scroll-item.dragging img{pointer-events:none}.bb-scroll-wrapper.align-left .bb-scroll-container{justify-content:flex-start}.bb-scroll-arrow{cursor:pointer;color:#0000;z-index:5;width:60px;min-height:50px;height:var(--item-height);background:0 0;border:none;outline:none;align-items:center;padding:0;font-size:0;line-height:0;display:flex;position:absolute;top:0;overflow:hidden}.bb-scroll-arrow.next{right:var(--bb-channel-padding);margin-right:calc(-1 * var(--bb-channel-padding))}.bb-scroll-arrow.prev{left:var(--bb-channel-padding);margin-left:calc(-1 * var(--bb-channel-padding))}.bb-scroll-arrow.disabled{cursor:auto;opacity:0;pointer-events:none}.bb-scroll-arrow.disabled.prev{left:-200px}.bb-scroll-arrow.disabled.next{right:-200px}.arrow-right-circle,.arrow-left-circle{opacity:0;transition:all .25s;position:absolute;top:50%;transform:translateY(-50%)}.bb-scroll-wrapper:hover .bb-scroll-arrow:not(.disabled) .arrow-right-circle,.bb-scroll-wrapper:hover .bb-scroll-arrow:not(.disabled) .arrow-left-circle,.bb-scroll-wrapper:focus-within .bb-scroll-arrow:not(.disabled) .arrow-right-circle,.bb-scroll-wrapper:focus-within .bb-scroll-arrow:not(.disabled) .arrow-left-circle{opacity:1}.bb-channel-size-S .bb-channel-carousel,.bb-channel-size-S .bb-channel-cliplist-outer-wrapper{position:relative}.bb-channel-size-M .arrow-left-circle,.bb-channel-size-L .arrow-left-circle,.bb-channel-size-XL .arrow-left-circle,.bb-channel-size-XXL .arrow-left-circle,.bb-channel-size-XXXL .arrow-left-circle{width:90%;left:0}.bb-channel-size-M .bb-scroll-wrapper:hover .arrow-left-circle,.bb-channel-size-L .bb-scroll-wrapper:hover .arrow-left-circle,.bb-channel-size-XL .bb-scroll-wrapper:hover .arrow-left-circle,.bb-channel-size-XXL .bb-scroll-wrapper:hover .arrow-left-circle,.bb-channel-size-XXXL .bb-scroll-wrapper:hover .arrow-left-circle{left:15%}.bb-channel-size-M .arrow-right-circle,.bb-channel-size-L .arrow-right-circle,.bb-channel-size-XL .arrow-right-circle,.bb-channel-size-XXL .arrow-right-circle,.bb-channel-size-XXXL .arrow-right-circle{width:90%;right:0}.bb-channel-size-M .bb-scroll-wrapper:hover .arrow-right-circle,.bb-channel-size-L .bb-scroll-wrapper:hover .arrow-right-circle,.bb-channel-size-XL .bb-scroll-wrapper:hover .arrow-right-circle,.bb-channel-size-XXL .bb-scroll-wrapper:hover .arrow-right-circle,.bb-channel-size-XXXL .bb-scroll-wrapper:hover .arrow-right-circle{right:15%}.bb-channel-size-M .arrow-left-circle{width:80%}.bb-channel-size-M .bb-scroll-wrapper:hover .arrow-left-circle{left:10%}.bb-channel-size-M .arrow-right-circle{width:80%}.bb-channel-size-M .bb-scroll-wrapper:hover .arrow-right-circle{right:10%}.bb-channel-size-L .arrow-left-circle{left:25%}.bb-channel-size-L .bb-scroll-wrapper:hover .arrow-left-circle{left:10%}.bb-channel-size-L .arrow-right-circle{right:25%}.bb-channel-size-L .bb-scroll-wrapper:hover .arrow-right-circle{right:10%}.bb-channel-touch-device .bb-scroll-arrow{display:none!important}.bb-fade-slider{position:relative}.bb-fade-slider-track{width:100%;position:relative}.bb-fade-slide{opacity:0;z-index:1;width:100%;height:100%;transition:opacity var(--fade-speed,.5s) ease;pointer-events:none;position:absolute;top:0;left:0}.bb-fade-slide.active{opacity:1;z-index:2;pointer-events:auto;width:auto;height:auto;position:relative}.bb-fade-arrow{cursor:pointer;z-index:5;color:#0000;background:0 0;border:none;justify-content:center;align-items:center;width:60px;font-size:0;display:flex;position:absolute;top:0;bottom:0}.bb-fade-arrow.prev{left:0}.bb-fade-arrow.next{right:0}.bb-fade-dots{z-index:10;border-radius:256px;justify-content:center;align-items:center;gap:5px;padding:8px;list-style:none;display:flex;position:relative}.bb-fade-dot{background-color:var(--bb-channel-progress-bar-color-inactive,#fff);cursor:pointer;border:none;border-radius:256px;width:8px;height:8px;padding:0;transition:background-color .25s,width .25s;position:relative}.bb-fade-dot:after{content:\"\";border-radius:inherit;position:absolute;top:0;bottom:0;left:0;right:0;transform:scale(2.5)}.bb-fade-dot.active{background-color:var(--bb-channel-progress-bar-color,#000);width:40px}.bb-fade-dot.active:after{transform:scaleY(2.5)}.bb-fade-dot.active.with-progress{background:linear-gradient(to right, var(--bb-channel-progress-bar-color,#000) 50%, var(--bb-channel-progress-bar-color-inactive,#fff) 50%);animation:bb-dot-progress var(--autoplay-duration,6s) linear forwards;background-position:100%;background-size:200% 100%}@keyframes bb-dot-progress{0%{background-position:100%}to{background-position:0}}.bb-channel-size-S .bb-fade-dots,.bb-channel-size-M .bb-fade-dots{gap:5px}.bb-channel-size-S .bb-fade-dot,.bb-channel-size-M .bb-fade-dot{width:6px;height:6px}.bb-channel-size-S .bb-fade-dot.active,.bb-channel-size-M .bb-fade-dot.active{width:30px}.bb-channel-resume-card{max-width:360px;font-family:var(--bb-channel-primary-font-family);color:#fff;align-items:center;gap:12px;display:flex}.bb-channel-resume-card>button{text-align:center;cursor:pointer;width:-moz-fit-content;width:fit-content;height:45px;font-size:clamp(11px * var(--bb-font-scale-featured-button,1), 13px * var(--bb-font-scale-featured-button,1), 16px * var(--bb-font-scale-featured-button,1));text-transform:uppercase;white-space:nowrap;justify-content:center;align-items:center;gap:12px;padding-inline-start:20px;padding-inline-end:20px;font-weight:700;text-decoration:none;display:flex}.bb-channel-resume-card>button .play-icon{flex-shrink:0;width:14px}.bb-channel-resume-card .bb-channel-resume-info{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.bb-channel-resume-card .bb-channel-resume-titles{align-items:baseline;gap:6px;min-width:0;display:flex}.bb-channel-resume-card .bb-channel-resume-title{white-space:nowrap;text-overflow:ellipsis;font-size:.875em;font-weight:600;overflow:hidden}.bb-channel-resume-card .bb-channel-resume-subtitle{opacity:.75;white-space:nowrap;text-overflow:ellipsis;font-size:.75em;overflow:hidden}.bb-channel-resume-card .bb-channel-resume-progress-row{align-items:center;gap:8px;display:flex}.bb-channel-resume-card .bb-channel-resume-progress{background:#ffffff40;border-radius:999px;flex:1;height:3px;overflow:hidden}.bb-channel-resume-card .bb-channel-resume-progress-fill{border-radius:inherit;background:var(--watched-progress-color,#4a90e2);height:100%;transition:width .25s linear}.bb-channel-resume-card .bb-channel-resume-time{opacity:.75;white-space:nowrap;font-size:.75em;font-style:italic}.bb-channel-block-title{align-items:center;gap:12px;display:flex}.bb-channel-block-title button{color:inherit;font:inherit;text-align:left;background:0 0;border:none;margin:0;padding:0}.bb-channel-block-title button.is-collection{cursor:pointer}.bb-channel-block-title button:hover{opacity:.8}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:.75;font-size:calc(1.2rem * var(--bb-font-scale-playlist-title,1));color:inherit;cursor:pointer;background:0 0;background-image:var(--bb-channel-dropdown-arrow);padding:4px 8px;background-position:right 8px center;background-repeat:no-repeat;background-size:16px;border:0;border-radius:8px;padding-right:32px;font-weight:500;position:relative}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select::picker-icon{display:none}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select:hover{opacity:1;background-color:var(--bb-channel-dropdown-hover-bg)}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select:focus{opacity:1;background-color:var(--bb-channel-dropdown-focus-bg);outline:none}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select.loading{opacity:.6;cursor:wait;pointer-events:none}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select option{font-size:calc(1.2rem * var(--bb-font-scale-playlist-title,1));background-color:var(--bb-channel-dropdown-option-bg);color:var(--bb-channel-dropdown-option-color);padding:8px 12px;display:flex}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select option:hover{background-color:var(--bb-channel-dropdown-option-hover-bg)}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select option:checked{background-color:var(--bb-channel-dropdown-option-selected-bg);border:2px solid red}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select option:first-of-type{border-radius:8px 8px 0 0}.bb-channel-block-subtitle select.bb-channel-block-subtitle-select option:last-of-type{border-radius:0 0 8px 8px}.bb-channel-header-wrapper,.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header,.bb-channel-clipgrid .bb-channel-grid-header,.bb-channel-carousel .bb-channel-carousel-header{justify-content:space-between;align-items:center;margin:0;display:flex}.bb-channel-header-wrapper .header-metadata .header-title,.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-metadata .header-title,.bb-channel-clipgrid .bb-channel-grid-header .header-metadata .header-title,.bb-channel-carousel .bb-channel-carousel-header .header-metadata .header-title{flex-direction:column;align-items:flex-start;display:flex}.bb-channel-header-wrapper .header-metadata .header-title:empty,.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-metadata .header-title:empty,.bb-channel-clipgrid .bb-channel-grid-header .header-metadata .header-title:empty,.bb-channel-carousel .bb-channel-carousel-header .header-metadata .header-title:empty{display:none}.bb-channel-header-wrapper .header-right,.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-right,.bb-channel-clipgrid .bb-channel-grid-header .header-right,.bb-channel-carousel .bb-channel-carousel-header .header-right{margin-left:auto}.bb-channel-header-wrapper:empty,.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header:empty,.bb-channel-clipgrid .bb-channel-grid-header:empty,.bb-channel-carousel .bb-channel-carousel-header:empty{display:none}.bb-channel-carousel>.slider-container>.header-logo{object-fit:contain;width:auto;height:max(43px,min(16cqw,55px));margin-bottom:8px;display:none}.bb-channel-carousel:has(.layout-logo-top)>.slider-container>.header-logo{display:block}.bb-channel-carousel .bb-channel-block-title,.bb-channel-carousel .header-description{color:var(--playlist-font-color,inherit)}.bb-channel-carousel .bb-channel-carousel-header{padding:8px var(--bb-playlist-gutter,10px) 4px;align-items:flex-end;gap:20px}.bb-channel-carousel .bb-channel-carousel-header:not(:has(.header-description)){align-items:center}.bb-channel-carousel .bb-channel-carousel-header .header-metadata{flex-direction:column;gap:4px;display:flex}.bb-channel-carousel .bb-channel-carousel-header .header-description{-webkit-line-clamp:3;line-clamp:3;max-width:max(200px,min(40cqw,600px));line-height:1.4;font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-playlist-description,1));-webkit-box-orient:vertical;margin:0;display:-webkit-box;overflow:hidden}.bb-channel-carousel .bb-channel-carousel-header .header-right{flex-direction:column;align-self:center;align-items:flex-end;gap:16px;margin-left:auto;display:flex}.bb-channel-carousel .bb-channel-carousel-header .header-logo{object-fit:contain;width:auto;height:max(43px,min(16cqw,55px))}.bb-channel-carousel .bb-channel-carousel-header.layout-logo-left .header-logo{align-self:center}.bb-channel-carousel .bb-channel-carousel-header.layout-logo-top .header-logo{display:none}.bb-channel-carousel .alignment-false .bb-scroll-container{margin-left:0}.bb-channel-carousel .alignment-true .bb-scroll-container{margin-left:calc(-54px - var(--bb-playlist-gutter,10px))}.bb-channel-carousel .bb-scroll-item[data-index=\"0\"] .bb-channel-list-item{transform-origin:50%}.bb-channel-carousel .bb-scroll-item[data-index=\"0\"] .bb-channel-list-item:hover{transform-origin:10%}.bb-channel-carousel .align-left .bb-scroll-container{margin-left:0}.bb-channel-size-S .alignment-true .bb-scroll-container{margin-left:0!important}.bb-channel-touch-device .alignment-true .bb-scroll-container{margin-left:calc(-56px - var(--bb-playlist-gutter,10px))!important}.bb-channel-clipgrid>.header-logo{object-fit:contain;width:auto;height:max(43px,min(16cqw,55px));margin-bottom:8px;display:none}.bb-channel-clipgrid:has(.layout-logo-top)>.header-logo{display:block}.bb-channel-clipgrid .bb-channel-block-title,.bb-channel-clipgrid .header-description{color:var(--playlist-font-color,inherit)}.bb-channel-clipgrid .bb-channel-grid-header{padding:8px var(--bb-playlist-gutter,10px) 4px;align-items:flex-end;gap:20px}.bb-channel-clipgrid .bb-channel-grid-header:not(:has(.header-description)){align-items:center}.bb-channel-clipgrid .bb-channel-grid-header .header-metadata{flex-direction:column;gap:4px;display:flex}.bb-channel-clipgrid .bb-channel-grid-header .header-description{-webkit-line-clamp:3;line-clamp:3;max-width:max(200px,min(40cqw,600px));line-height:1.4;font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-playlist-description,1));-webkit-box-orient:vertical;margin:0;display:-webkit-box;overflow:hidden}.bb-channel-clipgrid .bb-channel-grid-header .header-right{flex-direction:column;align-self:center;align-items:flex-end;gap:16px;margin-left:auto;display:flex}.bb-channel-clipgrid .bb-channel-grid-header .header-logo{object-fit:contain;width:auto;height:max(43px,min(16cqw,55px))}.bb-channel-clipgrid .bb-channel-grid-header.layout-logo-left .header-logo{align-self:center}.bb-channel-clipgrid .bb-channel-grid-header.layout-logo-top .header-logo{display:none}.bb-channel-clipgrid .grid-columns{gap:var(--item-gap,8px);grid-template-rows:auto;display:grid}.bb-channel-clipgrid .grid-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.bb-channel-clipgrid .grid-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.bb-channel-clipgrid .grid-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.bb-channel-clipgrid .grid-columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}.bb-channel-clipgrid .grid-columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}.bb-channel-clipgrid .bb-channel-block-title.search-mode{margin-top:0}.bb-channel-clipgrid-buttons{justify-content:space-between;margin-top:22px;display:flex}.bb-channel-clipgrid-buttons.next-only{justify-content:flex-end}.bb-channel-clipgrid-buttons.load-more{justify-content:center}.bb-channel-clipgrid-buttons .clipgrid-button{text-align:center;text-transform:uppercase;cursor:pointer;-webkit-user-select:none;user-select:none;width:15%;min-width:110px;padding:12px}.bb-channel-clipgrid-buttons .clipgrid-button.load-more-button{width:auto;min-width:150px}.bb-channel-clipgrid-buttons .clipgrid-button.load-more-button:disabled{opacity:.6;cursor:default}.ref-wrapper{background-color:var(--promo-bg-color,transparent);background-image:var(--promo-bg-image,none);padding:12px var(--bb-channel-padding) 16px;background-position:bottom;background-repeat:no-repeat;background-size:cover;overflow:hidden}.bb-channel-cliplist-outer-wrapper{position:relative}.bb-channel-cliplist-outer-wrapper .bb-scroll-item:first-of-type .bb-channel-list-item{transform-origin:50%}.bb-channel-cliplist-outer-wrapper .bb-scroll-item:first-of-type .bb-channel-list-item:hover{transform-origin:10%}.bb-channel-cliplist-outer-wrapper .bb-scroll-item:last-of-type .bb-channel-list-item{transform-origin:100%}.bb-channel-cliplist-outer-wrapper .align-left .bb-scroll-container{margin-left:0}.bb-channel-cliplist-outer-wrapper>.slider-container>.header-logo{object-fit:contain;width:auto;height:max(43px,min(16cqw,55px));margin-bottom:8px;display:none}.bb-channel-cliplist-outer-wrapper:has(.layout-logo-top)>.slider-container>.header-logo{display:block}.bb-channel-cliplist-outer-wrapper .bb-channel-block-title,.bb-channel-cliplist-outer-wrapper .header-description{color:var(--playlist-font-color,inherit)}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header{padding:8px var(--bb-playlist-gutter,10px) 4px;align-items:flex-end;gap:20px}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header:not(:has(.header-description)){align-items:center}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-metadata{flex-direction:column;gap:4px;display:flex}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-description{-webkit-line-clamp:3;line-clamp:3;max-width:max(200px,min(40cqw,600px));line-height:1.4;font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-playlist-description,1));-webkit-box-orient:vertical;margin:0;display:-webkit-box;overflow:hidden}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-right{flex-direction:column;align-self:center;align-items:flex-end;gap:16px;margin-left:auto;display:flex}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-logo{object-fit:contain;width:auto;height:max(43px,min(16cqw,55px))}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header.layout-logo-left .header-logo{align-self:center}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header.layout-logo-top .header-logo{display:none}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-right:not(:has(.progress-tab-container)){align-self:center}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .progress-tab-container{background-color:var(--bb-channel-progress-bar-background,#545454);border-radius:256px;justify-content:center;align-items:center;gap:5px;height:100%;padding:8px;display:flex}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .progress-tab-container .progress-tab{background-color:var(--bb-channel-progress-bar-color-inactive,#fff);cursor:pointer;border-radius:256px;width:8px;height:8px;transition:background-color .25s,width .25s;position:relative}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .progress-tab-container .progress-tab:before{content:\"\";position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px}.bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .progress-tab-container .progress-tab.active{background-color:var(--bb-channel-progress-bar-color,#000);width:40px}.bb-channel-cliplist-outer-wrapper .bb-scroll-item .view-all-wrapper{cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:auto;padding:0;display:flex}.bb-channel-cliplist-outer-wrapper .bb-scroll-item .view-all-wrapper .view-all-count{z-index:5;font-size:calc(.8rem * var(--bb-channel-font-size-scale,1));color:#fff;flex-direction:column;align-items:center;gap:4px;font-weight:400;display:flex;position:absolute}.bb-channel-cliplist-outer-wrapper .bb-scroll-item .view-all-wrapper .view-all-count .view-all-label{font-size:calc(1rem * var(--bb-channel-font-size-scale,1));letter-spacing:.05em;color:#fff;font-weight:600}.bb-channel-cliplist-outer-wrapper .bb-scroll-item .view-all-wrapper .view-all-count .view-all-more{color:#fff}.bb-channel-cliplist-outer-wrapper .bb-scroll-item .view-all-wrapper>img{object-fit:cover;filter:brightness(.5)blur(.5px);transition:filter .25s}.bb-channel-cliplist-outer-wrapper .bb-scroll-item .view-all-wrapper:hover>img{filter:brightness(.4)}.bb-channel-cliplist-outer-wrapper .bb-channel-block-title{z-index:2;margin-bottom:4px}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .progress-tab-container{padding:4px}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .progress-tab-container .progress-tab{width:6px;height:6px}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .progress-tab-container .progress-tab.active{width:30px}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header{padding:10px var(--bb-playlist-gutter,10px) 8px;flex-wrap:nowrap;align-items:flex-start;gap:12px;display:flex}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-metadata{flex:1;min-width:0}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-metadata .header-title .bb-channel-block-title{white-space:nowrap;text-overflow:ellipsis;max-width:100%;display:inline-block;overflow:hidden}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-metadata .header-title .header-description{opacity:.7;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:1.3;display:-webkit-box;overflow:hidden}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-right{flex-shrink:0;align-self:flex-end;align-items:flex-end;margin-left:auto}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header .header-logo{height:24px}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header.layout-logo-left .header-logo,.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-channel-cliplist-header.layout-logo-right .header-logo{display:none}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper>.slider-container>.header-logo{display:block!important}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper.bb-channel-cliplist-opengrid-true{height:auto}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper.bb-channel-cliplist-opengrid-true .cliplist-grid{border-radius:var(--bb-channel-border-radius,5px) var(--bb-channel-border-radius,5px) 0 0;top:unset;z-index:10;margin:0 auto;position:fixed;bottom:0;left:0}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper.bb-channel-cliplist-opengrid-true .cliplist-grid .bb-channel-block-title{margin-right:48px}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .cliplist-grid-content{height:min(var(--grid-height-mobile), var(--grid-max-height));grid-template-columns:repeat(auto-fill,minmax(139px,1fr))}.bb-channel-size-S .bb-channel-cliplist-outer-wrapper .bb-scroll-wrapper.initialized{padding:0!important}.description-wrapper .description-text{word-break:break-word;line-height:1.5;font-family:var(--bb-channel-secondary-font-family);color:var(--modal-font-color,var(--bb-channel-secondary-color));margin:10px 0;overflow:auto}.description-wrapper .description-text *{color:var(--modal-font-color,var(--bb-channel-secondary-color))}.description-wrapper .description-show-more-less{font-size:calc(14px * var(--bb-font-scale-detail-button,1));cursor:pointer;text-transform:uppercase;margin-top:4px;margin-bottom:0;padding-bottom:0;font-weight:800;display:inline-block}.description-wrapper.minimize-description .description-text{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:3;text-wrap:initial;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.description-wrapper.theme-detailPage,.description-wrapper.theme-detailPage-fullWidth{max-width:var(--text-max-width)}.description-wrapper.theme-detailPage .description-text,.description-wrapper.theme-detailPage-fullWidth .description-text{--base-font-size:clamp(.9rem * var(--bb-font-scale-detail-description,1), 1em * var(--bb-font-scale-detail-description,1), 1.3rem * var(--bb-font-scale-detail-description,1))}.description-wrapper.theme-detailPage .description-text p,.description-wrapper.theme-detailPage-fullWidth .description-text p{white-space:normal;width:calc(100% - 10px);margin:0;padding-right:10px}.description-wrapper.theme-detailPage .description-text a,.description-wrapper.theme-detailPage-fullWidth .description-text a{font-weight:500}.description-wrapper.theme-detailPage-fullWidth .description-show-more-less{color:var(--modal-font-color,white)}.description-wrapper.theme-detailPage{scrollbar-width:thin;scrollbar-color:transparent transparent}.description-wrapper.theme-detailPage::-webkit-scrollbar{width:10px;height:90%}.description-wrapper.theme-detailPage::-webkit-scrollbar-track{border-radius:var(--bb-channel-border-radius,5px);background-color:#0000;margin-top:20px;margin-bottom:20px}.description-wrapper.theme-detailPage::-webkit-scrollbar-thumb{border-radius:var(--bb-channel-border-radius,5px);background-color:#0000}.description-wrapper.theme-detailPage::-webkit-scrollbar-thumb:hover{background:#999}.description-wrapper.theme-detailPage:hover{scrollbar-width:thin;scrollbar-color:black transparent}.description-wrapper.theme-detailPage:focus-visible{scrollbar-width:thin;scrollbar-color:black transparent}.description-wrapper.theme-detailPage:focus-visible::-webkit-scrollbar-track{background-color:#0000}.description-wrapper.theme-detailPage:hover::-webkit-scrollbar-track{background-color:#0000}.description-wrapper.theme-detailPage:focus-visible::-webkit-scrollbar-thumb{background-color:var(--bb-channel-scroll-bar-color,#000)}.description-wrapper.theme-detailPage:hover::-webkit-scrollbar-thumb{background-color:var(--bb-channel-scroll-bar-color,#000)}.description-wrapper.theme-detailPage:focus-visible::-webkit-scrollbar-thumb:hover{background-color:#999}.description-wrapper.theme-detailPage:hover::-webkit-scrollbar-thumb:hover{background-color:#999}.description-wrapper.theme-detailPage{flex:1;position:relative;overflow:auto;-webkit-mask-image:linear-gradient(#0000 0%,#000 16px calc(100% - 16px),#0000 100%);mask-image:linear-gradient(#0000 0%,#000 16px calc(100% - 16px),#0000 100%)}.description-wrapper.theme-detailPage .description-text{position:absolute}.description-wrapper.theme-overviewPage{max-width:var(--text-max-width);scrollbar-width:thin;scrollbar-color:transparent transparent}.description-wrapper.theme-overviewPage::-webkit-scrollbar{width:10px;height:90%}.description-wrapper.theme-overviewPage::-webkit-scrollbar-track{border-radius:var(--bb-channel-border-radius,5px);background-color:#0000;margin-top:20px;margin-bottom:20px}.description-wrapper.theme-overviewPage::-webkit-scrollbar-thumb{border-radius:var(--bb-channel-border-radius,5px);background-color:#0000}.description-wrapper.theme-overviewPage::-webkit-scrollbar-thumb:hover{background:#999}.description-wrapper.theme-overviewPage:hover{scrollbar-width:thin;scrollbar-color:black transparent}.description-wrapper.theme-overviewPage:focus-visible{scrollbar-width:thin;scrollbar-color:black transparent}.description-wrapper.theme-overviewPage:focus-visible::-webkit-scrollbar-track{background-color:#0000}.description-wrapper.theme-overviewPage:hover::-webkit-scrollbar-track{background-color:#0000}.description-wrapper.theme-overviewPage:focus-visible::-webkit-scrollbar-thumb{background-color:var(--bb-channel-scroll-bar-color,#000)}.description-wrapper.theme-overviewPage:hover::-webkit-scrollbar-thumb{background-color:var(--bb-channel-scroll-bar-color,#000)}.description-wrapper.theme-overviewPage:focus-visible::-webkit-scrollbar-thumb:hover{background-color:#999}.description-wrapper.theme-overviewPage:hover::-webkit-scrollbar-thumb:hover{background-color:#999}.description-wrapper.theme-overviewPage .description-text{--base-font-size:clamp(.9rem * var(--bb-font-scale-overview-description,1), 1em * var(--bb-font-scale-overview-description,1), 1.3rem * var(--bb-font-scale-overview-description,1))}.description-wrapper.theme-overviewPage .description-text p{white-space:normal;width:calc(100% - 10px);margin:0;padding-right:10px}.description-wrapper.theme-overviewPage .description-text a{font-weight:500}.description-wrapper.theme-overviewPage{position:relative;overflow:auto;-webkit-mask-image:linear-gradient(#0000 0%,#000 16px calc(100% - 16px),#0000 100%);mask-image:linear-gradient(#0000 0%,#000 16px calc(100% - 16px),#0000 100%)}.description-wrapper.theme-overviewPage .description-show-more-less{font-size:calc(14px * var(--bb-font-scale-overview-button,1))}.bb-channel-size-S .description-wrapper:not(.theme-overviewPage){visibility:hidden;opacity:0;max-height:0;margin:0;padding:0;transition:all 50ms linear}.bb-channel-detail-page-size-S .description-wrapper.theme-detailPage,.bb-channel-detail-page-size-S .description-wrapper.theme-detailPage-fullWidth,.bb-channel-detail-page-size-M .description-wrapper.theme-detailPage,.bb-channel-detail-page-size-M .description-wrapper.theme-detailPage-fullWidth{visibility:visible;opacity:1;max-height:250px;margin:0;padding:0;transition:all 50ms linear;position:relative}.bb-channel-detail-page-size-S .description-wrapper.theme-detailPage .description-text,.bb-channel-detail-page-size-S .description-wrapper.theme-detailPage-fullWidth .description-text,.bb-channel-detail-page-size-M .description-wrapper.theme-detailPage .description-text,.bb-channel-detail-page-size-M .description-wrapper.theme-detailPage-fullWidth .description-text{position:relative}.bb-channel-detail-page-size-S .description-wrapper.theme-detailPage-fullWidth,.bb-channel-detail-page-size-M .description-wrapper.theme-detailPage-fullWidth{max-height:initial}.bb-channel-featured-wrapper{border-radius:var(--bb-channel-border-radius,5px);max-width:80%;margin:0 auto;position:relative}.bb-channel-featured-wrapper .img-gradient,.bb-channel-featured-wrapper .featured-img,.bb-channel-featured-wrapper .featured-img-mobile{border-radius:var(--bb-channel-border-radius,5px)}.bb-channel-featured-wrapper .featured-title{z-index:2;color:#fff;font-size:calc(1.3em * var(--bb-font-scale-featured-title,1));position:absolute;bottom:57px;left:16px}.bb-channel-featured-wrapper .featured-button{text-align:center;cursor:pointer;width:100%;min-width:135px;max-width:175px;height:45px;font-size:clamp(11px * var(--bb-font-scale-featured-button,1), 13px * var(--bb-font-scale-featured-button,1), 16px * var(--bb-font-scale-featured-button,1));text-transform:uppercase;z-index:2;justify-content:center;align-items:center;gap:12px;margin-top:5px;font-weight:700;text-decoration:none;display:flex;position:absolute;bottom:16px;left:16px}.bb-channel-featured-wrapper .featured-button .play-icon{width:10%}.bb-channel-featured-wrapper .featured-img{object-fit:cover;aspect-ratio:3;z-index:0;width:100%;display:block;position:relative}.bb-channel-featured-wrapper .featured-img-mobile{display:none}.bb-channel-featured-wrapper .image-container-featured{position:relative}.bb-channel-featured-wrapper .img-gradient{z-index:1;object-fit:cover;background:linear-gradient(#0000 20%,#00000080 50%,#000000bf 101%,#000 100%);width:100%;height:100%;display:inline-block;position:absolute;bottom:0}.bb-channel-size-S .bb-channel-featured-wrapper,.bb-channel-size-M .bb-channel-featured-wrapper{max-width:100%}.bb-channel-size-S .bb-channel-featured-wrapper .featured-img,.bb-channel-size-M .bb-channel-featured-wrapper .featured-img{display:none}.bb-channel-size-S .bb-channel-featured-wrapper .featured-img-mobile,.bb-channel-size-M .bb-channel-featured-wrapper .featured-img-mobile{object-fit:cover;aspect-ratio:3/2;width:100%;display:block;position:relative}.bb-channel-size-S .bb-channel-featured-wrapper .img-gradient,.bb-channel-size-M .bb-channel-featured-wrapper .img-gradient{background:linear-gradient(#0000 20%,#0006 40%,#000000bf 101%,#000 100%)}.bb-channel-size-S .bb-channel-featured-wrapper .featured-title,.bb-channel-size-M .bb-channel-featured-wrapper .featured-title{font-size:clamp(13px * var(--bb-font-scale-featured-title,1), 4vw * var(--bb-font-scale-featured-title,1), 1.1em * var(--bb-font-scale-featured-title,1))}.bb-channel-featured-header-wrapper{width:100%;margin-top:0}.bb-channel-featured-header-wrapper .bb-fade-slider:after{width:0}.bb-channel-featured-header-wrapper .featured-embargo-countdown{pointer-events:none;color:#fff;font-family:var(--bb-channel-primary-font-family);padding-right:var(--bb-channel-padding,10px);flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:8px;display:flex}.bb-channel-featured-header-wrapper .featured-embargo-countdown.positioned{z-index:11;margin-bottom:0;position:absolute;bottom:52px;right:0}.bb-channel-featured-header-wrapper .featured-embargo-countdown.no-pagination{z-index:11;margin-bottom:0;position:absolute;bottom:0;right:0}.bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-label{opacity:.75;text-transform:uppercase;letter-spacing:.1em;font-family:var(--bb-channel-primary-font-family)}.bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-units{gap:8px;display:flex}.bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit{align-items:left;flex-direction:column;gap:2px;min-width:56px;display:flex}.bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit:last-child{min-width:unset}.bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-value{font-size:calc(2rem * var(--bb-font-scale-featured-embargo-value,1));font-variant-numeric:tabular-nums;font-weight:700;line-height:1;font-family:var(--bb-channel-primary-font-family)}.bb-channel-featured-header-wrapper .featured-embargo-countdown span.text-xs{opacity:.75;text-transform:uppercase;letter-spacing:.05em;font-family:var(--bb-channel-primary-font-family)}.bb-channel-featured-header-wrapper .featured-slide{position:relative;overflow:hidden}.bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:35%;--mask:linear-gradient(to top, #0000 0%, black var(--bottom-gradient-pct));width:100vw;position:relative;overflow-y:hidden}.bb-channel-featured-header-wrapper .featured-slide .image-container-featured.with-top-gradient{--mask:linear-gradient(to top, #0000 0%, black var(--bottom-gradient-pct), black 75%, #0000 100%)}.bb-channel-featured-header-wrapper .featured-slide .image-container-featured .featured-img{object-fit:cover;width:100%;height:100%;-webkit-mask-image:var(--mask);-webkit-mask-image:var(--mask);mask-image:var(--mask);aspect-ratio:16/9;max-height:90vh;display:block}.bb-channel-featured-header-wrapper .featured-slide .image-container-featured .featured-img-mobile{display:none}.bb-channel-featured-header-wrapper .featured-slide .slide-content{z-index:2;width:100%;height:100%;padding-top:75px;padding-left:var(--bb-channel-padding,10px);padding-right:var(--bb-channel-padding,10px);flex-direction:column;justify-content:flex-end;gap:0;display:flex;position:absolute;bottom:0}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-logo-img{height:40px}.bb-channel-featured-header-wrapper .featured-slide .slide-content .slide-logo-img{height:max(50px,min(6vw,110px))}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;color:var(--bb-channel-primary-color);-webkit-box-orient:vertical;width:max(min(95%,440px),min(50%,36vw));margin:0 0 5px;font-weight:800;line-height:1.2;display:-webkit-box;overflow:hidden}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-description{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:3;white-space:pre-wrap;color:var(--bb-channel-secondary-color);font-family:var(--bb-channel-secondary-font-family);width:max(min(95%,440px),min(50%,36vw));max-width:600px;font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-featured-description,1));-webkit-box-orient:vertical;font-weight:400;display:-webkit-box;overflow:hidden}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button{text-align:center;cursor:pointer;width:-moz-fit-content;width:fit-content;height:45px;font-size:clamp(11px * var(--bb-font-scale-featured-button,1), 13px * var(--bb-font-scale-featured-button,1), 16px * var(--bb-font-scale-featured-button,1));text-transform:uppercase;justify-content:center;align-items:center;gap:12px;margin-top:5px;padding-inline-start:20px;padding-inline-end:20px;font-weight:700;text-decoration:none;display:flex}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button .play-icon{flex-shrink:0;width:14px}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button .featured-button-countdown{font-variant-numeric:tabular-nums;font-weight:400}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button.embargo-locked{cursor:not-allowed;pointer-events:none;opacity:.5}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button.featured-reminder-btn{text-transform:none;font-size:clamp(11px * var(--bb-font-scale-featured-button,1), 13px * var(--bb-font-scale-featured-button,1), 16px * var(--bb-font-scale-featured-button,1))}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button.featured-reminder-btn .bell-icon{fill:currentColor;flex-shrink:0;width:16px;height:16px}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button.featured-reminder-btn.denied{cursor:not-allowed;opacity:.5}.bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button.featured-reminder-btn.featured-reminder-btn-inline{display:none}.bb-channel-featured-header-wrapper .header-logo-wrapper{top:32px;left:var(--bb-channel-padding,10px);position:absolute}.bb-channel-featured-header-wrapper .header-logo-wrapper .featured-logo-img{height:40px}.bb-channel-featured-header-wrapper .bb-fade-slider{--mask:none}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .arrowNextBackground,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .arrowPrevBackground{opacity:0;z-index:1;border-radius:50%;flex-direction:column;justify-content:center;width:50%;height:100%;margin-top:30px;transition:opacity .15s ease-in-out;display:flex;position:absolute}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .arrowNextBackground svg,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .arrowPrevBackground svg{height:100%}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .arrowNextBackground{right:-35%}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .arrowPrevBackground{left:-35%}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .featured-slide{align-items:center;display:flex!important}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.prev,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.next{opacity:0;background-color:#0000;border-radius:5px;width:60px;height:60px;margin:0;transition:opacity .15s ease-in-out,background-color .15s ease-in;position:absolute;top:50%;transform:translateY(-50%)}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.next{right:15px}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.prev{left:15px}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.prev:before{background-color:#fff;top:calc(14% + 16px);left:43%;transform:rotate(135deg)}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.prev:after{background-color:#fff;top:14%;left:43%;transform:rotate(45deg)}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.next:before{background-color:#fff;top:calc(14% + 16px);left:50%}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.next:after{background-color:#fff;top:14%;left:50%}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.prev:before,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.prev:after,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.next:before,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider .bb-fade-arrow.next:after{width:2px;height:25px;transition:width .15s,height .15s}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider{padding:0}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .arrowNextBackground,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .arrowPrevBackground{opacity:1}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.next,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.prev{opacity:1;transition:width .15s,height .15s}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.next:hover,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.prev:hover{opacity:1;border-radius:5px;width:60px;height:60px;margin:0;position:absolute;top:50%;transform:translateY(-50%)}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.next:focus-visible{opacity:1;border-radius:5px;width:60px;height:60px;margin:0;position:absolute;top:50%;transform:translateY(-50%)}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.prev:focus-visible{opacity:1;border-radius:5px;width:60px;height:60px;margin:0;position:absolute;top:50%;transform:translateY(-50%)}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-dot.active{animation:nonexistent}.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.prev:hover:before,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.prev:hover:after,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.next:hover:before,.bb-channel-featured-header-wrapper .bb-fade-slider.bb-header-slider:hover .bb-fade-arrow.next:hover:after{width:5px;height:27px}.bb-channel-featured-header-wrapper .bb-fade-dots{right:var(--bb-channel-padding,10px);margin-bottom:0;padding-right:0;position:absolute;bottom:0}.bb-channel-featured-header-wrapper .bb-fade-slider-track{cursor:initial;overflow:hidden}.bb-channel-featured-header-wrapper .bb-fade-arrow:disabled{cursor:auto}.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:before,.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:after,.bb-channel-featured-header-wrapper .bb-fade-arrow.next:before,.bb-channel-featured-header-wrapper .bb-fade-arrow.next:after{content:\"\";background-color:#dedede;border-radius:5px;width:5px;height:27px;position:absolute;left:44%}.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:hover:before,.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:hover:after,.bb-channel-featured-header-wrapper .bb-fade-arrow.next:hover:before,.bb-channel-featured-header-wrapper .bb-fade-arrow.next:hover:after{background-color:#fff}.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:disabled:before,.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:disabled:after,.bb-channel-featured-header-wrapper .bb-fade-arrow.next:disabled:before,.bb-channel-featured-header-wrapper .bb-fade-arrow.next:disabled:after{background-color:#9b9b9b}.bb-channel-featured-header-wrapper .bb-fade-arrow.prev{border-radius:0 var(--bb-channel-border-radius,5px) var(--bb-channel-border-radius,5px) 0;background:0 0;left:0}.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:before{top:37%;transform:rotate(45deg)}.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:after{top:calc(37% + 16px);transform:rotate(-45deg)}.bb-channel-featured-header-wrapper .bb-fade-arrow.next{border-radius:var(--bb-channel-border-radius,5px) 0 0 var(--bb-channel-border-radius,5px);background:0 0;right:0}.bb-channel-featured-header-wrapper .bb-fade-arrow.next:before{top:calc(37% + 16px);transform:rotate(45deg)}.bb-channel-featured-header-wrapper .bb-fade-arrow.next:after{top:37%;transform:rotate(-45deg)}.bb-channel-featured-header-wrapper .bb-fade-arrow.next:hover,.bb-channel-featured-header-wrapper .bb-fade-arrow.prev:hover{background:0 0}.bb-channel-featured-header-wrapper.bb-header-mode-contained{padding-left:var(--bb-channel-padding,10px);padding-right:var(--bb-channel-padding,10px);--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff;--bb-channel-button-font-color:#fff;--bb-channel-button-border-color:#fff;margin:0 auto;padding-top:12px}.bb-channel-featured-header-wrapper.bb-header-mode-contained .featured-slide{padding-bottom:0!important}.bb-channel-featured-header-wrapper.bb-header-mode-contained .featured-slide .slide-content{padding:24px}.bb-channel-featured-header-wrapper.bb-header-mode-contained .featured-slide .image-container-featured{background:var(--bb-channel-contained-header-background);border-radius:var(--bb-channel-border-radius,5px);display:inline-block;position:relative}.bb-channel-featured-header-wrapper.bb-header-mode-contained .featured-slide .image-container-featured:after{content:\"\";pointer-events:none;background:linear-gradient(#0000 50%,#000c 100%);position:absolute;top:0;bottom:0;left:0;right:0}.bb-channel-featured-header-wrapper.bb-header-mode-contained .featured-slide .image-container-featured .featured-img{-webkit-mask-image:unset;-webkit-mask-image:unset;mask-image:unset;position:relative}.bb-channel-featured-header-wrapper.bb-header-mode-contained .header-logo-wrapper{top:85px;left:calc(var(--bb-channel-padding,10px) + 24px)}.bb-channel-featured-header-wrapper.bb-header-mode-contained .bb-fade-dots{bottom:24px;right:24px}.search-container~.bb-channel-featured-header-wrapper.bb-header-mode-contained{padding-top:60px}.search-container~.bb-channel-featured-header-wrapper.bb-header-mode-fullWidth .image-container-featured:after{content:\"\";pointer-events:none;background:linear-gradient(#0006 0%,#0000 15%);position:absolute;top:0;bottom:0;left:0;right:0}.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-title{text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;overflow:hidden}.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-description{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .image-container-featured,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .image-container-featured{position:relative}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .slide-logo-img,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .slide-logo-img,.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-description,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-description{margin-bottom:10px}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-reminder-btn .reminder-text,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-reminder-btn .reminder-text{display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content:has(.featured-embargo-countdown) .featured-button:not(.featured-reminder-btn){display:none}.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content:has(.featured-embargo-countdown) .featured-button:not(.featured-reminder-btn){display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content:has(.featured-embargo-countdown)>.featured-reminder-btn{display:none}.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content:has(.featured-embargo-countdown)>.featured-reminder-btn{display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown{order:99;position:relative}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-button.featured-reminder-btn-inline,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-button.featured-reminder-btn-inline{pointer-events:auto;padding-inline-start:12px;padding-inline-end:12px;display:flex}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown{width:-moz-fit-content;width:fit-content;height:auto;min-width:unset;max-width:unset;box-sizing:border-box;color:var(--bb-channel-primary-color);flex-flow:wrap;justify-content:center;align-items:center;gap:10px;margin-bottom:0;display:inline-flex;bottom:0}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-label,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-label{display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-units,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-units{gap:8px}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-unit,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-unit{min-width:unset;gap:0}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-value,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown .featured-embargo-value{font-size:calc(1.2rem * var(--bb-font-scale-featured-embargo-value,1))}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown span.text-xs,.bb-channel-size-M .bb-channel-featured-header-wrapper .slide-content .featured-embargo-countdown span.text-xs{font-size:calc(.65rem * var(--bb-font-scale-featured-embargo-label,1));line-height:1}.bb-channel-size-S .bb-channel-featured-header-wrapper .image-container-featured{justify-content:center;width:100%;display:flex;position:relative;overflow:hidden}.bb-channel-size-S .bb-channel-featured-header-wrapper .image-container-featured .featured-img{display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper .image-container-featured .featured-img-mobile{object-fit:cover;width:100%;height:100%;-webkit-mask-image:var(--mask);-webkit-mask-image:var(--mask);mask-image:var(--mask);max-height:90vh;display:block}.bb-channel-size-S .bb-channel-featured-header-wrapper.bb-header-mode-fullWidth.bb-image-mode-fit .slide-content .featured-title{text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;overflow:hidden}.bb-channel-size-S .bb-channel-featured-header-wrapper.bb-header-mode-fullWidth.bb-image-mode-fit .slide-content .featured-description{display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper.bb-header-mode-fullWidth.bb-image-mode-fit .image-container-featured{aspect-ratio:16/9}.bb-channel-size-S .bb-channel-featured-header-wrapper.bb-header-mode-fullWidth.bb-image-mode-fill .image-container-featured,.bb-channel-size-S .bb-channel-featured-header-wrapper.bb-header-mode-contained.bb-image-mode-fill .image-container-featured,.bb-channel-size-S .bb-channel-featured-header-wrapper.bb-header-mode-contained.bb-image-mode-fit .image-container-featured{aspect-ratio:4/5}.bb-channel-size-S .bb-channel-featured-header-wrapper .slide-content .featured-title{min-width:min(95%,440px)}.bb-channel-size-S .bb-channel-featured-header-wrapper .featured-button{font-size:calc(13px * var(--bb-font-scale-featured-button,1))}.bb-channel-size-S .bb-channel-featured-header-wrapper .featured-logo-img{height:25px;margin-top:-10px}.bb-channel-size-S .bb-channel-featured-header-wrapper .bb-fade-arrow.next:before,.bb-channel-size-S .bb-channel-featured-header-wrapper .bb-fade-arrow.next:after,.bb-channel-size-S .bb-channel-featured-header-wrapper .bb-fade-arrow.prev:before,.bb-channel-size-S .bb-channel-featured-header-wrapper .bb-fade-arrow.prev:after,.bb-channel-size-S .bb-channel-featured-header-wrapper .bb-header-slider:hover .arrowNextBackground,.bb-channel-size-S .bb-channel-featured-header-wrapper .bb-header-slider:hover .arrowPrevBackground{display:none}.bb-channel-size-S .bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:70%}.bb-channel-size-M .bb-channel-featured-header-wrapper .featured-logo-img{height:25px;margin-top:-10px}.bb-channel-size-M .bb-channel-featured-header-wrapper .bb-fade-arrow.next:before,.bb-channel-size-M .bb-channel-featured-header-wrapper .bb-fade-arrow.next:after,.bb-channel-size-M .bb-channel-featured-header-wrapper .bb-fade-arrow.prev:before,.bb-channel-size-M .bb-channel-featured-header-wrapper .bb-fade-arrow.prev:after,.bb-channel-size-M .bb-channel-featured-header-wrapper .bb-header-slider:hover .arrowNextBackground,.bb-channel-size-M .bb-channel-featured-header-wrapper .bb-header-slider:hover .arrowPrevBackground{display:none}.bb-channel-size-M .bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:60%}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-value,.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-value{font-size:calc(3rem * var(--bb-font-scale-featured-embargo-value,1))}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit,.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit{min-width:72px}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit:last-child,.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit:last-child{min-width:unset}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-label,.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-label{font-size:calc(1rem * var(--bb-font-scale-featured-embargo-label,1))}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-embargo-countdown span.text-xs,.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-embargo-countdown span.text-xs{font-size:calc(.75rem * var(--bb-font-scale-featured-embargo-label,1))}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-value{font-size:calc(4rem * var(--bb-font-scale-featured-embargo-value,1))}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit{min-width:96px}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-unit:last-child{min-width:unset}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-label,.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-embargo-countdown span.text-xs{font-size:calc(1rem * var(--bb-font-scale-featured-embargo-label,1))}.bb-channel-size-L .bb-channel-featured-header-wrapper .featured-embargo-countdown .featured-embargo-value{font-size:calc(2.5rem * var(--bb-font-scale-featured-embargo-value,1))}.bb-channel-size-L .bb-channel-featured-header-wrapper .featured-slide{padding-bottom:60px}.bb-channel-size-L .bb-channel-featured-header-wrapper .featured-title{font-size:calc(24px * var(--bb-font-scale-featured-title,1))}.bb-channel-size-L .bb-channel-featured-header-wrapper .featured-slide .slide-content .slide-logo-img{margin-bottom:10px}.bb-channel-size-L .bb-channel-featured-header-wrapper .slide-content{gap:2px}.bb-channel-size-L .bb-channel-featured-header-wrapper .featured-description{margin-bottom:5px}.bb-channel-size-L .bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:55%}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-slide{padding-bottom:45px}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-description{margin-bottom:15px}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-slide .slide-content .slide-logo-img{margin-bottom:10px}.bb-channel-size-XL .bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:65%}.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-slide{padding-bottom:30px}.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-slide .slide-content .image-container-featured{aspect-ratio:initial}.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-description{margin-bottom:15px}.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-slide .slide-content .slide-logo-img{margin-bottom:10px}.bb-channel-size-XXL .bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:55%}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-slide{padding-bottom:20px}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-slide .slide-content .slide-logo-img{margin-bottom:15px}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-description{margin-bottom:20px}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-slide .slide-content .featured-button{max-height:60px}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .featured-slide .image-container-featured{--bottom-gradient-pct:45%}.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .bb-fade-arrow.prev:hover:before,.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .bb-fade-arrow.prev:hover:after,.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .bb-fade-arrow.next:hover:before,.bb-channel-size-XXXL .bb-channel-featured-header-wrapper .bb-fade-arrow.next:hover:after{width:5px;height:27px}:host{--spacing:12px}:host .list-container{justify-content:flex-start;align-items:flex-start;gap:calc(var(--spacing));width:100%;font-size:calc(.8rem * var(--bb-channel-font-size-scale,1));flex-direction:column;max-width:calc(70ch + 180px);display:flex}.overlay-wrapper:-webkit-any(dialog):not([open]){display:none}.overlay-wrapper:-moz-any(dialog):not([open]){display:none}.overlay-wrapper:is(dialog):not([open]){display:none}.overlay-wrapper:-webkit-any(dialog){background:0 0;border:none;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;overflow:hidden}.overlay-wrapper:-moz-any(dialog){background:0 0;border:none;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;overflow:hidden}.overlay-wrapper:is(dialog){background:0 0;border:none;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;overflow:hidden}.overlay-wrapper:-webkit-any(dialog)[open]{animation:.4s overlayFadeIn}.overlay-wrapper:-moz-any(dialog)[open]{animation:.4s overlayFadeIn}.overlay-wrapper:is(dialog)[open]{animation:.4s overlayFadeIn}.overlay-wrapper:-webkit-any(dialog)::backdrop{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#00000080}.overlay-wrapper:-moz-any(dialog)::backdrop{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#00000080}.overlay-wrapper:is(dialog)::backdrop{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#00000080}.overlay-wrapper:-webkit-any(div){display:contents}.overlay-wrapper:-moz-any(div){display:contents}.overlay-wrapper:is(div){display:contents}@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}.bb-channel-related-items-section{width:100%}.bb-channel-related-items-section .bb-channel-playerblock-content{overflow:visible}.bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs{gap:8px;padding-bottom:8px;display:inline-flex;position:relative}.bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs .tab{font-size:calc(1em * var(--bb-font-scale-detail-button,1));background:0 0;border:none;padding:0}.bb-channel-overview-page-related-items .bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs .tab{font-size:calc(1em * var(--bb-font-scale-overview-button,1))}.bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs .tab{cursor:pointer;color:var(--color-text-secondary);white-space:nowrap;transition:color .2s}.bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs .tab.active{color:var(--color-text)}.bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs .tab:hover:not(.active){color:var(--color-text);opacity:.8}.bb-channel-related-items-section .bb-channel-playerblock-content .bb-channel-block-title .tabs .tabs-underline{background-color:#fff;height:2px;transition:left .3s,width .3s;position:absolute;bottom:0}.bb-channel-related-items-section .bb-channel-playerblock-content .tab-contents-wrapper{position:relative}.bb-channel-related-items-section .bb-channel-playerblock-content .tab-contents-wrapper.transitioning .tab-contents.inactive{opacity:0}.bb-channel-related-items-section .bb-channel-playerblock-content .tab-contents{opacity:0;pointer-events:none;width:100%;transition:opacity .3s ease-in-out;position:absolute;top:0;left:0}.bb-channel-related-items-section .bb-channel-playerblock-content .tab-contents.active{opacity:1;pointer-events:auto;position:relative}.bb-channel-related-items-section .bb-channel-playerblock-content .tab-contents.inactive{opacity:0;pointer-events:none;position:absolute}.bb-channel-related-items-section .bb-channel-playerblock-content .tab-contents.vertical-list{max-height:500px;overflow-y:auto}.bb-channel-related-items-section .bb-channel-playerblock-content:has(.clip-fields-wrapper:empty) .clip-details-tab{display:none}.bb-channel-related-items-section .bb-channel-playerblock-content:has(.clip-fields-wrapper:empty) .tabs-underline{display:none}.bb-channel-related-items-section .bb-channel-playerblock-content:has(.clip-fields-wrapper:empty) .tabs{pointer-events:none}.bb-channel-related-items-section .bb-channel-playerblock-content .clip-details .clip-fields-wrapper{flex-direction:column;gap:16px;display:flex}.detail-page-wrapper{inset:env(safe-area-inset-top,0) env(safe-area-inset-right,initial) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0);z-index:0;overscroll-behavior:contain;scrollbar-width:none;opacity:0;visibility:hidden;width:100%;height:0;width:calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));--v-spacing:16px;--h-spacing:32px;--scroll-btn-side-padding:calc(var(--bb-channel-padding) + 90px);padding:0;transition:opacity .4s;position:fixed;overflow:auto}.detail-page-wrapper.bb-player-fullscreen,.detail-page-wrapper.bb-player-fullscreen *{overflow:visible!important}.detail-page-wrapper.bb-player-fullscreen .bb-channel-detail-page{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.detail-page-wrapper.bb-player-fullscreen .bb-channel-detail-page-text,.detail-page-wrapper.bb-player-fullscreen .bb-channel-detail-page-related-items{display:none!important}.detail-page-wrapper.show{z-index:999999999;visibility:visible;opacity:1;height:auto;min-height:100%}.detail-page-wrapper .sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.detail-page-wrapper:has(.native-player-mode){width:100%!important;top:0!important;bottom:0!important;left:0!important;right:0!important}.detail-page-wrapper:has(.native-player-mode){background-color:#1e1e1e}.detail-page-wrapper:has(.native-player-mode.use-bg-color){background-color:var(--bb-channel-detail-page-background-color,#1e1e1e)}@keyframes fadein{0%{opacity:0}to{opacity:1}}.detail-page-wrapper .detail-search-container{margin-top:177px}.detail-page-wrapper .detail-search-container .bb-channel-block-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:3;font-size:calc(1.4rem * var(--bb-font-scale-video-title-detail,1));-webkit-box-orient:vertical;height:100%;font-weight:500;display:-webkit-box;overflow:hidden}.detail-page-wrapper img.fade-in{animation:.35s forwards fadein}.detail-page-wrapper .bb-channel-playerblock-wrapper .bb-channel-playerblock-content{display:none}.detail-page-wrapper.background-blur{background-attachment:fixed;background-color:#0000!important}.detail-page-wrapper.background-blur .bb-channel-detail-page:not(:-webkit-any(.search-mode,.native-player-mode)){background-attachment:fixed;background:0 0!important}.detail-page-wrapper.background-blur .bb-channel-detail-page:not(:-moz-any(.search-mode,.native-player-mode)){background-attachment:fixed;background:0 0!important}.detail-page-wrapper.background-blur .bb-channel-detail-page:not(:is(.search-mode,.native-player-mode)){background-attachment:fixed;background:0 0!important}.detail-page-wrapper.background-blur:has(.native-player-mode.use-bg-color){background-color:var(--bb-channel-detail-page-background-color,#1e1e1e)!important}.detail-page-wrapper::-webkit-scrollbar{display:none}.detail-page-wrapper .bb-channel-detail-page-player{opacity:0;transition:opacity .5s ease-in-out}.detail-page-wrapper.show .bb-channel-detail-page,.detail-page-wrapper.show .bb-channel-detail-page-player{opacity:1}.detail-page-wrapper .bb-channel-detail-page{z-index:20;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);opacity:0;width:100%;height:100%;display:block;overflow:hidden}.detail-page-wrapper .bb-channel-detail-page.native-player-mode{isolation:isolate;min-height:100vh;position:relative;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.detail-page-wrapper .bb-channel-detail-page.native-player-mode:not(.use-bg-color){background-color:#0000!important}.detail-page-wrapper .bb-channel-detail-page.native-player-mode.use-bg-color{background:var(--bb-channel-detail-page-background-color,#1e1e1e)!important}.detail-page-wrapper .bb-channel-detail-page.native-player-mode .detail-page-player-section{padding:0;padding-top:var(--bb-channel-padding,10px)}.detail-page-wrapper .bb-channel-detail-page{transition:background-color .3s ease-in-out}.detail-page-wrapper .bb-channel-detail-page:not(:-webkit-any(.bg-neutral,.modal-mode)){background-color:var(--bb-channel-detail-page-background-color,#e9e9e9);--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.detail-page-wrapper .bb-channel-detail-page:not(:-moz-any(.bg-neutral,.modal-mode)){background-color:var(--bb-channel-detail-page-background-color,#e9e9e9);--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.detail-page-wrapper .bb-channel-detail-page:not(:is(.bg-neutral,.modal-mode)){background-color:var(--bb-channel-detail-page-background-color,#e9e9e9);--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.detail-page-wrapper .bb-channel-detail-page:not(:-webkit-any(.bg-neutral,.modal-mode)) *,.detail-page-wrapper .bb-channel-detail-page:not(:-webkit-any(.bg-neutral,.modal-mode)) svg{--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.detail-page-wrapper .bb-channel-detail-page:not(:-moz-any(.bg-neutral,.modal-mode)) *,.detail-page-wrapper .bb-channel-detail-page:not(:-moz-any(.bg-neutral,.modal-mode)) svg{--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.detail-page-wrapper .bb-channel-detail-page:not(:is(.bg-neutral,.modal-mode)) *,.detail-page-wrapper .bb-channel-detail-page:not(:is(.bg-neutral,.modal-mode)) svg{--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.detail-page-wrapper .bb-channel-detail-page:not(:-webkit-any(.bg-neutral,.modal-mode)).use-bg-color{--bb-channel-primary-color:var(--bb-channel-detail-page-text-color,#fff);--bb-channel-secondary-color:var(--bb-channel-detail-page-text-color,#fff)}.detail-page-wrapper .bb-channel-detail-page:not(:-moz-any(.bg-neutral,.modal-mode)).use-bg-color{--bb-channel-primary-color:var(--bb-channel-detail-page-text-color,#fff);--bb-channel-secondary-color:var(--bb-channel-detail-page-text-color,#fff)}.detail-page-wrapper .bb-channel-detail-page:not(:is(.bg-neutral,.modal-mode)).use-bg-color{--bb-channel-primary-color:var(--bb-channel-detail-page-text-color,#fff);--bb-channel-secondary-color:var(--bb-channel-detail-page-text-color,#fff)}.detail-page-wrapper .bb-channel-detail-page:not(:-webkit-any(.bg-neutral,.modal-mode)).use-bg-color *,.detail-page-wrapper .bb-channel-detail-page:not(:-webkit-any(.bg-neutral,.modal-mode)).use-bg-color svg{--bb-channel-primary-color:var(--bb-channel-detail-page-text-color,#fff);--bb-channel-secondary-color:var(--bb-channel-detail-page-text-color,#fff)}.detail-page-wrapper .bb-channel-detail-page:not(:-moz-any(.bg-neutral,.modal-mode)).use-bg-color *,.detail-page-wrapper .bb-channel-detail-page:not(:-moz-any(.bg-neutral,.modal-mode)).use-bg-color svg{--bb-channel-primary-color:var(--bb-channel-detail-page-text-color,#fff);--bb-channel-secondary-color:var(--bb-channel-detail-page-text-color,#fff)}.detail-page-wrapper .bb-channel-detail-page:not(:is(.bg-neutral,.modal-mode)).use-bg-color *,.detail-page-wrapper .bb-channel-detail-page:not(:is(.bg-neutral,.modal-mode)).use-bg-color svg{--bb-channel-primary-color:var(--bb-channel-detail-page-text-color,#fff);--bb-channel-secondary-color:var(--bb-channel-detail-page-text-color,#fff)}.detail-page-wrapper .bb-channel-detail-page.bg-neutral{background-color:var(--bb-channel-neutral-background-color)}.detail-page-wrapper .bb-channel-detail-page.search-mode{overflow-y:auto}.detail-page-wrapper .bb-channel-detail-page.search-mode .detail-page-player-section{opacity:0;height:0;overflow:hidden}.detail-page-wrapper .bb-channel-detail-page.search-mode .detail-page-player-section img{height:0}.detail-page-wrapper .bb-channel-detail-page .detail-page-player-section{padding:var(--v-spacing) 0;width:100%;height:100%;overflow:hidden auto}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-background{filter:blur(15px)brightness(.45);object-fit:cover;z-index:-1;background-color:#1e1e1e;width:100%;height:100%;position:absolute;transform:scale(1.05)}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-background.hide{display:none}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-data{width:100%;padding:0 var(--h-spacing);max-width:var(--max-player-block-width);gap:var(--v-spacing) var(--h-spacing);flex-direction:column;grid-template-columns:repeat(2,1fr);max-height:100%;margin:0 auto;display:flex}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-data .bb-channel-block{padding-top:0;padding-bottom:0}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-data .bb-channel-detail-page-text{flex-direction:column;display:flex;position:relative}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-data .bb-channel-detail-page-text .bb-channel-detail-page-title{font-size:clamp(1.1em * var(--bb-font-scale-video-title-detail,1), 1.4em * var(--bb-font-scale-video-title-detail,1), 2em * var(--bb-font-scale-video-title-detail,1));margin:0}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items{width:100%}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .ref-wrapper{padding-inline-start:0;padding-inline-end:0}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content{overflow:visible}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content .bb-channel-block-title{z-index:1;position:relative;color:#fff!important}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content .bb-channel-block-title:has(.tab){overflow:visible}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content .vertical-list,.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content .clip-details{min-height:300px;padding:0 0 24px}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content .clip-details{max-width:var(--text-max-width)}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content:not(.vertical-list){--bb-playlist-gutter:0}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper.initialized{-webkit-mask-image:var(--detail-slider-mask);-webkit-mask-image:var(--detail-slider-mask);mask-image:var(--detail-slider-mask);margin:0 -100px;padding:0 100px}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper.initialized .bb-scroll-arrow.next{right:var(--scroll-btn-side-padding)}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper.initialized .bb-scroll-arrow.prev{left:var(--scroll-btn-side-padding)}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper{-webkit-mask-image:none;mask-image:none}.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-scroll-arrow.prev,.detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-related-items .bb-scroll-arrow.next{background:0 0}.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-data{padding:0}.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-data>*{padding:0 var(--h-spacing)}.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player{aspect-ratio:16/9;max-width:100%;padding:0;position:relative}.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player.fix-aspect-ratio{padding-bottom:min(56.25%,90vh)}.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player>*{width:100%;height:100%;position:absolute;top:0;left:0}@media (orientation:landscape) and (not (max-width:924px)){.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player{height:max(400px,min(100vh,100vh - 100px))}}.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player .bb-channel-block,.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player .bb-channel-playerblock-wrapper,.detail-page-wrapper .bb-channel-detail-page.player-align-fullWidth .bb-channel-detail-page-player .bb-channel-playerblock-content{height:100%}.detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-data{grid-template-columns:1fr 2fr;display:grid}.detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-text{grid-area:2/1/3/2}.detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-player{grid-area:2/2/3/3;margin:0}.detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-player .bb-channel-block{padding-bottom:2em}.detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-related-items{grid-area:3/1/4/3}.detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-data{grid-template-columns:2fr 1fr;display:grid}.detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-text{grid-area:2/2/3/3}.detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-player{grid-area:2/1/3/2;max-width:1250px;margin:0}.detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-related-items{grid-area:3/1/4/3}.detail-page-wrapper.modal-mode:not(:has(.search-mode)){-webkit-backdrop-filter:none;backdrop-filter:none;justify-content:center;align-items:center;display:flex;overflow:hidden}.detail-page-wrapper.modal-mode:not(:has(.search-mode)).show{height:100%;min-height:100%}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode{--modal-padding:12px;--modal-player-width:calc(min(450px, 50vh) * 16 / 9);width:min(75vw, var(--modal-player-width) + var(--modal-padding) * 2);-webkit-backdrop-filter:none;backdrop-filter:none;flex-direction:column;min-width:0;max-width:800px;max-height:88vh;padding:0;display:flex;position:relative;overflow:hidden;background-color:#0000!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode>.modal-close-btn{cursor:pointer;color:#fff;font-family:var(--bb-channel-primary-font-family);font-size:calc(20px * var(--bb-font-scale-detail-close-button,1));background:0 0;border:none;flex-shrink:0;align-self:flex-end;align-items:center;gap:6px;margin-bottom:8px;padding:4px;font-weight:600;transition:opacity .2s;display:flex}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode>.modal-close-btn svg{color:#fff;fill:#fff;width:16px;height:16px}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode>.modal-close-btn svg path{color:#fff;fill:#fff}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-left .bb-channel-detail-page-data{grid-template-columns:unset!important;flex-direction:column!important;padding:0!important;display:flex!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-right .bb-channel-detail-page-data{grid-template-columns:unset!important;flex-direction:column!important;padding:0!important;display:flex!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-fullWidth .bb-channel-detail-page-data{grid-template-columns:unset!important;flex-direction:column!important;padding:0!important;display:flex!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-left .bb-channel-detail-page-player{grid-area:unset!important;margin:0!important;padding:0!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-right .bb-channel-detail-page-player{grid-area:unset!important;margin:0!important;padding:0!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-fullWidth .bb-channel-detail-page-player{grid-area:unset!important;margin:0!important;padding:0!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-left .bb-channel-detail-page-text{grid-area:unset!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-right .bb-channel-detail-page-text{grid-area:unset!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.player-align-fullWidth .bb-channel-detail-page-text{grid-area:unset!important}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .detail-page-player-section{height:auto;min-height:0;padding:var(--modal-padding);background-color:var(--modal-bg-color,var(--bb-channel-neutral-background-color,#1e1e1e));border-radius:var(--bb-channel-border-radius,5px);flex-direction:column;flex:0 auto;display:flex;overflow:hidden}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .detail-page-player-section .bb-channel-detail-page-title{color:var(--modal-font-color,inherit)}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .detail-page-player-section .bb-channel-list-item-title{color:var(--modal-font-color,inherit)}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .bb-channel-detail-page-data{flex-direction:column;flex:0 auto;min-height:0;padding:0;display:flex}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .bb-channel-detail-page-player{width:min(100%, var(--modal-player-width));z-index:0;border-radius:var(--bb-channel-border-radius,5px);aspect-ratio:16/9;flex:none;height:auto;margin:0 auto;position:relative;overflow:hidden}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.no-metadata{--modal-player-width:calc(min(450px, 80vh) * 16 / 9)}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.no-metadata .detail-page-player-section{padding:var(--modal-padding)}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode.no-metadata .bb-channel-detail-page-player{border-radius:var(--bb-channel-border-radius,5px);width:100%}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .bb-channel-detail-page-text{flex-direction:column;flex:1;min-height:0;padding:8px 0 0;display:flex;overflow-y:auto}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .bb-channel-detail-page-text .bb-channel-detail-page-title{font-size:clamp(1em * var(--bb-font-scale-video-title-detail,1), 1.2em * var(--bb-font-scale-video-title-detail,1), 1.6em * var(--bb-font-scale-video-title-detail,1));flex-shrink:0;margin:0 0 4px}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .bb-channel-detail-page-text .description-wrapper{max-width:100%}.detail-page-wrapper.modal-mode:not(:has(.search-mode)) .bb-channel-detail-page.modal-mode .bb-channel-detail-page-text .description-show-more-less{color:var(--modal-font-color,var(--bb-channel-secondary-color))}.bb-channel-detail-page-size-M .detail-page-wrapper.modal-mode .bb-channel-detail-page,.bb-channel-detail-page-size-S .detail-page-wrapper.modal-mode .bb-channel-detail-page{width:85%}.bb-channel-detail-page-size-M .detail-page-wrapper.modal-mode .bb-channel-detail-page .detail-page-player-section,.bb-channel-detail-page-size-S .detail-page-wrapper.modal-mode .bb-channel-detail-page .detail-page-player-section{padding:8px}.bb-channel-detail-page-size-M .detail-page-wrapper,.bb-channel-detail-page-size-S .detail-page-wrapper{--h-spacing:16px}.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-player .bb-channel-block,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page .bb-channel-detail-page-player .bb-channel-block{padding:0}.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-data,.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-data,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-data,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-data{grid-template-rows:repeat(4,0fr);grid-template-columns:100%;gap:16px 0;display:grid}.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-player,.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-player,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-player,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-player{grid-area:2/1/3/3;width:100%}.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-text,.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-text,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-text,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-text{grid-area:3/1/3/3;justify-content:flex-start;overflow:visible}.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-related-items,.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-related-items,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-related-items,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-related-items{grid-area:4/1/5/2;margin-top:16px}.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-related-items .bb-channel-playerblock-content,.bb-channel-detail-page-size-M .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-related-items .bb-channel-playerblock-content,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-left .bb-channel-detail-page-related-items .bb-channel-playerblock-content,.bb-channel-detail-page-size-S .detail-page-wrapper .bb-channel-detail-page.player-align-right .bb-channel-detail-page-related-items .bb-channel-playerblock-content{background-color:#0000}.bb-channel-detail-page-size-XXXL .detail-page-wrapper .bb-channel-detail-page-related-items{margin-top:8px}.bb-channel-detail-page-size-XXXL .detail-page-wrapper .bb-channel-detail-page.center .bb-channel-detail-page-player{max-width:900px}.bb-channel-detail-page-size-XXXL .detail-page-wrapper .bb-channel-detail-page.center .bb-channel-detail-page-text{margin-left:25%}.bb-channel-detail-page-back-arrow{max-width:var(--max-player-block-width);width:100%;padding-top:max(0px, env(safe-area-inset-top));margin:0 auto}.bb-channel-detail-page-back-arrow .back-arrow{align-items:center;gap:12px;font-weight:700;display:flex}@media (pointer:coarse){.bb-channel-detail-page-back-arrow .back-arrow:focus-visible{box-shadow:none;outline:none}.bb-channel-detail-page-back-arrow .back-arrow:focus-visible svg{filter:none}}.bb-channel-detail-page-back-arrow .back-arrow p,.bb-channel-detail-page-back-arrow .back-arrow svg{cursor:pointer}.bb-channel-detail-page-back-arrow p{font-size:calc(1.5em * var(--bb-font-scale-detail-button,1));margin:0;font-weight:800}.bb-channel-detail-page-back-arrow .back-arrow.back-arrow-close>span{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-detail-close-button,1))}.bb-channel-detail-page-size-S .back-arrow p{height:29px}.bb-channel-detail-page-size-S .back-arrow span{display:none}.search-results-grid{opacity:0;width:90%;max-width:1600px;max-height:100%;margin:0 auto;padding-top:0;transition:opacity .25s}.search-results-grid.show{opacity:1}.search-results-grid.loading{opacity:.5}.search-results-grid .scroll-anchor{position:absolute;top:-60px}.overview-page-wrapper{inset:env(safe-area-inset-top,0) env(safe-area-inset-right,initial) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0);z-index:0;overscroll-behavior:contain;scrollbar-width:none;opacity:0;visibility:hidden;width:100%;height:0;width:calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));--v-spacing:16px;--h-spacing:32px;--scroll-btn-side-padding:calc(var(--bb-channel-padding) + 90px);--text-max-width:70ch;--ar-16-9:calc(100cqw * 9 / 16);--content-height:min(calc(100px + var(--ar-16-9)), calc(100vh - 580px));--content-margin-top:150px;background-color:#000;max-height:100vh;padding:0;transition:opacity .4s;position:fixed;overflow:auto}.bb-native-mode .overview-page-wrapper{width:100%!important;top:0!important;bottom:0!important;left:0!important;right:0!important}.overview-page-wrapper.show{z-index:999999999;visibility:visible;opacity:1;height:auto}.overview-page-wrapper .detail-search-container{margin-top:177px}.overview-page-wrapper .detail-search-container .bb-channel-block-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:3;font-size:calc(1.4rem * var(--bb-font-scale-playlist-title,1));-webkit-box-orient:vertical;height:100%;font-weight:500;display:-webkit-box;overflow:hidden}.overview-page-wrapper img.fade-in{animation:.35s forwards fadein}.overview-page-wrapper .bb-channel-playerblock-wrapper .bb-channel-playerblock-content{display:none}.overview-page-wrapper::-webkit-scrollbar{display:none}.overview-page-wrapper.show .bb-channel-overview-page{opacity:1}.overview-page-wrapper .bb-channel-overview-page{z-index:20;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);opacity:0;--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff;width:100%;min-height:100%;transition:background-color .3s ease-in-out;display:block}.overview-page-wrapper .bb-channel-overview-page *,.overview-page-wrapper .bb-channel-overview-page svg{--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff}.overview-page-wrapper .bb-channel-overview-page .overview-page-content-section{padding:var(--v-spacing) 0;width:100%}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-background{filter:brightness();object-fit:cover;z-index:-1;-webkit-mask-composite:source-out;background-color:#fff;width:100%;position:absolute;top:0;left:0;-webkit-mask-image:radial-gradient(120% 55% at 70% 44%,#000 0%,#0000 100%),linear-gradient(#000000bf 90%,#0000 100%),linear-gradient(270deg,#000000bf 0%,#f000 95%);mask-image:radial-gradient(120% 55% at 70% 44%,#000 0%,#0000 100%),linear-gradient(#000000bf 90%,#0000 100%),linear-gradient(270deg,#000000bf 0%,#f000 95%);-webkit-mask-size:cover;mask-size:cover;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-background.hide{display:none}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data{width:100%;min-height:calc(100vh - 2 * var(--v-spacing));padding:0 var(--h-spacing);max-width:var(--max-player-block-width);gap:var(--v-spacing);column-gap:var(--h-spacing);flex-direction:column;justify-content:flex-start;margin:0 auto;display:flex}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-block{padding-top:0;padding-bottom:0}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-overview-page-text{max-height:var(--content-height);margin-top:var(--content-margin-top);flex-direction:column;justify-content:flex-start;display:flex;position:relative}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-overview-page-text .bb-channel-overview-page-title{margin:0}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-overview-page-text .bb-channel-overview-page-title .bb-channel-block-title{font-size:clamp(1.1em * var(--bb-font-scale-overview-title,1), 1.4em * var(--bb-font-scale-overview-title,1), 2em * var(--bb-font-scale-overview-title,1))}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-overview-page-text .bb-channel-overview-page-title .bb-channel-block-subtitle-select,.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-overview-page-text .bb-channel-overview-page-title .bb-channel-block-subtitle-select option{font-size:clamp(.95em * var(--bb-font-scale-overview-title,1), 1.2em * var(--bb-font-scale-overview-title,1), 1.6em * var(--bb-font-scale-overview-title,1))}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-data .bb-channel-overview-page-text .description-wrapper{max-height:40vh}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items{width:100%;margin-top:auto}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content{overflow:visible}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content .bb-channel-block-title{z-index:1;position:relative;color:#fff!important}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content .bb-channel-block-title:has(.tab){overflow:visible}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content .vertical-list,.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content .clip-details{min-height:300px;padding:0 0 24px}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content .clip-details{max-width:var(--text-max-width)}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper.initialized{--detail-slider-mask:linear-gradient(90deg, transparent 0%, white 5%, white 95%, transparent 100%);-webkit-mask-image:var(--detail-slider-mask);-webkit-mask-image:var(--detail-slider-mask);mask-image:var(--detail-slider-mask);margin:0 -100px;padding:0 100px}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper.initialized .bb-scroll-arrow.next{right:var(--scroll-btn-side-padding)}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper.initialized .bb-scroll-arrow.prev{left:var(--scroll-btn-side-padding)}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-channel-playerblock-content:not(.vertical-list) .bb-scroll-wrapper{-webkit-mask-image:none;mask-image:none}.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-scroll-arrow.prev,.overview-page-wrapper .bb-channel-overview-page .bb-channel-overview-page-related-items .bb-scroll-arrow.next{background:0 0}.bb-channel-overview-page-size-M .overview-page-wrapper,.bb-channel-overview-page-size-S .overview-page-wrapper{--h-spacing:16px;--content-height:auto;--content-margin-top:var(--ar-16-9)}.bb-channel-overview-page-size-M .overview-page-wrapper .bb-channel-overview-page-data .bb-channel-overview-page-text,.bb-channel-overview-page-size-S .overview-page-wrapper .bb-channel-overview-page-data .bb-channel-overview-page-text{justify-content:flex-end}.grid-page-wrapper{z-index:0;opacity:0;visibility:hidden;background-color:var(--bb-channel-background-color,#fff);will-change:opacity;height:0;transition:opacity .3s,visibility 0s linear .3s;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.grid-page-wrapper.within-channel-border{position:absolute}.grid-page-wrapper.show{z-index:10000;visibility:visible;opacity:1;scrollbar-width:thin;height:100%;transition:opacity .3s,visibility;overflow-y:auto}.grid-page-wrapper:-webkit-any(dialog){scrollbar-width:thin;border:none;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;overflow-y:auto}.grid-page-wrapper:-moz-any(dialog){scrollbar-width:thin;border:none;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;overflow-y:auto}.grid-page-wrapper:is(dialog){scrollbar-width:thin;border:none;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;overflow-y:auto}.grid-page-wrapper:-webkit-any(dialog).show{height:100vh}.grid-page-wrapper:-moz-any(dialog).show{height:100vh}.grid-page-wrapper:is(dialog).show{height:100vh}.bb-channel-grid-page{min-height:100%;position:relative}.bb-channel-grid-page .grid-page-header{z-index:100;background-color:var(--bb-channel-background-color,#fff);border-bottom:1px solid #0000000d;flex-direction:column;gap:16px;padding:16px 24px;display:flex;position:sticky;top:0;box-shadow:0 2px 8px #00000008}.bb-channel-grid-page .grid-page-header .header-action{flex-shrink:0;align-items:center;display:flex}.bb-channel-grid-page .grid-page-header .bb-channel-detail-page-back-arrow{margin:0;position:static}.bb-channel-grid-page .grid-page-title{font-size:calc(1.5rem * var(--bb-font-scale-grid-page-title,1));white-space:nowrap;text-overflow:ellipsis;color:inherit;margin:0;font-weight:600;overflow:hidden}.bb-channel-grid-page .grid-page-content{gap:var(--item-gap,16px);grid-template-columns:repeat(auto-fill,minmax(300px,1fr));padding:16px 24px 32px;display:grid}.bb-channel-grid-page .grid-page-content>*{content-visibility:auto;contain-intrinsic-size:auto 220px}.bb-channel-size-S .bb-channel-grid-page .grid-page-content{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));padding:12px 12px 24px}.bb-channel-size-M .bb-channel-grid-page .grid-page-content{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));padding:12px 12px 24px}.bb-channel-list-item-wrapper{width:100%;container-type:inline-size}.bb-channel-list-item{cursor:pointer;scroll-snap-align:start;-webkit-user-select:none;user-select:none;width:100%;max-height:100%;line-height:1.2;font-family:var(--bb-channel-secondary-font-family);color:var(--bb-channel-secondary-color);flex-direction:column;align-items:flex-start;display:flex;position:relative;transition:transform .25s ease-in-out,transform-origin .25s ease-in-out!important}.bb-channel-list-item *,.bb-channel-list-item :visited{color:var(--bb-channel-secondary-color);text-decoration:none}.bb-channel-list-item>.bb-channel-list-item-preview-custom-field{margin-top:4px}.bb-channel-list-item p{margin:0;display:none}.bb-channel-list-item p:first-child{display:initial}.bb-channel-list-item.display-horizontal{--bg-col:#e6e6e626;border-radius:var(--bb-channel-border-radius,5px);--base-desc-lineclamp:9;--base-font-size:.875rem;grid-template-rows:auto 1fr;grid-template-columns:min-content 1fr;gap:4px 12px;height:max(115px,min(20cqw,200px));padding:12px;transition:background-color .2s ease-in-out,box-shadow .2s ease-in-out;display:grid;container-type:size}.bb-channel-list-item.display-horizontal:has(.bb-channel-list-item-custom-field){--base-desc-lineclamp:8}.bb-channel-list-item.display-horizontal:hover{background-color:var(--bg-col)}.bb-channel-list-item.display-horizontal:focus-visible{box-shadow:var(--focus-visible-shadow);background-color:var(--bg-col)}.bb-channel-list-item.display-horizontal.selected{color:#ddd;background-color:#e6e6e612}.bb-channel-list-item.display-horizontal.selected>*{color:#ddd}.bb-channel-list-item.display-horizontal .bb-channel-list-item-thumbnail{grid-row:span 3;height:100%}.bb-channel-list-item.display-horizontal .bb-channel-list-item-title{text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;margin:0;overflow:hidden}.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{text-wrap:balance;max-height:calc(100% - .5rem);font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-video-description,1));--desc-lineclamp:var(--base-desc-lineclamp);text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:var(--desc-lineclamp);-webkit-box-orient:vertical;margin:0;display:-webkit-box;overflow:hidden}@container (height<210px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 1)}}@container (height<190px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 2)}}@container (height<170px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 3)}}@container (height<150px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 4)}}@container (height<130px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 5)}}@container (height<110px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 6)}}@container (height<90px){.bb-channel-list-item.display-horizontal .bb-channel-list-item-description{--desc-lineclamp:calc(var(--base-desc-lineclamp) - 7)}}.bb-channel-list-item.display-horizontal .bb-channel-list-item-custom-field{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-video-custom-field,1));text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;margin:0;overflow:hidden}.bb-channel-list-item.display-horizontal .bb-channel-list-item-custom-field>*{white-space:nowrap}.bb-channel-list-item.display-horizontal .bb-channel-list-item-custom-field .bb-channel-list-item-custom-field-label{font-weight:600}.bb-channel-list-item.display-horizontal.portrait{height:max(170px,min(25cqw,200px))}.bb-channel-list-item:not(.display-horizontal){transform-origin:50%;transform:scale(.97)translateY(calc(8px - 1.5%))}.bb-channel-list-item:not(.display-horizontal):hover{transform:scale(1)}.bb-channel-list-item:not(.display-horizontal):focus-visible{transform:scale(1)}.bb-channel-list-item:not(.display-horizontal):hover.bb-channel-listitems-player{transform:scale(.98)}.bb-channel-list-item:not(.display-horizontal):focus-visible.bb-channel-listitems-player{transform:scale(.98)}.bb-channel-list-item:not(.display-horizontal):hover .bb-channel-list-item-duration{background-color:#181818}.bb-channel-list-item:not(.display-horizontal):focus-visible .bb-channel-list-item-duration{background-color:#181818}.bb-channel-list-item.view-all-wrapper:hover{transform:none}.bb-channel-list-item .cp-overlay-container{z-index:2;pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.bb-channel-list-item .bb-channel-list-item-thumbnail{z-index:1;border-radius:var(--bb-channel-border-radius,5px);--bb-channel-primary-color:#fff;--bb-channel-secondary-color:#fff;background-color:#7773;width:100%;position:relative;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay{--spacing-vertical:8px;--spacing-horizontal:8px;--gradient-deg:180deg;padding:var(--spacing-vertical) var(--spacing-horizontal);flex-direction:column;justify-content:space-between;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay .bb-channel-list-item-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay:not(:has(.bb-channel-list-item-title)) .bb-channel-list-item-preview-custom-field{margin-top:auto}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.pos-bottom-left .bb-channel-list-item-title{margin-top:auto}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-line .bb-channel-list-item-title,.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-line .bb-channel-list-item-preview-custom-field{max-width:calc(100% - 55px)}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-position{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-position .bb-channel-list-item-title,.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-position .bb-channel-list-item-duration{z-index:2;bottom:initial;position:relative}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-position .bb-channel-list-item-duration{text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;max-width:100%;line-height:1;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-position .bb-channel-list-item-duration .bb-channel-list-item-preview-custom-field{opacity:1;color:inherit}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.same-position:not(.selected) .bb-channel-list-item-duration{color:var(--themes-primary-primary-200,#b3bfc3);background:0 0;padding:0;font-weight:400}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.pos-bottom-left{--gradient-deg:0deg}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.pos-bottom-left,.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay.pos-top-left{color:#fff}.bb-channel-list-item .bb-channel-list-item-thumbnail .title-timestamp-overlay:has(.bb-channel-list-item-title,.bb-channel-list-item-preview-custom-field){background:linear-gradient(var(--gradient-deg), #000000bf 0%, #0000 50%)}.bb-channel-list-item .bb-channel-list-item-thumbnail .thumbnail-on-error{width:35%;height:100%;aspect-ratio:inherit;justify-content:center;align-items:center;margin:0 auto;display:none}.bb-channel-list-item .bb-channel-list-item-thumbnail.no-thumb{background-color:#d3d3d3;width:100%}.bb-channel-list-item .bb-channel-list-item-thumbnail.no-thumb .thumbnail-on-error{display:flex}.bb-channel-list-item .bb-channel-list-item-thumbnail.no-thumb img{display:none}.bb-channel-list-item .bb-channel-list-item-thumbnail img{width:inherit;height:100%;aspect-ratio:inherit;transition:opacity .1s;display:block;position:relative}.bb-channel-list-item .bb-channel-list-item-thumbnail.loading img{opacity:0}.bb-channel-list-item .bb-channel-list-item-thumbnail .bb-channel-moving-thumbnail{object-fit:cover;z-index:2;border-radius:inherit;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.bb-channel-list-item .bb-channel-list-item-thumbnail .bb-channel-list-item-watched-progress{z-index:3;pointer-events:none;background-color:#ffffff59;height:4px;position:absolute;bottom:0;left:0;right:0;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-thumbnail .bb-channel-list-item-watched-progress-fill{background-color:var(--watched-progress-color,#4a90e2);height:100%;transition:width .25s linear}.bb-channel-list-item .bb-channel-list-item-embargo-countdown{z-index:2;opacity:0;pointer-events:none;color:#fff;font-variant-numeric:tabular-nums;letter-spacing:.05em;background-color:#000000b3;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-weight:600;transition:opacity .2s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.bb-channel-list-item .bb-channel-list-item-embargo-countdown span:first-child{opacity:1;text-transform:uppercase;letter-spacing:.1em;font-weight:400}.bb-channel-list-item .bb-channel-list-item-embargo-countdown .bb-channel-list-item-embargo-date{opacity:.75;margin-top:4px;font-weight:400}.bb-channel-list-item .bb-channel-list-item-embargo-countdown.title-in-thumbnail{justify-content:flex-start;align-items:flex-start;padding-top:12px;padding-left:12px}.bb-channel-list-item .bb-channel-list-item-thumbnail:has(.title-in-thumbnail) .title-timestamp-overlay .bb-channel-list-item-title{max-width:70%}.bb-channel-list-item:has(.bb-channel-list-item-embargo-countdown){cursor:default}.bb-channel-list-item:hover .bb-channel-list-item-embargo-countdown{opacity:1}.bb-channel-list-item:focus-visible .bb-channel-list-item-embargo-countdown{opacity:1}.bb-channel-list-item:hover:has(.bb-channel-list-item-embargo-countdown) .title-timestamp-overlay:not(.same-position) .bb-channel-list-item-duration{opacity:0}.bb-channel-list-item:focus-visible:has(.bb-channel-list-item-embargo-countdown) .title-timestamp-overlay:not(.same-position) .bb-channel-list-item-duration{opacity:0}.bb-channel-list-item .bb-channel-list-item-thumbnail:has(.same-position) .bb-channel-list-item-embargo-date{display:none}.bb-channel-list-item:not(:-webkit-any(.image-entity,:has(.bb-channel-list-item-embargo-countdown))):focus-visible .playbutton{opacity:1}.bb-channel-list-item:not(:-moz-any(.image-entity,:has(.bb-channel-list-item-embargo-countdown))):focus-visible .playbutton{opacity:1}.bb-channel-list-item:not(:is(.image-entity,:has(.bb-channel-list-item-embargo-countdown))):focus-visible .playbutton{opacity:1}.bb-channel-list-item:not(:-webkit-any(.image-entity,:has(.bb-channel-list-item-embargo-countdown))):hover .playbutton{opacity:1}.bb-channel-list-item:not(:-moz-any(.image-entity,:has(.bb-channel-list-item-embargo-countdown))):hover .playbutton{opacity:1}.bb-channel-list-item:not(:is(.image-entity,:has(.bb-channel-list-item-embargo-countdown))):hover .playbutton{opacity:1}.bb-channel-list-item:has(.bb-channel-moving-thumbnail) .playbutton{opacity:0!important}.bb-channel-list-item .playbutton{z-index:1;opacity:0;background-color:var(--play-bg-color,#181818);border-radius:50%;justify-content:center;align-items:center;width:17%;min-width:40px;transition:opacity .25s;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.bb-channel-list-item .bb-channel-list-item-title{z-index:2;text-wrap:balance;word-break:break-word;max-height:4em;font-weight:400;font-family:var(--bb-channel-primary-font-family);color:var(--playlist-font-color,var(--bb-channel-primary-color));font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-video-title-thumbnail,1.25));margin:.3em 0 0;padding-right:6px;transition:opacity .2s,max-height .25s,margin .25s;position:relative}.bb-channel-detail-page-related-items .bb-channel-list-item .bb-channel-list-item-title{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-detail-video-title,1.25))}.bb-channel-list-item .bb-channel-list-item-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-title.show{display:block}.bb-channel-list-item .bb-channel-list-item-duration{z-index:2;font-weight:600;line-height:1.5;font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-video-timestamp,.75));background-color:#181818dd;border-radius:6px;padding:3px 8px;transition:background-color .25s;position:absolute}.bb-channel-list-item .bb-channel-list-item-preview-custom-field{opacity:.75;text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;width:100%;overflow:hidden}.bb-channel-list-item.bb-channel-listitems-player .bb-channel-list-item-preview-custom-field>span{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-player-custom-field,.75))}.bb-channel-list-item.selected{cursor:auto;pointer-events:none}.bb-channel-list-item.selected .playbutton{display:none}.bb-channel-list-item.selected .title-timestamp-overlay{--spacing-vertical:0px;--spacing-horizontal:0px}.bb-channel-list-item.selected .bb-channel-list-item-duration{border-radius:var(--bb-channel-border-radius,5px);text-transform:uppercase;text-align:center;justify-content:center;align-items:center;width:100%;height:100%;margin:0;display:flex;top:0;bottom:0;left:0;right:0}.bb-channel-list-item.selected .bb-channel-list-item-title{font-weight:600}.bb-channel-detail-page-size-M .bb-channel-list-item.display-horizontal,.bb-channel-detail-page-size-S .bb-channel-list-item.display-horizontal{--base-font-size:.75rem;padding:8px}.bb-channel-size-S .bb-channel-list-item.bb-channel-listitems-player{align-items:center;display:grid}.bb-channel-size-S .bb-channel-list-item.bb-channel-listitems-player.show-title{grid-template-rows:1fr;grid-template-columns:1fr 1fr}.bb-channel-size-S .bb-channel-list-item.bb-channel-listitems-player.show-title .bb-channel-list-item-title{scroll-behavior:auto;text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:4;-webkit-box-orient:vertical;margin:0 5px 0 10px;display:-webkit-box;overflow:hidden}.bb-channel-size-S .bb-channel-list-item.bb-channel-listitems-player .bb-channel-list-item-duration{bottom:-9px;right:5px}.bb-channel-touch-device .bb-channel-list-item .playbutton{display:none}.bb-channel-list-item.display-horizontal .bb-channel-list-item-hover-info{display:none!important}.bb-channel-list-item .bb-channel-list-item-hover-info{z-index:3;opacity:0;pointer-events:none;color:#fff;border-radius:var(--bb-channel-border-radius,5px);background:0 0;flex-direction:column;justify-content:flex-end;padding:8px;transition:opacity .3s,transform .3s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-hover-info .bb-channel-list-item-title{color:#fff;text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 4px;font-weight:600;display:-webkit-box;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-hover-info .bb-channel-list-item-hover-description{color:#ffffffd9;text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;line-height:1.4;display:-webkit-box;overflow:hidden}.bb-channel-list-item .bb-channel-list-item-hover-info .bb-channel-list-item-hover-description p{margin:0}.bb-channel-list-item .bb-channel-list-item-hover-info .bb-channel-list-item-hover-description p:first-child{display:initial}.bb-channel-list-item .bb-channel-list-item-hover-info .bb-channel-list-item-hover-duration{background-color:#181818dd;border-radius:6px;width:-moz-fit-content;width:fit-content;margin-top:6px;padding:3px 8px;font-weight:600;line-height:1.5}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail{overflow:hidden}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail{overflow:hidden}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail{overflow:hidden}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail img{transition:transform .4s}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail img{transition:transform .4s}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail img{transition:transform .4s}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .bb-channel-list-item-thumbnail img{transform:scale(1.06)}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .bb-channel-list-item-thumbnail img{transform:scale(1.06)}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .bb-channel-list-item-thumbnail img{transform:scale(1.06)}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .bb-channel-list-item-thumbnail img{transform:scale(1.06)}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .bb-channel-list-item-thumbnail img{transform:scale(1.06)}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .bb-channel-list-item-thumbnail img{transform:scale(1.06)}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay{background:0 0}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay{background:0 0}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay{background:0 0}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{background:0 0}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{background:0 0}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{background:0 0}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-title,.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-title,.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-title,.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-title{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-title{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-title{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-zoom .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail{transition:box-shadow .3s}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail{transition:box-shadow .3s}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)) .bb-channel-list-item-thumbnail{transition:box-shadow .3s}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .bb-channel-list-item-thumbnail{box-shadow:0 0 0 2px var(--hover-outline-color,#fff), 0 0 20px var(--hover-outline-glow,#ffffff26)}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .bb-channel-list-item-thumbnail{box-shadow:0 0 0 2px var(--hover-outline-color,#fff), 0 0 20px var(--hover-outline-glow,#ffffff26)}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .bb-channel-list-item-thumbnail{box-shadow:0 0 0 2px var(--hover-outline-color,#fff), 0 0 20px var(--hover-outline-glow,#ffffff26)}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .bb-channel-list-item-thumbnail{box-shadow:0 0 0 2px var(--hover-outline-color,#fff), 0 0 20px var(--hover-outline-glow,#ffffff26)}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .bb-channel-list-item-thumbnail{box-shadow:0 0 0 2px var(--hover-outline-color,#fff), 0 0 20px var(--hover-outline-glow,#ffffff26)}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .bb-channel-list-item-thumbnail{box-shadow:0 0 0 2px var(--hover-outline-color,#fff), 0 0 20px var(--hover-outline-glow,#ffffff26)}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover{transform:scale(1)}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover{transform:scale(1)}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover{transform:scale(1)}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible{transform:scale(1)}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible{transform:scale(1)}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible{transform:scale(1)}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay{background:0 0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay{background:0 0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay{background:0 0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{background:0 0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{background:0 0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{background:0 0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-title,.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-title,.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-title,.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay .bb-channel-list-item-preview-custom-field{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)).show-title:hover>.bb-channel-list-item-title,.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)).show-title:hover>.bb-channel-list-item-preview-custom-field{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)).show-title:hover>.bb-channel-list-item-title,.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)).show-title:hover>.bb-channel-list-item-preview-custom-field{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)).show-title:hover>.bb-channel-list-item-title,.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)).show-title:hover>.bb-channel-list-item-preview-custom-field{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)).show-title:focus-visible>.bb-channel-list-item-title{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)).show-title:focus-visible>.bb-channel-list-item-title{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)).show-title:focus-visible>.bb-channel-list-item-title{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)).show-title:focus-visible>.bb-channel-list-item-preview-custom-field{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)).show-title:focus-visible>.bb-channel-list-item-preview-custom-field{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)).show-title:focus-visible>.bb-channel-list-item-preview-custom-field{opacity:1}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)).show-title:hover .bb-channel-list-item-hover-info .bb-channel-list-item-title{display:none}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)).show-title:hover .bb-channel-list-item-hover-info .bb-channel-list-item-title{display:none}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)).show-title:hover .bb-channel-list-item-hover-info .bb-channel-list-item-title{display:none}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)).show-title:focus-visible .bb-channel-list-item-hover-info .bb-channel-list-item-title{display:none}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)).show-title:focus-visible .bb-channel-list-item-hover-info .bb-channel-list-item-title{display:none}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)).show-title:focus-visible .bb-channel-list-item-hover-info .bb-channel-list-item-title{display:none}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):not(.show-title):hover>.bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):not(.show-title):hover>.bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):not(.show-title):hover>.bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):not(.show-title):focus-visible>.bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):not(.show-title):focus-visible>.bb-channel-list-item-title{opacity:0}.hover-style-outlined .bb-channel-list-item:not(:is(.display-horizontal,.selected)):not(.show-title):focus-visible>.bb-channel-list-item-title{opacity:0}.bb-channel-grid-page[class*=hover-] .grid-page-content>*{content-visibility:visible}.hover-style-background-color .grid-columns,.hover-style-background-color .grid-page-content,.hover-style-background-color .bb-channel-cliplist-outer-wrapper{overflow:visible}.hover-style-background-color .bb-scroll-container{overflow:auto clip}.hover-style-background-color .bb-channel-cliplist-header,.hover-style-background-color .bb-channel-carousel-header{padding-bottom:14px}.hover-style-background-color .bb-channel-list-item-wrapper{position:relative;overflow:visible}.hover-style-background-color .bb-channel-list-item-wrapper:before{content:\"\";border-radius:calc(var(--bb-channel-border-radius,5px) + 8px);background-color:var(--thumb-color,#3c3c3c);opacity:0;z-index:0;pointer-events:none;transition:opacity .35s,transform .35s cubic-bezier(.34,1.56,.64,1);position:absolute;top:-12px;bottom:-12px;left:-12px;right:-12px;transform:scale(.95)}.hover-style-background-color .bb-channel-list-item-wrapper:hover:before,.hover-style-background-color .bb-channel-list-item-wrapper:focus-within:before{opacity:1;transform:scale(1)}.hover-style-background-color .bb-channel-list-item-wrapper>*{z-index:1;position:relative}.hover-style-background-color:not(.hover-scale-off) .bb-channel-list-item-wrapper:before{top:-10px;bottom:-10px;left:-6px;right:-6px}.hover-style-background-color:not(.hover-scale-off) .grid-columns{padding-block-start:6px;padding-block-end:6px}.hover-style-background-color:not(.hover-scale-off) .bb-scroll-container{margin-top:-6px;padding-block-start:6px;padding-block-end:6px}.hover-style-background-color.hover-scale-off .bb-channel-list-item-wrapper:before{top:-10px;bottom:-10px;left:-10px;right:-10px}.hover-style-background-color.hover-scale-off .grid-columns{padding-block-start:14px;padding-block-end:14px}.hover-style-background-color.hover-scale-off .bb-scroll-container{margin-top:-14px;padding-block-start:14px;padding-block-end:14px}.hover-style-background-color.hover-desc-on .bb-channel-list-item-wrapper:not(:has(>.display-horizontal)):before{height:calc(100cqw / var(--thumb-aspect-ratio,1.7777) + 20px);bottom:auto}.hover-desc-off .bb-channel-list-item-hover-description{display:none!important}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover:not(.display-horizontal)>.bb-channel-list-item-title,.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover:not(.display-horizontal)>.bb-channel-list-item-preview-custom-field{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover:not(.display-horizontal)>.bb-channel-list-item-title,.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover:not(.display-horizontal)>.bb-channel-list-item-preview-custom-field{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover:not(.display-horizontal)>.bb-channel-list-item-title,.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover:not(.display-horizontal)>.bb-channel-list-item-preview-custom-field{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible:not(.display-horizontal)>.bb-channel-list-item-title{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible:not(.display-horizontal)>.bb-channel-list-item-title{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible:not(.display-horizontal)>.bb-channel-list-item-title{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible:not(.display-horizontal)>.bb-channel-list-item-preview-custom-field{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible:not(.display-horizontal)>.bb-channel-list-item-preview-custom-field{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible:not(.display-horizontal)>.bb-channel-list-item-preview-custom-field{opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .title-timestamp-overlay{opacity:0;transition:opacity .2s}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .title-timestamp-overlay{opacity:0;transition:opacity .2s}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .title-timestamp-overlay{opacity:0;transition:opacity .2s}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{opacity:0;transition:opacity .2s}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{opacity:0;transition:opacity .2s}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .title-timestamp-overlay{opacity:0;transition:opacity .2s}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):hover .playbutton{opacity:0}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):hover .playbutton{opacity:0}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):hover .playbutton{opacity:0}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):focus-visible .playbutton{opacity:0}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):focus-visible .playbutton{opacity:0}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):focus-visible .playbutton{opacity:0}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):hover .bb-channel-list-item-hover-info{opacity:1;pointer-events:auto;background:linear-gradient(#0000 0%,#0006 40%,#000000d9 100%)}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):hover .bb-channel-list-item-hover-info{opacity:1;pointer-events:auto;background:linear-gradient(#0000 0%,#0006 40%,#000000d9 100%)}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):hover .bb-channel-list-item-hover-info{opacity:1;pointer-events:auto;background:linear-gradient(#0000 0%,#0006 40%,#000000d9 100%)}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):focus-visible .bb-channel-list-item-hover-info{opacity:1;pointer-events:auto;background:linear-gradient(#0000 0%,#0006 40%,#000000d9 100%)}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):focus-visible .bb-channel-list-item-hover-info{opacity:1;pointer-events:auto;background:linear-gradient(#0000 0%,#0006 40%,#000000d9 100%)}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):focus-visible .bb-channel-list-item-hover-info{opacity:1;pointer-events:auto;background:linear-gradient(#0000 0%,#0006 40%,#000000d9 100%)}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):hover .bb-channel-list-item-hover-info .bb-channel-list-item-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box!important}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):hover .bb-channel-list-item-hover-info .bb-channel-list-item-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box!important}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):hover .bb-channel-list-item-hover-info .bb-channel-list-item-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box!important}.hover-desc-on .bb-channel-list-item:not(:-webkit-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):focus-visible .bb-channel-list-item-hover-info .bb-channel-list-item-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box!important}.hover-desc-on .bb-channel-list-item:not(:-moz-any(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):focus-visible .bb-channel-list-item-hover-info .bb-channel-list-item-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box!important}.hover-desc-on .bb-channel-list-item:not(:is(.display-horizontal,.selected)):not(:has(.bb-channel-list-item-embargo-countdown)):focus-visible .bb-channel-list-item-hover-info .bb-channel-list-item-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box!important}.hover-scale-off .bb-channel-list-item:not(.display-horizontal){transform:translate(0,0)!important}.hover-scale-off .grid-columns,.hover-scale-off .bb-scroll-container{padding-top:4px}.bb-channel-logo{flex-direction:row;align-items:center;gap:10px;display:flex}.bb-channel-logo.search-bar{padding-right:48px}.bb-channel-logo img{width:auto;max-width:50%;max-height:60px}.bb-channel-logo h2{font-size:clamp(16px * var(--bb-font-scale-playlist-title,1), 3.5vw * var(--bb-font-scale-playlist-title,1), 23px * var(--bb-font-scale-playlist-title,1));margin:0;line-height:max(16px,min(3.5vw,23px))}.bb-channel-navigation-bar{width:100%;padding:0;position:relative}.bb-channel-navigation-bar .nav-container{padding:10px var(--bb-channel-padding);flex-wrap:nowrap;gap:10px;transition:all .3s;display:flex;position:relative;overflow:visible}.bb-channel-navigation-bar .nav-items-measurement{visibility:hidden;pointer-events:none;gap:10px;display:flex;position:absolute;top:0;left:0}.bb-channel-navigation-bar .nav-item-measure{white-space:nowrap}.bb-channel-navigation-bar .overflow-menu-wrapper{align-items:center;display:flex;position:relative}.bb-channel-navigation-bar .overflow-menu-button{justify-content:center;align-items:center;min-width:auto;padding:10px 12px;display:flex}.bb-channel-navigation-bar .overflow-menu-button svg{display:block}.bb-channel-navigation-bar .overflow-menu-button:hover{opacity:.9}.bb-channel-navigation-bar .overflow-dropdown{z-index:100;flex-direction:column;gap:4px;min-width:180px;padding:5px;animation:.2s slideDown;display:flex;position:absolute;top:calc(100% + 5px);right:0;box-shadow:0 4px 12px #00000026}.bb-channel-navigation-bar .overflow-dropdown-item{cursor:pointer;width:100%;font-size:calc(16px * var(--bb-font-scale-navigation,1));text-align:left;white-space:nowrap;background:0 0;border:none;padding:10px 16px;font-weight:500;-webkit-text-decoration:underline #0000;text-decoration:underline #0000;transition:color .3s,background-color .3s,text-decoration-color .3s}.bb-channel-navigation-bar .overflow-dropdown-item:hover[data-underline-hover=true],.bb-channel-navigation-bar .overflow-dropdown-item.active[data-underline-active=true]{text-decoration-color:currentColor}.bb-channel-navigation-bar .overflow-dropdown-item.active{pointer-events:none;font-weight:600}.bb-channel-navigation-bar .overflow-dropdown-item:hover{opacity:.9}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.bb-channel-navigation-bar .nav-item{cursor:pointer;font-size:calc(16px * var(--bb-font-scale-navigation,1));white-space:nowrap;background:0 0;border:none;padding:10px 20px;font-weight:500;-webkit-text-decoration:underline #0000;text-decoration:underline #0000;transition:color .3s,background-color .3s,text-decoration-color .3s;position:relative}.bb-channel-navigation-bar .nav-item:hover[data-underline-hover=true],.bb-channel-navigation-bar .nav-item.active[data-underline-active=true]{text-decoration-color:currentColor}.bb-channel-navigation-bar .nav-item.active{pointer-events:none}.bb-channel-navigation-bar .nav-item:focus{outline:2px solid var(--bb-channel-button-color,#007bff);outline-offset:2px}.bb-channel-navigation-bar .nav-item:focus:not(:focus-visible){outline:none}.bb-channel-navigation-bar .mobile-menu-overlay{z-index:999;background-color:#000000b3;animation:.3s fadeIn;position:fixed;top:0;bottom:0;left:0;right:0}.bb-channel-navigation-bar .mobile-menu{z-index:1000;flex-direction:column;justify-content:center;align-items:center;width:100%;padding:20px;animation:.3s fadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow-y:auto}.bb-channel-navigation-bar .mobile-menu-items{flex-direction:column;justify-content:space-around;align-items:stretch;gap:16px;width:auto;min-width:min(65%,230px);max-width:max(400px,95%);max-height:90vh;display:flex;overflow-y:auto}.bb-channel-navigation-bar .mobile-nav-item{cursor:pointer;width:100%;font-size:calc(20px * var(--bb-font-scale-navigation,1));text-align:center;background:0 0;border:none;padding:12px 16px;-webkit-text-decoration:underline #0000;text-decoration:underline #0000;transition:color .3s,background-color .3s,text-decoration-color .3s}.bb-channel-navigation-bar .mobile-nav-item:hover[data-underline-hover=true],.bb-channel-navigation-bar .mobile-nav-item.active[data-underline-active=true]{text-decoration-color:currentColor}.bb-channel-navigation-bar .mobile-menu-close{top:var(--base-padding);right:max(var(--bb-channel-padding), var(--base-padding));cursor:pointer;background:0 0;border:none;padding:8px;transition:all .3s;position:absolute}.bb-channel-navigation-bar .mobile-menu-close:hover{opacity:.7}.bb-channel-navigation-bar .mobile-menu-close svg{display:block}.bb-channel-navigation-bar .hamburger-button{cursor:pointer;margin-left:auto;margin-right:max(var(--bb-channel-padding), var(--base-padding));margin-top:var(--base-padding);border:none;border-radius:5px;padding:8px;transition:all .3s;display:none}.bb-channel-navigation-bar .hamburger-button:hover{opacity:.9}.bb-channel-navigation-bar .hamburger-button:active{opacity:.8}.bb-channel-navigation-bar .hamburger-button:focus{outline:2px solid var(--bb-channel-button-color,#007bff);outline-offset:2px}.bb-channel-navigation-bar .hamburger-button:focus:not(:focus-visible){outline:none}.bb-channel-navigation-bar .hamburger-button svg{display:block}.bb-channel-navigation-bar:has(+.bb-channel-featured-header-wrapper) .hamburger-button{z-index:3;position:absolute;top:0;right:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}:not(:-webkit-any(.bb-channel-size-S,.bb-channel-size-M)) .bb-channel-navigation-bar:not(:has(+.bb-channel-featured-header-wrapper)){padding-bottom:var(--base-padding)}:not(:-moz-any(.bb-channel-size-S,.bb-channel-size-M)) .bb-channel-navigation-bar:not(:has(+.bb-channel-featured-header-wrapper)){padding-bottom:var(--base-padding)}:not(:is(.bb-channel-size-S,.bb-channel-size-M)) .bb-channel-navigation-bar:not(:has(+.bb-channel-featured-header-wrapper)){padding-bottom:var(--base-padding)}.bb-channel-size-S .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-M .bb-channel-navigation-bar .hamburger-button{display:block}.bb-channel-size-S .bb-channel-navigation-bar .nav-container,.bb-channel-size-M .bb-channel-navigation-bar .nav-container,.bb-channel-size-L .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-XL .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-XXL .bb-channel-navigation-bar .hamburger-button,.bb-channel-size-XXXL .bb-channel-navigation-bar .hamburger-button{display:none}.bb-channel-size-L .bb-channel-navigation-bar .nav-container,.bb-channel-size-XL .bb-channel-navigation-bar .nav-container,.bb-channel-size-XXL .bb-channel-navigation-bar .nav-container,.bb-channel-size-XXXL .bb-channel-navigation-bar .nav-container{display:flex}.field-label{font-family:var(--bb-channel-primary-font-family)}.field-value{font-family:var(--bb-channel-secondary-font-family)}.field-value-plain{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;font-weight:inherit}.clip-fields-wrapper{flex-direction:column;gap:12px;display:flex}.bb-channel-detail-page-related-items .clip-fields-wrapper .clip-field{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-detail-custom-field,1))}.bb-channel-overview-page-related-items .clip-fields-wrapper .clip-field{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-overview-custom-field,1))}.clip-fields-wrapper .field-label{font-family:var(--bb-channel-primary-font-family)}.clip-fields-wrapper .field-value{font-family:var(--bb-channel-secondary-font-family)}.bb-channel-playerblock{width:100%;height:100%;max-width:var(--max-player-block-width);flex-direction:column;margin:0 auto;display:flex;position:relative}.bb-channel-playerblock .bb-channel-playerblock-wrapper .description-wrapper .description-text{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-player-description,1))}.bb-channel-playerblock .ref-wrapper{padding:0}.bb-channel-playerblock:has(.compact-mode){height:auto}.bb-channel-playerblock:has(.compact-mode) .toggle-player{display:none}.bb-channel-playerblock .description-wrapper .description-text,.bb-channel-playerblock .description-wrapper .description-text p{margin-top:2px}.bb-channel-playerblock .bb-channel-playerblock-wrapper{flex-direction:row;gap:15px;display:flex}.bb-channel-playerblock .bb-channel-playerblock-content{min-width:150px;position:relative}.bb-channel-playerblock .bb-channel-playerblock-player-wrapper{flex-direction:column;flex:var(--sidebar-count,1.5);min-width:0;height:100%;display:flex}.bb-channel-playerblock .bb-channel-playerblock-title-toggle{flex-direction:row;align-items:center;display:flex;position:relative}.bb-channel-playerblock .bb-channel-playerblock-title-toggle:empty{display:none}.bb-channel-playerblock .bb-channel-playerblock-no-video-titles{justify-content:flex-end}.bb-channel-playerblock .bb-channel-playerblock-player{border-radius:var(--bb-channel-border-radius,5px);z-index:1;position:relative;overflow:hidden}.bb-channel-playerblock .bb-channel-playerblock-player.is-floating{z-index:99}.bb-channel-playerblock .bb-channel-playerblock-player:has(.bb-fullscreen){overflow:visible!important}.bb-channel-playerblock .bb-channel-playerblock-player:has(.bb-fullscreen) *{overflow:visible!important}.bb-channel-playerblock .player-container{height:100%;display:grid;overflow:hidden}.bb-channel-playerblock .player-container>*{grid-area:1/1}.bb-channel-playerblock .player-container .player-bg{border-radius:var(--bb-channel-border-radius,5px);filter:brightness(.5);width:100%;height:100%}.bb-channel-playerblock .bb-channel-playerblock-content{opacity:1;border-top-left-radius:var(--bb-channel-border-radius,5px);flex:.5;width:100%;transition:opacity .75s;display:block;overflow:hidden}.bb-channel-playerblock .bb-channel-playerblock-content:has(.compact-mode){flex:1;min-width:0;min-height:0;overflow:hidden}.bb-channel-playerblock .bb-channel-playerblock-mediaclip-title{text-align:left;letter-spacing:0;opacity:1;width:100%;cursor:initial;font-weight:700;line-height:1.2;font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-player-title,1.75));white-space:nowrap;text-overflow:ellipsis;margin:12px 0 0;display:inline-block;overflow:hidden}.bb-channel-playerblock .bb-channel-playerblock-mediaclip-customfield{text-align:left;opacity:.8;margin:8px 0;line-height:1.3}.bb-channel-playerblock .bb-channel-playerblock-mediaclip-customfield>span{font-size:calc(var(--base-font-size) * var(--bb-font-multiplier-player-custom-field,.75))}.bb-channel-playerblock.hide-content .bb-channel-playerblock-wrapper{gap:0}.bb-channel-playerblock.hide-content .toggle-player{transform:scaleX(-1)}.bb-channel-playerblock.hide-content .bb-channel-playerblock-mobile-nextup{background-color:var(--bb-channel-panel-color,#e9e9e9);border-radius:0 0 var(--bb-channel-border-radius,5px) var(--bb-channel-border-radius,5px)}.bb-channel-playerblock.hide-content .bb-channel-playerblock-mobile-nextup-arrow{transform:scaleY(1)}.bb-channel-playerblock .toggle-player{cursor:pointer;margin-left:auto;transition:transform .25s;display:flex}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup{background-color:var(--bb-channel-panel-color,#e9e9e9);z-index:1;cursor:pointer;border-bottom:2px solid #949494c9;border-radius:0;align-items:center;display:none}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup-arrow{transition:transform .25s;transform:scaleY(-1)}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup-arrow>path{fill:var(--bb-channel-button-color,#000)}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup .bb-channel-playerblock-mobile-nextup-text{font-size:calc(.7em * var(--bb-channel-font-size-scale,1));margin:0}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup-container{flex-direction:column;margin:10px;display:flex}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup .bb-channel-playerblock-mobile-nextup-title{text-overflow:ellipsis;text-wrap:balance;white-space:nowrap;font-size:calc(.9em * var(--bb-channel-font-size-scale,1));scroll-behavior:auto;max-width:calc(100% - 2px);min-height:1.3em;margin:0;overflow:hidden}.bb-channel-playerblock .bb-channel-playerblock-mobile-nextup-arrow{position:absolute;right:15px}:not(.bb-channel-size-S) .bb-channel-playerblock.hide-content .bb-channel-playerblock-content{opacity:0;flex:.0001;min-width:0;transition:opacity .5s}.bb-channel-size-S .bb-channel-playerblock .bb-channel-playerblock-wrapper{gap:0}.bb-channel-size-S .bb-channel-playerblock .toggle-player{display:none}.bb-channel-size-S .bb-channel-playerblock .bb-channel-playerblock-mediaclip-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;scroll-behavior:auto;-webkit-box-orient:vertical;width:87%;display:-webkit-box;overflow:hidden}.bb-channel-size-S .bb-channel-playerblock.hide-content .bb-channel-playerblock-content{opacity:0;max-height:0;transition:all .25s linear;transform:translateY(-275px)}.bb-channel-size-S .bb-channel-playerblock .bb-channel-playerblock-content{opacity:1;z-index:0;background-color:var(--bb-channel-panel-color,#e9e9e9);border-radius:0 0 var(--bb-channel-border-radius,5px) var(--bb-channel-border-radius,5px);flex:2;height:100%;max-height:1000px;transition:all .25s linear;transform:translateY(0)}.bb-channel-size-S .bb-channel-playerblock .bb-channel-playerblock-mobile-nextup{display:flex}.bb-channel-size-S .bb-channel-playerblock:has(.bb-channel-playerblock-mobile-nextup) .bb-channel-playerblock-wrapper{flex-direction:column}.bb-channel-size-S .bb-channel-playerblock .bb-channel-mobile-playlist-below .bb-fade-dots,.bb-channel-size-S .bb-channel-playerblock .bb-channel-mobile-playlist-below .bb-channel-cliplist-header{display:none}.bb-channel-size-S .bb-channel-playerblock .bb-channel-mobile-playlist-below .bb-channel-cliplist-outer-wrapper{padding-top:0;padding-bottom:0}.bb-channel-size-S .bb-channel-playerblock .bb-channel-playerblock-player-wrapper>.description-wrapper{visibility:visible;opacity:1;max-height:none}.bb-channel-size-S .bb-channel-playerblock.context-type-cliplist .bb-channel-playerblock-player{border-radius:var(--bb-channel-border-radius,5px) var(--bb-channel-border-radius,5px) 0 0}.playerblock-content-wrapper{position:absolute;top:0;bottom:0;left:0;right:0}.playerblock-content-wrapper .playerblock-content-list{scrollbar-width:thin;scrollbar-color:var(--bb-channel-scroll-bar-color,#000) transparent;flex-direction:column;gap:10px;height:100%;padding:0 5px 0 0;display:flex;overflow-y:auto}.playerblock-content-wrapper .playerblock-content-list::-webkit-scrollbar{width:10px}.playerblock-content-wrapper .playerblock-content-list::-webkit-scrollbar-track{border-radius:var(--bb-channel-border-radius,5px)}.playerblock-content-wrapper .playerblock-content-list::-webkit-scrollbar-thumb{background-color:var(--bb-channel-scroll-bar-color,#000);border-radius:var(--bb-channel-border-radius,5px)}.playerblock-content-wrapper.compact-mode{flex-direction:column;height:100%;max-height:100%;display:flex}.playerblock-content-wrapper.compact-mode .playerblock-content-list.compact{scrollbar-width:thin;scrollbar-color:var(--bb-channel-scroll-bar-color,#000) transparent;flex:1;gap:16px;min-height:0;margin:0;padding:0 5px 0 0;overflow:hidden auto}.playerblock-content-wrapper.compact-mode .playerblock-content-list.compact .bb-channel-list-item-wrapper{flex-shrink:0}.playerblock-content-wrapper.compact-mode .playerblock-content-list.compact .bb-channel-list-item{transform:translate(0,0)}.playerblock-content-wrapper.compact-mode .playerblock-content-list.compact .bb-channel-list-item-thumbnail{aspect-ratio:16/9;width:100%}.playerblock-content-wrapper.compact-mode .playerblock-content-list.compact .bb-channel-list-item-title{text-overflow:ellipsis;text-wrap:balance;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:2px;display:-webkit-box;overflow:hidden}.playerblock-content-wrapper.compact-mode.has-toggle:not(.expanded) .playerblock-content-list.compact{overflow:hidden}.playerblock-content-wrapper.compact-mode .playerblock-view-all{border:1px solid var(--bb-channel-secondary-color,currentColor);color:var(--bb-channel-secondary-color,currentColor);border-radius:var(--bb-channel-border-radius,5px);cursor:pointer;font-family:var(--bb-channel-primary-font-family);font-size:calc(.85em * var(--bb-channel-font-size-scale,1));text-align:center;background:0 0;flex-shrink:0;width:100%;margin-top:8px;padding:8px 12px;font-weight:600;transition:background-color .2s,color .2s}.playerblock-content-wrapper.compact-mode .playerblock-view-all:hover{background:var(--bb-channel-secondary-color,currentColor);color:var(--bb-channel-neutral-background-color,#1e1e1e)}.bb-channel-size-S .playerblock-content-wrapper{position:relative}.bb-channel-size-S .playerblock-content-wrapper .playerblock-content-list{gap:var(--item-gap,8px);scrollbar-width:none;max-width:100%;max-height:60vh;margin:5px 10px 0;padding-bottom:15px;overflow:auto}.bb-channel-size-S .playerblock-content-wrapper .playerblock-content-list.grid{grid-template-columns:repeat(2,1fr);display:grid}.bb-channel-size-S .playerblock-content-wrapper .playerblock-content-list.flex{flex-direction:column;display:flex}.bb-channel-size-S .playerblock-content-wrapper .playerblock-content-list::-webkit-scrollbar{display:none}.bb-channel-size-S .playerblock-content-wrapper .playerblock-content-list::-webkit-scrollbar-track{display:none}.bb-channel-size-S .playerblock-content-wrapper .playerblock-content-list::-webkit-scrollbar-thumb{display:none}.bb-channel-promotional-wrapper{border-radius:var(--bb-channel-border-radius,5px)}.bb-channel-promotional-wrapper .promotional-img{object-fit:cover;z-index:0;border-radius:var(--bb-channel-border-radius,5px);width:100%;transition:transform .4s;display:block}.bb-channel-promotional-wrapper .url .promotional-img:hover{transform:scale(1.01)}.bb-channel-promotional-wrapper.promo-layout-large{max-width:80%}.bb-channel-promotional-wrapper.promo-layout-large .promotional-img{aspect-ratio:3}.bb-channel-promotional-wrapper.promo-layout-small{max-width:100%}.bb-channel-promotional-wrapper.promo-layout-small .promotional-img{aspect-ratio:16;max-width:100%}.bb-channel-promotional-wrapper.promo-layout-columns{gap:16px;max-width:80%;display:flex}.bb-channel-promotional-wrapper.promo-layout-columns .promo-column{border-radius:var(--bb-channel-border-radius,5px);flex:1;min-width:0;overflow:hidden}.bb-channel-promotional-wrapper.promo-layout-columns .promotional-img{aspect-ratio:1}.bb-channel-size-M .bb-channel-promotional-wrapper,.bb-channel-size-S .bb-channel-promotional-wrapper{max-width:100%}.bb-channel-size-L .bb-channel-promotional-wrapper.promo-layout-columns,.bb-channel-size-M .bb-channel-promotional-wrapper.promo-layout-columns{gap:8px}.bb-channel-size-S .bb-channel-promotional-wrapper.promo-layout-columns{flex-direction:column;gap:8px}.bb-channel-size-S .bb-channel-promotional-wrapper.promo-layout-columns .promotional-img{aspect-ratio:3}.bb-channel-size-S .bb-channel-promotional-wrapper.promo-layout-columns .bb-fade-slider{width:100%}.bb-channel-size-S .bb-channel-promotional-wrapper.promo-layout-columns .bb-fade-slider .promo-column{width:100%;display:block}.bb-channel-size-S .bb-channel-promotional-wrapper.promo-layout-columns .bb-fade-dots{padding:8px 0 0}.search-container{top:env(safe-area-inset-top,0);left:max(10%, env(safe-area-inset-left));z-index:1000000000;pointer-events:none;justify-content:flex-end;height:0;margin:0 auto;padding:0;display:flex;position:fixed;overflow:visible}.search-container .icon{pointer-events:all;cursor:pointer;max-height:50px;padding:12px;position:absolute;top:4px;right:20px}.search-container .icon svg{width:40px;height:25px}.search-container .icon .search-icon{opacity:1;transition:transform .3s,opacity .3s;position:absolute}.search-container .icon .cross-icon{opacity:0;margin-top:40px;transform:translateY(-100px)}.search-container.search-mode .icon{right:10px}.search-container.search-mode .icon .cross-icon,.search-container.search-mode .icon .search-icon{transform:rotate(180deg)}.search-container.search-mode .icon .cross-icon{opacity:1;transition:transform .3s,opacity .3s;transform:translate(0,0)}.search-container.search-mode .icon .search-icon{display:none}.search-container .search-bg{opacity:0;background-color:#0000;width:calc(100% + 24px);height:140px;position:absolute;top:0;left:-12px;right:-12px}.search-container .search-bar{background-color:var(--bb-channel-search-bar-color);border-radius:var(--bb-channel-border-radius);opacity:0;align-items:center;gap:12px;width:max(150px,min(50%,700px));margin:50px auto 0;padding:24px 12px;display:flex;transform:translateY(-100px)}.search-container .search-bar svg{height:90%}.search-container .search-bar:focus-within{box-shadow:var(--focus-visible-shadow)}.search-container .search-bar input{box-shadow:none;color:var(--bb-channel-primary-color);background-color:#0000;background-image:none;border:none;outline:none;width:100%}.search-container .search-bar input::placeholder{color:#8f8f8f}.search-container .search-bar input::input-placeholder{color:#fff}.search-container.search-mode .search-bar{opacity:1;pointer-events:all;transition:transform .3s,opacity .3s;transform:translate(0,0)}.search-container.within-channel-border{padding-right:var(--bb-channel-padding);margin-right:0;position:absolute;left:0;right:0}.search-container.overview-page-active,.search-container.detail-page-active,.search-container.search-page-active{max-width:1600px;margin:0 auto;right:10%}.search-container.overview-page-active.search-mode-within,.search-container.detail-page-active.search-mode-within,.search-container.search-page-active.search-mode-within{margin-right:12px;transition:background-color .3s;position:sticky}.search-container.overview-page-active.search-mode:not(.background-blur) .search-bg,.search-container.detail-page-active.search-mode:not(.background-blur) .search-bg,.search-container.search-page-active.search-mode:not(.background-blur) .search-bg{background-color:var(--bb-channel-neutral-background-color,#e9e9e9);transition:background-color .4s .4s;-webkit-mask-image:linear-gradient(#0000 0%,#000 0% 95%,#0000 100%);mask-image:linear-gradient(#0000 0%,#000 0% 95%,#0000 100%)}.search-container.overview-page-active .search-bg,.search-container.detail-page-active .search-bg,.search-container.search-page-active .search-bg{opacity:1}.search-container.overview-page-active .icon,.search-container.detail-page-active .icon,.search-container.search-page-active .icon{top:5px;right:0}.search-container.overview-page-active:not(.search-mode) svg>path,.search-container.detail-page-active:not(.search-mode) svg>path,.search-container.search-page-active:not(.search-mode) svg>path{fill:#fff}.search-container.overview-page-active.within-channel-border,.search-container.detail-page-active.within-channel-border,.search-container.search-page-active.within-channel-border{width:90%;max-width:1600px;margin-right:auto;right:0}.search-container.overview-page-active.within-channel-border .icon,.search-container.detail-page-active.within-channel-border .icon,.search-container.search-page-active.within-channel-border .icon{right:-12px}.bb-channel-size-S .search-container{padding-left:0}.bb-channel-size-S .search-container .search-bar{width:90%;margin-top:75px}.bb-channel-size-S .search-container .search-bg{height:155px}.bb-channel-size-S .search-container.overview-page-active .icon,.bb-channel-size-S .search-container.detail-page-active .icon,.bb-channel-size-S .search-container.search-page-active .icon{right:-33px}.bb-channel-size-S .search-container .cross-icon{margin-top:15px;right:-25px}.overlay-wrapper{z-index:1000;width:100%;height:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.overlay-wrapper>*{width:100%;height:100%;display:block}.bb-channel-playerblock--native{flex-direction:column;gap:10px;height:auto;display:flex}.bb-channel-playerblock--native .bb-channel-playerblock-player-wrapper,.bb-channel-playerblock--native .player-container{height:auto}.bb-channel-inline-player-placeholder{aspect-ratio:16/9;cursor:pointer;border-radius:var(--bb-channel-border-radius,5px);background-color:#000;border:none;width:100%;padding:0;display:block;position:relative;overflow:hidden}@media (hover:hover) and (pointer:fine){.bb-channel-inline-player-placeholder:hover .bb-channel-inline-player-play-btn{background-color:#000000b3;transform:translate(-50%,-50%)scale(1.05)}}.bb-channel-inline-player-thumbnail{object-fit:cover;width:100%;height:100%}.bb-channel-inline-player-title-overlay{background:linear-gradient(#000000b3 0%,#0000 100%);padding:10px 12px 20px;position:absolute;top:0;left:0;right:0}.bb-channel-inline-player-title{color:#fff;text-shadow:0 1px 3px #0009;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.85em;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.bb-channel-inline-player-play-btn{filter:drop-shadow(0 2px 4px #0006);background-color:#0000008c;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-3 0 20 20' fill='none'%3E%3Cpath d='M15.982 8.171C16.615 8.564 17 9.256 17 10.002s-.385 1.438-1.018 1.79L3.233 19.651c-.656.442-1.477.46-2.148.08S0 18.637 0 17.86V2.143C0 1.368.415.653 1.086.274a2.11 2.11 0 0 1 2.148.041l12.749 7.857z' fill='%23f5f5f5'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:20px 20px;border-radius:50%;width:48px;height:48px;transition:background-color .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.bb-channel-inline-player-duration{color:#fff;background-color:#181818dd;border-radius:4px;padding:2px 6px;font-size:.75em;font-weight:600;line-height:1.5;position:absolute;bottom:8px;right:8px}.bb-channel-inline-player-playlist{flex-direction:row;gap:8px;padding:4px 0;display:flex;overflow-x:auto}.bb-channel-inline-player-playlist::-webkit-scrollbar{height:4px}.bb-channel-inline-player-playlist::-webkit-scrollbar-thumb{background-color:#ffffff4d;border-radius:2px}.bb-channel-inline-player-playlist-item{cursor:pointer;background:0 0;border:none;flex-direction:column;flex:none;gap:4px;width:120px;padding:0;display:flex}.bb-channel-inline-player-playlist-item:hover .bb-channel-inline-player-playlist-thumbnail{opacity:.8}.bb-channel-inline-player-playlist-thumbnail{aspect-ratio:16/9;object-fit:cover;border-radius:calc(var(--bb-channel-border-radius,5px) / 2);width:100%;transition:opacity .2s}.bb-channel-inline-player-playlist-title{color:var(--bb-channel-text-color,#fff);text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:.75em;overflow:hidden}.bb-channel-inline-player-playlist-more{color:var(--bb-channel-text-color,#fff);opacity:.7;flex:none;align-items:center;padding:0 12px;font-size:.8em;display:flex}`,ra=document.createElement(`style`);ra.textContent=na,window.bluebillywig=window.bluebillywig||{},window.bluebillywig.Channel=function(e){var t,n;this.opts=e;let r=new URLSearchParams(window.location.search);if(r.has(`noStats`)&&(this.opts.appConfig.noStats=r.get(`noStats`)),r.has(`searchBar`)&&(this.opts.appConfig.searchBar=r.get(`searchBar`)===`true`),e!=null&&e.embedData){let t=C.publicationNameFromBaseUrl(e.embedData.baseurl),n=e.embedData.appIndicator||`ch`,r=e.embedData.appId;this._id=`${t}-${n}-${r}`,e.embedData.contentIndicator&&(this._id+=`-${e.embedData.contentIndicator}-${e.embedData.contentId}`)}(t=e.requestParams)!=null&&t.rpctoken&&localStorage.setItem(`bbtl_rpctoken`,e.requestParams.rpctoken),(n=e.requestParams)!=null&&n.jwt&&localStorage.setItem(`bbtl_jwt`,e.requestParams.jwt);let i=window.__bbNativeMode;i!=null&&i.onInit&&i.onInit(e),aa(e,!0),i!=null&&i.onReady&&i.onReady(e)};var ia=new WeakMap;function aa(e,t){var n,r,i;let a=C.findTarget(e,`channel`),o=document.getElementById(`bb-channel-test-e2e`)||document.getElementById(`bb-channel-dev-target`);if(o&&(a={},a.containerNode=o),!a)return;Gi(!window.__bbNativeMode&&e.appConfig.enableUrlNavigation!==!0);let s=window.__bbBridge;s!=null&&s.registerNavigationStateGetter&&s.registerNavigationStateGetter(qi);let c=((n=e.publicationData)==null?void 0:n.secureMediaAssetPath)||((r=e.publicationData)==null?void 0:r.defaultMediaAssetPath);e.appConfig.blocks.forEach(t=>{let n=t.config;n.previewTitleDisplay===void 0?n.previewTitleDisplay=n.showClipTitles?`below`:`none`:n.previewTitleDisplay===null&&(n.previewTitleDisplay=e.appConfig.previewTitleDisplay||`below`),n.previewTimestampDisplay=n.previewTimestampDisplay||e.appConfig.previewTimestampDisplay||`bottomRight`}),lt(e.appConfig,(i=e.publicationData)==null?void 0:i.baseurl,c);let l=(0,b.createRef)(),u=`bb-channel-${e.appConfig.id}`;window.location.href.indexOf(`bbvms.com/ch`)>-1&&(document.title=e.appConfig.name);let d=ia.get(a.containerNode);d||(d=(0,S.createRoot)(a.containerNode),ia.set(a.containerNode,d)),(0,x.flushSync)(()=>{d.render((0,Y.jsx)(`div`,{ref:l,className:`bb-channel-wrapper`,id:u,style:oa}))});let f=document.getElementById(u);if(!f){console.error(`Failed to find channel root element`);return}nt(e.appConfig,f),ir(f);let p=e.nativePlayerMode,m=f;t&&!p?(f.attachShadow({mode:`open`}),m=f.shadowRoot):!t&&!p&&f.shadowRoot&&(m=f.shadowRoot);let h=ia.get(m);if(h||(h=(0,S.createRoot)(m),ia.set(m,h)),(0,x.flushSync)(()=>{h.render((0,Y.jsx)(`div`,{className:`bb-channel-shadow-wrapper`,children:(0,Y.jsx)(ta,{opts:e})}))}),t)if(p)f.appendChild(ra);else{var g;(g=f.shadowRoot)==null||g.appendChild(ra)}}var oa={width:`100%`,height:`100%`,overflow:`hidden`,display:`flex`,backgroundColor:`var(--bb-channel-background-color, #ffffff)`,justifyContent:`center`,textRendering:`optimizeLegibility`,fontSmooth:`always`};window.bluebillywig.Channel.prototype.setAppConfig=function(e){this.opts.appConfig=e,aa(this.opts,!1)},window.bluebillywig.Channel.prototype.setEmbedData=function(e){this.opts.embedData=e,aa(this.opts,!1)};var sa=document.currentScript;if(typeof opts<`u`){opts.lastScript=opts.lastScript||sa;let e=opts,t=()=>{C.createChannel(e)};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t):t()}else typeof devBbJsonUrl<`u`&&(devBbJsonUrl=(new URLSearchParams(window.location.search).get(`json`)||devBbJsonUrl).replace(`.html`,`.json`),fetch(devBbJsonUrl).then(e=>e.json()).then(e=>{C.createChannel(e)}))})();"; //# sourceMappingURL=bundled-channel.d.ts.map