!function(f){woodmartThemeModule.headerBuilder=function(){var a,s,r=f(".whb-header"),t=f(".wd-hb"),e=f(".whb-sticky-row"),l="",d=woodmartThemeModule.$window,h=!1,n=300,o="",w=r.hasClass("whb-hide-on-scroll");if(e.each(function(){var e=f(this);if(10<e[0].offsetHeight)return l=e,!1}),r.hasClass("whb-sticky-real")||r.hasClass("whb-scroll-slide")){var e=f("#wpadminbar"),i=r.find(".whb-main-header")[0].offsetHeight,e=0<e.length?e[0].offsetHeight:0;if(r.hasClass("whb-sticky-real")){if(0===l.length||l[0].offsetHeight<10||"undefined"!=typeof elementorFrontend&&elementorFrontend.isEditMode())return;r.addClass("whb-sticky-prepared"),n=Math.ceil(l.offset().top)-e}r.hasClass("whb-scroll-slide")&&(n=i+e)}function c(){r.hasClass("whb-boxed")&&(f(".wd-offsets-calculated .wd-dropdown-menu").attr("style",""),f(".wd-offsets-calculated").removeClass("wd-offsets-calculated"),woodmartThemeModule.$window.trigger("wdHeaderBuilderStickyChanged"))}r.hasClass("whb-sticky-clone")&&((s=[]).cloneClass=r.find(".whb-general-header").attr("class"),w&&(s.wrapperClasses="whb-hide-on-scroll"),f(".whb-clone").length&&f(".whb-clone").remove(),o=(o=(o=(o=(o=woodmart_settings.whb_header_clone).replace(/<%([^%>]+)?%>|{{([^{}]+)}}/g,function(e){e=e.slice(2,-2);return r.find(e).length?f("<div>").append(r.find(e).first().clone()).html():void 0!==s[e]?s[e]:""})).replace(/<link[^>]*>/g,"")).replace("whb-col-1","")).replace("dropdowns-loading",""),r.after(o),(r=r.parent().find(".whb-clone")).find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle"),window.dispatchEvent(new CustomEvent("wdHeaderBuilderCloneCreated"))),d.on("scroll",function(){var e=n,s=woodmartThemeModule.$window.scrollTop(),l=woodmartThemeModule.$window.height(),d=woodmartThemeModule.$document.height(),o=(0<t.length&&t.hasClass("wd-display")&&(e+=t[0].offsetHeight),(e=!f(".wd-hb-close").length&&r.hasClass("whb-scroll-stick")?n:e)<s?h||(h=!0,r.addClass("whb-sticked"),c()):h&&(h=!1,r.removeClass("whb-sticked"),c()),100);r.hasClass("whb-scroll-stick")&&(o=500),w&&(0<a-s&&e<s?(r.addClass("whb-scroll-up"),r.removeClass("whb-scroll-down")):0<s-a&&s+l!==d&&e+o<s?(r.addClass("whb-scroll-down"),r.removeClass("whb-scroll-up")):s<=e?(r.removeClass("whb-scroll-down"),r.removeClass("whb-scroll-up")):d-5<=s+l&&(r.addClass("whb-scroll-up"),r.removeClass("whb-scroll-down"))),a=s}),woodmartThemeModule.$document.trigger("wdHeaderBuilderInited")},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.headerBuilder()})})}(jQuery);
!function(m){woodmartThemeModule.menuOffsets=function(){m(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li, .widget_nav_mega_menu ul.menu:not(.wd-nav-vertical) > li, .wd-header-main-nav .wd-dropdown.wd-design-aside ul > li").each(function(){var e=m(this);function d(){e.hasClass("wd-offsets-calculated")||e.parents(".wd-design-aside").length||(e.find(" > .menu-item-has-children").each(function(){var e,d,s,o,n,a,t,w,i,l;e=m(this),w=e.find(" > .wd-dropdown-menu"),i=w.outerWidth(),l=w.offset(),w.attr("style",""),i&&l&&(w.hasClass("wd-design-full-width")||w.hasClass("wd-design-aside")?(s=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?s<=(o=s-l.left-i)+i&&w.css({right:-(d=o+i-s)}):l.left+i>=s&&(d=l.left+i-s,w.css({left:-d}))):(w.hasClass("wd-design-sized")||w.hasClass("wd-design-full-height"))&&(s=woodmart_settings.site_width,o=(s=woodmartThemeModule.$window.width()<s||!s||e.parents(".whb-header").hasClass("whb-full-width")?woodmartThemeModule.$window.width():s)-l.left-i,e=15,n=(woodmartThemeModule.$window.width()-s)/2,t=m(".wd-sticky-nav"),woodmartThemeModule.$body.hasClass("wd-sticky-nav-enabled")&&t.length&&(e-=t.width()/2),woodmartThemeModule.$body.hasClass("rtl")?s<=(a=n+o)+i&&w.css({right:-(d=a+i-s)-e}):s<=(a=l.left-n)+i&&w.css({left:-(d=a+i-s)-e})))}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),e.addClass("wd-offsets-calculated"))}(e=e.hasClass("menu-item")?m(this).parent():e).on("mouseenter mousemove",function(){d()}),woodmartThemeModule.$window.on("wdHeaderBuilderStickyChanged",d),"yes"===woodmart_settings.clear_menu_offsets_on_resize&&setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){e.removeClass("wd-offsets-calculated"),e.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.menuDropdownAside=function(){m(".wd-nav .wd-design-aside, .wd-header-cats.wd-open-dropdown .wd-nav").each(function(){var e,d=m(this).find(".menu-item");d.length&&((e=d.first()).hasClass("menu-item-has-children")||e.parents(".wd-sub-menu-wrapp").addClass("wd-empty-item"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"),d.on("mouseover",function(){var e=m(this),d=e.parents(".wd-sub-menu-wrapp");e.hasClass("wd-opened")||(e.hasClass("item-level-1")&&(e.hasClass("menu-item-has-children")?d.removeClass("wd-empty-item"):d.addClass("wd-empty-item")),e.siblings().removeClass("wd-opened").find(".wd-dropdown").removeClass("wd-opened"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"))}))})},window.addEventListener("wdEventStarted",function(){setTimeout(function(){woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()},100)}),window.addEventListener("wdUpdatedHeader",function(){m(".whb-header .wd-offsets-calculated").removeClass("wd-offsets-calculated"),m(".whb-header .menu-item.wd-opened, .whb-header .wd-dropdown.wd-opened").removeClass("wd-opened"),m(".whb-header .wd-dropdown-menu").attr("style",""),woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()})}(jQuery);
!function(t){woodmartThemeModule.menuSetUp=function(){var n=t(".wd-nav, .wd-header-cats, .wd-search-cat"),d="wd-opened";function e(){woodmartThemeModule.$window.width()<=1024?n.find(" > .menu-item-has-children.wd-event-hover").each(function(){t(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):n.find(" > .wd-event-click").each(function(){var e=t(this);"hover"===e.data("original-event")&&e.removeClass("wd-event-click").addClass("wd-event-hover")})}t(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),woodmartThemeModule.$document.on("click",".wd-nav .wd-event-click > a, .wd-header-cats.wd-event-click > span, .wd-search-cat-btn",function(e){e.preventDefault();e=t(this);e.parent().siblings().hasClass(d)&&e.parent().siblings().removeClass(d),e.parent().toggleClass(d)}),woodmartThemeModule.$document.on("click",function(e){e=e.target;!(0<t("."+d).length)||t(e).is(".wd-event-hover")||t(e).parents().is(".wd-event-hover")||t(e).parents().is("."+d)||t(e).is("."+d)||t(e).is(".wd-sticky-nav")||e.closest(".wd-cookies-popup")||e.closest(".wd-fb-holder")||0!==t(".mfp-ready").length||0!==t(".pswp--open").length||(n.find(".wd-event-click."+d).removeClass(d),n.hasClass("wd-event-click")&&n.removeClass(d),t(e).closest(".wd-with-overlay").length)||t(".wd-close-side").trigger("wdCloseSideAction",["hide","click"])}),"yes"===woodmart_settings.menu_item_hover_to_click_on_responsive&&(e(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){e()},300)))},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.menuSetUp()})})}(jQuery);
!function(i){woodmartThemeModule.loginDropdown=function(){woodmartThemeModule.windowWidth<=1024||i(".wd-dropdown-register").each(function(){var n=i(this),e=n.find(".login-dropdown-inner");e.find('input[id="username"]').on("click",function(){n.addClass("wd-active-login").removeClass("wd-active-link")}),e.find('input[id="username"]').on("input",function(){n.hasClass("wd-active-login")&&n.removeClass("wd-active-login").addClass("wd-active-link")}),e.find("input").not('[id="username"]').on("click",function(){n.removeClass("wd-active-login").removeClass("wd-active-link")}),woodmartThemeModule.$document.click(function(e){void 0!==e.target.className.length&&-1===e.target.className.indexOf("wd-dropdown-register")&&-1===e.target.className.indexOf("input-text")&&n.removeClass("wd-active-login").removeClass("wd-active-link")}),i(".wd-dropdown-register").on("mouseout",function(){n.hasClass("wd-active-link")&&n.removeClass("wd-active-link")}).on("mouseleave",function(){n.hasClass("wd-active-link")&&n.removeClass("wd-active-link")})})},i(document).ready(function(){woodmartThemeModule.loginDropdown()})}(jQuery);
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(v){"use strict";var n={escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},s=27,i=9,o=13,a=38,l=39,r=40;function u(e,t){function n(){}var s=this,i={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:u.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:n,onSearchComplete:n,onSearchError:n,preserveInput:!1,containerClass:"wd-search-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?JSON.parse(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};s.element=e,s.el=v(e),s.suggestions=[],s.badQueries=[],s.selectedIndex=-1,s.currentValue=s.element.value,s.intervalId=0,s.cachedResponse={},s.onChangeInterval=null,s.onChange=null,s.isLocal=!1,s.suggestionsContainer=null,s.noSuggestionsContainer=null,s.options=v.extend({},i,t),s.classes={selected:"wd-active",suggestion:"wd-suggestion"},s.hint=null,s.hintValue="",s.selection=null,s.initialize(),s.setOptions(t)}u.utils=n,(v.Autocomplete=u).formatResult=function(e,t){t="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(t,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var e,t=this,n="."+t.classes.suggestion,s=t.classes.selected,i=t.options,i=(t.element.setAttribute("autocomplete","off"),t.killerFn=function(e){0===v(e.target).closest("."+t.options.containerClass).length&&(t.killSuggestions(e),t.disableKillerFn())},t.noSuggestionsContainer=v('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=u.utils.createNode(i.containerClass),(e=v(t.suggestionsContainer)).appendTo(i.appendTo),"auto"!==i.width&&e.width(i.width),e.on("mouseover.autocomplete",n,function(e){if(v(this).hasClass("wd-not-found"))return e.preventDefault(),!1;t.activate(v(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.find("."+s).removeClass(s)}),e.on("click.autocomplete",n,function(e){if(v(this).hasClass("wd-not-found")||v(this).hasClass("wd-search-title"))return e.preventDefault(),!1;e=0<v(this).find("> a").length;t.select(v(this).data("index"),e)}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},v(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)}),t.el.parent().find(".wd-clear-search"));i&&i.on("click",function(e){t.onClearSearch(e)})},onClearSearch:function(e){var t=this;e.target.classList.contains("wd-clear-search")&&e.target.classList.add("wd-hide"),t.clear(),t.killSuggestions(e),t.el.trigger("focus")},onFocus:function(){var e=this;e.fixPosition(),0===e.options.minChars&&0===e.el.val().length&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(e){var t=this,n=t.options;v.extend(n,e),t.isLocal=Array.isArray(n.lookup),t.isLocal&&(n.lookup=t.verifySuggestionsFormat(n.lookup)),n.orientation=t.validateOrientation(n.orientation,"bottom"),v(t.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,n,s,i,o,a,l,r=this,u=v(r.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!r.options.forceFixPosition||(o=r.options.orientation,e=u.outerHeight(),t=r.el.outerHeight(),n={top:(l=r.el.offset()).top,left:l.left},"auto"===o&&(a=v(window).height(),s=-(i=v(window).scrollTop())+l.top-e,i=i+a-(l.top+t+e),o=Math.max(s,i)===s?"top":"bottom"),n.top+="top"===o?-e:t,c!==document.body&&(a=u.css("opacity"),r.visible||u.css("opacity",0).show(),l=u.offsetParent().offset(),n.top-=l.top,n.left-=l.left,r.visible||u.css("opacity",a).hide()),"auto"===r.options.width&&(n.width=r.el.outerWidth()-2+"px"),u.css(n))},enableKillerFn:function(){v(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){v(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(e){var t=this,n=v(e.target).hasClass("wd-clear-search");t.stopKillSuggestions(),t.intervalId=window.setInterval(function(){t.visible&&(t.el.val(t.currentValue),t.hide(!1,n)),t.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==r||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case s:t.el.val(t.currentValue),t.hide();break;case l:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case i:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case o:if(-1===t.selectedIndex)return void t.hide(!0);t.select(t.selectedIndex,!0);break;case a:t.moveUp();break;case r:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case r:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),0<t.options.deferRequestBy?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var e=this,t=e.options,n=e.el.val(),s=e.getQuery(n);e.selection&&e.currentValue!==s&&(e.selection=null,(t.onInvalidateSelection||v.noop).call(e.element)),clearInterval(e.onChangeInterval),e.currentValue=n,e.selectedIndex=-1,t.triggerSelectOnValidInput&&e.isExactMatch(s)?e.select(0):s.length<t.minChars?e.hide():e.getSuggestions(s)},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t=this.options.delimiter;return t?(t=e.split(t),null==(t=t[t.length-1])?"":"string"==typeof t?t.trim():(t+"").replace("/^[\\s\ufeff ]+|[\\s\ufeff ]+$/g","")):e},getSuggestionsLocal:function(t){var e=this.options,n=t.toLowerCase(),s=e.lookupFilter,i=parseInt(e.lookupLimit,10),e={suggestions:v.grep(e.lookup,function(e){return s(e,t,n)})};return i&&e.suggestions.length>i&&(e.suggestions=e.suggestions.slice(0,i)),e},getSuggestions:function(s){var e,t,n,i=this,o=i.options,a=o.serviceUrl;o.params[o.paramName]=s,e=o.ignoreParams?null:o.params,!1!==o.onSearchStart.call(i.element,o.params)&&("function"==typeof o.lookup?o.lookup(s,function(e){i.suggestions=e.suggestions,i.suggest(),o.onSearchComplete.call(i.element,s,e.suggestions)}):(n=i.isLocal?i.getSuggestionsLocal(s):("function"==typeof a&&(a=a.call(i.element,s)),t=a+"?"+v.param(e||{}),i.cachedResponse[t]))&&Array.isArray(n.suggestions)?(i.suggestions=n.suggestions,i.suggest(),o.onSearchComplete.call(i.element,s,n.suggestions)):i.isBadQuery(s)?o.onSearchComplete.call(i.element,s,[]):(i.abortAjax(),n={url:a,data:e,type:o.type,dataType:o.dataType},v.extend(n,o.ajaxSettings),i.currentRequest=v.ajax(n).done(function(e){i.currentRequest=null,e=o.transformResult(e,s),i.processResponse(e,s,t),o.onSearchComplete.call(i.element,s,e.suggestions)}).fail(function(e,t,n){o.onSearchError.call(i.element,s,e,t,n)})))},isBadQuery:function(e){if(this.options.preventBadQueries)for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(e=!1,t=!1){var n;e||(n=v((e=this).suggestionsContainer),"function"==typeof e.options.onHide&&e.visible&&e.options.onHide.call(e.element,n,t),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),v(e.suggestionsContainer).hide(),e.signalHint(null))},suggest:function(){var e,t,i,o,a,l,n,s,r,u,c,g,d,h,p,f;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(t=(e=this).options,i=t.groupBy,o=t.formatResult,a=e.getQuery(e.currentValue),l=e.classes.suggestion,n=e.classes.selected,s=v(e.suggestionsContainer),r=v(e.noSuggestionsContainer),u=t.beforeRender,c="",d=function(e,t){e=e.data[i];return g===e?"":'<div class="autocomplete-group"><strong>'+(g=e)+"</strong></div>"},t.triggerSelectOnValidInput&&e.isExactMatch(a)?e.select(0):(h=function(e,s=""){return v.each(e,function(e,t){i&&(s+=d(t,a,e));var n=l;t.item_classes&&(n+=" "+t.item_classes),s+='<div class="'+n+'" data-index="'+e+'">'+o(t,a)+"</div>"}),s},p=0,(f=e.suggestions.reduce((e,t)=>{var n=t.group||"default";e[n]||(e[n]={});e[n][p]=t;p++;return e},{}))?v.each(f,function(e,n){v.each(n,function(e,t){t&&t.divider&&(c+='<div class="wd-search-title title" data-index="'+e+'">'+t.divider+"</div>",delete n[e])}),c=h(n,c+='<div class="'+("wd-suggestions-group wd-type-"+e)+'">'),c+="</div>"}):c=h(e.suggestions),this.adjustContainerWidth(),r.detach(),s.html(c),"function"==typeof u&&u.call(e.element,s),e.fixPosition(),s.show(),t.autoSelectFirst&&(e.selectedIndex=0,s.scrollTop(0),s.children("."+l).first().addClass(n)),e.visible=!0,e.findBestHint()))},noSuggestions:function(){var e=v(this.suggestionsContainer),t=v(this.noSuggestionsContainer);this.adjustContainerWidth(),t.detach(),e.empty(),e.append(t),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e=this.options,t=v(this.suggestionsContainer);"auto"===e.width&&(e=this.el.outerWidth()-2,t.width(0<e?e:300))},findBestHint:function(){var s=this.el.val().toLowerCase(),i=null;s&&(v.each(this.suggestions,function(e,t){var n=0===t.value.toLowerCase().indexOf(s);return n&&(i=t),!n}),this.signalHint(i))},signalHint:function(e){var t="",n=this;e&&(t=n.currentValue+e.value.substr(n.currentValue.length)),n.hintValue!==t&&(n.hintValue=t,n.hint=e,(this.options.onHint||v.noop)(t))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?v.map(e,function(e){return{value:e,data:null}}):e},validateOrientation:function(e,t){return e=v.trim(e||"").toLowerCase(),e=-1===v.inArray(e,["auto","bottom","top"])?t:e},processResponse:function(e,t,n){var s=this,i=s.options;e.suggestions=s.verifySuggestionsFormat(e.suggestions),i.noCache||(s.cachedResponse[n]=e,i.preventBadQueries&&0===e.suggestions.length&&s.badQueries.push(t)),t===s.getQuery(s.currentValue)&&(s.suggestions=e.suggestions,s.suggest())},activate:function(e){var t=this,n=t.classes.selected,s=v(t.suggestionsContainer),i=s.find(`.${t.classes.suggestion}[data-index="${e}"]`);return s.find("."+n).removeClass(n),t.selectedIndex=e,-1!==t.selectedIndex&&i?(v(i).addClass(n),i):null},selectHint:function(){var e=v.inArray(this.hint,this.suggestions);this.select(e)},select:function(e,t=!1){t||(this.hide(),this.onSelect(e))},moveUp:function(){var e=this;-1!==e.selectedIndex&&(0===e.selectedIndex?(v(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),e.findBestHint()):e.adjustScroll(e.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,n,s,i=this,o=i.activate(e);o&&(t=v(o).outerHeight(),o=o.offsetTop,s=(n=v(i.suggestionsContainer).scrollTop())+i.options.maxHeight-t,o<n?v(i.suggestionsContainer).scrollTop(o):s<o&&v(i.suggestionsContainer).scrollTop(o-i.options.maxHeight+t),i.options.preserveInput||i.el.val(i.getValue(i.suggestions[e].value)),i.signalHint(null))},onSelect:function(e){var t=this,n=t.options.onSelect,e=t.suggestions[e];t.currentValue=t.getValue(e.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.signalHint(null),t.suggestions=[],t.selection=e,"function"==typeof n&&n.call(t.element,e)},getValue:function(e){var t,n=this.options.delimiter;return!n||1===(n=(t=this.currentValue).split(n)).length?e:t.substr(0,t.length-n[n.length-1].length)+e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),this.disableKillerFn(),v(window).off("resize.autocomplete",this.fixPositionCapture),v(this.suggestionsContainer).remove()}},v.fn.devbridgeAutocomplete=function(n,s){var i="autocomplete";return 0===arguments.length?this.first().data(i):this.each(function(){var e=v(this),t=e.data(i);"string"==typeof n?t&&"function"==typeof t[n]&&t[n](s):(t&&t.dispose&&t.dispose(),t=new u(this,n),e.data(i,t))})}});
!function(_){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.ajaxSearch()}),_.each(["frontend/element_ready/wd_search.default"],function(e,a){woodmartThemeModule.wdElementorAddAction(a,function(){woodmartThemeModule.ajaxSearch()})}),woodmartThemeModule.ajaxSearch=function(){void 0!==_.fn.devbridgeAutocomplete&&(_("form.woodmart-ajax-search").each(function(){var s=_(this),d=parseInt(s.data("count")),n=parseInt(s.data("thumbnail")),r=parseInt(s.data("symbols_count")),o=s.find('[name="product_cat"]'),e=s.parent(),l=s.data("post_type"),c=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",i=parseInt(s.data("price")),u=s.data("sku"),h=s.parents(".wd-search-full-screen").length,w=s.parents(".wd-search-full-screen-2").length,p=s.parents(".wd-search-dropdown").length,m=e.find(`.wd-search-results${h||w?"":" > "}.wd-scroll-content`),f=e.find(".wd-search-results"),g=s.data("include_cat_search");function v(e){0!==s.parents(".wd-search-form.wd-display-form.wd-with-overlay").length&&_(".wd-close-side").trigger("wdCloseSideAction",["open"===e?"show":"hide","click"])}0<d&&(c+="&number="+d),c+="&post_type="+l,o.length&&""!==o.val()&&(c+="&product_cat="+o.val()),g&&"yes"===g&&(c+="&include_cat_search="+g),s.find('[type="text"]').on("focus keyup cat_selected",function(e){var a=_(this),t={action:"woodmart_ajax_search",number:0<d?d:void 0,post_type:l};if(a.hasClass("wd-search-inited")||(a.devbridgeAutocomplete({serviceUrl:c,appendTo:m,minChars:r,deferRequestBy:woodmart_settings.ajax_search_delay,onHide:function(e,a){w&&f.removeClass("wd-no-results");var t=(w?s.parent():s).parent(),d="function"==typeof woodmartThemeModule.beforeSearchcontent&&t.find(".wd-search-history, .wd-search-requests, .wd-search-area").length;a||d||v("close"),a||w||h?t.removeClass("wd-searched"):d||(t.find(".wd-search-results").removeClass("wd-opened"),setTimeout(function(){t.removeClass("wd-searched")},400))},onSearchStart:function(){s.addClass("wd-search-loading")},beforeRender:function(e){p||v("open"),_(e).find(".wd-not-found-msg").parent().addClass("wd-not-found");var a=0<_(e).find(".wd-suggestion:not(.wd-not-found)").length;(a=_(e).find('[class*="wd-type-"]')?a:2<e[0].childElementCount)&&(a=s.serializeArray(),a=s.attr("action")+"?"+_.param(a),_(e).append('<a class="wd-all-results" href="'+a+'">'+woodmart_settings.all_results+"</a>")),_(e).removeAttr("style")},onSelect:function(e){0<e.permalink.length&&(window.location.href=e.permalink),s.parent().find(".wd-search-results").removeClass("wd-opened")},onSearchComplete:function(){s.removeClass("wd-search-loading"),woodmartThemeModule.$document.trigger("wood-images-loaded")},formatResult:function(e,a){var a="("+(a="&"===a?"&#038;":a).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")",t="";return e.divider&&(t+=' <div class="suggestion-divider-title title">'+e.divider+"</div>"),n&&e.thumbnail&&(t+=' <div class="wd-suggestion-thumb">'+e.thumbnail+"</div>"),e.value&&(t=(t+=' <div class="wd-suggestion-content wd-set-mb reset-last-child">')+'<div class="wd-entities-title">'+e.value.replace(new RegExp(a,"gi"),"<strong>$1</strong>").replace(/&lt;(\/?strong)&gt;/g,"<$1>")+"</div>"),u&&e.sku&&(t+=' <p class="wd-suggestion-sku">'+e.sku+"</p>"),i&&e.price&&(t+=' <p class="price">'+e.price+"</p>"),e.value&&(t+=" </div>"),e.permalink&&(a="",e.value&&(a=`aria-label="${e.value.replace(/(<([^>]+)>)/gi,"")}"`),t+=` <a class="wd-fill" href="${e.permalink}" ${a}></a>`),e.products_not_found&&(t='<span class="wd-not-found-msg">'+e.value+"</span>"),w&&(e.no_results?f.addClass("wd-no-results"):f.removeClass("wd-no-results")),h||w||f.addClass("wd-opened"),(w?s.parent():s).parent().addClass("wd-searched"),t}}),a.addClass("wd-search-inited")),o.length&&"cat_selected"===e.type){""!==o.val()&&(t.product_cat=o.val());a=s.find('[type="text"]').devbridgeAutocomplete();let e=woodmart_settings.ajaxurl+"?"+new URLSearchParams(t).toString();g&&"yes"===g&&(e+="&include_cat_search="+g),a.setOptions({serviceUrl:e}),a.hide(),a.onValueChange()}}),woodmartThemeModule.$document.on("click",function(e){e=e.target;_(e).is(".wd-search-form")||_(e).parents().is(".wd-search-form")||_(e).is(".wd-search-full-screen")||_(e).parents().is(".wd-search-full-screen")||_(e).is(".wd-clear-search")||s.find('[type="text"]').devbridgeAutocomplete("hide")}),_(".wd-search-results > .wd-scroll-content").on("click",function(e){e.stopPropagation()})}),_(".wd-header-search.wd-display-dropdown > a").on("click",function(e){e.preventDefault()}))},_(document).ready(function(){woodmartThemeModule.ajaxSearch()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.ajaxSearch()})}(jQuery);
woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.clearSearch()}),jQuery.each(["frontend/element_ready/wd_search.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.clearSearch()})}),woodmartThemeModule.clearSearch=function(){function d(e,t){e.value.length?t.classList.remove("wd-hide"):t.classList.add("wd-hide")}document.querySelectorAll("form .wd-clear-search").forEach(function(r){var e=r.closest("form").querySelector("input");e&&(d(e,r),e.addEventListener("keyup",function(){d(e,r)})),r.addEventListener("click",function(e){e.preventDefault();var t,o,e=r.parentNode.querySelector("input"),e=(e.value="",d(e,r),e.closest(".wd-search-form.wd-display-form.wd-with-overlay")),e=e?e.querySelector(".wd-dropdown-results"):null;e&&(t=e.querySelector(".wd-search-history"),o=e.querySelector(".wd-search-requests"),e=e.querySelector(".wd-search-area"),t&&0!==t.childElementCount||o&&0!==o.childElementCount||e&&(0!==e.childElementCount||0!==e.textContent.length)||document.querySelectorAll(".wd-close-side").forEach(function(e){var t=new CustomEvent("wdCloseSideAction",{detail:["hide","click"]});e.dispatchEvent(t)}))})})},window.addEventListener("wdEventStarted",function(){woodmartThemeModule.clearSearch()});
!function(i){woodmartThemeModule.menuOverlay=function(){var e=".wd-header-nav.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-hover, .wd-header-cats.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-hover, .wd-sticky-nav:not(.wd-opened), .wd-header-cats.wd-with-overlay.wd-event-hover, .wd-header-my-account.wd-with-overlay, .wd-header-cart.wd-with-overlay, .wd-header-search.wd-display-dropdown.wd-with-overlay",a="",w=i(".wd-close-side");woodmartThemeModule.$document.on("mouseleave",e,function(){i(this).parents(".wd-header-cats.wd-with-overlay.wd-event-click.wd-opened").length||w.trigger("wdCloseSideAction",["hide","hover","wd-location-header-sticky wd-location-header wd-location-header-cats wd-location-sticky-nav"])}),woodmartThemeModule.$document.on("mouseenter mousemove",e,function(){var e,d,o,t,a,n=i(this);w.hasClass("wd-close-side-opened")||woodmartThemeModule.$window.width()<768||(e=n.parents(".whb-header").length,d=n.parents(".whb-clone").length,o=n.hasClass("wd-sticky-nav"),t=n.parents(".wd-header-cats").length,a="",e?(a=n.parents(".whb-sticked").length?"wd-location-header-sticky":"wd-location-header",t&&(a+=" wd-location-header-cats")):d?a="wd-location-header-sticky":o&&(a="wd-location-sticky-nav"),w.trigger("wdCloseSideAction",["show","hover",a]))}),woodmartThemeModule.$document.on("click",".wd-header-nav.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-click, .wd-header-cats.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-click, .wd-header-cats.wd-with-overlay.wd-event-click, .wd-search-form.wd-with-overlay .wd-search-cat",function(e){var d=i(this);d.parents(".wd-header-cats.wd-with-overlay.wd-event-click.wd-opened").length||d.parents(".wd-header-cats.wd-with-overlay.wd-event-hover").length||setTimeout(function(){var e=d.hasClass("wd-opened")?"show":"hide";w.trigger("wdCloseSideAction",[e,"click"])})}),woodmartThemeModule.$document.on("click touchstart",".wd-close-side.wd-location-header",function(){i(this).removeClass("wd-location-header wd-close-side-opened")}),w.on("wdCloseSideAction",function(e,d,o,t="wd-location-header"){"hover"===o&&"click"===a||(a="click"===o&&"hide"===d?"":o,"show"===d?w.addClass("wd-close-side-opened").addClass(t):w.removeClass("wd-close-side-opened").removeClass(t))})},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.menuOverlay()})})}(jQuery);
!function(w){woodmartThemeModule.$document.on("wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdBackHistory wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.updateWishlistButtonState()}),woodmartThemeModule.wishlist=function(){var i="woodmart_wishlist_count",a="woodmart_wishlist_products";if(woodmart_settings.is_multisite&&(i+="_"+woodmart_settings.current_blog_id,a+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies){var t=Cookies.get(i),e=0;if(void 0!==t)try{e=JSON.parse(t)}catch(t){console.log("cant parse cookies json")}void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded||n(e),woodmartThemeModule.$body.on("click",".wd-wishlist-btn a",function(t){var e,o,s=w(this),t=(t.preventDefault(),s.data("product-id")),d=w(`.wd-wishlist-btn a[data-product-id='${t}']`),s=s.data("key");woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies?(d.addClass("loading"),!d.hasClass("added")&&void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded&&"disable"!==woodmart_settings.wishlist_show_popup&&woodmartThemeModule.$body.hasClass("logged-in")?woodmartThemeModule.$document.trigger("wdShowWishlistGroupPopup",[t,s]):d.hasClass("added")?w.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_wishlist",product_id:t,key:woodmart_settings.wishlist_page_nonce},dataType:"json",method:"GET",success:function(t){void 0!==t.count&&n(t.count),t.fragments&&(woodmartThemeModule.$document.trigger("wdWishlistSaveFragments",[t.fragments,t.hash]),w.each(t.fragments,function(e,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(t,function(t){w(e).replaceWith(t)})})),c(d,!1)},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading")}}):r(t,"",s)):(s=!0,e={},void 0!==(o=Cookies.get(a))&&o&&(o=JSON.parse(o),Object.keys(o).length)&&(e=o),d.hasClass("added")&&void 0!==e[t]?(s=!1,delete e[t]):e[t]={product_id:t},n(o=Object.keys(e).length),Cookies.set(a,JSON.stringify(e),{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),Cookies.set(i,o,{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),c(d,s))}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove",function(t){t.preventDefault();var e,o=w(this),t="";o.parents(".wd-wishlist-group").length&&(t=o.parents(".wd-wishlist-group").data("group-id")),o.addClass("loading"),woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies||1===o.parents(".wd-products").find(".wd-product").length?l(o.data("product-id"),t,o.parents(".wd-products"),function(){o.removeClass("loading")}):(o.parents(".wd-product").remove(),t={},void 0!==(e=Cookies.get(a))&&e&&(t=JSON.parse(e),Object.keys(t).length)&&delete t[o.data("product-id")],n(e=Object.keys(t).length),Cookies.set(a,JSON.stringify(t),{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),Cookies.set(i,e,{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-checkbox",function(t){var e=w(this),o=e.parents(".wd-product"),e=e.parents(".wd-products-element").siblings(".wd-wishlist-bulk-action"),s=e.find(".wd-wishlist-select-all");o.toggleClass("wd-current-product"),s.hasClass("wd-selected")&&e.hasClass("wd-visible")&&!o.hasClass("wd-current-product")&&s.removeClass("wd-selected"),o.siblings(".product").length===o.siblings(".wd-current-product").length&&o.hasClass("wd-current-product")&&s.addClass("wd-selected"),o.siblings(".wd-current-product").length||!e.hasClass("wd-visible")||o.hasClass("wd-current-product")?e.addClass("wd-visible"):e.removeClass("wd-visible")}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove-action > a",function(t){t.preventDefault();var e=w(this),t=e.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products"),o=t.find(".wd-current-product"),s=[],d="";o.length&&confirm(woodmart_settings.wishlist_remove_notice)&&(e.addClass("loading"),e.parents(".wd-wishlist-group").length&&(d=e.parents(".wd-wishlist-group").data("group-id")),o.each(function(){s.push(w(this).data("id"))}),l(s,d,t,function(){e.parents(".wd-wishlist-bulk-action").removeClass("wd-visible"),e.removeClass("loading")}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-select-all > a",function(t){t.preventDefault();var t=w(this).parent(),e=t.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products");t.hasClass("wd-selected")?(e.find(".product").removeClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!1),t.removeClass("wd-selected"),t.parents(".wd-wishlist-bulk-action").removeClass("wd-visible")):(e.find(".product").addClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!0),t.addClass("wd-selected"))}),woodmartThemeModule.$document.on("wdAddProductToWishlist",function(t,e,o,s,d){r(e,o,s,d)}),woodmartThemeModule.$document.on("wdRemoveProductToWishlist",function(t,e,o,s,d){l(e,o,s,d)}),woodmartThemeModule.$document.on("wdUpdateWishlistContent",function(t,e){var o;e=e,o=w(".wd-wishlist-content"),n(e.count),0<o.length&&!o.hasClass("wd-wishlist-preview")&&woodmartThemeModule.removeDuplicatedStylesFromHTML(e.wishlist_content,function(t){o.replaceWith(t),woodmartThemeModule.$document.trigger("wdUpdateWishlist")})})}function n(t){var e=w(".wd-header-wishlist");0<e.length&&e.find(".wd-tools-count").text(t)}function r(t,e,o,s=""){var d=w(".wd-wishlist-btn a[data-product-id="+t+"]");w.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_wishlist",product_id:t,group:e,key:o},dataType:"json",method:"GET",success:function(t){t?(t.count&&n(t.count),t.fragments&&(woodmartThemeModule.$document.trigger("wdWishlistSaveFragments",[t.fragments,t.hash]),w.each(t.fragments,function(e,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(t,function(t){w(e).replaceWith(t)})})),c(d)):console.log("something wrong loading wishlist data ",t),s&&s()},error:function(){console.log("We cant add to wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading")}})}function l(t,e,i,a=""){var o="";i&&void 0!==i.data("atts")&&((o=i.data("atts")).ajax_page=i.attr("data-paged")),w.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_wishlist",product_id:t,group_id:e,key:woodmart_settings.wishlist_page_nonce,atts:o},dataType:"json",method:"GET",success:function(t){var e,o,s,d;t.wishlist_content?(o=(e=i.parents(".wd-products-element")).parents(".wd-wishlist-content"),n(t.count),s=t,(d=e).length&&!w(".wd-wishlist-content").hasClass("wd-wishlist-preview")&&woodmartThemeModule.removeDuplicatedStylesFromHTML(s.wishlist_content,function(t){d.replaceWith(t),woodmartThemeModule.$document.trigger("wdUpdateWishlist")}),setTimeout(function(){var t=w(".wd-wishlist-content .wd-pagination").find("a.page-numbers");t.length&&t.each(function(){var t=w(this),e=t.attr("href").split("product-page=")[1],e=parseInt(e);t.attr("href",window.location.origin+window.location.pathname+"?product-page="+e)})},500),t.hasOwnProperty("count")&&0===t.count&&o.find(".wd-wishlist-head, .wd-wishlist-bulk-action").remove()):console.log("something wrong loading wishlist data ",t),t.fragments&&woodmartThemeModule.$document.trigger("wdUpdateWishlistFragments",[t.fragments,t.hash]),a&&a()},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")}})}function c(t,e=!0){var o=woodmart_settings.wishlist_remove_button_text;e||(o=woodmart_settings.wishlist_add_button_text),(0<t.find(".wd-action-text").length?t.find(".wd-action-text"):t).text(o),e?t.addClass("added"):t.removeClass("added"),woodmartThemeModule.$document.trigger("added_to_wishlist"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdUpdateTooltip",t)})}},woodmartThemeModule.updateWishlistButtonState=function(){var t,e;void 0===woodmart_settings.wishlist_save_button_state||"yes"!==woodmart_settings.wishlist_save_button_state||"undefined"==typeof Cookies||woodmartThemeModule.$body.hasClass("logged-in")||(e="woodmart_wishlist_products",t={},woodmart_settings.is_multisite&&(e+="_"+woodmart_settings.current_blog_id),(t=void 0!==(e=Cookies.get(e))&&e?Object.values(JSON.parse(e)):t).length&&w.each(t,function(t,e){var o,e=w(".wd-wishlist-btn a[data-product-id="+e.product_id+"]");e.length&&!e.hasClass("added")&&(e.addClass("added"),o=woodmart_settings.wishlist_remove_button_text,(0<e.find(".wd-action-text").length?e.find(".wd-action-text"):e).text(o))}))},w(document).ready(function(){woodmartThemeModule.wishlist(),woodmartThemeModule.updateWishlistButtonState()})}(jQuery);
!function(m){woodmartThemeModule.miniCartQuantity=function(){var i;woodmartThemeModule.$document.on("change input",".woocommerce-mini-cart .quantity .qty",function(){var t=m(this),e=t.val(),n=t.parents(".woocommerce-mini-cart-item").data("key"),a=t.attr("max"),o=woodmart_settings.cart_hash_key,r=woodmart_settings.fragment_name;clearTimeout(i),parseInt(e)>parseInt(a)&&(e=a),i=setTimeout(function(){t.parents(".mini_cart_item").addClass("wd-loading"),m.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_cart_item",item_id:n,qty:e},success:function(i){i&&i.fragments&&(m.each(i.fragments,function(t,e){var a,o,r;m(t).hasClass("widget_shopping_cart_content")?(a=m(e).find('.woocommerce-mini-cart-item[data-key="'+n+'"]'),o=m(e).find(".shopping-cart-widget-footer"),r=m(t).find('.woocommerce-mini-cart-item[data-key="'+n+'"]'),i.cart_hash&&a.length?(r.replaceWith(a),m(".shopping-cart-widget-footer").replaceWith(o)):m(t).replaceWith(e)):m(t.replace("_wd","")).replaceWith(e)}),woodmartThemeModule.supports_html5_storage&&(sessionStorage.setItem(r,JSON.stringify(i.fragments)),localStorage.setItem(o,i.cart_hash),sessionStorage.setItem(o,i.cart_hash),i.cart_hash)&&sessionStorage.setItem("wc_cart_created",(new Date).getTime()),woodmartThemeModule.$body.trigger("wc_fragments_refreshed"))},dataType:"json",method:"GET"})},500)})},m(document).ready(function(){woodmartThemeModule.miniCartQuantity()})}(jQuery);
!function(l){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||Object.defineProperty(String.prototype,"getDecimals",{value:function(){var e=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},enumerable:!1}),woodmartThemeModule.$document.on("click",".plus, .minus",function(){var e=l(this),t=e.closest(".quantity").find(".qty"),a=parseFloat(t.val()),o=parseFloat(t.attr("max")),r=parseFloat(t.attr("min")),i=t.attr("step");a&&""!==a&&"NaN"!==a||(a=0),""!==o&&"NaN"!==o||(o=""),""!==r&&"NaN"!==r||(r=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!=parseFloat(i)||(i="1"),e.is(".plus")?o&&(a+parseFloat(i)).toFixed(i.getDecimals())>=o?t.val(o):t.val((a+parseFloat(i)).toFixed(i.getDecimals())):r&&(a-parseFloat(i)).toFixed(i.getDecimals())<=r?t.val(r):0<a&&t.val((a-parseFloat(i)).toFixed(i.getDecimals())),t.trigger("change")})},l(document).ready(function(){woodmartThemeModule.woocommerceQuantity()})}(jQuery);
!function(e){woodmartThemeModule.onRemoveFromCart=function(){"no"!==woodmart_settings.woocommerce_ajax_add_to_cart&&woodmartThemeModule.$document.on("click",".widget_shopping_cart .remove",function(o){o.preventDefault(),e(this).parent().addClass("removing-process")})},e(document).ready(function(){woodmartThemeModule.onRemoveFromCart()})}(jQuery);
!function(t){woodmartThemeModule.headerCategoriesMenu=function(){var e,n,o,d,a,s,i;1024<woodmartThemeModule.windowWidth||(e=t(".wd-header-cats"),n=e.find(".categories-menu-dropdown"),o=e.find(".menu-item-has-children"),e.find(".menu-opener"),d=200,o.find("> a").before('<span class="drop-category"></span>'),n.on("click",".drop-category",function(){var e=t(this),n=e.parent().find("> .wd-dropdown-menu, >.sub-sub-menu");n.hasClass("child-open")?(e.removeClass("act-icon"),n.slideUp(d).removeClass("child-open")):(e.addClass("act-icon"),n.slideDown(d).addClass("child-open"))}),e.on("click",".menu-opener",function(e){e.preventDefault(),(a()?i:s)()}),n.on("click","a",function(){i(),n.stop().attr("style","")}),a=function(){return n.hasClass("categories-opened")},s=function(){n.addClass("categories-opened").stop().slideDown(d)},i=function(){n.removeClass("categories-opened").stop().slideUp(d)})},t(document).ready(function(){woodmartThemeModule.headerCategoriesMenu()})}(jQuery);
(t=>{t.fn.bsf_appear=function(p,e){let h=t.extend({data:void 0,one:!0,accX:0,accY:0},e);return this.each(function(){let l=t(this);if(l.bsf_appeared=!1,p){let i=t(window),a=function(){var e,a,p,t,f,r,s,n,c,o;l.is(":visible")&&(e=i.scrollLeft(),a=i.scrollTop(),p=(t=l.offset()).left,t=t.top,f=h.accX,r=h.accY,s=l.height(),n=i.height(),c=l.width(),o=i.width(),a<=t+s+r)&&t<=a+n+r&&e<=p+c+f&&p<=e+o+f?l.bsf_appeared||l.trigger("bsf_appear",h.data):l.bsf_appeared=!1};var e=function(){var e;l.bsf_appeared=!0,h.one&&(i.off("scroll",a),0<=(e=t.inArray(a,t.fn.bsf_appear.checks)))&&t.fn.bsf_appear.checks.splice(e,1),p.apply(this,arguments)};h.one?l.one("bsf_appear",h.data,e):l.bind("bsf_appear",h.data,e),i.on("scroll",a),t.fn.bsf_appear.checks.push(a),a()}else l.trigger("bsf_appear",h.data)})},t.extend(t.fn.bsf_appear,{checks:[],timeout:null,checkAll(){let e=t.fn.bsf_appear.checks.length;if(0<e)for(;e--;)t.fn.bsf_appear.checks[e]()},run(){t.fn.bsf_appear.timeout&&clearTimeout(t.fn.bsf_appear.timeout),t.fn.bsf_appear.timeout=setTimeout(t.fn.bsf_appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,a){let p=t.fn[a];p&&(t.fn[a]=function(){var e=p.apply(this,arguments);return t.fn.bsf_appear.run(),e})})})(jQuery);
(B=>{function N(){return!!jQuery("body").hasClass("rtl")}jQuery(document).ready(function(){function E(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||jQuery(".enable-on-viewport").each(function(t,e){var a=jQuery(this).isVdoOnScreen();jQuery(this).hasClass("hosted-video")&&!jQuery(this).hasClass("override-controls")&&(a?(jQuery(this)[0].play(),jQuery(this).parent().parent().parent().find(".video-controls").attr("data-action","play"),jQuery(this).parent().parent().parent().find(".video-controls").html('<i class="ult-vid-cntrlpause"></i>')):(jQuery(this)[0].pause(),jQuery(this).parent().parent().parent().find(".video-controls").attr("data-action","pause"),jQuery(this).parent().parent().parent().find(".video-controls").html('<i class="ult-vid-cntrlplay"></i>')))})}function W(a,r){var o=a.data("seperator");let s=a.data("seperator-type"),i=a.data("seperator-shape-size");var l=a.data("seperator-background-color"),d=a.data("seperator-border"),p=a.data("seperator-border-color"),n=a.data("seperator-border-width"),c=a.data("seperator-svg-height"),u=a.data("seperator-full-width");let v=a.data("seperator-position"),h=(void 0!==v&&""!=v||(v="top_seperator"),a.data("icon")),_=(h=void 0===h?"":'<div class="separator-icon">'+h+"</div>",seperator_class=seperator_border_css=seperator_border_line_css=seperator_css="");if(void 0!==o&&"true"==o.toString()){o=shape_css=svg=inner_html=seperator_css=shape_css="";let t=!1;var b,g="uvc-seperator-"+Math.floor(9999999999999*Math.random()),m=(void 0!==i&&""!=i&&"undefined"!=i||(i=0),(i=parseInt(i))/2);let e=0;if("triangle_seperator"==s)seperator_class="ult-trinalge-seperator";else if("circle_seperator"==s)seperator_class="ult-circle-seperator";else if("diagonal_seperator"==s)seperator_class="ult-double-diagonal";else if("triangle_svg_seperator"==s)seperator_class="ult-svg-triangle",svg='<svg class="uvc-svg-triangle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 0.156661 0.1"><polygon points="0.156661,3.93701e-006 0.156661,0.000429134 0.117665,0.05 0.0783307,0.0999961 0.0389961,0.05 -0,0.000429134 -0,3.93701e-006 0.0783307,3.93701e-006 "/></svg>',t=!0;else if("circle_svg_seperator"==s)seperator_class="ult-svg-circle",svg='<svg class="uvc-svg-circle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 0.2 0.1"><path d="M0.200004 0c-3.93701e-006,0.0552205 -0.0447795,0.1 -0.100004,0.1 -0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1l0.200004 0z"/></svg>',t=!0;else if("xlarge_triangle_seperator"==s)seperator_class="ult-xlarge-triangle",svg='<svg class="uvc-x-large-triangle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil0" d="M-0 0.333331l4.66666 0 0 -3.93701e-006 -2.33333 0 -2.33333 0 0 3.93701e-006zm0 -0.333331l4.66666 0 0 0.166661 -4.66666 0 0 -0.166661zm4.66666 0.332618l0 -0.165953 -4.66666 0 0 0.165953 1.16162 -0.0826181 1.17171 -0.0833228 1.17171 0.0833228 1.16162 0.0826181z"/></svg>',t=!0;else if("xlarge_triangle_left_seperator"==s)seperator_class="ult-xlarge-triangle-left",svg='<svg class="uvc-x-large-triangle-left" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 2000 90" preserveAspectRatio="none"><polygon xmlns="http://www.w3.org/2000/svg" points="535.084,64.886 0,0 0,90 2000,90 2000,0 "></polygon></svg>',t=!0;else if("xlarge_triangle_right_seperator"==s)seperator_class="ult-xlarge-triangle-right",svg='<svg class="uvc-x-large-triangle-right" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 2000 90" preserveAspectRatio="none"><polygon xmlns="http://www.w3.org/2000/svg" points="535.084,64.886 0,0 0,90 2000,90 2000,0 "></polygon></svg>',t=!0;else if("xlarge_circle_seperator"==s)seperator_class="ult-xlarge-circle",svg='<svg class="uvc-x-large-circle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil1" d="M4.66666 0l0 7.87402e-006 -3.93701e-006 0c0,0.0920315 -1.04489,0.166665 -2.33333,0.166665 -1.28844,0 -2.33333,-0.0746339 -2.33333,-0.166665l-3.93701e-006 0 0 -7.87402e-006 4.66666 0z"/></svg>',t=!0;else if("curve_up_seperator"==s)seperator_class="ult-curve-up-seperator",svg='<svg class="curve-up-inner-seperator uvc-curve-up-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil0" d="M-7.87402e-006 0.0148858l0.00234646 0c0.052689,0.0154094 0.554437,0.154539 1.51807,0.166524l0.267925 0c0.0227165,-0.00026378 0.0456102,-0.000582677 0.0687992,-0.001 1.1559,-0.0208465 2.34191,-0.147224 2.79148,-0.165524l0.0180591 0 0 0.166661 -7.87402e-006 0 0 0.151783 -4.66666 0 0 -0.151783 -7.87402e-006 0 0 -0.166661z"/></svg>',t=!0;else if("curve_down_seperator"==s)seperator_class="ult-curve-down-seperator",svg='<svg class="curve-down-inner-seperator uvc-curve-down-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil0" d="M-7.87402e-006 0.0148858l0.00234646 0c0.052689,0.0154094 0.554437,0.154539 1.51807,0.166524l0.267925 0c0.0227165,-0.00026378 0.0456102,-0.000582677 0.0687992,-0.001 1.1559,-0.0208465 2.34191,-0.147224 2.79148,-0.165524l0.0180591 0 0 0.166661 -7.87402e-006 0 0 0.151783 -4.66666 0 0 -0.151783 -7.87402e-006 0 0 -0.166661z"/></svg>',t=!0;else if("tilt_left_seperator"==s)seperator_class="ult-tilt-left-seperator",svg='<svg class="uvc-tilt-left-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4 0.266661" preserveAspectRatio="none"><polygon class="fil0" points="4,0 4,0.266661 -0,0.266661 "/></svg>',t=!0;else if("tilt_right_seperator"==s)seperator_class="ult-tilt-right-seperator",svg='<svg class="uvc-tilt-right-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4 0.266661" preserveAspectRatio="none"><polygon class="fil0" points="4,0 4,0.266661 -0,0.266661 "/></svg>',t=!0;else if("waves_seperator"==s)seperator_class="ult-wave-seperator",svg='<svg class="wave-inner-seperator uvc-wave-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 6 0.1" preserveAspectRatio="none"><path d="M0.199945 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c-0.0541102,0 -0.0981929,-0.0430079 -0.0999409,-0.0967008l0 0.0967008 0.0999409 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm2.00004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm-0.1 0.1l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm1.90004 -0.1c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.199945 0.00329921l0 0.0967008 -0.0999409 0c0.0541102,0 0.0981929,-0.0430079 0.0999409,-0.0967008z"/></svg>',t=!0;else if("clouds_seperator"==s)seperator_class="ult-cloud-seperator",svg='<svg class="cloud-inner-seperator uvc-cloud-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 2.23333 0.1" preserveAspectRatio="none"><path class="fil0" d="M2.23281 0.0372047c0,0 -0.0261929,-0.000389764 -0.0423307,-0.00584252 0,0 -0.0356181,0.0278268 -0.0865354,0.0212205 0,0 -0.0347835,-0.00524803 -0.0579094,-0.0283701 0,0 -0.0334252,0.0112677 -0.0773425,-0.00116929 0,0 -0.0590787,0.0524724 -0.141472,0.000779528 0,0 -0.0288189,0.0189291 -0.0762362,0.0111535 -0.00458268,0.0141024 -0.0150945,0.040122 -0.0656811,0.0432598 -0.0505866,0.0031378 -0.076126,-0.0226614 -0.0808425,-0.0308228 -0.00806299,0.000854331 -0.0819961,0.0186969 -0.111488,-0.022815 -0.0076378,0.0114843 -0.059185,0.0252598 -0.083563,-0.000385827 -0.0295945,0.0508661 -0.111996,0.0664843 -0.153752,0.019 -0.0179843,0.00227559 -0.0571181,0.00573622 -0.0732795,-0.0152953 -0.027748,0.0419646 -0.110602,0.0366654 -0.138701,0.00688189 0,0 -0.0771732,0.0395709 -0.116598,-0.0147677 0,0 -0.0497598,0.02 -0.0773346,-0.00166929 0,0 -0.0479646,0.0302756 -0.0998937,0.00944094 0,0 -0.0252638,0.0107874 -0.0839488,0.00884646 0,0 -0.046252,0.000775591 -0.0734567,-0.0237087 0,0 -0.046252,0.0101024 -0.0769567,-0.00116929 0,0 -0.0450827,0.0314843 -0.118543,0.0108858 0,0 -0.0715118,0.0609803 -0.144579,0.00423228 0,0 -0.0385787,0.00770079 -0.0646299,0.000102362 0,0 -0.0387559,0.0432205 -0.125039,0.0206811 0,0 -0.0324409,0.0181024 -0.0621457,0.0111063l-3.93701e-005 0.0412205 2.2323 0 0 -0.0627953z"/></svg>',t=!0;else if("multi_triangle_seperator"==s){seperator_class="ult-multi-trianle";f=(f=l).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,a,r){return e+e+a+a+r+r});var f=(f=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(f))?{r:parseInt(f[1],16),g:parseInt(f[2],16),b:parseInt(f[3],16)}:null;svg='<svg class="uvc-multi-triangle-svg" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none" width="100%" height="'+c+'">\t\t\t\t            <path class="large left" d="M0 0 L50 50 L0 100" fill="rgba('+f.r+","+f.g+","+f.b+', .1)"></path>\t\t\t\t            <path class="large right" d="M100 0 L50 50 L100 100" fill="rgba('+f.r+","+f.g+","+f.b+', .1)"></path>\t\t\t\t            <path class="medium left" d="M0 100 L50 50 L0 33.3" fill="rgba('+f.r+","+f.g+","+f.b+', .3)"></path>\t\t\t\t            <path class="medium right" d="M100 100 L50 50 L100 33.3" fill="rgba('+f.r+","+f.g+","+f.b+', .3)"></path>\t\t\t\t            <path class="small left" d="M0 100 L50 50 L0 66.6" fill="rgba('+f.r+","+f.g+","+f.b+', .5)"></path>\t\t\t\t            <path class="small right" d="M100 100 L50 50 L100 66.6" fill="rgba('+f.r+","+f.g+","+f.b+', .5)"></path>\t\t\t\t            <path d="M0 99.9 L50 49.9 L100 99.9 L0 99.9" fill="rgba('+f.r+","+f.g+","+f.b+', 1)"></path>\t\t\t\t            <path d="M48 52 L50 49 L52 52 L48 52" fill="rgba('+f.r+","+f.g+","+f.b+', 1)"></path>\t\t\t\t        </svg>',t=!0}else if("round_split_seperator"==s){let t=temp_border_before=temp_border_after=temp_border_line="";temp_padding=0,seperator_class="ult-rounded-split-seperator-wrapper";var y,w,x,j,Q,z,k,C,M,I,P,A,L;jQuery(a).outerHeight();0!=i&&(f=parseInt(jQuery(a).css("padding-bottom")),jQuery(a).css({"padding-bottom":i+"px"}),0==f)&&(temp_padding=i),"top_seperator"==v?(Q="top-split-seperator",y="0px",w="auto",x="border-radius: 0 0 "+i+"px 0 !important;",j="border-radius: 0 0 0 "+i+"px !important;"):"bottom_seperator"==v?(Q="bottom-split-seperator",y="auto",w="0px",x="border-radius: 0 "+i+"px 0 0 !important;",j="border-radius: "+i+"px 0 0 0 !important;"):(Q="top-bottom-split-seperator",C=k="auto",M=z="0px",I="border-radius: 0 0 "+i+"px 0 !important;",P="border-radius: 0 0 0 "+i+"px !important;",A="border-radius: 0 "+i+"px 0 0 !important;",L="border-radius: "+i+"px 0 0 0 !important;"),inner_html='<div class="ult-rounded-split-seperator '+Q+'"></div>',"none"!=d&&(temp_border_line=n+"px "+d+" "+p,temp_border_before="border-top: "+temp_border_line+"; border-right: "+temp_border_line+";",temp_border_after="border-top: "+temp_border_line+"; border-left: "+temp_border_line+";"),"top_seperator"==v||"bottom_seperator"==v?(t="<style>."+g+" .ult-rounded-split-seperator."+Q+":before { background-color:"+l+"; height:"+i+"px !important; top:"+y+"; bottom:"+w+"; "+temp_border_before+" "+x+" } ."+g+" .ult-rounded-split-seperator."+Q+":after { background-color:"+l+"; left: 50%; height:"+i+"px !important; top:"+y+"; bottom:"+w+"; "+temp_border_after+" "+j+" }</style>",jQuery("head").append(t)):(t="<style>."+g+".top_seperator .ult-rounded-split-seperator:before { background-color:"+l+"; height:"+i+"px !important; top:"+z+"; bottom:"+k+"; "+temp_border_before+" "+I+" } ."+g+".top_seperator .ult-rounded-split-seperator:after { background-color:"+l+"; left: 50%; height:"+i+"px !important; top:"+z+"; bottom:"+k+"; "+temp_border_after+" "+P+" }</style>",temp_css_bottom="<style>."+g+".bottom_seperator .ult-rounded-split-seperator:before { background-color:"+l+"; height:"+i+"px !important; top:"+C+"; bottom:"+M+"; "+temp_border_before+" "+A+" } ."+g+".bottom_seperator .ult-rounded-split-seperator:after { background-color:"+l+"; left: 50%; height:"+i+"px !important; top:"+C+"; bottom:"+M+"; "+temp_border_after+" "+L+" }</style>",jQuery("head").append(t+temp_css_bottom))}else seperator_class="ult-no-shape-seperator";void 0!==n&&""!=n&&0!=n&&(e=parseInt(n)),shape_css='content: "";width:'+i+"px; height:"+i+"px; bottom: -"+(m+e)+"px;",""!=l&&(shape_css+="background-color:"+l+";"),"none"!=d&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==t&&(seperator_border_line_css=n+"px "+d+" "+p,shape_css+="border-bottom:"+seperator_border_line_css+"; border-right:"+seperator_border_line_css+";",seperator_css+="border-bottom:"+seperator_border_line_css+";",_="bottom:"+n+"px !important"),"ult-no-shape-seperator"!=seperator_class&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==t&&(o="<style>."+g+" .ult-main-seperator-inner:after { "+shape_css+" }</style>",jQuery("head").append(o)),1==t&&(inner_html=svg),"top_bottom_seperator"==v?(b='<div class="ult-vc-seperator top_seperator '+seperator_class+" "+g+'" data-full-width="'+u+'" data-border="'+d+'" data-border-width="'+n+'"><div class="ult-main-seperator-inner">'+inner_html+"</div>"+h+"</div>",b+='<div class="ult-vc-seperator bottom_seperator '+seperator_class+" "+g+'" data-full-width="'+u+'" data-border="'+d+'" data-border-width="'+n+'"><div class="ult-main-seperator-inner">'+inner_html+"</div>"+h+"</div>"):b='<div class="ult-vc-seperator '+v+" "+seperator_class+" "+g+'" data-full-width="'+u+'" data-border="'+d+'" data-border-width="'+n+'"><div class="ult-main-seperator-inner">'+inner_html+"</div>"+h+"</div>",r.prepend(b),seperator_css="<style>."+g+" .ult-main-seperator-inner { "+seperator_css+" }</style>",""!=_&&(_="<style>."+g+" .ult-main-seperator-inner { "+_+" }</style>",seperator_css+=_),""!=h&&(a=c/2,"none_seperator"==s||"circle_svg_seperator"==s||"triangle_svg_seperator"==s?seperator_css+="<style>."+g+" .separator-icon { -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }</style>":seperator_css+="<style>."+g+".top_seperator .separator-icon { -webkit-transform: translate(-50%, calc(-50% + "+a+"px)); -moz-transform: translate(-50%, calc(-50% + "+a+"px)); -ms-transform: translate(-50%, calc(-50% + "+a+"px)); -o-transform: translate(-50%, calc(-50% + "+a+"px)); transform: translate(-50%, calc(-50% + "+a+"px)); } ."+g+".bottom_seperator .separator-icon { -webkit-transform: translate(-50%, calc(-50% - "+a+"px)); -moz-transform: translate(-50%, calc(-50% - "+a+"px)); -ms-transform: translate(-50%, calc(-50% - "+a+"px)); -o-transform: translate(-50%, calc(-50% - "+a+"px)); transform: translate(-50%, calc(-50% - "+a+"px)); }</style>"),1==t&&(jQuery("."+g).find("svg").css("height",c),setTimeout(function(){"multi_triangle_seperator"==s&&jQuery(".ult-multi-trianle").each(function(t,e){var a=B(e).find("svg").height();B(e).hasClass("top_seperator")||B(e).hasClass("bottom_seperator")&&B(e).css("bottom",a-1)})},300)),jQuery("head").append(seperator_css)}}/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&B("html").addClass("ult-remove-fixed-background"),jQuery(window).scroll(function(){E()}),jQuery(window).on("load",function(){E()}),jQuery.fn.isVdoOnScreen=function(){var t=jQuery(window),e={top:t.scrollTop(),left:t.scrollLeft()},t=(e.right=e.left+t.width(),e.bottom=e.top+t.height()-200,this.parent().offset());return t.right=t.left+this.parent().outerWidth(),t.bottom=t.top+this.parent().outerHeight()-300,!(e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)},jQuery.fn.ultimate_video_bg=function(T){return jQuery(this).each(function(){let r=jQuery(this),t=r.data("ultimate-video");var e=r.data("ultimate-video2");let a=r.data("ultimate-video-muted"),o=r.data("ultimate-video-loop");var s=r.data("ultimate-video-autoplay"),i=r.data("ultimate-video-poster");let l=r.data("bg-override");var d=r.data("start-time");let p=r.data("stop-time");var n=r.data("upb-bg-animation"),c=r.data("overlay"),u=r.data("overlay-color"),v=r.data("overlay-pattern"),h=r.data("overlay-pattern-opacity");let _=r.data("overlay-pattern-size");var b=r.data("overlay-pattern-attachment"),g=r.data("viewport-video"),m=r.data("controls"),f=r.data("controls-color"),y=r.data("fadeout"),w=r.data("fadeout-percentage"),x=r.data("parallax-content"),S=r.data("parallax-content-sense"),R=r.data("row-effect-mobile-disable"),j=r.data("hide-row"),Q=r.data("rtl"),H=r.data("video_fixer");let z="",k="",C=r.data("custom-vc-row");r.data("vc");let M=r.data("theme-support"),I=r.data("is_old_vc"),P=(void 0!==C&&""!==C||(C="wpb_row"),void 0===I&&(I=!1),void 0===M&&(M="disable"),r.data("multi-color-overlay")&&(z=r.data("multi-color-overlay"),k=r.data("multi-color-overlay-opacity")),overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="");void 0!==c&&"true"===c.toString()&&(""!=v&&(""!=_&&(_="background-size:"+_+"px;"),void 0!==b&&""!=b&&(overlay_pattern_attachment_css="background-attachment:"+b+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+v+"); opacity:"+h+"; "+_+"; "+overlay_pattern_attachment_css+'"></div>'),""!=u&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+u+';"></div>'),""!=z&&(overlay_multi_color_html='<div class="upb_bg_overlay '+z+'" style="opacity:'+k+';"></div>'),P=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),p=0!=p?p:"",(c=1==I||"enable"==M?(r.prev().is("p")||r.prev().is("style")?r.prev():r).prev():r.prevAll("."+C+":first")).css("position","relative");var A,b=c.attr("class"),v=r;r=c;{let t,e,a;if(a=r,resize_selector=a.find(".upb_video-bg"),"full"==l&&(a=jQuery("body")),"ex-full"==l&&(a=jQuery("html")),!isNaN(l))for(let t=0;t<l&&"HTML"!=a.prop("tagName");t++)a=a.parent();e=resize_selector.parents("upb_video_class").outerHeight(),t=a.outerWidth(),"browser_size"==l&&(e=jQuery(window).height(),t=jQuery(window).width(),a.css("min-height",e+"px")),resize_selector.css({"min-height":e+"px","min-width":t+"px"}),a.offset()&&(a.offset().left,resize_selector.offset())&&resize_selector.offset().left;var L,h=t,u=e,c=resize_selector.find(".upb_vimeo_iframe");youvideoplayer=resize_selector.find(".upb_utube_iframe"),embeddedvideoplayer=resize_selector.find(".upb_video-src"),c&&(h/(16/9)<u?(L=Math.ceil(u*(16/9)),c.width(L).height(u).css({left:(h-L)/2,top:0})):(L=Math.ceil(h/(16/9)),c.width(h).height(L).css({left:0,top:(u-L)/2}))),embeddedvideoplayer&&(h/(16/9)<resize_selector.height()?(embeddedvideoplayer.css("width","auto"),embeddedvideoplayer.css("height","100%")):(embeddedvideoplayer.css("width","100%"),embeddedvideoplayer.css("height","auto")))}""!=j&&(r.addClass("ult-vc-hide-row"),r.attr("data-hide-row",j)),r.attr("data-rtl",Q),r.addClass("upb_video_class"),r.attr("data-row-effect-mobile-disable",R),"fadeout_row_value"==y&&(r.addClass("vc-row-fade"),r.attr("data-fadeout-percentage",w)),r.attr("data-upb_br_animation",n),t&&(-1!=t.indexOf("youtube.com")?T="youtube":-1!=t.indexOf("vimeo.com")&&(T="vimeo"));let B="",O=("display_control"==m&&(c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(A="ult-vid-cntrlplay","pause"):(A="ult-vid-cntrlpause","play"),B='<span class="video-controls" data-action="'+c+'" style="color:'+f+'"><i class="'+A+'"></i></span>'),"browser_size"==l&&(r.wrapInner('<div class="upb_video-text-wrapper"><div class="upb_video-text"></div></div>'),r.find(".upb_video-text-wrapper").find(".upb_video-text").addClass(b)),"parallax_content_value"==x&&(r.addClass("vc-row-translate"),r.attr("data-parallax-content-sense",S),r.wrapInner('<div class="vc-row-translate-wrapper '+b+'"></div>'),u=r.css("padding-top"),L=r.css("padding-bottom"),r.find(".vc-row-translate-wrapper").css({"padding-top":u,"padding-bottom":L}),r[0].style.setProperty("padding-top","0px","important"),r[0].style.setProperty("padding-bottom","0px","important")),"");if("true"==H.toString()&&(O="uvc-video-fixer"),"youtube"==T||"vimeo"==T?r.prepend('<div class="upb_video-wrapper '+O+'"><div class="upb_video-bg utube" data-rtl="'+Q+'" data-bg-override="'+l+'" data-row="'+C+'" data-theme-support="'+M+'">'+P+"</div></div>"):r.prepend(' <div class="upb_video-wrapper"><div class="upb_video-bg" data-bg-override="'+l+'" data-rtl="'+Q+'" data-row="'+C+'" data-theme-support="'+M+'"><video class="upb_video-src"></video>'+B+P+"</div></div>"),W(v,r),v.remove(),"youtube"==T){t=t.substring(t.indexOf("watch?v=")+8,t.indexOf("watch?v=")+19);var N=r.find(".upb_video-bg");"loop"==o&&(o=!0),"muted"==a&&(a=!0),N.attr("data-vdo",t),N.attr("data-loop",o),N.attr("data-poster",i),N.attr("data-muted",a),N.attr("data-start",d),N.attr("data-stop",p),!0===g&&(N.addClass("enable-on-viewport"),N.addClass("youtube-video"),E())}else if("vimeo"==T)t=t.substring(t.indexOf("vimeo.com/")+10,t.indexOf("vimeo.com/")+18),(N=r.find(".upb_video-bg")).html('<iframe class="upb_vimeo_iframe" src="https://player.vimeo.com/video/'+t+'?portrait=0&amp;byline=0&amp;title=0&amp;badge=0&amp;loop=0&amp;autoplay=1&amp;api=1&amp;rel=0&amp;" height="1600" width="900" frameborder=""></iframe>');else{N=r.find(".upb_video-src");if(hosted_wrapper=N.parent(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"display_control"!=m)"display_control"!=m&&(""!=i&&N.parent().find(".video-controls").hide(),N.remove());else{if(jQuery("<source/>",{type:"video/mp4",src:t}).appendTo(N),void 0!==e&&""!==e){let t="";e.match(/.ogg/i)?t="video/ogg":e.match(/.webm/i)&&(t="video/webm"),""!=t&&jQuery("<source/>",{type:t,src:e}).appendTo(N)}"muted"==a&&N.attr({"data-mute":"muted"}),"loop"==o&&N.attr({loop:o}),N.attr({preload:"auto"}),!0===g?(N.addClass("enable-on-viewport"),N.addClass("hosted-video"),E()):"autoplay"==s&&N.attr({autoplay:s})}}""!=i&&(N.is(".utube")?N:hosted_wrapper).css({"background-image":"url("+i+")"}),jQuery(".upb_video-src").each(function(t,e){let a=jQuery(e).attr("data-mute");"muted"===(a=void 0===a?!1:a)&&(jQuery(e)[0].muted="muted")})}),this},jQuery.fn.ultimate_bg_shift=function(){return jQuery(this).each(function(){let s=jQuery(this);var t=s.data("ultimate-bg"),e=s.data("ultimate-bg-style"),a=s.prev().css("background-color"),r=s.data("bg-img-repeat"),o=s.data("bg-img-size"),i=s.data("bg-img-position"),l=s.data("parallx_sense");let d=s.data("bg-override");var p=s.data("bg_img_attach"),n=s.data("upb-bg-animation"),c=s.data("overlay"),u=s.data("overlay-color"),v=s.data("overlay-pattern"),h=s.data("overlay-pattern-opacity");let _=s.data("overlay-pattern-size");var b=s.data("overlay-pattern-attachment"),g=s.data("fadeout"),m=s.data("fadeout-percentage"),f=s.data("parallax-content"),y=s.data("parallax-content-sense"),w=s.data("bg-animation"),x=s.data("bg-animation-type"),j=s.data("animation-repeat"),Q=s.data("row-effect-mobile-disable"),z=s.data("img-parallax-mobile-disable"),k=s.data("hide-row"),C=s.data("rtl");let M="",I="",P=s.data("custom-vc-row");s.data("vc");let A=s.data("theme-support"),L=s.data("is_old_vc"),B=(void 0!==P&&""!==P||(P="wpb_row"),void 0===L&&(L=!1),void 0===A&&(A="disable"),s.data("multi-color-overlay")&&(M=s.data("multi-color-overlay"),I=s.data("multi-color-overlay-opacity")),overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="");void 0!==c&&"true"===c.toString()&&(""!=v&&(""!=_&&(_="background-size:"+_+"px;"),void 0!==b&&""!=b&&(overlay_pattern_attachment_css="background-attachment:"+b+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+v+"); opacity:"+h+"; "+_+"; "+overlay_pattern_attachment_css+'"></div>'),""!=u&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+u+';"></div>'),""!=M&&(overlay_multi_color_html='<div class="upb_bg_overlay '+M+'" style="opacity:'+I+';"></div>'),B=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),(c=1==L||"enable"==A?(s.prev().is("p")||s.prev().is("style")?s.prev():s).prev():s.prevAll("."+P+":first")).css("position","relative");b=c.attr("class");"browser_size"==d&&(c.wrapInner('<div class="upb-background-text-wrapper"><div class="upb-background-text"></div></div>'),s.parent().find(".upb-background-text-wrapper").addClass("full-browser-size"),s.parent().find(".upb-background-text-wrapper").find(".upb-background-text").addClass(b)),"parallax_content_value"==f&&(c.addClass("vc-row-translate"),c.attr("data-parallax-content-sense",y),c.wrapInner('<div class="vc-row-translate-wrapper '+b+'"></div>'),v=c.css("padding-top"),h=c.css("padding-bottom"),c.find(".vc-row-translate-wrapper").css({"padding-top":v,"padding-bottom":h}),void 0!==c[0])&&""!==c&&(c[0].style.setProperty("padding-top","0px","important"),c[0].style.setProperty("padding-bottom","0px","important")),""!=k&&(c.addClass("ult-vc-hide-row"),c.attr("data-hide-row",k)),c.attr("data-rtl",C),c.prepend('<div class="upb_row_bg">'+B+"</div>"),s.remove(),W(s,c),(s=c).attr("data-row-effect-mobile-disable",Q),s.attr("data-img-parallax-mobile-disable",z),"fadeout_row_value"==g&&(s.addClass("vc-row-fade"),s.attr("data-fadeout-percentage",m)),s.css("background-image",""),(s=s.find(".upb_row_bg")).attr("data-upb_br_animation",n),"automatic"!=o?s.css({"background-size":o}):s.addClass("upb_bg_size_automatic"),s.css({"background-repeat":r,"background-position":i,"background-color":a}),"vcpb-fs-jquery"==e||"vcpb-mlvp-jquery"==e?s.attr("data-img-array",t):s.css({"background-image":t,"background-attachment":p}),s.attr("data-parallax_sense",l),s.attr("data-bg-override",d),s.attr("data-bg-animation",w),s.attr("data-bg-animation-type",x),s.attr("data-animation-repeat",j),s.addClass(e);function O(){let t,e,a,r;if(e=s.parent(),"full"==d&&(e=jQuery("body"),a=0),"ex-full"==d&&(e=jQuery("html"),a=0),!isNaN(d)){for(let t=0;t<d&&"HTML"!=e.prop("tagName");t++)e=e.parent();a=e.offset().left}var o;wh=jQuery(window).height(),s.parent().outerHeight(),t=e.outerWidth(),s.css({"min-width":t+"px"}),void 0!==s.offset()&&(r=s.offset().left),1==N()?s.css({right:-Math.abs(a-r)+"px"}):s.css({left:-Math.abs(a-r)+"px"}),"browser_size"==d&&((o=s.parent().find(".upb-background-text").height())>wh&&(wh=o),s.parent().css("height",wh+"px"),s.parent().find(".upb-background-text-wrapper").css("height",wh+"px"))}O(),jQuery(window).on("load",function(){O()}),jQuery(window).resize(function(){O()})}),this},jQuery.fn.ultimate_grad_shift=function(){return jQuery(this).each(function(){let s=jQuery(this),t=s.data("grad");s.data("grad-type"),s.data("grad-custom-degree");let i=jQuery(this).data("bg-override");var e=s.data("overlay"),a=s.data("overlay-color"),r=s.data("overlay-pattern"),o=s.data("overlay-pattern-opacity");let l=s.data("overlay-pattern-size");var d=s.data("overlay-pattern-attachment"),p=s.data("upb-bg-animation"),n=s.data("fadeout"),c=s.data("fadeout-percentage"),u=s.data("parallax-content"),v=s.data("parallax-content-sense"),h=s.data("row-effect-mobile-disable"),_=s.data("hide-row"),b=s.data("rtl");let g="",m="",f=s.data("custom-vc-row");var y;s.data("vc");let w=s.data("theme-support"),x=s.data("is_old_vc");void 0!==f&&""!==f||(f="wpb_row"),void 0===x&&(x=!1),void 0===w&&(w="disable"),s.data("multi-color-overlay")&&(g=s.data("multi-color-overlay"),m=s.data("multi-color-overlay-opacity")),(y=1==x||"enable"==w?(s.prev().is("p")||s.prev().is("style")?s.prev():s).prev():s.prevAll("."+f+":first")).css("position","relative");var j=y.attr("class");s.remove();let Q=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";void 0!==e&&"true"===e.toString()&&(""!=r&&(""!=l&&(l="background-size:"+l+"px;"),void 0!==d&&""!=d&&(overlay_pattern_attachment_css="background-attachment:"+d+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+r+"); opacity:"+o+"; "+l+"; "+overlay_pattern_attachment_css+'"></div>'),""!=a&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+a+';"></div>'),""!=g&&(overlay_multi_color_html='<div class="upb_bg_overlay '+g+'" style="opacity:'+m+';"></div>'),Q=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==i&&(y.wrapInner('<div class="upb-background-text-wrapper"><div class="upb-background-text"></div></div>'),y.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(j),y.addClass("full-browser-size")),"parallax_content_value"==u&&(y.addClass("vc-row-translate"),y.attr("data-parallax-content-sense",v),y.wrapInner('<div class="vc-row-translate-wrapper '+j+'"></div>'),e=y.css("padding-top"),d=y.css("padding-bottom"),y.find(".vc-row-translate-wrapper").css({"padding-top":e,"padding-bottom":d}),void 0!==y[0])&&""!==y&&(y[0].style.setProperty("padding-top","0px","important"),y[0].style.setProperty("padding-bottom","0px","important")),""!=_&&(y.addClass("ult-vc-hide-row"),y.attr("data-hide-row",_)),y.attr("data-rtl",b),y.prepend('<div class="upb_row_bg">'+Q+"</div>"),W(s,y),(s=y).attr("data-row-effect-mobile-disable",h),"fadeout_row_value"==n&&(s.addClass("vc-row-fade"),s.attr("data-fadeout-percentage",c)),s.css("background-image",""),(s=s.find(".upb_row_bg")).attr("data-upb_br_animation",p);r=(t=t.replace("url(data:image/svg+xml;base64,","")).indexOf(";");t=t.substring(r+1),s.attr("style",t),s.attr("data-bg-override",i),"browser_size"==i&&s.parent().find(".upb-background-text-wrapper").addClass("full-browser-size");function z(){let t,e,a,r;if(e=s.parent(),"full"==i&&(e=jQuery("body"),a=0),"ex-full"==i&&(e=jQuery("html"),a=0),!isNaN(i)){for(let t=0;t<i&&"HTML"!=e.prop("tagName");t++)e=e.parent();a=e.offset().left}var o;wh=jQuery(window).height(),s.parent().outerHeight(),t=e.outerWidth(),s.css({"min-width":t+"px"}),r=s.offset().left,1==N()?s.css({right:-Math.abs(a-r)+"px"}):s.css({left:-Math.abs(a-r)+"px"}),"browser_size"==i&&((o=s.parent().find(".upb-background-text").height())>wh&&(wh=o),s.parent().css("height",wh+"px"),s.parent().find(".upb-background-text-wrapper").css("height",wh+"px"))}z(),jQuery(window).on("load",function(){z()}),jQuery(window).resize(function(){z()})}),this},jQuery.fn.ultimate_bg_color_shift=function(){return jQuery(this).each(function(){let s=jQuery(this),i=jQuery(this).data("bg-override");var t=jQuery(this).data("bg-color"),e=s.data("fadeout"),a=s.data("fadeout-percentage"),r=s.data("parallax-content"),o=s.data("parallax-content-sense"),l=s.data("row-effect-mobile-disable"),d=s.data("overlay"),p=s.data("overlay-color"),n=s.data("overlay-pattern"),c=s.data("overlay-pattern-opacity");let u=s.data("overlay-pattern-size");var v=s.data("overlay-pattern-attachment"),h=s.data("hide-row"),_=s.data("rtl");let b="",g="";var m;s.data("vc");let f=s.data("theme-support"),y=s.data("custom-vc-row"),w=s.data("is_old_vc");void 0!==y&&""!==y||(y="wpb_row"),void 0===w&&(w=!1),void 0===f&&(f="disable"),s.data("multi-color-overlay")&&(b=s.data("multi-color-overlay"),g=s.data("multi-color-overlay-opacity")),(m=1==w||"enable"==f?(s.prev().is("p")||s.prev().is("style")?s.prev():s).prev():s.prevAll("."+y+":first")).css("position","relative");var x=m.attr("class");let j=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if(void 0!==d&&"true"===d.toString()&&(""!=n&&(""!=u&&(u="background-size:"+u+"px;"),void 0!==v&&""!=v&&(overlay_pattern_attachment_css="background-attachment:"+v+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+n+"); opacity:"+c+"; "+u+"; "+overlay_pattern_attachment_css+'"></div>'),""!=p&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+p+';"></div>'),""!=b&&(overlay_multi_color_html='<div class="upb_bg_overlay '+b+'" style="opacity:'+g+';"></div>'),j=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==i&&(m.wrapInner('<div class="upb-background-text-wrapper"><div class="upb-background-text"></div></div>'),m.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(x)),""!=h&&(m.addClass("ult-vc-hide-row"),m.attr("data-hide-row",h)),m.attr("data-rtl",_),"parallax_content_value"==r&&(m.addClass("vc-row-translate"),m.wrapInner('<div class="vc-row-translate-wrapper '+x+'"></div>'),m.attr("data-parallax-content-sense",o),d=m.css("padding-top"),v=m.css("padding-bottom"),m.find(".vc-row-translate-wrapper").css({"padding-top":d,"padding-bottom":v}),void 0!==m[0])&&""!==m&&(m[0].style.setProperty("padding-top","0px","important"),m[0].style.setProperty("padding-bottom","0px","important")),m.prepend('<div class="upb_row_bg">'+j+"</div>"),W(s,m),s.remove(),(s=m).attr("data-row-effect-mobile-disable",l),"fadeout_row_value"==e&&(s.addClass("vc-row-fade"),s.attr("data-fadeout-percentage",a)),s.css("background-image",""),(s=s.find(".upb_row_bg")).css({background:t}),s.attr("data-bg-override",i),"browser_size"==i&&s.parent().find(".upb-background-text-wrapper").addClass("full-browser-size"),0!==s.length){let t=function(){let t,e,a,r;if(e=s.parent(),"full"==i&&(e=jQuery("body"),a=0),"ex-full"==i&&(e=jQuery("html"),a=0),!isNaN(i)){for(let t=0;t<i&&"HTML"!=e.prop("tagName");t++)e=e.parent();a=e.offset().left}var o;wh=jQuery(window).height(),s.parent().outerHeight(),t=e.outerWidth(),s.css({"min-width":t+"px"}),r=s.offset().left,1==N()?s.css({right:-Math.abs(a-r)+"px"}):s.css({left:-Math.abs(a-r)+"px"}),"browser_size"==i&&((o=s.parent().find(".upb-background-text").height())>wh&&(wh=o),s.parent().css("height",wh+"px"),s.parent().find(".upb-background-text-wrapper").css("height",wh+"px"))};t(),jQuery(window).on("load",function(){t()}),jQuery(window).resize(function(){t()})}}),this},jQuery.fn.ultimate_parallax_animation=function(i){let l=jQuery(window).height(),d=function(t){return t.height()},t=jQuery(this),p=jQuery(window).scrollTop();function e(){let o;let s=jQuery(window).scrollTop();t.each(function(){var t,e,a,r;"upb_fade_animation"==jQuery(this).data("upb_br_animation")&&(o=jQuery(this).offset().top,(a=(t=jQuery(this)).offset().top)+(t=d(t))<s||a>s+l-100||(e=p-s,a+t-l<s&&(a=e/l,"parent"==i&&(r=parseInt(jQuery(this).css("opacity")),r+=a/2.3,jQuery(this).parents(".wpb_row").css({opacity:r})),"self"==i)&&(r=parseInt(jQuery(this).css("opacity")),r+=a/2.3,jQuery(this).css({opacity:r})),p=s))})}jQuery(window).bind("scroll",e).resize(e),e()};function t(){jQuery(".upb_row_bg").each(function(){var e=jQuery(this).data("bg-override"),t=jQuery(this).data("theme-support"),a=jQuery(this).data("row");let r,o;if((o=void 0!==t&&"enable"!==t?jQuery(this).parents("."+a+":first"):jQuery(this).parent()).addClass("vc_row-has-fill"),"browser_size"==e&&(r=jQuery("html")),"ex-full"==e)r=jQuery("html");else if("full"==e)r=jQuery("body");else if(!isNaN(e)){r=o;for(let t=0;t<e&&!r.is("html");t++)r=r.parent()}var s,t=parseInt(r.css("paddingLeft"))+parseInt(r.css("paddingRight"))+r.width(),a=-(o.offset().left-r.offset().left);0<a&&(left=0),1==N()?jQuery(this).css({width:t,right:a}):jQuery(this).css({width:t,left:a}),"browser_size"==e&&(r.width(),r.height(),o.width(),t=o.height(),a=o.find(".upb-background-text").height(),s=jQuery(window).height(),t=t<a?a:s,o.css("min-height",t+"px"),o.find(".upb-background-text-wrapper").css("min-height",t+"px"))}),jQuery(".upb_video-bg").each(function(t,e){var a=jQuery(this).data("bg-override"),r=jQuery(this).attr("data-rtl"),o=jQuery(this).data("theme-support"),s=jQuery(this).data("row");let i,l;if("true"==(l=void 0!==o&&"enable"!==o?jQuery(this).parents("."+s+":first"):jQuery(this).parent()).attr("data-vc-full-width")||1==l.attr("data-vc-full-width")?l.addClass("uvc-vc-full-width"):l.addClass("uvc-row"),"browser_size"==a)i=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("ex-full"==a)i=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("full"==a)i=jQuery("body"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if(isNaN(a)||0==a)i=l;else{i=l;for(let t=1;t<=a&&!i.is("html");t++)i=i.parent()}parseInt(i.css("paddingLeft")),parseInt(i.css("paddingRight")),parseInt(i.css("marginLeft"));let d=i.outerWidth();var o=d,s=jQuery(this).offset().left,p=jQuery(this).position().left;let n=i.offset().left-s;p<0&&(n=p+n),0==t&&(c=p),0<(n=0<c?c:n)&&(n=0),void 0===r||!0!==r&&"true"!==r?jQuery(this).css({width:d,"min-width":d,left:n}):jQuery(this).css({width:d,"min-width":d,right:n});jQuery(window).width();s=jQuery(window).height(),l.find("video").height(),t=("browser_size"==a?l.find(".upb_video-text"):l).height(),d<960&&(d=16/9*t+d),pHeight=Math.ceil(d/(16/9)),(children=jQuery(this).children()).removeClass("ult-make-full-height"),o<t&&children.addClass("ult-make-full-height"),p=jQuery(this).css("background-image");/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0!==p&&"none"!=p||(children.css({"max-height":"auto",height:"auto"}),l.css("min-height","auto")):"browser_size"==a&&(r=s<t?t:s,l.addClass("video-browser-size"),l.find(".upb-background-text-wrapper").addClass("full-browser-size"),l.css("min-height",r+"px"),0<l.find(".upb_video-text-wrapper").length)&&(l.find(".upb_video-text-wrapper").addClass("full-browser-size"),l.find(".upb_video-text-wrapper").css("min-height",r+"px"))})}let c=0;(jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev():jQuery(".upb_content_video, .upb_content_iframe")).prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift(),jQuery(".upb_no_bg").each(function(t,e){var a=jQuery(e).attr("data-fadeout"),r=jQuery(e).data("fadeout-percentage"),o=jQuery(e).data("parallax-content"),s=jQuery(e).data("parallax-content-sense"),i=jQuery(e).data("row-effect-mobile-disable");let l=jQuery(e).data("custom-vc-row"),d=jQuery(e).data("vc"),p=jQuery(e).data("theme-support");if(void 0!==l&&""!==l||(l="wpb_row"),void 0===d&&(d=0),void 0===p&&(p="disable"),(e=(d=parseFloat(d))<4.4||"enable"==p?(jQuery(e).prev().is("p")||jQuery(e).prev().is("style")?jQuery(e).prev():jQuery(e)).prev():jQuery(e).prevAll("."+l+":first")).css("position","relative"),void 0===e[0])return!1;e.attr("row-effect-mobile-disable",i),"fadeout_row_value"==a&&(e.addClass("vc-row-fade"),e.data("fadeout-percentage",r)),"parallax_content_value"==o&&(e.addClass("vc-row-translate"),e.attr("data-parallax-content-sense",s),e.wrapInner('<div class="vc-row-translate-wrapper"></div>'),i=e.css("padding-top"),a=e.css("padding-bottom"),e.find(".vc-row-translate-wrapper").css({"padding-top":i,"padding-bottom":a}),void 0!==e[0])&&""!==e&&(e[0].style.setProperty("padding-top","0px","important"),e[0].style.setProperty("padding-bottom","0px","important"))}),jQuery(".upb_no_bg").remove();function e(){jQuery(".ult-vc-seperator").each(function(t,e){var a=jQuery(this).data("full-width");let r=jQuery(this).parent().data("rtl");void 0===r&&(r="false");var o=jQuery(this).parent().find(".upb_row_bg").data("bg-override");if(("ex-full"==(o=void 0===o?jQuery(this).parent().find(".upb_video-bg").data("bg-override"):o)||"full"==o||"browser_size"==o)&&1==a){let t=jQuery("html").width();jQuery(this).hasClass("ult-rounded-split-seperator-wrapper")&&(o=jQuery(this).data("border"),a=jQuery(this).data("border-width"),void 0!==o)&&"none"!=o&&"undefined"!=o&&(t-=a);o=jQuery(this).offset().left;jQuery(this).find(".ult-main-seperator-inner").width(t),"true"==r.toString()?jQuery(this).find(".ult-main-seperator-inner").css({"margin-right":-o+"px"}):jQuery(this).find(".ult-main-seperator-inner").css({"margin-left":-o+"px"})}})}t(),jQuery(window).on("load",function(){t(),e()}),jQuery(window).resize(function(){t(),e()}),jQuery(document).ajaxComplete(function(t,e,a){(jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev():jQuery(".upb_content_video, .upb_content_iframe")).prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift()}),jQuery(".video-controls").click(function(t){var e=jQuery(this).attr("data-action"),a=jQuery(this).parent().find(".upb_video-src");"pause"==e?(jQuery(this).attr("data-action","play"),a[0].play(),jQuery(this).html('<i class="ult-vid-cntrlpause"></i>')):(jQuery(this).attr("data-action","pause"),a[0].pause(),jQuery(this).html('<i class="ult-vid-cntrlplay"></i>')),a.hasClass("enable-on-viewport")&&a.addClass("override-controls")}),jQuery(".ult-vc-hide-row").each(function(t,e){var a=jQuery(e).data("hide-row");""!=a&&jQuery(e).addClass(a)}),e(),jQuery(".vcpb-animated").each(function(t,o){var s=jQuery(o).data("animation-repeat");jQuery(this).css({"background-repeat":s});let e=jQuery(o).parent().attr("data-img-parallax-mobile-disable");if(e=void 0===e?"false":e.toString(),"false"==("true"==(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false")&&"true"==e?"true":"false")){let t=10;t=100-(t=""!=jQuery(this).attr("data-parallax_sense")?jQuery(this).attr("data-parallax_sense"):t);s=jQuery(this).attr("data-bg-animation-type");let e=jQuery(this).attr("data-bg-animation"),a=0,r=s;setInterval(function(t){"right-animation"==e||"bottom-animation"==e?--a:a+=1,jQuery(o).css("backgroundPosition","h"==r?a+"px 0":"0 "+a+"px")},t)}})})})(jQuery);
(c=>{function s(t,e){var i,r;r=(i=parseInt(e.outerHeight()))/2,t.css("padding-top",r+"px"),t.parent().css("margin-top",r+20+"px"),e.css("top",-i+"px")}function o(t){0<t.find(".timeline-icon-block").length&&c(".timeline-block").each(function(t,e){var i=c(this).find(".timeline-header-block"),r=c(this).find(".timeline-icon-block"),s=(r.css({position:"absolute"}),r.outerHeight()),o=r.outerWidth(),a=-o/2,a=(parseInt(i.find(".timeline-header").css("padding-left").replace(/[^\d.]/g,"")),c(this).hasClass("timeline-post-left")?(r.css({left:a,right:"auto"}),jQuery("body").hasClass("rtl")&&r.css({left:"auto",right:a})):c(this).hasClass("timeline-post-right")&&(r.css({left:"auto",right:a}),jQuery("body").hasClass("rtl"))&&r.css({left:a,right:"auto"}),i.height()),a=(r.css({top:a/2-s/2}),r.offset().left),s=c(window).width();(a<0||s<a+o)&&(r.css({position:"relative",top:"auto",left:"auto",right:"auto","text-align":"center"}),r.children().children().css({margin:"10px auto"}),i.css({padding:"0"}))})}function i(){jQuery(".ult-animation").each(function(){if(jQuery(this).attr("data-animate")){var r=jQuery(this).children("*");let s=jQuery(this).attr("data-animate"),t=jQuery(this).attr("data-animation-duration")+"s",e=jQuery(this).attr("data-animation-iteration"),i=jQuery(this).attr("data-animation-delay"),o=(jQuery(this).attr("data-opacity_start_effect"),"opacity:1;-webkit-animation-delay:"+i+"s;-webkit-animation-duration:"+t+";-webkit-animation-iteration-count:"+e+"; -moz-animation-delay:"+i+"s;-moz-animation-duration:"+t+";-moz-animation-iteration-count:"+e+"; animation-delay:"+i+"s;animation-duration:"+t+";animation-iteration-count:"+e+";");var a="opacity:1;-webkit-transition-delay: "+i+"s; -moz-transition-delay: "+i+"s; transition-delay: "+i+"s;";if(n(jQuery(this))){let t=jQuery(this).attr("style");"opacity:0;"==(t=(t=void 0===t?"test":t).replace(/ /g,""))&&0!==t.indexOf(a)&&jQuery(this).attr("style",a),jQuery.each(r,function(t,e){e=jQuery(e);let i=e.attr("style"),r=(void 0===i&&(i="test"),"");r=0==i.indexOf(o)?i:o+i,e.attr("style",r),n(e)&&e.addClass("animated").addClass(s)})}}})}function n(t){var e,i=jQuery(window).scrollTop(),r=jQuery(window).height();e=void 0===(e=jQuery(t).hasClass("ult-animate-viewport")?jQuery(t).data("opacity_start_effect"):e)||""==e?2:100-e,jQuery(t).outerHeight();return jQuery(t).offset().top-i<=r-r*(e/100)}function a(){jQuery(".ult-new-ib").each(function(t,e){var i,r,s=jQuery(this);s.hasClass("ult-ib-resp")&&(i=jQuery(document).width(),r=s.data("min-width"),i<=s.data("max-width")&&r<=i?s.find(".ult-new-ib-content").hide():s.find(".ult-new-ib-content").show())})}c.fn.vc_translate_row=function(){let u=c(window).scrollTop(),l=c(window).height();c(this).each(function(t,e){let i=c(e).attr("data-row-effect-mobile-disable");if(i=void 0===i?"false":i.toString(),"false"==("true"==(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false")&&"true"==i?"true":"false")){var r=c(e).outerHeight(),s=c(e).offset().top-u,o=s+r,a=c(e).attr("data-parallax-content-sense")/100,n=0;o<=l-0*l&&s<=0&&!((n=r>l?(l-o)*a:-s*a)<0)||(n=0);c(e).find(".vc-row-translate-wrapper").children().each(function(t,e){jQuery(e).is(".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator,.ult-easy-separator-wrapper")||c(e).css({transform:"translate3d(0,"+n+"px,0)","-webkit-transform":"translate3d(0,"+n+"px,0)","-ms-transform":"translate3d(0,"+n+"px,0)"})})}})},c.fn.vc_fade_row=function(){let a=c(window).scrollTop(),n=c(window).height();c(this).each(function(t,e){let i=c(e).attr("data-row-effect-mobile-disable");if(i=void 0===i?"false":i.toString(),"false"==("true"==(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false")&&"true"==i?"true":"false")){var r=100-c(e).data("fadeout-percentage"),s=c(e).outerHeight(),s=c(e).offset().top-a+s;let i=1;var r=n-n*(r/100),o=(r-s)/r*1;0<o&&(i=1-o),s<=r?(i<0?i=0:1<i&&(i=1),c(e).children().each(function(t,e){c(e).is(".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator")||c(e).css({opacity:i})})):c(e).children().each(function(t,e){c(e).css({opacity:i})})}})},jQuery(document).ready(function(){{let n="";c(".ult-spacer").each(function(t,e){var i=c(e).data("id"),r=(c("body").width(),c(e).data("height-mobile")),s=c(e).data("height-mobile-landscape"),o=c(e).data("height-tab"),a=c(e).data("height-tab-portrait"),e=c(e).data("height");""!=e&&(n+=" .spacer-"+i+" { height:"+e+"px } "),""==o&&"0"!=o&&0!=o||(n+=" @media (max-width: 1199px){ .spacer-"+i+" { height:"+o+"px }} "),void 0===a||""==a&&"0"!=a&&0!=a||(n+=" @media (max-width: 991px){ .spacer-"+i+" { height:"+a+"px }} "),void 0===s||""==s&&"0"!=s&&0!=s||(n+=" @media (max-width: 767px){ .spacer-"+i+" { height:"+s+"px }} "),""==r&&"0"!=r&&0!=r||(n+=" @media (max-width: 479px){ .spacer-"+i+" { height:"+r+"px }} ")}),""!=n&&(n="<style>"+n+"</style>",c("head").append(n))}}),jQuery(window).on("scroll",function(){var t=jQuery(".ult-no-mobile").length;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&1<=t?jQuery(".ult-animation").css("opacity",1):i(),c(".vc-row-fade").vc_fade_row(),c(".vc-row-translate").vc_translate_row()}),jQuery(window).on("load",function(){jQuery(".ult-banner-block-custom-height").each(function(t,e){var i=jQuery(this).find("img"),r=jQuery(this).width(),s=jQuery(this).height();i.width();s<r&&i.css({width:"100%",height:"auto"})}),jQuery(".ult-new-ib").each(function(t,e){("ontouchstart"in window||0<navigator.MaxTouchPoints||0<navigator.msMaxTouchPoints)&&jQuery(this).find(".ult-new-ib-link").click(function(t){t.preventDefault();let e=jQuery(this).attr("href"),i=jQuery(this).data("touch-delay");null==i&&(i=200),setTimeout(function(){window.location=e},i)})});function i(){jQuery(".ifb-jq-height").each(function(){jQuery(this).find(".ifb-back").css("height","auto"),jQuery(this).find(".ifb-front").css("height","auto");var t=parseInt(jQuery(this).find(".ifb-front > div").outerHeight(!0)),e=parseInt(jQuery(this).find(".ifb-back > div").outerHeight(!0)),t=e<t?t:e;jQuery(this).find(".ifb-front").css("height",t+"px"),jQuery(this).find(".ifb-back").css("height",t+"px"),(jQuery(this).hasClass("vertical_door_flip")||jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("style_9"))&&jQuery(this).find(".ifb-flip-box").css("height",t+"px")}),jQuery(".ifb-auto-height").each(function(){var t,e;(jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("vertical_door_flip"))&&(e=parseInt(jQuery(this).find(".ifb-front > div").outerHeight()),e=(t=parseInt(jQuery(this).find(".ifb-back > div").outerHeight()))<e?e:t,jQuery(this).find(".ifb-flip-box").css("height",e+"px"))})}let t=0,e=0;-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")?setTimeout(function(){i()},500):i(),jQuery(document).on("ultAdvancedTabClicked",function(t,e){i()}),jQuery(window).on("resize",function(){t++,setTimeout(function(){e++,t==e&&i()},500)});let r=0;jQuery(window).on("resize",function(){a(),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){o(jQuery(this))}),c(".jstime .timeline-wrapper").each(function(){o(jQuery(this))}),"none"==jQuery(".smile-icon-timeline-wrap.jstime .timeline-line").css("display")?0===r&&(c(".jstime .timeline-wrapper").masonry("destroy"),r=1):1==r&&(jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block"}),setTimeout(function(){jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block",width:"401px"}),jQuery(this).find(".timeline-block").each(function(){jQuery(this).css("left","initial"),"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right")}),r=0},300))}),c(".smile-icon-timeline-wrap").each(function(){var t=jQuery(this).data("timeline-cutom-width"),t=(t&&jQuery(this).css("width",2*t+40+"px"),parseInt(jQuery(this).width()),parseInt(jQuery(this).find(".timeline-block").width()),c(".jstime .timeline-wrapper").each(function(){jQuery(this).masonry({itemSelector:".timeline-block"})}),setTimeout(function(){c(".jstime .timeline-wrapper").each(function(){jQuery(this).find(".timeline-block").each(function(){"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right"),o(jQuery(this))}),jQuery(".timeline-block").each(function(){var t=parseInt(jQuery(this).css("top"))-parseInt(jQuery(this).next().css("top"));t<14&&0<t||0==t?jQuery(this).next().addClass("time-clash-right"):-14<t&&jQuery(this).next().addClass("time-clash-left")})}),jQuery(".timeline-post-right").each(function(){var t=jQuery(this).find(".timeline-icon-block").clone();jQuery(this).find(".timeline-icon-block").remove(),jQuery(this).find(".timeline-header-block").after(t)}),jQuery(".smile-icon-timeline-wrap").each(function(){var t=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",t),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",t),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",t),jQuery(this).find(".feat-item").css("background-color",t),0<jQuery(this).find(".feat-item").find(".feat-top").length?jQuery(this).find(".feat-item l").css("border-top-color",t):jQuery(this).find(".feat-item l").css("border-bottom-color",t),jQuery(".jstime.timeline_preloader").remove(),jQuery(this).find("div").hasClass("timeline-wrapper")?jQuery(this).css("opacity","1"):jQuery(this).remove()})},1e3),jQuery(this).find(".timeline-line ").next().hasClass("timeline-separator-text")||jQuery(this).find(".timeline-line").prepend("<span></span>"),jQuery(this).data("time_sep_color")),e=jQuery(this).data("time_sep_bg_color"),i=jQuery(".smile-icon-timeline-wrap .timeline-line").css("border-right-color");jQuery(this).find(".timeline-dot").css("background-color",e),jQuery(this).find(".timeline-line span").css("background-color",e),jQuery(this).find(".timeline-line span").css("background-color",e),jQuery(this).find(".timeline-separator-text").css("color",t),jQuery(this).find(".timeline-separator-text .sep-text").css("background-color",e),jQuery(this).find(".ult-timeline-arrow s").css("border-color","rgba(255, 255, 255, 0) "+i),jQuery(this).find(".feat-item .ult-timeline-arrow s").css("border-color",i+" rgba(255, 255, 255, 0)"),jQuery(this).find(".timeline-block").css("border-color",i),jQuery(this).find(".feat-item").css("border-color",i)})}),jQuery(document).ready(function(t){var e=jQuery(".ult-no-mobile").length,e=(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&1<=e?jQuery(".ult-animation").css("opacity",1):i(),a(),jQuery(".ubtn").on("mouseenter",function(){let t=jQuery(this),e=(t.find(".ubtn-text").css("color",t.data("hover")),t.find(".ubtn-hover").css("background",t.data("hover-bg")).addClass("ubtn-hover-active"),""!=t.data("hover-bg")&&t.data("hover-bg")),i=(setTimeout(function(){!1!==e&&t.hasClass(".ubtn-fade-bg")&&t.css("background",t.data("hover-bg"))},150),t.attr("style"));var r;""!=t.data("shadow-hover")&&(t.css("box-shadow"),i+="box-shadow:"+t.data("shadow-hover")),t.attr("style",i),""!=t.data("border-hover")&&t.css("border-color",t.data("border-hover")),"none"!=t.data("shadow-click")&&(r=t.data("shd-shadow")-3,""!=t.is(".shd-left")?t.css({right:r}):""!=t.is(".shd-right")?t.css({left:r}):""!=t.is(".shd-top")?t.css({bottom:r}):""!=t.is(".shd-bottom")&&t.css({top:r}))}).on("mouseleave",function(){var t=jQuery(this),e=(t.find(".ubtn-text").removeAttr("style"),t.find(".ubtn-hover").removeClass("ubtn-hover-active"),t.css("background",t.data("bg")),t.data("border-color"));let i=t.attr("style");""!=t.data("shadow-hover")&&(i+="box-shadow:"+t.data("shadow")),t.attr("style",i),""!=t.data("border-hover")&&t.css("border-color",e),"none"!=t.data("shadow-click")&&(t.removeClass("no-ubtn-shadow"),""!=t.is(".shd-left")?t.css({right:"auto"}):""!=t.is(".shd-right")?t.css({left:"auto"}):""!=t.is(".shd-top")?t.css({bottom:"auto"}):""!=t.is(".shd-bottom")&&t.css({top:"auto"}))}),jQuery(".ubtn").on("focus blur mousedown mouseup",function(t){let e=jQuery(this);"none"!=e.data("shadow-click")&&setTimeout(function(){e.is(":focus")?(e.addClass("no-ubtn-shadow"),""!=e.is(".shd-left")?e.css({right:e.data("shd-shadow")+"px"}):""!=e.is(".shd-right")?e.css({left:e.data("shd-shadow")+"px"}):""!=e.is(".shd-top")?e.css({bottom:e.data("shd-shadow")+"px"}):""!=e.is(".shd-bottom")&&e.css({top:e.data("shd-shadow")+"px"})):(e.removeClass("no-ubtn-shadow"),""!=e.is(".shd-left")?e.css({right:"auto"}):""!=e.is(".shd-right")?e.css({left:"auto"}):""!=e.is(".shd-top")?e.css({bottom:"auto"}):""!=e.is(".shd-bottom")&&e.css({top:"auto"}))},0)}),jQuery(".ubtn").on("focusout",function(){var t=jQuery(this);t.removeClass("no-ubtn-shadow"),""!=t.is(".shd-left")?t.css({right:"auto"}):""!=t.is(".shd-right")?t.css({left:"auto"}):""!=t.is(".shd-top")?t.css({bottom:"auto"}):""!=t.is(".shd-bottom")&&t.css({top:"auto"})}),jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","0"),jQuery(".jstime.timeline_preloader").css("opacity","1"),jQuery(".smile-icon-timeline-wrap.csstime .timeline-wrapper").each(function(){jQuery(".csstime .timeline-block:even").addClass("timeline-post-left"),jQuery(".csstime .timeline-block:odd").addClass("timeline-post-right")}),jQuery(".csstime .timeline-post-right").each(function(){jQuery(this).css("float","right"),jQuery("<div style='clear:both'></div>").insertAfter(jQuery(this))}),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){var t=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",t),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",t),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",t),jQuery(this).find(".feat-item").css("background-color",t),0<jQuery(this).find(".feat-item").find(".feat-top").length?jQuery(this).find(".feat-item l").css("border-top-color",t):jQuery(this).find(".feat-item l").css("border-bottom-color",t),o(jQuery(this))}),jQuery(".aio-icon, .aio-icon-img, .flip-box, .ultb3-info, .icon_list_icon, .ult-banner-block, .uavc-list-icon, .ult_tabs, .icon_list_connector").each(function(){if(jQuery(this).attr("data-animation")){let e=jQuery(this).attr("data-animation"),i="delay-"+jQuery(this).attr("data-animation-delay");if(void 0===e||""===e)return!1;t(this).bsf_appear(function(){var t=jQuery(this);t.addClass("animated").addClass(e),t.addClass("animated").addClass(i)})}}),jQuery(".stats-block").each(function(){t(this).bsf_appear(function(){var t=parseFloat(jQuery(this).find(".stats-number").data("counter-value")),e=jQuery(this).find(".stats-number").data("counter-value")+" ",i=parseInt(jQuery(this).find(".stats-number").data("speed")),r=jQuery(this).find(".stats-number").data("id"),s=jQuery(this).find(".stats-number").data("separator");let o=jQuery(this).find(".stats-number").data("decimal"),a=e.split("."),n=(a=a[1]?a[1].length-1:0,!0);"none"==o&&(o="");e={useEasing:!0,useGrouping:n="none"!=s,separator:s,decimal:o};let u=new countUp(r,0,t,a,i,e);setTimeout(function(){u.start()},500)})}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?jQuery(".ifb-flip-box").on("click",function(t){var e=jQuery(this);e.hasClass("ifb-hover")?e.removeClass("ifb-hover"):e.addClass("ifb-hover")}):jQuery(document).on("mouseenter mouseleave",".ifb-flip-box",function(t){var e=jQuery(this);e.hasClass("ifb-hover")?e.removeClass("ifb-hover"):e.addClass("ifb-hover")}),jQuery(".ifb-flip-box").each(function(t,e){jQuery(this).parent().hasClass("style_9")&&(jQuery(this).on("mouseenter",function(){jQuery(this).addClass("ifb-door-hover")}).on("mouseleave",function(){jQuery(this).removeClass("ifb-door-hover")}),jQuery(this).on("click",function(){jQuery(this).toggleClass("ifb-door-right-open"),jQuery(this).removeClass("ifb-door-hover")}))}),jQuery(document).on("click",".ifb-flip-box",function(t){t.stopPropagation(),jQuery(document).trigger("ultFlipBoxClicked",jQuery(this))}),jQuery(".vertical_door_flip .ifb-front").each(function(){jQuery(this).wrap('<div class="v_door ifb-multiple-front ifb-front-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_vertical_door_flip .ifb-back").each(function(){jQuery(this).wrap('<div class="rv_door ifb-multiple-back ifb-back-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".horizontal_door_flip .ifb-front").each(function(){jQuery(this).wrap('<div class="h_door ifb-multiple-front ifb-front-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_horizontal_door_flip .ifb-back").each(function(){jQuery(this).wrap('<div class="rh_door ifb-multiple-back ifb-back-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-front").each(function(){jQuery(this).wrap('<div class="new_style_9 ifb-multiple-front ifb-front-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-back").each(function(){jQuery(this).wrap('<div class="new_style_9 ifb-multiple-back ifb-back-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),/^((?!chrome).)*safari/i.test(navigator.userAgent));e&&(jQuery(".vertical_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px"),jQuery(this).find(".ifb-multiple-front").css("width","50.2%")}),jQuery(".horizontal_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px"),jQuery(this).find(".ifb-multiple-front").css("height","50.2%")}),jQuery(".reverse_vertical_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px")}),jQuery(".reverse_horizontal_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px"),jQuery(this).find(".ifb-back").css("position","inherit")})),jQuery(".square_box-icon").each(function(t,e){let i=jQuery(this);var r;(0<jQuery(this).find(".aio-icon-img").length?(r=jQuery(this).find(".aio-icon-img"),s(i,r),r.find(".img-icon")):(r=jQuery(this).find(".aio-icon"),s(i,r),jQuery(window))).on("load",function(){s(i,r)})})})})(jQuery),jQuery(document).ready(function(){function t(){jQuery(".ult-new-ib").each(function(t,e){var i,r=jQuery(this).data("min-height")||"";jQuery(this).find(".ult-new-ib-img").data("min-height"),jQuery(this).find(".ult-new-ib-img").data("max-width");""!=r&&(jQuery(this).addClass("ult-ib2-min-height"),jQuery(this).css("height",r),jQuery(this).find(".ult-new-ib-img").removeClass("ult-ib2-toggle-size"),jQuery(this).find(".ult-new-ib-img").width(),i=jQuery(this).find(".ult-new-ib-img").height(),jQuery(this).width()<=r||i<r)&&jQuery(this).find(".ult-new-ib-img").addClass("ult-ib2-toggle-size"),jQuery(this).on("mouseenter",function(){jQuery(this).find(".ult-new-ib-img").css("opacity",jQuery(this).data("hover-opacity"))}).on("mouseleave",function(){jQuery(this).find(".ult-new-ib-img").css("opacity",jQuery(this).data("opacity"))})})}jQuery(".ult-new-ib").css("opacity","1"),t(),jQuery(window).on("load",function(){t()}),jQuery(window).on("resize",function(){t()})}),jQuery(document).ready(function(){function i(){jQuery(".ultimate-map-wrapper").each(function(t,e){var i=jQuery(e).attr("id");if(void 0===i||""===i)return!1;var e=jQuery(e).find(".ultimate_google_map").attr("id"),r=jQuery("#"+e).attr("data-map_override");let s="true",o=(jQuery("#"+e).css({"margin-left":0}),jQuery("#"+e).css({right:0}),jQuery("#"+i).parent());o;if("full"==r&&(o=jQuery("body"),s="false"),"ex-full"==r&&(o=jQuery("html"),s="false"),!isNaN(r))for(t=0;t<r&&"HTML"!=o.prop("tagName");t++)o=o.parent();i=0==r||"0"==r?o.width():o.outerWidth();var a=o.offset().left-jQuery("#"+e).offset().left;jQuery("#"+e).css({width:i}),0==r&&"0"==r||jQuery("#"+e).css({"margin-left":a}),"full"==r&&jQuery("body").hasClass("rtl")&&(i=jQuery("#"+e),a=jQuery(window).width()-(i.offset().left+i.outerWidth()),jQuery("#"+e).css({right:-a}))})}i(),jQuery(window).on("load",function(){i()}),jQuery(window).on("resize",function(){i()}),jQuery(".ui-tabs").on("tabsactivate",function(t,e){0<jQuery(this).find(".ultimate-map-wrapper").length&&i()}),jQuery(".ui-accordion").on("accordionactivate",function(t,e){0<jQuery(this).find(".ultimate-map-wrapper").length&&i()}),jQuery(document).on("onUVCModalPopupOpen",function(){i()}),jQuery(document).on("UVCMapResize",function(){i()})});
!function(l){woodmartThemeModule.scrollTop=function(){var o=l(".scrollToTop");woodmartThemeModule.$window.on("scroll",function(){100<l(this).scrollTop()?o.addClass("button-show"):o.removeClass("button-show")}),o.on("click",function(){return l("html, body").animate({scrollTop:0},800),!1})},l(document).ready(function(){woodmartThemeModule.scrollTop()})}(jQuery);
function openMobileNavEvent(e){e.preventDefault();e=document.querySelector(".wd-side-hidden-nav");e.classList.contains("wd-opened")?woodmartThemeModule.closeMobileNavigation():(this.parentNode.classList.add("wd-opened"),woodmartThemeModule.openMobileNavigation(e))}woodmartThemeModule.$document.on("wdCloseMobileMenu wdPjaxStart",function(){woodmartThemeModule.closeMobileNavigation()}),woodmartThemeModule.mobileNavigationClickAction=function(e){e&&e.addEventListener("click",function(e){var o=e.target.closest(".wd-nav");if(o){var t,n,i,d,a=o.classList.contains("wd-layout-dropdown"),l=o.classList.contains("wd-layout-drilldown"),o=o.classList.contains("wd-drilldown-slide"),s=e.target.closest(".wd-nav-mob-tab li"),r=e.target.closest(".menu-item-has-children > a"),c=e.target.closest(".menu-item-has-children > .wd-nav-opener"),u=e.target.closest(".mobile-nav"),m="arrow";if(this.classList.contains("wd-opener-item")&&(m="item"),woodmartThemeModule.$document.trigger("wood-images-loaded"),s){if(e.preventDefault(),s.classList.contains("wd-active"))return;var w=s.dataset.menu,v=null!==u&&u.querySelector(".wd-active");v&&v.classList.remove("wd-active"),s.classList.add("wd-active"),null!==u&&(u.querySelectorAll(".wd-nav-mobile").forEach(function(e){e.classList.remove("wd-active")}),void 0!==w)&&u.querySelectorAll(`.mobile-${w}-menu`).forEach(function(e){e.classList.add("wd-active")})}a?("item"===m&&(r||c)||"arrow"===m&&c)&&(e.preventDefault(),t=("item"===m&&r||c).parentNode,v=(n=Array.from(t.children)).find(function(e){return e.classList.contains("wd-nav-opener")}),s=n.filter(function(e){return"UL"===e.tagName||e.classList.contains("wd-sub-menu")}),t.classList.contains("opener-page")?(t.classList.remove("opener-page"),0!==s.length&&s.forEach(function(e){woodmartThemeModule.slideUp(e,200)}),[".wd-dropdown-menu .container > ul",".wd-dropdown-menu > ul"].forEach(function(e){e=t.querySelectorAll(e);0!==e.length&&e.forEach(function(e){woodmartThemeModule.slideUp(e,200)})}),void 0!==v&&v.classList.remove("wd-active")):(t.classList.add("opener-page"),0!==s.length&&s.forEach(function(e){woodmartThemeModule.slideDown(e,200)}),[".wd-dropdown-menu .container > ul",".wd-dropdown-menu > ul"].forEach(function(e){e=t.querySelectorAll(e);0!==e.length&&e.forEach(function(e){woodmartThemeModule.slideDown(e,200)})}),void 0!==v&&v.classList.add("wd-active"))):l&&(w=e.target.closest(".menu-item-has-children .wd-drilldown-back a"),a=e.target.closest(".menu-item-has-children .wd-drilldown-back .wd-nav-opener"),("item"===m&&(r||c)||"arrow"===m&&c)&&(d=(t=("item"===m&&r||c).parentNode).closest("ul"),void 0!==(i=(n=Array.from(t.children)).find(function(e){return e.classList.contains("wd-sub-menu")||e.classList.contains("sub-sub-menu")})))&&(e.preventDefault(),t.setAttribute("aria-expanded",!0),d.classList.add("wd-drilldown-hide"),d.classList.remove("wd-drilldown-show"),i.classList.add("wd-drilldown-show"),i.setAttribute("aria-expanded",!1),v=(v=(v=(s=i.querySelector(".wd-drilldown-back a")).textContent).replaceAll("\t","")).replaceAll("\n",""),t.classList.contains("item-level-0")?(l=null)!==(l=null!==u?u.querySelector(".wd-nav-mob-tab li.wd-active .nav-link-text"):l)?(m=(m=(m=l.textContent).replaceAll("\t","")).replaceAll("\n",""),!v.includes(m)&&0<m.length&&(s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to.replace("%s",m))):t.classList.contains("cat-item")?s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to_categories:v.includes(woodmart_settings.mobile_navigation_drilldown_back_to_main_menu)||(s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to_main_menu):(r="",r=(null!==(c=d.closest("li").querySelector(".woodmart-nav-link")).querySelector(".nav-link-text")?c.querySelector(".nav-link-text"):null!==c.querySelector("span")?c.querySelector("span"):c).textContent,!v.includes(r)&&0<r.length&&(s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to.replace("%s",r))),o)&&(this.querySelector("ul.wd-active").style.height=i.offsetHeight+"px"),w||a)&&(e.preventDefault(),d=(t=(w||a).closest(".menu-item")).closest("ul"),i=(n=Array.from(t.children)).find(function(e){return e.classList.contains("wd-sub-menu")||e.classList.contains("sub-sub-menu")}),t.setAttribute("aria-expanded",!1),t.classList.contains("item-level-0")||d.classList.add("wd-drilldown-show"),d.classList.remove("wd-drilldown-hide"),i.classList.remove("wd-drilldown-show"),i.setAttribute("aria-expanded",!0),o)&&(t.classList.contains("item-level-0")?this.querySelector("ul.wd-active").style.height="":this.querySelector("ul.wd-active").style.height=d.offsetHeight+"px")}})},woodmartThemeModule.mobileNavigationAddOpeners=function(e){e.forEach(function(e){var o;e.querySelector(":scope > .wd-nav-opener")||e.closest(".widget_nav_mega_menu")||((o=document.createElement("span")).classList.add("wd-nav-opener"),e.appendChild(o))})},woodmartThemeModule.mobileNavigationCloseSideWidgets=function(e){e&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()})})},woodmartThemeModule.openMobileNavigation=function(e){var o=document.querySelector(".wd-close-side");e&&(e.classList.add("wd-opened"),jQuery(e).trigger("wdOpenSide")),o&&o.classList.add("wd-close-side-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")},woodmartThemeModule.closeMobileNavigation=function(){var e=document.querySelector(".wd-header-mobile-nav.wd-opened"),o=document.querySelector(".mobile-nav.wd-opened"),t=document.querySelector(".wd-close-side.wd-close-side-opened"),n=document.querySelector(".mobile-nav .searchform input[type=text]");e&&e.classList.remove("wd-opened"),o&&(o.classList.remove("wd-opened"),jQuery(o).trigger("wdCloseSide")),o&&t&&t.classList.remove("wd-close-side-opened"),n&&n.blur()},woodmartThemeModule.mobileNavigation=function(){var e=document.querySelectorAll(".wd-side-hidden-nav .wd-nav-mobile .menu-item-has-children"),o=document.querySelectorAll(".wd-side-hidden-nav"),t=document.querySelector(".wd-close-side"),n=document.querySelectorAll(".mobile-nav .login-side-opener, .mobile-nav .close-side-widget");woodmartThemeModule.mobileNavigationAddOpeners(e),o.forEach(function(e){woodmartThemeModule.mobileNavigationClickAction(e)}),document.querySelectorAll(".wd-header-mobile-nav > a").forEach(function(e){e.addEventListener("click",openMobileNavEvent)}),t&&(t.addEventListener("click",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()}),t.addEventListener("touchstart",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()},{passive:!1})),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&document.querySelector(".wd-side-hidden-nav").classList.contains("wd-opened")&&woodmartThemeModule.closeMobileNavigation()}),woodmartThemeModule.mobileNavigationCloseSideWidgets(n)},window.addEventListener("load",function(){woodmartThemeModule.mobileNavigation()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.mobileNavigation()}),window.addEventListener("wdHeaderBuilderCloneCreated",function(){var e=document.querySelector(".whb-clone .wd-header-mobile-nav > a");e&&e.addEventListener("click",openMobileNavEvent)});
!function(a){woodmartThemeModule.cartWidget=function(){var e=woodmartThemeModule.$body,o=a(".cart-widget-side"),d=a(".wd-close-side"),t=(e.on("click wdOpenWidgetCart",".cart-widget-opener",function(e){r()||i()||e.preventDefault(),c()?t():setTimeout(function(){n()},10)}),e.on("click touchstart",".wd-close-side",function(){c()&&t()}),e.on("click",".close-side-widget",function(e){e.preventDefault(),c()&&t()}),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&c()&&t()}),function(){o.trigger("wdCloseSide"),o.removeClass("wd-opened"),d.removeClass("wd-close-side-opened")}),n=function(){if(r()||i())return!1;o.trigger("wdOpenSide"),o.addClass("wd-opened"),d.addClass("wd-close-side-opened")},c=function(){return o.hasClass("wd-opened")},r=function(){return woodmartThemeModule.$body.hasClass("woocommerce-cart")},i=function(){return woodmartThemeModule.$body.hasClass("woocommerce-checkout")}},a(document).ready(function(){woodmartThemeModule.cartWidget()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.cartWidget()})}(jQuery);
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});