@flowbase-co/boosters-tooltip
Version:
Display informative tooltips when hovering or clicking on certain elements. Control their position, theme, animation style and more
35 lines (27 loc) • 50.3 kB
JavaScript
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=translucent]{background-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-arrow{width:14px;height:14px}.tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before{border-width:7px 7px 0;border-top-color:#000000b3}.tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before{border-width:0 7px 7px;border-bottom-color:#000000b3}.tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before{border-width:7px 0 7px 7px;border-left-color:#000000b3}.tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before{border-width:7px 7px 7px 0;border-right-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-backdrop{background-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-svg-arrow{fill:#000000b3}.tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.tippy-box[data-animation=shift-toward][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward][data-state=hidden][data-placement^=top]{transform:translateY(-10px)}.tippy-box[data-animation=shift-toward][data-state=hidden][data-placement^=bottom]{transform:translateY(10px)}.tippy-box[data-animation=shift-toward][data-state=hidden][data-placement^=left]{transform:translate(-10px)}.tippy-box[data-animation=shift-toward][data-state=hidden][data-placement^=right]{transform:translate(10px)}.tippy-box[data-animation=perspective][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=perspective][data-placement^=top][data-state=visible]{transform:perspective(700px)}.tippy-box[data-animation=perspective][data-placement^=top][data-state=hidden]{transform:perspective(700px) translateY(8px) rotateX(60deg)}.tippy-box[data-animation=perspective][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=perspective][data-placement^=bottom][data-state=visible]{transform:perspective(700px)}.tippy-box[data-animation=perspective][data-placement^=bottom][data-state=hidden]{transform:perspective(700px) translateY(-8px) rotateX(-60deg)}.tippy-box[data-animation=perspective][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=perspective][data-placement^=left][data-state=visible]{transform:perspective(700px)}.tippy-box[data-animation=perspective][data-placement^=left][data-state=hidden]{transform:perspective(700px) translate(8px) rotateY(-60deg)}.tippy-box[data-animation=perspective][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=perspective][data-placement^=right][data-state=visible]{transform:perspective(700px)}.tippy-box[data-animation=perspective][data-placement^=right][data-state=hidden]{transform:perspective(700px) translate(-8px) rotateY(60deg)}.tippy-box[data-animation=perspective][data-state=hidden],.tippy-box[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=top]{transform:translateY(10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=bottom]{transform:translateY(-10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=left]{transform:translate(10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=right]{transform:translate(-10px)}.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{transform:scale(.5);opacity:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
(function(){"use strict";var I="top",_="bottom",z="right",W="left",ut="auto",Se=[I,_,z,W],ye="start",je="end",Or="clippingParents",Ct="viewport",Ne="popper",xr="reference",Lt=Se.reduce(function(e,t){return e.concat([t+"-"+ye,t+"-"+je])},[]),St=[].concat(Se,[ut]).reduce(function(e,t){return e.concat([t,t+"-"+ye,t+"-"+je])},[]),Er="beforeRead",Ar="read",Dr="afterRead",Tr="beforeMain",Cr="main",Lr="afterMain",Sr="beforeWrite",jr="write",Nr="afterWrite",Br=[Er,Ar,Dr,Tr,Cr,Lr,Sr,jr,Nr];function K(e){return e?(e.nodeName||"").toLowerCase():null}function H(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pe(e){var t=H(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=H(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ct(e){if(typeof ShadowRoot>"u")return!1;var t=H(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Y(s)||!K(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(c){var f=o[c];f===!1?s.removeAttribute(c):s.setAttribute(c,f===!0?"":f)}))})}function Rr(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 o=t.elements[n],s=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),f=c.reduce(function(u,l){return u[l]="",u},{});!Y(o)||!K(o)||(Object.assign(o.style,f),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const jt={name:"applyStyles",enabled:!0,phase:"write",fn:Mr,effect:Rr,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var le=Math.max,_e=Math.min,be=Math.round;function ft(){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 Nt(){return!/^((?!chrome|android).)*safari/i.test(ft())}function we(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Y(e)&&(o=e.offsetWidth>0&&be(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&be(n.height)/e.offsetHeight||1);var c=pe(e)?H(e):window,f=c.visualViewport,u=!Nt()&&r,l=(n.left+(u&&f?f.offsetLeft:0))/o,p=(n.top+(u&&f?f.offsetTop:0))/s,b=n.width/o,x=n.height/s;return{width:b,height:x,top:p,right:l+b,bottom:p+x,left:l,x:l,y:p}}function pt(e){var t=we(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 Bt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ct(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function re(e){return H(e).getComputedStyle(e)}function Pr(e){return["table","td","th"].indexOf(K(e))>=0}function ue(e){return((pe(e)?e.ownerDocument:e.document)||window.document).documentElement}function ze(e){return K(e)==="html"?e:e.assignedSlot||e.parentNode||(ct(e)?e.host:null)||ue(e)}function Mt(e){return!Y(e)||re(e).position==="fixed"?null:e.offsetParent}function Vr(e){var t=/firefox/i.test(ft()),r=/Trident/i.test(ft());if(r&&Y(e)){var n=re(e);if(n.position==="fixed")return null}var o=ze(e);for(ct(o)&&(o=o.host);Y(o)&&["html","body"].indexOf(K(o))<0;){var s=re(o);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 o;o=o.parentNode}return null}function Be(e){for(var t=H(e),r=Mt(e);r&&Pr(r)&&re(r).position==="static";)r=Mt(r);return r&&(K(r)==="html"||K(r)==="body"&&re(r).position==="static")?t:r||Vr(e)||t}function lt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,r){return le(e,_e(t,r))}function kr(e,t,r){var n=Me(e,t,r);return n>r?r:n}function Rt(){return{top:0,right:0,bottom:0,left:0}}function Pt(e){return Object.assign({},Rt(),e)}function Vt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var $r=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Pt(typeof t!="number"?t:Vt(t,Se))};function Ir(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,c=r.modifiersData.popperOffsets,f=J(r.placement),u=lt(f),l=[W,z].indexOf(f)>=0,p=l?"height":"width";if(!(!s||!c)){var b=$r(o.padding,r),x=pt(s),h=u==="y"?I:W,w=u==="y"?_:z,g=r.rects.reference[p]+r.rects.reference[u]-c[u]-r.rects.popper[p],y=c[u]-r.rects.reference[u],A=Be(s),T=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,L=g/2-y/2,i=b[h],E=T-x[p]-b[w],d=T/2-x[p]/2+L,C=Me(i,d,E),M=u;r.modifiersData[n]=(t={},t[M]=C,t.centerOffset=C-d,t)}}function Wr(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Bt(t.elements.popper,o)&&(t.elements.arrow=o))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:Ir,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oe(e){return e.split("-")[1]}var Ur={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:be(r*o)/o||0,y:be(n*o)/o||0}}function kt(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,f=e.position,u=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets,b=e.isFixed,x=c.x,h=x===void 0?0:x,w=c.y,g=w===void 0?0:w,y=typeof p=="function"?p({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var A=c.hasOwnProperty("x"),T=c.hasOwnProperty("y"),L=W,i=I,E=window;if(l){var d=Be(r),C="clientHeight",M="clientWidth";if(d===H(r)&&(d=ue(r),re(d).position!=="static"&&f==="absolute"&&(C="scrollHeight",M="scrollWidth")),d=d,o===I||(o===W||o===z)&&s===je){i=_;var B=b&&d===E&&E.visualViewport?E.visualViewport.height:d[C];g-=B-n.height,g*=u?1:-1}if(o===W||(o===I||o===_)&&s===je){L=z;var j=b&&d===E&&E.visualViewport?E.visualViewport.width:d[M];h-=j-n.width,h*=u?1:-1}}var R=Object.assign({position:f},l&&Ur),N=p===!0?Fr({x:h,y:g},H(r)):{x:h,y:g};if(h=N.x,g=N.y,u){var S;return Object.assign({},R,(S={},S[i]=T?"0":"",S[L]=A?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",S))}return Object.assign({},R,(t={},t[i]=T?g+"px":"",t[L]=A?h+"px":"",t.transform="",t))}function qr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,c=s===void 0?!0:s,f=r.roundOffsets,u=f===void 0?!0:f,l={placement:J(t.placement),variation:Oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kt(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kt(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _r={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qr,data:{}};var Ye={passive:!0};function zr(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,c=n.resize,f=c===void 0?!0:c,u=H(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(p){p.addEventListener("scroll",r.update,Ye)}),f&&u.addEventListener("resize",r.update,Ye),function(){s&&l.forEach(function(p){p.removeEventListener("scroll",r.update,Ye)}),f&&u.removeEventListener("resize",r.update,Ye)}}const Yr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zr,data:{}};var Xr={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Xr[t]})}var Gr={start:"end",end:"start"};function $t(e){return e.replace(/start|end/g,function(t){return Gr[t]})}function dt(e){var t=H(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function vt(e){return we(ue(e)).left+dt(e).scrollLeft}function Kr(e,t){var r=H(e),n=ue(e),o=r.visualViewport,s=n.clientWidth,c=n.clientHeight,f=0,u=0;if(o){s=o.width,c=o.height;var l=Nt();(l||!l&&t==="fixed")&&(f=o.offsetLeft,u=o.offsetTop)}return{width:s,height:c,x:f+vt(e),y:u}}function Jr(e){var t,r=ue(e),n=dt(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=le(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=le(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-n.scrollLeft+vt(e),u=-n.scrollTop;return re(o||r).direction==="rtl"&&(f+=le(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:f,y:u}}function mt(e){var t=re(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function It(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:Y(e)&&mt(e)?e:It(ze(e))}function Re(e,t){var r;t===void 0&&(t=[]);var n=It(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=H(n),c=o?[s].concat(s.visualViewport||[],mt(n)?n:[]):n,f=t.concat(c);return o?f:f.concat(Re(ze(c)))}function ht(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qr(e,t){var r=we(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 Wt(e,t,r){return t===Ct?ht(Kr(e,r)):pe(t)?Qr(t,r):ht(Jr(ue(e)))}function Zr(e){var t=Re(ze(e)),r=["absolute","fixed"].indexOf(re(e).position)>=0,n=r&&Y(e)?Be(e):e;return pe(n)?t.filter(function(o){return pe(o)&&Bt(o,n)&&K(o)!=="body"}):[]}function en(e,t,r,n){var o=t==="clippingParents"?Zr(e):[].concat(t),s=[].concat(o,[r]),c=s[0],f=s.reduce(function(u,l){var p=Wt(e,l,n);return u.top=le(p.top,u.top),u.right=_e(p.right,u.right),u.bottom=_e(p.bottom,u.bottom),u.left=le(p.left,u.left),u},Wt(e,c,n));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Ht(e){var t=e.reference,r=e.element,n=e.placement,o=n?J(n):null,s=n?Oe(n):null,c=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,u;switch(o){case I:u={x:c,y:t.y-r.height};break;case _:u={x:c,y:t.y+t.height};break;case z:u={x:t.x+t.width,y:f};break;case W:u={x:t.x-r.width,y:f};break;default:u={x:t.x,y:t.y}}var l=o?lt(o):null;if(l!=null){var p=l==="y"?"height":"width";switch(s){case ye:u[l]=u[l]-(t[p]/2-r[p]/2);break;case je:u[l]=u[l]+(t[p]/2-r[p]/2);break}}return u}function Pe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,c=s===void 0?e.strategy:s,f=r.boundary,u=f===void 0?Or:f,l=r.rootBoundary,p=l===void 0?Ct:l,b=r.elementContext,x=b===void 0?Ne:b,h=r.altBoundary,w=h===void 0?!1:h,g=r.padding,y=g===void 0?0:g,A=Pt(typeof y!="number"?y:Vt(y,Se)),T=x===Ne?xr:Ne,L=e.rects.popper,i=e.elements[w?T:x],E=en(pe(i)?i:i.contextElement||ue(e.elements.popper),u,p,c),d=we(e.elements.reference),C=Ht({reference:d,element:L,strategy:"absolute",placement:o}),M=ht(Object.assign({},L,C)),B=x===Ne?M:d,j={top:E.top-B.top+A.top,bottom:B.bottom-E.bottom+A.bottom,left:E.left-B.left+A.left,right:B.right-E.right+A.right},R=e.modifiersData.offset;if(x===Ne&&R){var N=R[o];Object.keys(j).forEach(function(S){var F=[z,_].indexOf(S)>=0?1:-1,q=[I,_].indexOf(S)>=0?"y":"x";j[S]+=N[q]*F})}return j}function tn(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,c=r.padding,f=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?St:u,p=Oe(n),b=p?f?Lt:Lt.filter(function(w){return Oe(w)===p}):Se,x=b.filter(function(w){return l.indexOf(w)>=0});x.length===0&&(x=b);var h=x.reduce(function(w,g){return w[g]=Pe(e,{placement:g,boundary:o,rootBoundary:s,padding:c})[J(g)],w},{});return Object.keys(h).sort(function(w,g){return h[w]-h[g]})}function rn(e){if(J(e)===ut)return[];var t=Xe(e);return[$t(e),t,$t(t)]}function nn(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,f=c===void 0?!0:c,u=r.fallbackPlacements,l=r.padding,p=r.boundary,b=r.rootBoundary,x=r.altBoundary,h=r.flipVariations,w=h===void 0?!0:h,g=r.allowedAutoPlacements,y=t.options.placement,A=J(y),T=A===y,L=u||(T||!w?[Xe(y)]:rn(y)),i=[y].concat(L).reduce(function(ie,G){return ie.concat(J(G)===ut?tn(t,{placement:G,boundary:p,rootBoundary:b,padding:l,flipVariations:w,allowedAutoPlacements:g}):G)},[]),E=t.rects.reference,d=t.rects.popper,C=new Map,M=!0,B=i[0],j=0;j<i.length;j++){var R=i[j],N=J(R),S=Oe(R)===ye,F=[I,_].indexOf(N)>=0,q=F?"width":"height",V=Pe(t,{placement:R,boundary:p,rootBoundary:b,altBoundary:x,padding:l}),k=F?S?z:W:S?_:I;E[q]>d[q]&&(k=Xe(k));var P=Xe(k),Z=[];if(s&&Z.push(V[N]<=0),f&&Z.push(V[k]<=0,V[P]<=0),Z.every(function(ie){return ie})){B=R,M=!1;break}C.set(R,Z)}if(M)for(var ee=w?3:1,ve=function(G){var oe=i.find(function(Ae){var ae=C.get(Ae);if(ae)return ae.slice(0,G).every(function(De){return De})});if(oe)return B=oe,"break"},te=ee;te>0;te--){var me=ve(te);if(me==="break")break}t.placement!==B&&(t.modifiersData[n]._skip=!0,t.placement=B,t.reset=!0)}}const on={name:"flip",enabled:!0,phase:"main",fn:nn,requiresIfExists:["offset"],data:{_skip:!1}};function Ut(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 Ft(e){return[I,z,_,W].some(function(t){return e[t]>=0})}function an(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=Pe(t,{elementContext:"reference"}),f=Pe(t,{altBoundary:!0}),u=Ut(c,n),l=Ut(f,o,s),p=Ft(u),b=Ft(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":b})}const sn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:an};function un(e,t,r){var n=J(e),o=[W,I].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=s[0],f=s[1];return c=c||0,f=(f||0)*o,[W,z].indexOf(n)>=0?{x:f,y:c}:{x:c,y:f}}function cn(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,c=St.reduce(function(p,b){return p[b]=un(b,t.rects,s),p},{}),f=c[t.placement],u=f.x,l=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=c}const fn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cn};function pn(e){var t=e.state,r=e.name;t.modifiersData[r]=Ht({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ln={name:"popperOffsets",enabled:!0,phase:"read",fn:pn,data:{}};function dn(e){return e==="x"?"y":"x"}function vn(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,f=c===void 0?!1:c,u=r.boundary,l=r.rootBoundary,p=r.altBoundary,b=r.padding,x=r.tether,h=x===void 0?!0:x,w=r.tetherOffset,g=w===void 0?0:w,y=Pe(t,{boundary:u,rootBoundary:l,padding:b,altBoundary:p}),A=J(t.placement),T=Oe(t.placement),L=!T,i=lt(A),E=dn(i),d=t.modifiersData.popperOffsets,C=t.rects.reference,M=t.rects.popper,B=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(d){if(s){var S,F=i==="y"?I:W,q=i==="y"?_:z,V=i==="y"?"height":"width",k=d[i],P=k+y[F],Z=k-y[q],ee=h?-M[V]/2:0,ve=T===ye?C[V]:M[V],te=T===ye?-M[V]:-C[V],me=t.elements.arrow,ie=h&&me?pt(me):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rt(),oe=G[F],Ae=G[q],ae=Me(0,C[V],ie[V]),De=L?C[V]/2-ee-ae-oe-j.mainAxis:ve-ae-oe-j.mainAxis,ce=L?-C[V]/2+ee+ae+Ae+j.mainAxis:te+ae+Ae+j.mainAxis,Te=t.elements.arrow&&Be(t.elements.arrow),Je=Te?i==="y"?Te.clientTop||0:Te.clientLeft||0:0,We=(S=R==null?void 0:R[i])!=null?S:0,Qe=k+De-We-Je,Ze=k+ce-We,He=Me(h?_e(P,Qe):P,k,h?le(Z,Ze):Z);d[i]=He,N[i]=He-k}if(f){var Ue,et=i==="x"?I:W,tt=i==="x"?_:z,se=d[E],fe=E==="y"?"height":"width",Fe=se+y[et],he=se-y[tt],qe=[I,W].indexOf(A)!==-1,rt=(Ue=R==null?void 0:R[E])!=null?Ue:0,nt=qe?Fe:se-C[fe]-M[fe]-rt+j.altAxis,it=qe?se+C[fe]+M[fe]-rt-j.altAxis:he,ot=h&&qe?kr(nt,se,it):Me(h?nt:Fe,se,h?it:he);d[E]=ot,N[E]=ot-se}t.modifiersData[n]=N}}const mn={name:"preventOverflow",enabled:!0,phase:"main",fn:vn,requiresIfExists:["offset"]};function hn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gn(e){return e===H(e)||!Y(e)?dt(e):hn(e)}function yn(e){var t=e.getBoundingClientRect(),r=be(t.width)/e.offsetWidth||1,n=be(t.height)/e.offsetHeight||1;return r!==1||n!==1}function bn(e,t,r){r===void 0&&(r=!1);var n=Y(t),o=Y(t)&&yn(t),s=ue(t),c=we(e,o,r),f={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((K(t)!=="body"||mt(s))&&(f=gn(t)),Y(t)?(u=we(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=vt(s))),{x:c.left+f.scrollLeft-u.x,y:c.top+f.scrollTop-u.y,width:c.width,height:c.height}}function wn(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(f){if(!r.has(f)){var u=t.get(f);u&&o(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function On(e){var t=wn(e);return Br.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function xn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function En(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var qt={placement:"bottom",modifiers:[],strategy:"absolute"};function _t(){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 An(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?qt:o;return function(f,u,l){l===void 0&&(l=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},qt,s),modifiersData:{},elements:{reference:f,popper:u},attributes:{},styles:{}},b=[],x=!1,h={state:p,setOptions:function(A){var T=typeof A=="function"?A(p.options):A;g(),p.options=Object.assign({},s,p.options,T),p.scrollParents={reference:pe(f)?Re(f):f.contextElement?Re(f.contextElement):[],popper:Re(u)};var L=On(En([].concat(n,p.options.modifiers)));return p.orderedModifiers=L.filter(function(i){return i.enabled}),w(),h.update()},forceUpdate:function(){if(!x){var A=p.elements,T=A.reference,L=A.popper;if(_t(T,L)){p.rects={reference:bn(T,Be(L),p.options.strategy==="fixed"),popper:pt(L)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(j){return p.modifiersData[j.name]=Object.assign({},j.data)});for(var i=0;i<p.orderedModifiers.length;i++){if(p.reset===!0){p.reset=!1,i=-1;continue}var E=p.orderedModifiers[i],d=E.fn,C=E.options,M=C===void 0?{}:C,B=E.name;typeof d=="function"&&(p=d({state:p,options:M,name:B,instance:h})||p)}}}},update:xn(function(){return new Promise(function(y){h.forceUpdate(),y(p)})}),destroy:function(){g(),x=!0}};if(!_t(f,u))return h;h.setOptions(l).then(function(y){!x&&l.onFirstUpdate&&l.onFirstUpdate(y)});function w(){p.orderedModifiers.forEach(function(y){var A=y.name,T=y.options,L=T===void 0?{}:T,i=y.effect;if(typeof i=="function"){var E=i({state:p,name:A,instance:h,options:L}),d=function(){};b.push(E||d)}})}function g(){b.forEach(function(y){return y()}),b=[]}return h}}var Dn=[Yr,ln,_r,jt,fn,on,mn,Hr,sn],Tn=An({defaultModifiers:Dn}),Cn='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Ln="tippy-box",zt="tippy-content",Sn="tippy-backdrop",Yt="tippy-arrow",Xt="tippy-svg-arrow",de={passive:!0,capture:!0},Gt=function(){return document.body};function jn(e,t){return{}.hasOwnProperty.call(e,t)}function gt(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function yt(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function Kt(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Jt(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function Nn(e,t){var r=Object.assign({},e);return t.forEach(function(n){delete r[n]}),r}function Bn(e){return e.split(/\s+/).filter(Boolean)}function xe(e){return[].concat(e)}function Qt(e,t){e.indexOf(t)===-1&&e.push(t)}function Mn(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function Rn(e){return e.split("-")[0]}function Ge(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 Ve(){return document.createElement("div")}function ke(e){return["Element","Fragment"].some(function(t){return yt(e,t)})}function Pn(e){return yt(e,"NodeList")}function Vn(e){return yt(e,"MouseEvent")}function kn(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function $n(e){return ke(e)?[e]:Pn(e)?Ge(e):Array.isArray(e)?e:Ge(document.querySelectorAll(e))}function bt(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function er(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function In(e){var t,r=xe(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function Wn(e,t){var r=t.clientX,n=t.clientY;return e.every(function(o){var s=o.popperRect,c=o.popperState,f=o.props,u=f.interactiveBorder,l=Rn(c.placement),p=c.modifiersData.offset;if(!p)return!0;var b=l==="bottom"?p.top.y:0,x=l==="top"?p.bottom.y:0,h=l==="right"?p.left.x:0,w=l==="left"?p.right.x:0,g=s.top-n+b>u,y=n-s.bottom-x>u,A=s.left-r+h>u,T=r-s.right-w>u;return g||y||A||T})}function wt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[n](o,r)})}function tr(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 Q={isTouch:!1},rr=0;function Hn(){Q.isTouch||(Q.isTouch=!0,window.performance&&document.addEventListener("mousemove",nr))}function nr(){var e=performance.now();e-rr<20&&(Q.isTouch=!1,document.removeEventListener("mousemove",nr)),rr=e}function Un(){var e=document.activeElement;if(kn(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Fn(){document.addEventListener("touchstart",Hn,de),window.addEventListener("blur",Un)}var qn=typeof window<"u"&&typeof document<"u",_n=qn?!!window.msCrypto:!1;function Ee(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function ir(e){var t=/[ \t]{2,}/g,r=/^[ \t]*/gm;return e.replace(t," ").replace(r,"").trim()}function zn(e){return ir(`
%ctippy.js
%c`+ir(e)+`
%c👷 This is a development-only message. It will be removed in production.
`)}function or(e){return[zn(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var $e;({}).NODE_ENV!=="production"&&Yn();function Yn(){$e=new Set}function ne(e,t){if(e&&!$e.has(t)){var r;$e.add(t),(r=console).warn.apply(r,or(t))}}function Ot(e,t){if(e&&!$e.has(t)){var r;$e.add(t),(r=console).error.apply(r,or(t))}}function Xn(e){var t=!e,r=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;Ot(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Ot(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var ar={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},U=Object.assign({appendTo:Gt,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},ar,Gn),Kn=Object.keys(U),Jn=function(t){({}).NODE_ENV!=="production"&&cr(t,[]);var r=Object.keys(t);r.forEach(function(n){U[n]=t[n]})};function sr(e){var t=e.plugins||[],r=t.reduce(function(n,o){var s=o.name,c=o.defaultValue;if(s){var f;n[s]=e[s]!==void 0?e[s]:(f=U[s])!=null?f:c}return n},{});return Object.assign({},e,r)}function Qn(e,t){var r=t?Object.keys(sr(Object.assign({},U,{plugins:t}))):Kn,n=r.reduce(function(o,s){var c=(e.getAttribute("data-tippy-"+s)||"").trim();if(!c)return o;if(s==="content")o[s]=c;else try{o[s]=JSON.parse(c)}catch{o[s]=c}return o},{});return n}function ur(e,t){var r=Object.assign({},t,{content:Kt(t.content,[e])},t.ignoreAttributes?{}:Qn(e,t.plugins));return r.aria=Object.assign({},U.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}function cr(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var r=Object.keys(e);r.forEach(function(n){var o=Nn(U,Object.keys(ar)),s=!jn(o,n);s&&(s=t.filter(function(c){return c.name===n}).length===0),ne(s,["`"+n+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Zn=function(){return"innerHTML"};function xt(e,t){e[Zn()]=t}function fr(e){var t=Ve();return e===!0?t.className=Yt:(t.className=Xt,ke(e)?t.appendChild(e):xt(t,e)),t}function pr(e,t){ke(t.content)?(xt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?xt(e,t.content):e.textContent=t.content)}function Et(e){var t=e.firstElementChild,r=Ge(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(zt)}),arrow:r.find(function(n){return n.classList.contains(Yt)||n.classList.contains(Xt)}),backdrop:r.find(function(n){return n.classList.contains(Sn)})}}function lr(e){var t=Ve(),r=Ve();r.className=Ln,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=Ve();n.className=zt,n.setAttribute("data-state","hidden"),pr(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props);function o(s,c){var f=Et(t),u=f.box,l=f.content,p=f.arrow;c.theme?u.setAttribute("data-theme",c.theme):u.removeAttribute("data-theme"),typeof c.animation=="string"?u.setAttribute("data-animation",c.animation):u.removeAttribute("data-animation"),c.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof c.maxWidth=="number"?c.maxWidth+"px":c.maxWidth,c.role?u.setAttribute("role",c.role):u.removeAttribute("role"),(s.content!==c.content||s.allowHTML!==c.allowHTML)&&pr(l,e.props),c.arrow?p?s.arrow!==c.arrow&&(u.removeChild(p),u.appendChild(fr(c.arrow))):u.appendChild(fr(c.arrow)):p&&u.removeChild(p)}return{popper:t,onUpdate:o}}lr.$$tippy=!0;var ei=1,Ke=[],At=[];function ti(e,t){var r=ur(e,Object.assign({},U,sr(Zt(t)))),n,o,s,c=!1,f=!1,u=!1,l=!1,p,b,x,h=[],w=Jt(Qe,r.interactiveDebounce),g,y=ei++,A=null,T=Mn(r.plugins),L={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:y,reference:e,popper:Ve(),popperInstance:A,props:r,state:L,plugins:T,clearDelayTimeouts:nt,setProps:it,setContent:ot,show:ii,hide:oi,hideWithInteractivity:ai,enable:qe,disable:rt,unmount:si,destroy:ui};if(!r.render)return{}.NODE_ENV!=="production"&&Ot(!0,"render() function has not been supplied."),i;var E=r.render(i),d=E.popper,C=E.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+i.id,i.popper=d,e._tippy=i,d._tippy=i;var M=T.map(function(a){return a.fn(i)}),B=e.hasAttribute("aria-expanded");return Te(),ee(),k(),P("onCreate",[i]),r.showOnCreate&&Fe(),d.addEventListener("mouseenter",function(){i.props.interactive&&i.state.isVisible&&i.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){i.props.interactive&&i.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",w)}),i;function j(){var a=i.props.touch;return Array.isArray(a)?a:[a,0]}function R(){return j()[0]==="hold"}function N(){var a;return!!((a=i.props.render)!=null&&a.$$tippy)}function S(){return g||e}function F(){var a=S().parentNode;return a?In(a):document}function q(){return Et(d)}function V(a){return i.state.isMounted&&!i.state.isVisible||Q.isTouch||p&&p.type==="focus"?0:gt(i.props.delay,a?0:1,U.delay)}function k(a){a===void 0&&(a=!1),d.style.pointerEvents=i.props.interactive&&!a?"":"none",d.style.zIndex=""+i.props.zIndex}function P(a,v,m){if(m===void 0&&(m=!0),M.forEach(function(O){O[a]&&O[a].apply(O,v)}),m){var D;(D=i.props)[a].apply(D,v)}}function Z(){var a=i.props.aria;if(a.content){var v="aria-"+a.content,m=d.id,D=xe(i.props.triggerTarget||e);D.forEach(function(O){var $=O.getAttribute(v);if(i.state.isVisible)O.setAttribute(v,$?$+" "+m:m);else{var X=$&&$.replace(m,"").trim();X?O.setAttribute(v,X):O.removeAttribute(v)}})}}function ee(){if(!(B||!i.props.aria.expanded)){var a=xe(i.props.triggerTarget||e);a.forEach(function(v){i.props.interactive?v.setAttribute("aria-expanded",i.state.isVisible&&v===S()?"true":"false"):v.removeAttribute("aria-expanded")})}}function ve(){F().removeEventListener("mousemove",w),Ke=Ke.filter(function(a){return a!==w})}function te(a){if(!(Q.isTouch&&(u||a.type==="mousedown"))){var v=a.composedPath&&a.composedPath()[0]||a.target;if(!(i.props.interactive&&tr(d,v))){if(xe(i.props.triggerTarget||e).some(function(m){return tr(m,v)})){if(Q.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[i,a]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),f=!0,setTimeout(function(){f=!1}),i.state.isMounted||oe())}}}function me(){u=!0}function ie(){u=!1}function G(){var a=F();a.addEventListener("mousedown",te,!0),a.addEventListener("touchend",te,de),a.addEventListener("touchstart",ie,de),a.addEventListener("touchmove",me,de)}function oe(){var a=F();a.removeEventListener("mousedown",te,!0),a.removeEventListener("touchend",te,de),a.removeEventListener("touchstart",ie,de),a.removeEventListener("touchmove",me,de)}function Ae(a,v){De(a,function(){!i.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&v()})}function ae(a,v){De(a,v)}function De(a,v){var m=q().box;function D(O){O.target===m&&(wt(m,"remove",D),v())}if(a===0)return v();wt(m,"remove",b),wt(m,"add",D),b=D}function ce(a,v,m){m===void 0&&(m=!1);var D=xe(i.props.triggerTarget||e);D.forEach(function(O){O.addEventListener(a,v,m),h.push({node:O,eventType:a,handler:v,options:m})})}function Te(){R()&&(ce("touchstart",We,{passive:!0}),ce("touchend",Ze,{passive:!0})),Bn(i.props.trigger).forEach(function(a){if(a!=="manual")switch(ce(a,We),a){case"mouseenter":ce("mouseleave",Ze);break;case"focus":ce(_n?"focusout":"blur",He);break;case"focusin":ce("focusout",He);break}})}function Je(){h.forEach(function(a){var v=a.node,m=a.eventType,D=a.handler,O=a.options;v.removeEventListener(m,D,O)}),h=[]}function We(a){var v,m=!1;if(!(!i.state.isEnabled||Ue(a)||f)){var D=((v=p)==null?void 0:v.type)==="focus";p=a,g=a.currentTarget,ee(),!i.state.isVisible&&Vn(a)&&Ke.forEach(function(O){return O(a)}),a.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||c)&&i.props.hideOnClick!==!1&&i.state.isVisible?m=!0:Fe(a),a.type==="click"&&(c=!m),m&&!D&&he(a)}}function Qe(a){var v=a.target,m=S().contains(v)||d.contains(v);if(!(a.type==="mousemove"&&m)){var D=fe().concat(d).map(function(O){var $,X=O._tippy,Ce=($=X.popperInstance)==null?void 0:$.state;return Ce?{popperRect:O.getBoundingClientRect(),popperState:Ce,props:r}:null}).filter(Boolean);Wn(D,a)&&(ve(),he(a))}}function Ze(a){var v=Ue(a)||i.props.trigger.indexOf("click")>=0&&c;if(!v){if(i.props.interactive){i.hideWithInteractivity(a);return}he(a)}}function He(a){i.props.trigger.indexOf("focusin")<0&&a.target!==S()||i.props.interactive&&a.relatedTarget&&d.contains(a.relatedTarget)||he(a)}function Ue(a){return Q.isTouch?R()!==a.type.indexOf("touch")>=0:!1}function et(){tt();var a=i.props,v=a.popperOptions,m=a.placement,D=a.offset,O=a.getReferenceClientRect,$=a.moveTransition,X=N()?Et(d).arrow:null,Ce=O?{getBoundingClientRect:O,contextElement:O.contextElement||S()}:e,wr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(at){var Le=at.state;if(N()){var ci=q(),Tt=ci.box;["placement","reference-hidden","escaped"].forEach(function(st){st==="placement"?Tt.setAttribute("data-placement",Le.placement):Le.attributes.popper["data-popper-"+st]?Tt.setAttribute("data-"+st,""):Tt.removeAttribute("data-"+st)}),Le.attributes.popper={}}}},ge=[{name:"offset",options:{offset:D}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!$}},wr];N()&&X&&ge.push({name:"arrow",options:{element:X,padding:3}}),ge.push.apply(ge,(v==null?void 0:v.modifiers)||[]),i.popperInstance=Tn(Ce,d,Object.assign({},v,{placement:m,onFirstUpdate:x,modifiers:ge}))}function tt(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function se(){var a=i.props.appendTo,v,m=S();i.props.interactive&&a===Gt||a==="parent"?v=m.parentNode:v=Kt(a,[m]),v.contains(d)||v.appendChild(d),i.state.isMounted=!0,et(),{}.NODE_ENV!=="production"&&ne(i.props.interactive&&a===U.appendTo&&m.nextElementSibling!==d,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function fe(){return Ge(d.querySelectorAll("[data-tippy-root]"))}function Fe(a){i.clearDelayTimeouts(),a&&P("onTrigger",[i,a]),G();var v=V(!0),m=j(),D=m[0],O=m[1];Q.isTouch&&D==="hold"&&O&&(v=O),v?n=setTimeout(function(){i.show()},v):i.show()}function he(a){if(i.clearDelayTimeouts(),P("onUntrigger",[i,a]),!i.state.isVisible){oe();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(a.type)>=0&&c)){var v=V(!1);v?o=setTimeout(function(){i.state.isVisible&&i.hide()},v):s=requestAnimationFrame(function(){i.hide()})}}function qe(){i.state.isEnabled=!0}function rt(){i.hide(),i.state.isEnabled=!1}function nt(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(s)}function it(a){if({}.NODE_ENV!=="production"&&ne(i.state.isDestroyed,Ee("setProps")),!i.state.isDestroyed){P("onBeforeUpdate",[i,a]),Je();var v=i.props,m=ur(e,Object.assign({},v,Zt(a),{ignoreAttributes:!0}));i.props=m,Te(),v.interactiveDebounce!==m.interactiveDebounce&&(ve(),w=Jt(Qe,m.interactiveDebounce)),v.triggerTarget&&!m.triggerTarget?xe(v.triggerTarget).forEach(function(D){D.removeAttribute("aria-expanded")}):m.triggerTarget&&e.removeAttribute("aria-expanded"),ee(),k(),C&&C(v,m),i.popperInstance&&(et(),fe().forEach(function(D){requestAnimationFrame(D._tippy.popperInstance.forceUpdate)})),P("onAfterUpdate",[i,a])}}function ot(a){i.setProps({content:a})}function ii(){({}).NODE_ENV!=="production"&&ne(i.state.isDestroyed,Ee("show"));var a=i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,D=Q.isTouch&&!i.props.touch,O=gt(i.props.duration,0,U.duration);if(!(a||v||m||D)&&!S().hasAttribute("disabled")&&(P("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,N()&&(d.style.visibility="visible"),k(),G(),i.state.isMounted||(d.style.transition="none"),N()){var $=q(),X=$.box,Ce=$.content;bt([X,Ce],0)}x=function(){var ge;if(!(!i.state.isVisible||l)){if(l=!0,d.offsetHeight,d.style.transition=i.props.moveTransition,N()&&i.props.animation){var Dt=q(),at=Dt.box,Le=Dt.content;bt([at,Le],O),er([at,Le],"visible")}Z(),ee(),Qt(At,i),(ge=i.popperInstance)==null||ge.forceUpdate(),P("onMount",[i]),i.props.animation&&N()&&ae(O,function(){i.state.isShown=!0,P("onShown",[i])})}},se()}}function oi(){({}).NODE_ENV!=="production"&&ne(i.state.isDestroyed,Ee("hide"));var a=!i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,D=gt(i.props.duration,1,U.duration);if(!(a||v||m)&&(P("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,l=!1,c=!1,N()&&(d.style.visibility="hidden"),ve(),oe(),k(!0),N()){var O=q(),$=O.box,X=O.content;i.props.animation&&(bt([$,X],D),er([$,X],"hidden"))}Z(),ee(),i.props.animation?N()&&Ae(D,i.unmount):i.unmount()}}function ai(a){({}).NODE_ENV!=="production"&&ne(i.state.isDestroyed,Ee("hideWithInteractivity")),F().addEventListener("mousemove",w),Qt(Ke,w),w(a)}function si(){({}).NODE_ENV!=="production"&&ne(i.state.isDestroyed,Ee("unmount")),i.state.isVisible&&i.hide(),i.state.isMounted&&(tt(),fe().forEach(function(a){a._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),At=At.filter(function(a){return a!==i}),i.state.isMounted=!1,P("onHidden",[i]))}function ui(){({}).NODE_ENV!=="production"&&ne(i.state.isDestroyed,Ee("destroy")),!i.state.isDestroyed&&(i.clearDelayTimeouts(),i.unmount(),Je(),delete e._tippy,i.state.isDestroyed=!0,P("onDestroy",[i]))}}function Ie(e,t){t===void 0&&(t={});var r=U.plugins.concat(t.plugins||[]);({}).NODE_ENV!=="production"&&(Xn(e),cr(t,r)),Fn();var n=Object.assign({},t,{plugins:r}),o=$n(e);if({}.NODE_ENV!=="production"){var s=ke(n.content),c=o.length>1;ne(s&&c,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
`,`1) content: element.innerHTML
`,"2) content: () => element.cloneNode(true)"].join(" "))}var f=o.reduce(function(u,l){var p=l&&ti(l,n);return p&&u.push(p),u},[]);return ke(e)?f[0]:f}Ie.defaultProps=U,Ie.setDefaultProps=Jn,Ie.currentInput=Q,Object.assign({},jt,{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)}}),Ie.setDefaultProps({render:lr});const fi="",pi="",li="",di="",vi="",mi="",hi="",gi="",yi="";class ri{constructor(){this.data={}}set(t,r){this.data[t]=r}get(t){return this.data[t]}}const dr={Booster:class{constructor(t){this.options=t}log(t,r){const n=`
display: inline-block;
padding: 4px 6px;
border-radius: 4px;
line-height: 1.5em;
color: #282735;
background: linear-gradient(45deg,
rgba(185, 205, 255, 0.4) 0%,
rgba(201, 182, 255, 0.4) 33%,
rgba(239, 184, 255, 0.4) 66%,
rgba(255, 210, 177, 0.4) 100%);
`,o=[`%c[${this.options.title}] ${t}. Link to documentation ${this.options.documentationLink}`,n];r?(console.group(...o),Array.isArray(r)?console.log(...r):console.log(r),console.groupEnd()):console.log(...o)}validate(t,r,n){if(!t.validate)return!0;if(typeof t.validate=="function"){if(!t.validate(n))return this.log(`Invalid value "${n}" for attribute "${r}"`),!1}else if(!t.validate.includes(n))return this.log(`Invalid value "${n}" for attribute "${r}"`,[`%cPossible values:%c
`+t.validate.map(o=>`• ${o}`).join(`
`),"font-weight: 700;","font-weight: initial;"]),!1;return!0}parse(t){const r=new ri;for(const n in this.options.attributes){const o=this.options.attributes[n],s=t.getAttribute(n);if(!s){r.set(n,o.defaultValue);continue}if(!this.validate(o,n,s))continue;let c=s;o.parse&&(c=o.parse(s)??o.defaultValue),r.set(n,c)}this.options.apply.call(this,t,r)}getElements(){return document.querySelectorAll(`[${this.options.name}]`)}init(){this.getElements().forEach(r=>this.parse(r))}},parse:{stringToBoolean:e=>e!=="false"},validation:{isBoolean:e=>/^(true|false)$/.test(e),isNumber:e=>!isNaN(Number(e))}};var vr=(e=>(e.Perspective="perspective",e.Scale="scale",e.ShiftAway="shift-away",e.ShiftToward="shift-toward",e))(vr||{}),mr=(e=>(e.Rounded="rounded",e.Sharp="sharp",e))(mr||{}),hr=(e=>(e.Bottom="bottom",e.Left="left",e.Right="right",e.Top="top",e))(hr||{}),gr=(e=>(e.Dark="dark",e.Light="light",e.Material="material",e.Translucence="translucence",e))(gr||{}),yr=(e=>(e.Click="click",e.Hover="hover",e))(yr||{});const ni=new dr.Booster({name:"fb-tooltip",attributes:{"fb-tooltip-animation":{defaultValue:"shift-away",validate:Object.values(vr)},"fb-tooltip-arrow":{defaultValue:void 0,validate:Object.values(mr)},"fb-tooltip-message":{defaultValue:""},"fb-tooltip-position":{defaultValue:"top",validate:Object.values(hr)},"fb-tooltip-show-delay":{defaultValue:0,validate:dr.validation.isNumber,parse:Number},"fb-tooltip-theme":{defaultValue:"dark",validate:Object.values(gr)},"fb-tooltip-trigger":{defaultValue:"hover",validate:Object.values(yr)}},apply:(e,t)=>{const r=t.get("fb-tooltip-message");if(!r)return;const n={animation:t.get("fb-tooltip-animation"),content:r,delay:[t.get("fb-tooltip-show-delay"),null],placement:t.get("fb-tooltip-position")};switch(t.get("fb-tooltip-arrow")){case"rounded":n.arrow=Cn;break;case"sharp":n.arrow=!0;break;default:n.arrow=!1}const o=t.get("fb-tooltip-theme");n.theme=o==="dark"?"":o;const s=t.get("fb-too