!function(){var e;(e=jQuery)(window).on("et_pb_init_modules",(function(){window.et_pb_init_slider_modules=function(){const t="object"==typeof window.ET_Builder,s=e(".et_pb_slider"),i=e(window);jQuery.fn.closest_descendent=function(e){let t,s=this.children();for(;s.length&&(t=s.filter(e),!t.length);)s=s.children();return t},e.et_pb_simple_slider=function(s,_){const a=e.extend({slide:".et-slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",previous_text:"undefined"!=typeof et_pb_custom?et_pb_custom.previous:"",next_text:"undefined"!=typeof et_pb_custom?et_pb_custom.next:"",fade_speed:500,use_arrows:!0,use_controls:!0,manual_arrows:"",append_controls_to:"",controls_below:!1,controls_class:"et-pb-controllers",slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1,active_slide:0},_),n=e(s);let r=n.closest_descendent(a.slide);const d=r.length,p=a.fade_speed;let c,b,u,f,m,h,g=a.active_slide,v="";n.find(".et_pb_container").width();const w=n.hasClass("et_pb_post_slider");let y=!1;if(n.et_animation_running=!1,e.data(s,"et_pb_simple_slider",n),r.eq(0).addClass("et-pb-active-slide"),n.attr("data-active-slide",r.data("slide-id")),a.tabs_animation||n.hasClass("et_pb_bg_layout_dark")||n.hasClass("et_pb_bg_layout_light")||n.hasClass("et_pb_slider_empty")||n.addClass(F(r.eq(0))),a.use_arrows&&d>1&&(""==a.manual_arrows?a.hasOwnProperty("slide")&&".et_pb_gallery_item"===a.slide?n.append(`<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" style="color:inherit"><span>${a.previous_text}</span></a><a class="et-pb-arrow-next" href="#" style="color:inherit"><span>${a.next_text}</span></a></div>`):n.append(`<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" ><span>${a.previous_text}</span></a><a class="et-pb-arrow-next" href="#"><span>${a.next_text}</span></a></div>`):n.append(a.manual_arrows),c=n.find(a.arrows),b=n.find(a.prev_arrow),u=n.find(a.next_arrow),n.on("click.et_pb_simple_slider",a.next_arrow,(()=>(n.et_animation_running||n.et_slider_move_to("next"),!1))),n.on("click.et_pb_simple_slider",a.prev_arrow,(()=>(n.et_animation_running||n.et_slider_move_to("previous"),!1))),n.on("swipeleft.et_pb_simple_slider",a.slide,(t=>{e(t.target).closest(".et-fb-popover-tinymce").length||e(t.target).closest("[data-et-vb-editable-element]").length||n.et_slider_move_to("next")})),n.on("swiperight.et_pb_simple_slider",a.slide,(t=>{e(t.target).closest(".et-fb-popover-tinymce").length||e(t.target).closest("[data-et-vb-editable-element]").length||n.et_slider_move_to("previous")}))),a.use_controls&&d>1){for(var x=1;x<=d;x++)v+=`<a href="#"${1==x?` class="${a.control_active_class}"`:""}>${x}</a>`;n.find("video").length>0&&(a.controls_class+=" et-pb-controllers-has-video-tag"),v=`<div class="${a.controls_class}">${v}</div>`,""==a.append_controls_to?n.append(v):e(a.append_controls_to).append(v),f=a.controls_below?n.parent().find(a.controls):n.find(a.controls),f.on("click.et_pb_simple_slider",(function(){return n.et_animation_running||n.et_slider_move_to(e(this).index()),!1}))}if(a.use_carousel&&d>1){const t=e('<div class="et_pb_carousel"><div class="et_pb_carousel_items"></div></div>'),s=t.find(".et_pb_carousel_items");for(x=1;x<=d;x++){const t=x-1,i=r.eq(t).data("image"),o=void 0!==i?i:"",l=e(`<div class="et_pb_carousel_item_${t} et_pb_carousel_item ${1===x?a.control_active_class:""}" data-slide-id="${t}"><div class="et_pb_video_overlay" href="#"><div class="et_pb_video_overlay_hover"><a href="#" class="et_pb_video_play"></a></div></div></div>`);o&&l.find(".et_pb_video_overlay").css("background-image",`url(${o})`),l.appendTo(s)}n.after(t),m=n.siblings(".et_pb_carousel").find(a.carousel_controls),m.on("click.et_pb_simple_slider",(function(){if(n.et_animation_running)return!1;const t=e(this);return n.et_slider_move_to(t.data("slide-id")),!1}))}function C(){y||(n.hasClass("et_pb_pause_slider")?setTimeout((()=>{C()}),2e3):a.slideshow&&d>1&&!n.hasClass("et_slider_hovered")&&(h=setTimeout((()=>{n.et_slider_move_to("next")}),a.slideshow_speed)))}function $(){if(!(n.hasClass("et_pb_gallery")||n.hasClass("et_pb_wc_gallery")||n.parent().hasClass("et_pb_wc_gallery")||n.closest(".et_pb_gallery").length>0||n.closest(".et_pb_wc_gallery").length>0))return;const e=n.find(a.arrows),t=n.find(a.prev_arrow),s=n.find(a.next_arrow),i=n.find(a.controls_class?`.${a.controls_class}`:".et-pb-controllers");if(a.use_arrows&&(!e.length||!t.length||!s.length)||a.use_controls&&!i.length)return void setTimeout((()=>{$()}),100);const o=n.find(".et-pb-active-slide");if(!o.length)return;const l=o.find(".et_pb_gallery_image").find("img").first();if(!l.length)return t.length&&t.css("top",""),s.length&&s.css("top",""),void(i.length&&i.css("bottom",""));l[0].complete&&0!==l[0].naturalHeight?requestAnimationFrame((()=>{const e=n.offset(),o=l.offset(),_=n.innerHeight(),r=l.outerHeight();if(!(e&&o&&_&&r))return;const d=o.top-e.top,p=d+r/2,c=_-(d+r)+20;if(a.use_arrows&&t.length&&s.length){const e=p/_*100,i=Math.max(10,Math.min(90,e));t.css({top:`${i}%`,marginTop:"-24px"}),s.css({top:`${i}%`,marginTop:"-24px"})}if(a.use_controls&&i.length){const e=Math.max(20,c);i.css("bottom",`${e}px`)}})):l.on("load.et_gallery_controls",(function(){$(),l.off("load.et_gallery_controls")}))}function T(){const e=n,t=e.find(".et-pb-active-slide .et_pb_slide_image"),s=t.find("img"),i=e.find(".et-pb-active-slide .et_pb_slide_video"),o=t.closest(".et_pb_slide"),_=o.closest(".et_pb_slider"),a=parseFloat(_.innerHeight()),r=parseFloat(.8*a);let d=parseFloat(t.height());const p=parseFloat(i.height()),c=l().children(".et_pb_module:visible").first(),b=c.find(".et_pb_slide .et_pb_container"),u=l().is(".et_pb_fullwidth_section");let f=parseFloat(b.height());const m=parseFloat(.8*f);isNaN(r)||(t.find("img").css("maxHeight",`${r}px`),d=parseInt(t.height()),window.et_is_transparent_nav&&c.is(".et_pb_slider")&&u&&(t.find("img").css("maxHeight",`${m}px`),d=parseInt(t.height()))),!isNaN(d)&&o.hasClass("et_pb_media_alignment_center")&&(t.css("marginTop",`-${d/2}px`),s.data("hasLoadEvent")||(s.data("hasLoadEvent",!0),s.on("load",(()=>{d=parseFloat(t.height()),t.css("marginTop",`-${d/2}px`)})))),isNaN(p)||i.css("marginTop",`-${p/2}px`),setTimeout((()=>{$()}),150)}function k(t){if("function"!=typeof window.set_fullwidth_portfolio_columns)return;const s=t.find(".et_pb_fullwidth_portfolio:visible");0!==s.length&&s.each(((t,s)=>{const i=e(s),o=i.hasClass("et_pb_fullwidth_portfolio_carousel");window.set_fullwidth_portfolio_columns(i,o)}))}function F(t){return e("div.entry").length?"":t.hasClass("et_pb_bg_layout_light")?"et_pb_bg_layout_light":"et_pb_bg_layout_dark"}a.slideshow&&d>1&&n.on("mouseenter.et_pb_simple_slider",(()=>{n.hasClass("et_slider_auto_ignore_hover")||(n.addClass("et_slider_hovered"),void 0!==h&&clearTimeout(h))})).on("mouseleave.et_pb_simple_slider",(()=>{n.hasClass("et_slider_auto_ignore_hover")||(n.removeClass("et_slider_hovered"),C())})),C(),n.et_slider_destroy=function(){void 0!==h&&clearTimeout(h),y=!0,n.off(".et_pb_simple_slider"),n.find(".et_pb_slide").css({"z-index":"",display:"",opacity:""}),n.find(".et-pb-active-slide").removeClass("et-pb-active-slide"),n.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),n.find(".et-pb-slider-arrows, .et-pb-controllers").remove(),n.siblings(".et_pb_carousel, .et-pb-controllers").remove(),n.removeData("et_pb_simple_slider")},n.et_fix_gallery_slider_controls_position=$,n.et_fix_slider_content_images=T,window.et_load_event_fired?("function"==typeof o&&o(n),$()):i.on("load",(()=>{"function"==typeof o&&o(n),$()})),i.on("resize.et_simple_slider",(()=>{o(n),$()})),(n.hasClass("et_pb_gallery")||n.hasClass("et_pb_wc_gallery"))&&n.find(".et_pb_gallery_image img").on("load.et_gallery_slider_lazy",(function(){const t=e(this);t.closest(".et-pb-active-slide").length>0&&$(),t.off("load.et_gallery_slider_lazy")})),n.et_slider_move_to=function(s){r=n.closest_descendent(a.slide);const i=r.eq(g);if(n.et_animation_running=!0,n.removeClass("et_slide_transition_to_next et_slide_transition_to_previous").addClass(`et_slide_transition_to_${s}`),n.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),"next"===s||"previous"===s)g="next"===s?g+1<d?g+1:0:g-1>=0?g-1:d-1;else{if(g===s)return n.find(".et-pb-inactive-slide").css({"z-index":"",display:"",opacity:0}),i.css({display:"block",opacity:1}).data("slide-status","active"),void(n.et_animation_running=!1);g=s}n.attr("data-active-slide",r.eq(g).data("slide-id")),void 0!==h&&clearTimeout(h);const o=r.eq(g);n.trigger("slide",{current:i,next:o}),void 0!==i.find("video")[0]&&void 0!==i.find("video")[0].player&&i.find("video")[0].player.pause(),void 0!==o.find("video")[0]&&void 0!==o.find("video")[0].player&&o.find("video")[0].player.play();const l=i.find(".et_pb_video_box iframe");if(l.length){let e=l.attr("src");e=e.replace(/\?autoplay=1$/,""),e=e.replace(/\?autoplay=1&(amp;)?/,"?"),e=e.replace(/&(amp;)?autoplay=1/,""),setTimeout((()=>{l.attr({src:e})}),a.fade_speed),l.parents(".et_pb_video_box").next(".et_pb_video_overlay").css({display:"block",opacity:1})}n.trigger("simple_slider_before_move_to",{direction:s,next_slide:o}),r.each((function(){e(this).css("zIndex",1)})),i.css("zIndex",2).removeClass("et-pb-active-slide").addClass("et-pb-moved-slide").data("slide-status","inactive"),o.css({display:"block",opacity:0}).addClass("et-pb-active-slide").data("slide-status","active"),function(){const e=n,t=e.find(".et-pb-active-slide .et_pb_slide_video"),s=parseFloat(t.height());e.find(".et_pb_slide_video .wp-video-shortcode").css({width:"",height:""}),isNaN(s)||t.css("marginTop",`-${s/2}px`)}(),T(),w&&setTimeout((()=>{e(".et_pb_number_counter"),"function"==typeof window.et_fix_testimonial_inner_width&&window.et_fix_testimonial_inner_width(),"diviModuleCircleCounterReinit"in window&&window.diviModuleCircleCounterReinit(),"diviModuleNumberCounterReinit"in window&&window.diviModuleNumberCounterReinit(),window.et_reinit_waypoint_modules()}),1e3),setTimeout((()=>{$()}),50),a.use_controls&&f&&f.removeClass(a.control_active_class).eq(g).addClass(a.control_active_class),a.use_carousel&&m&&m.removeClass(a.control_active_class).eq(g).addClass(a.control_active_class),a.tabs_animation?(o.css({display:"none",opacity:0}),i.addClass("et_slide_transition").css({display:"block",opacity:1}).animate({opacity:0},p,(function(){e(this).css("display","none").removeClass("et_slide_transition"),o.css({display:"block",opacity:0}).animate({opacity:1},p,(()=>{n.et_animation_running=!1,$(),n.trigger("simple_slider_after_move_to",{next_slide:o}),e(window).trigger("resize"),k(o),C()}))}))):(o.animate({opacity:1},p),i.addClass("et_slide_transition").css({display:"list-item",opacity:1}).animate({opacity:0},p,(function(){const s=F(i),l=F(o);t?e(this).removeClass("et_slide_transition"):e(this).css("display","none").removeClass("et_slide_transition"),function(e){let t,s,i;e.has("iframe").length?(t=e.find("iframe"),s=t.attr("src"),clearTimeout(i),t.attr("src",""),i=setTimeout((()=>{t.attr("src",s)}),100)):e.has("video").length&&(e.find(".et-pb-background-video").length||(t=e.find("video"),t[0].pause()))}(i),n.removeClass(s).addClass(l),n.et_animation_running=!1,n.hasClass("et_pb_gallery")&&"none"===o.css("maxHeight")&&o.css("maxHeight",o.outerHeight()),setTimeout((()=>{$()}),100),n.trigger("simple_slider_after_move_to",{next_slide:o}),k(o),C()}))),"diviElementBackgroundParallaxInit"in window&&window.diviElementBackgroundParallaxInit(),C()}},e.fn.et_pb_simple_slider=function(t){return this.each((function(){return e.data(this,"et_pb_simple_slider")||new e.et_pb_simple_slider(this,t)}))},e((()=>{const i={};window.et_pb_slider_init=function(t){const s={fade_speed:700,slide:t.hasClass("et_pb_gallery")?".et_pb_gallery_item":".et_pb_slide"};if(t.hasClass("et_pb_slider_no_arrows")&&(s.use_arrows=!1),t.hasClass("et_pb_slider_no_pagination")&&(s.use_controls=!1),t.hasClass("et_slider_auto")){const e=/et_slider_speed_(\d+)/g;s.slideshow=!0;const i=e.exec(t.attr("class"));s.slideshow_speed=null===i?10:i[1]}t.parent().hasClass("et_pb_video_slider")&&(s.controls_below=!0,s.append_controls_to=t.parent(),setTimeout((()=>{e(".et_pb_preload").removeClass("et_pb_preload")}),500)),t.hasClass("et_pb_slider_carousel")&&(s.use_carousel=!0),t.et_pb_simple_slider(s),(t.hasClass("et_pb_gallery")||t.hasClass("et_pb_wc_gallery"))&&setTimeout((()=>{const e=t.data("et_pb_simple_slider");e&&"function"==typeof e.et_fix_gallery_slider_controls_position&&e.et_fix_gallery_slider_controls_position()}),300)},(s.length||t)&&s.each((function(){const t=e(this);et_pb_slider_init(t)})),window.et_fix_slider_height=t?function(e){const t=e||s;if(!t||!t.length)return;const l=t.data("address");i[l]||(i[l]=window.et_pb_debounce(o,100)),i[l](e)}:o}));const o=t=>{const i=t||s;i&&i.length&&i.each((function(){const t=e(this);let s=t.hasClass("et_pb_gallery")||t.hasClass("et_pb_wc_gallery")||t.closest(".et_pb_gallery, .et_pb_wc_gallery").length>0;const i=t.parent(".et_pb_section");let o=t.find(s?".et_pb_gallery_item":".et_pb_slide");0!==o.length||s||(o=t.find(".et_pb_gallery_item"),o.length>0&&(s=!0));const l=o.find(".et_pb_container");let _=0,a=0;const n=t.hasClass("et_pb_post_slider_image_top"),r=t.hasClass("et_pb_post_slider_image_bottom");if(i.is(".et_pb_section_first"))return!0;if(s||l.css("height",""),o.addClass("et_pb_temp_slide"),"object"==typeof t.data("et_pb_simple_slider")&&t.data("et_pb_simple_slider").et_fix_slider_content_images(),o.each((function(){let t=parseFloat(e(this).innerHeight());const i=s?e(this).find(".et_pb_gallery_image"):e(this).find(".et_pb_slide_image"),o=parseFloat(e(this).data("adjustedHeight")),l=isNaN(o)?0:o;t=l&&l<t?t-l:t,(n||r)&&(i.length?(a=n?parseFloat(i.css("margin-top")):parseFloat(i.css("margin-bottom")),a+=10):s||e(this).find(".et_pb_container").addClass("et_pb_no_image")),s||0!==e(this).find(".et_pb_slide_description").length&&0!==e(this).find(".et_pb_slide_description").html().trim().length||e(this).find(".et_pb_container").addClass("et_pb_empty_slide"),_<t&&(_=t)})),_+a<1?s||l.css("height",""):s||l.css("height",`${_+a}px`),o.removeClass("et_pb_temp_slide"),(s?o.filter(".et-pb-active-slide").find(".et_pb_gallery_image").children("img"):o.filter(".et-pb-active-slide").find(".et_pb_slide_image").children("img")).addClass("active"),s){const e=t.data("et_pb_simple_slider");e&&"function"==typeof e.et_fix_gallery_slider_controls_position&&setTimeout((()=>{e.et_fix_gallery_slider_controls_position()}),100)}}))};function l(){return e(".et-l:not(.et-l--footer) .et_pb_section:visible").first()}e(window).resize((function(){o()}))},window.et_pb_init_slider_modules()})),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibrarySlider={}}();