1import{bg as E,f0 as U,aW as w,aT as P,a_ as K,bN as R,cr as F,f1 as _,f2 as b,b7 as M,f3 as A,f4 as $,f5 as I,f6 as k,f7 as B,a$ as Y,b0 as H,b1 as j,b2 as V,b4 as X,b6 as q,f8 as G,aZ as x,bd as Q,cs as Z,f9 as z,aY as D,fa as J,eQ as ee,b$ as te,fb as T,fc as ne}from"./BKtmRkjI.js";function ve(e){return e?"open":"closed"}function pe(e){const n=E();for(const t of e)if(t===n||(t.focus(),E()!==n))return}const re=U(()=>w([]));function ae(){const e=re();return{add(n){const t=e.value[0];n!==t&&(t==null||t.pause()),e.value=L(e.value,n),e.value.unshift(n)},remove(n){var t;e.value=L(e.value,n),(t=e.value[0])==null||t.resume()}}}function L(e,n){const t=[...e],s=t.indexOf(n);return s!==-1&&t.splice(s,1),t}function oe(e){return e.filter(n=>n.tagName!=="A")}const me=P({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:n}){const t=e,s=n,{currentRef:u,currentElement:p}=K(),v=w(null),m=ae(),l=R({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});F(o=>
1{if(!_)return;const r=p.value;if(!t.trapped)return;function a(d){if(l.paused||!r)return;const y=d.target;r.contains(y)?v.value=y:b(v.value,{select:!0})}function f(d){if(l.paused||!r)return;const y=d.relatedTarget;y!==null&&(r.contains(y)||b(v.value,{select:!0}))}function i(d){r.contains(v.value)||b(r)}document.addEventListener("focusin",a),document.addEventListener("focusout",f);const c=new MutationObserver(i);r&&c.observe(r,{childList:!0,subtree:!0}),o(()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",f),c.disconnect()})}),F(async o=>{const r=p.value;if(await M(),!r)return;m.add(l);const a=E();if(!r.contains(a)){const i=new CustomEvent(A,B);r.addEventListener(A,c=>s("mountAutoFocus",c)),r.dispatchEvent(i),i.defaultPrevented||($(oe(I(r)),{select:!0}),E()===a&&b(r))}o(()=>{r.removeEventListener(A,d=>s("mountAutoFocus",d));const i=new CustomEvent(k,B),c=d=>{s("unmountAutoFocus",d)};r.addEventListener(k,c),r.dispatchEvent(i),setTimeout(()=>{i.defaultPrevented||b(a??document.body,{select:!0}),r.removeEventListener(k,c),m.remove(l)},0)})});function h(o){if(!t.loop&&!t.trapped||l.paused)return;const r=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,a=E();if(r&&a){const f=o.currentTarget,[i,c]=G(f);i&&c?!o.shiftKey&&a===c?(o.preventDefault(),t.loop&&b(i,{select:!0})):o.shiftKey&&a===i&&(o.preventDefault(),t.loop&&b(c,{select:!0})):a===f&&o.preventDefault()}}return(o,r)=>(H(),Y(X(q),{ref_key:"currentRef",ref:u,tabindex:"-1","as-child":o.asChild,as:o.as,onKeydown:h},{default:j(()=>[V(o.$slots,"default")]),_:3},8,["as-child","as"]))}});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,O={},C=0,W=function(e){return e&&(e.host||W(e.parentNode))},ue=function(e,n){return n.map(function(t){if(e.contains(t))return t;var s=W(t);return s&&e.contains(s)?s:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},ie=function(e,n,t,s){var u=ue(n,Array.isArray(e)?e:[e]);O[t]||(O[t]=new WeakMap);var p=O[t],v=[],m=new Set,l=new Set(u),h=function(r){!r||m.has(r)||(m.add(r),h(r.parentNode))};u.forEach(h);var o=function(r){!r||l.has(r)||Array.prototype.forEach.call(r.children,function(a){if(m.has(a))o(a);else try{var f=a.getAttribute(s),i=f!==null&&f!=="false",c=(g.get(a)||0)+1,d=(p.get(a)||0)+1;g.set(a,c),p.set(a,d),v.push(a),c===1&&i&&S.set(a,!0),d===1&&a.setAttribute(t,"true"),i||a.setAttribute(s,"true")}catch(y){console.error("aria-hidden: cannot operate on ",a,y)}})};return o(n),m.clear(),C++,function(){v.forEach(function(r){var a=g.get(r)-1,f=p.get(r)-1;g.set(r,a),p.set(r,f),a||(S.has(r)||r.removeAttribute(s),S.delete(r)),f||r.removeAttribute(t)}),C--,C||(g=new WeakMap,g=new WeakMap,S=new WeakMap,O={})}},ce=function(e,n,t){t===void 0&&(t="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),u=se(e);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),ie(s,u,t,"aria-hidden")):function(){return null}};function ye(e){let n;x(()=>Z(e),t=>{t?n=ce(t):n&&n()}),Q(()=>{n&&n()})}const le=z(()=>{const e=w(new Map),n=w(),t=D(()=>{for(const v of e.value.values())if(v)return!0;return!1}),s=ee({scrollBody:w(!0)});let u=null;const p=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.value??"",T&&(u==null||u()),n.value=void 0};return x(t,(v,m)=>{var r;if(!_)return;if(!v){m&&p();return}n.value===void 0&&(n.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,h={padding:l,margin:0},o=(r=s.scrollBody)!=null&&r.value?typeof s.scrollBody.value=="object"?te({padding:s.scrollBody.value.padding===!0?l:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?l:s.scrollBody.value.margin},h):h:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof o.padding=="number"?`${o.padding}px`:String(o.padding),document.body.style.marginRight=typeof o.margin=="number"?`${o.margin}px`:String(o.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),T&&(u=ne(document,"touchmove",a=>fe(a),{passive:!1})),M(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function he(e){const n=Math.random().toString(36).substring(2,7),t=le();t.value.set(n,e??!1);const s=D({get:()=>t.value.get(n)??!1,set:u=>t.value.set(n,u)});return J(()=>{t.value.delete(n)}),s}function N(e){const n=window.getComputedStyle(e);
1if(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:N(t)}}function fe(e){const n=e||window.event,t=n.target;return t instanceof Element&&N(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.cancelable&&n.preventDefault(),!1)}export{me as _,ye as a,pe as f,ve as g,he 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.