import{ao as i,bP as v,__tla as w}from"./entry.a4369266.js";let f,d,u,y=Promise.all([(()=>{try{return w}catch{}})()]).then(async()=>{let c;c=(e,o)=>{if(!i)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(o)],r=v(e,t);return["scroll","auto","overlay"].some(l=>r.includes(l))},d=(e,o)=>{if(!i)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(c(t,o))return t;t=t.parentNode}return t};let n;f=e=>{var o;if(!i)return 0;if(n!==void 0)return n;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",t.appendChild(l);const s=l.offsetWidth;return(o=t.parentNode)==null||o.removeChild(t),n=r-s,n},u=function(e,o){if(!i)return;if(!o){e.scrollTop=0;return}const t=[];let r=o.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const l=o.offsetTop+t.reduce((m,h)=>m+h.offsetTop,0),s=l+o.offsetHeight,a=e.scrollTop,p=a+e.clientHeight;lp&&(e.scrollTop=s-e.clientHeight)}});export{y as __tla,f as a,d as g,u as s};