"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../errors.mjs.js"),i=require("../../noop.mjs.js"),r=require("../anticipate.mjs.js"),n=require("../back.mjs.js"),t=require("../circ.mjs.js"),s=require("../cubic-bezier.mjs.js"),c=require("../ease.mjs.js"),a=require("./is-bezier-definition.mjs.js");const u={linear:i.noop,easeIn:c.easeIn,easeInOut:c.easeInOut,easeOut:c.easeOut,circIn:t.circIn,circInOut:t.circInOut,circOut:t.circOut,backIn:n.backIn,backInOut:n.backInOut,backOut:n.backOut,anticipate:r.anticipate};exports.easingDefinitionToFunction=i=>{if(a.isBezierDefinition(i)){e.invariant(4===i.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[r,n,t,c]=i;return s.cubicBezier(r,n,t,c)}return"string"==typeof i?(e.invariant(void 0!==u[i],`Invalid easing type '${i}'`,"invalid-easing-type"),u[i]):i};
//# sourceMappingURL=map.mjs.js.map
