­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ !function(e){"use strict";window.widgetLottie=function(t){var o,r,i=t.find(".jet-lottie"),n=i.find(".jet-lottie__elem"),a=i.data("settings");if(i[0]){var s="on_click_reversible"!==a.action_start&&(""===a.loop_times?a.loop:a.loop_times);if(a.reversed&&s&&(s=!1),o={container:n[0],renderer:a.renderer,loop:s,autoplay:!1,path:a.path,name:"jet-lottie"},r=lottie.loadAnimation(o),a.play_speed&&r.setSpeed(a.play_speed),a.reversed&&(r.setDirection(-1),r.addEventListener("data_ready",function(){r.totalFrames&&r.goToAndStop(r.totalFrames-1,!0)}),"on_click_reversible"!==a.action_start&&(""===a.loop_times?a.loop:a.loop_times))){var l=0,c=""!==a.loop_times?+a.loop_times:1/0;r.addEventListener("complete",function(){l0?u.off("click.JetLottie",g).on("click.JetLottie",g):i.off("click.JetLottie",F).on("click.JetLottie",F);break;case"on_click_reversible":var w=!!a.reversed,k=!0,b=function(){if(k){k=!1;var e=w?-1:1;r.setDirection(e),-1===e?r.goToAndPlay(r.totalFrames-1,!0):r.goToAndPlay(r.firstFrame,!0),w=!w}};r.addEventListener("complete",function(){k=!0}),i.off("click.JetLottie",b).on("click.JetLottie",b);break;case"on_viewport":void 0!==window.IntersectionObserver?new IntersectionObserver(function(e,t){e[0].isIntersecting?(a.reversed&&r.totalFrames&&r.goToAndStop(r.totalFrames-1,!0),r.play()):r.pause()},{rootMargin:v+"% 0% "+d+"%"}).observe(i[0]):(a.reversed&&r.totalFrames&&r.goToAndStop(r.totalFrames-1,!0),r.play());break;case"on_scroll":if(void 0!==window.IntersectionObserver){var y,A=0;new IntersectionObserver(function(e,t){e[0].isIntersecting?y=requestAnimationFrame(function e(){if(window.scrollY!==A){var t=JetElementsTools.getElementPercentageSeen(n,{start:d,end:v}),o=(r.totalFrames-r.firstFrame)*t/100;r.goToAndStop(o,!0),A=window.scrollY}y=requestAnimationFrame(e)}):cancelAnimationFrame(y)},{rootMargin:v+"% 0% "+d+"%"}).observe(i[0])}break;default:var T=+a.delay,L=function(){r.play()};if(a.reversed){var J=function(){r.totalFrames&&r.goToAndStop(r.totalFrames-1,!0),T>0?setTimeout(L,T):L()};r.totalFrames?J():r.addEventListener("data_ready",J)}else T>0?setTimeout(L,T):L()}}}}(jQuery);