!function(e,t){"use strict";var l={init:function(){t.hooks.addAction("frontend/element_ready/widget",l.ready),t.hooks.addAction("frontend/element_ready/section",l.ready),t.hooks.addAction("frontend/element_ready/column",l.ready),t.hooks.addAction("frontend/element_ready/container",l.ready)},ready:function(l){var o=l.data("settings"),n=l.data("model-cid");if(n&&t?.config?.elements?.data?.[n]){const e=t.config.elements.data[n].attributes||{};o=Object.fromEntries(Object.entries(e).filter((([e])=>e.startsWith("scroll_reveal_"))))}if(!o||"yes"!==o.scroll_reveal_enable)return;const r=l,{scroll_reveal_bg_primary:i,scroll_reveal_bg_secondary:a,scroll_reveal_delay:s,scroll_reveal_direction:c,scroll_reveal_duration:d,scroll_reveal_image_overlay:f,scroll_reveal_overlay:v,scroll_reveal_repeat:_}=o;function h(){const t=function(){const e=window,t=document,l=t.documentElement,o=t.body;return{height:e.innerHeight||l.clientHeight||o.clientHeight,width:e.innerWidth||l.clientWidth||o.clientWidth}}(),l=function(){const e=window,t=document,l=t.documentElement,o=t.body;return{top:e.pageYOffset||l.scrollTop||o.scrollTop,left:e.pageXOffset||l.scrollLeft||o.scrollLeft}}(),o=r.offset(),n=r[0].offsetHeight,a=r[0].offsetWidth,c=o.top+n>l.top&&o.top<l.top+t.height&&o.left+a>l.left&&o.left<l.left+t.width,d=r.children(".elementor-widget-container"),h=d.length?d:r;let m=h.children(".ekit-scroll-reveal-overlay");m.length||(m=e("<span/>",{"class":"ekit-scroll-reveal-overlay"}).css({background:"yes"===f?v:i}),h.append(m)),c?r.hasClass("ekit-scroll-reveal-active")||setTimeout((function(){r.addClass("ekit-scroll-reveal-active")}),s||0):c||"yes"!==_||r.removeClass("ekit-scroll-reveal-active")}r.addClass("ekit-scroll-reveal ekit-reveal-"+c),r.css({"--ekit-reveal-delay":(s||0)+"ms","--ekit-reveal-duration":(d||400)+"ms"}),h(),e(window).on("scroll resize scrollstop",(function(){h()}))}};e(window).on("elementor/frontend/init",l.init)}(jQuery,window.elementorFrontend);