function r(){if(window.location.hostname==="localhost")return!0;try{return window.self!==window.top}catch{return!0}}function n(){if(!r())return;const o="_scrolly",e=sessionStorage.getItem(o);if(e){const t=document.documentElement;t.style.scrollBehavior="auto",window.scrollTo({top:window.parseInt(e)}),setTimeout(()=>{t.style.removeProperty("scroll-behavior")})}window.addEventListener("beforeunload",()=>{sessionStorage.setItem(o,String(window.scrollY))})}n();