!function(){function e(){document.querySelectorAll(".fb-circle-menu:not(.is-initialized)").forEach(e=>{const t=e.querySelector(".fb-circle-menu-center"),i=e.querySelectorAll(".fb-circle-menu-item"),c=e.closest(".fb-circle-menu-main-wrapper");if(!t||!i.length||!c)return;e.classList.add("is-initialized");const n=(e.dataset.trigger||"click").trim();let s,r=!1;const a=()=>{s&&clearTimeout(s),t.classList.add("is-active"),c.classList.add("is-active"),r=!0},o=()=>{s&&clearTimeout(s),t.classList.remove("is-active"),c.classList.remove("is-active"),r=!1};"hover"===n?(e.addEventListener("mouseenter",()=>{s&&clearTimeout(s),r||a()}),e.addEventListener("mouseleave",()=>{r&&(s=setTimeout(()=>{o()},500))})):(t.addEventListener("click",e=>{e.stopPropagation(),r?o():a()}),document.addEventListener("click",t=>{r&&!e.contains(t.target)&&o()}))})}window.reinitCircleMenu=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.length&&e()})}).observe(document.body,{childList:!0,subtree:!0})}();