n&&t.addClass("nav-dropdown-full")}if(a){t.css({inset:"0"});const e=t.closest(".container").get(0).getBoundingClientRect(),i=t.get(0).getBoundingClientRect();t.css({width:s?n-o.width():n,...!c&&{left:e.left-i.left+15},...c&&{right:15-(e.right-i.right)}})}if(i){t.css({inset:"0"});const e=document.body,n=e.getBoundingClientRect(),i=t.get(0).getBoundingClientRect(),a=e.clientWidth;t.css({...!c&&{width:s?a-o.get(0).getBoundingClientRect().right:a},...c&&{width:s?o.get(0).getBoundingClientRect().left:a},...!c&&{left:n.left-i.left},...c&&{right:-(n.right-i.right)}})}if((a||i)&&!s){let e=null;if(o.closest("#top-bar").length&&(e=document.querySelector("#top-bar")),o.closest("#masthead").length&&(e=document.querySelector("#masthead")),o.closest("#wide-nav").length&&(e=document.querySelector("#wide-nav")),null!==e){const n=e.getBoundingClientRect(),i=o.get(0).getBoundingClientRect();t.css({top:n.bottom-i.bottom+i.height})}}s&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&t.css({minHeight:t.closest(".header-vertical-menu__fly-out").outerHeight()})}(e.find(".nav-dropdown"))}function $(e){e.removeClass("current-dropdown"),e.find(".nav-top-link").attr("aria-expanded",!1),e.find(".nav-dropdown").attr("style","")}function z(e){e.each(((e,t)=>{const n=jQuery(t);n.hasClass("current-dropdown")&&$(n)}))}function H(e,t){e.length&&e.addClass(`ux-body-overlay--${t}-active`)}function V(e,t){e.length&&e.removeClass(`ux-body-overlay--${t}-active`)}Flatsome.behavior("count-up",{attach(e){jQuery("span.count-up",e).each(((e,t)=>{B.observe(t)}))}}),Flatsome.behavior("dropdown",{attach(e){const t=jQuery(".nav li.has-dropdown",e),n="uxBuilder"===jQuery("html").attr("ng-app"),o=jQuery(".ux-body-overlay"),i="ontouchstart"in window;let a=!1,r=null;jQuery(".header-nav > li > a, .top-bar-nav > li > a",e).on("focus",(()=>{z(t)})),t.each((function(e,s){const l=jQuery(s),c=l.hasClass("nav-dropdown-toggle")&&!i;let u=!1,d=!1;l.on("touchstart click",(function(e){"touchstart"===e.type&&(u=!0),"click"===e.type&&u&&(u&&!d&&e.preventDefault(),d=!0)})),n||c?(a=!0,l.on("click","a:first",(function(e){if(e.preventDefault(),r=l,l.hasClass("current-dropdown"))return $(l),void V(o,"click");z(t),S(l),H(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])}))):(l.on("keydown","a:first",(function(e){"Space"===e.code&&(e.preventDefault(),l.hasClass("current-dropdown")?($(l),V(o,"click")):(z(t),S(l),H(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])))})),l.hoverIntent({sensitivity:3,interval:20,timeout:70,over(e){z(t),S(l),V(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])},out(){d=!1,u=!1,$(l)}}))})),!n&&a&&jQuery(document).on("click",(function(e){null===r||r===e.target||r.has(e.target).length||($(r),V(o,"click"))})),jQuery(document).on("flatsome-dropdown-opened",(function(e,t){t.hasClass("menu-item-has-block")&&jQuery.fn.packery&&t.find("[data-packery-options]").packery("layout")})),jQuery(document).on("flatsome-header-sticky",(function(){z(t),V(o,"click")}))}}),Flatsome.behavior("instagram",{attach(e){const t=O((e=>{if(e.intersectionRatio>0){t.unobserve(e.target);const n=jQuery(e.target),o=n.data("flatsome-instagram"),i=e=>{jQuery("body").hasClass("admin-bar")&&n.before('
Instagram error: '+e+"
"),console.error("Instagram error:",e)};if("string"!=typeof o)return i("Invalid data");jQuery.ajax({url:flatsomeVars.ajaxurl,data:{action:"flatsome_load_instagram",data:o},success(e){if(!e.success)return i(e.data);if("string"!=typeof e.data)return console.error("Invalid Instagram response:",e.data);const t=jQuery(e.data);Flatsome.detach(n),n.replaceWith(t),Flatsome.attach(t)},error(e){i(e)}})}}));jQuery("[data-flatsome-instagram]",e).each(((e,n)=>{t.observe(n)}))}}),Flatsome.behavior("lightbox-gallery",{attach(e){const t={delegate:"a",type:"image",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'',removalDelay:300,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:'',preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.',verticalFit:!1},callbacks:{beforeOpen:function(){a()},beforeClose:function(){s()}}};jQuery('.lightbox .gallery a[href*=".jpg"], .lightbox .gallery a[href*=".jpeg"], .lightbox .gallery a[href*=".png"], .lightbox a.lightbox-gallery',e).parent().lazyMagnificPopup(t),jQuery(".lightbox .lightbox-multi-gallery",e).length&&jQuery(".lightbox-multi-gallery",e).each((function(){jQuery(this).lazyMagnificPopup(t)}))}}),Flatsome.behavior("lightbox-image",{attach(e){jQuery(['.lightbox *[id^="attachment"] a[href*=".jpg"]','.lightbox *[id^="attachment"] a[href*=".jpeg"]','.lightbox *[id^="attachment"] a[href*=".png"]','.lightbox .wp-block-image a[href*=".jpg"]:not([target="_blank"])','.lightbox .wp-block-image a[href*=".jpeg"]:not([target="_blank"])','.lightbox .wp-block-image a[href*=".png"]:not([target="_blank"])',".lightbox a.image-lightbox",'.lightbox .entry-content a[href*=".jpg"]','.lightbox .entry-content a[href*=".jpeg"]','.lightbox .entry-content a[href*=".png"]'].join(","),e).not([".lightbox a.lightbox-gallery",'.lightbox .gallery a[href*=".jpg"]','.lightbox .gallery a[href*=".jpeg"]','.lightbox .gallery a[href*=".png"]','.lightbox .lightbox-multi-gallery a[href*=".jpg"]','.lightbox .lightbox-multi-gallery a[href*=".jpeg"]','.lightbox .lightbox-multi-gallery a[href*=".png"]'].join(",")).lazyMagnificPopup({type:"image",tLoading:'',closeOnContentClick:!0,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,removalDelay:300,image:{verticalFit:!1},callbacks:{beforeOpen:function(){a()},beforeClose:function(){s()}}})}}),Flatsome.behavior("lightboxes-link",{attach(e){jQuery(".lightbox-by-id",e).each((function(){const t=jQuery(this).attr("id");jQuery('a[href="#'+t+'"]',e).on("click",(e=>{e.preventDefault();const t=jQuery(e.currentTarget);A().then((()=>{let e=t.attr("href").substring(1),n=jQuery(`#${e}.lightbox-by-id`);if(e&&n.length>0){let e=n[0],t=jQuery.magnificPopup.open?300:0;t&&jQuery.magnificPopup.close(),setTimeout((function(){jQuery.magnificPopup.open({removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,items:{src:e,type:"inline",tLoading:''},callbacks:{beforeOpen:function(){a()},open:function(){if(Flatsome.attach(this.content),jQuery.fn.flickity&&jQuery("[data-flickity-options].flickity-enabled",this.content).each(((e,t)=>{jQuery(t).flickity("resize")})),jQuery.fn.packery){const e=jQuery("[data-packery-options]",this.content);e&&e.imagesLoaded((function(){e.packery("layout")}))}},beforeClose:function(){s()}}})}),t)}}))}))}))}}),Flatsome.behavior("lightbox-video",{attach(e){jQuery('a.open-video, a.button[href*="vimeo"]:not(.product_type_external), a.button[href*="youtube.com/watch"]:not(.product_type_external)',e).lazyMagnificPopup({type:"iframe",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,mainClass:"my-mfp-video",closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'',removalDelay:300,preloader:!0,callbacks:{elementParse:function(e){/^.*\.(mp4)$/i.test(e.src)&&(e.type="inline",e.src='')},beforeOpen:function(){a()},open:function(){jQuery(".slider .is-selected .video").trigger("pause")},beforeClose:function(){s()},close:function(){jQuery(".slider .is-selected .video").trigger("play")}}})}}),Flatsome.behavior("lightboxes",{attach(e){jQuery("[data-open]",e).on("click",(e=>{e.preventDefault();const t=jQuery(e.currentTarget);A().then((()=>{var e=t.data("open"),n=t.data("color"),o=t.data("bg"),i=t.data("pos"),r=t.data("visible-after"),l=t.data("class"),c=t.attr("data-focus");t.offset(),t.addClass("current-lightbox-clicked"),"#product-sidebar"===e&&void 0===r&&(r=!jQuery(e).hasClass("mfp-hide")),jQuery.magnificPopup.open({items:{src:e,type:"inline",tLoading:''},removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,focus:c,callbacks:{beforeOpen:function(){this.st.mainClass=`off-canvas ${n||""} off-canvas-${i}`,a()},open:function(){jQuery("html").addClass("has-off-canvas"),jQuery("html").addClass("has-off-canvas-"+i),l&&jQuery(".mfp-content").addClass(l),o&&jQuery(".mfp-bg").addClass(o),jQuery(".mfp-content .resize-select").change(),jQuery.fn.packery&&jQuery("[data-packery-options], .has-packery").packery("layout"),jQuery(".equalize-box",this.content).length&&Flatsome.attach("equalize-box",this.content)},beforeClose:function(){jQuery("html").removeClass("has-off-canvas"),s()},afterClose:function(){jQuery("html").removeClass("has-off-canvas-"+i),jQuery(".current-lightbox-clicked").removeClass("current-lightbox-clicked"),r&&jQuery(e).removeClass("mfp-hide")}}})}))}))}}),Flatsome.behavior("slider",{attach(e){var t;(t=jQuery(e).data("flickityOptions")?jQuery(e):jQuery("[data-flickity-options]",e)).length&&t.each(((e,t)=>{var n=jQuery(t),o=n.closest(".slider-wrapper"),i=n.data("flickity-options");if("undefined"!=typeof UxBuilder&&(i.draggable=!1),!0===i.watchCSS)return;let a=!1,r=!1;const s=e=>{try{a=t.contains(e.target),"number"!=typeof i.autoPlay||!i.pauseAutoPlayOnHover||a||r||n.flickity("playPlayer")}catch(e){}};n.on("flatsome-flickity-ready",(function(){n.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),n.find(".is-selected .video-bg").trigger("play"),"requestAnimationFrame"in window&&(n.removeClass("flickity-enabled"),window.requestAnimationFrame((()=>{n.addClass("flickity-enabled")})));const e=n.data("flickity");if(e&&i.parallax){const t=n.find(".bg, .flickity-slider > .img img");n.addClass("slider-has-parallax"),n.on("scroll.flickity",(function(n,o){e.slides.forEach((function(n,o){const a=t[o],r=-1*(n.target+e.x)/i.parallax;a&&(a.style.transform="translateX( "+r+"px)")}))}))}document.addEventListener("touchstart",s,{passive:!0})})),k&&(i.friction=1,i.selectedAttraction=1,i.autoPlay=!1),n.lazyFlickity(i),n.imagesLoaded((function(){o.find(".loading-spin").fadeOut()})),n.on("change.flickity",(function(){a&&(r=!0),n.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),n.find(".is-selected .video-bg").trigger("play")})),n.on("dragStart.flickity",(function(){document.ontouchmove=e=>e.preventDefault(),n.addClass("is-dragging")})),n.on("dragEnd.flickity",(function(){document.ontouchmove=()=>!0,n.removeClass("is-dragging")})),n.on("destroy.flickity",(()=>{document.removeEventListener("touchstart",s)}))}))},detach(e){jQuery.fn.flickity&&!jQuery.fn.flickity.isFlickityStub&&(jQuery(e).data("flickityOptions")?jQuery(e).flickity("destroy"):jQuery("[data-flickity-options]",e).each((function(){jQuery(this).data("flickity")&&jQuery(this).flickity("destroy")})))}}),r(5414),r(5958),r(6241),r(8131),r(4206),r(5237),r(4113),Flatsome.behavior("accordion-title",{attach(t){const n=window.location.hash;let o=!1;jQuery(".accordion-title",t).each((function(){jQuery(this).off("click.flatsome").on("click.flatsome",(function(t){const n=k?0:200;jQuery(this).next().is(":hidden")?(jQuery(this).parent().parent().find(".accordion-title").attr("aria-expanded",!1).removeClass("active").next().slideUp(n),jQuery(this).attr("aria-expanded",!jQuery(this).hasClass("active")).toggleClass("active").next().slideDown(n,(function(){e()&&jQuery.scrollTo(jQuery(this).prev())})),window.requestAnimationFrame((()=>{jQuery.fn.flickity&&jQuery(this).next().find("[data-flickity-options].flickity-enabled").each(((e,t)=>{jQuery(t).flickity("resize")})),jQuery.fn.packery&&jQuery(this).next().find("[data-packery-options]").packery("layout")}))):jQuery(this).parent().parent().find(".accordion-title").attr("aria-expanded",!1).removeClass("active").next().slideUp(n),t.preventDefault()})),!n.substring(1).length||decodeURIComponent(n.substring(1))!==jQuery(this).attr("href")?.split("#")[1]&&n.substring(1)!==jQuery(this).attr("href")?.split("#")[1]||(jQuery(this).hasClass("active")||jQuery(this).trigger("click"),o||(o=!0,setTimeout((()=>{jQuery.scrollTo(jQuery(this).parent())}),500)))}))}}),Flatsome.behavior("tooltips",{attach(t){jQuery(".tooltip:not(.hotspot), .has-tooltip, .tip-top, li.chosen a",t).lazyTooltipster(),jQuery(".tooltip-as-html",t).lazyTooltipster({interactive:!0,contentAsHTML:!0}),e()?jQuery(".hotspot.tooltip:not(.quick-view)",t).lazyTooltipster({trigger:"click"}):jQuery(".hotspot.tooltip",t).lazyTooltipster()}});const q="flatsome-sticky-sidebar";function R(e){const t=e.getBoundingClientRect();return new DOMRect(t.width,t.top+window.scrollY,0,t.height)}Flatsome.behavior("sticky-sidebar",{attach(e){jQuery('.is-sticky-column[data-sticky-mode="javascript"]',e).each(((e,t)=>{"ResizeObserver"in window&&t.offsetParent&&t.offsetParent!==document.body?jQuery(t).data(q,function(e){const{offsetParent:t}=e,n=parseInt(flatsomeVars.sticky_height,10)+30,o={passive:!0,capture:!1};if(!t||t===document.body)return;let{innerHeight:i}=window,a=null,r=null,s=0,c=null,u=null;const d=(t="down")=>{const o=window.scrollY+n-Math.round(a?.top),l=i+s-n-Math.round(r?.height),d=Math.max(Math.min(l,Math.round(a?.height-r?.height)),0);let h=null,f=null;!a||r?.height{if(n===t){const e=R(t),{x:n,y:i,width:r,height:s}=o;a=new DOMRect(e.x+n,e.y+i,r,s)}else n===e&&(r=R(e),d())})),f=l(((e,{direction:t})=>d(t)),o),p=()=>{i=window.innerHeight,d()};return h?.observe(t),h?.observe(e),window.addEventListener("resize",p,o),()=>{f(),h?.disconnect(),window.removeEventListener("resize",p)}}(t)):jQuery(t).removeAttr("data-sticky-mode")}))},detach(e){jQuery('.is-sticky-column[data-sticky-mode="javascript"]',e).each(((e,t)=>{jQuery(t).data(q)?.()}))}}),r(9417),Flatsome.behavior("lottie",{attach(e){if("uxBuilder"===jQuery("html").attr("ng-app"))return;const t=jQuery(".ux-lottie__player",e);if(0===t.length)return;const n=O((e=>{e.isIntersecting&&(n.unobserve(e.target),function(e){const t=e,n=JSON.parse(t.dataset.params);let o=null,i=null,a=!1;function s(e){if(0===parseInt(e))return i.ip;if(100===parseInt(e))return i.op;const t=parseInt(i.ip),n=e*(parseInt(i.op)-t)/100+t;return Math.ceil(n)}Promise.all([r.e(970).then(r.bind(r,9371)),r.e(970).then(r.bind(r,1204))]).then((([,{create:e}])=>{t.load(n.src),t.addEventListener("ready",(()=>{o=t.getLottie(),i=o.animationData;const{autoplay:r,controls:l,direction:c,end:u,id:d,loop:h,mouseout:f,speed:p,start:y,trigger:m,scrollActionType:g,visibilityEnd:v,visibilityStart:b}=n;t.__controls=l,t.setLooping(h),t.setSpeed(parseFloat(p)),t.setDirection(c),"true"!==r&&"scroll"===m||o.playSegments([s(y),s(u)],!0),r||(t.pause(),"scroll"===m&&e({player:`#${d} .ux-lottie__player`,mode:"scroll",actions:[{visibility:[b/100,v/100],type:g,frames:[s(y),s(u)]}]}),"hover"===m&&(t.addEventListener("mouseenter",(()=>{"reverse"===f?(t.setDirection(c),t.play()):t.play()})),t.addEventListener("mouseleave",(()=>{"reverse"===f?(t.setDirection(-1===c?1:-1),t.play()):t.pause()}))),"click"===m&&t.addEventListener("click",(()=>{if(a)return t.pause(),void(a=!1);t.play(),a=!0})))}))}))}(e.target))}));t.each(((e,t)=>{n.observe(t)}))}}),k&&window.flatsomeVars.user.can_edit_pages&&("Prefer reduced motion is active on your OS","The prefers-reduced-motion media feature is used to detect if the user has requested the system minimize the amount of non-essential motion it uses. With this option enabled, slides & animations are reduced on the frontend.\nCheck your OS documentation on how to disable reduced motion.",console.groupCollapsed("%cFlatsome%c: Prefer reduced motion is active on your OS","color: #0693e3; font-weight: bold;","color: inherit;"),console.log("The prefers-reduced-motion media feature is used to detect if the user has requested the system minimize the amount of non-essential motion it uses. With this option enabled, slides & animations are reduced on the frontend.\nCheck your OS documentation on how to disable reduced motion."),console.groupEnd());let N=0;let W=0;const U="scrollBehavior"in document.documentElement.style,Y=window.getComputedStyle(document.documentElement)["scroll-behavior"];function X(){window.removeEventListener("keydown",X),window.removeEventListener("pointermove",X),window.removeEventListener("touchstart",X),function(){const e=jQuery("#header");if(!e.hasClass("has-sticky"))return;const t=e.clone();t.attr("id","header-clone").css("visibility","hidden");const n=t.find(".header-wrapper");n.addClass("stuck"),jQuery("body").append(t),N=Math.round(n.height()),t.remove(),window.flatsomeVars.stickyHeaderHeight=N,function(e,t=""){t&&document.documentElement.style.setProperty(e,t),window.getComputedStyle(document.documentElement).getPropertyValue(e)}("--flatsome--header--sticky-height",`${N}px`)}(),function(){const e=jQuery("#wpadminbar"),t=e.length&&e.is(":visible")?e.height():0;W=Math.round(window.flatsomeVars.stickyHeaderHeight+t),window.flatsomeVars.scrollPaddingTop=W,jQuery.extend(jQuery.easing,{fsEaseInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}}),jQuery.extend(jQuery.scrollTo.defaults,{axis:"y",duration:k||U&&"smooth"===Y?0:1e3,offset:-W,easing:"fsEaseInOutExpo"})}()}document.addEventListener("DOMContentLoaded",(()=>{window.location.hash||window.scrollY>200?X():(window.addEventListener("keydown",X,{once:!0}),window.addEventListener("pointermove",X,{once:!0}),window.addEventListener("touchstart",X,{once:!0}))}));for(const e of["touchstart","touchmove"])jQuery.event.special[e]={setup(t,n,o){this.addEventListener&&this.addEventListener(e,o,{passive:!n.includes("noPreventDefault")})}};for(const e of["wheel","mousewheel"])jQuery.event.special[e]={setup(t,n,o){this.addEventListener&&this.addEventListener(e,o,{passive:!0})}};jQuery((()=>r.g.Flatsome.attach(document))),r.g.Flatsome.cookie=function(e,t,n){if(void 0===t){const t=("; "+window.document.cookie).split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null}{!1===t&&(n=-1);let o="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),o=`; expires=${e.toGMTString()}`}window.document.cookie=`${e}=${t}${o}; path=/`}}}()}();