1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2Drupal.behaviors.mainMenu={attach(e){const t=e.querySelector(".main-menu");if(t){const e=t.querySelectorAll("span.main-menu__link"),n=t.querySelectorAll(".main-menu__btn"),s=t.querySelectorAll(".main-menu__link--sub-1, .main-menu__link--sub-2, .main-menu__btn");let a=0;const r=100;s.forEach(((e)=>{e.addEventListener("blur",((e)=>{s.forEach(((e)=>{e.parentElement.classList.remove("focus");})),e.relatedTarget&&e.relatedTarget.parentElement.classList.add("focus");let t=e.target.parentElement.parentElement;"LI"===t.nodeName&&(t=t.parentElement),t.querySelector(".focus")||(t.parentElement.querySelector(".main-menu__btn").focus(),t.parentElement.classList.remove("open"));}));})),n.forEach(((e)=>{e.addEventListener("keydown",((e)=>{if("Enter"===e.key){const t=Date.now();t-a>r&&(e.target.closest(".main-menu__item--with-sub").classList.toggle("open"),a=t);}})),e.addEventListener("click",((e)=>{const t=Date.now();t-a>r&&(e.target.closest(".main-menu__item--with-sub").classList.toggle("open"),a=t);}));})),document.addEventListener("keydown",((e)=>{if("Escape"===e.key){const n=t.querySelectorAll(".main-menu__item--with-sub"),s=e.target.parentElement.closest(".main-menu__item--with-sub").querySelector(".main-menu__btn");n.forEach(((e)=>{e.classList.remove("open"),s.focus();}));}})),e.forEach(((e)=>{e.addEventListener("click",((e)=>{const t=Date.now();t-a>r&&(e.target.closest(".main-menu__item--with-sub").classList.toggle("open"),a=t);}));}));const o=Array.from(t.children).find(((e)=>e.textContent.includes("States")));if(o){const e=o.querySelector(".main-menu--sub");e&&e.classList.add("support-seven-menu-items");}}}};; 3Drupal.behaviors.siteHeader={attach(e){function t(){i.forEach(((e)=>{r.classList.contains("header--open")&&!a.matches?e.setAttribute("inert",""):e.removeAttribute("inert");}));}function n(){o.classList.remove("toggle-expand--open"),s.classList.remove("header__menu__inner--open"),r.classList.remove("header--open"),c.removeAttribute("body-is-frozen");}const o=e.getElementById("toggle-expand"),s=e.getElementById("header__inner"),r=e.querySelector("header"),c=document.querySelector("body"),i=e.querySelectorAll(".main, .footer, .sole"),a=window.matchMedia("(min-width: 960px)");if(o){o.addEventListener("click",((e)=>{o.classList.toggle("toggle-expand--open"),s.classList.toggle("header__menu__inner--open"),r.classList.toggle("header--open"),c.hasAttribute("body-is-frozen")?c.removeAttribute("body-is-frozen"):c.setAttribute("body-is-frozen",""),t(),e.preventDefault();})),document.addEventListener("keydown",((e)=>{"Escape"===e.key&&(n(),o.focus(),t());})),document.addEventListener("click",((e)=>{s.contains(e.target)||o.contains(e.target)||(n(),t());}));const e=function(){t();};e(),window.addEventListener("resize",e);}const d=e.querySelector(".header__subscribe a");d&&d.addEventListener("click",((e)=>{e.preventDefault();const o=document.querySelector(".footer__inner > .newsletter");if(o){const e=o.getBoundingClientRect().top;window.scrollBy({top:e-80,behavior:"smooth"}),r.classList.contains("header--open")&&(n(),t()),o.classList.add("newsletter--focus");const s=()=>{o.classList.remove("newsletter--focus"),window.removeEventListener("scroll",s);};setTimeout((()=>{o.querySelector('input[name="firstname"]').focus(),window.addEventListener("scroll",s);}),1e3);}}));const l=e.querySelector(".main-menu"),u=Array.from(l.children).find(((e)=>e.textContent.includes("Election ")))?.querySelector("a");if(u&&(u.style.color="var(--c-secondary-gold)"),4<l.children.length){const t=e.querySelector(".header__search"),n=t.querySelector(".form-item-keyword input");t.classList.add("closed"),t.classList.add("support-five-menu-items");const o=document.createElement("span");o.classList.add("header__search__icon"),o.addEventListener("click",(()=>{t.classList.toggle("closed"),n.focus();})),t.querySelector("form").appendChild(o),document.addEventListener("click",((e)=>{t.contains(e.target)||t.classList.contains("closed")||(t.classList.add("closed"),n.focusout());})),t.addEventListener("click",((e)=>{e.stopPropagation();}));}}};; 4Drupal.behaviors.socialMenu={attach(e){const o=e.querySelector(".social-menu"),t=e.querySelector(".footer-menu");if(o&&t){const e=document.createElement("li");e.appendChild(o),t.appendChild(e);}}};;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.