document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".hugeicons-faq-block").forEach(e=>{const t=e.querySelectorAll(".hugeicons-faq-item");t.forEach(e=>{const a=e.querySelector(".hugeicons-faq-item__header"),s=e.querySelector(".hugeicons-faq-item__content");a&&s&&("true"===e.dataset.defaultOpen||(e.classList.remove("is-expanded"),a.setAttribute("aria-expanded","false")),a.addEventListener("click",function(){const s=e.classList.contains("is-expanded");t.forEach(t=>{if(t!==e){t.classList.remove("is-expanded");const e=t.querySelector(".hugeicons-faq-item__header");e&&e.setAttribute("aria-expanded","false")}}),s?(e.classList.remove("is-expanded"),a.setAttribute("aria-expanded","false")):(e.classList.add("is-expanded"),a.setAttribute("aria-expanded","true"))}))})})});