jQuery(document).ready(function(){var t=!1;void 0!==eztoc_smooth_local.JumpJsLinks&&1===parseInt(eztoc_smooth_local.JumpJsLinks)&&(t=!0),document.querySelectorAll(".ez-toc-link").forEach(t=>{t=t.replaceWith(t.cloneNode(!0))}),document.querySelectorAll(".ez-toc-section").forEach(t=>{t.setAttribute("ez-toc-data-id","#"+decodeURI(t.getAttribute("id")))}),jQuery("a.ez-toc-link").click(function(){let e=jQuery(this).attr("data-href"),i=jQuery(this).attr("href");if(1===parseInt(eztoc_smooth_local.add_request_uri)||1===parseInt(eztoc_smooth_local.add_self_reference_link)){if(jQuery(this).attr("data-href")){let r=jQuery(this).attr("data-href").split("#");r&&r.length>1&&(e=`#${r[1]}`)}if(jQuery(this).attr("href")){let a=jQuery(this).attr("href").split("#");a&&a.length>1&&(i=`#${a[1]}`)}}let l=t?e:i,o=jQuery("#wpadminbar"),s=jQuery("header"),h=0;if(parseInt(eztoc_smooth_local.scroll_offset)>30&&(h=parseInt(eztoc_smooth_local.scroll_offset)),o.length&&(h+=o.height()),(s.length&&"fixed"==s.css("position")||"sticky"==s.css("position"))&&(h+=s.height()),jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').length>0&&(h=jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').offset().top-h),jQuery("html, body").animate({scrollTop:h},500),t)return!1})});
!function(factory){var registeredInModuleLoader;if("function"==typeof define&&define.amd&&(define(factory),registeredInModuleLoader=!0),"object"==typeof exports&&(module.exports=factory(),registeredInModuleLoader=!0),!registeredInModuleLoader){var OldCookies=window.Cookies,api=window.Cookies=factory();api.noConflict=function(){return window.Cookies=OldCookies,api}}}((function(){function extend(){for(var i=0,result={};i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key]}return result}function decode(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function init(converter){function api(){}function set(key,value,attributes){if("undefined"!=typeof document){"number"==typeof(attributes=extend({path:"/"},api.defaults,attributes)).expires&&(attributes.expires=new Date(1*new Date+864e5*attributes.expires)),attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{var result=JSON.stringify(value);/^[\{\[]/.test(result)&&(value=result)}catch(e){}value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),key=encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes)attributes[attributeName]&&(stringifiedAttributes+="; "+attributeName,!0!==attributes[attributeName]&&(stringifiedAttributes+="="+attributes[attributeName].split(";")[0]));return document.cookie=key+"="+value+stringifiedAttributes}}function get(key,json){if("undefined"!=typeof document){for(var jar={},cookies=document.cookie?document.cookie.split("; "):[],i=0;i<cookies.length;i++){var parts=cookies[i].split("="),cookie=parts.slice(1).join("=");json||'"'!==cookie.charAt(0)||(cookie=cookie.slice(1,-1));try{var name=decode(parts[0]);if(cookie=(converter.read||converter)(cookie,name)||decode(cookie),json)try{cookie=JSON.parse(cookie)}catch(e){}if(jar[name]=cookie,key===name)break}catch(e){}}return key?jar[key]:jar}}return api.set=set,api.get=function(key){return get(key,!1)},api.getJSON=function(key){return get(key,!0)},api.remove=function(key,attributes){set(key,"",extend(attributes,{expires:-1}))},api.defaults={},api.withConverter=init,api}return init((function(){}))}));
(function(){var a,b;a=this.jQuery||window.jQuery;b=a(window);a.fn.stick_in_parent=function(d){var p,m,o,n,j,h,k,f,l,e,c,g;if(d==null){d={};}g=d.sticky_class,h=d.inner_scrolling,c=d.recalc_every,e=d.parent,l=d.offset_top,f=d.spacer,o=d.bottoming;
if(l==null){l=0;}if(e==null){e=void 0;}if(h==null){h=true;}if(g==null){g="is_stuck";}p=a(document);if(o==null){o=true;}n=function(t,G,q,i,B,C,y,z){var D,H,r,F,I,s,w,u,x,A,v,E;
if(t.data("sticky_kit")){return;}t.data("sticky_kit",true);I=p.height();w=t.parent();if(e!=null){w=w.closest(e);}if(!w.length){throw"failed to find stick parent";
}r=false;D=false;v=f!=null?f&&t.closest(f):a("<div />");u=function(){var J,L,K;if(z){return;}I=p.height();J=parseInt(w.css("border-top-width"),10);L=parseInt(w.css("padding-top"),10);
G=parseInt(w.css("padding-bottom"),10);q=w.offset().top+J+L;i=w.height();if(r){r=false;D=false;if(f==null){t.insertAfter(v);v.detach();}t.css({position:"",top:"",width:"",bottom:""}).removeClass(g);
K=true;}B=t.offset().top-(parseInt(t.css("margin-top"),10)||0)-l;C=t.outerHeight(true);y=t.css("float");if(v){v.css({width:t.outerWidth(true),height:C,display:t.css("display"),"vertical-align":t.css("vertical-align"),"float":y});
}if(K){return E();}};u();if(C===i){return;}F=void 0;s=l;A=c;E=function(){var L,O,M,K,J,N;if(z){return;}M=false;if(A!=null){A-=1;if(A<=0){A=c;u();M=true;
}}if(!M&&p.height()!==I){u();M=true;}K=b.scrollTop();if(F!=null){O=K-F;}F=K;if(r){if(o){J=K+C+s>i+q;if(D&&!J){D=false;t.css({position:"fixed",bottom:"",top:s}).trigger("sticky_kit:unbottom");
}}if(K<B){r=false;s=l;if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);}v.detach();}L={position:"",width:"",top:""};t.css(L).removeClass(g).trigger("sticky_kit:unstick");
}if(h){N=b.height();if(C+l>N){if(!D){s-=O;s=Math.max(N-C,s);s=Math.min(l,s);if(r){t.css({top:s+"px"});}}}}}else{if(K>B){r=true;L={position:"fixed",top:s};
L.width=t.css("box-sizing")==="border-box"?t.outerWidth()+"px":t.width()+"px";t.css(L).addClass(g);if(f==null){t.after(v);if(y==="left"||y==="right"){v.append(t);
}}t.trigger("sticky_kit:stick");}}if(r&&o){if(J==null){J=K+C+s>i+q;}if(!D&&J){D=true;if(w.css("position")==="static"){w.css({position:"relative"});}return t.css({position:"absolute",bottom:G,top:"auto"}).trigger("sticky_kit:bottom");
}}};x=function(){u();return E();};H=function(){z=true;b.off("touchmove",E);b.off("scroll",E);b.off("resize",x);a(document.body).off("sticky_kit:recalc",x);
t.off("sticky_kit:detach",H);t.removeData("sticky_kit");t.css({position:"",bottom:"",top:"",width:""});w.position("position","");if(r){if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);
}v.remove();}return t.removeClass(g);}};b.on("touchmove",E);b.on("scroll",E);b.on("resize",x);a(document.body).on("sticky_kit:recalc",x);t.on("sticky_kit:detach",H);
return setTimeout(E,0);};for(j=0,k=this.length;j<k;j++){m=this[j];n(a(m));}return this;};}).call(this);
jQuery((function(e){if("undefined"!=typeof ezTOC){function t(){if(0!==e(".ez-toc-widget-container.ez-toc-affix").length){var t=30;void 0!==ezTOC.scroll_offset&&(t=parseInt(ezTOC.scroll_offset)),e(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:t})}if(e.fn.shrinkTOCWidth=function(){e(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&e(this).css("width","")},void 0!==ezTOC.visibility_hide_by_default){var o=e(".ez-toc-toggle:not(.ez-toc-loaded),.ez-toc-widget-sticky-toggle:not(.ez-toc-loaded)"),i=void 0!==ezTOC.visibility_hide_by_device?ezTOC.visibility_hide_by_device:0,c=ezTOC.visibility_hide_by_default;e.each(o,(function(t,o){var n=e(this);e(n).addClass("ez-toc-loaded");var s=e(n).parents("#ez-toc-container,#ez-toc-widget-container,#ez-toc-widget-sticky-container").find("ul.ez-toc-list,ul.ez-toc-widget-sticky-list");if(e(s).hasClass("eztoc-toggle-hide-by-default")&&(c=1),"undefined"!=typeof Cookies&&(Cookies?(1==Cookies.get("ezTOC_hidetoc-"+t)?e(n).data("visible",!1):e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t)):(e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t))),c&&"0"!=i&&e(n).data("visible",!1),!e(n).data("visible")){s.hide();const e=document.querySelector("#ez-toc-container");if(e){const t=e.querySelector(".ez-toc-box-title");t&&t.classList.add("toc-closed")}else{const e=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");if(e){const t=e.querySelector(".ez-toc-box-title");t&&t.classList.add("toc-closed")}}}e(n).on("click",(function(o){o.preventDefault();const i=document.querySelector("#ez-toc-container");if(i){i.classList.toggle("toc_close");const e=i.querySelector(".ez-toc-box-title");e&&e.classList.toggle("toc-closed")}else{const e=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");e.classList.toggle("toc_close");const t=e.querySelector(".ez-toc-box-title");t&&t.classList.toggle("toc-closed")}e(this).data("visible")?(e(this).data("visible",!1),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"})),s.hide("fast")):(e(this).data("visible",!0),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"})),s.show("fast"))}))}))}var n=e("span.ez-toc-section").toArray(),s=function(t){return t.reduce((function(t,o){return t[o.id]=function(t){return e('.ez-toc-widget-container .ez-toc-list a[href="#'+e(t).attr("id")+'"]')}(o),t}),{})}(n),a=e.map(s,(function(e,t){return e})),l=function(){var t=5;void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(t=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30);var o=e("#wpadminbar");o.length&&(t+=o.height());return t}();function r(){var t=function(t,o){var i=e(window).scrollTop()+t+1,c=o[0],n=i-e(c).offset().top;return o.forEach((function(t){var o=i-e(t).offset().top;o>0&&o<n&&(n=o,c=t)})),c}(l,n);if(t){var o=s[t.id];!function(e,t){t.forEach((function(t){e!==t&&t.parent().hasClass("active")&&t.parent().removeClass("active")}))}(o,a),function(t){var o=t.parent();o.hasClass("active")||o.addClass("active");!function(t){var o=function(t){var o=e(t),i=o.html();o.parent().append('<li id="ez-toc-height-test" class="active">'+i+"</li>");var c=e("#ez-toc-height-test"),n=c.height();return c.remove(),n-(o.children("ul").first().height()||0)}(t);!function(t){e(".ez-toc-widget-container ul.ez-toc-list li.active").css("height",t+"px")}(o)}(o)}(o)}}n.length>0&&e(".ez-toc-widget-container").length&&e(window).on("load resize scroll",r)}function o(){e('.ez-toc-list[class*="ez-toc-columns-"]').each((function(){var t=e(this),o=t.attr("class").match(/ez-toc-columns-(\d+)/);o&&(parseInt(o[1])<=1||(t.addClass("ez-toc-columns-optimized"),t.find("li").each((function(){var t=e(this);t.outerHeight()>50&&t.css("break-inside","avoid")}))))}))}e("#ez-toc-container").length&&(e("#ez-toc-container .ez-toc-toggle label span").html()||e("#ez-toc-container .ez-toc-toggle label").html(ezTOC.fallbackIcon)),ezTOC.init=function(){t()},t(),setTimeout(o,100),void 0!==ezTOC.ajax_toggle&&1===parseInt(ezTOC.ajax_toggle)&&e(document).ajaxComplete((function(){t(),setTimeout(o,100)}))}e(document).on("click","#ez-toc-open-sub-hd",(function(t){e(this).attr("id","ez-toc-open-sub-hd-active"),t.preventDefault()})),e(document).on("click","#ez-toc-open-sub-hd-active",(function(t){e(this).attr("id","ez-toc-open-sub-hd"),t.preventDefault()})),e("#ez-toc-more-links-enabler").click((function(){e(".ez-toc-more-link").show(),e("#ez-toc-more-links-enabler").hide(),e("#ez-toc-more-links-disabler").attr("style","display:inline-block")})),e("#ez-toc-more-links-disabler").click((function(){e(".ez-toc-more-link").hide(),e("#ez-toc-more-links-enabler").show(),e("#ez-toc-more-links-disabler").hide()})),1===parseInt(ezTOC.chamomile_theme_is_on)&&e("#ez-toc-container").find(".hamburger").remove()}));
(function(){"use strict";window.kadence={initOutlineToggle:function(){document.body.addEventListener("keydown",function(){document.body.classList.remove("hide-focus-outline")}),document.body.addEventListener("mousedown",function(){document.body.classList.add("hide-focus-outline")})},getOffset:function(a){if(a instanceof HTMLElement){var b=a.getBoundingClientRect();return{top:b.top+window.pageYOffset,left:b.left+window.pageXOffset}}return{top:null,left:null}},findParents:function(a,b){function c(a){var e=a.parentNode;e instanceof HTMLElement&&(e.matches(b)&&d.push(e),c(e))}var d=[];return c(a),d},toggleAttribute:function(a,b,c,d){c===void 0&&(c=!0),d===void 0&&(d=!1),a.getAttribute(b)===c?a.setAttribute(b,d):a.setAttribute(b,c)},initNavToggleSubmenus:function(){var a=document.querySelectorAll(".nav--toggle-sub");if(a.length)for(let b=0;b<a.length;b++)window.kadence.initEachNavToggleSubmenu(a[b]),window.kadence.initEachNavToggleSubmenuInside(a[b])},initEachNavToggleSubmenu:function(a){var b=a.querySelectorAll(".menu ul");if(b.length)for(let a=0;a<b.length;a++){var c=b[a].parentNode;let f=c.querySelector(".dropdown-nav-toggle");if(f){var d=c.querySelector(".nav-drop-title-wrap").firstChild.textContent.trim(),e=document.createElement("BUTTON");e.setAttribute("aria-label",d?kadenceConfig.screenReader.expandOf+" "+d:kadenceConfig.screenReader.expand),e.classList.add("dropdown-nav-special-toggle"),c.insertBefore(e,c.childNodes[1]),e.addEventListener("click",function(a){a.preventDefault(),window.kadence.toggleSubMenu(a.target.closest("li"))}),c.addEventListener("mouseleave",function(a){window.kadence.toggleSubMenu(a.target,!1)}),c.querySelector("a").addEventListener("focus",function(a){var b=a.target.parentNode.parentNode.querySelectorAll("li.menu-item--toggled-on");for(let d=0;d<b.length;d++)c!==b[d]&&window.kadence.toggleSubMenu(b[d],!1)}),b[a].addEventListener("keydown",function(c){var d="ul.toggle-show > li > a, ul.toggle-show > li > .dropdown-nav-special-toggle";if(9===c.keyCode){var d="ul.toggle-show > li > a, ul.toggle-show > li > .dropdown-nav-special-toggle";b[a].parentNode.classList.contains("kadence-menu-mega-enabled")&&(d="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex=\"0\"], [contenteditable]"),c.shiftKey?window.kadence.isfirstFocusableElement(b[a],document.activeElement,d)&&window.kadence.toggleSubMenu(b[a].parentNode,!1):window.kadence.islastFocusableElement(b[a],document.activeElement,d)&&window.kadence.toggleSubMenu(b[a].parentNode,!1)}27===c.keyCode&&(window.kadence.toggleSubMenu(b[a].parentNode,!1),b[a].parentNode.querySelector(".dropdown-nav-special-toggle").focus())}),b[a].parentNode.classList.add("menu-item--has-toggle")}}},initEachNavToggleSubmenuInside:function(a){var b=a.querySelectorAll(".menu-item-has-children");if(b.length)for(let a=0;a<b.length;a++)b[a].addEventListener("mouseenter",function(){if(b[a].querySelector("ul.sub-menu")){var c=b[a].querySelector("ul.sub-menu"),d=window.kadence.getOffset(c),e=d.left,f=c.offsetWidth,g=window.innerWidth;e+f<=g||c.classList.add("sub-menu-edge")}})},toggleSubMenu:function(a,b){var c=a.querySelector(".dropdown-nav-special-toggle"),d=a.querySelector("ul");let e=a.classList.contains("menu-item--toggled-on");var f=a.querySelector(".nav-drop-title-wrap").firstChild.textContent.trim();if(void 0!==b&&"boolean"==typeof b&&(e=!b),c.setAttribute("aria-expanded",(!e).toString()),e){setTimeout(function(){a.classList.remove("menu-item--toggled-on"),d.classList.remove("toggle-show"),c.setAttribute("aria-label",f?kadenceConfig.screenReader.expandOf+" "+f:kadenceConfig.screenReader.expand)},5);var g=a.querySelectorAll(".menu-item--toggled-on");for(let a=0;a<g.length;a++)window.kadence.toggleSubMenu(g[a],!1)}else{var h=a.parentNode.querySelectorAll("li.menu-item--toggled-on");for(let a=0;a<h.length;a++)window.kadence.toggleSubMenu(h[a],!1);a.classList.add("menu-item--toggled-on"),d.classList.add("toggle-show"),c.setAttribute("aria-label",f?kadenceConfig.screenReader.collapseOf+" "+f:kadenceConfig.screenReader.collapse)}},isfirstFocusableElement:function(a,b,c){var d=a.querySelectorAll(c);return!!(0<d.length)&&b===d[0]},islastFocusableElement:function(a,b,c){var d=a.querySelectorAll(c);return!!(0<d.length)&&b===d[d.length-1]},toggleDrawer:function(a,b){b="undefined"==typeof b||b;var c=a,d=document.querySelector(c.dataset.toggleTarget);if(d){var e=window.innerWidth-document.documentElement.clientWidth,f=c.dataset.toggleDuration?c.dataset.toggleDuration:250;if(window.kadence.toggleAttribute(c,"aria-expanded","true","false"),d.classList.contains("show-drawer"))c.dataset.toggleBodyClass&&document.body.classList.remove(c.dataset.toggleBodyClass),d.classList.remove("active"),d.classList.remove("pop-animated"),document.body.classList.remove("kadence-scrollbar-fixer"),setTimeout(function(){d.classList.remove("show-drawer");var a=new Event("kadence-drawer-closed");if(window.dispatchEvent(a),c.dataset.setFocus&&b){var e=document.querySelector(c.dataset.setFocus);e&&(e.focus(),e.hasAttribute("aria-expanded")&&window.kadence.toggleAttribute(e,"aria-expanded","true","false"))}},f);else if(d.classList.add("show-drawer"),c.dataset.toggleBodyClass&&(document.body.classList.toggle(c.dataset.toggleBodyClass),c.dataset.toggleBodyClass.includes("showing-popup-drawer-")&&(document.body.style.setProperty("--scrollbar-offset",e+"px"),document.body.classList.add("kadence-scrollbar-fixer"))),setTimeout(function(){d.classList.add("active");var a=new Event("kadence-drawer-opened");if(window.dispatchEvent(a),c.dataset.setFocus&&b){var e=document.querySelector(c.dataset.setFocus);if(e){e.hasAttribute("aria-expanded")&&window.kadence.toggleAttribute(e,"aria-expanded","true","false");var f=e.value;e.value="",e.focus(),e.value=f}}},10),setTimeout(function(){d.classList.add("pop-animated")},f),d.classList.contains("popup-drawer")){var g=d.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])"),h=g[0],i=g[g.length-1];document.addEventListener("keydown",function(a){let b="Tab"===a.key||9===a.keyCode;b&&(a.shiftKey?document.activeElement===h&&(i.focus(),a.preventDefault()):document.activeElement===i&&(h.focus(),a.preventDefault()))})}}},initToggleDrawer:function(){var a=document.querySelectorAll(".drawer-toggle");if(a.length){for(let b=0;b<a.length;b++)a[b].addEventListener("click",function(c){c.preventDefault(),window.kadence.toggleDrawer(a[b])});document.addEventListener("keyup",function(a){27===a.keyCode&&document.querySelectorAll(".popup-drawer.show-drawer.active")&&(a.preventDefault(),document.querySelectorAll(".popup-drawer.show-drawer.active").forEach(function(a){window.kadence.toggleDrawer(document.querySelector("*[data-toggle-target=\""+a.dataset.drawerTargetString+"\"]"))}))}),document.addEventListener("click",function(a){var b=a.target,c=document.querySelector(".show-drawer.active .drawer-overlay");b===c&&window.kadence.toggleDrawer(document.querySelector("*[data-toggle-target=\""+c.dataset.drawerTargetString+"\"]"));var d=document.querySelector("#search-drawer.show-drawer.active .drawer-content"),c=document.querySelector("#search-drawer.show-drawer.active .drawer-overlay");b===d&&window.kadence.toggleDrawer(document.querySelector("*[data-toggle-target=\""+c.dataset.drawerTargetString+"\"]"))})}},initMobileToggleSub:function(){var a=document.querySelectorAll(".has-collapse-sub-nav");a.forEach(function(a){var b=a.querySelector(".current-menu-item");b&&window.kadence.findParents(b,"li").forEach(function(a){var b=a.querySelector(".drawer-sub-toggle");b&&window.kadence.toggleDrawer(b,!0)})});var b=document.querySelectorAll(".drawer-sub-toggle");if(b.length)for(let a=0;a<b.length;a++)b[a].addEventListener("click",function(c){c.preventDefault(),window.kadence.toggleDrawer(b[a])})},initMobileToggleAnchor:function(){var a=document.getElementById("mobile-drawer");if(a){var b=a.querySelectorAll("a:not(.kt-tab-title)");if(b.length)for(let c=0;c<b.length;c++)b[c].addEventListener("click",function(){window.kadence.toggleDrawer(a.querySelector(".menu-toggle-close"),!1)})}},initTransHeaderPadding:function(){if(!document.body.classList.contains("no-header")&&document.body.classList.contains("transparent-header")&&document.body.classList.contains("mobile-transparent-header")){var a=document.querySelector(".entry-hero-container-inner"),b=document.querySelector("#masthead"),c=function(){b,a.style.paddingTop=kadenceConfig.breakPoints.desktop<=window.innerWidth?document.body.classList.contains("transparent-header")?b.offsetHeight+"px":0:document.body.classList.contains("mobile-transparent-header")?b.offsetHeight+"px":0};a&&(window.addEventListener("resize",c,!1),window.addEventListener("scroll",c,!1),window.addEventListener("load",c,!1),c())}},initStickyHeader:function(){var a=document.querySelector("#main-header .kadence-sticky-header"),b=document.querySelector("#mobile-header .kadence-sticky-header"),c=document.getElementById("wrapper"),d=document.querySelectorAll(".kadence-pro-fixed-above"),f=document.querySelectorAll(".kadence-before-wrapper-item"),g="mobile",h=0,i=0;parseInt(kadenceConfig.breakPoints.desktop)<window.innerWidth?(g="desktop",a&&(a.style.position="static",i=window.kadence.getOffset(a).top,a.style.position=null)):b&&(b.style.position="static",i=window.kadence.getOffset(b).top,b.style.position=null);var j=function(j){var e,k=window.kadence.getOffset(c).top;if(document.body.classList.toString().includes("boom_bar-static-top")){var l=document.querySelector(".boom_bar");k=window.kadence.getOffset(c).top-l.offsetHeight}if(f.length){var m=0;for(let a=0;a<f.length;a++)m+=f[a].offsetHeight;k=window.kadence.getOffset(c).top-m}if(d.length){var n=0;for(let a=0;a<d.length;a++)n+=d[a].offsetHeight;k=window.kadence.getOffset(c).top+n}if(e=kadenceConfig.breakPoints.desktop<=window.innerWidth?a:b,!!e){kadenceConfig.breakPoints.desktop<=window.innerWidth?"mobile"===g?(i=window.kadence.getOffset(e).top,g="desktop"):j&&"updateActive"===j&&(e.style.top="auto",i=window.kadence.getOffset(e).top,g="desktop"):"desktop"===g?(i=window.kadence.getOffset(e).top,g="mobile"):j&&"updateActive"===j&&(e.style.top="auto",i=window.kadence.getOffset(e).top,g="mobile");var o=e.parentNode,p=e.getAttribute("data-shrink"),q=e.getAttribute("data-reveal-scroll-up"),r=parseInt(e.getAttribute("data-start-height"));if((!r||j&&void 0!==j.type&&"orientationchange"===j.type)&&(e.setAttribute("data-start-height",e.offsetHeight),r=e.offsetHeight,o.classList.contains("site-header-upper-inner-wrap")?(o.style.height=null,j&&void 0!==j.type&&"orientationchange"===j.type?e.classList.contains("item-is-fixed")?setTimeout(function(){o.style.height=Math.floor(o.offsetHeight+e.offsetHeight)+"px"},21):setTimeout(function(){o.style.height=o.offsetHeight+"px"},21):o.style.height=o.offsetHeight+"px"):o.classList.contains("site-header-inner-wrap")?(o.style.height=null,o.style.height=o.offsetHeight+"px"):o.style.height=e.offsetHeight+"px"),"true"===p){var s=e.getAttribute("data-shrink-height");if(s){if("true"!==q)var t=Math.floor(i-k);else if(window.scrollY>h)var t=Math.floor(Math.floor(i)-Math.floor(k)+Math.floor(r));else var t=Math.floor(i-k);var u=e.querySelectorAll(".custom-logo"),v=e.querySelector(".site-main-header-inner-wrap"),w=parseInt(v.getAttribute("data-start-height"));if(w||(v.setAttribute("data-start-height",v.offsetHeight),w=v.offsetHeight),window.scrollY<=t){if(v.style.height=w+"px",v.style.minHeight=w+"px",v.style.maxHeight=w+"px",u)for(let a,b=0;b<u.length;b++)a=u[b],a.style.maxHeight="100%";}else if(window.scrollY>t){var x=Math.max(s,w-(window.scrollY-(i-k)));if(v.style.height=x+"px",v.style.minHeight=x+"px",v.style.maxHeight=x+"px",u)for(let a,b=0;b<u.length;b++)a=u[b],a.style.maxHeight=x+"px"}}}if("true"===q){var y=Math.floor(i-k),z=window.scrollY,A=e.offsetHeight,B=h-z,C=window.getComputedStyle(e).getPropertyValue("transform").match(/(-?[0-9\.]+)/g);if(C&&void 0!==C[5]&&C[5])var D=parseInt(C[5])+B;else var D=0;var E=z>h;if(z<=y)e.style.transform="translateY(0px)";else if(E)e.classList.add("item-hidden-above"),e.style.transform="translateY("+(Math.abs(D)>A?-A:D)+"px)";else{var y=Math.floor(i-k);e.style.transform="translateY("+(0<D?0:D)+"px)",e.classList.remove("item-hidden-above")}h=z}else var y=Math.floor(i-k);window.scrollY==y?(e.style.top=k+"px",e.classList.add("item-is-fixed"),e.classList.add("item-at-start"),e.classList.remove("item-is-stuck"),o.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):window.scrollY>y?"true"===q?window.scrollY<A+60&&e.classList.contains("item-at-start")?(e.style.height=null,e.style.top=k+"px",e.classList.add("item-is-fixed"),e.classList.add("item-is-stuck"),o.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):(e.style.top=k+"px",e.classList.add("item-is-fixed"),e.classList.add("item-is-stuck"),e.classList.remove("item-at-start"),o.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):(e.style.top=k+"px",e.classList.add("item-is-fixed"),e.classList.remove("item-at-start"),e.classList.add("item-is-stuck"),o.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):e.classList.contains("item-is-fixed")&&(e.classList.remove("item-is-fixed"),e.classList.remove("item-at-start"),e.classList.remove("item-is-stuck"),e.style.height=null,e.style.top=null,o.classList.remove("child-is-fixed"),document.body.classList.remove("header-is-fixed"))}};if((a||b)&&(window.addEventListener("resize",j,!1),window.addEventListener("scroll",j,!1),window.addEventListener("load",j,!1),window.addEventListener("orientationchange",j),"complete"===document.readyState&&j("updateActive"),document.body.classList.contains("woocommerce-demo-store")&&document.body.classList.contains("kadence-store-notice-placement-above"))){var k=function(a,b){var c={root:document.documentElement},d=new IntersectionObserver(a=>{a.forEach(a=>{b(0<a.intersectionRatio)})},c);d.observe(a)};k(document.querySelector(".woocommerce-store-notice"),()=>{j("updateActive")})}},getTopOffset:function(a="scroll"){if("load"===a)var b=document.querySelector("#main-header .kadence-sticky-header"),c=document.querySelector("#mobile-header .kadence-sticky-header");else var b=document.querySelector("#main-header .kadence-sticky-header:not([data-reveal-scroll-up=\"true\"])"),c=document.querySelector("#mobile-header .kadence-sticky-header:not([data-reveal-scroll-up=\"true\"])");var d=0,e=0;if(kadenceConfig.breakPoints.desktop<=window.innerWidth){if(b){var f=b.getAttribute("data-shrink");d="true"!==f||b.classList.contains("site-header-inner-wrap")?Math.floor(b.offsetHeight):Math.floor(b.getAttribute("data-shrink-height"))}else d=0;document.body.classList.contains("admin-bar")&&(e=32)}else{if(c){var f=c.getAttribute("data-shrink");d="true"===f?Math.floor(c.getAttribute("data-shrink-height")):Math.floor(c.offsetHeight)}else d=0;document.body.classList.contains("admin-bar")&&(e=46)}return Math.floor(d+e+Math.floor(kadenceConfig.scrollOffset))},scrollToElement:function(a,b,c="scroll"){b=!("undefined"!=typeof b)||b;var d=window.kadence.getTopOffset(c),e=Math.floor(a.getBoundingClientRect().top)-d;window.scrollBy({top:e,left:0,behavior:"smooth"}),a.tabIndex="-1",a.focus({preventScroll:!0}),a.classList.contains("kt-title-item")&&a.firstElementChild.click(),b&&window.history.pushState("","","#"+a.id)},anchorScrollToCheck:function(a,b){if(b="undefined"==typeof b?null:b,a.target.getAttribute("href"))var c=a.target;else{var c=a.target.closest("a");if(!c)return;if(!c.getAttribute("href"))return}if(!(c.parentNode&&c.parentNode.hasAttribute("role")&&"tab"===c.parentNode.getAttribute("role"))){var d=b?b.getAttribute("href").substring(b.getAttribute("href").indexOf("#")):c.getAttribute("href").substring(c.getAttribute("href").indexOf("#"));var e=document.getElementById(d.replace("#",""));e&&(e?.classList?.contains("kt-accordion-pane")||(a.preventDefault(),window.kadence.scrollToElement(e),window.kadence.updateActiveAnchors()))}},initStickySidebarWidget:function(){if(document.body.classList.contains("has-sticky-sidebar-widget")){var a=window.kadence.getTopOffset(),b=document.querySelector("#secondary .sidebar-inner-wrap .widget:last-child");b&&(b.style.top=Math.floor(a+20)+"px",b.style.maxHeight="calc(100vh - "+Math.floor(a+20)+"px)")}},initStickySidebar:function(){if(document.body.classList.contains("has-sticky-sidebar")){var a=window.kadence.getTopOffset(),b=document.querySelector("#secondary .sidebar-inner-wrap");b&&(b.style.top=Math.floor(a+20)+"px",b.style.maxHeight="calc(100vh - "+Math.floor(a+20)+"px)")}},initActiveAnchors:function(){""!=window.location.hash&&window.kadence.updateActiveAnchors(),window.onhashchange=function(){window.kadence.updateActiveAnchors()}},updateActiveAnchors:function(){const a=document.querySelectorAll(".menu-item");a.forEach(function(a){const b=a.querySelector("a");b?.href&&b.href.includes("#")&&(window.location.href==b.href?a.classList.add("current-menu-item"):a.classList.remove("current-menu-item"))})},initAnchorScrollTo:function(){if(!document.body.classList.contains("no-anchor-scroll")){if(window.onhashchange=function(){""===window.location.hash&&(window.scrollTo({top:0,behavior:"smooth"}),document.activeElement.blur())},""!=window.location.hash){var a,b=location.hash.substring(1);if(!/^[A-z0-9_-]+$/.test(b))return;a=document.getElementById(b),a&&window.setTimeout(function(){window.kadence.scrollToElement(a,!1,"load")},100)}var c=document.querySelectorAll("a[href*=\\#]:not([href=\\#]):not(.scroll-ignore):not([data-tab]):not([data-toggle])");c.length&&c.forEach(function(a){try{var b=new URL(a.href);b.pathname===window.location.pathname&&a.addEventListener("click",function(a){window.kadence.anchorScrollToCheck(a)})}catch(b){console.log("ClassList: "+a.classList,"Invalid URL")}})}},initScrollToTop:function(){var a=document.getElementById("kt-scroll-up");if(a){var b=function(){100<window.scrollY?(a.classList.add("scroll-visible"),a.setAttribute("aria-hidden",!1)):(a.classList.remove("scroll-visible"),a.setAttribute("aria-hidden",!0))};window.addEventListener("scroll",b),b(),a.addEventListener("click",function(a){a.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),document.querySelector(".skip-link").focus({preventScroll:!0}),document.activeElement.blur()})}var c=document.getElementById("kt-scroll-up-reader");c&&c.addEventListener("click",function(a){a.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),document.querySelector(".skip-link").focus()})},initClickToOpen:function(){const a=document.querySelectorAll(".header-navigation.click-to-open li.menu-item--has-toggle");a.forEach(function(a){const b=a.querySelector("a"),c=a.querySelector("button[class=\"dropdown-nav*\"]");[b,c].forEach(function(b){b&&b.addEventListener("click",function(b){b.preventDefault();const c=a.querySelector("ul.sub-menu");if(c){const b=c.classList.contains("opened");c.classList.toggle("opened",!b);const d=Array.from(a.parentNode.children).filter(b=>b!==a);if(d.forEach(function(a){const b=a.querySelector(":scope > ul.sub-menu");b&&b.classList.remove("opened")}),!b){const b=d=>{a.contains(d.target)||(c.classList.remove("opened"),document.removeEventListener("click",b))};document.addEventListener("click",b)}}})})})},init:function(){window.kadence.initNavToggleSubmenus(),window.kadence.initToggleDrawer(),window.kadence.initMobileToggleAnchor(),window.kadence.initMobileToggleSub(),window.kadence.initOutlineToggle(),window.kadence.initStickyHeader(),window.kadence.initStickySidebar(),window.kadence.initStickySidebarWidget(),window.kadence.initTransHeaderPadding(),window.kadence.initAnchorScrollTo(),window.kadence.initScrollToTop(),window.kadence.initActiveAnchors(),window.kadence.initClickToOpen()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadence.init):window.kadence.init()})();
var advanced_ads_adblocker_test=navigator.brave===undefined ? true:undefined;
var _gaq=_gaq||[];var stFailbackDefaults={trackScrolling:true,stLogInterval:10,docTitle:window.document.title,cutOffTime:900,trackNoEvents:false,trackNoMaxTime:false};window.total_time=0;var stIntervalObj=null;var EventNONInteraction=false;var Frequency=null;var Repentance=null;function TrackingLogTime(a){return a[0]==50?(parseInt(a[1])+1)+":00":(a[1]||"0")+":"+(parseInt(a[0])+10)}function stInitializeControlVars(){if(typeof window.trackScrolling=="undefined"){window.trackScrolling=window.stFailbackDefaults.trackScrolling}if(typeof window.stLogInterval=="undefined"){window.stLogInterval=window.stFailbackDefaults.stLogInterval*1000}if(typeof window.docTitle=="undefined"){window.docTitle=window.stFailbackDefaults.docTitle}if(typeof window.cutOffTime=="undefined"){window.cutOffTime=window.stFailbackDefaults.cutOffTime}if(typeof window.trackNoEvents=="undefined"){window.trackNoEvents=window.stFailbackDefaults.trackNoEvents}if(typeof window.trackNoMaxTime=="undefined"){window.trackNoMaxTime=window.stFailbackDefaults.trackNoMaxTime}if(window.trackScrolling===true){setTimeout(function(){window.onscroll=function(){window.onscroll=null;ga("send","event","Scroll",window.docTitle,"scrolled")}},2000)}}if(window.trackNoEvents===false){function startTimeTracking(a){stInitializeControlVars();window.stIntervalObj=window.setInterval(function(){total_time+=10;if(window.trackNoMaxTime===true){total_time=1}if(window.total_time<=window.cutOffTime){a=TrackingLogTime(a.split(":").reverse());ga("send","event","Time","Log",a)}else{window.clearInterval(window.stIntervalObj)}},(window.stLogInterval))}jQuery(document).ready(function(){startTimeTracking("00")})}if(window.trackScrollingPercentage===true){Frequency=ScrollingPercentageNumber;Repentance=100/ScrollingPercentageNumber;var ScrollMatrix=new Array();for(ix=0;ix<Repentance;ix++){ScrollMatrix[ix]=[Frequency,"false"];Frequency=ScrollingPercentageNumber+Frequency}$(document).scroll(function(a){for(iz=0;iz<ScrollMatrix.length;iz++){if(($(window).scrollTop()+$(window).height()>=$(document).height()*ScrollMatrix[iz][0]/100)&&(ScrollMatrix[iz][1]=="false")){ScrollMatrix[iz][1]="true";ga("send","event","Percentage Page Scroll",window.docTitle,ScrollMatrix[iz][0]+"%",{nonInteraction:EventNONInteraction})}}})};