import{i as t,c as o}from"./client.b0b4d857.js";function r(r,e,n={}){const a=getComputedStyle(r),s="none"===a.transform?"":a.transform,i=e.from.width/r.clientWidth,f=e.from.height/r.clientHeight,m=(e.from.left-e.to.left)/i,l=(e.from.top-e.to.top)/f,d=Math.sqrt(m*m+l*l),{delay:c=0,duration:h=(t=>120*Math.sqrt(t)),easing:p=o}=n;return{delay:c,duration:t(h)?h(d):h,easing:p,css:(t,o)=>`transform: ${s} translate(${o*m}px, ${o*l}px);`}}export{r as f};
