!function(t,e){"use strict";var a={init:function(){e.hooks.addAction("frontend/element_ready/widget",a.ready)},ready:function(t){var e=t.find(".ekit-badge");if(e.length){var n=e.find(".ekit-badge-icon-lottie");(n.length||"undefined"!=typeof bodymovin)&&n.each((function(){var t=this,e=bodymovin.loadAnimation({container:t,autoplay:!0,renderer:t.getAttribute("data-renderer"),loop:t.hasAttribute("loop"),path:t.getAttribute("data-path")});t.hasAttribute("loop")&&t.hasAttribute("reverse")&&e.setDirection(-1)})),a.handleOpacityEffect(e),a.handleBlurEffect(e),a.handleGrayscaleEffect(e)}},handleOpacityEffect:function(t){if(t.is("[data-opacity]")){var e=t.data("opacity")||{},n=1e3*parseFloat(t.data("opacity-speed"))||1e3,i=e.start?e.start/100:0,r=e.end?e.end/100:1;t[0].style.opacity=i,a.animateOpacity(t[0],i,r,n)}},animateOpacity:function(t,e,a,n){if(!t)return;if(t.__ekit_opacity_animating)return;t.__ekit_opacity_animating=!0;let i=null;requestAnimationFrame((function r(o){i||(i=o);let l=o-i,d=Math.floor(l/n),c=l%n/n,u=d%2==0?e+(a-e)*c:a-(a-e)*c;t.style.opacity=u.toFixed(2),document.body.contains(t)?requestAnimationFrame(r):delete t.__ekit_opacity_animating}))},handleBlurEffect:function(t){if(t.is("[data-blur]")){var e=t.data("blur")||{},n=1e3*parseFloat(t.data("blur-speed"))||1e3,i=e.start?e.start:0,r=e.end?e.end:10;t[0].style.filter="blur("+i+"px)",a.animateBlur(t[0],i,r,n)}},animateBlur:function(t,e,a,n){if(!t)return;if(t.__ekit_blur_animating)return;t.__ekit_blur_animating=!0;let i=null;requestAnimationFrame((function r(o){i||(i=o);let l=o-i,d=Math.floor(l/n),c=l%n/n,u=d%2==0?e+(a-e)*c:a-(a-e)*c;t.style.filter="blur("+u+"px)",document.body.contains(t)?requestAnimationFrame(r):delete t.__ekit_blur_animating}))},handleGrayscaleEffect:function(t){if(t.is("[data-grayscale]")){var e=t.data("grayscale")||{},n=1e3*parseFloat(t.data("grayscale-speed"))||1e3,i=e.start?e.start:0,r=e.end?e.end:1;t[0].style.filter="grayscale("+i+"%)",a.animateGrayscale(t[0],i,r,n)}},animateGrayscale:function(t,e,a,n){if(!t)return;if(t.__ekit_grayscale_animating)return;t.__ekit_grayscale_animating=!0;let i=null;requestAnimationFrame((function r(o){i||(i=o);let l=o-i,d=Math.floor(l/n),c=l%n/n,u=d%2==0?e+(a-e)*c:a-(a-e)*c;t.style.filter="grayscale("+u+"%)",document.body.contains(t)?requestAnimationFrame(r):delete t.__ekit_grayscale_animating}))}};t(window).on("elementor/frontend/init",a.init)}(jQuery,window.elementorFrontend);