import{y as i,aG as n,l as u,m as f,i as v}from"./index.2e2ba873.js";const p=(e,r=!0)=>{const{routePositions:o}=i(n()),t=u(),c=s=>{o.value[e]=s.target.scrollTop},a=()=>{o.value[e]=0},l=()=>{if(t.value){const s=o.value[e];v(s)&&(t.value.$el.scrollTop=s)}};return f(()=>{r&&l()}),{routePositions:o,pageScrollRef:t,handlePageScroll:c,resetScrollPosition:a,restoreScrollPosition:l}};export{p as u};
