1&&!v(arguments[1])?b(arguments[1]):r,a=o?o.transfer:r;a!==r&&(n=function(t,e){if(!h(t))throw new B("Transfer option cannot be converted to a sequence");var n=[];d(t,(function(r){Q(n,b(r))}));for(var o,a,i,u,f,s=0,p=A(n),v=new z;s1;return l&&(a/=2),s.offset=o(s.offset),s.over=o(s.over),this.each((function(){if(null!==r){var c,u=n(this),d=u?this.contentWindow||window:this,f=t(d),h=r,p={};switch(typeof h){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(h)){h=o(h);break}h=u?t(h):t(h,d);case"object":if(0===h.length)return;(h.is||h.style)&&(c=(h=t(h)).offset())}var y=i(s.offset)&&s.offset(d,h)||s.offset;t.each(s.axis.split(""),(function(t,n){var i="x"===n?"Left":"Top",o=i.toLowerCase(),r="scroll"+i,a=f[r](),m=e.max(d,n);if(c)p[r]=c[o]+(u?0:a-f.offset()[o]),s.margin&&(p[r]-=parseInt(h.css("margin"+i),10)||0,p[r]-=parseInt(h.css("border"+i+"Width"),10)||0),p[r]+=y[o]||0,s.over[o]&&(p[r]+=h["x"===n?"width":"height"]()*s.over[o]);else{var v=h[o];p[r]=v.slice&&"%"===v.slice(-1)?parseFloat(v)/100*m:v}s.limit&&/^\d+$/.test(p[r])&&(p[r]=p[r]<=0?0:Math.min(p[r],m)),!t&&s.axis.length>1&&(a===p[r]?p={}:l&&(g(s.onAfterFirst),p={}))})),g(s.onAfter)}function g(e){var n=t.extend({},s,{queue:!0,duration:a,complete:e&&function(){e.call(d,h,s)}});f.animate(p,n)}}))},e.max=function(e,i){var o="x"===i?"Width":"Height",r="scroll"+o;if(!n(e))return e[r]-t(e)[o.toLowerCase()]();var a="client"+o,s=e.ownerDocument||e.document,l=s.documentElement,c=s.body;return Math.max(l[r],c[r])-Math.min(l[a],c[a])},t.Tween.propHooks.scrollLeft=t.Tween.propHooks.scrollTop={get:function(e){return t(e.elem)[e.prop]()},set:function(e){var n=this.get(e);if(e.options.interrupt&&e._last&&e._last!==n)return t(e.elem).stop();var i=Math.round(e.now);n!==i&&(t(e.elem)[e.prop](i),e._last=this.get(e))}},e})?i.apply(e,o):i)||(t.exports=r)}()},function(t,e){!function(){"use strict";var t=0,e={};function n(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,i),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}n.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},n.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(t){var n=[];for(var i in e)n.push(e[i]);for(var o=0,r=n.length;oi.oldScroll?i.forward:i.backward;for(var r in this.waypoints[n]){var a=this.waypoints[n][r];if(null!==a.triggerPoint){var s=i.oldScroll=a.triggerPoint;(s&&l||!s&&!l)&&(a.queueTrigger(o),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;i-1&&(h=Math.ceil(a.contextDimension*h/100))),l=a.contextScroll-a.contextOffset,f.triggerPoint=Math.floor(y+l-h),c=p=a.oldScroll,d=!c&&!u,!g&&c&&u?(f.queueTrigger(a.backward),o[f.group.id]=f.group):(!g&&d||g&&a.oldScroll>=f.triggerPoint)&&(f.queueTrigger(a.forward),o[f.group.id]=f.group)}}return i.requestAnimationFrame((function(){for(var t in o)o[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in n)n[t].refresh()},r.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),r.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var n={vertical:{},horizontal:{}},i=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var r=0,a=i.length;r-1&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return n[t.axis][t.name]||new o(t)},i.Group=o}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function n(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){n.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,i){n[i]=t[i]})),e.adapters.push({name:"jquery",Adapter:n}),e.Adapter=n}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var n=[],i=arguments[0];return e.isFunction(arguments[0])&&((i=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var o=e.extend({},i,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),n.push(new t(o))})),n}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}()},function(t,e,n){"use strict";(function(t){var e=n(7),i=n.n(e);t.Flatsome={behaviors:{},plugin:function(t,e,n){n=n||{},jQuery.fn[t]=function(o){if("string"==typeof arguments[0]){var r=null,a=arguments[0],s=Array.prototype.slice.call(arguments,1);return this.each((function(){if(!jQuery.data(this,"plugin_"+t)||"function"!=typeof jQuery.data(this,"plugin_"+t)[a])throw new Error("Method "+a+" does not exist on jQuery."+t);r=jQuery.data(this,"plugin_"+t)[a].apply(this,s)})),"destroy"===a&&this.each((function(){jQuery(this).removeData("plugin_"+t)})),void 0!==r?r:this}if("object"===i()(o)||!o)return this.each((function(){jQuery.data(this,"plugin_"+t)||(o=jQuery.extend({},n,o),jQuery.data(this,"plugin_"+t,new e(this,o)))}))}},behavior:function(t,e){this.behaviors[t]=e,e.arrive&&jQuery(document).arrive(e.arrive.selector,e.arrive.handler||function(){Flatsome.attach(t,this.parentNode)})},attach:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if("string"==typeof t)return this.behaviors.hasOwnProperty(t)&&"function"==typeof this.behaviors[t].attach?this.behaviors[t].attach(e||document):null;for(var n in this.behaviors)"function"==typeof this.behaviors[n].attach&&this.behaviors[n].attach(e||document)},detach:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if("string"==typeof t)return this.behaviors.hasOwnProperty(t)&&"function"==typeof this.behaviors[t].detach?this.behaviors[t].detach(e||document):null;for(var n in this.behaviors)"function"==typeof this.behaviors[n].detach&&this.behaviors[n].detach(e||document)}}}).call(this,n(2))},function(t,e,n){"use strict";var i=n(0),o=jQuery("#wrapper"),r=jQuery("#header"),a=jQuery(".header-top",r),s=jQuery("#wpadminbar"),l=s.length&&s.is(":visible")?s.height():0,c=r.hasClass("has-sticky"),u=r.hasClass("sticky-hide-on-scroll"),d=-jQuery(".header-wrapper").height()-100,f=a.hasClass("hide-for-sticky")?-a.height()-1:-1;if(jQuery(".sticky-shrink .header-wrapper").length){var h=a.hasClass("hide-for-sticky")?a.height():0;d=-1-h+l,f=-1-h}if(c&&(r.find(".header-wrapper").waypoint((function(t){var e=jQuery(this.element),n=r.height();"down"===t&&(jQuery(document).trigger("flatsome-header-sticky"),e.addClass("stuck"),r.height(n),jQuery(".has-transparent").removeClass("transparent"),jQuery(".toggle-nav-dark").removeClass("nav-dark"))}),{offset:d}),o.waypoint((function(t){Object(i.c)()||"up"===t&&(r.height(""),jQuery(".header-wrapper").removeClass("stuck"),jQuery(".has-transparent").addClass("transparent"),jQuery(".toggle-nav-dark").addClass("nav-dark"))}),{offset:f+l}),u)){var p,y=0;jQuery(window).on("scroll",(function(){if(!Object(i.c)()){clearTimeout(p);var t=jQuery(window).scrollTop(),e=jQuery(".header-wrapper");t>=e.outerHeight()&&(t<=y?(e.addClass("stuck"),r.removeClass("sticky-hide-on-scroll--active")):(e.removeClass("stuck"),r.addClass("sticky-hide-on-scroll--active"))),p=setTimeout((function(){y=jQuery(window).scrollTop()}),100)}}))}},function(t,e){},function(t,e,n){"use strict";var i=[];function o(){for(var t=0;tr||f.top+a.offsetHeight<0))switch(i){case"backgroundImage":v=f.top*o,n.style.backgroundPosition=o?"50% ".concat(v.toFixed(0),"px"):null,n.style.backgroundAttachment=o?"fixed":null;break;case"backgroundElement":v=y*o-c/2,n.style.transform=o?"translate3d(0, ".concat(v.toFixed(2),"px, 0)"):null,n.style.backfaceVisibility=o?"hidden":null;break;case"element":v=g*o,n.style.transform=o?"translate3d(0, ".concat(v.toFixed(2),"px, 0)"):null,n.style.backfaceVisibility=o?"hidden":null,void 0!==n.dataset.parallaxFade&&(n.style.opacity=o?(e=1-m,e*(2-e)).toFixed(2):null)}}(t)}function a(t){return void 0!==t.dataset.parallaxBackground?"backgroundElement":void 0!==t.dataset.parallaxElemenet?"element":""!==t.style.backgroundImage?"backgroundImage":"element"}function s(){return document.documentElement.scrollTop||document.body.scrollTop}function l(t){return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&!c(t).call(t,e);)t=t.parentElement;return t}(t,t.dataset.parallaxContainer||"[data-parallax-container]")||t}function c(t){return t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector}function u(t){return t/10*-1/(2-Math.abs(t)/10)}window.addEventListener("scroll",(function(){return window.requestAnimationFrame(o)})),window.addEventListener("resize",(function(){return window.requestAnimationFrame(o)})),window.addEventListener("DOMNodeInserted",(function(){return window.requestAnimationFrame(o)})),window.jQuery&&(window.jQuery.fn.flatsomeParallax=function(t){"destroy"!==t&&this.each((function(t,e){return function(t){t.classList.add("parallax-active"),!document.querySelector("body").classList.contains("parallax-mobile")&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)||t.classList&&t.dataset&&(i.push({element:t,type:a(t)}),r(i[i.length-1]))}(e)}))})},function(t,e){Flatsome.plugin("resizeselect",(function(t,e){jQuery(t).change((function(){var t=jQuery(this),e=t.find("option:selected").val(),n=t.find("option:selected").text(),i=jQuery('').html(n);i.appendTo(t.parent());var o=i.width();i.remove(),t.width(o+7),e&&t.parent().parent().find("input.search-field").focus()})).change()}))},function(t,e,n){"use strict";var i=n(3);function o(){return console.warn("Flatsome: Flickity is lazy loaded. Use 'lazyFlickity()' to instantiate and 'flatsome-flickity-ready' event to interact with Flickity instead."),this}jQuery.fn.flickity||(jQuery.fn.flickity=o),jQuery.fn.lazyFlickity=function(t){var e=Object(i.a)((function(i){if(i.isIntersecting){if(e.unobserve(i.target),!jQuery.fn.flickity||jQuery.fn.flickity===o)return n.e(5).then(n.t.bind(null,54,7)).then((function(){jQuery(i.target).flickity(t),jQuery(i.target).trigger("flatsome-flickity-ready")}));jQuery(i.target).flickity(t),jQuery(i.target).trigger("flatsome-flickity-ready")}}));return this.each((function(n,i){"string"==typeof t?jQuery.fn.flickity&&jQuery(i).flickity(t):e.observe(i)}))}},function(t,e,n){jQuery.fn.lazyTooltipster=function(t){return this.each((function(e,i){var o=jQuery(i);"string"==typeof t?jQuery.fn.tooltipster&&o.hasClass("tooltipstered")&&o.tooltipster(t):o.one("mouseenter",(function(e){!function(t,e){(jQuery.fn.tooltipster?Promise.resolve():n.e(3).then(n.t.bind(null,55,7))).then((function(){t.hasClass("tooltipstered")||t.tooltipster(e),t.tooltipster("show")}))}(o,t)}))}))}},function(t,e){jQuery(".section .loading-spin, .banner .loading-spin, .page-loader").fadeOut(),jQuery("#top-link").on("click",(function(t){jQuery.scrollTo(0,300),t.preventDefault()})),jQuery(".scroll-for-more").on("click",(function(){jQuery.scrollTo(jQuery(this),{duration:300})})),jQuery(".search-dropdown button").on("click",(function(t){jQuery(this).parent().find("input").trigger("focus"),t.preventDefault()})),jQuery(".current-cat").addClass("active"),jQuery("html").removeClass("loading-site"),setTimeout((function(){jQuery(".page-loader").remove()}),1e3),jQuery(".resize-select").resizeselect(),flatsomeVars.user.can_edit_pages&&jQuery(".block-edit-link").each((function(){var t=jQuery(this),e=t.data("link"),n=t.data("backend"),i=t.data("title"),o=t.parents('[id^="menu-item-"]');if(o.length&&o.hasClass("menu-item-has-block")){var r=o.attr("id").match(/menu-item-(\d+)/);r&&r[1]&&(e+="&menu_id=".concat(r[1]))}jQuery(this).next().addClass("has-block").lazyTooltipster({animationDuration:100,distance:-15,delay:0,repositionOnScroll:!0,interactive:!0,contentAsHTML:!0,content:i+'
UX Builder WP Editor'}),jQuery(this).remove()})),document.addEventListener("uxb_app_ready",(function(){var t=new URLSearchParams(window.top.location.search),e=parseInt(t.get("menu_id"));e&&setTimeout((function(){var t=jQuery("#menu-item-".concat(e)),n=t.parent().hasClass("ux-nav-vertical-menu");t.hasClass("menu-item-has-block has-dropdown")&&!t.hasClass("current-dropdown")&&(n&&jQuery(".header-vertical-menu__fly-out").addClass("header-vertical-menu__fly-out--open"),jQuery("#menu-item-".concat(e," a:first")).trigger("click"))}),1e3)})),jQuery("#hotspot").on("click",(function(t){t.preventDefault()})),jQuery(".wpcf7-form .wpcf7-submit").on("click",(function(t){jQuery(this).parent().parent().addClass("processing")})),jQuery(".wpcf7").on("wpcf7invalid wpcf7spam wpcf7mailsent wpcf7mailfailed",(function(t){jQuery(".processing").removeClass("processing")})),jQuery(document).ajaxComplete((function(t,e,n){jQuery(".processing").removeClass("processing")}))},function(t,e){Flatsome.behavior("animate",{attach:function(t){jQuery("[data-animate]",t).each((function(t,e){var n=jQuery(e);if(0===n.data("animate").length)return n.attr("data-animated","true");n.waypoint((function(t){if("down"===t){if("true"==n.data("animated"))return;setTimeout((function(){n.attr("data-animated","true")}),300)}}),{offset:"101%"})}))},detach:function(t){jQuery("[data-animate]",t).each((function(t,e){jQuery(e).attr("data-animated","false")}))}})},function(t,e){Flatsome.behavior("commons",{attach:function(t){jQuery("select.resizeselect").resizeselect(),jQuery("[data-parallax]",t).flatsomeParallax(),jQuery.fn.packery&&(jQuery("[data-packery-options], .has-packery",t).each((function(){var t=jQuery(this);t.packery({originLeft:!flatsomeVars.rtl}),setTimeout((function(){t.imagesLoaded((function(){t.packery("layout")}))}),100)})),jQuery(".banner-grid-wrapper").imagesLoaded((function(){jQuery(this.elements).removeClass("processing")}))),"objectFitPolyfill"in window&&window.objectFitPolyfill()},detach:function(t){}})},function(t,e,n){Flatsome.behavior("count-up",{attach:function(t){jQuery("span.count-up",t).each((function(t,e){var i=jQuery(e);i.waypoint({handler:function(t){jQuery(this.element).hasClass("active")||n.e(0).then(n.bind(null,56)).then((function(t){var e=t.CountUp,n=parseInt(i.text());new e(i.get(0),n,{decimalPlaces:0,duration:4}).start(),i.addClass("active")}))},offset:"100%"})}))}})},function(t,e,n){"use strict";(function(t){var e=n(8),i=n.n(e);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;eg&&pi&&n.addClass("nav-dropdown-full")}if(s){n.css({inset:0});var v=n.closest(".container").get(0).getBoundingClientRect(),b=n.get(0).getBoundingClientRect();n.css(r(r({width:l?i-o.width():i},!u&&{left:v.left-b.left+15}),u&&{right:15-(v.right-b.right)}))}if(a){n.css({inset:0});var w=document.body,j=w.getBoundingClientRect(),k=n.get(0).getBoundingClientRect(),Q=w.clientWidth;n.css(r(r(r(r({},!u&&{width:l?Q-o.get(0).getBoundingClientRect().right:Q}),u&&{width:l?o.get(0).getBoundingClientRect().left:Q}),!u&&{left:j.left-k.left}),u&&{right:-(j.right-k.right)}))}if((s||a)&&!l){var x=null;if(o.closest("#top-bar").length&&(x=document.querySelector("#top-bar")),o.closest("#masthead").length&&(x=document.querySelector("#masthead")),o.closest("#wide-nav").length&&(x=document.querySelector("#wide-nav")),null!==x){var C=x.getBoundingClientRect(),P=o.get(0).getBoundingClientRect();n.css({top:C.bottom-P.bottom+P.height})}}}(e.find(".nav-dropdown"))}function s(t){t.removeClass("current-dropdown"),t.find(".nav-dropdown").attr("style","")}function l(t){t.each((function(t,e){var n=jQuery(e);n.hasClass("current-dropdown")&&s(n)}))}function c(t,e){t.length&&t.removeClass("ux-body-overlay--".concat(e,"-active"))}Flatsome.behavior("dropdown",{attach:function(t){var e=jQuery(".nav li.has-dropdown",t),n="uxBuilder"===jQuery("html").attr("ng-app"),i=jQuery(".ux-body-overlay"),o="ontouchstart"in window,r=!1,u=null;e.each((function(t,d){var f=jQuery(d),h=f.hasClass("nav-dropdown-toggle")&&!o,p=!1,y=!1;f.on("touchstart click",(function(t){"touchstart"===t.type&&(p=!0),"click"===t.type&&p&&(p&&!y&&t.preventDefault(),y=!0)})),n||h?(r=!0,f.on("click","a:first",(function(t){if(t.preventDefault(),u=f,f.hasClass("current-dropdown"))return s(f),void c(i,"click");l(e),a(f),function(t,e){t.length&&t.addClass("ux-body-overlay--".concat("click","-active"))}(i),jQuery(document).trigger("flatsome-dropdown-opened",[f])}))):f.hoverIntent({sensitivity:3,interval:20,timeout:70,over:function(t){l(e),a(f),c(i,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[f])},out:function(){y=!1,p=!1,s(f)}})})),!n&&r&&jQuery(document).on("click",(function(t){null===u||u===t.target||u.has(t.target).length||(s(u),c(i,"click"))})),jQuery(document).on("flatsome-dropdown-opened",(function(t,e){e.hasClass("menu-item-has-block")&&jQuery.fn.packery&&e.find("[data-packery-options]").packery("layout")})),jQuery(document).on("flatsome-header-sticky",(function(){l(e),c(i,"click")}))}})}).call(this,n(2))},function(t,e,n){"use strict";var i=n(0);Flatsome.behavior("lightbox-gallery",{attach:function(t){var e={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(){Object(i.a)()},beforeClose:function(){Object(i.b)()}}};jQuery('.lightbox .gallery a[href*=".jpg"], .lightbox .gallery a[href*=".jpeg"], .lightbox .gallery a[href*=".png"], .lightbox a.lightbox-gallery',t).parent().lazyMagnificPopup(e),jQuery(".lightbox .lightbox-multi-gallery",t).length&&jQuery(".lightbox-multi-gallery",t).each((function(){jQuery(this).lazyMagnificPopup(e)}))}})},function(t,e,n){"use strict";var i=n(0);Flatsome.behavior("lightbox-image",{attach:function(t){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(","),t).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(){Object(i.a)()},beforeClose:function(){Object(i.b)()}}})}})},function(t,e,n){"use strict";var i=n(1),o=n(0);Flatsome.behavior("lightboxes-link",{attach:function(t){jQuery(".lightbox-by-id",t).each((function(){var e=jQuery(this).attr("id");jQuery('a[href="#'+e+'"]',t).on("click",(function(t){t.preventDefault();var e=jQuery(t.currentTarget);Object(i.a)().then((function(){var t=e.attr("href").substring(1),n=jQuery("#".concat(t,".lightbox-by-id"));if(t&&n.length>0){var i=n[0],r=jQuery.magnificPopup.open?300:0;r&&jQuery.magnificPopup.close(),setTimeout((function(){jQuery.magnificPopup.open({removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,items:{src:i,type:"inline",tLoading:''},callbacks:{beforeOpen:function(){Object(o.a)()},open:function(){if(Flatsome.attach(this.content),jQuery.fn.flickity&&jQuery("[data-flickity-options].flickity-enabled",this.content).each((function(t,e){jQuery(e).flickity("resize")})),jQuery.fn.packery){var t=jQuery("[data-packery-options]",this.content);t&&t.imagesLoaded((function(){t.packery("layout")}))}},beforeClose:function(){Object(o.b)()}}})}),r)}}))}))}))}})},function(t,e,n){"use strict";var i=n(0);Flatsome.behavior("lightbox-video",{attach:function(t){jQuery('a.open-video, a.button[href*="vimeo"], a.button[href*="youtube.com/watch"]',t).lazyMagnificPopup({type:"iframe",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,mainClass:"my-mfp-video",closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'',removalDelay:300,preloader:!0,callbacks:{beforeOpen:function(){Object(i.a)()},open:function(){jQuery(".slider .is-selected .video").trigger("pause")},beforeClose:function(){Object(i.b)()},close:function(){jQuery(".slider .is-selected .video").trigger("play")}}})}})},function(t,e,n){"use strict";var i=n(1),o=n(0);Flatsome.behavior("lightboxes",{attach:function(t){jQuery("[data-open]",t).on("click",(function(t){t.preventDefault();var e=jQuery(t.currentTarget);Object(i.a)().then((function(){var t=e.data("open"),n=e.data("color"),i=e.data("bg"),r=e.data("pos"),a=e.data("visible-after"),s=e.data("class"),l=e.attr("data-focus");e.offset(),e.addClass("current-lightbox-clicked"),jQuery.magnificPopup.open({items:{src:t,type:"inline",tLoading:''},removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,focus:l,callbacks:{beforeOpen:function(){this.st.mainClass="off-canvas ".concat(n," off-canvas-").concat(r),Object(o.a)()},open:function(){jQuery("html").addClass("has-off-canvas"),jQuery("html").addClass("has-off-canvas-"+r),s&&jQuery(".mfp-content").addClass(s),i&&jQuery(".mfp-bg").addClass(i),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"),Object(o.b)()},afterClose:function(){jQuery("html").removeClass("has-off-canvas-"+r),jQuery(".current-lightbox-clicked").removeClass("current-lightbox-clicked"),a&&jQuery(t).removeClass("mfp-hide")}}})}))}))}})},function(t,e){Flatsome.behavior("slider",{attach:function(t){var e;(e=jQuery(t).data("flickityOptions")?jQuery(t):jQuery("[data-flickity-options]",t)).length&&e.each((function(t,e){var n=jQuery(e),i=n.closest(".slider-wrapper"),o=n.data("flickity-options");"undefined"!=typeof UxBuilder&&(o.draggable=!1),!0!==o.watchCSS&&(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((function(){n.addClass("flickity-enabled")})));var t=n.data("flickity");if(t&&o.parallax){var e=n.find(".bg, .flickity-slider > .img img");n.addClass("slider-has-parallax"),n.on("scroll.flickity",(function(n,i){t.slides.forEach((function(n,i){var r=e[i],a=-1*(n.target+t.x)/o.parallax;r&&(r.style.transform="translateX( "+a+"px)")}))}))}})),n.lazyFlickity(o),n.imagesLoaded((function(){i.find(".loading-spin").fadeOut()})),n.on("change.flickity",(function(){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=function(t){return t.preventDefault()},n.addClass("is-dragging")})),n.on("dragEnd.flickity",(function(){document.ontouchmove=function(){return!0},n.removeClass("is-dragging")})))}))},detach:function(t){jQuery.fn.flickity&&(jQuery(t).data("flickityOptions")?jQuery(t).flickity("destroy"):jQuery("[data-flickity-options]",t).flickity("destroy"))}})},function(t,e){function n(t,e,n){e.each((function(e,n){return jQuery(n).toggleClass("active",e===t)})),n.each((function(e,n){return jQuery(n).toggleClass("active",e===t)})),jQuery.fn.packery&&jQuery("[data-packery-options]",n[t]).packery("layout")}Flatsome.behavior("tabs",{attach:function(t){var e=window.location.hash;jQuery(".tabbed-content",t).each((function(t,i){var o=jQuery(i),r=o.find("> .nav > li"),a=o.find("> .tab-panels > .panel"),s=o.find("> .nav").hasClass("active-on-hover");a.removeAttr("style"),r.each((function(t,i){var o=jQuery(i).find("a");o.on("click",(function(e){n(t,r,a),e.preventDefault(),e.stopPropagation()})),s&&o.hoverIntent({sensitivity:3,interval:20,timeout:70,over:function(e){n(t,r,a)},out:function(){}}),e.substr(1).length&&e.substr(1)===o.attr("href").split("#")[1]&&n(t,r,a)}))}))}})},function(t,e){Flatsome.behavior("toggle",{attach:function(t){function e(t){var e=jQuery(t.currentTarget).parent();e.toggleClass("active"),e.attr("aria-expanded","false"===e.attr("aria-expanded")?"true":"false"),t.preventDefault()}jQuery([".widget ul.children",".nav ul.children",".menu .sub-menu",".mobile-sidebar-levels-2 .nav ul.children > li > ul"].join(", "),t).each((function(){var t=jQuery(this).parents(".nav-slide").length?"right":"down";jQuery(this).parent().addClass("has-child").attr("aria-expanded","false"),jQuery(this).before(''))})),jQuery(".current-cat-parent",t).addClass("active").attr("aria-expanded","true").removeClass("current-cat-parent"),jQuery(".toggle",t).on("click",e);var n=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".sidebar-menu li.menu-item.has-child",t).each((function(){var t=jQuery(this),i=t.find("> a:first");"#"===i.attr("href")?i.on("click",(function(e){e.preventDefault(),t.toggleClass("active"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false")})):n&&i.next(".toggle").length&&i.on("click",e)}))}})},function(t,e){function n(t){t.attr("aria-hidden","true"),t.find("> li > a, > li > button").attr("tabindex","-1")}Flatsome.behavior("sidebar-slider",{attach:function(t){var e=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".mobile-sidebar-slide",t).each((function(t,i){var o=parseInt(jQuery(i).data("levels"),10)||1,r=jQuery(".sidebar-menu",i),a=jQuery(".nav-sidebar",i);jQuery(["> li > ul.children","> li > .sub-menu",o>1?"> li > ul.children > li > ul":null].filter(Boolean).join(", "),a).each((function(t,i){var o=jQuery(i),a=o.parent(),s=a.parents("ul:first"),l=jQuery(["> .toggle",'> a[href="#"]',e&&"> a"].filter(Boolean).join(","),a),c=a.find("> a").text().trim(),u=o.parents("ul").length,d=Boolean(window.flatsomeVars.rtl),f=jQuery('\n \n "));o.prepend(f),n(o);var h=null;l.off("click").on("click",(function(t){var e;a.attr("aria-expanded","true"),s.addClass("is-current-parent"),o.addClass("is-current-slide"),r.css("transform","translateX(".concat(d?"":"-").concat(100*u,"%)")),(e=o).attr("aria-hidden","false"),e.find("> li > a, > li > button").attr("tabindex",""),clearTimeout(h),t.preventDefault()})),f.find(".toggle").on("click",(function(){r.css("transform","translateX(".concat(d?"":"-").concat(100*(u-1),"%)")),n(o),h=setTimeout((function(){o.removeClass("is-current-slide"),s.removeClass("is-current-parent")}),300),a.removeClass("active"),a.attr("aria-expanded","false")}))}))}))}})},function(t,e){Flatsome.behavior("sidebar-tabs",{attach:function(t){jQuery(".sidebar-menu-tabs",t).each((function(t,e){var n=jQuery(e),i=n.find(".sidebar-menu-tabs__tab"),o=n.parent().find("ul.nav-sidebar");i.each((function(t,e){jQuery(e).on("click",(function(e){!function(t,e,n){e.each((function(e,n){return jQuery(n).toggleClass("active",e===t)})),n.each((function(e,n){return jQuery(n).toggleClass("hidden",e===t)}))}(t,i,o),e.preventDefault(),e.stopPropagation()}))}))}))}})},function(t,e){Flatsome.behavior("nav-hover",{attach:function(t){var e=jQuery(".ux-body-overlay",t);e.length&&jQuery([".nav-prompts-overlay li.menu-item",".nav-prompts-overlay .header-vertical-menu__opener"].join(", "),t).on({mouseenter:function(){e.addClass("ux-body-overlay--hover-active")},mouseleave:function(){e.removeClass("ux-body-overlay--hover-active")}})}})},function(t,e){Flatsome.behavior("back-to-top",{attach:function(t){jQuery("body",t).waypoint({handler:function(e){jQuery(".back-to-top",t).toggleClass("active")},offset:"-100%"})}})},function(t,e){Flatsome.behavior("scroll-to",{attach:function(){var t=jQuery("span.scroll-to"),e=jQuery(".scroll-to-bullets"),n=flatsomeVars.sticky_height;if(e.length&&(e.children().lazyTooltipster("destroy"),e.remove()),jQuery("li.scroll-to-link").remove(),t.length&&(e=jQuery(''),jQuery("body").append(e),t.each((function(t,e){var i=jQuery(e),o=i.data("link"),r=i.data("title"),a=i.data("bullet"),s='a[href*="'.concat(o||"",'"]');if(a){var l=jQuery('\n \n \n \n '));l.lazyTooltipster({position:"left",delay:50,contentAsHTML:!0,touchDevices:!1}),jQuery(".scroll-to-bullets").append(l)}var c=jQuery('\n \n ').concat(r,"\n \n "));jQuery("li.nav-single-page").before(c),setTimeout((function(){jQuery(".scroll-to-link a").attr("data-animated","true")}),300),i.waypoint((function(t){jQuery(".scroll-to-bullets a, .scroll-to-link").removeClass("active"),jQuery(".scroll-to-bullets").find(s).addClass("active"),jQuery(".nav-single-page").parent().find(s).parent().addClass("active"),"up"===t&&jQuery(".scroll-to-bullets, .nav-single-page").find(s).removeClass("active").prev().addClass("active")}),{offset:n}),jQuery(s).off("click").on("click",(function(t){var e=jQuery(this).attr("href").split("#")[1];e&&(setTimeout((function(){jQuery.scrollTo("a[name="+e+"]",{duration:500,axis:"y",offset:-n})}),0),jQuery.fn.magnificPopup&&jQuery.magnificPopup.close(),t.preventDefault())}))})),location.hash)){var i=location.hash.replace("#","");jQuery.scrollTo("a[name="+i+"]",{duration:500,axis:"y",offset:-n})}},detach:function(){jQuery("span.scroll-to").length&&setTimeout(this.attach,0)}})},function(t,e){Flatsome.behavior("accordion",{attach:function(t){jQuery(".accordion",t).each((function(){var t=jQuery(this).attr("rel");if(t>0){var e=jQuery(this).find(".accordion-item:nth-child("+t+") .accordion-inner");e.show(),e.prev().addClass("active"),jQuery.fn.packery&&e.find("[data-packery-options]").packery("layout")}}))}}),Flatsome.behavior("accordion-title",{attach:function(t){jQuery(".accordion-title",t).each((function(){jQuery(this).off("click.flatsome").on("click.flatsome",(function(t){var e=this;jQuery(this).next().is(":hidden")?(jQuery(this).parent().parent().find(".accordion-title").removeClass("active").next().slideUp(200),jQuery(this).toggleClass("active").next().slideDown(200,(function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&jQuery.scrollTo(jQuery(this).prev(),{duration:300,offset:-100})})),window.requestAnimationFrame((function(){jQuery.fn.flickity&&jQuery(e).next().find("[data-flickity-options].flickity-enabled").each((function(t,e){jQuery(e).flickity("resize")})),jQuery.fn.packery&&jQuery(e).next().find("[data-packery-options]").packery("layout")}))):jQuery(this).parent().parent().find(".accordion-title").removeClass("active").next().slideUp(200),t.preventDefault()}))}))}})},function(t,e){Flatsome.behavior("tooltips",{attach:function(t){jQuery(".tooltip, .has-tooltip, .tip-top, li.chosen a",t).lazyTooltipster(),jQuery(".tooltip-as-html",t).lazyTooltipster({interactive:!0,contentAsHTML:!0})}})},function(t,e,n){"use strict";var i=n(3);Flatsome.behavior("lazy-load-bg",{attach:function(t){var e=Object(i.a)((function(t){t.intersectionRatio>0&&(e.unobserve(t.target),jQuery(t.target).addClass("bg-loaded"))}));jQuery(".bg",t).each((function(t,n){e.observe(n)}))}})},function(t,e){Flatsome.behavior("sticky-section",{attach:function(t){jQuery(".sticky-section",t).each((function(t,e){var n=jQuery(e);n.waypoint((function(t){"down"===t&&(n.addClass("is-sticky-section"),n.after('')),"up"===t&&(n.removeClass("is-sticky-section"),n.next(".sticky-section-helper").remove())}),{offset:"0.1px"}),n.waypoint((function(t){"down"===t&&(n.removeClass("is-sticky-section"),n.next(".sticky-section-helper").remove()),"up"===t&&(n.addClass("is-sticky-section"),n.after(''))}),{offset:"-100%"})}))}})},function(t,e,n){Flatsome.behavior("sticky-sidebar",{attach:function(t){var e=parseInt(flatsomeVars.sticky_height)+15;jQuery(".is-sticky-column",t).each((function(t,i){n.e(2).then(n.t.bind(null,57,7)).then((function(){jQuery(i).stickySidebar({topSpacing:e,bottomSpacing:15,minWidth:850,innerWrapperSelector:".is-sticky-column__inner"}),jQuery(document).on("updated_checkout flatsome-infiniteScroll-append",(function(){jQuery(i).stickySidebar("updateSticky")}))}))}))}})},function(t,e){Flatsome.behavior("youtube",{attach:function(t){var e,n,i,o,r,a=jQuery(".ux-youtube",t);0!==a.length&&(window.onYouTubePlayerAPIReady=function(){a.each((function(){var t=jQuery(this),e=t.attr("id"),n=t.data("videoid"),i=t.data("loop"),o=t.data("audio");new YT.Player(e,{height:"100%",width:"100%",playerVars:{html5:1,autoplay:1,controls:0,rel:0,modestbranding:1,playsinline:1,showinfo:0,fs:0,loop:i,el:0,playlist:i?n:void 0},videoId:n,events:{onReady:function(t){0===o&&t.target.mute()}}})}))},n="script",i="youtube-jssdk",r=(e=document).getElementsByTagName(n)[0],e.getElementById(i)||((o=e.createElement(n)).id=i,o.src="https://www.youtube.com/player_api",r.parentNode.insertBefore(o,r)))}})}]);
!function(e){var t={};function a(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,s){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(s,o,function(t){return e[t]}.bind(null,o));return s},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=3)}([function(e,t,a){a.p=window.flatsomeVars?window.flatsomeVars.assets_url:"/"},,,function(e,t,a){a(0),e.exports=a(4)},function(e,t){!function(e){"use strict";var t="stacked"===flatsomeVars.options.swatches_layout,a=': ',s="ontouchstart"in window;e.fn.flatsomeSwatches=function(){return this.each((function(){var s=e(this);function o(){setTimeout((function(){s.find("tbody tr").each((function(){var t=e(this),a=t.find("select").find("option"),s=a.filter(":selected"),o=[];a.each((function(e,t){""!==t.value&&o.push(t.value)})),t.find(".ux-swatch").each((function(){var t=e(this),a=t.attr("data-value");-1!==o.indexOf(a)?t.removeClass("disabled"):(t.addClass("disabled"),s.length&&a===s.val()&&t.removeClass("selected"))}))}))}),100)}function n(){t&&s.find(".ux-swatch.selected").each((function(){var t=e(this).attr("data-name");e(this).parents("tr").find(".ux-swatch-selected-value").html(a+t)}))}s.hasClass("ux-swatches-js-attached")||(t&&s.find(".variations .label").append(''),s.on("click",".ux-swatch",(function(s){s.preventDefault();var o=e(this),n=o.closest(".value").find("select"),c=o.data("value"),i=o.data("name");o.hasClass("disabled")||(o.hasClass("selected")?(n.val(""),o.removeClass("selected"),t&&o.parents("tr").find(".ux-swatch-selected-value").html("")):(o.addClass("selected").siblings(".selected").removeClass("selected"),n.val(c),t&&o.parents("tr").find(".ux-swatch-selected-value").html(a+i)),n.change())})),s.on("click",".reset_variations",(function(){s.find(".ux-swatch.selected").removeClass("selected"),s.find(".ux-swatch.disabled").removeClass("disabled"),t&&s.find(".ux-swatch-selected-value").html("")})),o(),s.on("woocommerce_update_variation_values",(function(){o()})),n(),s.on("show_variation",(function(){n()})),s.addClass("ux-swatches-js-attached"))}))};var o=!flatsomeVars.options.swatches_box_behavior_selected,n=Boolean(flatsomeVars.options.swatches_box_update_urls),c="click"===flatsomeVars.options.swatches_box_select_event?"click":"hover",i=Boolean(flatsomeVars.options.swatches_box_reset),r=flatsomeVars.options.swatches_box_reset_extent,l=parseInt(flatsomeVars.options.swatches_box_reset_time);e.fn.flatsomeSwatchesLoop=function(){return this.each((function(){var t=e(this);if(!t.hasClass("ux-swatches-in-loop-js-attached")){var a,u,f,d,h,m=t.closest(".product-small"),v=m.find(".box-image a").first().attr("href"),p=[],w=!1;if("hover"===c&&t.on("mouseenter",".ux-swatch",(function(t){if(!s){var a=e(this);x(),b(a)}})),t.on("click",".ux-swatch",(function(t){t.preventDefault();var a=e(this);if(a.hasClass("selected")){if(o)return void(window.location=d||v);a.removeClass("selected"),m.removeClass("ux-swatch-active"),C(),n&&g(p)}else x(),b(a)})),t.on("click",".ux-swatches__limiter",(function(t){var a=e(this);a.parent().find(".ux-swatch.hidden").removeClass("hidden").fadeOut(0).fadeIn(500),a.hide(),e(document).trigger("flatsome-equalize-box")})),i){var _="product-box"===r?"":".ux-swatch";("product-box"===r?m:t).on("mouseenter mouseleave",_,(function(e){if("mouseleave"===e.type){var a=t.find(".selected");a.length&&(h=setTimeout((function(){a.removeClass("selected"),m.removeClass("ux-swatch-active"),C(),n&&g(p)}),l))}else clearTimeout(h)}))}t.addClass("ux-swatches-in-loop-js-attached")}function x(){w||(a=m.find(".box-image img:not(.back-image)").first(),u=a.attr("src"),f=a.attr("srcset"),p.push(m.find(".box-image a").first()),p.push(m.find(".woocommerce-loop-product__link")),p.push(m.find(".product_type_variable.add_to_cart_button")),w=!0)}function b(e){e.hasClass("selected")||(t.find(".selected").removeClass("selected"),e.addClass("selected"),m.addClass("ux-swatch-active"),function(e){a.attr("src",e.data("image-src")),f&&a.attr("srcset",e.data("image-srcset"))}(e),n&&function(e,t,a){var s=(t.indexOf("?")>-1?"&":"?")+e.data("attribute_name")+"="+e.data("value");a.forEach((function(e){e.attr("href",t+s)})),d=t+s}(e,v,p))}function C(){a&&a.attr("src",u),f&&a.attr("srcset",f)}function g(e){e.forEach((function(e){e.attr("href",v)}))}}))},e((function(){var t=".ux-swatches-in-loop:not(.js-ux-swatches)";e(".variations_form").flatsomeSwatches(),e(t).flatsomeSwatchesLoop(),e(document).on("wc_variation_form",(function(){e(".variations_form").flatsomeSwatches()})),e(document.body).on("wc-composite-initializing",".composite_data",(function(t,a){a.actions.add_action("component_options_state_changed",(function(t){e(t.$component_content).find(".variations_form").removeClass("ux-swatches-js-attached")}))})),e(document).on("flatsome-infiniteScroll-append",(function(a,s,o,n){e(t,n).flatsomeSwatchesLoop()})),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",(function(a){e(t,a.container).flatsomeSwatchesLoop()})),e(document).ajaxComplete((function(){setTimeout((function(){e(".variations_form:not(.ux-swatches-js-attached)").each((function(){e.fn.wc_variation_form&&e(this).wc_variation_form()})),e(t).flatsomeSwatchesLoop()}),100)}))}))}(jQuery)}]);
(()=>{var e=[],t=!1,i=[],o=new Promise((e=>{"loading"!==document.readyState?e():window.addEventListener("DOMContentLoaded",(()=>e()))}));function n(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch{return}if(t&&"function"==typeof t.postMessage)try{t.postMessage(JSON.stringify({type:"likesMessage",data:e}),"*")}catch{}}function s(){const t=[];document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach((i=>{if(!(e.indexOf(i.id)>-1)&&c(i)){e.push(i.id);var o,n=/like-(post|comment)-wrapper-(\d+)-(\d+)-(\w+)/.exec(i.id);n&&5===n.length&&(o={blog_id:n[2],width:i.width},"post"===n[1]?o.post_id=n[3]:"comment"===n[1]&&(o.comment_id=n[3]),o.obj_id=n[4],t.push(o))}})),t.length>0&&n({event:"initialBatch",requests:t},window.frames["likes-master"])}function l(){const e=document.querySelector("#likes-other-gravatars");if(e){e.style.display="none",e.setAttribute("aria-hidden","true");const t=e.__resizeHandler;t&&(window.removeEventListener("resize",t),delete e.__resizeHandler)}}function a(){var e;if(t){!function(){for(let e=i.length-1;e>=0;e--){const t=i[e];if(!c(t)){const o=t&&t.parentElement&&t.parentElement.parentElement;o.classList.remove("jetpack-likes-widget-loaded"),o.classList.remove("jetpack-likes-widget-loading"),o.classList.add("jetpack-likes-widget-unloaded"),o.querySelectorAll(".comment-likes-widget-placeholder").forEach((e=>e.style.display="block")),i.splice(e,1),t.remove()}}}();var o=[...document.querySelectorAll("div.jetpack-likes-widget-unloaded")].filter((e=>c(e)));o.length>0&&s();for(var n=0,l=o.length;n<=l-1;n++)(e=o[n].id)&&r(e)}else setTimeout(a,500)}function r(e){if(void 0===e)return;const t=document.querySelector("#"+e);t.querySelectorAll("iframe").forEach((e=>e.remove()));const o=t.querySelector(".likes-widget-placeholder");if(o&&o.classList.contains("post-likes-widget-placeholder")){const e=document.createElement("iframe");e.classList.add("post-likes-widget","jetpack-likes-widget"),e.name=t.dataset.name,e.src=t.dataset.src,e.height="55px",e.width="100%",e.frameBorder="0",e.scrolling="no",e.title=t.dataset.title,o.after(e)}if(o.classList.contains("comment-likes-widget-placeholder")){const e=document.createElement("iframe");e.class="comment-likes-widget-frame jetpack-likes-widget-frame",e.name=t.dataset.name,e.src=t.dataset.src,e.height="18px",e.width="100%",e.frameBorder="0",e.scrolling="no",t.querySelector(".comment-like-feedback").after(e),i.push(e)}t.classList.remove("jetpack-likes-widget-unloaded"),t.classList.add("jetpack-likes-widget-loading"),t.querySelector("iframe").addEventListener("load",(e=>{n({event:"loadLikeWidget",name:e.target.name,width:e.target.width},window.frames["likes-master"]),t.classList.remove("jetpack-likes-widget-loading"),t.classList.add("jetpack-likes-widget-loaded")}))}function c(e){const t=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;return t+2e3>=0&&i<=window.innerHeight+2e3}window.addEventListener("message",(function(e){let i=e&&e.data;if("string"==typeof i)try{i=JSON.parse(i)}catch{return}const a=i&&i.type,r=i&&i.data;if("likesMessage"!==a||void 0===r.event)return;if("https://widgets.wp.com"===e.origin)switch(r.event){case"masterReady":o.then((()=>{t=!0;const e={event:"injectStyles"},i=document.querySelector(".sd-text-color"),o=document.querySelector(".sd-link-color"),l=i&&getComputedStyle(i)||{},a=o&&getComputedStyle(o)||{};document.body.classList.contains("single")&&n({event:"reblogsEnabled"},window.frames["likes-master"]),e.textStyles={color:l.color,fontFamily:l["font-family"],fontSize:l["font-size"],direction:l.direction,fontWeight:l["font-weight"],fontStyle:l["font-style"],textDecoration:l["text-decoration"]},e.linkStyles={color:a.color,fontFamily:a["font-family"],fontSize:a["font-size"],textDecoration:a["text-decoration"],fontWeight:a["font-weight"],fontStyle:a["font-style"]},n(e,window.frames["likes-master"]),s()}));break;case"showLikeWidget":{const e=document.querySelector(`#${r.id} .likes-widget-placeholder`);e&&(e.style.display="none"),r.total>0&&document.querySelector(`#${r.id}`).classList.add("liked");break}case"showCommentLikeWidget":{const e=document.querySelector(`#${r.id} .likes-widget-placeholder`);e&&(e.style.display="none");break}case"killCommentLikes":document.querySelectorAll(".jetpack-comment-likes-widget-wrapper").forEach((e=>e.remove()));break;case"clickReblogFlair":wpcom_reblog&&"function"==typeof wpcom_reblog.toggle_reblog_box_flair&&wpcom_reblog.toggle_reblog_box_flair(r.obj_id);break;case"hideOtherGravatars":l();break;case"clickPostLike":r.total>0?document.querySelector(`#${r.id}`).classList.add("liked"):document.querySelector(`#${r.id}`).classList.remove("liked");break;case"showOtherGravatars":{const e=document.querySelector("#likes-other-gravatars");if(!e)break;const t=e.classList.contains("wpl-new-layout"),i=e.querySelector("ul");e.style.display="none",i.innerHTML="",t?e.querySelectorAll(".likes-text span").forEach((e=>e.textContent=r.totalLikesLabel)):e.querySelectorAll(".likes-text span").forEach((e=>e.textContent=r.total)),(r.likers||[]).forEach((async(e,o)=>{if("http"!==e.profile_URL.substr(0,4))return;const s=document.createElement("li");i.append(s),s.innerHTML=t?`\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t`:`\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t`,s.classList.add(e.css_class),s.querySelector("img").alt=r.avatarAltTitle.replace("%s",e.name),t&&(s.querySelector("span").innerText=e.name),o===r.likers.length-1&&s.addEventListener("keydown",(e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),l(),n({event:"focusLikesCount",parent:r.parent},window.frames["likes-master"]))}))}));const o=function(){const o="rtl"===getComputedStyle(e).direction,n=document.querySelector(`*[name='${r.parent}']`),s=n.getBoundingClientRect(),l=n.ownerDocument.defaultView,a=s.top+l.pageYOffset,c=s.left+l.pageXOffset;let d=0;if(t){if(e.style.top=a+r.position.top-1+"px",o){const t=r&&r.likers?Math.min(r.likers.length,5):0;d=c+r.position.left+24*t+4,e.style.transform="translateX(-100%)"}else d=c+r.position.left;e.style.left=d+"px"}else e.style.left=c+r.position.left-10+"px",e.style.top=a+r.position.top-33+"px";const f=r.width-20,p=Math.floor(f/37);let m=37*Math.ceil(r.likers.length/p)+17+22;if(m>204&&(m=204),!t){const t=37*p+13;e.style.height=m+"px",e.style.width=t+"px";const o=37*p;i.style.width=o+"px"}if(t){e.style.left="-9999px",e.style.display="block";const t=e.offsetWidth;d+t>l.innerWidth&&(d=s.right-t),e.style.left=d+"px"}else e.style.display="block";e.setAttribute("aria-hidden","false")};o(),e.focus();const s=function(e,t){var i;return function(){var o=this,n=arguments;clearTimeout(i),i=setTimeout((function(){e.apply(o,n)}),t)}},a=s(o,100);e.__resizeHandler=a,window.addEventListener("resize",a),e.focus()}}})),document.addEventListener("click",l);var d,f,p,m=(d=250,f=a,function(){clearTimeout(p),p=setTimeout(f,d)});a(),window.addEventListener("scroll",m,!0)})();;