"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[85],{1085(t,e,i){i.r(e),i.d(e,{mount:function(){return l}});var n=i(9280);const r=function(t,e){getComputedStyle(e).marginBottom;return e.nextElementSibling===t},s=function(t){if(t.hasAttribute("data-target"))return document.querySelector(t.getAttribute("data-target"));const e=t.parentNode.querySelector("[aria-hidden]");if(e)return e;const i=t.parentNode.parentNode.querySelector("[aria-hidden]");return i||null},a=function(t,e,i){const s=r(t,e);if(s){const i=getComputedStyle(e).marginBottom;t.firstElementChild.prevStyle=t.firstElementChild.getAttribute("style"),t.firstElementChild.style.marginTop=i,e.getAttribute("style")&&(e.prevStyle=e.getAttribute("style")),e.style.marginBottom="0px"}requestAnimationFrame(function(){const r=t.getBoundingClientRect().height;t.style.height=`${r}px`,t.style.opacity="1",t.classList.add("is-animating"),requestAnimationFrame(function(){t.style.height="0px",t.style.opacity="0",(0,n.u)(t,function(){t.classList.remove("is-animating"),t.removeAttribute("style"),s&&(t.firstElementChild.prevStyle?t.firstElementChild.style=t.firstElementChild.prevStyle:t.firstElementChild.removeAttribute("style"),e.prevStyle?e.style=e.prevStyle:e.removeAttribute("style")),i()})})})},l=function(t,{event:e}){e.stopPropagation(),e.preventDefault();const i=s(t);if(!i)return;if("false"===i.getAttribute("aria-hidden"))a(i,t,function(){t.setAttribute("aria-expanded","false"),i.setAttribute("aria-hidden","true")});else{if(void 0!==t.dataset.closeOthers){t.closest(".ct-accordion-tab").parentNode.querySelectorAll('.ct-expandable-trigger[aria-expanded="true"]').forEach(function(e){const i=s(e);i&&a(i,t,function(){e.setAttribute("aria-expanded","false"),i.setAttribute("aria-hidden","true")})})}!function(t,e){const i=r(t,e);i&&e.setAttribute("aria-expanded","true"),requestAnimationFrame(function(){if(i){const i=getComputedStyle(e).marginBottom;e.setAttribute("aria-expanded","false"),t.firstElementChild.prevStyle=t.firstElementChild.getAttribute("style"),t.firstElementChild.style.marginTop=i}t.setAttribute("aria-hidden","false");const r=t.getBoundingClientRect().height;t.style.height="0px",t.style.opacity="0",requestAnimationFrame(function(){t.classList.add("is-animating"),requestAnimationFrame(function(){t.style.height=`${r}px`,t.style.opacity="1",(0,n.u)(t,function(){t.classList.remove("is-animating"),t.removeAttribute("style"),i&&(t.firstElementChild.prevStyle?t.firstElementChild.style=t.firstElementChild.prevStyle:t.firstElementChild.removeAttribute("style")),e.setAttribute("aria-expanded","true")})})})})}(i,t)}}},9280(t,e,i){function n(t,e){let i=null,n=!1;const r=function(){clearTimeout(i),t.removeEventListener("transitionend",s),n||(n=!0,e())},s=function(e){e.target===t&&r()},a=parseFloat(getComputedStyle(t).transitionDuration);a?(t.addEventListener("transitionend",s),i=setTimeout(function(){r()},1e3*a)):e()}i.d(e,{u:function(){return n}})}}]);