"use strict";(self.blocksyJsonP=self.blocksyJsonP||[]).push([[761],{761:function(t,e,i){i.r(e),i.d(e,{mount:function(){return l}});var n=i(222);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.k)(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,e){let{event:i}=e;i.stopPropagation(),i.preventDefault();const l=s(t);if(!l)return;if("false"===l.getAttribute("aria-hidden"))a(l,t,(function(){t.setAttribute("aria-expanded","false"),l.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.k)(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")}))}))}))}))}(l,t)}}},222:function(t,e,i){function n(t,e){const i=function(n){n.target===t&&(t.removeEventListener("transitionend",i),e())};t.addEventListener("transitionend",i)}i.d(e,{k:function(){return n}})}}]);