import{i as t,c as o}from"./client.b3eee3b5.js";import"core-js/modules/es.array.concat.js";function r(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=getComputedStyle(r),i="none"===a.transform?"":a.transform,s=e.from.width/r.clientWidth,c=e.from.height/r.clientHeight,f=(e.from.left-e.to.left)/s,d=(e.from.top-e.to.top)/c,m=Math.sqrt(f*f+d*d),l=n.delay,u=void 0===l?0:l,h=n.duration,p=void 0===h?function(t){return 120*Math.sqrt(t)}:h,g=n.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*f,"px, ").concat(o*d,"px);")}}}export{r as f};
