1import{cB as U,a as M,cC as N,r as b,cD as R,w as x,cE as P,bm as W,cF as L,cG as Y,a5 as K,cH as j,b as H,cI as q,d as $,aZ as G,cJ as X,bW as C,cK as E,bZ as S,cL as _,cM as V,cN as Z,cO as F,cP as T,c as J,o as Q,K as z,a6 as ee,m as te,a_ as ne,cQ as re}from"./DZ7mik94.js";const oe=U(()=>{const e=b(new Map),t=b(),n=M(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=R({scrollBody:b(!0)});let u=null;const l=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",L&&u?.(),t.value=void 0};return x(n,(i,v)=>{if(!P)return;if(!i){v&&l();return}t.value===void 0&&(t.value=document.body.style.overflow);const c=window.innerWidth-document.documentElement.clientWidth,y={padding:c,margin:0},s=o.scrollBody?.value?typeof o.scrollBody.value=="object"?W({padding:o.scrollBody.value.padding===!0?c:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?c:o.scrollBody.value.margin},y):y:{padding:0,margin:0};c>0&&(document.body.style.paddingRight=typeof s.padding=="number"?`${s.padding}px`:String(s.padding),document.body.style.marginRight=typeof s.margin=="number"?`${s.margin}px`:String(s.margin),document.documentElement.style.setProperty("--scrollbar-width",`${c}px`),document.body.style.overflow="hidden"),L&&(u=Y(document,"touchmove",r=>se(r),{passive:!1})),K(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function ge(e){const t=Math.random().toString(36).substring(2,7),n=oe();n.value.set(t,e??!1);const o=M({get:()=>n.value.get(t)??!1,set:u=>n.value.set(t,u)});return N(()=>{n.value.delete(t)}),o}function D(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:D(n)}}function se(e){const t=e||window.event,n=t.target;return n instanceof Element&&D(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var ae=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},g=new WeakMap,w=new WeakMap,A={},O=0,I=function(e){return e&&(e.host||I(e.parentNode))},ue=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=I(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ce=function(e,t,n,o){var u=ue(t,Array.isArray(e)?e:[e]);A[n]||(A[n]=new WeakMap);var l=A[n],i=[],v=new Set,c=new Set(u),y=function(r){!r||v.has(r)||(v.add(r),y(r.parentNode))};u.forEach(y);var s=function(r){!r||c.has(r)||Array.prototype.forEach.call(r.children,function(a){if(v.has(a))s(a);else try{var p=a.getAttribute(o),d=p!==null&&p!=="false",f=(g.get(a)||0)+1,m=(l.get(a)||0)+1;g.set(a,f),l.set(a,m),i.push(a),f===1&&d&&w.set(a,!0),m===1&&a.setAttribute(n,"true"),d||a.setAttribute(o,"true")}catch(h){console.error("aria-hidden: cannot operate on ",a,h)}})};return s(t),v.clear(),O++,function(){i.forEach(function(r){var a=g.get(r)-1,p=l.get(r)-1;g.set(r,a),l.set(r,p),a||(w.has(r)||r.removeAttribute(o),w.delete(r)),p||r.removeAttribute(n)}),O--,O||(g=new WeakMap,g=new WeakMap,w=new WeakMap,A={})}},ie=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),u=ae(e);return u?(o.push.apply(o,Array.from(u.querySelectorAll("[aria-live], script"))),ce(o,u,n,"aria-hidden")):function(){return null}};function be(e){let t;x(()=>j(e),n=>{n?t=ie(n):t&&t()}),H(()=>{t&&t()})}const le=q(()=>b([]));function de(){const e=le();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=k(e.value,t),e.value.unshift(t)},remove(t){e.value=k(e.value,t),e.value[0]?.resume()}}}function k(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function fe(e){return e.filter(t=>t.tagName!=="A")}var ve=$({__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:t}){const n=e,o=t,{currentRef:u,currentElement:l}=G(),i=b(null),v=de(),c=X({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});C(s=>{if(!P)return;const r=l.value;if(!n.trapped)return;function a(m){if(c.paused||!r)return;const h=m.target;r.contains(h)?i.value=h:E(i.value,{select:!0})}function p(m){if(c.paused||!r)return;const h=m.relatedTarget;h!==null&&(r.contains(h)||E(i.value,{select:!0}))}function d(m){r.contains(i.value)||E(r)}document.addEventListener("focusin",a),document.addEventListener("focusout",p);const f=new MutationObserver(d);r&&f.observe(r,{childList:!0,subtree:!0}),s(()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",p),f.disconnect()})}),C(async s=>{const r=l.value;if(await K(),!r)return;v.add(c);const a=S();if(!r.contains(a)){const d=new CustomEvent(_,T);r.addEventListener(_,f=>o("mountAutoFocus",f)),r.dispatchEvent(d),d.defaultPrevented||(V(fe(Z(r)),{select:!0}),S()===a&&E(r))}s(()=>{r.removeEventListener(_,m=>o("mountAutoFocus",m));const d=new CustomEvent(F,T),f=m=>{o("unmountAutoFocus",m)};r.addEventListener(F,f),r.dispatchEvent(d),setTimeout(()=>{d.defaultPrevented||E(a??document.body,{select:!0}),r.removeEventListener(F,f),v.remove(c)},0)})});function y(s){if(!n.loop&&!n.trapped||c.paused)return;const r=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,a=S();if(r&&a){const p=s.currentTarget,[d,f]=re(p);d&&f?!s.shiftKey&&a===f?(s.preventDefault(),n.loop&&E(d,{select:!0})):s.shiftKey&&a===d&&(s.preventDefault(),n.loop&&E(f,{select:!0})):a===p&&s.preventDefault()}}return(s,r)=>(Q(),J(te(ne),{ref_key:"currentRef",ref:u,tabindex:"-1","as-child":s.asChild,as:s.as,onKeydown:y},{default:z(()=>[ee(s.$slots,"default")]),_:3},8,["as-child","as"]))}}),Se=ve;const we="menu.itemSelect",B=["Enter"," "],pe=["ArrowDown","PageUp","Home"],me=["ArrowUp","PageDown","End"],Ae=[...pe,...me],_e={ltr:[...B,"ArrowRight"],rtl:[...B,"ArrowLeft"]},Fe={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Oe(e){return e?"open":"closed"}function ye(e){return e==="indeterminate"}function Le(e){return ye(e)?"indeterminate":e?"checked":"unchecked"}function Ce(e){const t=S();for(const n of e)if(n===t||(n.focus(),S()!==t))return}function he(e,t){const{x:n,y:o}=e;let u=!1;for(let l=0,i=t.length-1;l<t.length;i=l++){const v=t[l].x,c=t[l].y,y=t[i].x,s=t[i].y;c>o!=s>o&&n<(y-v)*(o-c)/(s-c)+v&&(u=!u)}return u}function Te(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return he(n,t)}function ke(e){return e.pointerType==="mouse"}export{Se as F,we as I,me as L,B as S,ge as a,Ae as b,ke as c,Le as d,ye as e,Ce as f,Oe as g,Fe as h,Te as i,_e as j,be 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.