Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(){var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return RegExp("(^|\\s+)"+e+"(\\s+|$)")},o=function(e,t,o){for(var n=0;n{e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(()=>{e.style.display=null,e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)},blogunSlideDown=(e,t=500)=>{e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;let n=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=n+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)},blogunScrollTo=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function e(){}};function t(e,t,o,n){return e/=n,-o*(--e*e*e*e-1)+t}function o(e,t){var o={};return Object.keys(e).forEach(function(t){o[t]=e[t]}),Object.keys(t).forEach(function(e){o[e]=t[e]}),o}function n(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function r(){var n=0d||0>i&&t{Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return -1{var e,t,o;!document.body.classList.contains("blogun-is-mobile")&&(o=window.innerWidth,document.querySelectorAll(".sub-menu").forEach(n=>{n.style.visibility="visible";let r=n.getBoundingClientRect();e=(t=r.left+window.pageXOffset)+r.width,n.removeAttribute("style"),e>o?n.closest("li").classList.add("opens-left"):0>t&&n.closest("li").classList.add("opens-right")}))},n=e=>{var t;return function(){var o=arguments;t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(function(){e.apply(this,o)})}},r=()=>{null!==e&&(450{if(blogun_vars["sticky-header"].enabled){var e,t,o=document.getElementById("blogun-header"),r=document.getElementById("blogun-header-inner"),l=document.getElementById("wpadminbar");if(document.body.classList.contains("blogun-header-layout-3")&&(o=document.querySelector("#blogun-header .blogun-nav-container"),r=document.querySelector("#blogun-header .blogun-nav-container .blogun-container")),window.outerWidth<=blogun_vars["responsive-breakpoint"])var o=document.getElementById("blogun-header"),r=document.getElementById("blogun-header-inner");if(null!==o&&null!==r){var i=o.getBoundingClientRect().bottom,s=0>=i-e;e=null===l?0:600>=window.outerWidth?0:l.getBoundingClientRect().height;var a=function(){e=null===l?0:600>=window.outerWidth?0:l.getBoundingClientRect().height,s=0>=(i=o.getBoundingClientRect().bottom)-e,c()},c=function(){let e=blogun_vars["sticky-header"].hide_on;e.includes("desktop")&&992<=window.innerWidth&&(s=!1),e.includes("tablet")&&481<=window.innerWidth&&992>window.innerWidth&&(s=!1),e.includes("mobile")&&481>window.innerWidth&&(s=!1),s?document.body.classList.contains("blogun-sticky-header")||((t=document.createElement("div")).setAttribute("id","blogun-sticky-placeholder"),t.style.height=r.getBoundingClientRect().height+"px",o.appendChild(t),document.body.classList.add("blogun-sticky-header"),document.body.style.setProperty("--blogun-sticky-h-offset",o.offsetHeight+20+"px")):(document.body.classList.contains("blogun-sticky-header")&&(document.body.classList.remove("blogun-sticky-header"),document.getElementById("blogun-sticky-placeholder").remove()),document.body.style.removeProperty("--blogun-sticky-h-offset"))};"true"!==o.getAttribute("data-scroll-listener")&&(window.addEventListener("scroll",function(){n(a())}),o.setAttribute("data-scroll-listener","true")),"true"!==o.getAttribute("data-resize-listener")&&(window.addEventListener("resize",function(){n(a())}),o.setAttribute("data-resize-listener","true")),blogunTriggerEvent(window,"scroll")}}},i=()=>{let e=new blogunScrollTo({tolerance:null===document.getElementById("wpadminbar")?0:document.getElementById("wpadminbar").getBoundingClientRect().height}),t=document.getElementsByClassName("blogun-smooth-scroll");for(var o=0;o{document.body.classList.contains("blogun-menu-accessibility")&&document.querySelectorAll(".blogun-nav").forEach(e=>{e.querySelectorAll("ul").forEach(e=>{e.parentNode.setAttribute("aria-haspopup","true")}),e.querySelectorAll("a").forEach(e=>{e.addEventListener("focus",a,!0),e.addEventListener("blur",a,!0)})})};function a(){for(var e=this;!e.classList.contains("blogun-nav");)"li"===e.tagName.toLowerCase()&&(e.classList.contains("hovered")?e.classList.remove("hovered"):e.classList.add("hovered")),e=e.parentElement}var c=()=>{document.body.addEventListener("keydown",function(e){document.body.classList.add("using-keyboard")}),document.body.addEventListener("mousedown",function(e){document.body.classList.remove("using-keyboard")})},d=()=>{document.body.style.setProperty("--blogun-screen-width",document.body.clientWidth+"px")},u=()=>{var e=null;document.querySelectorAll(".blogun-nav .menu-item-has-children").forEach(e=>{e.addEventListener("mouseenter",function(){document.querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("hovered")})})}),document.querySelectorAll(".blogun-nav .menu-item-has-children").forEach(t=>{t.addEventListener("mouseleave",function(){t.classList.add("hovered"),null!==e&&(clearTimeout(e),e=null),e=setTimeout(()=>{t.classList.remove("hovered"),t.querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("hovered")})},700)})})},g=()=>{var e=null;document.querySelectorAll(".blogun-header-widget__cart .blogun-widget-wrapper").forEach(e=>{e.addEventListener("mouseenter",function(){e.classList.remove("dropdown-visible")})}),document.querySelectorAll(".blogun-header-widget__cart .blogun-widget-wrapper").forEach(t=>{t.addEventListener("mouseleave",function(){t.classList.add("dropdown-visible"),null!==e&&(clearTimeout(e),e=null),e=setTimeout(()=>{t.classList.remove("dropdown-visible")},700)})})},m=()=>{var e=document.querySelectorAll(".blogun-search");if(0!==e.length){e.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.classList.contains("blogun-active")?n(e):o(e)})}),document.querySelectorAll(".blogun-search-close").forEach(e=>e.addEventListener("click",function(t){t.preventDefault(),e.classList.contains("blogun-active")||(n(document.querySelector(".blogun-search")),document.querySelector(".blogun-search").focus())}));var o=function(e){document.querySelectorAll(".blogun-search-form").forEach(function(e){if(!e)return!1;document.addEventListener("keydown",function(t){var o,n,r,l,i,s;n="input, a, button",l=(r=e.querySelectorAll(n))[r.length-1],o=r[0],i=9===t.keyCode,(s=t.shiftKey)||!i||l!==document.activeElement||(t.preventDefault(),o.focus()),s&&i&&o===document.activeElement&&(t.preventDefault(),l.focus())})}),document.body.classList.add("blogun-search-visible"),setTimeout(function(){e.classList.add("blogun-active"),null!==e.nextElementSibling&&null!==e.nextElementSibling.querySelector("input")&&(e.nextElementSibling.querySelector("input").focus(),e.nextElementSibling.querySelector("input").select())},100),document.addEventListener("keydown",r),t.addEventListener("click",l)},n=function(e){document.body.classList.remove("blogun-search-visible"),e.classList.remove("blogun-active"),document.removeEventListener("keydown",r),t.removeEventListener("click",l)},r=function(e){27==e.keyCode&&document.querySelectorAll(".blogun-search").forEach(e=>{n(e)})},l=function(e){null===e.target.closest(".blogun-search-container")&&null===e.target.closest(".blogun-search")&&document.querySelectorAll(".blogun-search").forEach(e=>{n(e)})}}},b=()=>{var e=t,o=document.querySelector("#blogun-header-inner .blogun-nav");document.querySelectorAll(".blogun-mobile-nav > button").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault(),document.body.parentNode.classList.contains("is-mobile-menu-active")?r():n()},!1)});var n=function(t){var n=document.querySelectorAll(".site-header");document.body.classList.contains("blogun-is-mobile")&&n.forEach(function(e){if(!e)return!1;document.addEventListener("keydown",function(t){var o,n,r,l,i,s,a;n=".blogun-nav a, .blogun-nav button",l=(r=e.querySelectorAll(n))[r.length-1],o=r[0],i=9===t.keyCode,s=t.shiftKey,a=document.querySelector(".blogun-hamburger-blogun-primary-nav"),!s&&i&&l===document.activeElement&&(t.preventDefault(),a.focus()),s&&i&&o===document.activeElement&&(t.preventDefault(),a.focus()),i&&o===l&&t.preventDefault()})}),document.body.parentNode.classList.add("is-mobile-menu-active"),document.addEventListener("keyup",i),null!==e&&e.addEventListener("click",l),document.querySelectorAll("#blogun-header .blogun-nav").forEach(e=>{e.addEventListener("click",s)}),blogunSlideDown(o,350)},r=function(t){document.body.parentNode.classList.remove("is-mobile-menu-active"),document.removeEventListener("keyup",i),null!==e&&e.removeEventListener("click",l),document.querySelectorAll("#blogun-header .blogun-nav > ul > .blogun-open").forEach(e=>{a(e)}),o.querySelectorAll(".hovered").forEach(e=>{e.classList.remove("hovered")}),document.body.classList.contains("blogun-is-mobile")?(document.querySelectorAll("#blogun-header .blogun-nav").forEach(e=>{e.removeEventListener("click",s)}),blogunSlideUp(o,250)):o.style.display=null},l=function(e){null===e.target.closest(".blogun-hamburger")&&null===e.target.closest(".site-navigation")&&r()},i=function(e){27==e.keyCode&&r()},s=function(e){e.target.parentElement.querySelectorAll(".sub-menu").length&&(e.preventDefault(),"button"===e.target.type&&a(e.target.parentElement))},a=e=>{e.classList.contains("blogun-open")?(e.classList.remove("blogun-open"),e.querySelectorAll(".sub-menu").forEach(e=>{blogunSlideUp(e,350)}),e.querySelectorAll("li").forEach(e=>{e.classList.remove("blogun-open"),e.querySelectorAll(".sub-menu").forEach(e=>{blogunSlideUp(e,350)})})):(e.querySelectorAll(".sub-menu").forEach(t=>{e===t.parentElement&&blogunSlideDown(t,350)}),e.classList.add("blogun-open"))};document.addEventListener("blogun-close-mobile-menu",r)},y=(e=0)=>{if(null!==document.getElementById("blogun-preloader")){var t=()=>{!document.body.classList.contains("blogun-loaded")&&(document.body.classList.add("blogun-loading"),setTimeout(function(){document.body.classList.replace("blogun-loading","blogun-loaded"),blogunTriggerEvent(document.body,"blogun-preloader-done")},250))};return 0{if(document.body.classList.contains("blogun-has-comments-toggle")&&null!=document.getElementById("blogun-comments-toggle")){var e=e=>{void 0!==e&&e.preventDefault(),document.body.classList.contains("comments-visible")?(document.body.classList.remove("comments-visible"),document.getElementById("blogun-comments-toggle").querySelector("span").innerHTML=blogun_vars.strings.comments_toggle_show):(document.body.classList.add("comments-visible"),document.getElementById("blogun-comments-toggle").querySelector("span").innerHTML=blogun_vars.strings.comments_toggle_hide)};null!==document.getElementById("blogun-comments-toggle")&&(-1!==location.href.indexOf("#comment")||-1!==location.href.indexOf("respond"))&&e(),document.getElementById("blogun-comments-toggle").addEventListener("click",e)}},h=()=>{var e=document.querySelector(".single .comments-link");null!==e&&e.addEventListener("click",function(e){document.body.classList.contains("blogun-has-comments-toggle")&&!document.body.classList.contains("comments-visible")&&document.getElementById("blogun-comments-toggle").click()})},p=()=>{window.innerWidth<=blogun_vars["responsive-breakpoint"]?document.body.classList.add("blogun-is-mobile"):document.body.classList.contains("blogun-is-mobile")&&(document.body.classList.remove("blogun-is-mobile"),blogunTriggerEvent(document,"blogun-close-mobile-menu"))};document.addEventListener("DOMContentLoaded",function(){y(5e3),s(),c(),r(),i(),u(),v(),m(),b(),p(),o(),h(),g(),l(),d()}),window.addEventListener("load",function(){y()}),window.addEventListener("scroll",function(){n(r())}),window.addEventListener("resize",function(){n(o()),n(p()),n(d())}),blogunTriggerEvent(document.body,"blogun-ready"),window.blogun=window.blogun||{},window.blogun.preloader=y,window.blogun.stickyHeader=l,window.App={},App.config={headroom:{enabled:!0,options:{classes:{initial:"headroom",pinned:"is-pinned",unpinned:"is-unpinned",top:"is-top",notTop:"is-not-top",bottom:"is-bottom",notBottom:"is-not-bottom",frozen:"is-frozen"}}},ajax:{enabled:!0},cursorFollower:{enabled:!0,disableBreakpoint:"992"}},App.html=document.querySelector("html"),App.body=document.querySelector("body"),window.onload=function(){App.config.cursorFollower.enabled&&f.init()};let f=function(){let e=document.querySelector(".blogun-js-cursor"),t,o,n,r,l,i,s,a,c;function d({target:t}){e.classList.add("is-active"),t.getAttribute("data-cursor-label")&&(App.body.classList.add("is-cursor-active"),e.classList.add("has-label"),o.innerHTML=t.getAttribute("data-cursor-label")),t.getAttribute("data-cursor-icon")&&(App.body.classList.add("is-cursor-active"),e.classList.add("has-icon"),t.getAttribute("data-cursor-icon"))}function u({target:t}){App.body.classList.remove("is-cursor-active"),e.classList.remove("is-active"),e.classList.remove("has-label"),e.classList.remove("has-icon"),o.innerHTML="",n.innerHTML=""}function g(){e&&(a=document.querySelectorAll(["button","a","input","[data-cursor]","[data-cursor-label]","[data-cursor-icon]","textarea"])).forEach(e=>{e.addEventListener("mouseenter",d),e.addEventListener("mouseleave",u)})}function m(){e&&a.forEach(e=>{e.removeEventListener("mouseenter",d),e.removeEventListener("mouseleave",u)})}return{init:function a(){if(!e)return;t=e.querySelector(".blogun-js-follower"),o=e.querySelector(".blogun-js-label"),n=e.querySelector(".blogun-js-icon"),r=-100,l=-100,i=e.offsetWidth/2,s=e.offsetHeight/2,c=!1,c=!0,e.classList.add("is-enabled"),document.addEventListener("mousedown",t=>{e.classList.add("is-mouse-down")}),document.addEventListener("mouseup",t=>{e.classList.remove("is-mouse-down")}),document.addEventListener("mousemove",e=>{r=e.clientX,l=e.clientY});let d=()=>{e.style.transform=`translate(${r-i}px, ${l-s}px)`,requestAnimationFrame(d)};requestAnimationFrame(d),g(),function t(){if(c&&App.config.cursorFollower.disableBreakpoint)(0{(0(n=e,n.offsetTop+n.offsetHeight)?(t.style.position="static",$.style.marginBottom="0"):($.style.marginBottom=t.offsetHeight+"px",t.style.position="fixed")}E=document.getElementById("main"),L=document.getElementById("colophon"),L.style.left="0",L.style.right="0",L.style.zIndex="-1",S(E,L),window.addEventListener("resize",function(){S(E,L)}),window.addEventListener("scroll",function(){S(E,L)})}let k=document.querySelector(".blogun-darkmode"),q=localStorage.getItem("theme");q&&(document.documentElement.setAttribute("data-theme",q),"dark"===q&&null!=k&&(k.checked=!0)),null!=k?k.addEventListener("change",function e(t){t.target.checked?(document.documentElement.setAttribute("data-theme","dark"),localStorage.setItem("theme","dark")):(document.documentElement.setAttribute("data-theme","light"),localStorage.setItem("theme","light"))},!1):localStorage.removeItem("theme")}(),function(e){e(document).ready(function(){let t=e(".ticker-slider-items"),o="left";if(e("body").hasClass("rtl")&&(hrtl=!0,o="right"),t.length){let n=t.find(".ticker-slider-wrap").marquee({duration:14e3,gap:0,delayBeforeStart:0,direction:o,duplicated:!0,startVisible:!0,pauseOnHover:!0});t.on("click",".ticker-slider-pause",function(){e(this).find("i").toggleClass("fa-pause fa-play"),n.marquee("toggle")})}e(".masonries").length&&setTimeout(()=>{e(".masonries").masonry({itemSelector:".masonries > *"})},500)})}(jQuery);