1import{bd as R,bc as W,aG as K,I as E,l as L,m as M,aq as x,af as I,be as C,a5 as q,a6 as U,Q as $,aC as H,bf as Y,e as j,O as G,a4 as _,bg as b,aU as w,bh as O,bi as V,bj as X,bk as A,bl as B,o as Q,x as z,w as J,A as Z,y as ee,U as te,k as ne,bm as oe}from"./BYXglTKb.js";const re=W(()=>{const e=E(new Map),n=E(),t=M(()=>{for(const v of e.value.values())if(v)return!0;return!1}),r=K({scrollBody:E(!0)});let c=null;const m=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.value??"",C&&c?.(),n.value=void 0};return L(t,(v,y)=>{if(!x)return;if(!v){y&&m();return}n.value===void 0&&(n.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,h={padding:l,margin:0},a=r.scrollBody?.value?typeof r.scrollBody.value=="object"?I({padding:r.scrollBody.value.padding===!0?l:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?l:r.scrollBody.value.margin},h):h:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof a.padding=="number"?`${a.padding}px`:String(a.padding),document.body.style.marginRight=typeof a.margin=="number"?`${a.margin}px`:String(a.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),C&&(c=q(document,"touchmove",o=>ae(o),{passive:!1})),U(()=>{t.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function ye(e){const n=Math.random().toString(36).substring(2,7),t=re();t.value.set(n,e??!1);const r=M({get:()=>t.value.get(n)??!1,set:c=>t.value.set(n,c)});return R(()=>{t.value.delete(n)}),r}function D(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(t instanceof Element)||t.tagName==="BODY"?!1:D(t)}}function ae(e){const n=e||window.event,t=n.target;return t instanceof Element&&D(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.cancelable&&n.preventDefault(),!1)}var se=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},g=new WeakMap,S=new WeakMap,F={},k=0,N=function(e){return e&&(e.host||N(e.parentNode))},ue=function(e,n){return n.map(function(t){if(e.contains(t))return t;var r=N(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},ie=function(e,n,t,r){var c=ue(n,Array.isArray(e)?e:[e]);F[t]||(F[t]=new WeakMap);var m=F[t],v=[],y=new Set,l=new Set(c),h=function(o){!o||y.has(o)||(y.add(o),h(o.parentNode))};c.forEach(h);var a=function(o){!o||l.has(o)||Array.prototype.forEach.call(o.children,function(s){if(y.has(s))a(s);else try{var f=s.getAttribute(r),u=f!==null&&f!=="false",i=(g.get(s)||0)+1,d=(m.get(s)||0)+1;g.set(s,i),m.set(s,d),v.push(s),i===1&&u&&S.set(s,!0),d===1&&s.setAttribute(t,"true"),u||s.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",s,p)}})};return a(n),y.clear(),k++,function(){v.forEach(function(o){var s=g.get(o)-1,f=m.get(o)-1;g.set(o,s),m.set(o,f),s||(S.has(o)||o.removeAttribute(r),S.delete(o)),f||o.removeAttribute(t)}),k--,k||(g=new WeakMap,g=new WeakMap,S=new WeakMap,F={})}},ce=function(e,n,t){t===void 0&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=se(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),ie(r,c,t,"aria-hidden")):function(){return null}};function he(e){let n;L(()=>H(e),t=>{let r=!1;try{r=!!t?.closest("[popover]:not(:popover-open)")}catch{}t&&!r?n=ce(t):n&&n()}),$(()=>{n&&n()})}const le=Y(()=>E([]));function de(){const e=le();return{add(n){const t=e.value[0];n!==t&&t?.pause(),e.value=T(e.value,n),e.value.unshift(n)},remove(n){e.value=T(e.value,n),e.value[0]?.resume()}}}function T(e,n){const t=[...e],r=t.indexOf(n);return r!==-1&&t.splice(r,1),t}var fe=j({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:n}){const t=e,r=n,{currentRef:c,currentElement:m}=G(),v=E(null),y=de(),l=ne({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});_(a=>{if(!x)return;const o=m.value;if(!t.trapped)return;function s(d){if(l.paused||!o)return;const p=d.target;o.contains(p)?v.value=p:b(v.value,{select:!0})}function f(d){if(l.paused||!o)return;const p=d.relatedTarget;p!==null&&(o.contains(p)||b(v.value,{select:!0}))}function u(d){const p=v.value;if(p===null||!d.some(P=>P.removedNodes.length>0))return;o.contains(p)||b(o)}document.addEventListener("focusin",s),document.addEventListener("focusout",f);const i=new MutationObserver(u);o&&i.observe(o,{childList:!0,subtree:!0}),a(()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",f),i.disconnect()})}),_(async a=>{const o=m.value;if(await U(),!o)return;y.add(l);const s=w();if(!o.contains(s)){const u=new CustomEvent(O,B);o.addEventListener(O,i=>
1r("mountAutoFocus",i)),o.dispatchEvent(u),u.defaultPrevented||(V(X(o),{select:!0}),w()===s&&b(o))}a(()=>{o.removeEventListener(O,d=>r("mountAutoFocus",d));const u=new CustomEvent(A,B),i=d=>{r("unmountAutoFocus",d)};o.addEventListener(A,i),o.dispatchEvent(u),setTimeout(()=>{u.defaultPrevented||b(s??document.body,{select:!0}),o.removeEventListener(A,i),y.remove(l)},0)})});function h(a){if(!t.loop&&!t.trapped||l.paused)return;const o=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,s=w();if(o&&s){const f=a.currentTarget,[u,i]=oe(f);u&&i?!a.shiftKey&&s===i?(a.preventDefault(),t.loop&&b(u,{select:!0})):a.shiftKey&&s===u&&(a.preventDefault(),t.loop&&b(i,{select:!0})):s===f&&a.preventDefault()}}return(a,o)=>(Q(),z(ee(te),{ref_key:"currentRef",ref:c,tabindex:"-1","as-child":a.asChild,as:a.as,onKeydown:h},{default:J(()=>[Z(a.$slots,"default")]),_:3},8,["as-child","as"]))}}),be=fe;function ge(e){return e?"open":"closed"}function Ee(e){const n=w();for(const t of e)if(t===n||(t.focus(),w()!==n))return}export{be as F,he as a,Ee as f,ge as g,ye as u};
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.