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 l=0;l{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)},blogloSlideDown=(e,t=500)=>{e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;let l=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=l+"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)},blogloScrollTo=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function e(){}};function t(e,t,o,l){return e/=l,-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 l(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function n(){var l=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("bloglo-is-mobile")&&(o=window.innerWidth,document.querySelectorAll(".sub-menu").forEach(l=>{l.style.visibility="visible";let n=l.getBoundingClientRect();e=(t=n.left+window.pageXOffset)+n.width,l.removeAttribute("style"),e>o?l.closest("li").classList.add("opens-left"):0>t&&l.closest("li").classList.add("opens-right")}))},l=e=>{var t;return function(){var o=arguments;t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(function(){e.apply(this,o)})}},n=()=>{null!==e&&(450{if(bloglo_vars["sticky-header"].enabled){var e,t,o=document.getElementById("bloglo-header"),n=document.getElementById("bloglo-header-inner"),r=document.getElementById("wpadminbar");if((document.body.classList.contains("bloglo-header-layout-3")||document.body.classList.contains("bloglo-header-layout-4"))&&(o=document.querySelector("#bloglo-header .bloglo-nav-container"),n=document.querySelector("#bloglo-header .bloglo-nav-container .bloglo-container")),window.outerWidth<=bloglo_vars["responsive-breakpoint"])var o=document.getElementById("bloglo-header"),n=document.getElementById("bloglo-header-inner");if(null!==o&&null!==n){var i=o.getBoundingClientRect().bottom,s=0>=i-e;e=null===r?0:600>=window.outerWidth?0:r.getBoundingClientRect().height;var a=function(){e=null===r?0:600>=window.outerWidth?0:r.getBoundingClientRect().height,s=0>=(i=o.getBoundingClientRect().bottom)-e,c()},c=function(){let e=bloglo_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("bloglo-sticky-header")||((t=document.createElement("div")).setAttribute("id","bloglo-sticky-placeholder"),t.style.height=n.getBoundingClientRect().height+"px",o.appendChild(t),document.body.classList.add("bloglo-sticky-header"),document.body.style.setProperty("--bloglo-sticky-h-offset",o.offsetHeight+20+"px")):(document.body.classList.contains("bloglo-sticky-header")&&(document.body.classList.remove("bloglo-sticky-header"),document.getElementById("bloglo-sticky-placeholder").remove()),document.body.style.removeProperty("--bloglo-sticky-h-offset"))};"true"!==o.getAttribute("data-scroll-listener")&&(window.addEventListener("scroll",function(){l(a())}),o.setAttribute("data-scroll-listener","true")),"true"!==o.getAttribute("data-resize-listener")&&(window.addEventListener("resize",function(){l(a())}),o.setAttribute("data-resize-listener","true")),blogloTriggerEvent(window,"scroll")}}},i=()=>{let e=new blogloScrollTo({tolerance:null===document.getElementById("wpadminbar")?0:document.getElementById("wpadminbar").getBoundingClientRect().height}),t=document.getElementsByClassName("bloglo-smooth-scroll");for(var o=0;o{document.body.classList.contains("bloglo-menu-accessibility")&&document.querySelectorAll(".bloglo-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("bloglo-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("--bloglo-screen-width",document.body.clientWidth+"px")},u=()=>{var e=null;document.querySelectorAll(".bloglo-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(".bloglo-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(".bloglo-header-widget__cart .bloglo-widget-wrapper").forEach(e=>{e.addEventListener("mouseenter",function(){e.classList.remove("dropdown-visible")})}),document.querySelectorAll(".bloglo-header-widget__cart .bloglo-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(".bloglo-search");if(0!==e.length){e.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.classList.contains("bloglo-active")?l(e):o(e)})}),document.querySelectorAll(".bloglo-search-close").forEach(e=>e.addEventListener("click",function(t){t.preventDefault(),e.classList.contains("bloglo-active")||(l(document.querySelector(".bloglo-search")),document.querySelector(".bloglo-search").focus())}));var o=function(e){document.querySelectorAll(".bloglo-search-form").forEach(function(e){if(!e)return!1;document.addEventListener("keydown",function(t){var o,l,n,r,i,s;l="input, a, button",r=(n=e.querySelectorAll(l))[n.length-1],o=n[0],i=9===t.keyCode,(s=t.shiftKey)||!i||r!==document.activeElement||(t.preventDefault(),o.focus()),s&&i&&o===document.activeElement&&(t.preventDefault(),r.focus())})}),document.body.classList.add("bloglo-search-visible"),setTimeout(function(){e.classList.add("bloglo-active"),null!==e.nextElementSibling&&null!==e.nextElementSibling.querySelector("input")&&(e.nextElementSibling.querySelector("input").focus(),e.nextElementSibling.querySelector("input").select())},100),document.addEventListener("keydown",n),t.addEventListener("click",r)},l=function(e){document.body.classList.remove("bloglo-search-visible"),e.classList.remove("bloglo-active"),document.removeEventListener("keydown",n),t.removeEventListener("click",r)},n=function(e){27==e.keyCode&&document.querySelectorAll(".bloglo-search").forEach(e=>{l(e)})},r=function(e){null===e.target.closest(".bloglo-search-container")&&null===e.target.closest(".bloglo-search")&&document.querySelectorAll(".bloglo-search").forEach(e=>{l(e)})}}},b=()=>{var e=t,o=document.querySelector("#bloglo-header-inner .bloglo-nav");document.querySelectorAll(".bloglo-mobile-nav > button").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault(),document.body.parentNode.classList.contains("is-mobile-menu-active")?n():l()},!1)}),document.addEventListener("keydown",function(e){var t,o,l,n,r,i,s,a;o=document.querySelector(".bloglo-mobile-nav"),a=document.querySelector(".bloglo-hamburger-bloglo-primary-nav"),l='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',r=(n=o.querySelectorAll(l))[n.length-1],t=a,i=9===e.keyCode,s=e.shiftKey;let c="Tab"===e.key||9===e.keyCode;if(document.body.parentNode.classList.contains("is-mobile-menu-active")){if(!c)return;s?document.activeElement===t&&(r.focus(),e.preventDefault()):document.activeElement===r&&(t.focus(),e.preventDefault())}});var l=function(t){var l=document.querySelectorAll(".site-header");document.body.classList.contains("bloglo-is-mobile")&&l.forEach(function(e){if(!e)return!1}),document.body.parentNode.classList.add("is-mobile-menu-active"),document.addEventListener("keyup",i),null!==e&&e.addEventListener("click",r),document.querySelectorAll("#bloglo-header .bloglo-nav").forEach(e=>{e.addEventListener("click",s)}),blogloSlideDown(o,350)},n=function(t){document.body.parentNode.classList.remove("is-mobile-menu-active"),document.removeEventListener("keyup",i),null!==e&&e.removeEventListener("click",r),document.querySelectorAll("#bloglo-header .bloglo-nav > ul > .bloglo-open").forEach(e=>{a(e)}),o.querySelectorAll(".hovered").forEach(e=>{e.classList.remove("hovered")}),document.body.classList.contains("bloglo-is-mobile")?(document.querySelectorAll("#bloglo-header .bloglo-nav").forEach(e=>{e.removeEventListener("click",s)}),blogloSlideUp(o,250)):o.style.display=null},r=function(e){null===e.target.closest(".bloglo-hamburger")&&null===e.target.closest(".site-navigation")&&n()},i=function(e){27==e.keyCode&&n()},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("bloglo-open")?(e.classList.remove("bloglo-open"),e.querySelectorAll(".sub-menu").forEach(e=>{blogloSlideUp(e,350)}),e.querySelectorAll("li").forEach(e=>{e.classList.remove("bloglo-open"),e.querySelectorAll(".sub-menu").forEach(e=>{blogloSlideUp(e,350)})})):(e.querySelectorAll(".sub-menu").forEach(t=>{e===t.parentElement&&blogloSlideDown(t,350)}),e.classList.add("bloglo-open"))};document.addEventListener("bloglo-close-mobile-menu",n)},y=(e=0)=>{if(null!==document.getElementById("bloglo-preloader")){var t=()=>{!document.body.classList.contains("bloglo-loaded")&&(document.body.classList.add("bloglo-loading"),setTimeout(function(){document.body.classList.replace("bloglo-loading","bloglo-loaded"),blogloTriggerEvent(document.body,"bloglo-preloader-done")},250))};return 0{if(document.body.classList.contains("bloglo-has-comments-toggle")&&null!=document.getElementById("bloglo-comments-toggle")){var e=e=>{void 0!==e&&e.preventDefault(),document.body.classList.contains("comments-visible")?(document.body.classList.remove("comments-visible"),document.getElementById("bloglo-comments-toggle").querySelector("span").innerHTML=bloglo_vars.strings.comments_toggle_show):(document.body.classList.add("comments-visible"),document.getElementById("bloglo-comments-toggle").querySelector("span").innerHTML=bloglo_vars.strings.comments_toggle_hide)};null!==document.getElementById("bloglo-comments-toggle")&&(-1!==location.href.indexOf("#comment")||-1!==location.href.indexOf("respond"))&&e(),document.getElementById("bloglo-comments-toggle").addEventListener("click",e)}},v=()=>{var e=document.querySelector(".single .comments-link");null!==e&&e.addEventListener("click",function(e){document.body.classList.contains("bloglo-has-comments-toggle")&&!document.body.classList.contains("comments-visible")&&document.getElementById("bloglo-comments-toggle").click()})},h=()=>{window.innerWidth<=bloglo_vars["responsive-breakpoint"]?document.body.classList.add("bloglo-is-mobile"):document.body.classList.contains("bloglo-is-mobile")&&(document.body.classList.remove("bloglo-is-mobile"),blogloTriggerEvent(document,"bloglo-close-mobile-menu"))};document.addEventListener("DOMContentLoaded",function(){y(5e3),s(),c(),n(),i(),u(),p(),m(),b(),h(),o(),v(),g(),r(),d()}),window.addEventListener("load",function(){y()}),window.addEventListener("scroll",function(){l(n())}),window.addEventListener("resize",function(){l(o()),l(h()),l(d())}),blogloTriggerEvent(document.body,"bloglo-ready"),window.bloglo=window.bloglo||{},window.bloglo.preloader=y,window.bloglo.stickyHeader=r,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(".bloglo-js-cursor"),t,o,l,n,r,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="",l.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(".bloglo-js-follower"),o=e.querySelector(".bloglo-js-label"),l=e.querySelector(".bloglo-js-icon"),n=-100,r=-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=>{n=e.clientX,r=e.clientY});let d=()=>{e.style.transform=`translate(${n-i}px, ${r-s}px)`,requestAnimationFrame(d)};requestAnimationFrame(d),g(),function t(){if(c&&App.config.cursorFollower.disableBreakpoint)(0{(0(l=e,l.offsetTop+l.offsetHeight)?(t.style.position="static",$.style.marginBottom="0"):($.style.marginBottom=t.offsetHeight+"px",t.style.position="fixed")}L=document.getElementById("main"),E=document.getElementById("colophon"),E.style.left="0",E.style.right="0",E.style.zIndex="-1",S(L,E),window.addEventListener("resize",function(){S(L,E)}),window.addEventListener("scroll",function(){S(L,E)})}document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector('.bloglo-darkmode input[type="checkbox"]'),t=bloglo_vars.dark_mode||"dark"===localStorage.getItem("darkmode");function o(t){t?(document.documentElement.setAttribute("data-theme","dark"),localStorage.setItem("darkmode","dark"),e.classList.add("active")):(document.documentElement.setAttribute("data-theme","light"),localStorage.setItem("darkmode","light"),e.classList.remove("active"))}o(t),e.addEventListener("change",function(){o(t=!t)})})}(),function(e){e(document).ready(function(){if(e("#bloglo-time").length&&setInterval(function(){let e;e=new Date,document.getElementById("bloglo-time").innerHTML=e.toLocaleTimeString()},1e3),e("#bloglo-date").length){let t=new Date;document.getElementById("bloglo-date").innerHTML=t.toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric"})}let o=e(".ticker-slider-items"),l="left";if(e("body").hasClass("rtl")&&(hrtl=!0,l="right"),o.length){let n=o.find(".ticker-slider-wrap").marquee({speed:50,duration:14e3,gap:0,delayBeforeStart:0,direction:l,duplicated:!0,startVisible:!0,pauseOnHover:!0});o.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);