import{i as o}from"./f4OvDAmT.js";import{r as l,s as r}from"./m2W8DxR4.js";function a(){let t=document.activeElement;if(t==null)return null;for(;t!=null&&t.shadowRoot!=null&&t.shadowRoot.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function c(t){const n=o({dir:l("ltr")});return r(()=>{var e;return(t==null?void 0:t.value)||((e=n.dir)==null?void 0:e.value)||"ltr"})}export{a as g,c as u};
