!function(){"use strict";document.addEventListener("rey-DOMContentLoaded",(function(){!function(){var e=document.querySelector('a[href="#scrolltotop"]');if(e){e.addEventListener("click",(e=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})}));var t=0,o=parseInt(e.getAttribute("data-entrance")||0);if(o){var n=rey.elements.body.offsetHeight;t=n/(100/o)}window.addEventListener("scroll",rey.util.debounce((function(){rey.elements.body.classList.toggle("--active-scroll-top",window.pageYOffset>t)}),200))}}()}))}();