!function(){"use strict";let t=0;window.MTAccordion=function(e,i){if(void 0===e.target)return!1;const a=document.querySelector(e.target);if(!a)return;const n=function(t,e,i){for(let a=0,n=t.length;a<n;a++)e.call(i,a,t[a])};a.setAttribute("role","tablist");const r=a.getElementsByClassName("accordion-content"),s=a.getElementsByClassName("accordion-header");t++,n(s,(function(e,i){const a=i;e++,"tab"!==a.getAttribute("role")&&(a.setAttribute("id","tab"+t+"-"+e),a.setAttribute("aria-selected","false"),a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls","panel"+t+"-"+e),a.setAttribute("role","tab"),a.addEventListener("click",(function(t){const e=i.nextElementSibling,n=e.getElementsByClassName("accordion-label")[0];i.classList.toggle("is-active"),e.classList.toggle("is-active"),n.setAttribute("tabindex",-1),n.focus(),e.classList.contains("is-active")?(a.setAttribute("aria-selected","true"),a.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false")):(a.setAttribute("aria-selected","false"),a.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")),t.preventDefault()})))})),n(r,(function(e,i){const a=i;e++,"tabpanel"!==a.getAttribute("role")&&(a.setAttribute("id","panel"+t+"-"+e),a.setAttribute("aria-hidden","true"),a.setAttribute("aria-labelledby","tab"+t+"-"+e),a.setAttribute("role","tabpanel"))})),"function"==typeof i&&i.call()},document.onreadystatechange=function(){"interactive"===document.readyState&&window.MTAccordion({target:".accordion"})}}(),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.accordion={};