(()=>{function e(e){e.style.display="flex",e.offsetWidth,e.classList.add("is-active")}function t(e){e.classList.remove("is-active"),setTimeout((()=>{e.classList.contains("is-active")||(e.style.display="none")}),300)}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".geo-popup-overlay").forEach((s=>{const o=s.querySelector(".geo-popup-container"),n=s.querySelector(".geo-popup-close"),i=o.dataset.trigger,a=parseInt(o.dataset.delay)||0;switch(s.addEventListener("click",(e=>{e.target===s&&t(s)})),n?.addEventListener("click",(()=>t(s))),i){case"immediate":e(s);break;case"delayed":setTimeout((()=>e(s)),1e3*a);break;case"exit":!function(t){let s=!0;const o=n=>{n.clientY<10&&s&&(e(t),s=!1,document.removeEventListener("mousemove",o))};document.addEventListener("mousemove",o)}(s)}}))}))})();