function n(t=document){const o=t.activeElement;return null==o?null:null!=o.shadowRoot?n(o.shadowRoot):o}function t(n,t){if(null==n||null==t)return!1;let o=t;for(;null!=o;)if(o=o instanceof ShadowRoot?o.host:o.parentNode,o===n)return!0;return!1}function o(n,t,o=document){let e=o.elementsFromPoint(n,t);if(0===e.length)return[];let l=e[0].shadowRoot;for(;null!=l;){const o=l.elementsFromPoint(n,t);0===o.length||e.includes(o[0])?l=null:(e=[...o,...e],l=o[0].shadowRoot)}return e}export{o as elementsFromPoint,n as findActiveElement,t as isParentOf};
//# sourceMappingURL=shadow-dom-utils.js.map
