/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{easingFunctions as t}from"../2d/unitBezier.js";const e=t=>t,n=t=>t*t,o=t=>1-n(1-t),u=t=>t<.5?n(2*t)/2:(o(2*(t-.5))+1)/2,i=t=>t*t*t,s=t=>1-i(1-t),a=t=>t<.5?i(2*t)/2:(s(2*(t-.5))+1)/2,c=t=>t*t*t*t,r=t=>1-c(1-t),p=t=>t<.5?c(2*t)/2:(r(2*(t-.5))+1)/2,h=t=>t*t*t*t*t,x=t=>1-h(1-t),M=t=>t<.5?h(2*t)/2:(x(2*(t-.5))+1)/2,b=t=>1-Math.cos(t*Math.PI/2),f=t=>1-b(1-t),q=t=>t<.5?b(2*t)/2:(f(2*(t-.5))+1)/2,I=t=>2**(10*(t-1)),d=t=>1-I(1-t),m=t=>t<.5?I(2*t)/2:(d(2*(t-.5))+1)/2,O=t=>-(Math.sqrt(1-t*t)-1),j=t=>1-O(1-t),l=t=>t<.5?O(2*t)/2:(j(2*(t-.5))+1)/2;function z(t){const e=2*(t-Math.sqrt((t-1)*t)),n=e/2/t;return o=>o<n?t*o*o:e*o-e+1}function B(t,e){return(n,o)=>n<e?e*t(n/e,o):1-t((1-n)/(1-e),o)*(1-e)}const P=B(z(1),.5),g={linear:e,"quad-in-out-coast":P,"cubic-in":i,"cubic-out":s,"cubic-in-out":a,"expo-in":I,"expo-out":d,"expo-in-out":m,ease:e=>t.ease(e),"ease-in":e=>t.easeIn(e),"ease-out":e=>t.easeOut(e),"ease-in-out":e=>t.easeInOut(e)};export{g as EasingFunctions,O as inCirc,i as inCubic,I as inExpo,l as inOutCirc,P as inOutCoastQuad,a as inOutCubic,m as inOutExpo,u as inOutQuad,p as inOutQuart,M as inOutQuint,q as inOutSine,n as inQuad,c as inQuart,h as inQuint,b as inSine,e as linear,j as outCirc,s as outCubic,d as outExpo,o as outQuad,r as outQuart,x as outQuint,f as outSine};
