2 lines
48 KiB
JavaScript
2 lines
48 KiB
JavaScript
import{r as He,c as Yt,h as Xt,d as Te,a as ae,b as Se,o as V,w as we,e as gt,n as Ie,f as le,t as Ut,m as wt,g as J,i as Ge,F as Kt,j as ve,k as ke,l as Zt,p as Qt,q as Jt,s as eo,u as to,v as oo,x as io}from"./vue-B5Z8nqrj.js";const no=["top","right","bottom","left"],Ye=["start","end"],Xe=no.reduce((e,t)=>e.concat(t,t+"-"+Ye[0],t+"-"+Ye[1]),[]),de=Math.min,Q=Math.max,so={left:"right",right:"left",bottom:"top",top:"bottom"},ro={start:"end",end:"start"};function Re(e,t,o){return Q(e,de(t,o))}function ee(e,t){return typeof e=="function"?e(t):e}function F(e){return e.split("-")[0]}function M(e){return e.split("-")[1]}function vt(e){return e==="x"?"y":"x"}function je(e){return e==="y"?"height":"width"}const ao=new Set(["top","bottom"]);function j(e){return ao.has(F(e))?"y":"x"}function Ve(e){return vt(j(e))}function yt(e,t,o){o===void 0&&(o=!1);const i=M(e),n=Ve(e),s=je(n);let r=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=$e(r)),[r,$e(r)]}function lo(e){const t=$e(e);return[ye(e),t,ye(t)]}function ye(e){return e.replace(/start|end/g,t=>ro[t])}const Ue=["left","right"],Ke=["right","left"],po=["top","bottom"],co=["bottom","top"];function ho(e,t,o){switch(e){case"top":case"bottom":return o?t?Ke:Ue:t?Ue:Ke;case"left":case"right":return t?po:co;default:return[]}}function uo(e,t,o,i){const n=M(e);let s=ho(F(e),o==="start",i);return n&&(s=s.map(r=>r+"-"+n),t&&(s=s.concat(s.map(ye)))),s}function $e(e){return e.replace(/left|right|bottom|top/g,t=>so[t])}function fo(e){return{top:0,right:0,bottom:0,left:0,...e}}function $t(e){return typeof e!="number"?fo(e):{top:e,right:e,bottom:e,left:e}}function ie(e){const{x:t,y:o,width:i,height:n}=e;return{width:i,height:n,top:o,left:t,right:t+i,bottom:o+n,x:t,y:o}}function Ze(e,t,o){let{reference:i,floating:n}=e;const s=j(t),r=Ve(t),a=je(r),l=F(t),d=s==="y",c=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,u=i[a]/2-n[a]/2;let h;switch(l){case"top":h={x:c,y:i.y-n.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:p};break;case"left":h={x:i.x-n.width,y:p};break;default:h={x:i.x,y:i.y}}switch(M(t)){case"start":h[r]-=u*(o&&d?-1:1);break;case"end":h[r]+=u*(o&&d?-1:1);break}return h}const mo=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:r}=o,a=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let d=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:p}=Ze(d,i,l),u=i,h={},f=0;for(let m=0;m<a.length;m++){const{name:w,fn:g}=a[m],{x:v,y:$,data:b,reset:_}=await g({x:c,y:p,initialPlacement:i,placement:u,strategy:n,middlewareData:h,rects:d,platform:r,elements:{reference:e,floating:t}});c=v??c,p=$??p,h={...h,[w]:{...h[w],...b}},_&&f<=50&&(f++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),{x:c,y:p}=Ze(d,u,l)),m=-1)}return{x:c,y:p,placement:u,strategy:n,middlewareData:h}};async function Pe(e,t){var o;t===void 0&&(t={});const{x:i,y:n,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:u=!1,padding:h=0}=ee(t,e),f=$t(h),w=a[u?p==="floating"?"reference":"floating":p],g=ie(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),v=p==="floating"?{x:i,y:n,width:r.floating.width,height:r.floating.height}:r.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement($))?await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1}:{x:1,y:1},_=ie(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:$,strategy:l}):v);return{top:(g.top-_.top+f.top)/b.y,bottom:(_.bottom-g.bottom+f.bottom)/b.y,left:(g.left-_.left+f.left)/b.x,right:(_.right-g.right+f.right)/b.x}}const go=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:i,placement:n,rects:s,platform:r,elements:a,middlewareData:l}=t,{element:d,padding:c=0}=ee(e,t)||{};if(d==null)return{};const p=$t(c),u={x:o,y:i},h=Ve(n),f=je(h),m=await r.getDimensions(d),w=h==="y",g=w?"top":"left",v=w?"bottom":"right",$=w?"clientHeight":"clientWidth",b=s.reference[f]+s.reference[h]-u[h]-s.floating[f],_=u[h]-s.reference[h],z=await(r.getOffsetParent==null?void 0:r.getOffsetParent(d));let S=z?z[$]:0;(!S||!await(r.isElement==null?void 0:r.isElement(z)))&&(S=a.floating[$]||s.floating[f]);const R=b/2-_/2,A=S/2-m[f]/2-1,x=de(p[g],A),P=de(p[v],A),C=x,B=S-m[f]-P,T=S/2-m[f]/2+R,K=Re(C,T,B),I=!l.arrow&&M(n)!=null&&T!==K&&s.reference[f]/2-(T<C?x:P)-m[f]/2<0,k=I?T<C?T-C:T-B:0;return{[h]:u[h]+k,data:{[h]:K,centerOffset:T-K-k,...I&&{alignmentOffset:k}},reset:I}}});function wo(e,t,o){return(e?[...o.filter(n=>M(n)===e),...o.filter(n=>M(n)!==e)]:o.filter(n=>F(n)===n)).filter(n=>e?M(n)===e||(t?ye(n)!==n:!1):!0)}const vo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;const{rects:s,middlewareData:r,placement:a,platform:l,elements:d}=t,{crossAxis:c=!1,alignment:p,allowedPlacements:u=Xe,autoAlignment:h=!0,...f}=ee(e,t),m=p!==void 0||u===Xe?wo(p||null,h,u):u,w=await Pe(t,f),g=((o=r.autoPlacement)==null?void 0:o.index)||0,v=m[g];if(v==null)return{};const $=yt(v,s,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(a!==v)return{reset:{placement:m[0]}};const b=[w[F(v)],w[$[0]],w[$[1]]],_=[...((i=r.autoPlacement)==null?void 0:i.overflows)||[],{placement:v,overflows:b}],z=m[g+1];if(z)return{data:{index:g+1,overflows:_},reset:{placement:z}};const S=_.map(x=>{const P=M(x.placement);return[x.placement,P&&c?x.overflows.slice(0,2).reduce((C,B)=>C+B,0):x.overflows[0],x.overflows]}).sort((x,P)=>x[1]-P[1]),A=((n=S.filter(x=>x[2].slice(0,M(x[0])?2:3).every(P=>P<=0))[0])==null?void 0:n[0])||S[0][0];return A!==a?{data:{index:g+1,overflows:_},reset:{placement:A}}:{}}}},yo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...w}=ee(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=F(n),v=j(a),$=F(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),_=u||($||!m?[$e(a)]:lo(a)),z=f!=="none";!u&&z&&_.push(...uo(a,m,f,b));const S=[a,..._],R=await Pe(t,w),A=[];let x=((i=s.flip)==null?void 0:i.overflows)||[];if(c&&A.push(R[g]),p){const T=yt(n,r,b);A.push(R[T[0]],R[T[1]])}if(x=[...x,{placement:n,overflows:A}],!A.every(T=>T<=0)){var P,C;const T=(((P=s.flip)==null?void 0:P.index)||0)+1,K=S[T];if(K&&(!(p==="alignment"?v!==j(K):!1)||x.every(L=>j(L.placement)===v?L.overflows[0]>0:!0)))return{data:{index:T,overflows:x},reset:{placement:K}};let I=(C=x.filter(k=>k.overflows[0]<=0).sort((k,L)=>k.overflows[1]-L.overflows[1])[0])==null?void 0:C.placement;if(!I)switch(h){case"bestFit":{var B;const k=(B=x.filter(L=>{if(z){const W=j(L.placement);return W===v||W==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(W=>W>0).reduce((W,Gt)=>W+Gt,0)]).sort((L,W)=>L[1]-W[1])[0])==null?void 0:B[0];k&&(I=k);break}case"initialPlacement":I=a;break}if(n!==I)return{reset:{placement:I}}}return{}}}},$o=new Set(["left","top"]);async function _o(e,t){const{placement:o,platform:i,elements:n}=e,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),r=F(o),a=M(o),l=j(o)==="y",d=$o.has(r)?-1:1,c=s&&l?-1:1,p=ee(t,e);let{mainAxis:u,crossAxis:h,alignmentAxis:f}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof f=="number"&&(h=a==="end"?f*-1:f),l?{x:h*c,y:u*d}:{x:u*d,y:h*c}}const xo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,i;const{x:n,y:s,placement:r,middlewareData:a}=t,l=await _o(t,e);return r===((o=a.offset)==null?void 0:o.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:n+l.x,y:s+l.y,data:{...l,placement:r}}}}},bo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:w=>{let{x:g,y:v}=w;return{x:g,y:v}}},...l}=ee(e,t),d={x:o,y:i},c=await Pe(t,l),p=j(F(n)),u=vt(p);let h=d[u],f=d[p];if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",v=h+c[w],$=h-c[g];h=Re(v,h,$)}if(r){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",v=f+c[w],$=f-c[g];f=Re(v,f,$)}const m=a.fn({...t,[u]:h,[p]:f});return{...m,data:{x:m.x-o,y:m.y-i,enabled:{[u]:s,[p]:r}}}}}},To=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,i;const{placement:n,rects:s,platform:r,elements:a}=t,{apply:l=()=>{},...d}=ee(e,t),c=await Pe(t,d),p=F(n),u=M(n),h=j(n)==="y",{width:f,height:m}=s.floating;let w,g;p==="top"||p==="bottom"?(w=p,g=u===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(g=p,w=u==="end"?"top":"bottom");const v=m-c.top-c.bottom,$=f-c.left-c.right,b=de(m-c[w],v),_=de(f-c[g],$),z=!t.middlewareData.shift;let S=b,R=_;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=$),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(S=v),z&&!u){const x=Q(c.left,0),P=Q(c.right,0),C=Q(c.top,0),B=Q(c.bottom,0);h?R=f-2*(x!==0||P!==0?x+P:Q(c.left,c.right)):S=m-2*(C!==0||B!==0?C+B:Q(c.top,c.bottom))}await l({...t,availableWidth:R,availableHeight:S});const A=await r.getDimensions(a.floating);return f!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function O(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function D(e){return O(e).getComputedStyle(e)}const Qe=Math.min,ne=Math.max,_e=Math.round;function _t(e){const t=D(e);let o=parseFloat(t.width),i=parseFloat(t.height);const n=e.offsetWidth,s=e.offsetHeight,r=_e(o)!==n||_e(i)!==s;return r&&(o=n,i=s),{width:o,height:i,fallback:r}}function U(e){return bt(e)?(e.nodeName||"").toLowerCase():""}let fe;function xt(){if(fe)return fe;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(fe=e.brands.map(t=>t.brand+"/"+t.version).join(" "),fe):navigator.userAgent}function E(e){return e instanceof O(e).HTMLElement}function Y(e){return e instanceof O(e).Element}function bt(e){return e instanceof O(e).Node}function Je(e){return typeof ShadowRoot>"u"?!1:e instanceof O(e).ShadowRoot||e instanceof ShadowRoot}function Ae(e){const{overflow:t,overflowX:o,overflowY:i,display:n}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function So(e){return["table","td","th"].includes(U(e))}function Be(e){const t=/firefox/i.test(xt()),o=D(e),i=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||!!i&&i!=="none"||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"||["transform","perspective"].some(n=>o.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const s=o.contain;return s!=null&&s.includes(n)})}function Tt(){return!/^((?!chrome|android).)*safari/i.test(xt())}function We(e){return["html","body","#document"].includes(U(e))}function St(e){return Y(e)?e:e.contextElement}const Pt={x:1,y:1};function te(e){const t=St(e);if(!E(t))return Pt;const o=t.getBoundingClientRect(),{width:i,height:n,fallback:s}=_t(t);let r=(s?_e(o.width):o.width)/i,a=(s?_e(o.height):o.height)/n;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function pe(e,t,o,i){var n,s;t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),a=St(e);let l=Pt;t&&(i?Y(i)&&(l=te(i)):l=te(e));const d=a?O(a):window,c=!Tt()&&o;let p=(r.left+(c&&((n=d.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,u=(r.top+(c&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,h=r.width/l.x,f=r.height/l.y;if(a){const m=O(a),w=i&&Y(i)?O(i):i;let g=m.frameElement;for(;g&&i&&w!==m;){const v=te(g),$=g.getBoundingClientRect(),b=getComputedStyle(g);$.x+=(g.clientLeft+parseFloat(b.paddingLeft))*v.x,$.y+=(g.clientTop+parseFloat(b.paddingTop))*v.y,p*=v.x,u*=v.y,h*=v.x,f*=v.y,p+=$.x,u+=$.y,g=O(g).frameElement}}return{width:h,height:f,top:u,right:p+h,bottom:u+f,left:p,x:p,y:u}}function X(e){return((bt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ce(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function At(e){return pe(X(e)).left+Ce(e).scrollLeft}function ce(e){if(U(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Je(e)&&e.host||X(e);return Je(t)?t.host:t}function Ct(e){const t=ce(e);return We(t)?t.ownerDocument.body:E(t)&&Ae(t)?t:Ct(t)}function xe(e,t){var o;t===void 0&&(t=[]);const i=Ct(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),s=O(i);return n?t.concat(s,s.visualViewport||[],Ae(i)?i:[]):t.concat(i,xe(i))}function et(e,t,o){return t==="viewport"?ie(function(i,n){const s=O(i),r=X(i),a=s.visualViewport;let l=r.clientWidth,d=r.clientHeight,c=0,p=0;if(a){l=a.width,d=a.height;const u=Tt();(u||!u&&n==="fixed")&&(c=a.offsetLeft,p=a.offsetTop)}return{width:l,height:d,x:c,y:p}}(e,o)):Y(t)?ie(function(i,n){const s=pe(i,!0,n==="fixed"),r=s.top+i.clientTop,a=s.left+i.clientLeft,l=E(i)?te(i):{x:1,y:1};return{width:i.clientWidth*l.x,height:i.clientHeight*l.y,x:a*l.x,y:r*l.y}}(t,o)):ie(function(i){const n=X(i),s=Ce(i),r=i.ownerDocument.body,a=ne(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),l=ne(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let d=-s.scrollLeft+At(i);const c=-s.scrollTop;return D(r).direction==="rtl"&&(d+=ne(n.clientWidth,r.clientWidth)-a),{width:a,height:l,x:d,y:c}}(X(e)))}function tt(e){return E(e)&&D(e).position!=="fixed"?e.offsetParent:null}function ot(e){const t=O(e);let o=tt(e);for(;o&&So(o)&&D(o).position==="static";)o=tt(o);return o&&(U(o)==="html"||U(o)==="body"&&D(o).position==="static"&&!Be(o))?t:o||function(i){let n=ce(i);for(;E(n)&&!We(n);){if(Be(n))return n;n=ce(n)}return null}(e)||t}function Po(e,t,o){const i=E(t),n=X(t),s=pe(e,!0,o==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&o!=="fixed")if((U(t)!=="body"||Ae(n))&&(r=Ce(t)),E(t)){const l=pe(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else n&&(a.x=At(n));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const Ao={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e;const s=o==="clippingAncestors"?function(d,c){const p=c.get(d);if(p)return p;let u=xe(d).filter(w=>Y(w)&&U(w)!=="body"),h=null;const f=D(d).position==="fixed";let m=f?ce(d):d;for(;Y(m)&&!We(m);){const w=D(m),g=Be(m);(f?g||h:g||w.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=w:u=u.filter(v=>v!==m),m=ce(m)}return c.set(d,u),u}(t,this._c):[].concat(o),r=[...s,i],a=r[0],l=r.reduce((d,c)=>{const p=et(t,c,n);return d.top=ne(p.top,d.top),d.right=Qe(p.right,d.right),d.bottom=Qe(p.bottom,d.bottom),d.left=ne(p.left,d.left),d},et(t,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=E(o),s=X(o);if(o===s)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((n||!n&&i!=="fixed")&&((U(o)!=="body"||Ae(s))&&(r=Ce(o)),E(o))){const d=pe(o);a=te(o),l.x=d.x+o.clientLeft,l.y=d.y+o.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}},isElement:Y,getDimensions:function(e){return E(e)?_t(e):e.getBoundingClientRect()},getOffsetParent:ot,getDocumentElement:X,getScale:te,async getElementRects(e){let{reference:t,floating:o,strategy:i}=e;const n=this.getOffsetParent||ot,s=this.getDimensions;return{reference:Po(t,await n(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>D(e).direction==="rtl"},Co=(e,t,o)=>{const i=new Map,n={platform:Ao,...o},s={...n.platform,_c:i};return mo(e,t,{...n,platform:s})};function Ot(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?Ot(e[o],t[o]):e[o]=t[o])}const H={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function he(e,t){let o=H.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=H.themes[o.$extend]||{}:(o=null,i=H[t]):o=null;while(o);return i}function Oo(e){const t=[e];let o=H.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=H.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function it(e){const t=[e];let o=H.themes[e]||{};do o.$extend?(t.push(o.$extend),o=H.themes[o.$extend]||{}):o=null;while(o);return t}let oe=!1;if(typeof window<"u"){oe=!1;try{const e=Object.defineProperty({},"passive",{get(){oe=!0}});window.addEventListener("test",null,e)}catch{}}let zt=!1;typeof window<"u"&&typeof navigator<"u"&&(zt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const kt=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),nt={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},st={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function rt(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function Le(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const N=[];let Z=null;const at={};function lt(e){let t=at[e];return t||(t=at[e]=[]),t}let De=function(){};typeof window<"u"&&(De=window.Element);function y(e){return function(t){return he(t.theme,e)}}const Ne="__floating-vue__popper",Lt=()=>Te({name:"VPopper",provide(){return{[Ne]:{parentPopper:this}}},inject:{[Ne]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:y("disabled")},positioningDisabled:{type:Boolean,default:y("positioningDisabled")},placement:{type:String,default:y("placement"),validator:e=>kt.includes(e)},delay:{type:[String,Number,Object],default:y("delay")},distance:{type:[Number,String],default:y("distance")},skidding:{type:[Number,String],default:y("skidding")},triggers:{type:Array,default:y("triggers")},showTriggers:{type:[Array,Function],default:y("showTriggers")},hideTriggers:{type:[Array,Function],default:y("hideTriggers")},popperTriggers:{type:Array,default:y("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:y("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:y("popperHideTriggers")},container:{type:[String,Object,De,Boolean],default:y("container")},boundary:{type:[String,De],default:y("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:y("strategy")},autoHide:{type:[Boolean,Function],default:y("autoHide")},handleResize:{type:Boolean,default:y("handleResize")},instantMove:{type:Boolean,default:y("instantMove")},eagerMount:{type:Boolean,default:y("eagerMount")},popperClass:{type:[String,Array,Object],default:y("popperClass")},computeTransformOrigin:{type:Boolean,default:y("computeTransformOrigin")},autoMinSize:{type:Boolean,default:y("autoMinSize")},autoSize:{type:[Boolean,String],default:y("autoSize")},autoMaxSize:{type:Boolean,default:y("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:y("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:y("preventOverflow")},overflowPadding:{type:[Number,String],default:y("overflowPadding")},arrowPadding:{type:[Number,String],default:y("arrowPadding")},arrowOverflow:{type:Boolean,default:y("arrowOverflow")},flip:{type:Boolean,default:y("flip")},shift:{type:Boolean,default:y("shift")},shiftCrossAxis:{type:Boolean,default:y("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:y("noAutoFocus")},disposeTimeout:{type:Number,default:y("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ne])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(xo({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(vo({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(bo({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(yo({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(go({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:n,middlewareData:s})=>{let r;const{centerOffset:a}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?r=Math.abs(a)>n.reference.width/2:r=Math.abs(a)>n.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:s,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return{};let l,d;return s.startsWith("top")||s.startsWith("bottom")?l=n.reference.width:d=n.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(To({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:n})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const o=await Co(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Z&&this.instantMove&&Z.instantMove&&Z!==this.parentPopper){Z.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Z=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Le(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xe(this.$_referenceNode),...xe(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),s=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<N.length;o++)t=N[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}N.push(this),document.body.classList.add("v-popper--some-open");for(const t of it(this.theme))lt(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Le(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,rt(N,this),N.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of it(this.theme)){const i=lt(o);rt(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}Z===this&&(Z=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Le(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,nt,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],nt,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,st,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],st,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,oe?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let s=o;i!=null&&(s=typeof i=="function"?i(s):i),s.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:s}=o;!e||e===n?i.forEach(r=>r.removeEventListener(n,s)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(se>=e.left&&se<=e.right&&re>=e.top&&re<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=se-q,i=re-G,n=t.left+t.width/2-q+(t.top+t.height/2)-G+t.width+t.height,s=q+o*n,r=G+i*n;return me(q,G,s,r,t.left,t.top,t.left,t.bottom)||me(q,G,s,r,t.left,t.top,t.right,t.top)||me(q,G,s,r,t.right,t.top,t.right,t.bottom)||me(q,G,s,r,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(zt){const e=oe?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dt(t,!0),e),document.addEventListener("touchend",t=>pt(t,!0),e)}else window.addEventListener("mousedown",e=>dt(e,!1),!0),window.addEventListener("click",e=>pt(e,!1),!0);window.addEventListener("resize",Mt)}function dt(e,t){if(H.autoHideOnMousedown)Nt(e,t);else for(let o=0;o<N.length;o++){const i=N[o];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function pt(e,t){H.autoHideOnMousedown||Nt(e,t)}function Nt(e,t){const o={};for(let i=N.length-1;i>=0;i--){const n=N[i];try{const s=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!o[n.randomId]&&ct(n,s,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let a=n.parentPopper;for(;a;)o[a.randomId]=!0,a=a.parentPopper;return}let r=n.parentPopper;for(;r&&ct(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function ct(e,t,o){return o.closeAllPopover||o.closePopover&&t||zo(e,o)&&!t}function zo(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function Mt(){for(let e=0;e<N.length;e++)N[e].$_computePosition()}let q=0,G=0,se=0,re=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{q=se,G=re,se=e.clientX,re=e.clientY},oe?{passive:!0}:void 0);function me(e,t,o,i,n,s,r,a){const l=((r-n)*(t-s)-(a-s)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t)),d=((o-e)*(t-s)-(i-t)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}const ko={extends:Lt()},Oe=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};function Lo(e,t,o,i,n,s){return V(),le("div",{ref:"reference",class:Ie(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ve(e.$slots,"default",oo(io(e.slotData)))],2)}const No=Oe(ko,[["render",Lo]]);function Mo(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let ge;function Ee(){Ee.init||(Ee.init=!0,ge=Mo()!==-1)}var ze={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ee(),Qt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",ge&&this.$el.appendChild(e),e.data="about:blank",ge||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ge&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ho=to();Jt("data-v-b329ee4c");const Ro={class:"resize-observer",tabindex:"-1"};eo();const Bo=Ho((e,t,o,i,n,s)=>(V(),Se("div",Ro)));ze.render=Bo;ze.__scopeId="data-v-b329ee4c";ze.__file="src/components/ResizeObserver.vue";const Ht=(e="theme")=>({computed:{themeClass(){return Oo(this[e])}}}),Do=Te({name:"VPopperContent",components:{ResizeObserver:ze},mixins:[Ht()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Eo=["id","aria-hidden","tabindex","data-popper-placement"],Fo={ref:"inner",class:"v-popper__inner"},Io=J("div",{class:"v-popper__arrow-outer"},null,-1),jo=J("div",{class:"v-popper__arrow-inner"},null,-1),Vo=[Io,jo];function Wo(e,t,o,i,n,s){const r=ae("ResizeObserver");return V(),le("div",{id:e.popperId,ref:"popover",class:Ie(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:ke(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Zt(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[J("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),J("div",{class:"v-popper__wrapper",style:ke(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[J("div",Fo,[e.mounted?(V(),le(Kt,{key:0},[J("div",null,[ve(e.$slots,"default")]),e.handleResize?(V(),Se(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Ge("",!0)],64)):Ge("",!0)],512),J("div",{ref:"arrow",class:"v-popper__arrow-container",style:ke(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Vo,4)],4)],46,Eo)}const Rt=Oe(Do,[["render",Wo]]),Bt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Fe=function(){};typeof window<"u"&&(Fe=window.Element);const qo=Te({name:"VPopperWrapper",components:{Popper:No,PopperContent:Rt},mixins:[Bt,Ht("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Fe,Boolean],default:void 0},boundary:{type:[String,Fe],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Go(e,t,o,i,n,s){const r=ae("PopperContent"),a=ae("Popper");return V(),Se(a,wt({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:we(({popperId:l,isShown:d,shouldMountContent:c,skipTransition:p,autoHide:u,show:h,hide:f,handleResize:m,onResize:w,classes:g,result:v})=>[ve(e.$slots,"default",{shown:d,show:h,hide:f}),gt(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:d,mounted:c,"skip-transition":p,"auto-hide":u,"handle-resize":m,classes:g,result:v,onHide:f,onResize:w},{default:we(()=>[ve(e.$slots,"popper",{shown:d,hide:f})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const qe=Oe(qo,[["render",Go]]),Yo={...qe,name:"VDropdown",vPopperTheme:"dropdown"},Dt={...qe,name:"VMenu",vPopperTheme:"menu"},Et={...qe,name:"VTooltip",vPopperTheme:"tooltip"},Xo=Te({name:"VTooltipDirective",components:{Popper:Lt(),PopperContent:Rt},mixins:[Bt],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>he(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>he(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Uo=["innerHTML"],Ko=["textContent"];function Zo(e,t,o,i,n,s){const r=ae("PopperContent"),a=ae("Popper");return V(),Se(a,wt({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:we(({popperId:l,isShown:d,shouldMountContent:c,skipTransition:p,autoHide:u,hide:h,handleResize:f,onResize:m,classes:w,result:g})=>[gt(r,{ref:"popperContent",class:Ie({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:d,mounted:c,"skip-transition":p,"auto-hide":u,"handle-resize":f,classes:w,result:g,onHide:h,onResize:m},{default:we(()=>[e.html?(V(),le("div",{key:0,innerHTML:e.finalContent},null,8,Uo)):(V(),le("div",{key:1,textContent:Ut(e.finalContent)},null,8,Ko))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Qo=Oe(Xo,[["render",Zo]]),Ft="v-popper--has-tooltip";function Jo(e,t){let o=e.placement;if(!o&&t)for(const i of kt)t[i]&&(o=i);return o||(o=he(e.theme||"tooltip","placement")),o}function It(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Jo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Me,ue,ei=0;function ti(){if(Me)return;ue=He([]),Me=Yt({name:"VTooltipDirectiveApp",setup(){return{directives:ue}},render(){return this.directives.map(t=>Xt(Qo,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Me.mount(e)}function oi(e,t,o){ti();const i=He(It(e,t,o)),n=He(!1),s={id:ei++,options:i,shown:n};return ue.value.push(s),e.classList&&e.classList.add(Ft),e.$_popper={options:i,item:s,show(){n.value=!0},hide(){n.value=!1}}}function jt(e){if(e.$_popper){const t=ue.value.indexOf(e.$_popper.item);t!==-1&&ue.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ft)}function ht(e,{value:t,modifiers:o}){const i=It(e,t,o);if(!i.content||he(i.theme||"tooltip","disabled"))jt(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=oi(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const ii={beforeMount:ht,updated:ht,beforeUnmount(e){jt(e)}};function ut(e){e.addEventListener("mousedown",be),e.addEventListener("click",be),e.addEventListener("touchstart",Vt,oe?{passive:!0}:!1)}function ft(e){e.removeEventListener("mousedown",be),e.removeEventListener("click",be),e.removeEventListener("touchstart",Vt),e.removeEventListener("touchend",Wt),e.removeEventListener("touchcancel",qt)}function be(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Vt(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",Wt),t.addEventListener("touchcancel",qt)}}function Wt(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-i.screenY)<20&&Math.abs(o.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function qt(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const ni={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&ut(e)},updated(e,{value:t,oldValue:o,modifiers:i}){e.$_closePopoverModifiers=i,t!==o&&(typeof t>"u"||t?ut(e):ft(e))},beforeUnmount(e){ft(e)}},li=Dt,di=Et;function si(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Ot(H,t),e.directive("tooltip",ii),e.directive("close-popper",ni),e.component("VTooltip",Et),e.component("VDropdown",Yo),e.component("VMenu",Dt))}const ri={version:"5.2.2",install:si,options:H},mt=typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),pi={install:(e,t={})=>{typeof window<"u"&&window.addEventListener("click",o=>{o.composedPath().some(n=>n?.classList?.contains?.("vp-code-group")||n?.classList?.contains?.("tabs"))&&Mt()},{passive:!0}),e.use(ri,{...t,themes:{twoslash:{$extend:"dropdown",triggers:mt?["touch"]:["hover","touch"],popperTriggers:mt?["touch"]:["hover","touch"],placement:"bottom-start",overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0},"twoslash-query":{$extend:"twoslash",triggers:["click"],popperTriggers:["click"],autoHide:!1},"twoslash-completion":{$extend:"twoslash-query",triggers:["click"],popperTriggers:["click"],autoHide:!1,distance:0,arrowOverflow:!0},...t.theme}})}};export{li as L,pi as T,di as V,Mt as t};
|