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