vue-pure-admin/dist/static/js/vue-tippy.esm-browser.js
2023-08-30 12:39:32 +08:00

7 lines
44 KiB
JavaScript

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