"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const CAROUSEL_ANIMATION={EASE_IN:{value:"ease-in",formula:o=>o*o*o},EASE_OUT:{value:"ease-out",formula:o=>1-Math.pow(1-o,3)},EASE_IN_OUT:{value:"ease-in-out",formula:o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2},DEFAULT:{value:"default",formula:o=>1+--o*o*o*o*o}},DEFAULT_PLAY_SPEED=500,AnimationPlugin=o=>{let t;let i=o.options.animation??{};o.on("beforeOptionsChanged",e=>{clearTimeout(t),t=setTimeout(()=>{e.options.animation&&JSON.stringify(e.options.animation)!==JSON.stringify(i)&&(i=e.options.animation,o.update(e.options))},200)})};exports.AnimationPlugin=AnimationPlugin,exports.CAROUSEL_ANIMATION=CAROUSEL_ANIMATION,exports.DEFAULT_PLAY_SPEED=500,exports.default=AnimationPlugin;
