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