(()=>{var c=document.querySelector(".fi-topbar"),e=document.querySelector(".fi-main"),r=document.querySelector(".fi-header");c&&e&&r&&filamentData!=null&&filamentData.stickyHeaderActive&&window.addEventListener("load",function(){let t=document.createElement("div"),n=(filamentData==null?void 0:filamentData.stickyHeaderTheme)||"default";t.classList.add("filament-sticky-trigger"),e.prepend(t),e.classList.add(`sticky-theme-${n}`);let o=c.offsetHeight,i=null;new IntersectionObserver(([s])=>{if(s.isIntersecting){if(i&&s.time-i<1e3)return;i=s.time,e.classList.remove("is-sticky");return}let a=0;n.includes("floating")&&(a+=8),r.style.top=o+a+"px",r.setAttribute("wire:ignore.self","true"),e.classList.add("is-sticky")},{rootMargin:`-${o}px`,threshold:[0]}).observe(t)});})();
