1import{R as d,r as s}from"./chunk-EPOLDU6W-CffQmu0Y.js";import{f as p,s as y}from"./hidden-CVKIA8aF.js";import{b as f,l as m,v as i}from"./keyboard-CUKk1vEI.js";import{s as b}from"./portal-CW21RI9f.js";let x=s.createContext(()=>{});function q({value:t,children:r}){return d.createElement(x.Provider,{value:t},r)}function A({defaultContainers:t=[],portals:r,mainTreeNode:l}={}){let c=f(()=>{var u,o;let a=m(l),n=[];for(let e of t)e!==null&&(i(e)?n.push(e):"current"in e&&i(e.current)&&n.push(e.current));if(r!=null&&r.current)for(let e of r.current)n.push(e);for(let e of(u=a?.querySelectorAll("html > *, body > *"))!=null?u:[])e!==document.body&&e!==document.head&&i(e)&&e.id!=="headlessui-portal-root"&&(l&&(e.contains(l)||e.contains((o=l?.getRootNode())==null?void 0:o.host))||n.some(h=>e.contains(h))||n.push(e));return n});return{resolveContainers:c,contains:f(u=>c().some(o=>o.contains(u)))}}let v=s.createContext(null);function B({children:t,node:r}){let[l,c]=s.useState(null),u=C(r??l);return d.createElement(v.Provider,{value:u},t,u===null&&d.createElement(p,{features:y.Hidden,ref:o=>{var a,n;if(o){for(let e of(n=(a=m(o))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?n:[])if(e!==document.body&&e!==document.head&&i(e)&&e!=null&&e.contains(o)){c(e);break}}}}))}function C(t=null){var r;return(r=s.useContext(v))!=null?r:t}var k=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(k||{});function F(){let t=s.useRef(0);return b(!0,"keydown",r=>{r.key==="Tab"&&(t.current=r.shiftKey?1:0)},!0),t}export{q as C,A as S,k as a,B as j,F as u,C as x};
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.