const r=(t=[])=>{const{activeElement:e}=document;return e&&!t?.some(n=>n===e)?e:null},s=(t,e={})=>{const n=o=>o===r();try{t.focus(e)}catch(o){console.error(o)}return n(t)},i=t=>(t?.()??[]).length===0,c=t=>{if(t.getAttribute("display")==="none")return!1;const e=t.getBoundingClientRect();return!!(e&&e.height>0&&e.width>0)},u=(t,e)=>{if(typeof Node>"u"||!Node||!t||!e)return 0;const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0},d=t=>{if(typeof window>"u")return 1055;const e=t??document.body,n=window.getComputedStyle(e).getPropertyValue("--bs-modal-zindex").trim(),o=Number.parseInt(n,10);return Number.isFinite(o)?o:1055};export{c as a,s as b,d as g,i,u as s};
