(()=>{"use strict";const e=function(e,t){0{e.setAttribute("data-is-expanded","false"),e.setAttribute("aria-label",snow_monkey.children_expander_open_label)},r=e=>{e.setAttribute("data-is-hidden","true")},a=t.parentNode,l=(()=>{const e=document.createElement("button"),t=document.createElement("span");return t.classList.add("c-ic-angle-right"),r(t),e.insertBefore(t,e.firstElementChild),e.classList.add("children-expander"),n(e),e.setAttribute("aria-label",snow_monkey.children_expander_open_label),e})();r(t),l.addEventListener("click",(()=>{"false"===l.getAttribute("data-is-expanded")?(()=>{var t;(t=l).setAttribute("data-is-expanded","true"),t.setAttribute("aria-label",snow_monkey.children_expander_close_label);const n=a.children;e(n,(e=>"true"===e.getAttribute("data-is-hidden")&&(e=>{e.setAttribute("data-is-hidden","false")})(e)))})():(()=>{const t=a.querySelectorAll(".children-expander");e(t,n);const l=a.querySelectorAll(".children, .sub-menu");e(l,r)})()}),!1),a.insertBefore(l,t)}const n={};document.addEventListener("DOMContentLoaded",(()=>{const n=document.querySelectorAll([".cat-item .children",".menu-item .sub-menu"].join(","));e(n,t)}),!1),document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll(".wpaw-local-nav__sublist");1>t.length||e(t,(t=>{const r=t.getElementsByTagName("a");e(r,(e=>{!function(e,t={}){if(void 0===e.hostname)return;const r=window.location;t.home_url=t.home_url||`${r.protocol}//${r.host}`;const a=(e=>{if(n[e])return n[e];const t=document.createElement("a");return t.setAttribute("href",e),n[e]=t,t})(t.home_url),l=e.pathname.replace(/\/$/,""),o=e.href.replace(/\/$/,"")+"/",c=r.href.replace(/\/$/,"")+"/",i=r.pathname.replace(/\/$/,""),d=l.replace(new RegExp(`^${a.pathname}`),""),s=c===o,u=0===c.indexOf(o)&&1