!function(e){const a=[],d=[],t={incontent:[[970,250],[970,90],[728,90],[300,250],[320,100]],sidebar:[[300,250]],fullpage:[[1,1]]};googletag.cmd.push((()=>{e.sidebarMapping=googletag.sizeMapping().addSize([1375,200],[[300,250]]).addSize([1135,200],[[300,250]]).addSize([925,200],[[300,250]]).addSize([768,200],[[300,250]]).addSize([0,0],[[300,250],[320,100],"fluid"]).build(),e.leaderMapping=googletag.sizeMapping().addSize([1375,200],[[970,250],[970,90],[728,90]]).addSize([1135,200],[[728,90]]).addSize([925,200],[[300,250]]).addSize([768,200],[[728,90]]).addSize([0,0],[[300,250],[320,100],"fluid"]).build(),googletag.pubads().collapseEmptyDivs(),googletag.pubads().setTargeting("CHKeyword",e.tags),googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.pubads().addEventListener("slotRenderEnded",(()=>{document.dispatchEvent(new CustomEvent("adsRendered"))})),googletag.enableServices()}));const o=()=>{document.querySelectorAll(".google-ad-slot").forEach((o=>{if(void 0===a[o.dataset.adSlot]&&(a[o.dataset.adSlot]=[]),void 0!==o.dataset.googleQueryId)return;const g=Object.keys(a[o.dataset.adSlot]).length+1,l=o.dataset.adSlot+g;a[o.dataset.adSlot][l]={loaded:!1,googleSlot:!1},o.innerHTML="",o.id=l;const i="sidebar"===o.dataset.adContext?e.sidebarMapping:e.leaderMapping;googletag.cmd.push((()=>{a[o.dataset.adSlot][l].googleSlot=googletag.defineSlot("/"+e.account+"/"+o.dataset.adSlot,t[o.dataset.adContext],l).defineSizeMapping(i).setTargeting("CHKeyword",d).addService(googletag.pubads()),googletag.display(l),googletag.pubads().refresh([a[o.dataset.adSlot][l].googleSlot])}))}))};document.addEventListener("DOMContentLoaded",o),document.addEventListener("is.post-load",o)}(chAdConfig);; (()=>{"use strict";const e=window.wp.i18n;{const t=document.querySelector(".site-header"),n=document.querySelector(".site-navigation").querySelectorAll("input, a, button"),o=document.querySelector(".menu-toggle"),i=document.body.classList,s="nav-is-open",r=document.querySelectorAll(".site-header li ul"),a=document.querySelector(".site-toolbar"),c=960;function d(e){const t=9===e.keyCode,r=e.shiftKey,a=27===e.keyCode,c=document.activeElement,l=n[n.length-1],u=n[0];a&&(e.preventDefault(),i.remove(s),o.focus(),document.removeEventListener("keydown",d)),(t&&!r&&l===c||t&&r&&u===c)&&(e.preventDefault(),o.focus()),t&&o===c&&(e.preventDefault(),r?l.focus():u.focus())}if(o.addEventListener("click",(()=>{i.contains(s)?(i.remove(s),document.addEventListener("keydown",d)):(i.add(s),n[0].focus(),document.removeEventListener("keydown",d))})),r){const g=(0,e.__)("Open child menu"),y=(0,e.__)("Close child menu"),L=b();function b(){const e=document.createElement("button");return e.classList.add("child-menu-toggle"),e.setAttribute("aria-label",g),e.setAttribute("aria-expanded","false"),e}r.forEach((e=>{const t=L.cloneNode(!0),n=e.parentElement;n.insertBefore(t,e),t.addEventListener("click",(()=>{c>window.innerWidth&&(t.setAttribute("aria-label",g===t.getAttribute("aria-label")?y:g),t.setAttribute("aria-expanded","false"===t.getAttribute("aria-expanded")?"true":"false"),n.classList.toggle("has-open-child-menu"))}))}))}const l="is-scrolling-up";let u=-a.clientHeight,m=window.pageYOffset,f=0,w=!1;function v(){u=-a.clientHeight,c{p(e),w=!1})),w=!0)}function p(e){const n=t.classList.contains(l);let o=!1,i=!1,s=!1;0===e&&n?(o=!0,s=!0):e>m&&0{const e=document.querySelector(".content-area");function t(e){const t=e.querySelectorAll(".article-title a");t?.forEach((e=>{if(e.textContent=e.textContent,800e.join(""))),o}(e.firstChild);1"))}}))}e&&(window.addEventListener("load",(function(){t(e)})),window.addEventListener("resize",(()=>t(e))),document.addEventListener("productModalOpened",(e=>{t(e.detail.modal)})),new MutationObserver((e=>{e.forEach((e=>{if(e.addedNodes.length){const n=e.addedNodes.item(0);n instanceof Element&&t(n)}}))})).observe(e,{childList:!0,subtree:!0}))})();; (()=>{{let e=!1,t=!1;const n=()=>{new window.wk.content(window.wallkitPostData.data).checkAccess().then((e=>{e?.allowed&&o()})).catch((e=>{console.log("Wallkit access check error:",e)}))},o=()=>{const e=document.querySelector("#ch-wk-original-content"),t=document.querySelector(".entry-content"),n=document.querySelector(".article-sidebar-left");e&&(t.innerHTML=e.innerHTML),e&&n&&t.appendChild(n)},c=()=>{const e=document.querySelector(".nav-menu .wk–sign-in");e.classList.remove("wk–sign-in"),e.classList.remove("wk-call"),e.closest("li").classList.add("menu-item-my-account"),e.innerText="My Account"},s=()=>{fetch(window.CHWallkitSettings.restBase+"authenticate",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({email:window.wk.sdk.methods.user.email,token:window.wk.authentication.token.token,fbToken:window.wk.authentication.firebaseToken.token})}).then((e=>e.json())).then((n=>{n?.success&&(e&&(window.location.href=window.location.href+"#respond"),window.location.href.toString().includes("my-account")||t?window.location.reload():c())}))},i=e=>{e.preventDefault(),window.wk.events.subscribe("wk-event-logout",(()=>{window.location.href=e.target.href})),window.wk.sdk.methods.logout()},a=()=>{document.querySelectorAll("#autorenew-toggle").forEach((e=>{e.addEventListener("click",(e=>{e.target.dataset.subscriptionId&&window.wk.sdk.methods.changeUserSubscriptionAutorenewStatus(e.target.dataset.subscriptionId,e.target.checked)}))}))},r=()=>{const e=document.querySelector(".js-save-account-details");e&&e.addEventListener("click",(()=>{const e=document.querySelector("#account_first_name").value,t=document.querySelector("#account_last_name").value,n={};e&&(n.first_name=e),t&&(n.last_name=t),window.Wallkit.updateUser(n)}))},d=document.querySelector(".js-comment-login");d&&d.addEventListener("click",(()=>{e=!0})),document.querySelector(".comments-wrapper")&&(t=!0),document.addEventListener("ch-wk-ready",(()=>{document.querySelectorAll(".js-logout a").forEach((e=>{e.addEventListener("click",i)})),n(),a(),r(),window.wk.events.subscribe("success-auth",n),window.wk.events.subscribe("success-auth",s)}));let l=100,w=1;const u=()=>{if(!(w>20))if(void 0===window.wk?.events)setTimeout(u,l),l+=100,w++;else{const e=new Event("ch-wk-ready");document.dispatchEvent(e)}};u()}})();;