vendor: 4,202 bytes, line 1
1import{l as _t,m as de,h as je,a as Te,o as Nt,n as It,q as $t,s as Wt,v as et,x as Ht,y as Vt,c as ht,z as zt,A as Ut}from"./D3wpHQlj.js";import{k as A,r as S,L as jt,I as J,ab as Kt,aa as Yt,aN as se,i as T,h as vt,n as ue,e as ie,U as qt,Q as Xt,O as Oe,A as ee,H as gt,s as De,o as ge,w as Le,G as me,ah as yt,aO as Gt,V as Zt,aM as Qt,aP as wt,g as Jt,aQ as en,c as tn,b as nn,B as on}from"./BwYa6-TV.js";import{r as rn,P as Re}from"./Bgfm5tqZ.js";import{g as K}from"./Bgm3YTZj.js";import{i as sn}from"./lldZdVDi.js";const an=["top","right","bottom","left"],te=Math.min,_=Math.max,Ce=Math.round,we=Math.floor,H=e=>({x:e,y:e}),ln={left:"right",right:"left",bottom:"top",top:"bottom"},cn={start:"end",end:"start"};function We(e,t,n){return _(e,te(t,n))}function q(e,t){return typeof e=="function"?e(t):e}function X(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function Ke(e){return e==="x"?"y":"x"}function Ye(e){return e==="y"?"height":"width"}function Y(e){return["top","bottom"].includes(X(e))?"y":"x"}function qe(e){return Ke(Y(e))}function un(e,t,n){n===void 0&&(n=!1);const o=pe(e),i=qe(e),r=Ye(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Se(s)),[s,Se(s)]}function fn(e){const t=Se(e);return[He(e),t,He(t)]}function He(e){return e.replace(/start|end/g,t=>cn[t])}function dn(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function mn(e,t,n,o){const i=pe(e);let r=dn(X(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(He)))),r}function Se(e){return e.replace(/left|right|bottom|top/g,t=>ln[t])}function pn(e){return{top:0,right:0,bottom:0,left:0,...e}}function xt(e){return typeof e!="number"?pn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function tt(e,t,n){let{reference:o,floating:i}=e;const r=Y(t),s=qe(t),l=Ye(s),u=X(t),f=r==="y",c=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let p;switch(u){case"top":p={x:c,y:o.y-i.height};break;case"bottom":p={x:c,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:a};break;case"left":p={x:o.x-i.width,y:a};break;default:p={x:o.x,y:o.y}}switch(pe(t)){case"start":p[s]-=m*(n&&f?-1:1);break;case"end":p[s]+=m*(n&&f?-1:1);break}return p}const hn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:a}=tt(f,o,u),m=o,p={},d=0;for(let h=0;h<l.length;h++){const{name:g,fn:v}=l[h],{x:y,y:w,data:x,reset:b}=await v({x:c,y:a,initialPlacement:o,placement:m,strategy:i,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});c=y??c,a=w??a,p={...p,[g]:{...p[g],...x}},b&&d<=50&&(d++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:a}=tt(f,m,u)),h=-1)}return{x:c,y:a,placement:m,strategy:i,middlewareData:p}};async function he(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:a="floating",altBoundary:m=!1,padding:p=0}=q(t,e),d=xt(p),g=l[m?a==="floating"?"reference":"floating":a],v=Pe(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(g)))==null||n?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:c,strategy:u})),y=a==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),x=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},b=Pe(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:u}):y);
vendor: 8,193 bytes, line 1
1return{top:(v.top-b.top+d.top)/x.y,bottom:(b.bottom-v.bottom+d.bottom)/x.y,left:(v.left-b.left+d.left)/x.x,right:(b.right-v.right+d.right)/x.x}}const vn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:u}=t,{element:f,padding:c=0}=q(e,t)||{};if(f==null)return{};const a=xt(c),m={x:n,y:o},p=qe(i),d=Ye(p),h=await s.getDimensions(f),g=p==="y",v=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=r.reference[d]+r.reference[p]-m[p]-r.floating[d],b=m[p]-r.reference[p],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let E=C?C[w]:0;(!E||!await(s.isElement==null?void 0:s.isElement(C)))&&(E=l.floating[w]||r.floating[d]);const P=x/2-b/2,L=E/2-h[d]/2-1,M=te(a[v],L),O=te(a[y],L),k=M,B=E-h[d]-O,R=E/2-h[d]/2+P,D=We(k,R,B),U=!u.arrow&&pe(i)!=null&&R!==D&&r.reference[d]/2-(R<k?M:O)-h[d]/2<0,F=U?R<k?R-k:R-B:0;return{[p]:m[p]+F,data:{[p]:D,centerOffset:R-D-F,...U&&{alignmentOffset:F}},reset:U}}}),gn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:f}=t,{mainAxis:c=!0,crossAxis:a=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:h=!0,...g}=q(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const v=X(i),y=Y(l),w=X(l)===l,x=await(u.isRTL==null?void 0:u.isRTL(f.floating)),b=m||(w||!h?[Se(l)]:fn(l)),C=d!=="none";!m&&C&&b.push(...mn(l,h,d,x));const E=[l,...b],P=await he(t,g),L=[];let M=((o=r.flip)==null?void 0:o.overflows)||[];if(c&&L.push(P[v]),a){const D=un(i,s,x);L.push(P[D[0]],P[D[1]])}if(M=[...M,{placement:i,overflows:L}],!L.every(D=>D<=0)){var O,k;const D=(((O=r.flip)==null?void 0:O.index)||0)+1,U=E[D];if(U){var B;const G=a==="alignment"?y!==Y(U):!1,W=((B=M[0])==null?void 0:B.overflows[0])>0;if(!G||W)return{data:{index:D,overflows:M},reset:{placement:U}}}let F=(k=M.filter(G=>G.overflows[0]<=0).sort((G,W)=>G.overflows[1]-W.overflows[1])[0])==null?void 0:k.placement;if(!F)switch(p){case"bestFit":{var R;const G=(R=M.filter(W=>{if(C){const Z=Y(W.placement);return Z===y||Z==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Z=>Z>0).reduce((Z,Bt)=>Z+Bt,0)]).sort((W,Z)=>W[1]-Z[1])[0])==null?void 0:R[0];G&&(F=G);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function nt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ot(e){return an.some(t=>e[t]>=0)}const yn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=q(e,t);switch(o){case"referenceHidden":{const r=await he(t,{...i,elementContext:"reference"}),s=nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ot(s)}}}case"escaped":{const r=await he(t,{...i,altBoundary:!0}),s=nt(r,n.floating);return{data:{escapedOffsets:s,escaped:ot(s)}}}default:return{}}}}};async function wn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=X(n),l=pe(n),u=Y(n)==="y",f=["left","top"].includes(s)?-1:1,c=r&&u?-1:1,a=q(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:d}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return l&&typeof d=="number"&&(p=l==="end"?d*-1:d),u?{x:p*c,y:m*f}:{x:m*f,y:p*c}}const xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=t,u=await wn(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+u.x,y:r+u.y,data:{...u,placement:s}}}}},bn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:v,y}=g;return{x:v,y}}},...u}=q(e,t),f={x:n,y:o},c=await he(t,u),a=Y(X(i)),m=Ke(a);let p=f[m],d=f[a];if(r){const g=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=p+c[g],w=p-c[v];p=We(y,p,w)}if(s){const g=a==="y"?"top":"left",v=a==="y"?"bottom":"right",y=d+c[g],w=d-c[v];d=We(y,d,w)}const h=l.fn({...t,[m]:p,[a]:d});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:r,[a]:s}}}}}},En=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:f=!0}=q(e,t),c={x:n,y:o},a=Y(i),m=Ke(a);let p=c[m],d=c[a];const h=q(l,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const w=m==="y"?"height":"width",x=r.reference[m]-r.floating[w]+g.mainAxis,b=r.reference[m]+r.reference[w]-g.mainAxis;p<x?p=x:p>b&&(p=b)}if(f){var v,y;const w=m==="y"?"width":"height",x=["top","left"].includes(X(i)),b=r.reference[a]-r.floating[w]+(x&&((v=s.offset)==null?void 0:v[a])||0)+(x?0:g.crossAxis),C=r.reference[a]+r.reference[w]+(x?0:((y=s.offset)==null?void 0:y[a])||0)-(x?g.crossAxis:0);d<b?d=b:d>C&&(d=C)}return{[m]:p,[a]:d}}}},An=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:l}=t,{apply:u=()=>{},...f}=q(e,t),c=await he(t,f),a=X(i),m=pe(i),p=Y(i)==="y",{width:d,height:h}=r.floating;let g,v;a==="top"||a==="bottom"?(g=a,v=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(v=a,g=m==="end"?"top":"bottom");const y=h-c.top-c.bottom,w=d-c.left-c.right,x=te(h-c[g],y),b=te(d-c[v],w),C=!t.middlewareData.shift;let E=x,P=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=y),C&&!m){const M=_(c.left,0),O=_(c.right,0),k=_(c.top,0),B=_(c.bottom,0);p?P=d-2*(M!==0||O!==0?M+O:_(c.left,c.right)):E=h-2*(k!==0||B!==0?k+B:_(c.top,c.bottom))}await u({...t,availableWidth:P,availableHeight:E});const L=await s.getDimensions(l.floating);return d!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Me(){return typeof window<"u"}function re(e){return Xe(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function z(e){var t;return(t=(Xe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xe(e){return Me()?e instanceof Node||e instanceof N(e).Node:!1}function I(e){return Me()?e instanceof Element||e instanceof N(e).Element:!1}function V(e){return Me()?e instanceof HTMLElement||e instanceof N(e).HTMLElement:!1}function it(e){return!Me()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof N(e).ShadowRoot}function ye(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function On(e){return["table","td","th"].includes(re(e))}function ke(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ge(e){const t=Ze(),n=I(e)?$(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Cn(e){let t=ne(e);for(;V(t)&&!fe(t);){if(Ge(t))return t;if(ke(t))return null;t=ne(t)}return null}function Ze(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fe(e){return["html","body","#document"].includes(re(e))}function $(e){return N(e).getComputedStyle(e)}function Fe(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ne(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||it(e)&&e.host||z(e);return it(t)?t.host:t}function bt(e){const t=ne(e);return fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:V(t)&&ye(t)?t:bt(t)}function ve(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=bt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=N(i);if(r){const l=Ve(s);
vendor: 4,334 bytes, line 1
1return t.concat(s,s.visualViewport||[],ye(i)?i:[],l&&n?ve(l):[])}return t.concat(i,ve(i,[],n))}function Ve(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Et(e){const t=$(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=V(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=Ce(n)!==r||Ce(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function Qe(e){return I(e)?e:e.contextElement}function ce(e){const t=Qe(e);if(!V(t))return H(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Et(t);let s=(r?Ce(n.width):n.width)/o,l=(r?Ce(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Sn=H(0);function At(e){const t=N(e);return!Ze()||!t.visualViewport?Sn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==N(e)?!1:t}function oe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Qe(e);let s=H(1);t&&(o?I(o)&&(s=ce(o)):s=ce(e));const l=Pn(r,n,o)?At(r):H(0);let u=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,c=i.width/s.x,a=i.height/s.y;if(r){const m=N(r),p=o&&I(o)?N(o):o;let d=m,h=Ve(d);for(;h&&o&&p!==d;){const g=ce(h),v=h.getBoundingClientRect(),y=$(h),w=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*g.x,x=v.top+(h.clientTop+parseFloat(y.paddingTop))*g.y;u*=g.x,f*=g.y,c*=g.x,a*=g.y,u+=w,f+=x,d=N(h),h=Ve(d)}}return Pe({width:c,height:a,x:u,y:f})}function Je(e,t){const n=Fe(e).scrollLeft;return t?t.left+n:oe(z(e)).left+n}function Ot(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-(n?0:Je(e,o)),r=o.top+t.scrollTop;return{x:i,y:r}}function Tn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=z(o),l=t?ke(t.floating):!1;if(o===s||l&&r)return n;let u={scrollLeft:0,scrollTop:0},f=H(1);const c=H(0),a=V(o);if((a||!a&&!r)&&((re(o)!=="body"||ye(s))&&(u=Fe(o)),V(o))){const p=oe(o);f=ce(o),c.x=p.x+o.clientLeft,c.y=p.y+o.clientTop}const m=s&&!a&&!r?Ot(s,u,!0):H(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+c.x+m.x,y:n.y*f.y-u.scrollTop*f.y+c.y+m.y}}function Dn(e){return Array.from(e.getClientRects())}function Ln(e){const t=z(e),n=Fe(e),o=e.ownerDocument.body,i=_(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=_(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Je(e);const l=-n.scrollTop;return $(o).direction==="rtl"&&(s+=_(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function Rn(e,t){const n=N(e),o=z(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){r=i.width,s=i.height;const f=Ze();(!f||f&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:r,height:s,x:l,y:u}}function Mn(e,t){const n=oe(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=V(e)?ce(e):H(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,u=i*r.x,f=o*r.y;return{width:s,height:l,x:u,y:f}}function rt(e,t,n){let o;if(t==="viewport")o=Rn(e,n);else if(t==="document")o=Ln(z(e));else if(I(t))o=Mn(t,n);else{const i=At(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pe(o)}function Ct(e,t){const n=ne(e);return n===t||!I(n)||fe(n)?!1:$(n).position==="fixed"||Ct(n,t)}function kn(e,t){const n=t.get(e);if(n)return n;let o=ve(e,[],!1).filter(l=>I(l)&&re(l)!=="body"),i=null;const r=$(e).position==="fixed";let s=r?ne(e):e;for(;I(s)&&!fe(s);){const l=$(s),u=Ge(s);!u&&l.position==="fixed"&&(i=null),(r?!u&&!i:!u&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ye(s)&&!u&&Ct(e,s))?o=o.filter(c=>c!==s):i=l,s=ne(s)}return t.set(e,o),o}function Fn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?ke(t)?[]:kn(t,this._c):[].concat(n),o],l=s[0],u=s.reduce((f,c)=>{const a=rt(t,c,i);return f.top=_(a.top,f.top),f.right=te(a.right,f.right),f.bottom=te(a.bottom,f.bottom),f.left=_(a.left,f.left),f},rt(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Bn(e){const{width:t,height:n}=Et(e);return{width:t,height:n}}function _n(e,t,n){const o=V(t),i=z(t),r=n==="fixed",s=oe(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const u=H(0);function f(){u.x=Je(i)}if(o||!o&&!r)if((re(t)!=="body"||ye(i))&&(l=Fe(t)),o){const p=oe(t,!0,r,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&f();
1r&&!o&&i&&f();const c=i&&!o&&!r?Ot(i,l):H(0),a=s.left+l.scrollLeft-u.x-c.x,m=s.top+l.scrollTop-u.y-c.y;return{x:a,y:m,width:s.width,height:s.height}}function Be(e){return $(e).position==="static"}function st(e,t){if(!V(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return z(e)===n&&(n=n.ownerDocument.body),n}function St(e,t){const n=N(e);if(ke(e))return n;if(!V(e)){let i=ne(e);for(;i&&!fe(i);){if(I(i)&&!Be(i))return i;i=ne(i)}return n}let o=st(e,t);for(;o&&On(o)&&Be(o);)o=st(o,t);return o&&fe(o)&&Be(o)&&!Ge(o)?n:o||Cn(e)||n}const Nn=async function(e){const t=this.getOffsetParent||St,n=this.getDimensions,o=await n(e.floating);return{reference:_n(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function In(e){return $(e).direction==="rtl"}const $n={convertOffsetParentRelativeRectToViewportRelativeRect:Tn,getDocumentElement:z,getClippingRect:Fn,getOffsetParent:St,getElementRects:Nn,getClientRects:Dn,getDimensions:Bn,getScale:ce,isElement:I,isRTL:In};function Pt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wn(e,t){let n=null,o;const i=z(e);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),r();const f=e.getBoundingClientRect(),{left:c,top:a,width:m,height:p}=f;if(l||t(),!m||!p)return;const d=we(a),h=we(i.clientWidth-(c+m)),g=we(i.clientHeight-(a+p)),v=we(c),w={rootMargin:-d+"px "+-h+"px "+-g+"px "+-v+"px",threshold:_(0,te(1,u))||1};let x=!0;function b(C){const E=C[0].intersectionRatio;if(E!==u){if(!x)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Pt(f,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(b,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(e)}return s(!0),r}function Hn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,f=Qe(e),c=i||r?[...f?ve(f):[],...ve(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),r&&v.addEventListener("resize",n)});const a=f&&l?Wn(f,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),f&&!u&&p.observe(f),p.observe(t));let d,h=u?oe(e):null;u&&g();function g(){const v=oe(e);h&&!Pt(h,v)&&n(),h=v,d=requestAnimationFrame(g)}return n(),()=>{var v;c.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),a==null||a(),(v=p)==null||v.disconnect(),p=null,u&&cancelAnimationFrame(d)}}const Vn=xn,zn=bn,at=gn,Un=An,jn=yn,Kn=vn,Yn=En,qn=(e,t,n)=>{const o=new Map,i={platform:$n,...n},r={...i.platform,_c:o};return hn(e,t,{...i,platform:r})};function Xn(e){return e!=null&&typeof e=="object"&&"$el"in e}function ze(e){if(Xn(e)){const t=e.$el;return Xe(t)&&re(t)==="#comment"?null:t}return e}function le(e){return typeof e=="function"?e():T(e)}function Gn(e){return{name:"arrow",options:e,fn(t){const n=ze(le(e.element));return n==null?{}:Kn({element:n,padding:e.padding}).fn(t)}}}function Tt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lt(e,t){const n=Tt(e);return Math.round(t*n)/n}function Zn(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=A(()=>{var E;return(E=le(n.open))!=null?E:!0}),r=A(()=>le(n.middleware)),s=A(()=>{var E;return(E=le(n.placement))!=null?E:"bottom"}),l=A(()=>{var E;return(E=le(n.strategy))!=null?E:"absolute"}),u=A(()=>{var E;return(E=le(n.transform))!=null?E:!0}),f=A(()=>ze(e.value)),c=A(()=>ze(t.value)),a=S(0),m=S(0),p=S(l.value),d=S(s.value),h=jt({}),g=S(!1),v=A(()=>{const E={position:p.value,left:"0",top:"0"};if(!c.value)return E;const P=lt(c.value,a.value),L=lt(c.value,m.value);return u.value?{...E,transform:"translate("+P+"px, "+L+"px)",...Tt(c.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:P+"px",top:L+"px"}});let y;function w(){if(f.value==null||c.value==null)return;const E=i.value;qn(f.value,c.value,{middleware:r.value,placement:s.value,strategy:l.value}).then(P=>{a.value=P.x,m.value=P.y,p.value=P.strategy,d.value=P.placement,h.value=P.middlewareData,g.value=E!==!1})}function x(){typeof y=="function"&&(y(),y=void 0)}function b(){if(x(),o===void 0){w();return}if(f.value!=null&&c.value!=null){y=o(f.value,c.value,w);return}}function C(){i.value||(g.value=!1)}return J([r,s,l,i],w,{flush:"sync"}),J([f,c],b,{flush:"sync"}),J(i,C,{flush:"sync"}),Kt()&&Yt(x),{x:se(a),y:se(m),strategy:se(p),placement:se(d),middlewareData:se(h),isPositioned:se(g),floatingStyles:v,update:w}}function Qn(e,t){const n=S(e);function o(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=o(r)}}}function Jn(e,t){var g;const n=S({}),o=S("none"),i=S(e),r=e.value?"mounted":"unmounted";let s;const l=((g=t.value)==null?void 0:g.ownerDocument.defaultView)??_t,{state:u,dispatch:f}=Qn(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=v=>{var y;if(de){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(y=t.value)==null||y.dispatchEvent(w)}};J(e,async(v,y)=>{var x;const w=y!==v;if(await ue(),w){const b=o.value,C=xe(t.value);v?(f("MOUNT"),c("enter"),C==="none"&&c("after-enter")):C==="none"||C==="undefined"||((x=n.value)==null?void 0:x.display)==="none"?(f("UNMOUNT"),c("leave"),c("after-leave")):y&&b!==C?(f("ANIMATION_OUT"),c("leave")):(f("UNMOUNT"),c("after-leave"))}},{immediate:!0});const a=v=>{const y=xe(t.value),w=y.includes(v.animationName),x=u.value==="mounted"?"enter":"leave";if(v.target===t.value&&w&&(c(`after-${x}`),f("ANIMATION_END"),!i.value)){const b=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=l==null?void 0:l.setTimeout(()=>{var C;((C=t.value)==null?void 0:C.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=b)})}v.target===t.value&&y==="none"&&f("ANIMATION_END")},m=v=>{v.target===t.value&&(o.value=xe(t.value))},p=J(t,(v,y)=>{v?(n.value=getComputedStyle(v),v.addEventListener("animationstart",m),v.addEventListener("animationcancel",a),v.addEventListener("animationend",a)):(f("ANIMATION_END"),s!==void 0&&(l==null||l.clearTimeout(s)),y==null||y.removeEventListener("animationstart",m),y==null||y.removeEventListener("animationcancel",a),y==null||y.removeEventListener("animationend",a))},{immediate:!0}),d=J(u,()=>
1{const v=xe(t.value);o.value=u.value==="mounted"?v:"none"});return vt(()=>{p(),d()}),{isPresent:A(()=>["mounted","unmountSuspended"].includes(u.value))}}function xe(e){return e&&getComputedStyle(e).animationName||"none"}const Io=ie({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var f;const{present:o,forceMount:i}=qt(e),r=S(),{isPresent:s}=Jn(o,r);n({present:s});let l=t.default({present:s.value});l=rn(l||[]);const u=Xt();if(l&&(l==null?void 0:l.length)>1){const c=(f=u==null?void 0:u.parent)!=null&&f.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(a=>` - ${a}`).join(` 2`)].join(` 3`))}return()=>i.value||o.value||s.value?Oe(t.default({present:s.value})[0],{ref:c=>{const a=je(c);return typeof(a==null?void 0:a.hasAttribute)>"u"||(a!=null&&a.hasAttribute("data-reka-popper-content-wrapper")?r.value=a.firstElementChild:r.value=a),a}}):null}});function Dt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}const eo="dismissableLayer.pointerDownOutside",to="dismissableLayer.focusOutside";function Lt(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||i.indexOf(o)<i.indexOf(n)))}function no(e,t){var r;const n=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=S(!1),i=S(()=>{});return ee(s=>{if(!de)return;const l=async f=>{const c=f.target;if(!(!(t!=null&&t.value)||!c)){if(Lt(t.value,c)){o.value=!1;return}if(f.target&&!o.value){let a=function(){Dt(eo,e,m)};const m={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",i.value),i.value=a,n.addEventListener("click",i.value,{once:!0})):a()}else n.removeEventListener("click",i.value);o.value=!1}},u=window.setTimeout(()=>{n.addEventListener("pointerdown",l)},0);s(()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",l),n.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>o.value=!0}}function oo(e,t){var i;const n=((i=t==null?void 0:t.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=S(!1);return ee(r=>{if(!de)return;const s=async l=>{if(!(t!=null&&t.value))return;await ue(),await ue();const u=l.target;
3!t.value||!u||Lt(t.value,u)||l.target&&!o.value&&Dt(to,e,{originalEvent:l})};n.addEventListener("focusin",s),r(()=>n.removeEventListener("focusin",s))}),{onFocusCapture:()=>o.value=!0,onBlurCapture:()=>o.value=!1}}const j=gt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$o=ie({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:i,currentElement:r}=Te(),s=A(()=>{var d;return((d=r.value)==null?void 0:d.ownerDocument)??globalThis.document}),l=A(()=>j.layersRoot),u=A(()=>r.value?Array.from(l.value).indexOf(r.value):-1),f=A(()=>j.layersWithOutsidePointerEventsDisabled.size>0),c=A(()=>{const d=Array.from(l.value),[h]=[...j.layersWithOutsidePointerEventsDisabled].slice(-1),g=d.indexOf(h);return u.value>=g}),a=no(async d=>{const h=[...j.branches].some(g=>g==null?void 0:g.contains(d.target));!c.value||h||(o("pointerDownOutside",d),o("interactOutside",d),await ue(),d.defaultPrevented||o("dismiss"))},r),m=oo(d=>{[...j.branches].some(g=>g==null?void 0:g.contains(d.target))||(o("focusOutside",d),o("interactOutside",d),d.defaultPrevented||o("dismiss"))},r);Nt("Escape",d=>{u.value===l.value.size-1&&(o("escapeKeyDown",d),d.defaultPrevented||o("dismiss"))});let p;return ee(d=>{r.value&&(n.disableOutsidePointerEvents&&(j.layersWithOutsidePointerEventsDisabled.size===0&&(p=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),j.layersWithOutsidePointerEventsDisabled.add(r.value)),l.value.add(r.value),d(()=>{n.disableOutsidePointerEvents&&j.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=p)}))}),ee(d=>{d(()=>{r.value&&(l.value.delete(r.value),j.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(d,h)=>(ge(),De(T(Re),{ref:T(i),"as-child":d.asChild,as:d.as,"data-dismissable-layer":"",style:yt({pointerEvents:f.value?c.value?"auto":"none":void 0}),onFocusCapture:T(m).onFocusCapture,onBlurCapture:T(m).onBlurCapture,onPointerdownCapture:T(a).onPointerDownCapture},{default:Le(()=>[me(d.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Wo="menu.itemSelect",ct=["Enter"," "],io=["ArrowDown","PageUp","Home"],ro=["ArrowUp","PageDown","End"],Ho=[...io,...ro];[...ct],[...ct];function Vo(e){return e?"open":"closed"}function zo(e){const t=K();for(const n of e)if(n===t||(n.focus(),K()!==t))return}function so(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const l=t[r].x,u=t[r].y,f=t[s].x,c=t[s].y;u>o!=c>o&&n<(f-l)*(o-u)/(c-u)+l&&(i=!i)}return i}function Uo(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return so(n,t)}function jo(e){return e.pointerType==="mouse"}const ao=It(()=>S([]));function lo(){const e=ao();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=ut(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=ut(e.value,t),(n=e.value[0])==null||n.resume()}}}function ut(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function co(e){return e.filter(t=>t.tagName!=="A")}const _e="focusScope.autoFocusOnMount",Ne="focusScope.autoFocusOnUnmount",ft={bubbles:!1,cancelable:!0};function uo(e,{select:t=!1}={}){const n=K();for(const o of e)if(Q(o,{select:t}),K()!==n)return!0}function fo(e){const t=Rt(e),n=dt(t,e),o=dt(t.reverse(),e);return[n,o]}function Rt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dt(e,t){for(const n of e)if(!mo(n,{upTo:t}))return n}function mo(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function po(e){return e instanceof HTMLInputElement&&"select"in e}function Q(e,{select:t=!1}={}){if(e&&e.focus){const n=K();e.focus({preventScroll:!0}),e!==n&&po(e)&&t&&e.select()}}const Ko=ie({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:i,currentElement:r}=Te(),s=S(null),l=lo(),u=gt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});ee(c=>{if(!de)return;const a=r.value;if(!n.trapped)return;function m(g){if(u.paused||!a)return;const v=g.target;a.contains(v)?s.value=v:Q(s.value,{select:!0})}function p(g){if(u.paused||!a)return;const v=g.relatedTarget;v!==null&&(a.contains(v)||Q(s.value,{select:!0}))}function d(g){a.contains(s.value)||Q(a)}document.addEventListener("focusin",m),document.addEventListener("focusout",p);const h=new MutationObserver(d);a&&h.observe(a,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",p),h.disconnect()})}),ee(async c=>{const a=r.value;if(await ue(),!a)return;l.add(u);const m=K();if(!a.contains(m)){const d=new CustomEvent(_e,ft);a.addEventListener(_e,h=>o("mountAutoFocus",h)),a.dispatchEvent(d),d.defaultPrevented||(uo(co(Rt(a)),{select:!0}),K()===m&&Q(a))}c(()=>{a.removeEventListener(_e,g=>o("mountAutoFocus",g));const d=new CustomEvent(Ne,ft),h=g=>{o("unmountAutoFocus",g)};a.addEventListener(Ne,h),a.dispatchEvent(d),setTimeout(()=>{d.defaultPrevented||Q(m??document.body,{select:!0}),a.removeEventListener(Ne,h),l.remove(u)},0)})});function f(c){if(!n.loop&&!n.trapped||u.paused)return;const a=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,m=K();if(a&&m){const p=c.currentTarget,[d,h]=fo(p);d&&h?!c.shiftKey&&m===h?(c.preventDefault(),n.loop&&Q(d,{select:!0})):c.shiftKey&&m===d&&(c.preventDefault(),n.loop&&Q(h,{select:!0})):m===p&&c.preventDefault()}}return(c,a)=>(ge(),De(T(Re),{ref_key:"currentRef",ref:i,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:f},{default:Le(()=>[me(c.$slots,"default")]),_:3},8,["as-child","as"]))}});var ho=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ae=new WeakMap,be=new WeakMap,Ee={},Ie=0,Mt=function(e){return e&&(e.host||Mt(e.parentNode))},vo=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Mt(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})},go=function(e,t,n,o){var i=vo(t,Array.isArray(e)?e:[e]);Ee[n]||(Ee[n]=new WeakMap);var r=Ee[n],s=[],l=new Set,u=new Set(i),f=function(a){!a||l.has(a)||(l.add(a),f(a.parentNode))};
3i.forEach(f);var c=function(a){!a||u.has(a)||Array.prototype.forEach.call(a.children,function(m){if(l.has(m))c(m);else try{var p=m.getAttribute(o),d=p!==null&&p!=="false",h=(ae.get(m)||0)+1,g=(r.get(m)||0)+1;ae.set(m,h),r.set(m,g),s.push(m),h===1&&d&&be.set(m,!0),g===1&&m.setAttribute(n,"true"),d||m.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return c(t),l.clear(),Ie++,function(){s.forEach(function(a){var m=ae.get(a)-1,p=r.get(a)-1;ae.set(a,m),r.set(a,p),m||(be.has(a)||a.removeAttribute(o),be.delete(a)),p||a.removeAttribute(n)}),Ie--,Ie||(ae=new WeakMap,ae=new WeakMap,be=new WeakMap,Ee={})}},yo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=ho(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),go(o,i,n,"aria-hidden")):function(){return null}};function Yo(e){let t;J(()=>je(e),n=>{n?t=yo(n):t&&t()}),vt(()=>{t&&t()})}const wo=$t(()=>{const e=S(new Map),t=S(),n=A(()=>{for(const s of e.value.values())if(s)return!0;return!1}),o=sn({scrollBody:S(!0)});let i=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",et&&(i==null||i()),t.value=void 0};return J(n,(s,l)=>{var a;if(!de)return;if(!s){l&&r();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,f={padding:u,margin:0},c=(a=o.scrollBody)!=null&&a.value?typeof o.scrollBody.value=="object"?Gt({padding:o.scrollBody.value.padding===!0?u:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?u:o.scrollBody.value.margin},f):f:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.body.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),et&&(i=Ht(document,"touchmove",m=>xo(m),{passive:!1})),ue(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function qo(e){const t=Math.random().toString(36).substring(2,7),n=wo();n.value.set(t,e??!1);const o=A({get:()=>n.value.get(t)??!1,set:i=>n.value.set(t,i)});return Wt(()=>{n.value.delete(t)}),o}function kt(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:kt(n)}}function xo(e){const t=e||window.event,n=t.target;return n instanceof Element&&kt(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}const Xo=ie({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Vt();return(n,o)=>T(t)||n.forceMount?(ge(),De(Qt,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[me(n.$slots,"default")],8,["to","disabled","defer"])):Zt("",!0)}}),[Ft,bo]=ht("PopperRoot"),Go=ie({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=S();return bo({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>me(n.$slots,"default")}}),Zo=ie({__name:"PopperAnchor",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=Te(),i=Ft();return wt(()=>{i.onAnchorChange(t.reference??o.value)}),(r,s)=>(ge(),De(T(Re),{ref:T(n),as:r.as,"as-child":r.asChild},{default:Le(()=>[me(r.$slots,"default")]),_:3},8,["as","as-child"]))}});function Eo(e){return e!==null}function Ao(e){return{name:"transformOrigin",options:e,fn(t){var g,v,y;const{placement:n,rects:o,middlewareData:i}=t,s=((g=i.arrow)==null?void 0:g.centerOffset)!==0,l=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[f,c]=Ue(n),a={start:"0%",center:"50%",end:"100%"}[c],m=(((v=i.arrow)==null?void 0:v.x)??0)+l/2,p=(((y=i.arrow)==null?void 0:y.y)??0)+u/2;let d="",h="";return f==="bottom"?(d=s?a:`${m}px`,h=`${-u}px`):f==="top"?(d=s?a:`${m}px`,h=`${o.floating.height+u}px`):f==="right"?(d=`${-u}px`,h=s?a:`${p}px`):f==="left"&&(d=`${o.floating.width+u}px`,h=s?a:`${p}px`),{data:{x:d,y:h}}}}}function Ue(e){const[t,n="center"]=e.split("-");return[t,n]}function Oo(e){const t=S(),n=A(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=A(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return Jt(()=>{const i=je(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(s=>
3{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,f;if("borderBoxSize"in l){const c=l.borderBoxSize,a=Array.isArray(c)?c[0]:c;u=a.inlineSize,f=a.blockSize}else u=i.offsetWidth,f=i.offsetHeight;t.value={width:u,height:f}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}const Co={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Qo,So]=ht("PopperContent"),Jo=ie({inheritAttrs:!1,__name:"PopperContent",props:en({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{}},{...Co}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=Ft(),{forwardRef:r,currentElement:s}=Te(),l=S(),u=S(),{width:f,height:c}=Oo(u),a=A(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=A(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=A(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),d=A(()=>({padding:m.value,boundary:p.value.filter(Eo),altBoundary:p.value.length>0})),h=zt(()=>[Vn({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&at({...d.value}),n.avoidCollisions&&zn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Yn():void 0,...d.value}),!n.prioritizePosition&&n.avoidCollisions&&at({...d.value}),Un({...d.value,apply:({elements:O,rects:k,availableWidth:B,availableHeight:R})=>{const{width:D,height:U}=k.reference,F=O.floating.style;F.setProperty("--reka-popper-available-width",`${B}px`),F.setProperty("--reka-popper-available-height",`${R}px`),F.setProperty("--reka-popper-anchor-width",`${D}px`),F.setProperty("--reka-popper-anchor-height",`${U}px`)}}),u.value&&Gn({element:u.value,padding:n.arrowPadding}),Ao({arrowWidth:f.value,arrowHeight:c.value}),n.hideWhenDetached&&jn({strategy:"referenceHidden",...d.value})]),g=A(()=>n.reference??i.anchor.value),{floatingStyles:v,placement:y,isPositioned:w,middlewareData:x}=Zn(g,l,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(...O)=>Hn(...O,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),b=A(()=>Ue(y.value)[0]),C=A(()=>Ue(y.value)[1]);wt(()=>{w.value&&o("placed")});const E=A(()=>{var O;return((O=x.value.arrow)==null?void 0:O.centerOffset)!==0}),P=S("");ee(()=>{s.value&&(P.value=window.getComputedStyle(s.value).zIndex)});const L=A(()=>{var O;return((O=x.value.arrow)==null?void 0:O.x)??0}),M=A(()=>{var O;return((O=x.value.arrow)==null?void 0:O.y)??0});return So({placedSide:b,onArrowChange:O=>u.value=O,arrowX:L,arrowY:M,shouldHideArrow:E}),(O,k)=>{var B,R,D;return ge(),tn("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:yt({...T(v),transform:T(w)?T(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:P.value,"--reka-popper-transform-origin":[(B=T(x).transformOrigin)==null?void 0:B.x,(R=T(x).transformOrigin)==null?void 0:R.y].join(" "),...((D=T(x).hide)==null?void 0:D.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[nn(T(Re),on({ref:T(r)},O.$attrs,{"as-child":n.asChild,as:O.as,"data-side":b.value,"data-align":C.value,style:{animation:T(w)?void 0:"none"}}),{default:Le(()=>[me(O.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}});function ei(e){const t=Ut("",1e3);return{search:t,handleTypeaheadSearch:(i,r)=>{t.value=t.value+i;{const s=K(),l=r.map(m=>{var p,d;return{...m,textValue:((p=m.value)==null?void 0:p.textValue)??((d=m.ref.textContent)==null?void 0:d.trim())??""}}),u=l.find(m=>m.ref===s),f=l.map(m=>m.textValue),c=To(f,t.value,u==null?void 0:u.textValue),a=l.find(m=>m.textValue===c);return a&&a.ref.focus(),a==null?void 0:a.ref}},resetTypeahead:()=>{t.value=""}}}function Po(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function To(e,t,n){const i=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let s=Po(e,Math.max(r,0));i.length===1&&(s=s.filter(f=>f!==n));const u=s.find(f=>f.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}let $e=0;function ti(){ee(e=>{if(!de)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??mt()),document.body.insertAdjacentElement("beforeend",t[1]??mt()),$e++,e(()=>{$e===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),$e--})})}function mt(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
3style.position="fixed",e.style.pointerEvents="none",e}/** 4 * @license lucide-vue-next v0.511.0 - ISC 5 * 6 * This source code is licensed under the ISC license. 7 * See the LICENSE file in the root directory of this source tree. 8 */const pt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Do=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Lo=e=>{const t=Do(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ro=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();/** 9 * @license lucide-vue-next v0.511.0 - ISC 10 * 11 * This source code is licensed under the ISC license. 12 * See the LICENSE file in the root directory of this source tree. 13 */var Ae={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** 14 * @license lucide-vue-next v0.511.0 - ISC 15 * 16 * This source code is licensed under the ISC license. 17 * See the LICENSE file in the root directory of this source tree. 18 */const Mo=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:o,iconNode:i,name:r,class:s,...l},{slots:u})=>Oe("svg",{...Ae,width:e||Ae.width,height:e||Ae.height,stroke:o||Ae.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:Ro("lucide",...r?[`lucide-${pt(Lo(r))}-icon`,`lucide-${pt(r)}`]:["lucide-icon"]),...l},[...i.map(f=>Oe(...f)),...u.default?[u.default()]:[]]);/** 19 * @license lucide-vue-next v0.511.0 - ISC 20 * 21 * This source code is licensed under the ISC license. 22 * See the LICENSE file in the root directory of this source tree. 23 */const ni=(e,t)=>(n,{slots:o})=>Oe(Mo,{...n,iconNode:t,name:e},o);export{Ho as F,Wo as I,ro as L,Io as P,ct as S,Go as _,Jo as a,qo as b,Yo as c,ei as d,Ko as e,$o as f,zo as g,Dt as h,Xo as i,Zo as j,ni as k,Vo as l,Qo as m,Co as n,Uo as o,jo as p,ti 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.