@iryu54/stack-monitor
Version:
Monitor processes as a stack
2 lines (1 loc) • 39 kB
JavaScript
import{_ as Qt}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as vt,f as Ar,c as se,b as Ee,v as Ce,x as st,n as at,o as Z,e as Tr,i as rt,t as mt,F as Er,k as Cr,h as Dr,w as Mt}from"./index-Dyc6L6BZ.js";var V="top",X="bottom",Y="right",W="left",Tt="auto",Ue=[V,X,Y,W],De="start",Ne="end",Sr="clippingParents",Zt="viewport",He="popper",Lr="reference",kt=Ue.reduce(function(e,t){return e.concat([t+"-"+De,t+"-"+Ne])},[]),er=[].concat(Ue,[Tt]).reduce(function(e,t){return e.concat([t,t+"-"+De,t+"-"+Ne])},[]),Br="beforeRead",Pr="read",Rr="afterRead",Mr="beforeMain",kr="main",$r="afterMain",jr="beforeWrite",Hr="write",Ir="afterWrite",Vr=[Br,Pr,Rr,Mr,kr,$r,jr,Hr,Ir];function re(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=U(e).Element;return e instanceof t||e instanceof Element}function z(e){var t=U(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Et(e){if(typeof ShadowRoot>"u")return!1;var t=U(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Wr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},u=t.elements[r];!z(u)||!re(u)||(Object.assign(u.style,n),Object.keys(a).forEach(function(s){var c=a[s];c===!1?u.removeAttribute(s):u.setAttribute(s,c===!0?"":c)}))})}function Nr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],u=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=s.reduce(function(f,p){return f[p]="",f},{});!z(a)||!re(a)||(Object.assign(a.style,c),Object.keys(u).forEach(function(f){a.removeAttribute(f)}))})}}const tr={name:"applyStyles",enabled:!0,phase:"write",fn:Wr,effect:Nr,requires:["computeStyles"]};function te(e){return e.split("-")[0]}var ge=Math.max,ut=Math.min,Se=Math.round;function wt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rr(){return!/^((?!chrome|android).)*safari/i.test(wt())}function Le(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,u=1;t&&z(e)&&(a=e.offsetWidth>0&&Se(n.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Se(n.height)/e.offsetHeight||1);var s=ye(e)?U(e):window,c=s.visualViewport,f=!rr()&&r,p=(n.left+(f&&c?c.offsetLeft:0))/a,l=(n.top+(f&&c?c.offsetTop:0))/u,b=n.width/a,x=n.height/u;return{width:b,height:x,top:l,right:p+b,bottom:l+x,left:p,x:p,y:l}}function Ct(e){var t=Le(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function nr(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Et(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ue(e){return U(e).getComputedStyle(e)}function Fr(e){return["table","td","th"].indexOf(re(e))>=0}function le(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function ct(e){return re(e)==="html"?e:e.assignedSlot||e.parentNode||(Et(e)?e.host:null)||le(e)}function $t(e){return!z(e)||ue(e).position==="fixed"?null:e.offsetParent}function Ur(e){var t=/firefox/i.test(wt()),r=/Trident/i.test(wt());if(r&&z(e)){var n=ue(e);if(n.position==="fixed")return null}var a=ct(e);for(Et(a)&&(a=a.host);z(a)&&["html","body"].indexOf(re(a))<0;){var u=ue(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function qe(e){for(var t=U(e),r=$t(e);r&&Fr(r)&&ue(r).position==="static";)r=$t(r);return r&&(re(r)==="html"||re(r)==="body"&&ue(r).position==="static")?t:r||Ur(e)||t}function Dt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ie(e,t,r){return ge(e,ut(t,r))}function qr(e,t,r){var n=Ie(e,t,r);return n>r?r:n}function ir(){return{top:0,right:0,bottom:0,left:0}}function ar(e){return Object.assign({},ir(),e)}function or(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var zr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ar(typeof t!="number"?t:or(t,Ue))};function Xr(e){var t,r=e.state,n=e.name,a=e.options,u=r.elements.arrow,s=r.modifiersData.popperOffsets,c=te(r.placement),f=Dt(c),p=[W,Y].indexOf(c)>=0,l=p?"height":"width";if(!(!u||!s)){var b=zr(a.padding,r),x=Ct(u),h=f==="y"?V:W,w=f==="y"?X:Y,g=r.rects.reference[l]+r.rects.reference[f]-s[f]-r.rects.popper[l],y=s[f]-r.rects.reference[f],T=qe(u),C=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,S=g/2-y/2,i=b[h],A=C-x[l]-b[w],v=C/2-x[l]/2+S,D=Ie(i,v,A),M=f;r.modifiersData[n]=(t={},t[M]=D,t.centerOffset=D-v,t)}}function Yr(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||nr(t.elements.popper,a)&&(t.elements.arrow=a))}const _r={name:"arrow",enabled:!0,phase:"main",fn:Xr,effect:Yr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Be(e){return e.split("-")[1]}var Gr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kr(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Se(r*a)/a||0,y:Se(n*a)/a||0}}function jt(e){var t,r=e.popper,n=e.popperRect,a=e.placement,u=e.variation,s=e.offsets,c=e.position,f=e.gpuAcceleration,p=e.adaptive,l=e.roundOffsets,b=e.isFixed,x=s.x,h=x===void 0?0:x,w=s.y,g=w===void 0?0:w,y=typeof l=="function"?l({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var T=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),S=W,i=V,A=window;if(p){var v=qe(r),D="clientHeight",M="clientWidth";if(v===U(r)&&(v=le(r),ue(v).position!=="static"&&c==="absolute"&&(D="scrollHeight",M="scrollWidth")),v=v,a===V||(a===W||a===Y)&&u===Ne){i=X;var R=b&&v===A&&A.visualViewport?A.visualViewport.height:v[D];g-=R-n.height,g*=f?1:-1}if(a===W||(a===V||a===X)&&u===Ne){S=Y;var B=b&&v===A&&A.visualViewport?A.visualViewport.width:v[M];h-=B-n.width,h*=f?1:-1}}var k=Object.assign({position:c},p&&Gr),P=l===!0?Kr({x:h,y:g},U(r)):{x:h,y:g};if(h=P.x,g=P.y,f){var L;return Object.assign({},k,(L={},L[i]=C?"0":"",L[S]=T?"0":"",L.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},k,(t={},t[i]=C?g+"px":"",t[S]=T?h+"px":"",t.transform="",t))}function Jr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,u=r.adaptive,s=u===void 0?!0:u,c=r.roundOffsets,f=c===void 0?!0:c,p={placement:te(t.placement),variation:Be(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Qr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jr,data:{}};var nt={passive:!0};function Zr(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,u=a===void 0?!0:a,s=n.resize,c=s===void 0?!0:s,f=U(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&p.forEach(function(l){l.addEventListener("scroll",r.update,nt)}),c&&f.addEventListener("resize",r.update,nt),function(){u&&p.forEach(function(l){l.removeEventListener("scroll",r.update,nt)}),c&&f.removeEventListener("resize",r.update,nt)}}const en={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zr,data:{}};var tn={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e){return e.replace(/left|right|bottom|top/g,function(t){return tn[t]})}var rn={start:"end",end:"start"};function Ht(e){return e.replace(/start|end/g,function(t){return rn[t]})}function St(e){var t=U(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Lt(e){return Le(le(e)).left+St(e).scrollLeft}function nn(e,t){var r=U(e),n=le(e),a=r.visualViewport,u=n.clientWidth,s=n.clientHeight,c=0,f=0;if(a){u=a.width,s=a.height;var p=rr();(p||!p&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:u,height:s,x:c+Lt(e),y:f}}function an(e){var t,r=le(e),n=St(e),a=(t=e.ownerDocument)==null?void 0:t.body,u=ge(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=ge(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-n.scrollLeft+Lt(e),f=-n.scrollTop;return ue(a||r).direction==="rtl"&&(c+=ge(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:s,x:c,y:f}}function Bt(e){var t=ue(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function sr(e){return["html","body","#document"].indexOf(re(e))>=0?e.ownerDocument.body:z(e)&&Bt(e)?e:sr(ct(e))}function Ve(e,t){var r;t===void 0&&(t=[]);var n=sr(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),u=U(n),s=a?[u].concat(u.visualViewport||[],Bt(n)?n:[]):n,c=t.concat(s);return a?c:c.concat(Ve(ct(s)))}function Ot(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function on(e,t){var r=Le(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function It(e,t,r){return t===Zt?Ot(nn(e,r)):ye(t)?on(t,r):Ot(an(le(e)))}function sn(e){var t=Ve(ct(e)),r=["absolute","fixed"].indexOf(ue(e).position)>=0,n=r&&z(e)?qe(e):e;return ye(n)?t.filter(function(a){return ye(a)&&nr(a,n)&&re(a)!=="body"}):[]}function un(e,t,r,n){var a=t==="clippingParents"?sn(e):[].concat(t),u=[].concat(a,[r]),s=u[0],c=u.reduce(function(f,p){var l=It(e,p,n);return f.top=ge(l.top,f.top),f.right=ut(l.right,f.right),f.bottom=ut(l.bottom,f.bottom),f.left=ge(l.left,f.left),f},It(e,s,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ur(e){var t=e.reference,r=e.element,n=e.placement,a=n?te(n):null,u=n?Be(n):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case V:f={x:s,y:t.y-r.height};break;case X:f={x:s,y:t.y+t.height};break;case Y:f={x:t.x+t.width,y:c};break;case W:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var p=a?Dt(a):null;if(p!=null){var l=p==="y"?"height":"width";switch(u){case De:f[p]=f[p]-(t[l]/2-r[l]/2);break;case Ne:f[p]=f[p]+(t[l]/2-r[l]/2);break}}return f}function Fe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,u=r.strategy,s=u===void 0?e.strategy:u,c=r.boundary,f=c===void 0?Sr:c,p=r.rootBoundary,l=p===void 0?Zt:p,b=r.elementContext,x=b===void 0?He:b,h=r.altBoundary,w=h===void 0?!1:h,g=r.padding,y=g===void 0?0:g,T=ar(typeof y!="number"?y:or(y,Ue)),C=x===He?Lr:He,S=e.rects.popper,i=e.elements[w?C:x],A=un(ye(i)?i:i.contextElement||le(e.elements.popper),f,l,s),v=Le(e.elements.reference),D=ur({reference:v,element:S,placement:a}),M=Ot(Object.assign({},S,D)),R=x===He?M:v,B={top:A.top-R.top+T.top,bottom:R.bottom-A.bottom+T.bottom,left:A.left-R.left+T.left,right:R.right-A.right+T.right},k=e.modifiersData.offset;if(x===He&&k){var P=k[a];Object.keys(B).forEach(function(L){var N=[Y,X].indexOf(L)>=0?1:-1,F=[V,X].indexOf(L)>=0?"y":"x";B[L]+=P[F]*N})}return B}function fn(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,u=r.rootBoundary,s=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,p=f===void 0?er:f,l=Be(n),b=l?c?kt:kt.filter(function(w){return Be(w)===l}):Ue,x=b.filter(function(w){return p.indexOf(w)>=0});x.length===0&&(x=b);var h=x.reduce(function(w,g){return w[g]=Fe(e,{placement:g,boundary:a,rootBoundary:u,padding:s})[te(g)],w},{});return Object.keys(h).sort(function(w,g){return h[w]-h[g]})}function cn(e){if(te(e)===Tt)return[];var t=ot(e);return[Ht(e),t,Ht(t)]}function ln(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,u=a===void 0?!0:a,s=r.altAxis,c=s===void 0?!0:s,f=r.fallbackPlacements,p=r.padding,l=r.boundary,b=r.rootBoundary,x=r.altBoundary,h=r.flipVariations,w=h===void 0?!0:h,g=r.allowedAutoPlacements,y=t.options.placement,T=te(y),C=T===y,S=f||(C||!w?[ot(y)]:cn(y)),i=[y].concat(S).reduce(function(ne,_){return ne.concat(te(_)===Tt?fn(t,{placement:_,boundary:l,rootBoundary:b,padding:p,flipVariations:w,allowedAutoPlacements:g}):_)},[]),A=t.rects.reference,v=t.rects.popper,D=new Map,M=!0,R=i[0],B=0;B<i.length;B++){var k=i[B],P=te(k),L=Be(k)===De,N=[V,X].indexOf(P)>=0,F=N?"width":"height",j=Fe(t,{placement:k,boundary:l,rootBoundary:b,altBoundary:x,padding:p}),H=N?L?Y:W:L?X:V;A[F]>v[F]&&(H=ot(H));var $=ot(H),K=[];if(u&&K.push(j[P]<=0),c&&K.push(j[H]<=0,j[$]<=0),K.every(function(ne){return ne})){R=k,M=!1;break}D.set(k,K)}if(M)for(var J=w?3:1,pe=function(_){var ie=i.find(function(be){var ae=D.get(be);if(ae)return ae.slice(0,_).every(function(we){return we})});if(ie)return R=ie,"break"},Q=J;Q>0;Q--){var de=pe(Q);if(de==="break")break}t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}}const pn={name:"flip",enabled:!0,phase:"main",fn:ln,requiresIfExists:["offset"],data:{_skip:!1}};function Vt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Wt(e){return[V,Y,X,W].some(function(t){return e[t]>=0})}function dn(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,u=t.modifiersData.preventOverflow,s=Fe(t,{elementContext:"reference"}),c=Fe(t,{altBoundary:!0}),f=Vt(s,n),p=Vt(c,a,u),l=Wt(f),b=Wt(p);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":b})}const vn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dn};function mn(e,t,r){var n=te(e),a=[W,V].indexOf(n)>=0?-1:1,u=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=u[0],c=u[1];return s=s||0,c=(c||0)*a,[W,Y].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}function hn(e){var t=e.state,r=e.options,n=e.name,a=r.offset,u=a===void 0?[0,0]:a,s=er.reduce(function(l,b){return l[b]=mn(b,t.rects,u),l},{}),c=s[t.placement],f=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=s}const gn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hn};function yn(e){var t=e.state,r=e.name;t.modifiersData[r]=ur({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bn={name:"popperOffsets",enabled:!0,phase:"read",fn:yn,data:{}};function wn(e){return e==="x"?"y":"x"}function On(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,u=a===void 0?!0:a,s=r.altAxis,c=s===void 0?!1:s,f=r.boundary,p=r.rootBoundary,l=r.altBoundary,b=r.padding,x=r.tether,h=x===void 0?!0:x,w=r.tetherOffset,g=w===void 0?0:w,y=Fe(t,{boundary:f,rootBoundary:p,padding:b,altBoundary:l}),T=te(t.placement),C=Be(t.placement),S=!C,i=Dt(T),A=wn(i),v=t.modifiersData.popperOffsets,D=t.rects.reference,M=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(v){if(u){var L,N=i==="y"?V:W,F=i==="y"?X:Y,j=i==="y"?"height":"width",H=v[i],$=H+y[N],K=H-y[F],J=h?-M[j]/2:0,pe=C===De?D[j]:M[j],Q=C===De?-M[j]:-D[j],de=t.elements.arrow,ne=h&&de?Ct(de):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ir(),ie=_[N],be=_[F],ae=Ie(0,D[j],ne[j]),we=S?D[j]/2-J-ae-ie-B.mainAxis:pe-ae-ie-B.mainAxis,fe=S?-D[j]/2+J+ae+be+B.mainAxis:Q+ae+be+B.mainAxis,Oe=t.elements.arrow&&qe(t.elements.arrow),ze=Oe?i==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Re=(L=k==null?void 0:k[i])!=null?L:0,Xe=H+we-Re-ze,Ye=H+fe-Re,Me=Ie(h?ut($,Xe):$,H,h?ge(K,Ye):K);v[i]=Me,P[i]=Me-H}if(c){var ke,_e=i==="x"?V:W,Ge=i==="x"?X:Y,oe=v[A],ce=A==="y"?"height":"width",$e=oe+y[_e],ve=oe-y[Ge],je=[V,W].indexOf(T)!==-1,Ke=(ke=k==null?void 0:k[A])!=null?ke:0,Je=je?$e:oe-D[ce]-M[ce]-Ke+B.altAxis,Qe=je?oe+D[ce]+M[ce]-Ke-B.altAxis:ve,Ze=h&&je?qr(Je,oe,Qe):Ie(h?Je:$e,oe,h?Qe:ve);v[A]=Ze,P[A]=Ze-oe}t.modifiersData[n]=P}}const xn={name:"preventOverflow",enabled:!0,phase:"main",fn:On,requiresIfExists:["offset"]};function An(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tn(e){return e===U(e)||!z(e)?St(e):An(e)}function En(e){var t=e.getBoundingClientRect(),r=Se(t.width)/e.offsetWidth||1,n=Se(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Cn(e,t,r){r===void 0&&(r=!1);var n=z(t),a=z(t)&&En(t),u=le(t),s=Le(e,a,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((re(t)!=="body"||Bt(u))&&(c=Tn(t)),z(t)?(f=Le(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):u&&(f.x=Lt(u))),{x:s.left+c.scrollLeft-f.x,y:s.top+c.scrollTop-f.y,width:s.width,height:s.height}}function Dn(e){var t=new Map,r=new Set,n=[];e.forEach(function(u){t.set(u.name,u)});function a(u){r.add(u.name);var s=[].concat(u.requires||[],u.requiresIfExists||[]);s.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),n.push(u)}return e.forEach(function(u){r.has(u.name)||a(u)}),n}function Sn(e){var t=Dn(e);return Vr.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Ln(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Bn(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ft(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Pn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,u=a===void 0?Nt:a;return function(c,f,p){p===void 0&&(p=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,u),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},b=[],x=!1,h={state:l,setOptions:function(T){var C=typeof T=="function"?T(l.options):T;g(),l.options=Object.assign({},u,l.options,C),l.scrollParents={reference:ye(c)?Ve(c):c.contextElement?Ve(c.contextElement):[],popper:Ve(f)};var S=Sn(Bn([].concat(n,l.options.modifiers)));return l.orderedModifiers=S.filter(function(i){return i.enabled}),w(),h.update()},forceUpdate:function(){if(!x){var T=l.elements,C=T.reference,S=T.popper;if(Ft(C,S)){l.rects={reference:Cn(C,qe(S),l.options.strategy==="fixed"),popper:Ct(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(B){return l.modifiersData[B.name]=Object.assign({},B.data)});for(var i=0;i<l.orderedModifiers.length;i++){if(l.reset===!0){l.reset=!1,i=-1;continue}var A=l.orderedModifiers[i],v=A.fn,D=A.options,M=D===void 0?{}:D,R=A.name;typeof v=="function"&&(l=v({state:l,options:M,name:R,instance:h})||l)}}}},update:Ln(function(){return new Promise(function(y){h.forceUpdate(),y(l)})}),destroy:function(){g(),x=!0}};if(!Ft(c,f))return h;h.setOptions(p).then(function(y){!x&&p.onFirstUpdate&&p.onFirstUpdate(y)});function w(){l.orderedModifiers.forEach(function(y){var T=y.name,C=y.options,S=C===void 0?{}:C,i=y.effect;if(typeof i=="function"){var A=i({state:l,name:T,instance:h,options:S}),v=function(){};b.push(A||v)}})}function g(){b.forEach(function(y){return y()}),b=[]}return h}}var Rn=[en,bn,Qr,tr,gn,pn,xn,_r,vn],Mn=Pn({defaultModifiers:Rn}),kn="tippy-box",fr="tippy-content",$n="tippy-backdrop",cr="tippy-arrow",lr="tippy-svg-arrow",he={passive:!0,capture:!0},pr=function(){return document.body};function ht(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function Pt(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function dr(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Ut(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function jn(e){return e.split(/\s+/).filter(Boolean)}function Te(e){return[].concat(e)}function qt(e,t){e.indexOf(t)===-1&&e.push(t)}function Hn(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function In(e){return e.split("-")[0]}function ft(e){return[].slice.call(e)}function zt(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function We(){return document.createElement("div")}function lt(e){return["Element","Fragment"].some(function(t){return Pt(e,t)})}function Vn(e){return Pt(e,"NodeList")}function Wn(e){return Pt(e,"MouseEvent")}function Nn(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Fn(e){return lt(e)?[e]:Vn(e)?ft(e):Array.isArray(e)?e:ft(document.querySelectorAll(e))}function gt(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function Xt(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Un(e){var t,r=Te(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function qn(e,t){var r=t.clientX,n=t.clientY;return e.every(function(a){var u=a.popperRect,s=a.popperState,c=a.props,f=c.interactiveBorder,p=In(s.placement),l=s.modifiersData.offset;if(!l)return!0;var b=p==="bottom"?l.top.y:0,x=p==="top"?l.bottom.y:0,h=p==="right"?l.left.x:0,w=p==="left"?l.right.x:0,g=u.top-n+b>f,y=n-u.bottom-x>f,T=u.left-r+h>f,C=r-u.right-w>f;return g||y||T||C})}function yt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[n](a,r)})}function Yt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var ee={isTouch:!1},_t=0;function zn(){ee.isTouch||(ee.isTouch=!0,window.performance&&document.addEventListener("mousemove",vr))}function vr(){var e=performance.now();e-_t<20&&(ee.isTouch=!1,document.removeEventListener("mousemove",vr)),_t=e}function Xn(){var e=document.activeElement;if(Nn(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Yn(){document.addEventListener("touchstart",zn,he),window.addEventListener("blur",Xn)}var _n=typeof window<"u"&&typeof document<"u",Gn=_n?!!window.msCrypto:!1,Kn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Jn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},G=Object.assign({appendTo:pr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Kn,Jn),Qn=Object.keys(G),Zn=function(t){var r=Object.keys(t);r.forEach(function(n){G[n]=t[n]})};function mr(e){var t=e.plugins||[],r=t.reduce(function(n,a){var u=a.name,s=a.defaultValue;if(u){var c;n[u]=e[u]!==void 0?e[u]:(c=G[u])!=null?c:s}return n},{});return Object.assign({},e,r)}function ei(e,t){var r=t?Object.keys(mr(Object.assign({},G,{plugins:t}))):Qn,n=r.reduce(function(a,u){var s=(e.getAttribute("data-tippy-"+u)||"").trim();if(!s)return a;if(u==="content")a[u]=s;else try{a[u]=JSON.parse(s)}catch{a[u]=s}return a},{});return n}function Gt(e,t){var r=Object.assign({},t,{content:dr(t.content,[e])},t.ignoreAttributes?{}:ei(e,t.plugins));return r.aria=Object.assign({},G.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var ti=function(){return"innerHTML"};function xt(e,t){e[ti()]=t}function Kt(e){var t=We();return e===!0?t.className=cr:(t.className=lr,lt(e)?t.appendChild(e):xt(t,e)),t}function Jt(e,t){lt(t.content)?(xt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?xt(e,t.content):e.textContent=t.content)}function At(e){var t=e.firstElementChild,r=ft(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(fr)}),arrow:r.find(function(n){return n.classList.contains(cr)||n.classList.contains(lr)}),backdrop:r.find(function(n){return n.classList.contains($n)})}}function hr(e){var t=We(),r=We();r.className=kn,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=We();n.className=fr,n.setAttribute("data-state","hidden"),Jt(n,e.props),t.appendChild(r),r.appendChild(n),a(e.props,e.props);function a(u,s){var c=At(t),f=c.box,p=c.content,l=c.arrow;s.theme?f.setAttribute("data-theme",s.theme):f.removeAttribute("data-theme"),typeof s.animation=="string"?f.setAttribute("data-animation",s.animation):f.removeAttribute("data-animation"),s.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?f.setAttribute("role",s.role):f.removeAttribute("role"),(u.content!==s.content||u.allowHTML!==s.allowHTML)&&Jt(p,e.props),s.arrow?l?u.arrow!==s.arrow&&(f.removeChild(l),f.appendChild(Kt(s.arrow))):f.appendChild(Kt(s.arrow)):l&&f.removeChild(l)}return{popper:t,onUpdate:a}}hr.$$tippy=!0;var ri=1,it=[],bt=[];function ni(e,t){var r=Gt(e,Object.assign({},G,mr(zt(t)))),n,a,u,s=!1,c=!1,f=!1,p=!1,l,b,x,h=[],w=Ut(Xe,r.interactiveDebounce),g,y=ri++,T=null,C=Hn(r.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:y,reference:e,popper:We(),popperInstance:T,props:r,state:S,plugins:C,clearDelayTimeouts:Je,setProps:Qe,setContent:Ze,show:gr,hide:yr,hideWithInteractivity:br,enable:je,disable:Ke,unmount:wr,destroy:Or};if(!r.render)return i;var A=r.render(i),v=A.popper,D=A.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+i.id,i.popper=v,e._tippy=i,v._tippy=i;var M=C.map(function(o){return o.fn(i)}),R=e.hasAttribute("aria-expanded");return Oe(),J(),H(),$("onCreate",[i]),r.showOnCreate&&$e(),v.addEventListener("mouseenter",function(){i.props.interactive&&i.state.isVisible&&i.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){i.props.interactive&&i.props.trigger.indexOf("mouseenter")>=0&&N().addEventListener("mousemove",w)}),i;function B(){var o=i.props.touch;return Array.isArray(o)?o:[o,0]}function k(){return B()[0]==="hold"}function P(){var o;return!!((o=i.props.render)!=null&&o.$$tippy)}function L(){return g||e}function N(){var o=L().parentNode;return o?Un(o):document}function F(){return At(v)}function j(o){return i.state.isMounted&&!i.state.isVisible||ee.isTouch||l&&l.type==="focus"?0:ht(i.props.delay,o?0:1,G.delay)}function H(o){o===void 0&&(o=!1),v.style.pointerEvents=i.props.interactive&&!o?"":"none",v.style.zIndex=""+i.props.zIndex}function $(o,d,m){if(m===void 0&&(m=!0),M.forEach(function(O){O[o]&&O[o].apply(O,d)}),m){var E;(E=i.props)[o].apply(E,d)}}function K(){var o=i.props.aria;if(o.content){var d="aria-"+o.content,m=v.id,E=Te(i.props.triggerTarget||e);E.forEach(function(O){var I=O.getAttribute(d);if(i.state.isVisible)O.setAttribute(d,I?I+" "+m:m);else{var q=I&&I.replace(m,"").trim();q?O.setAttribute(d,q):O.removeAttribute(d)}})}}function J(){if(!(R||!i.props.aria.expanded)){var o=Te(i.props.triggerTarget||e);o.forEach(function(d){i.props.interactive?d.setAttribute("aria-expanded",i.state.isVisible&&d===L()?"true":"false"):d.removeAttribute("aria-expanded")})}}function pe(){N().removeEventListener("mousemove",w),it=it.filter(function(o){return o!==w})}function Q(o){if(!(ee.isTouch&&(f||o.type==="mousedown"))){var d=o.composedPath&&o.composedPath()[0]||o.target;if(!(i.props.interactive&&Yt(v,d))){if(Te(i.props.triggerTarget||e).some(function(m){return Yt(m,d)})){if(ee.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[i,o]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),c=!0,setTimeout(function(){c=!1}),i.state.isMounted||ie())}}}function de(){f=!0}function ne(){f=!1}function _(){var o=N();o.addEventListener("mousedown",Q,!0),o.addEventListener("touchend",Q,he),o.addEventListener("touchstart",ne,he),o.addEventListener("touchmove",de,he)}function ie(){var o=N();o.removeEventListener("mousedown",Q,!0),o.removeEventListener("touchend",Q,he),o.removeEventListener("touchstart",ne,he),o.removeEventListener("touchmove",de,he)}function be(o,d){we(o,function(){!i.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&d()})}function ae(o,d){we(o,d)}function we(o,d){var m=F().box;function E(O){O.target===m&&(yt(m,"remove",E),d())}if(o===0)return d();yt(m,"remove",b),yt(m,"add",E),b=E}function fe(o,d,m){m===void 0&&(m=!1);var E=Te(i.props.triggerTarget||e);E.forEach(function(O){O.addEventListener(o,d,m),h.push({node:O,eventType:o,handler:d,options:m})})}function Oe(){k()&&(fe("touchstart",Re,{passive:!0}),fe("touchend",Ye,{passive:!0})),jn(i.props.trigger).forEach(function(o){if(o!=="manual")switch(fe(o,Re),o){case"mouseenter":fe("mouseleave",Ye);break;case"focus":fe(Gn?"focusout":"blur",Me);break;case"focusin":fe("focusout",Me);break}})}function ze(){h.forEach(function(o){var d=o.node,m=o.eventType,E=o.handler,O=o.options;d.removeEventListener(m,E,O)}),h=[]}function Re(o){var d,m=!1;if(!(!i.state.isEnabled||ke(o)||c)){var E=((d=l)==null?void 0:d.type)==="focus";l=o,g=o.currentTarget,J(),!i.state.isVisible&&Wn(o)&&it.forEach(function(O){return O(o)}),o.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||s)&&i.props.hideOnClick!==!1&&i.state.isVisible?m=!0:$e(o),o.type==="click"&&(s=!m),m&&!E&&ve(o)}}function Xe(o){var d=o.target,m=L().contains(d)||v.contains(d);if(!(o.type==="mousemove"&&m)){var E=ce().concat(v).map(function(O){var I,q=O._tippy,xe=(I=q.popperInstance)==null?void 0:I.state;return xe?{popperRect:O.getBoundingClientRect(),popperState:xe,props:r}:null}).filter(Boolean);qn(E,o)&&(pe(),ve(o))}}function Ye(o){var d=ke(o)||i.props.trigger.indexOf("click")>=0&&s;if(!d){if(i.props.interactive){i.hideWithInteractivity(o);return}ve(o)}}function Me(o){i.props.trigger.indexOf("focusin")<0&&o.target!==L()||i.props.interactive&&o.relatedTarget&&v.contains(o.relatedTarget)||ve(o)}function ke(o){return ee.isTouch?k()!==o.type.indexOf("touch")>=0:!1}function _e(){Ge();var o=i.props,d=o.popperOptions,m=o.placement,E=o.offset,O=o.getReferenceClientRect,I=o.moveTransition,q=P()?At(v).arrow:null,xe=O?{getBoundingClientRect:O,contextElement:O.contextElement||L()}:e,Rt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(et){var Ae=et.state;if(P()){var xr=F(),dt=xr.box;["placement","reference-hidden","escaped"].forEach(function(tt){tt==="placement"?dt.setAttribute("data-placement",Ae.placement):Ae.attributes.popper["data-popper-"+tt]?dt.setAttribute("data-"+tt,""):dt.removeAttribute("data-"+tt)}),Ae.attributes.popper={}}}},me=[{name:"offset",options:{offset:E}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!I}},Rt];P()&&q&&me.push({name:"arrow",options:{element:q,padding:3}}),me.push.apply(me,(d==null?void 0:d.modifiers)||[]),i.popperInstance=Mn(xe,v,Object.assign({},d,{placement:m,onFirstUpdate:x,modifiers:me}))}function Ge(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function oe(){var o=i.props.appendTo,d,m=L();i.props.interactive&&o===pr||o==="parent"?d=m.parentNode:d=dr(o,[m]),d.contains(v)||d.appendChild(v),i.state.isMounted=!0,_e()}function ce(){return ft(v.querySelectorAll("[data-tippy-root]"))}function $e(o){i.clearDelayTimeouts(),o&&$("onTrigger",[i,o]),_();var d=j(!0),m=B(),E=m[0],O=m[1];ee.isTouch&&E==="hold"&&O&&(d=O),d?n=setTimeout(function(){i.show()},d):i.show()}function ve(o){if(i.clearDelayTimeouts(),$("onUntrigger",[i,o]),!i.state.isVisible){ie();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(o.type)>=0&&s)){var d=j(!1);d?a=setTimeout(function(){i.state.isVisible&&i.hide()},d):u=requestAnimationFrame(function(){i.hide()})}}function je(){i.state.isEnabled=!0}function Ke(){i.hide(),i.state.isEnabled=!1}function Je(){clearTimeout(n),clearTimeout(a),cancelAnimationFrame(u)}function Qe(o){if(!i.state.isDestroyed){$("onBeforeUpdate",[i,o]),ze();var d=i.props,m=Gt(e,Object.assign({},d,zt(o),{ignoreAttributes:!0}));i.props=m,Oe(),d.interactiveDebounce!==m.interactiveDebounce&&(pe(),w=Ut(Xe,m.interactiveDebounce)),d.triggerTarget&&!m.triggerTarget?Te(d.triggerTarget).forEach(function(E){E.removeAttribute("aria-expanded")}):m.triggerTarget&&e.removeAttribute("aria-expanded"),J(),H(),D&&D(d,m),i.popperInstance&&(_e(),ce().forEach(function(E){requestAnimationFrame(E._tippy.popperInstance.forceUpdate)})),$("onAfterUpdate",[i,o])}}function Ze(o){i.setProps({content:o})}function gr(){var o=i.state.isVisible,d=i.state.isDestroyed,m=!i.state.isEnabled,E=ee.isTouch&&!i.props.touch,O=ht(i.props.duration,0,G.duration);if(!(o||d||m||E)&&!L().hasAttribute("disabled")&&($("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,P()&&(v.style.visibility="visible"),H(),_(),i.state.isMounted||(v.style.transition="none"),P()){var I=F(),q=I.box,xe=I.content;gt([q,xe],0)}x=function(){var me;if(!(!i.state.isVisible||p)){if(p=!0,v.offsetHeight,v.style.transition=i.props.moveTransition,P()&&i.props.animation){var pt=F(),et=pt.box,Ae=pt.content;gt([et,Ae],O),Xt([et,Ae],"visible")}K(),J(),qt(bt,i),(me=i.popperInstance)==null||me.forceUpdate(),$("onMount",[i]),i.props.animation&&P()&&ae(O,function(){i.state.isShown=!0,$("onShown",[i])})}},oe()}}function yr(){var o=!i.state.isVisible,d=i.state.isDestroyed,m=!i.state.isEnabled,E=ht(i.props.duration,1,G.duration);if(!(o||d||m)&&($("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,p=!1,s=!1,P()&&(v.style.visibility="hidden"),pe(),ie(),H(!0),P()){var O=F(),I=O.box,q=O.content;i.props.animation&&(gt([I,q],E),Xt([I,q],"hidden"))}K(),J(),i.props.animation?P()&&be(E,i.unmount):i.unmount()}}function br(o){N().addEventListener("mousemove",w),qt(it,w),w(o)}function wr(){i.state.isVisible&&i.hide(),i.state.isMounted&&(Ge(),ce().forEach(function(o){o._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v),bt=bt.filter(function(o){return o!==i}),i.state.isMounted=!1,$("onHidden",[i]))}function Or(){i.state.isDestroyed||(i.clearDelayTimeouts(),i.unmount(),ze(),delete e._tippy,i.state.isDestroyed=!0,$("onDestroy",[i]))}}function Pe(e,t){t===void 0&&(t={});var r=G.plugins.concat(t.plugins||[]);Yn();var n=Object.assign({},t,{plugins:r}),a=Fn(e),u=a.reduce(function(s,c){var f=c&&ni(c,n);return f&&s.push(f),s},[]);return lt(e)?u[0]:u}Pe.defaultProps=G;Pe.setDefaultProps=Zn;Pe.currentInput=ee;Object.assign({},tr,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Pe.setDefaultProps({render:hr});const ii={props:{triggerHeight:{default:"auto"},maxHeight:{default:"auto"},maxWidth:{default:"100vh"},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{default:"parent"},disable:{default:!1},fullWidth:{default:!1},showOnCreate:{default:!1}},setup(e){const t=vt(null),r=vt(null),n=vt();return Ar(()=>{t.value&&(n.value=Pe(t.value,{trigger:e.trigger,maxWidth:e.maxWidth,content:r.value,placement:e.placement,interactive:!0,allowHTML:!0,appendTo:e.appendTo||document.querySelector("body"),arrow:!0,hideOnClick:!0,animation:"shift-away",theme:"light-border",showOnCreate:e.showOnCreate}))}),{tippyInstance:n,refTrigger:t,refContent:r,tippy:Pe}}},ai={key:1,class:"popover-root"};function oi(e,t,r,n,a,u){return r.disable?(Z(),se("div",ai,[Ce(e.$slots,"trigger",{},void 0,!0)])):(Z(),se("div",{key:0,class:at(["popover-root",{fullWidth:r.fullWidth}])},[Ee("div",{ref:"refTrigger",class:"trigger",style:st({height:r.triggerHeight})},[Ce(e.$slots,"trigger",{},void 0,!0)],4),Ee("div",{ref:"refContent",class:"content",style:st({maxHeight:r.maxHeight,overflow:r.maxHeight!=="auto"?"auto":"inherit"})},[Ce(e.$slots,"content",{},void 0,!0)],4)],2))}const si=Qt(ii,[["render",oi],["__scopeId","data-v-18dcd7f3"]]),ui={key:0,class:"title"},fi={key:0},ci={class:"actions"},li=["onClick"],pi={key:1,class:"text"},di={key:0,class:"text"},vi={__name:"Section",props:{header:{default:""},actions:{default:()=>[]},maxHeight:{default:"auto"},noStyle:{default:!1},noBodyPadding:{default:!1},scroll:{default:!0},headerBold:{default:!1},headerCenter:{default:!1},noRadius:{default:!1}},setup(e){const t=e,r=Tr(()=>t.actions.filter(n=>!n.hidden));return(n,a)=>{var u;return Z(),se("div",{class:at(["section",{noStyle:e.noStyle,noBodyPadding:e.noBodyPadding,headerBold:e.headerBold,headerCenter:e.headerCenter,noRadius:e.noRadius}])},[a[0]||(a[0]=Ee("div",{class:"background"},null,-1)),e.header||(u=e.actions)!=null&&u.length||n.$slots.header?(Z(),se("div",ui,[e.header?(Z(),se("div",fi,mt(e.header),1)):Ce(n.$slots,"header",{key:1},void 0,!0),Ee("div",ci,[Ce(n.$slots,"actions",{},void 0,!0),(Z(!0),se(Er,null,Cr(r.value,s=>(Z(),Dr(si,{key:s.label,appendTo:"parent",trigger:"mouseenter",placement:"top",disable:!s.hover},{trigger:Mt(()=>[Ee("button",{onClick:c=>{var f;return(f=s==null?void 0:s.click)==null?void 0:f.call(s)},class:at(["action small",{mini:!s.label&&s.icon||s.small,active:s.active}]),style:st(s.style||{})},[s.icon?(Z(),se("i",{key:0,class:at(s.icon),"aria-hidden":"true"},null,2)):rt("",!0),s.label?(Z(),se("span",pi,mt(s.label),1)):rt("",!0)],14,li)]),content:Mt(()=>[s.hover?(Z(),se("span",di,mt(s.hover),1)):rt("",!0)]),_:2},1032,["disable"]))),128))])])):rt("",!0),Ee("div",{class:"content",style:st({maxHeight:e.maxHeight,overflow:e.scroll?"auto":"inherit"})},[Ce(n.$slots,"default",{},void 0,!0)],4)],2)}}},mi=Qt(vi,[["__scopeId","data-v-bf42342c"]]),yi=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"}));export{si as P,mi as S,yi as a};