import{j as i,h as t}from"./B-4V-jI8.js";import{a7 as c}from"./c625DOTJ.js";import{s as f}from"./DkGSCXZX.js";async function p(n){const{prop:o,defaultEl:e}=n;if(await Promise.all([f(1),c]),o===void 0){e==null||e.focus();return}const s=i(o)?o(e):o;if(typeof s=="string"){const r=document.querySelector(s);if(!t(r))return;r.focus()}else t(s)&&s.focus()}export{p as h};