((a,i,c)=>{"use strict";let e=!1;const o=ThemifyBuilderModuleJs.cssUrl+"accordion_styles/",t=()=>{const a=c.location.hash.replace("#","");""!==a&&"#"!==a&&i.querySelector('.accordion-title a[href="#'+CSS.escape(a)+'"]')?.click()};a.on("builder_load_module_partial",((r,d)=>{if(!0!==d||r.classList.contains("module-accordion")){for(let i=a.selectWithParent("module-accordion",r),c=i.length-1;c>-1;--c){let e=i[c].classList;e.contains("separate")&&a.loadCss(o+"separate","tb_accordion_separate"),e.contains("transparent")&&a.loadCss(o+"transparent","tb_accordion_transparent")}!1===e&&(e=!0,c.tfOn("hashchange",t,{passive:!0}),a.requestIdleCallback((async()=>{await a.loadjQuery(),(async()=>{const $=jQuery;i.body.tfOn("click",(i=>{const e=i?.target.closest(".accordion-title");if(e){i.preventDefault(),i.stopPropagation();const o=$(e),t=o.next(),r=o.closest("li"),d=r.find("a")[0],n=r.parent(),l=n[0].parentNode.hasAttribute("data-hashtag"),s=r.find(">.accordion-title .accordion-active-icon"),h=r.find(">.accordion-title .accordion-icon"),u=n.closest(".module-accordion[data-behavior]").data("behavior"),f=r.toggleClass("current").siblings().removeClass("current");n[0].classList.add("tf-init-accordion"),"accordion"===u&&(f.find(".accordion-content").slideUp().closest("li").removeClass("builder-accordion-active"),f.find(".accordion-title > a").attr("aria-expanded","false"),f.find(">.accordion-title .accordion-icon").removeClass("tf_hide").end().find(">.accordion-title .accordion-active-icon").addClass("tf_hide")),r.hasClass("builder-accordion-active")?(s.addClass("tf_hide"),h.removeClass("tf_hide"),t.slideUp(),r.removeClass("builder-accordion-active").find(">.accordion-title > a").attr("aria-expanded","false"),t.attr("aria-hidden","true"),!0===l&&c.location.hash===d.getAttribute("href")&&c.history.pushState("","",c.location.pathname)):(s.removeClass("tf_hide"),h.addClass("tf_hide"),r.addClass("builder-accordion-active"),t.slideDown(),r.find(">.accordion-title > a").attr("aria-expanded","true"),t.attr("aria-hidden","false"),!0===l&&c.history.pushState(null,null,d.getAttribute("href"))),a.trigger("tb_accordion_switch",[t]),$(c).triggerHandler("resize")}}))})(),t()}),-1,500))}}))})(Themify,document,window);