import{FOCUS_GROUP as r,FOCUS_DISABLED as t}from"../constants.js";import{toArray as e,asArray as n}from"./array.js";var o=function(r){return r.parentNode?o(r.parentNode):r},a=function(a){return n(a).filter(Boolean).reduce((function(n,a){var u=a.getAttribute(r);return n.push.apply(n,u?function(r){for(var t=new Set,e=r.length,n=0;n<e;n+=1)for(var o=n+1;o<e;o+=1){var a=r[n].compareDocumentPosition(r[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return r.filter((function(r,e){return!t.has(e)}))}(e(o(a).querySelectorAll("["+r+'="'+u+'"]:not(['+t+'="disabled"])'))):[a]),n}),[])};export{a as getAllAffectedNodes};
//# sourceMappingURL=all-affected.js.map
