1// @floating-ui/utils/[email protected] downloaded from https://ga.jspm.io/npm:@floating-ui/[email protected]/dist/floating-ui.utils.dom.mjs 2 3function n(){return typeof window!=="undefined"}function t(n){return r(n)?(n.nodeName||"").toLowerCase():"#document"}function e(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function o(n){var t;return(t=(r(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function r(t){return!!n()&&(t instanceof Node||t instanceof e(t).Node)}function c(t){return!!n()&&(t instanceof Element||t instanceof e(t).Element)}function u(t){return!!n()&&(t instanceof HTMLElement||t instanceof e(t).HTMLElement)}function l(t){return!(!n()||typeof ShadowRoot==="undefined")&&(t instanceof ShadowRoot||t instanceof e(t).ShadowRoot)}const i=new Set(["inline","contents"]);function s(n){const{overflow:t,overflowX:e,overflowY:o,display:r}=C(n);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!i.has(r)}const a=new Set(["table","td","th"]);function f(n){return a.has(t(n))}const d=[":popover-open",":modal"];function p(n){return d.some((t=>{try{return n.matches(t)}catch(n){return false}}))}const m=["transform","translate","scale","rotate","perspective"];const w=["transform","translate","scale","rotate","perspective","filter"];const h=["paint","layout","strict","content"];function v(n){const t=S();const e=c(n)?C(n):n;return m.some((n=>!!e[n]&&e[n]!=="none"))||!!e.containerType&&e.containerType!=="normal"||!t&&!!e.backdropFilter&&e.backdropFilter!=="none"||!t&&!!e.filter&&e.filter!=="none"||w.some((n=>(e.willChange||"").includes(n)))||h.some((n=>(e.contain||"").includes(n)))}function y(n){let t=L(n);while(u(t)&&!T(t)){if(v(t))return t;if(p(t))return null;t=L(t)}return null}function S(){return!(typeof CSS==="undefined"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const b=new Set(["html","body","#document"]);function T(n){return b.has(t(n))}function C(n){return e(n).getComputedStyle(n)}function E(n){return c(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function L(n){if(t(n)==="html")return n;const e=n.assignedSlot||n.parentNode||l(n)&&n.host||o(n);return l(e)?e.host:e}function D(n){const t=L(n);return T(t)?n.ownerDocument?n.ownerDocument.body:n.body:u(t)&&s(t)?t:D(t)}function g(n,t,o){var r;t===void 0&&(t=[]);o===void 0&&(o=true);const c=D(n);const u=c===((r=n.ownerDocument)==null?void 0:r.body);const l=e(c);if(u){const n=k(l);return t.concat(l,l.visualViewport||[],s(c)?c:[],n&&o?g(n):[])}return t.concat(c,g(c,[],o))}function k(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}export{C as getComputedStyle,y as getContainingBlock,o as getDocumentElement,k as getFrameElement,D as getNearestOverflowAncestor,t as getNodeName,E as getNodeScroll,g as getOverflowAncestors,L as getParentNode,e as getWindow,v as isContainingBlock,c as isElement,u as isHTMLElement,T as isLastTraversableNode,r as isNode,s as isOverflowElement,l as isShadowRoot,f as isTableElement,p as isTopLayer,S as isWebKit}; 4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.