let throttleBlockPressPause;const BlockPressthrottle=(t,s)=>{throttleBlockPressPause||(throttleBlockPressPause=!0,setTimeout(()=>{t(),throttleBlockPressPause=!1},s))};let totop=document.getElementById("blockpresstop"),blockpresstotop=document.createElement("div");blockpresstotop.id="blockpresstotop",blockpresstotop.insertAdjacentHTML("beforeend",''),blockpresstotop.setAttribute("style","width:40px;height:40px;line-height:40px;display:flex;justify-content:center;align-items:center;background:black; fill:white; transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease; position:fixed; bottom:50px; right:20px; border-radius:100px; opacity:0; transform: translateY(50px);cursor:pointer; z-index:99999"),document.body.appendChild(blockpresstotop),blockpresstotop.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})}),window.addEventListener("scroll",()=>{BlockPressthrottle(()=>{window.scrollY>300?blockpresstotop.classList.contains("active")||(blockpresstotop.classList.add("active"),blockpresstotop.style.opacity=1,blockpresstotop.style.transform="translateY(0)",blockpresstotop.style.visibility="visible"):blockpresstotop.classList.contains("active")&&(blockpresstotop.classList.remove("active"),blockpresstotop.style.opacity=0,blockpresstotop.style.transform="translateY(50px)",blockpresstotop.style.visibility="hidden")},250)});