!function(){"use strict";window.ctEvents;(0,window.ctFrontend.registerDynamicChunk)("blocksy_shortcuts_auto_hide",{mount:function(o){if(!o.registered){o.registered=!0;var t=o,n=window.scrollY,r=!1,s=!1,i=function(){var o=window.scrollY>0;window.scrollY<0&&(n=window.scrollY),window.innerHeight+Math.round(scrollY)>=document.body.offsetHeight&&scrollY>10&&(n=window.scrollY-10);var r=t.closest("[data-shortcuts-bar]");if(r){if(o&&window.scrollY-n<-5)r.dataset.shortcutsBar="scroll:yes";else{if(!o)return void(n=window.scrollY);-1===r.dataset.shortcutsBar.indexOf("no")&&window.scrollY-n>5&&(r.dataset.shortcutsBar="scroll:no")}n=window.scrollY}};i(),r||(r=!0,window.addEventListener("scroll",(function(){s||(s=!0,requestAnimationFrame((function(){i(),s=!1})))})))}}})}();