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