import{bI as Ne,bQ as _e,a6 as ye,a as M,N as W,a4 as ue,a5 as z,r as N,bk as q,bl as ge,Y as F,bi as $,bR as nt,bS as Ee,bT as ae,bU as re,bV as Se,G as A,a2 as Z,bW as Oe,av as V,aq as Pe,ae as he,bX as Ie,b7 as we,k as be,bY as Ae,bp as ot,an as Y,u as at,X as rt,bZ as $e,ao as He,b_ as it,aH as st,as as lt,aP as ct,aT as ut,bm as ft,a8 as qe,aU as dt,a7 as vt,aA as mt,am as yt,aW as gt,bs as ht,b$ as wt,a9 as je,c0 as bt,bv as pt,J as xt,K as Et,ax as St,F as Ot,c1 as Pt,aB as At,ah as Ct,bo as Tt,c2 as Rt,c3 as Ce,bF as Te}from"./index-207e8178.js";import{m as kt,u as Mt}from"./lazy-37150cc6.js";class j{constructor(n){let{x:t,y:o,width:a,height:r}=n;this.x=t,this.y=o,this.width=a,this.height=r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Re(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function ze(e){return Array.isArray(e)?new j({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Ye(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),o=t.transform;if(o){let a,r,s,i,l;if(o.startsWith("matrix3d("))a=o.slice(9,-1).split(/, /),r=+a[0],s=+a[5],i=+a[12],l=+a[13];else if(o.startsWith("matrix("))a=o.slice(7,-1).split(/, /),r=+a[0],s=+a[3],i=+a[4],l=+a[5];else return new j(n);const u=t.transformOrigin,d=n.x-i-(1-r)*parseFloat(u),y=n.y-l-(1-s)*parseFloat(u.slice(u.indexOf(" ")+1)),h=r?n.width/r:e.offsetWidth+1,v=s?n.height/s:e.offsetHeight+1;return new j({x:d,y,width:h,height:v})}else return new j(n)}function G(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let o;try{o=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof o.finished>"u"&&(o.finished=new Promise(a=>{o.onfinish=()=>{a(o)}})),o}const J=new WeakMap;function Ft(e,n){Object.keys(n).forEach(t=>{if(Ne(t)){const o=_e(t),a=J.get(e);if(n[t]==null)a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))});else if(!a||![...a].some(r=>r[0]===o&&r[1]===n[t])){e.addEventListener(o,n[t]);const r=a||new Set;r.add([o,n[t]]),J.has(e)||J.set(e,r)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function Lt(e,n){Object.keys(n).forEach(t=>{if(Ne(t)){const o=_e(t),a=J.get(e);a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))})}else e.removeAttribute(t)})}function Ue(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const n=e.getRootNode();return n!==document&&n.getRootNode({composed:!0})!==document?null:n}const fe="cubic-bezier(0.4, 0, 0.2, 1)",Dt="cubic-bezier(0.0, 0, 0.2, 1)",Bt="cubic-bezier(0.4, 0, 1, 1)";function Vt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(n?Wt(e):pe(e))return e;e=e.parentElement}return document.scrollingElement}function ee(e,n){const t=[];if(n&&e&&!n.contains(e))return t;for(;e&&(pe(e)&&t.push(e),e!==n);)e=e.parentElement;return t}function pe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return n.overflowY==="scroll"||n.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function Wt(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return["scroll","auto"].includes(n.overflowY)}function Nt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}const _t=z({target:[Object,Array]},"v-dialog-transition"),It=ye()({name:"VDialogTransition",props:_t(),setup(e,n){let{slots:t}=n;const o={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,r){var h;await new Promise(v=>requestAnimationFrame(v)),await new Promise(v=>requestAnimationFrame(v)),a.style.visibility="";const{x:s,y:i,sx:l,sy:u,speed:d}=Me(e.target,a),y=G(a,[{transform:`translate(${s}px, ${i}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*d,easing:Dt});(h=ke(a))==null||h.forEach(v=>{G(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*d,easing:fe})}),y.finished.then(()=>r())},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,r){var h;await new Promise(v=>requestAnimationFrame(v));const{x:s,y:i,sx:l,sy:u,speed:d}=Me(e.target,a);G(a,[{},{transform:`translate(${s}px, ${i}px) scale(${l}, ${u})`,opacity:0}],{duration:125*d,easing:Bt}).finished.then(()=>r()),(h=ke(a))==null||h.forEach(v=>{G(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*d,easing:fe})})},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?M(ue,W({name:"dialog-transition"},o,{css:!1}),t):M(ue,{name:"dialog-transition"},t)}});function ke(e){var t;const n=(t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:t.children;return n&&[...n]}function Me(e,n){const t=ze(e),o=Ye(n),[a,r]=getComputedStyle(n).transformOrigin.split(" ").map(p=>parseFloat(p)),[s,i]=getComputedStyle(n).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=t.left+t.width/2;s==="left"||i==="left"?l-=t.width/2:(s==="right"||i==="right")&&(l+=t.width/2);let u=t.top+t.height/2;s==="top"||i==="top"?u-=t.height/2:(s==="bottom"||i==="bottom")&&(u+=t.height/2);const d=t.width/o.width,y=t.height/o.height,h=Math.max(1,d,y),v=d/h||0,m=y/h||0,f=o.width*o.height/(window.innerWidth*window.innerHeight),w=f>.12?Math.min(1.5,(f-.12)*10+1):1;return{x:l-(a+o.left),y:u-(r+o.top),sx:v,sy:m,speed:w}}function ie(e,n){return{x:e.x+n.x,y:e.y+n.y}}function $t(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Fe(e,n){if(e.side==="top"||e.side==="bottom"){const{side:t,align:o}=e,a=o==="left"?0:o==="center"?n.width/2:o==="right"?n.width:o,r=t==="top"?0:t==="bottom"?n.height:t;return ie({x:a,y:r},n)}else if(e.side==="left"||e.side==="right"){const{side:t,align:o}=e,a=t==="left"?0:t==="right"?n.width:t,r=o==="top"?0:o==="center"?n.height/2:o==="bottom"?n.height:o;return ie({x:a,y:r},n)}return ie({x:n.width/2,y:n.height/2},n)}const Ke={static:jt,connected:Yt},Ht=z({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Ke},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function qt(e,n){const t=N({}),o=N();q&&ge(()=>!!(n.isActive.value&&e.locationStrategy),r=>{var s,i;F(()=>e.locationStrategy,r),$(()=>{window.removeEventListener("resize",a),o.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(s=e.locationStrategy(n,e,t))==null?void 0:s.updateLocation:o.value=(i=Ke[e.locationStrategy](n,e,t))==null?void 0:i.updateLocation});function a(r){var s;(s=o.value)==null||s.call(o,r)}return{contentStyles:t,updateLocation:o}}function jt(){}function zt(e,n){n?e.style.removeProperty("left"):e.style.removeProperty("right");const t=Ye(e);return n?t.x+=parseFloat(e.style.right||0):t.x-=parseFloat(e.style.left||0),t.y-=parseFloat(e.style.top||0),t}function Yt(e,n,t){(Array.isArray(e.target.value)||Nt(e.target.value))&&Object.assign(t.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:r}=nt(()=>{const m=Ee(n.location,e.isRtl.value),f=n.origin==="overlap"?m:n.origin==="auto"?ae(m):Ee(n.origin,e.isRtl.value);return m.side===f.side&&m.align===re(f).align?{preferredAnchor:Se(m),preferredOrigin:Se(f)}:{preferredAnchor:m,preferredOrigin:f}}),[s,i,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>A(()=>{const f=parseFloat(n[m]);return isNaN(f)?1/0:f})),d=A(()=>{if(Array.isArray(n.offset))return n.offset;if(typeof n.offset=="string"){const m=n.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof n.offset=="number"?[n.offset,0]:[0,0]});let y=!1;const h=new ResizeObserver(()=>{y&&v()});F([e.target,e.contentEl],(m,f)=>{let[w,p]=m,[b,x]=f;b&&!Array.isArray(b)&&h.unobserve(b),w&&!Array.isArray(w)&&h.observe(w),x&&h.unobserve(x),p&&h.observe(p)},{immediate:!0}),$(()=>{h.disconnect()});function v(){if(y=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>y=!0)}),!e.target.value||!e.contentEl.value)return;const m=ze(e.target.value),f=zt(e.contentEl.value,e.isRtl.value),w=ee(e.contentEl.value),p=12;w.length||(w.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(f.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),f.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const b=w.reduce((P,S)=>{const g=S.getBoundingClientRect(),E=new j({x:S===document.documentElement?0:g.x,y:S===document.documentElement?0:g.y,width:S.clientWidth,height:S.clientHeight});return P?new j({x:Math.max(P.left,E.left),y:Math.max(P.top,E.top),width:Math.min(P.right,E.right)-Math.max(P.left,E.left),height:Math.min(P.bottom,E.bottom)-Math.max(P.top,E.top)}):E},void 0);b.x+=p,b.y+=p,b.width-=p*2,b.height-=p*2;let x={anchor:a.value,origin:r.value};function R(P){const S=new j(f),g=Fe(P.anchor,m),E=Fe(P.origin,S);let{x:D,y:B}=$t(g,E);switch(P.anchor.side){case"top":B-=d.value[0];break;case"bottom":B+=d.value[0];break;case"left":D-=d.value[0];break;case"right":D+=d.value[0];break}switch(P.anchor.align){case"top":B-=d.value[1];break;case"bottom":B+=d.value[1];break;case"left":D-=d.value[1];break;case"right":D+=d.value[1];break}return S.x+=D,S.y+=B,S.width=Math.min(S.width,l.value),S.height=Math.min(S.height,u.value),{overflows:Re(S,b),x:D,y:B}}let L=0,T=0;const c={x:0,y:0},k={x:!1,y:!1};let ne=-1;for(;!(ne++>10);){const{x:P,y:S,overflows:g}=R(x);L+=P,T+=S,f.x+=P,f.y+=S;{const E=Oe(x.anchor),D=g.x.before||g.x.after,B=g.y.before||g.y.after;let U=!1;if(["x","y"].forEach(C=>{if(C==="x"&&D&&!k.x||C==="y"&&B&&!k.y){const H={anchor:{...x.anchor},origin:{...x.origin}},K=C==="x"?E==="y"?re:ae:E==="y"?ae:re;H.anchor=K(H.anchor),H.origin=K(H.origin);const{overflows:_}=R(H);(_[C].before<=g[C].before&&_[C].after<=g[C].after||_[C].before+_[C].after<(g[C].before+g[C].after)/2)&&(x=H,U=k[C]=!0)}}),U)continue}g.x.before&&(L+=g.x.before,f.x+=g.x.before),g.x.after&&(L-=g.x.after,f.x-=g.x.after),g.y.before&&(T+=g.y.before,f.y+=g.y.before),g.y.after&&(T-=g.y.after,f.y-=g.y.after);{const E=Re(f,b);c.x=b.width-E.x.before-E.x.after,c.y=b.height-E.y.before-E.y.after,L+=E.x.before,f.x+=E.x.before,T+=E.y.before,f.y+=E.y.before}break}const oe=Oe(x.anchor);return Object.assign(t.value,{"--v-overlay-anchor-origin":`${x.anchor.side} ${x.anchor.align}`,transformOrigin:`${x.origin.side} ${x.origin.align}`,top:V(se(T)),left:e.isRtl.value?void 0:V(se(L)),right:e.isRtl.value?V(se(-L)):void 0,minWidth:V(oe==="y"?Math.min(s.value,m.width):s.value),maxWidth:V(Le(Pe(c.x,s.value===1/0?0:s.value,l.value))),maxHeight:V(Le(Pe(c.y,i.value===1/0?0:i.value,u.value)))}),{available:c,contentBox:f}}return F(()=>[a.value,r.value,n.offset,n.minWidth,n.minHeight,n.maxWidth,n.maxHeight],()=>v()),Z(()=>{const m=v();if(!m)return;const{available:f,contentBox:w}=m;w.height>f.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function se(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Le(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let de=!0;const te=[];function Ut(e){!de||te.length?(te.push(e),ve()):(de=!1,e(),ve())}let De=-1;function ve(){cancelAnimationFrame(De),De=requestAnimationFrame(()=>{const e=te.shift();e&&e(),te.length?ve():de=!0})}const Q={none:null,close:Gt,block:Zt,reposition:Jt},Kt=z({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Q}},"VOverlay-scroll-strategies");function Xt(e,n){if(!q)return;let t;he(async()=>{t==null||t.stop(),n.isActive.value&&e.scrollStrategy&&(t=Ie(),await Z(),t.active&&t.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(n,e,t):(o=Q[e.scrollStrategy])==null||o.call(Q,n,e,t)}))}),$(()=>{t==null||t.stop()})}function Gt(e){function n(t){e.isActive.value=!1}Xe(e.targetEl.value??e.contentEl.value,n)}function Zt(e,n){var s;const t=(s=e.root.value)==null?void 0:s.offsetParent,o=[...new Set([...ee(e.targetEl.value,n.contained?t:void 0),...ee(e.contentEl.value,n.contained?t:void 0)])].filter(i=>!i.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,r=(i=>pe(i)&&i)(t||document.documentElement);r&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((i,l)=>{i.style.setProperty("--v-body-scroll-x",V(-i.scrollLeft)),i.style.setProperty("--v-body-scroll-y",V(-i.scrollTop)),i!==document.documentElement&&i.style.setProperty("--v-scrollbar-offset",V(a)),i.classList.add("v-overlay-scroll-blocked")}),$(()=>{o.forEach((i,l)=>{const u=parseFloat(i.style.getPropertyValue("--v-body-scroll-x")),d=parseFloat(i.style.getPropertyValue("--v-body-scroll-y"));i.style.removeProperty("--v-body-scroll-x"),i.style.removeProperty("--v-body-scroll-y"),i.style.removeProperty("--v-scrollbar-offset"),i.classList.remove("v-overlay-scroll-blocked"),i.scrollLeft=-u,i.scrollTop=-d}),r&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Jt(e,n,t){let o=!1,a=-1,r=-1;function s(i){Ut(()=>{var d,y;const l=performance.now();(y=(d=e.updateLocation).value)==null||y.call(d,i),o=(performance.now()-l)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?i=>i():requestIdleCallback)(()=>{t.run(()=>{Xe(e.targetEl.value??e.contentEl.value,i=>{o?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{s(i)})})):s(i)})})}),$(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(a)})}function Xe(e,n){const t=[document,...ee(e)];t.forEach(o=>{o.addEventListener("scroll",n,{passive:!0})}),$(()=>{t.forEach(o=>{o.removeEventListener("scroll",n)})})}const me=Symbol.for("vuetify:v-menu"),Qt=z({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function en(e,n){const t={},o=a=>()=>{if(!q)return Promise.resolve(!0);const r=a==="openDelay";return t.closeDelay&&window.clearTimeout(t.closeDelay),delete t.closeDelay,t.openDelay&&window.clearTimeout(t.openDelay),delete t.openDelay,new Promise(s=>{const i=parseInt(e[a]??0,10);t[a]=window.setTimeout(()=>{n==null||n(r),s(r)},i)})};return{runCloseDelay:o("closeDelay"),runOpenDelay:o("openDelay")}}const tn=z({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Qt()},"VOverlay-activator");function nn(e,n){let{isActive:t,isTop:o}=n;const a=we("useActivator"),r=N();let s=!1,i=!1,l=!0;const u=A(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=A(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:y,runCloseDelay:h}=en(e,c=>{c===(e.openOnHover&&s||u.value&&i)&&!(e.openOnHover&&t.value&&!o.value)&&(t.value!==c&&(l=!0),t.value=c)}),v=N(),m={onClick:c=>{c.stopPropagation(),r.value=c.currentTarget||c.target,t.value||(v.value=[c.clientX,c.clientY]),t.value=!t.value},onMouseenter:c=>{var k;(k=c.sourceCapabilities)!=null&&k.firesTouchEvents||(s=!0,r.value=c.currentTarget||c.target,y())},onMouseleave:c=>{s=!1,h()},onFocus:c=>{ot(c.target,":focus-visible")!==!1&&(i=!0,c.stopPropagation(),r.value=c.currentTarget||c.target,y())},onBlur:c=>{i=!1,c.stopPropagation(),h()}},f=A(()=>{const c={};return d.value&&(c.onClick=m.onClick),e.openOnHover&&(c.onMouseenter=m.onMouseenter,c.onMouseleave=m.onMouseleave),u.value&&(c.onFocus=m.onFocus,c.onBlur=m.onBlur),c}),w=A(()=>{const c={};if(e.openOnHover&&(c.onMouseenter=()=>{s=!0,y()},c.onMouseleave=()=>{s=!1,h()}),u.value&&(c.onFocusin=()=>{i=!0,y()},c.onFocusout=()=>{i=!1,h()}),e.closeOnContentClick){const k=be(me,null);c.onClick=()=>{t.value=!1,k==null||k.closeParents()}}return c}),p=A(()=>{const c={};return e.openOnHover&&(c.onMouseenter=()=>{l&&(s=!0,l=!1,y())},c.onMouseleave=()=>{s=!1,h()}),c});F(o,c=>{c&&(e.openOnHover&&!s&&(!u.value||!i)||u.value&&!i&&(!e.openOnHover||!s))&&(t.value=!1)}),F(t,c=>{c||setTimeout(()=>{v.value=void 0})},{flush:"post"});const b=N();he(()=>{b.value&&Z(()=>{r.value=Ae(b.value)})});const x=N(),R=A(()=>e.target==="cursor"&&v.value?v.value:x.value?Ae(x.value):Ge(e.target,a)||r.value),L=A(()=>Array.isArray(R.value)?void 0:R.value);let T;return F(()=>!!e.activator,c=>{c&&q?(T=Ie(),T.run(()=>{on(e,a,{activatorEl:r,activatorEvents:f})})):T&&T.stop()},{flush:"post",immediate:!0}),$(()=>{T==null||T.stop()}),{activatorEl:r,activatorRef:b,target:R,targetEl:L,targetRef:x,activatorEvents:f,contentEvents:w,scrimEvents:p}}function on(e,n,t){let{activatorEl:o,activatorEvents:a}=t;F(()=>e.activator,(l,u)=>{if(u&&l!==u){const d=i(u);d&&s(d)}l&&Z(()=>r())},{immediate:!0}),F(()=>e.activatorProps,()=>{r()}),$(()=>{s()});function r(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Ft(l,W(a.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Lt(l,W(a.value,u))}function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=Ge(l,n);return o.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,o.value}}function Ge(e,n){var o,a;if(!e)return;let t;if(e==="parent"){let r=(a=(o=n==null?void 0:n.proxy)==null?void 0:o.$el)==null?void 0:a.parentNode;for(;r!=null&&r.hasAttribute("data-no-activator");)r=r.parentNode;t=r}else typeof e=="string"?t=document.querySelector(e):"$el"in e?t=e.$el:t=e;return t}function an(){if(!q)return Y(!1);const{ssr:e}=at();if(e){const n=Y(!1);return rt(()=>{n.value=!0}),n}else return Y(!0)}function Ze(){const n=we("useScopeId").vnode.scopeId;return{scopeId:n?{[n]:""}:void 0}}const Be=Symbol.for("vuetify:stack"),X=$e([]);function rn(e,n,t){const o=we("useStack"),a=!t,r=be(Be,void 0),s=$e({activeChildren:new Set});He(Be,s);const i=Y(+n.value);ge(e,()=>{var y;const d=(y=X.at(-1))==null?void 0:y[1];i.value=d?d+10:+n.value,a&&X.push([o.uid,i.value]),r==null||r.activeChildren.add(o.uid),$(()=>{if(a){const h=st(X).findIndex(v=>v[0]===o.uid);X.splice(h,1)}r==null||r.activeChildren.delete(o.uid)})});const l=Y(!0);a&&he(()=>{var y;const d=((y=X.at(-1))==null?void 0:y[0])===o.uid;setTimeout(()=>l.value=d)});const u=A(()=>!s.activeChildren.size);return{globalTop:it(l),localTop:u,stackStyles:A(()=>({zIndex:i.value}))}}function sn(e){return{teleportTarget:A(()=>{const t=e.value;if(t===!0||!q)return;const o=t===!1?document.body:typeof t=="string"?document.querySelector(t):t;if(o==null)return;let a=o.querySelector(":scope > .v-overlay-container");return a||(a=document.createElement("div"),a.className="v-overlay-container",o.appendChild(a)),a})}}function ln(){return!0}function Je(e,n,t){if(!e||Qe(e,t)===!1)return!1;const o=Ue(n);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const a=(typeof t.value=="object"&&t.value.include||(()=>[]))();return a.push(n),!a.some(r=>r==null?void 0:r.contains(e.target))}function Qe(e,n){return(typeof n.value=="object"&&n.value.closeConditional||ln)(e)}function cn(e,n,t){const o=typeof t.value=="function"?t.value:t.value.handler;n._clickOutside.lastMousedownWasOutside&&Je(e,n,t)&&setTimeout(()=>{Qe(e,t)&&o&&o(e)},0)}function Ve(e,n){const t=Ue(e);n(document),typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&n(t)}const un={mounted(e,n){const t=a=>cn(a,e,n),o=a=>{e._clickOutside.lastMousedownWasOutside=Je(a,e,n)};Ve(e,a=>{a.addEventListener("click",t,!0),a.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[n.instance.$.uid]={onClick:t,onMousedown:o}},unmounted(e,n){e._clickOutside&&(Ve(e,t=>{var r;if(!t||!((r=e._clickOutside)!=null&&r[n.instance.$.uid]))return;const{onClick:o,onMousedown:a}=e._clickOutside[n.instance.$.uid];t.removeEventListener("click",o,!0),t.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[n.instance.$.uid])}};function fn(e){const{modelValue:n,color:t,...o}=e;return M(ue,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&M("div",W({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const et=z({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...tn(),...lt(),...ct(),...kt(),...Ht(),...Kt(),...ut(),...ft()},"VOverlay"),We=ye()({name:"VOverlay",directives:{ClickOutside:un},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...et()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,n){let{slots:t,attrs:o,emit:a}=n;const r=qe(e,"modelValue"),s=A({get:()=>r.value,set:O=>{O&&e.disabled||(r.value=O)}}),{teleportTarget:i}=sn(A(()=>e.attach||e.contained)),{themeClasses:l}=dt(e),{rtlClasses:u,isRtl:d}=vt(),{hasContent:y,onAfterLeave:h}=Mt(e,s),v=mt(A(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:m,localTop:f,stackStyles:w}=rn(s,yt(e,"zIndex"),e._disableGlobalStack),{activatorEl:p,activatorRef:b,target:x,targetEl:R,targetRef:L,activatorEvents:T,contentEvents:c,scrimEvents:k}=nn(e,{isActive:s,isTop:f}),{dimensionStyles:ne}=gt(e),oe=an(),{scopeId:P}=Ze();F(()=>e.disabled,O=>{O&&(s.value=!1)});const S=N(),g=N(),{contentStyles:E,updateLocation:D}=qt(e,{isRtl:d,contentEl:g,target:x,isActive:s});Xt(e,{root:S,contentEl:g,targetEl:R,isActive:s,updateLocation:D});function B(O){a("click:outside",O),e.persistent?_():s.value=!1}function U(){return s.value&&m.value}q&&F(s,O=>{O?window.addEventListener("keydown",C):window.removeEventListener("keydown",C)},{immediate:!0}),ht(()=>{q&&window.removeEventListener("keydown",C)});function C(O){var I,xe;O.key==="Escape"&&m.value&&(e.persistent?_():(s.value=!1,(I=g.value)!=null&&I.contains(document.activeElement)&&((xe=p.value)==null||xe.focus())))}const H=wt();ge(()=>e.closeOnBack,()=>{Pt(H,O=>{m.value&&s.value?(O(!1),e.persistent?_():s.value=!1):O()})});const K=N();F(()=>s.value&&(e.absolute||e.contained)&&i.value==null,O=>{if(O){const I=Vt(S.value);I&&I!==document.scrollingElement&&(K.value=I.scrollTop)}});function _(){e.noClickAnimation||g.value&&G(g.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:fe})}function tt(){h(),a("afterLeave")}return je(()=>{var O;return M(Ot,null,[(O=t.activator)==null?void 0:O.call(t,{isActive:s.value,props:W({ref:b,targetRef:L},T.value,e.activatorProps)}),oe.value&&y.value&&M(bt,{disabled:!i.value,to:i.value},{default:()=>[M("div",W({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":s.value,"v-overlay--contained":e.contained},l.value,u.value,e.class],style:[w.value,{top:V(K.value)},e.style],ref:S},P,o),[M(fn,W({color:v,modelValue:s.value&&!!e.scrim},k.value),null),M(pt,{appear:!0,persisted:!0,transition:e.transition,target:x.value,onAfterLeave:tt},{default:()=>{var I;return[xt(M("div",W({ref:g,class:["v-overlay__content",e.contentClass],style:[ne.value,E.value]},c.value,e.contentProps),[(I=t.default)==null?void 0:I.call(t,{isActive:s})]),[[Et,s.value],[St("click-outside"),{handler:B,closeConditional:U,include:()=>[p.value]}]])]}})])]})])}),{activatorEl:p,target:x,animateClick:_,contentEl:g,globalTop:m,localTop:f,updateLocation:D}}}),le=Symbol("Forwarded refs");function ce(e,n){let t=e;for(;t;){const o=Reflect.getOwnPropertyDescriptor(t,n);if(o)return o;t=Object.getPrototypeOf(t)}}function dn(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return e[le]=t,new Proxy(e,{get(a,r){if(Reflect.has(a,r))return Reflect.get(a,r);if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const s of t)if(s.value&&Reflect.has(s.value,r)){const i=Reflect.get(s.value,r);return typeof i=="function"?i.bind(s.value):i}}},has(a,r){if(Reflect.has(a,r))return!0;if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const s of t)if(s.value&&Reflect.has(s.value,r))return!0;return!1},set(a,r,s){if(Reflect.has(a,r))return Reflect.set(a,r,s);if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const i of t)if(i.value&&Reflect.has(i.value,r))return Reflect.set(i.value,r,s);return!1},getOwnPropertyDescriptor(a,r){var i;const s=Reflect.getOwnPropertyDescriptor(a,r);if(s)return s;if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const l of t){if(!l.value)continue;const u=ce(l.value,r)??("_"in l.value?ce((i=l.value._)==null?void 0:i.setupState,r):void 0);if(u)return u}for(const l of t){const u=l.value&&l.value[le];if(!u)continue;const d=u.slice();for(;d.length;){const y=d.shift(),h=ce(y.value,r);if(h)return h;const v=y.value&&y.value[le];v&&d.push(...v)}}}}})}const vn=z({id:String,...At(et({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:It}}),["absolute"])},"VMenu"),gn=ye()({name:"VMenu",props:vn(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:t}=n;const o=qe(e,"modelValue"),{scopeId:a}=Ze(),r=Ct(),s=A(()=>e.id||`v-menu-${r}`),i=N(),l=be(me,null),u=Y(0);He(me,{register(){++u.value},unregister(){--u.value},closeParents(){setTimeout(()=>{u.value||(o.value=!1,l==null||l.closeParents())},40)}});async function d(f){var b,x,R;const w=f.relatedTarget,p=f.target;await Z(),o.value&&w!==p&&((b=i.value)!=null&&b.contentEl)&&((x=i.value)!=null&&x.globalTop)&&![document,i.value.contentEl].includes(p)&&!i.value.contentEl.contains(p)&&((R=Ce(i.value.contentEl)[0])==null||R.focus())}F(o,f=>{f?(l==null||l.register(),document.addEventListener("focusin",d,{once:!0})):(l==null||l.unregister(),document.removeEventListener("focusin",d))});function y(){l==null||l.closeParents()}function h(f){var w,p,b;e.disabled||f.key==="Tab"&&(Rt(Ce((w=i.value)==null?void 0:w.contentEl,!1),f.shiftKey?"prev":"next",R=>R.tabIndex>=0)||(o.value=!1,(b=(p=i.value)==null?void 0:p.activatorEl)==null||b.focus()))}function v(f){var p;if(e.disabled)return;const w=(p=i.value)==null?void 0:p.contentEl;w&&o.value?f.key==="ArrowDown"?(f.preventDefault(),Te(w,"next")):f.key==="ArrowUp"&&(f.preventDefault(),Te(w,"prev")):["ArrowDown","ArrowUp"].includes(f.key)&&(o.value=!0,f.preventDefault(),setTimeout(()=>setTimeout(()=>v(f))))}const m=A(()=>W({"aria-haspopup":"menu","aria-expanded":String(o.value),"aria-owns":s.value,onKeydown:v},e.activatorProps));return je(()=>{const f=We.filterProps(e);return M(We,W({ref:i,class:["v-menu",e.class],style:e.style},f,{modelValue:o.value,"onUpdate:modelValue":w=>o.value=w,absolute:!0,activatorProps:m.value,"onClick:outside":y,onKeydown:h},a),{activator:t.activator,default:function(){for(var w=arguments.length,p=new Array(w),b=0;b<w;b++)p[b]=arguments[b];return M(Tt,{root:"VMenu"},{default:()=>{var x;return[(x=t.default)==null?void 0:x.call(t,...p)]}})}})}),dn({id:s,ΨopenChildren:u},i)}});export{gn as V,We as a,It as b,G as c,dn as f,Vt as g,et as m,Ye as n,fe as s,Ze as u};