1/*! For license information please see header.js.LICENSE.txt */ 2(()=>{var e={534:e=>{e.exports={shplinks:[{href:"{{ -envUrlVecko }}/ivysilani/",title:"iVysÃlánÃ"},{href:"https://ct24.ceskatelevize.cz/",title:"ÄT24"},{href:"https://sport.ceskatelevize.cz/",title:"Sport"},{href:"https://decko.ceskatelevize.cz/",title:"DéÄko"},{href:"https://www.ceskatelevize.cz/tv-program/",title:"TV program"},{href:"https://www.ceskatelevize.cz/zive/",title:"ŽivÄ"},{href:"https://poplatky.ceskatelevize.cz/",title:"TV poplatky"}],linksLevel2:[{href:"https://www.ceskatelevize.cz/zive/",title:"Živé vysÃlánÃ",class:"zive"},{href:"https://www.ceskatelevize.cz/tv-program/",title:"TV program",class:"tvprogram"}],linksLevel3:[{href:"https://ct24.ceskatelevize.cz/pocasi",title:"PoÄasÃ",class:"pocasi"},{href:"https://teletext.ceskatelevize.cz/",title:"Teletext",class:"teletext"},{href:"https://eshop.ceskatelevize.cz/",title:"E-shop",class:"eshop"},{href:"https://poplatky.ceskatelevize.cz/domacnost",title:"TV poplatky",class:"tvpoplatky"},{href:"https://www.ceskatelevize.cz/vse-o-ct/",title:"VÅ¡e o ÄT",class:"vseoct"},{href:"https://www.ceskatelevize.cz/vse-o-ct/kontakty/",title:"Kontakty",class:"kontakty"}],linksIdentity:{login:{href:"{{ -envUrlVecko }}/profil/prihlasit/",title:"PÅihlásit se",class:"ctg-header-prihlasit-se"},odhlasit:{href:"{{ -envUrlVecko }}/profil/odhlasit/",title:"Odhlásit se",class:"ctg-header-odhlasit-se"},registrace:{href:"{{ -envUrlVecko }}/registrace/",title:"Registrace",class:"registrace"},profil:{href:"{{ -envUrlVecko }}/profil/",title:"Spravovat úÄet",class:"profile"},oblibene:{href:"{{ -envUrlVecko }}/ivysilani/oblibene/",title:"OblÃbené poÅady",class:"vypis-oblibenych"},rozkoukane:{href:"{{ -envUrlVecko }}/ivysilani/rozkoukane/",title:"Rozkoukaná videa",class:"vypis-rozkoukanych"},tv:{href:"{{ -envUrlIdentity }}/tv",title:"PÅihlásit se na TV",class:"tv"}}}}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],t=e.join(","),a="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,n=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},i=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},o=function(e){return"INPUT"===e.tagName},s=function(e,t){return!(t.disabled||function(e){return o(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var r=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(r,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var n=e.getBoundingClientRect(),i=n.width,o=n.height;return 0===i&&0===o}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(o(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var a=t.children.item(r);if("LEGEND"===a.tagName)return!a.contains(e)}return!0}t=t.parentElement}return!1}(t))},c=function(e,t){return!(!s(e,t)||function(e){return function(e){return o(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||e.ownerDocument,a=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=a(window.CSS.escape(e.name));else try{t=a(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var n=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]}(t,e.form);return!n||n===e}(e)}(t)||n(t)<0)},l=e.concat("iframe").join(","),d=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,l)&&s(t,e)};function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h,v=(h=[],{activateTrap:function(e){if(h.length>0){var t=h[h.length-1];t!==e&&t.pause()}var r=h.indexOf(e);-1===r||h.splice(r,1),h.push(e)},deactivateTrap:function(e){var t=h.indexOf(e);-1!==t&&h.splice(t,1),h.length>0&&h[h.length-1].unpause()}}),f=function(e){return setTimeout(e,0)},g=function(e,t){var r=-1;return e.every((function(e,a){return!t(e)||(r=a,!1)})),r},m=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return"function"==typeof e?e.apply(void 0,r):e},y=function(e,r){var o,s=document,l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},r),h={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},y=function(e,t,r){return e&&void 0!==e[t]?e[t]:l[r||t]},b=function(e){return h.containers.some((function(t){return t.contains(e)}))},w=function(e){var t=l[e];if(!t)return null;var r=t;if("string"==typeof t&&!(r=s.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(r=t()))throw new Error("`".concat(e,"` did not return a node"));return r},S=function(){var e;if(!1===y({},"initialFocus"))return!1;if(null!==w("initialFocus"))e=w("initialFocus");else if(b(s.activeElement))e=s.activeElement;else{var t=h.tabbableGroups[0];e=t&&t.firstTabbableNode||w("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},k=function(){if(h.tabbableGroups=h.containers.map((function(e){var r,o,s,l,d,u,p,h=(o=[],s=[],(l=e,d=(r=r||{}).includeContainer,u=c.bind(null,r),p=Array.prototype.slice.apply(l.querySelectorAll(t)),d&&a.call(l,t)&&p.unshift(l),p.filter(u)).forEac
2h((function(e,t){var r=n(e);0===r?o.push(e):s.push({documentOrder:t,tabIndex:r,node:e})})),s.sort(i).map((function(e){return e.node})).concat(o));if(h.length>0)return{container:e,firstTabbableNode:h[0],lastTabbableNode:h[h.length-1]}})).filter((function(e){return!!e})),h.tabbableGroups.length<=0&&!w("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},L=function e(t){!1!==t&&t!==s.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!l.preventScroll}),h.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(S()))},P=function(e){return w("setReturnFocus")||e},E=function(e){b(e.target)||(m(l.clickOutsideDeactivates,e)?o.deactivate({returnFocus:l.returnFocusOnDeactivate&&!d(e.target)}):m(l.allowOutsideClick,e)||e.preventDefault())},A=function(e){var t=b(e.target);t||e.target instanceof Document?t&&(h.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),L(h.mostRecentlyFocusedNode||S()))},O=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==m(l.escapeDeactivates))return e.preventDefault(),void o.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){k();var t=null;if(h.tabbableGroups.length>0){var r=g(h.tabbableGroups,(function(t){return t.container.contains(e.target)}));if(r<0)t=e.shiftKey?h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:h.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var a=g(h.tabbableGroups,(function(t){var r=t.firstTabbableNode;return e.target===r}));if(a<0&&h.tabbableGroups[r].container===e.target&&(a=r),a>=0){var n=0===a?h.tabbableGroups.length-1:a-1;t=h.tabbableGroups[n].lastTabbableNode}}else{var i=g(h.tabbableGroups,(function(t){var r=t.lastTabbableNode;return e.target===r}));if(i<0&&h.tabbableGroups[r].container===e.target&&(i=r),i>=0){var o=i===h.tabbableGroups.length-1?0:i+1;t=h.tabbableGroups[o].firstTabbableNode}}}else t=w("fallbackFocus");t&&(e.preventDefault(),L(t))}(e)},C=function(e){m(l.clickOutsideDeactivates,e)||b(e.target)||m(l.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},T=function(){if(h.active)return v.activateTrap(o),h.delayInitialFocusTimer=l.delayInitialFocus?f((function(){L(S())})):L(S()),s.addEventListener("focusin",A,!0),s.addEventListener("mousedown",E,{capture:!0,passive:!1}),s.addEventListener("touchstart",E,{capture:!0,passive:!1}),s.addEventListener("click",C,{capture:!0,passive:!1}),s.addEventListener("keydown",O,{capture:!0,passive:!1}),o},x=function(){if(h.active)return s.removeEventListener("focusin",A,!0),s.removeEventListener("mousedown",E,!0),s.removeEventListener("touchstart",E,!0),s.removeEventListener("click",C,!0),s.removeEventListener("keydown",O,!0),o};return(o={activate:function(e){if(h.active)return this;var t=y(e,"onActivate"),r=y(e,"onPostActivate"),a=y(e,"checkCanFocusTrap");a||k(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=s.activeElement,t&&t();var n=function(){a&&k(),T(),r&&r()};return a?(a(h.containers.concat()).then(n,n),this):(n(),this)},deactivate:function(e){if(!h.active)return this;clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,x(),h.active=!1,h.paused=!1,v.deactivateTrap(o);var t=y(e,"onDeactivate"),r=y(e,"onPostDeactivate"),a=y(e,"checkCanReturnFocus");t&&t();var n=y(e,"returnFocus","returnFocusOnDeactivate"),i=function(){f((function(){n&&L(P(h.nodeFocusedBeforeActivation)),r&&r()}))};return n&&a?(a(P(h.nodeFocusedBeforeActivation)).then(i,i),this):(i(),this)},pause:function(){return h.paused||!h.active||(h.paused=!0,x()),this},unpause:function(){return h.paused&&h.active?(h.paused=!1,k(),T(),this):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return h.containers=t.map((function(e){return"string"==typeof e?s.querySelector(e):e})),h.active&&k(),this}}).updateContainerElements(e),o};function b(e){this.message=e}b.prototype=new Error,b.prototype.name="InvalidCharacterError";var w="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,a,n=0,i=0,o="";a=t.charAt(i++);~a&&(r=n%4?64*r+a:a,n++%4)?o+=String.fromCharCode(255&r>>(-2*n&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return o};function S(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(w(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return w(t)}}function k(e){this.message=e}k.prototype=new Error,k.prototype.name="InvalidTokenError";var L=function(){return L=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},L.apply(this,arguments)};Object.create,Object.create;var P=function(){return P=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},P.apply(this,arguments)};function E(e){return e.toLowerCase()}Object.create,Object.create;var A=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],O=/[^A-Z0-9]+/gi;function C(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}const T=[{min:320,max:479,label:"320-479"},{min:480,max:767,label:"480-767"},{min:768,max:1135,label:"768-1135"},{min:1136,max:1/0,label:"1136+"}],x=e=>{if(void 0===e)return;const t=T.find((t=>e>=t.min&&e<=t.max));return t?t.label:void 0},I=e=>{var t,r,a,n,i;if("VOD"===e.type){const{gtm:t}=e;return{id:t.id,version:t.version,live:!1,title:t.title,categories:void 0,published:t.published,show:{id:e.showId,title:e.showTitle},channel:void 0}}const{gtm:o}=e;return{id:o.id,version:null===(t=e.broadcastingExtra)||void 0===t?void 0:t.versionId,live:!0,title:o.title,categories:void 0,published:null===(r=e.broadcastingExtra)||void 0===r||null===(a=r.premiere)||void 0===a?void 0:a.toISOString(),show:{id:null===(n=e.broadcastingExtra)||void 0===n?void 0:n.showId,title:null===(i=e.broadcastingExtra)||void 0===i?void 0:i.showTitle},channel:e.encoder}},M=(e,t)=>{const r="VOD"===e.type?Math.floor(e.duration):0,a=r?Math.floor(e.playtime/r*100):0,n=r?Math.floor(Math.floor(e.playtime/r*20)/20*100):0,i="PlayerProgress"===t?n:a,o="VOD"===e.type?i:0,s=Math.floor(e.playtime);return{page:{section:e.origin},player:{iframe:e.inIframe,instance:e.instanceId,version:e.version,playbackId:e.playbackId,type:e.audioOnly?"audio":"video",size:x(e.width),content:I(e),settings:{signLanguage:void 0,subtitles:e.subtitles,audio:e.audiotrack,quality:{bitrate:e.bitrate,resolution:e.quality},autoplay:e.autoplay,screenmode:e.screenmode,newWindow:!1,cast:!1,lightsOff:!1,playbackRate:e.playbackRate},time:{length:(()=>{if("LIVE"===e.type){var t;if(void 0===(null===(t=e.broadcastingExtra)||void 0===t?void 0:t.duration))return;return Math.floor(e.broadcastingExtra.duration)}return Math.floor(e.duration)})(),position:"LIVE"===e.type?void 0:Math.floor(e.position),percentage:"LIVE"===e.type?void 0:o,playtime:s>=0?s:0,currentTimestamp:Date.now(),timeshift:void 0}},interaction:!["PlayerLoad","PlayerUnload","PlayerBuffering","PlayerProgress","PlayerEnd","PlayerBitrateAdaptation","PlayerNextAuto","PlayerHTMLElement","PlayerError"].includes(t)}},F=(e,t)=>({"player.ad":{id:e.ad.id,position:e.ad.position,skipAfter:e.ad.skipAfter,slot:e.ad.slot,title:e.ad.title,type:e.ad.type,time:{length:Math.floor(e.ad.timeLength),position:Math.floor(e.ad.timePosition)}},"player.content.id":e.mainContentId,"player.version":e.version,interaction:["PlayerAdSkip","PlayerAdClick"].includes(t)}),q=e=>{switch(e){case"PlayerTimeshift10sBack":return"player_timeshift_10s_back";case"PlayerTimeshift10sForward":return"player_timeshift_10s_forward";case"Player10sBack":return"player_10s_back";case"Player10sForward":return"player_10s_forward";case"PlayerTimeshiftBackToLive":return"player_timeshift_back-to-live";case"PlayerTimeshiftFromBeginning":return"player_timeshift_from-beginning";case"PlayerSettingsChangeSignLanguage":return"player_settings_change_sign-language";case"PlayerSettingsChangeNewWindow":return"player_settings_change_new-window";case"PlayerSettingsChangeLightsOff":return"player_settings_change_lights-off";case"ShowMainButton":return"show_main-button";default:return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,a=void 0===r?A:r,n=t.stripRegexp,i=void 0===n?O:n,o=t.transform,s=void 0===o?E:o,c=t.delimiter,l=void 0===c?" ":c,d=C(C(e,a,"$1\0$2"),i,"\0"),u=0,p=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(p-1);)p--;return d.slice(u,p).split("\0").map(s).join(l)}(e,P({delimiter:"."},t))}(e,L({delimiter:"_"},t))}var t},D=new class{analyticsContext=null;analyticsSubscribers=[];onContextChange=()=>{};preAction=null;constructor(e){this.addSubscribers(e)}setPreAction(e){this.preAction=e}setOnContextChange(e){this.onContextChange=e}addSubscribers(e){e&&e.forEach((e=>{this.analyticsSubscribers.push(e)}))}setContext(e){this.analyticsContext=e,this.onContextChange(e)}getContext(){return this.analyticsContext}addSubscriber(e){this.analyticsSubscribers.push(e)}setSubscribers(e){this.analyticsSubscribers=e}removeSubscriber(e){if(!e)return this.analyticsSubscribers=[],!0;const t=this.analyticsSubscribers.findIndex((t=>t.name===e));return-1!==t&&(this.analyticsSubscribers.splice(t,1),!0)}trigger(e){this.preAction&&this.preAction(),this.analyticsSubscribers.forEac
2h((t=>{t.callback({...e,context:this.analyticsContext})}))}destroy(){this.removeSubscriber()}}([(()=>{let e=!1;const t=(t,r)=>{window.dataLayer?window.dataLayer.push({event:q(t),...r}):e||(console.warn({message:"GTM Datalayer is missing"}),e=!0)};return{name:"gtm",callback:e=>{switch(e.type){case"PlayerLoad":{const r=M(e.context,e.type);t(e.type,{...r,_clear:!0})}break;case"Player10sBack":case"Player10sForward":case"PlayerTimeshift10sBack":case"PlayerTimeshift10sForward":case"PlayerSeekBack":case"PlayerShare":case"PlayerTimeshiftSeekForward":case"PlayerTimeshiftSeekBack":case"PlayerSeekForward":case"PlayerBuffering":case"PlayerProgress":case"PlayerTimeshiftStart":case"PlayerTimeshiftBackToLive":case"PlayerNextAutoCancel":case"PlayerEnd":case"PlayerReplay":case"PlayerPause":case"PlayerResume":case"PlayerIndexStartBar":case"PlayerIndexStartList":case"PlayerBitrateAdaptation":case"PlayerShowDetail":case"PlayerTimeshiftFromBeginning":case"PlayerNextAuto":case"PlayerNextManual":case"PlayerSettingsChangeMute":case"PlayerSettingsChangeSignLanguage":case"PlayerSettingsChangeSubtitles":case"PlayerSettingsChangeAudio":case"PlayerSettingsChangeResolution":case"PlayerSettingsChangeScreenmode":case"PlayerSettingsChangeNewWindow":case"PlayerSettingsChangeCast":case"PlayerSettingsChangeBug":case"PlayerSettingsChangeLightsOff":case"PlayerSettingsChangePlaybackRate":case"PlayerSettingsErrorReport":t(e.type,{...M(e.context,e.type),_clear:!0});break;case"PlayerError":{const r=e.context?M(e.context,e.type):void 0;t(e.type,{...null==r?void 0:r.player,error:{message:e.data.error},_clear:!0})}break;case"PlayerErrorReport":{const r=e.context?M(e.context,e.type).player.time:void 0;t(e.type,{player:{time:{...r},content:{id:e.data.mainContentId}},error:{message:e.data.error}})}break;case"PlayerPlay":{const r=M(e.context,e.type);t(e.type,{...r,interaction:e.data.interaction})}break;case"PlayerAdPlay":case"PlayerAdSkip":case"PlayerAdClick":case"PlayerAdPaused":case"PlayerAdClose":case"PlayerAdAllCompleted":case"PlayerAdEnd":t(e.type,F(e.context,e.type));break;case"PlayerAdError":{const r=F(e.context,e.type);t(e.type,{...r,error:{message:e.data.error}});break}case"MenuOpen":case"MenuClose":case"FooterClick":t(e.type,e.data);break;case"GeneralCustomEvent":case"GeneralSocial":case"OtherView":case"MenuClick":case"ShowMainButton":case"ShowView":case"ShowSearchResults":case"ShowSearchQuery":case"ShowFiltered":case"ShowAddToFavorites":case"ShowRemoveFromFavorites":case"ShowRemoveUnfinished":case"ShowRemoveAllUnfinished":case"ShowRemoveAllClose":case"ShowRemoveAllCancel":case"ShowRemoveAllModal":case"ListingView":case"ListDisplayAll":case"HomepageView":case"SearchResultsFiltered":case"SearchView":case"ItemView":case"ItemViewError":case"ItemClick":case"ItemShowDetail":case"ItemShowPlay":case"UserSignupView":case"UserSignupSubmit":case"UserSignupValidation":case"UserSignupValidationUndelivered":case"UserSignupValidationResend":case"UserSignupError":case"UserDashboardView":case"UserNameSetStart":case"UserPasswordSetStart":case"UserPasswordSetNewSubmit":case"UserPasswordSetSuccess":case"UserPasswordSetError":case"UserDeleteStart":case"UserDeleteConfirmation":case"UserDeleteError":case"UserLoginSuccess":case"UserLoginError":case"UserLogout":t(e.type,{...(r=e.context,{user:{id:null===(a=r.user)||void 0===a?void 0:a.id,logged:!(null===(n=r.user)||void 0===n||!n.id),status:null!==(i=r.user)&&void 0!==i&&i.id?"member":"anonymous"}}),...e.data})}var r,a,n,i}}})()]),N=".ctg-header-global-popup",z=".ctg-header-header",V="ctg-header-header-dark",B="ctg-header-header-light",U="ctg-header-menu-opened",R="ctg-header-scrolled-up",_="ctg-header-not-scrolled-up",j="ctg-header-scrolled",G="ctg-header-scrolled-top",Y="ctg-header-scrolled-out",H="ctg-header-has-offset",W="ctg-header-side-menu-opened",$="ctg-header-menu-scrolled",Z="ctg-header-body-not-scroll-mobile",K=".ctg-header-global-menu",J=".ctg-header-button",Q=".ctg-header-profile-menu",X=".ctg-header-profile-popup",ee=".ctg-header-profile-logged",te="ctg-header-inputFocus",re="ctg-header-input-wrapper-show",ae=".ctg-header-search-close-button",ne="ctg
2-header-mobile-search-visible",ie={},oe={on:(e,t)=>{ie[e]||(ie[e]=[]),ie[e].push(t)},off:(e,t)=>{const r=ie[e];r&&(ie[e]=r.filter((e=>e!==t)))},emmit:(e,t)=>{const r=ie[e];r&&r.forEach((e=>e(t)))}};let se=0,ce=!0;const le=(e=>{let t;return(...e)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{(()=>{const e=document.querySelector(z),t=document.querySelector(X),r=document.querySelector(N);if(!e)return;if(!t||!r)return;const a=t.classList.contains("opened"),n=r.classList.contains("opened");e.classList.toggle("ctg-header-first-loaded",ce),ce=!1,a||n?window.innerWidth<428?(e.classList.add(R),e.classList.add(H)):(window.scrollY>10&&(e.classList.add(R),e.classList.add(H)),window.scrollY<10&&(e.classList.remove(R),e.classList.add(G),e.classList.remove(H),e.classList.remove(Y),e.classList.remove($),e.classList.remove(j)),oe.emmit("scroll",{showHeader:e.classList.contains(U)})):(e.classList.toggle(Y,window.scrollY>65),window.scrollY>0?e.classList.contains(H)||e.classList.add(H):e.classList.contains(H)&&e.classList.remove(H),window.scrollY>65?e.classList.contains(j)||(e.classList.add(j),e.classList.remove(G)):e.classList.contains(G)||(e.classList.remove(j),e.classList.add(G)),(e=>{if(Math.abs(se-window.scrollY)<10&&0!==window.scrollY)return;const t=se>window.scrollY&&0!==window.scrollY;if(e.classList.contains(W))return e.classList.toggle(R,!0),e.classList.toggle(_,!1),void e.classList.remove(W);e.classList.toggle(R,t),e.classList.toggle(_,!t),oe.emmit("scroll",{showHeader:e.classList.contains(R)}),se=window.scrollY})(e))})(...e)}))}})();var de=r(534),ue=r.n(de);const pe={menu:{type:"global",level1:void 0,level2:void 0,level3:void 0},interaction:!0,_clear:!0},he="global-menu-change",ve="profile-menu-change";var fe;!function(e){e.GLOBAL="global",e.PROFILE="profile"}(fe||(fe={}));const ge=()=>({header:document.querySelector(z),profileMenuWrapper:document.querySelector(X),profileMenu:document.querySelector(Q),globalMenuWrapper:document.querySelector(N),globalMenu:document.querySelector(K),globalMenuButton:document.querySelector(J),profileMenuButton:document.querySelector(".ctg-header-profile-wrapper")}),me=(e,t)=>
2{const{header:r,profileMenuWrapper:a,profileMenu:n,globalMenuWrapper:i,globalMenu:o,globalMenuButton:s,profileMenuButton:c}=ge();let l,d,u;e===fe.GLOBAL?(u=o,l=i,d=s):(u=n,l=a,d=c);const{body:p}=document;r&&l&&u&&d&&(u.classList.remove("ctg-header--hidden"),l.classList.add("opened"),l.setAttribute("aria-hidden","false"),u.setAttribute("aria-modal","true"),r.classList.add(U),d.classList.add("active"),d.setAttribute("aria-expanded","true"),d.setAttribute("aria-label",e===fe.GLOBAL?"ZavÅÃt globálnà menu":"ZavÅÃt menu uživatele"),window.innerWidth<428&&(window.scrollY>0&&r.classList.add($),p.style.top=`-${window.scrollY}px`,p.classList.add(Z),"0px"===p.style.top&&r.classList.add(G)),oe.emmit(t,{open:!0}))},ye=(e,t)=>{const{header:r,profileMenuWrapper:a,profileMenu:n,globalMenuWrapper:i,globalMenu:o,globalMenuButton:s,profileMenuButton:c}=ge(),{body:l}=document;let d,u,p;if(e===fe.GLOBAL?(p=o,d=i,u=s):(p=n,d=a,u=c),r&&d&&p&&u){if(p.setAttribute("aria-modal","false"),p.classList.add("ctg-header--hidden"),d.classList.remove("opened"),d.setAttribute("aria-hidden","true"),r.classList.remove(U),u.classList.remove("active"),u.setAttribute("aria-expanded","false"),u.setAttribute("aria-label",e===fe.GLOBAL?"OtevÅÃt globálnà menu":"OtevÅÃt menu uživatele"),window.innerWidth<428){l.classList.remove(Z);const e=l.style.top;l.style.top="",window.scrollTo(0,-1*parseInt(e||"0",10))}oe.emmit(t,{open:!0})}},be=()=>{ye(fe.PROFILE,ve)},we=()=>{ye(fe.GLOBAL,he),D.trigger({type:"MenuClose",data:pe})};var Se,ke;!function(e){e.Enter="Enter",e.Spacebar=" "}(ke||(ke={}));let Le,Pe=null,Ee=null;const Ae=e=>{e.target&&"Tab"===e.code&&e.target.classList.add(te)},Oe=e=>{e.target&&e.target.classList.remove(te)},Ce=()=>{const e=document.querySelector(".ctg-header"),t=document.querySelector(".ctg-header-input-wrapper"),r=document.querySelector(".ctg-header-input-mobile"),a=document.querySelector(".ctg-header-input"),n=document.querySelector(J),i=document.querySelector(ae);if(e&&r&&t&&a&&n&&i)return"true"===n.getAttribute("aria-expanded")?n.setAttribute("aria-expanded","false"):n.setAttribute("aria-expanded","true"),e.classList.contains(ne)?(e.classList.remove(ne),t.classList.remove(re),r.setAttribute("aria-hidden","true"),a.value="",void i.classList.add("ctg-header--hidden")):(e.classList.add(ne),t.classList.add(re),r.removeAttribute("aria-hidden"),a.focus(),void i.classList.remove("ctg-header--hidden"))},Te=e=>{const t=document.querySelector(".ctg-header-profile"),r=document.querySelector(ee),a=document.querySelector(".ctg-header-profile-not-logged");if(e)return null==t||t.classList.add("ctg-header-profile-wrapper-logged"),null==r||r.classList.remove("ctg-header--hidden"),void(null==a||a.classList.add("ctg-header--hidden"));null==t||t.classList.remove("ctg-header-profile-wrapper-logged"),null==a||a.classList.remove("ctg-header--hidden"),null==r||r.classList.add("ctg-header--hidden")},xe=e=>{const t=document.querySelector(K);"key"in e&&![ke.Enter,ke.Spacebar].includes(e.key)||(e.preventDefault(),e.stopPropagation(),t&&(t.classList.contains("ctg-header--hidden")?(me(fe.GLOBAL,he),D.trigger({type:"MenuOpen",data:pe}),null==Pe||Pe.activate()):(we(),null==Pe||Pe.deactivate())))},Ie=e=>{e.preventDefault(),e.stopPropagation()},Me=e=>{const t=document.querySelector(Q);"key"in e&&![ke.Enter,ke.Spacebar].includes(e.key)||(e.preventDefault(),e.stopPropagation(),t&&(t.classList.contains("ctg-header--hidden")?(me(fe.PROFILE,ve),null==Ee||Ee.activate()):(be(),null==Ee||Ee.deactivate())))},Fe=e=>{const{target:t,currentTarget:r}=e;if(t&&r){let a;const n="shp"===e.target.dataset.menutype;r instanceof HTMLAnchorElement&&r.text&&""!==r.text.trim()?a=r.text.trim():t instanceof HTMLImageElement&&t.alt&&(a=t.alt);const i=n?"SHP|":"";a&&D.trigger({type:"MenuClick",data:{menu:{type:"global",level1:i+a},interaction:!0,_clear:!0}}),a&&"string"==typeof a&&a===ue().linksIdentity.odhlasit.title&&D.trigger({type:"UserLogout",data:{user:{id:`${Le}`,logged:"true",status:"member"},interaction:!0}})}},qe=()=>{var e;Te(!1);const t=document.querySelector(".ctg-header-profile-name"),r=document.querySelector(".ctg-header-avatar-image"),a=function(e){return function(e,t){if("string"!=typeof e)throw new k("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(S(e.split(".")[r]))}catch(e){throw new k("Invalid token specified: "+e.message)}}(e)},n=null===(e=document.cookie.match(`(^|;)\\s*${"localhost"===window.location.hostname?"iVysilaniIdToken.localhost":window.location.hostname.includes("development")||window.location.hostname.includes("review")?"iVysilaniIdToken.development":window.location.hostname.includes("testing")?"iVysilaniIdToken.testing":window.location.hostname.includes("staging")?"iVysilaniIdToken.staging":"iVysilaniIdToken"}\\s*=\\s*([^;]+)`))||void 0===e?void 0:e.pop();let i=null;if(n){if(i=a(n),!i.name)return Te(!1),void console.log("unable to parse token");Te(!0),t&&(t.innerHTML=i.name),r&&r.setAttribute("src",i.picture||"")}Le=null==i?void 0:i.user_id;const o={id:null==i?void 0:i.user_id,logged:!0,status:"member"},s={id:void 0,logged:!1,status:"anonymous"};D.setContext(i?{user:Object.assign({},o)}:{user:Object.assign({},s)}),oe.emmit("user_logged",i?Object.assign({},o):Object.assign({},s))},De=qe,Ne=()=>{var e;(null===(e=window.ctgHeader)||void 0===e?void 0:e.initCalled)&&(window.ctgHeader.initCalled=!0),(()=>{document.querySelectorAll(".ctg-header a").forEach((e=>{e.removeEventListener("click",Fe),e.addEventListener("click",Fe)}));const e=document.querySelector(".ctg-header-login-redirect"),t=document.querySelector(".ctg-header-logout-redirect");if(e){const{href:t}=e;if(t.includes("?redirectTo="))return;const r=`${t}?redirectTo=${window.location.href}`;e.setAttribute("href",r)}if(t){const{href:e}=t;if(e.includes("?redirectTo="))return;const r=`${e}?redirectTo=${window.location.href}`;t.setAttribute("href",r)}}
2)(),qe(),Pe=y(K,{clickOutsideDeactivates:e=>{const t=document.querySelector(J),r=e.composedPath().includes(t),a=document.querySelector(".ctg-header-global-popup .ctg-header-scrim"),n=e.composedPath().includes(a);return!(r&&"mousedown"===e.type||(r&&"touchstart"===e.type||n)&&(e.preventDefault(),0))},initialFocus:!1,fallbackFocus:J,onDeactivate:()=>{we()}}),Ee=y(Q,{clickOutsideDeactivates:e=>{const t=document.querySelector(ee),r=e.composedPath().includes(t),a=document.querySelector(".ctg-header-profile-scrim"),n=e.composedPath().includes(a);return!(r&&"mousedown"===e.type||(r&&"touchstart"===e.type||n)&&(e.preventDefault(),0))},initialFocus:!1,onDeactivate:()=>{be()},fallbackFocus:ee});const t=document.querySelector(ee),r=document.querySelector(J),a=document.querySelector(ae),n=document.querySelector(".ctg-header-search-button"),i=document.querySelector(".ctg-header-scrim");null==t||t.removeEventListener("click",Me),null==t||t.removeEventListener("keydown",Me),null==t||t.addEventListener("click",Me),null==t||t.addEventListener("keydown",Me),null==t||t.removeEventListener("keyup",Ie),null==t||t.addEventListener("keyup",Ie),null==r||r.removeEventListener("click",xe),null==r||r.removeEventListener("keydown",xe),null==r||r.addEventListener("click",xe),null==r||r.addEventListener("keydown",xe),null==r||r.removeEventListener("keyup",Ie),null==r||r.addEventListener("keyup",Ie),null==a||a.removeEventListener("click",Ce),null==a||a.addEventListener("click",Ce),null==i||i.addEventListener("click",Ce),null==n||n.removeEventListener("click",Ce),null==n||n.addEventListener("click",Ce),ce=!0,document.removeEventListener("scroll",le),document.addEventListener("scroll",le,{passive:!0}),(()=>{const e=document.querySelectorAll(".ctg-header-input");null==e||e.forEach((e=>{e.removeEventListener("keyup",Ae),e.removeEventListener("blur",Oe),e.addEventListener("keyup",Ae),e.addEventListener("blur",Oe)}))})()};(null===(Se=window.ctgHeader)||void 0===Se?void 0:Se.initCalled)||document.addEventListener("DOMContentLoaded",Ne),window.ctgHeader={toggleProfileMenu:Me,toggleGlobalMenu:xe,toggleMobileSearch:Ce,init:Ne,setDarkTheme:e=>{var t,r,a,n;if(!e)return null===(t=document.querySelector(z))||void 0===t||t.classList.remove(V),void(null===(r=document.querySelector(z))||void 0===r||r.classList.add(B));null===(a=document.querySelector(z))||void 0===a||a.classList.remove(B),null===(n=document.querySelector(z))||void 0===n||n.classList.add(V)},refreshToken:De,getUserId:()=>Le,setSearchValue:e=>{const t=document.querySelector("#ctg-header-searchInputMobile"),r=document.querySelector("#ctg-header-searchInput");t&&(t.value=e||""),r&&(r.value=e||"")},emitter:oe,initCalled:!1}})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.