Socket
Socket
Sign inDemoInstall

tippy.js

Package Overview
Dependencies
1
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0-alpha.0 to 6.0.0

headless/.DS_Store

2

dist/tippy-bundle.umd.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@popperjs/core")):"function"==typeof define&&define.amd?define(["exports","@popperjs/core"],e):e((t=t||self).tippy={},t.Popper)}(this,(function(t,e){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document,r=n?navigator.userAgent:"",i=/MSIE |Trident\//.test(r),o=n&&/iPhone|iPad|iPod/.test(navigator.platform);function a(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function s(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function p(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function u(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function c(t){return[].concat(t)}function f(t,e){-1===t.indexOf(e)&&t.push(e)}function l(t,e){return t.filter((function(t){return t.name===e})).reduce((function(t,e){return Object.assign({},t,{},e,{options:Object.assign({},t.options,{},e.options)})}),{})}function d(t){return t.split("-")[0]}function m(t){return[].slice.call(t)}var v=Object.assign({appendTo:function(){return document.body},aria:"describedby",content:"",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(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),g=Object.keys(v);function h(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name,i=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:i),e}),{});return Object.assign({},t,{},e)}function b(t,e){var n=Object.assign({},e,{},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(h(Object.assign({},v,{plugins:e}))):g).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.interactive&&(n.aria=null),n}var y={passive:!0};function w(){return document.createElement("div")}function x(t){return s(t,"Element")}function T(t){return s(t,"MouseEvent")}function E(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function A(t){return x(t)?[t]:function(t){return s(t,"NodeList")}(t)?m(t):Array.isArray(t)?t:m(document.querySelectorAll(t))}function O(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function C(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function D(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}function L(t){var e=c(t)[0];return e&&e.ownerDocument||document}function k(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var P={isTouch:!1},V=0;function j(){P.isTouch||(P.isTouch=!0,window.performance&&document.addEventListener("mousemove",M))}function M(){var t=performance.now();t-V<20&&(P.isTouch=!1,document.removeEventListener("mousemove",M)),V=t}function R(){var t=document.activeElement;if(E(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function S(t,e){t.innerHTML=e}function I(t){var e=w();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",x(t)?e.appendChild(t):S(e,t)),e}function B(t,e){var n=e.props,r=e.reference,i="function"==typeof n.content?n.content(r):n.content;x(i)?(S(t,""),t.appendChild(i)):n.allowHTML?S(t,i):t.textContent=i}function N(t){var e=t.firstElementChild,n=m(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")}))||null,backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))||null}}function H(t){var e=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=w();function i(n,r){var i=N(e),o=i.box,a=i.content,s=i.arrow;e.style.zIndex=""+r.zIndex,r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content!==r.content&&B(a,t),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(I(r.arrow))):o.appendChild(I(r.arrow)):s&&o.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),B(r,t),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,update:i}}function _(t){return t.$$tippy}H.$$tippy=!0;var z=1,U=[],q=[];function F(t,n){var r,s,u,g,x,E,A,V,j=b(t,Object.assign({},v,{},h(n))),M=!1,R=!1,S=!1,I=[],B=p(ht,j.interactiveDebounce),H=L(j.triggerTarget||t),F=z++,W=(V=j.plugins).filter((function(t,e){return V.indexOf(t)===e})),X={id:F,reference:t,popper:w(),popperInstance:null,props:j,state:{currentPlacement:null,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:W,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(s),cancelAnimationFrame(u)},setProps:function(e){if(X.state.isDestroyed)return;ot("onBeforeUpdate",[X,e]),vt();var n=X.props,r=b(t,Object.assign({},X.props,{},e,{ignoreAttributes:!0}));X.props=r,mt(),n.interactiveDebounce!==r.interactiveDebounce&&(pt(),B=p(ht,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?c(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");st(),rt(),J&&J(n,r);X.popperInstance&&xt();ot("onAfterUpdate",[X,e])},setContent:function(t){X.setProps({content:t})},show:function(){var t=X.state.isVisible,e=X.state.isDestroyed,n=!X.state.isEnabled,r=P.isTouch&&!X.props.touch,i=a(X.props.duration,0,v.duration);if(t||e||n||r)return;if(tt().hasAttribute("disabled"))return;if(ot("onShow",[X],!1),!1===X.props.onShow(X))return;X.state.isVisible=!0,$.style.visibility="visible",rt(),ct(),$.style.transition="none",E=function(){if(X.state.isVisible&&!S){if(S=!0,$.offsetHeight,$.style.transition=X.props.moveTransition,_(X.props.render)){var t=et(),e=t.box,n=t.content;X.props.animation&&(O([e,n],i),C([e,n],"visible"))}at(),st(),f(q,X),it(!0),X.state.isMounted=!0,ot("onMount",[X]),X.props.animation&&_(X.props.render)&&function(t,e){lt(t,e)}(i,(function(){X.state.isShown=!0,ot("onShown",[X])}))}},function(){var t,e=X.props.appendTo,n=tt();X.props.interactive&&e===v.appendTo||"parent"===e?t=n.parentNode:(i=[n],t="function"==typeof(r=e)?r.apply(void 0,i):r);var r,i;t.contains($)||t.appendChild($);xt()}()},hide:function(){var t=!X.state.isVisible,e=X.state.isDestroyed,n=!X.state.isEnabled,r=a(X.props.duration,1,v.duration);if(t||e||n)return;if(ot("onHide",[X],!1),!1===X.props.onHide(X))return;if(X.state.isVisible=!1,X.state.isShown=!1,$.style.visibility="hidden",S=!1,pt(),ft(),rt(),_(X.props.render)){var i=et(),o=i.box,s=i.content;X.props.animation&&(O([o,s],r),C([o,s],"hidden"))}at(),st(),X.props.animation&&_(X.props.render)&&function(t,e){lt(t,(function(){!X.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&e()}))}(r,Ct)},enable:function(){X.state.isEnabled=!0},disable:function(){X.hide(),X.state.isEnabled=!1},unmount:Ct,destroy:function(){if(X.state.isDestroyed)return;X.clearDelayTimeouts(),X.unmount(),vt(),delete t._tippy,X.state.isDestroyed=!0,ot("onDestroy",[X])}};if(!j.render)return X;var Y=j.render(X),$=Y.popper,J=Y.update;$.setAttribute("data-tippy-root",""),$.id="tippy-"+X.id,X.popper=$,t._tippy=X,$._tippy=X;var G=W.map((function(t){return t.fn(X)})),K=t.hasAttribute("aria-expanded");return mt(),st(),ot("onCreate",[X]),j.showOnCreate&&At(),$.addEventListener("mouseenter",(function(){X.props.interactive&&X.state.isVisible&&X.clearDelayTimeouts()})),$.addEventListener("mouseleave",(function(){X.props.interactive&&X.props.trigger.indexOf("mouseenter")>=0&&H.addEventListener("mousemove",B)})),X;function Q(){var t=X.props.touch;return Array.isArray(t)?t:[t,0]}function Z(){return"hold"===Q()[0]}function tt(){return A||t}function et(){return N($)}function nt(t){return X.state.isMounted&&!X.state.isVisible||P.isTouch||g&&"focus"===g.type?0:a(X.props.delay,t?0:1,v.delay)}function rt(){$.style.pointerEvents=X.props.interactive&&X.state.isVisible?"":"none"}function it(t){var e=t&&o&&P.isTouch;H.body.classList[e?"add":"remove"]("tippy-iOS")}function ot(t,e,n){var r;(void 0===n&&(n=!0),G.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=X.props)[t].apply(r,e)}function at(){var e=X.props.aria;if(e){var n="aria-"+e,r=$.id;c(X.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(X.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function st(){K||c(X.props.triggerTarget||t).forEach((function(t){X.props.interactive?t.setAttribute("aria-expanded",X.state.isVisible&&t===tt()?"true":"false"):t.removeAttribute("aria-expanded")}))}function pt(){H.body.removeEventListener("mouseleave",Ot),H.removeEventListener("mousemove",B),U=U.filter((function(t){return t!==B}))}function ut(t){if(!X.props.interactive||!$.contains(t.target)){if(tt().contains(t.target)){if(P.isTouch)return;if(X.state.isVisible&&X.props.trigger.indexOf("click")>=0)return}!0===X.props.hideOnClick&&(M=!1,X.clearDelayTimeouts(),X.hide(),R=!0,setTimeout((function(){R=!1})),X.state.isMounted||ft())}}function ct(){H.addEventListener("mousedown",ut,!0)}function ft(){H.removeEventListener("mousedown",ut,!0)}function lt(t,e){var n=et().box;function r(t){t.target===n&&(k(n,"remove",r),e())}if(0===t)return e();k(n,"remove",x),k(n,"add",r),x=r}function dt(e,n,r){void 0===r&&(r=!1),c(X.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),I.push({node:t,eventType:e,handler:n,options:r})}))}function mt(){var t;Z()&&(dt("touchstart",gt,y),dt("touchend",bt,y)),(t=X.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(dt(t,gt),t){case"mouseenter":dt("mouseleave",bt);break;case"focus":dt(i?"focusout":"blur",yt);break;case"focusin":dt("focusout",yt)}}))}function vt(){I.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),I=[]}function gt(t){var e=!1;if(X.state.isEnabled&&!wt(t)&&!R){if(g=t,A=t.currentTarget,st(),!X.state.isVisible&&T(t)&&U.forEach((function(e){return e(t)})),"click"===t.type&&(X.props.trigger.indexOf("mouseenter")<0||M)&&!1!==X.props.hideOnClick&&X.state.isVisible)e=!0;else{var n=Q(),i=n[0],o=n[1];P.isTouch&&"hold"===i&&o?r=setTimeout((function(){At(t)}),o):At(t)}"click"===t.type&&(M=!e),e&&Ot(t)}}function ht(e){D(e.target,(function(e){return e===t||e===$}))||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.basePlacement,i=t.popperRect,o=t.props,a=t.offsetData,s=o.interactiveBorder,p="bottom"===e?a.top.y:0,u="top"===e?a.bottom.y:0,c="right"===e?a.left.x:0,f="left"===e?a.right.x:0,l=i.top-r+p>s,d=r-i.bottom-u>s,m=i.left-n+c>s,v=n-i.right-f>s;return l||d||m||v}))}(Et().concat($).map((function(t){var e=t._tippy;return e.popperInstance?{popperRect:t.getBoundingClientRect(),basePlacement:d(e.state.currentPlacement),offsetData:e.popperInstance.state.modifiersData.offset,props:j}:null})).filter(Boolean),e)&&(pt(),Ot(e))}function bt(t){if(!(wt(t)||X.props.trigger.indexOf("click")>=0&&M))return X.props.interactive?(H.body.addEventListener("mouseleave",Ot),H.addEventListener("mousemove",B),void f(U,B)):void Ot(t)}function yt(t){X.props.trigger.indexOf("focusin")<0&&t.target!==tt()||X.props.interactive&&t.relatedTarget&&$.contains(t.relatedTarget)||Ot(t)}function wt(t){var e="ontouchstart"in window,n=t.type.indexOf("touch")>=0,r=Z();return e&&P.isTouch&&r&&!n||P.isTouch&&!r&&n}function xt(){Tt();var n=X.props,r=n.popperOptions,i=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,p=_(X.props.render)?N($).arrow:null,u=a?{getBoundingClientRect:a}:t,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;_(X.props.render)&&(delete e.attributes.popper["data-popper-placement"],et().box.setAttribute("data-placement",e.placement)),X.state.currentPlacement=e.placement}},f={name:"arrow",enabled:!!p,options:{element:p,padding:3}},d=[].concat((null==r?void 0:r.modifiers)||[],[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"computeStyles",options:{adaptive:!s}},c]).concat(_(X.props.render)?[f]:[]);X.popperInstance=e.createPopper(u,$,Object.assign({},r,{placement:i,onFirstUpdate:E,modifiers:[l(d,"offset"),l(d,"arrow"),l(d,"preventOverflow"),l(d,"flip"),l(d,"computeStyles")].concat(d)}))}function Tt(){X.popperInstance&&(X.popperInstance.destroy(),X.popperInstance=null)}function Et(){return m($.querySelectorAll("[data-tippy-root]"))}function At(t){X.clearDelayTimeouts(),t&&ot("onTrigger",[X,t]),ct();var e=nt(!0);e?r=setTimeout((function(){X.show()}),e):X.show()}function Ot(t){if(X.clearDelayTimeouts(),ot("onUntrigger",[X,t]),X.state.isVisible){if(!(X.props.trigger.indexOf("mouseenter")>=0&&X.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&M)){var e=nt(!1);e?s=setTimeout((function(){X.state.isVisible&&X.hide()}),e):u=requestAnimationFrame((function(){X.hide()}))}}else ft()}function Ct(){Tt(),Et().forEach((function(t){t._tippy.unmount()})),$.parentNode&&$.parentNode.removeChild($),0===(q=q.filter((function(t){return t!==X}))).length&&it(!1),X.state.isMounted=!1,ot("onHidden",[X])}}function W(t,e){void 0===e&&(e={});var n=v.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",j,Object.assign({},y,{capture:!0})),window.addEventListener("blur",R);var r=Object.assign({},e,{plugins:n}),i=A(t).reduce((function(t,e){var n=e&&F(e,r);return n&&t.push(n),t}),[]);return x(t)?i[0]:i}W.defaultProps=v,W.setDefaultProps=function(t){Object.keys(t).forEach((function(e){v[e]=t[e]}))},W.currentInput=P;var X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(t){var e=N(t.popper),n=e.box,r=e.content,i=t.props.animateFill?function(){var t=w();return t.className="tippy-backdrop",C([t],"hidden"),t}():null;return{onCreate:function(){i&&(n.insertBefore(i,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var t=n.style.transitionDuration,e=Number(t.replace("ms",""));r.style.transitionDelay=Math.round(e/10)+"ms",i.style.transitionDuration=t,C([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&C([i],"hidden")}}}};var $={name:"followCursor",defaultValue:!1,fn:function(t){var e,n=t.reference,r=L(t.props.triggerTarget||n),i=null;function o(){return"manual"===t.props.trigger.trim()}function a(){var e=!!o()||null!==i&&!(0===i.clientX&&0===i.clientY);return t.props.followCursor&&e}function s(){t.setProps({getReferenceClientRect:null})}function p(){a()?r.addEventListener("mousemove",c):s()}function u(){r.removeEventListener("mousemove",c)}function c(r){var i=e=r,o=i.clientX,a=i.clientY,s=D(r.target,(function(t){return t===n})),p=t.props.followCursor;!s&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=n.getBoundingClientRect();return{width:0,height:0,top:"horizontal"===p?t.top:a,bottom:"horizontal"===p?t.bottom:a,left:"vertical"===p?t.left:o,right:"vertical"===p?t.right:o}}}),(P.isTouch||"initial"===t.props.followCursor&&t.state.isVisible)&&u()}return{onMount:function(){a()&&c(e)},onShow:function(){o()&&(e=i={clientX:0,clientY:0},p())},onTrigger:function(t,n){i||(T(n)&&(i={clientX:n.clientX,clientY:n.clientY},e=n),p())},onUntrigger:function(){t.state.isVisible||(u(),i=null)},onHidden:function(){u(),s(),i=null}}}},J={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;t.props.inlinePositioning&&(e!==i.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===t,a=r.top,s=i.bottom,p=o?r.left:i.left,u=o?r.right:i.right;return{top:a,bottom:s,left:p,right:u,width:u-p,height:s-a};case"left":case"right":var c=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),l=n.filter((function(e){return"left"===t?e.left===c:e.right===f})),d=l[0].top,m=l[l.length-1].bottom;return{top:d,bottom:m,left:c,right:f,width:f-c,height:m-d};default:return e}}(d(t),n.getBoundingClientRect(),m(n.getClientRects()))}(i.placement)}}),e=i.placement)}};return{onCreate:function(){var e;t.setProps({popperOptions:{modifiers:[].concat((null==(e=t.popperInstance)?void 0:e.state.options.modifiers)||[],[r])}})}}}};var G={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var i=null,o=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=r("popper")?n.getBoundingClientRect():null;(s&&K(i,s)||p&&K(o,p))&&t.popperInstance&&t.popperInstance.update(),i=s,o=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function K(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}n&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,r=document.querySelector("head>style,head>link");r?n.insertBefore(e,r):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}[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;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-width:8px 8px 0;border-top-color:#333;bottom:-7px;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;border-width:0 8px 8px;border-bottom-color:#333;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:#333;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:#333;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow,.tippy-arrow:before{position:absolute}.tippy-arrow{pointer-events:none;width:16px;height:16px}.tippy-arrow:before{content:"";border-color:transparent;border-style:solid;pointer-events:auto}.tippy-content{padding:5px 9px}'),W.setDefaultProps({plugins:[Y,$,J,G],render:H}),W.createSingleton=function(t,e){var n;void 0===e&&(e={}),t.forEach((function(t){t.disable()}));var r=t.map((function(t){return t.reference})),i={fn:function(){return{onDestroy:function(){t.forEach((function(t){t.enable()}))},onTrigger:function(i,o){var a=o.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var p=(e.overrides||[]).concat("content").reduce((function(e,n){return e[n]=t[s].props[n],e}),{});i.setProps(Object.assign({},p,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return W(w(),Object.assign({},u(e,["overrides"]),{plugins:[i].concat(e.plugins||[]),triggerTarget:r}))},W.delegate=function(t,e){var n=[],r=[],i=e.target,o=u(e,["target"]),a=Object.assign({},o,{trigger:"manual"}),s=Object.assign({},o,{showOnCreate:!0}),p=W(t,a);function f(t){if(t.target){var n=t.target.closest(i);if(n)if(!((n.getAttribute("data-tippy-trigger")||e.trigger||v.trigger).indexOf(X[t.type])<0||n._tippy)){var o=W(n,s);o&&(r=r.concat(o))}}}function l(t,e,r,i){void 0===i&&(i=!1),t.addEventListener(e,r,i),n.push({node:t,eventType:e,handler:r,options:i})}return c(p).forEach((function(t){var e=t.destroy;t.destroy=function(t){void 0===t&&(t=!0),t&&r.forEach((function(t){t.destroy()})),r=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),n=[],e()},function(t){var e=t.reference;l(e,"mouseover",f),l(e,"focusin",f),l(e,"click",f)}(t)})),p},W.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,r=e.duration;q.forEach((function(t){var e=!1;if(n&&(e=E(n)?t.reference===n:t.popper===n.popper),!e){var i=t.props.duration;t.setProps({duration:r}),t.hide(),t.setProps({duration:i})}}))},W.roundArrow='<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>',t.default=W}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document,n=e?navigator.userAgent:"",r=/MSIE |Trident\//.test(n),i=e&&/iPhone|iPad|iPod/.test(navigator.platform),o={passive:!0};function a(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function s(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function p(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function u(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function c(t){return[].concat(t)}function f(t,e){-1===t.indexOf(e)&&t.push(e)}function l(t){return t.split("-")[0]}function d(t){return[].slice.call(t)}function v(){return document.createElement("div")}function m(t){return s(t,"Element")}function g(t){return s(t,"MouseEvent")}function h(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function b(t){return m(t)?[t]:function(t){return s(t,"NodeList")}(t)?d(t):Array.isArray(t)?t:d(document.querySelectorAll(t))}function y(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function x(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function w(t){var e=c(t)[0];return e&&e.ownerDocument||document}function T(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var E={isTouch:!1},A=0;function C(){E.isTouch||(E.isTouch=!0,window.performance&&document.addEventListener("mousemove",O))}function O(){var t=performance.now();t-A<20&&(E.isTouch=!1,document.removeEventListener("mousemove",O)),A=t}function D(){var t=document.activeElement;if(h(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var L=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",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(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(L);function V(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name,i=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:i),e}),{});return Object.assign({},t,{},e)}function j(t,e){var n=Object.assign({},e,{},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(V(Object.assign({},L,{plugins:e}))):k).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},L.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function M(t,e){t.innerHTML=e}function R(t){var e=v();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",m(t)?e.appendChild(t):M(e,t)),e}function S(t,e){var n=e.props,r=e.reference,i="function"==typeof n.content?n.content(r):n.content;m(i)?(M(t,""),t.appendChild(i)):n.allowHTML?M(t,i):t.textContent=i}function P(t){var e=t.firstElementChild,n=d(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function I(t){var e=v(),n=v();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=v();function i(n,r){var i=P(e),o=i.box,a=i.content,s=i.arrow;e.style.zIndex=""+r.zIndex,r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content!==r.content&&S(a,t),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(R(r.arrow))):o.appendChild(R(r.arrow)):s&&o.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),S(r,t),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}function B(t){return t.$$tippy}I.$$tippy=!0;var N=1,H=[],U=[];function z(e,n){var s,u,m,h,b,A,C,O,D=j(e,Object.assign({},L,{},V(n))),k=!1,M=!1,R=!1,S=[],I=p(mt,D.interactiveDebounce),z=w(D.triggerTarget||e),_=N++,X=(O=D.plugins).filter((function(t,e){return O.indexOf(t)===e})),Y={id:_,reference:e,popper:v(),popperInstance:null,props:D,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(s),clearTimeout(u),cancelAnimationFrame(m)},setProps:function(t){if(Y.state.isDestroyed)return;rt("onBeforeUpdate",[Y,t]),dt();var n=Y.props,r=j(e,Object.assign({},Y.props,{},t,{ignoreAttributes:!0}));Y.props=r,lt(),n.interactiveDebounce!==r.interactiveDebounce&&(at(),I=p(mt,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?c(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");ot(),et(),W&&W(n,r);Y.popperInstance&&yt();rt("onAfterUpdate",[Y,t])},setContent:function(t){Y.setProps({content:t})},show:function(){var t=Y.state.isVisible,e=Y.state.isDestroyed,n=!Y.state.isEnabled,r=E.isTouch&&!Y.props.touch,i=a(Y.props.duration,0,L.duration);if(t||e||n||r)return;if(Q().hasAttribute("disabled"))return;if(rt("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,F.style.visibility="visible",et(),pt(),Y.state.isMounted||(F.style.transition="none");A=function(){if(Y.state.isVisible&&!R){if(R=!0,F.offsetHeight,F.style.transition=Y.props.moveTransition,B(Y.props.render)){var t=Z(),e=t.box,n=t.content;Y.props.animation&&(y([e,n],i),x([e,n],"visible"))}it(),ot(),f(U,Y),nt(!0),Y.state.isMounted=!0,rt("onMount",[Y]),Y.props.animation&&B(Y.props.render)&&function(t,e){ct(t,e)}(i,(function(){Y.state.isShown=!0,rt("onShown",[Y])}))}},function(){var t,e=Y.props.appendTo,n=Q();Y.props.interactive&&e===L.appendTo||"parent"===e?t=n.parentNode:(i=[n],t="function"==typeof(r=e)?r.apply(void 0,i):r);var r,i;t.contains(F)||t.appendChild(F);yt()}()},hide:function(){var t=!Y.state.isVisible,e=Y.state.isDestroyed,n=!Y.state.isEnabled,r=a(Y.props.duration,1,L.duration);if(t||e||n)return;if(rt("onHide",[Y],!1),!1===Y.props.onHide(Y))return;if(Y.state.isVisible=!1,Y.state.isShown=!1,F.style.visibility="hidden",R=!1,at(),ut(),et(),B(Y.props.render)){var i=Z(),o=i.box,s=i.content;Y.props.animation&&(y([o,s],r),x([o,s],"hidden"))}it(),ot(),Y.props.animation?B(Y.props.render)&&function(t,e){ct(t,(function(){!Y.state.isVisible&&F.parentNode&&F.parentNode.contains(F)&&e()}))}(r,Y.unmount):Y.unmount()},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){xt(),wt().forEach((function(t){var e=t._tippy;e.hide(),e.unmount()})),F.parentNode&&F.parentNode.removeChild(F);0===(U=U.filter((function(t){return t!==Y}))).length&&nt(!1);Y.state.isMounted=!1,rt("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.hide(),Y.unmount(),dt(),delete e._tippy,Y.state.isDestroyed=!0,rt("onDestroy",[Y])}};if(!D.render)return Y;var q=D.render(Y),F=q.popper,W=q.onUpdate;F.setAttribute("data-tippy-root",""),F.id="tippy-"+Y.id,Y.popper=F,e._tippy=Y,F._tippy=Y;var $=X.map((function(t){return t.fn(Y)})),J=e.hasAttribute("aria-expanded");return lt(),ot(),rt("onCreate",[Y]),D.showOnCreate&&Tt(),F.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),F.addEventListener("mouseleave",(function(t){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&(z.addEventListener("mousemove",I),I(t))})),Y;function G(){var t=Y.props.touch;return Array.isArray(t)?t:[t,0]}function K(){return"hold"===G()[0]}function Q(){return C||e}function Z(){return P(F)}function tt(t){return Y.state.isMounted&&!Y.state.isVisible||E.isTouch||h&&"focus"===h.type?0:a(Y.props.delay,t?0:1,L.delay)}function et(){F.style.pointerEvents=Y.props.interactive&&Y.state.isVisible?"":"none"}function nt(t){var e=t&&i&&E.isTouch;z.body.classList[e?"add":"remove"]("tippy-iOS")}function rt(t,e,n){var r;(void 0===n&&(n=!0),$.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=Y.props)[t].apply(r,e)}function it(){var t=Y.props.aria;if(t.content){var n="aria-"+t.content,r=F.id;c(Y.props.triggerTarget||e).forEach((function(t){var e=t.getAttribute(n);if(Y.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function ot(){!J&&Y.props.aria.expanded&&c(Y.props.triggerTarget||e).forEach((function(t){Y.props.interactive?t.setAttribute("aria-expanded",Y.state.isVisible&&t===Q()?"true":"false"):t.removeAttribute("aria-expanded")}))}function at(){z.body.removeEventListener("mouseleave",Et),z.removeEventListener("mousemove",I),H=H.filter((function(t){return t!==I}))}function st(t){if(!Y.props.interactive||!F.contains(t.target)){if(Q().contains(t.target)){if(E.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}!0===Y.props.hideOnClick&&(k=!1,Y.clearDelayTimeouts(),Y.hide(),M=!0,setTimeout((function(){M=!1})),Y.state.isMounted||ut())}}function pt(){z.addEventListener("mousedown",st,!0)}function ut(){z.removeEventListener("mousedown",st,!0)}function ct(t,e){var n=Z().box;function r(t){t.target===n&&(T(n,"remove",r),e())}if(0===t)return e();T(n,"remove",b),T(n,"add",r),b=r}function ft(t,n,r){void 0===r&&(r=!1),c(Y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),S.push({node:e,eventType:t,handler:n,options:r})}))}function lt(){var t;K()&&(ft("touchstart",vt,o),ft("touchend",gt,o)),(t=Y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(ft(t,vt),t){case"mouseenter":ft("mouseleave",gt);break;case"focus":ft(r?"focusout":"blur",ht);break;case"focusin":ft("focusout",ht)}}))}function dt(){S.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),S=[]}function vt(t){var e=!1;if(Y.state.isEnabled&&!bt(t)&&!M){if(h=t,C=t.currentTarget,ot(),!Y.state.isVisible&&g(t)&&H.forEach((function(e){return e(t)})),"click"===t.type&&(Y.props.trigger.indexOf("mouseenter")<0||k)&&!1!==Y.props.hideOnClick&&Y.state.isVisible)e=!0;else{var n=G(),r=n[0],i=n[1];E.isTouch&&"hold"===r&&i?s=setTimeout((function(){Tt(t)}),i):Tt(t)}"click"===t.type&&(k=!e),e&&Et(t)}}function mt(t){var n=t.target,r=e.contains(n)||F.contains(n);"mousemove"===t.type&&r||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,a=l(i.placement),s=i.modifiersData.offset;if(!s)return!0;var p="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=e.top-r+p>o,v=r-e.bottom-u>o,m=e.left-n+c>o,g=n-e.right-f>o;return d||v||m||g}))}(wt().concat(F).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:D}:null})).filter(Boolean),t)&&(at(),Et(t))}function gt(t){if(!(bt(t)||Y.props.trigger.indexOf("click")>=0&&k))return Y.props.interactive?(z.body.addEventListener("mouseleave",Et),z.addEventListener("mousemove",I),f(H,I),void I(t)):void Et(t)}function ht(t){Y.props.trigger.indexOf("focusin")<0&&t.target!==Q()||Y.props.interactive&&t.relatedTarget&&F.contains(t.relatedTarget)||Et(t)}function bt(t){return!!E.isTouch&&K()!==t.type.indexOf("touch")>=0}function yt(){xt();var n=Y.props,r=n.popperOptions,i=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,p=B(Y.props.render)?P(F).arrow:null,u=a?{getBoundingClientRect:a}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(B(Y.props.render)){var n=Z().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f={name:"arrow",enabled:!!p,options:{element:p,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(B(Y.props.render)?[f]:[],(null==r?void 0:r.modifiers)||[],[c]);Y.popperInstance=t.createPopper(u,F,Object.assign({},r,{placement:i,onFirstUpdate:A,modifiers:l}))}function xt(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function wt(){return d(F.querySelectorAll("[data-tippy-root]"))}function Tt(t){Y.clearDelayTimeouts(),t&&rt("onTrigger",[Y,t]),pt();var e=tt(!0);e?s=setTimeout((function(){Y.show()}),e):Y.show()}function Et(t){if(Y.clearDelayTimeouts(),rt("onUntrigger",[Y,t]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&k)){var e=tt(!1);e?u=setTimeout((function(){Y.state.isVisible&&Y.hide()}),e):m=requestAnimationFrame((function(){Y.hide()}))}}else ut()}}function _(t,e){void 0===e&&(e={});var n=L.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",C,Object.assign({},o,{capture:!0})),window.addEventListener("blur",D);var r=Object.assign({},e,{plugins:n}),i=b(t).reduce((function(t,e){var n=e&&z(e,r);return n&&t.push(n),t}),[]);return m(t)?i[0]:i}_.defaultProps=L,_.setDefaultProps=function(t){Object.keys(t).forEach((function(e){L[e]=t[e]}))},_.currentInput=E;var X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(t){if(!B(t.props.render))return{};var e=P(t.popper),n=e.box,r=e.content,i=t.props.animateFill?function(){var t=v();return t.className="tippy-backdrop",x([t],"hidden"),t}():null;return{onCreate:function(){i&&(n.insertBefore(i,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var t=n.style.transitionDuration,e=Number(t.replace("ms",""));r.style.transitionDelay=Math.round(e/10)+"ms",i.style.transitionDuration=t,x([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&x([i],"hidden")}}}};var q={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=w(t.props.triggerTarget||e),r=null;function i(){return"manual"===t.props.trigger.trim()}function o(){var e=!!i()||null!==r&&!(0===r.clientX&&0===r.clientY);return t.props.followCursor&&e}function a(e){e&&t.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",u):a(t.props.followCursor)}function p(){n.removeEventListener("mousemove",u)}function u(n){r={clientX:n.clientX,clientY:n.clientY};var i=!n.target||e.contains(n.target),o=t.props.followCursor,a=n.clientX,s=n.clientY,u=e.getBoundingClientRect(),c=a-u.left,f=s-u.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=a,r=s;"initial"===o&&(n=t.left+c,r=t.top+f);var i="horizontal"===o?t.top:r,p="vertical"===o?t.right:n,u="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:p-l,height:u-i,top:i,right:p,bottom:u,left:l}}}),(E.isTouch||"initial"===t.props.followCursor&&t.state.isVisible)&&p()}return{onAfterUpdate:function(t,e){var n=e.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&u(r)},onShow:function(){i()&&(r={clientX:0,clientY:0},s())},onTrigger:function(t,e){r||(g(e)&&(r={clientX:e.clientX,clientY:e.clientY}),s())},onUntrigger:function(){t.state.isVisible||(p(),r=null)},onHidden:function(){p(),r=null}}}},F={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;t.props.inlinePositioning&&(e!==i.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===t,a=r.top,s=i.bottom,p=o?r.left:i.left,u=o?r.right:i.right;return{top:a,bottom:s,left:p,right:u,width:u-p,height:s-a};case"left":case"right":var c=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),l=n.filter((function(e){return"left"===t?e.left===c:e.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:c,right:f,width:f-c,height:v-d};default:return e}}(l(t),n.getBoundingClientRect(),d(n.getClientRects()))}(i.placement)}}),e=i.placement)}};return{onCreate:function(){var e;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[r])})})}}}};var W={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var i=null,o=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=r("popper")?n.getBoundingClientRect():null;(s&&$(i,s)||p&&$(o,p))&&t.popperInstance&&t.popperInstance.update(),i=s,o=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function $(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return e&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,r=document.querySelector("head>style,head>link");r?n.insertBefore(e,r):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}[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;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-width:8px 8px 0;border-top-color:#333;bottom:-7px;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;border-width:0 8px 8px;border-bottom-color:#333;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:#333;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:#333;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}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),_.setDefaultProps({plugins:[Y,q,F,W],render:I}),_.createSingleton=function(t,e){var n;void 0===e&&(e={}),t.forEach((function(t){t.disable()}));var r=t.map((function(t){return t.reference})),i={fn:function(){return{onDestroy:function(){t.forEach((function(t){t.enable()}))},onTrigger:function(i,o){var a=o.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var p=(e.overrides||[]).concat("content").reduce((function(e,n){return e[n]=t[s].props[n],e}),{});i.setProps(Object.assign({},p,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return _(v(),Object.assign({},u(e,["overrides"]),{plugins:[i].concat(e.plugins||[]),triggerTarget:r}))},_.delegate=function(t,e){var n=[],r=[],i=e.target,o=u(e,["target"]),a=Object.assign({},o,{trigger:"manual"}),s=Object.assign({},o,{showOnCreate:!0}),p=_(t,a);function f(t){if(t.target){var n=t.target.closest(i);if(n)if(!((n.getAttribute("data-tippy-trigger")||e.trigger||L.trigger).indexOf(X[t.type])<0||n._tippy)){var o=_(n,s);o&&(r=r.concat(o))}}}function l(t,e,r,i){void 0===i&&(i=!1),t.addEventListener(e,r,i),n.push({node:t,eventType:e,handler:r,options:i})}return c(p).forEach((function(t){var e=t.destroy;t.destroy=function(t){void 0===t&&(t=!0),t&&r.forEach((function(t){t.destroy()})),r=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),n=[],e()},function(t){var e=t.reference;l(e,"mouseover",f),l(e,"focusin",f),l(e,"click",f)}(t)})),p},_.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,r=e.duration;U.forEach((function(t){var e=!1;if(n&&(e=h(n)?t.reference===n:t.popper===n.popper),!e){var i=t.props.duration;t.setProps({duration:r}),t.hide(),t.setProps({duration:i})}}))},_.roundArrow='<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>',_}));
//# sourceMappingURL=tippy-bundle.umd.min.js.map
/**!
* tippy.js v6.0.0-alpha.0
* tippy.js v6.0.0
* (c) 2017-2020 atomiks

@@ -8,2 +8,13 @@ * MIT License

var PASSIVE = {
passive: true
};
var ROUND_ARROW = '<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>';
var IOS_CLASS = "tippy-iOS";
var BOX_CLASS = "tippy-box";
var CONTENT_CLASS = "tippy-content";
var BACKDROP_CLASS = "tippy-backdrop";
var ARROW_CLASS = "tippy-arrow";
var SVG_ARROW_CLASS = "tippy-svg-arrow";
function hasOwnProperty(obj, key) {

@@ -64,11 +75,2 @@ return {}.hasOwnProperty.call(obj, key);

}
function mergeModifier(modifiers, name) {
return modifiers.filter(function (modifier) {
return modifier.name === name;
}).reduce(function (acc, modifier) {
return Object.assign({}, acc, {}, modifier, {
options: Object.assign({}, acc.options, {}, modifier.options)
});
}, {});
}
function getBasePlacement(placement) {

@@ -81,2 +83,155 @@ return placement.split('-')[0];

function div() {
return document.createElement('div');
}
function isElement(value) {
return isType(value, 'Element');
}
function isNodeList(value) {
return isType(value, 'NodeList');
}
function isMouseEvent(value) {
return isType(value, 'MouseEvent');
}
function isReferenceElement(value) {
return !!(value && value._tippy && value._tippy.reference === value);
}
function getArrayOfElements(value) {
if (isElement(value)) {
return [value];
}
if (isNodeList(value)) {
return arrayFrom(value);
}
if (Array.isArray(value)) {
return value;
}
return arrayFrom(document.querySelectorAll(value));
}
function setTransitionDuration(els, value) {
els.forEach(function (el) {
if (el) {
el.style.transitionDuration = value + "ms";
}
});
}
function setVisibilityState(els, state) {
els.forEach(function (el) {
if (el) {
el.setAttribute('data-state', state);
}
});
}
function getOwnerDocument(elementOrElements) {
var _normalizeToArray = normalizeToArray(elementOrElements),
element = _normalizeToArray[0];
return element ? element.ownerDocument || document : document;
}
function isCursorOutsideInteractiveBorder(popperTreeData, event) {
var clientX = event.clientX,
clientY = event.clientY;
return popperTreeData.every(function (_ref) {
var popperRect = _ref.popperRect,
popperState = _ref.popperState,
props = _ref.props;
var interactiveBorder = props.interactiveBorder;
var basePlacement = getBasePlacement(popperState.placement);
var offsetData = popperState.modifiersData.offset;
if (!offsetData) {
return true;
}
var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
});
}
function updateTransitionEndListener(box, action, listener) {
var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
// `webkitTransitionEnd`...
['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
box[method](event, listener);
});
}
var currentInput = {
isTouch: false
};
var lastMouseMoveTime = 0;
/**
* When a `touchstart` event is fired, it's assumed the user is using touch
* input. We'll bind a `mousemove` event listener to listen for mouse input in
* the future. This way, the `isTouch` property is fully dynamic and will handle
* hybrid devices that use a mix of touch + mouse input.
*/
function onDocumentTouchStart() {
if (currentInput.isTouch) {
return;
}
currentInput.isTouch = true;
if (window.performance) {
document.addEventListener('mousemove', onDocumentMouseMove);
}
}
/**
* When two `mousemove` event are fired consecutively within 20ms, it's assumed
* the user is using mouse input again. `mousemove` can fire on touch devices as
* well, but very rarely that quickly.
*/
function onDocumentMouseMove() {
var now = performance.now();
if (now - lastMouseMoveTime < 20) {
currentInput.isTouch = false;
document.removeEventListener('mousemove', onDocumentMouseMove);
}
lastMouseMoveTime = now;
}
/**
* When an element is in focus and has a tippy, leaving the tab/window and
* returning causes it to show again. For mouse users this is unexpected, but
* for keyboard use it makes sense.
* TODO: find a better technique to solve this problem
*/
function onWindowBlur() {
var activeElement = document.activeElement;
if (isReferenceElement(activeElement)) {
var instance = activeElement._tippy;
if (activeElement.blur && !instance.state.isVisible) {
activeElement.blur();
}
}
}
function bindGlobalEventListeners() {
document.addEventListener('touchstart', onDocumentTouchStart, Object.assign({}, PASSIVE, {
capture: true
}));
window.addEventListener('blur', onWindowBlur);
}
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
var ua = isBrowser ? navigator.userAgent : '';
var isIE = /MSIE |Trident\//.test(ua);
var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform);
function createMemoryLeakWarning(method) {

@@ -159,3 +314,6 @@ var txt = method === 'destroy' ? 'n already-' : ' ';

},
aria: 'describedby',
aria: {
content: 'auto',
expanded: 'auto'
},
content: '',

@@ -245,7 +403,7 @@ delay: 0,

var out = Object.assign({}, props, {}, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
if (out.interactive) {
out.aria = null;
}
out.aria = Object.assign({}, defaultProps.aria, {}, out.aria);
out.aria = {
expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
};
return out;

@@ -273,175 +431,6 @@ }

warnWhen(didPassUnknownProp, ["`" + prop + "`", "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.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/plugins/'].join(' '));
warnWhen(didPassUnknownProp, ["`" + prop + "`", "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.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
});
}
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
var ua = isBrowser ? navigator.userAgent : '';
var isIE = /MSIE |Trident\//.test(ua);
var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform);
var PASSIVE = {
passive: true
};
var ROUND_ARROW = '<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>';
var IOS_CLASS = "tippy-iOS";
var BOX_CLASS = "tippy-box";
var CONTENT_CLASS = "tippy-content";
var BACKDROP_CLASS = "tippy-backdrop";
var ARROW_CLASS = "tippy-arrow";
var SVG_ARROW_CLASS = "tippy-svg-arrow";
function div() {
return document.createElement('div');
}
function isElement(value) {
return isType(value, 'Element');
}
function isNodeList(value) {
return isType(value, 'NodeList');
}
function isMouseEvent(value) {
return isType(value, 'MouseEvent');
}
function isReferenceElement(value) {
return !!(value && value._tippy && value._tippy.reference === value);
}
function getArrayOfElements(value) {
if (isElement(value)) {
return [value];
}
if (isNodeList(value)) {
return arrayFrom(value);
}
if (Array.isArray(value)) {
return value;
}
return arrayFrom(document.querySelectorAll(value));
}
function setTransitionDuration(els, value) {
els.forEach(function (el) {
if (el) {
el.style.transitionDuration = value + "ms";
}
});
}
function setVisibilityState(els, state) {
els.forEach(function (el) {
if (el) {
el.setAttribute('data-state', state);
}
});
}
function closestCallback(element, callback) {
while (element) {
if (callback(element)) {
return element;
}
element = element.parentElement;
}
return null;
}
function getOwnerDocument(elementOrElements) {
var _normalizeToArray = normalizeToArray(elementOrElements),
element = _normalizeToArray[0];
return element ? element.ownerDocument || document : document;
}
function isCursorOutsideInteractiveBorder(popperTreeData, event) {
var clientX = event.clientX,
clientY = event.clientY;
return popperTreeData.every(function (_ref) {
var basePlacement = _ref.basePlacement,
popperRect = _ref.popperRect,
props = _ref.props,
offsetData = _ref.offsetData;
var interactiveBorder = props.interactiveBorder;
var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
});
}
function updateTransitionEndListener(box, action, listener) {
var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
// `webkitTransitionEnd`...
['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
box[method](event, listener);
});
}
var currentInput = {
isTouch: false
};
var lastMouseMoveTime = 0;
/**
* When a `touchstart` event is fired, it's assumed the user is using touch
* input. We'll bind a `mousemove` event listener to listen for mouse input in
* the future. This way, the `isTouch` property is fully dynamic and will handle
* hybrid devices that use a mix of touch + mouse input.
*/
function onDocumentTouchStart() {
if (currentInput.isTouch) {
return;
}
currentInput.isTouch = true;
if (window.performance) {
document.addEventListener('mousemove', onDocumentMouseMove);
}
}
/**
* When two `mousemove` event are fired consecutively within 20ms, it's assumed
* the user is using mouse input again. `mousemove` can fire on touch devices as
* well, but very rarely that quickly.
*/
function onDocumentMouseMove() {
var now = performance.now();
if (now - lastMouseMoveTime < 20) {
currentInput.isTouch = false;
document.removeEventListener('mousemove', onDocumentMouseMove);
}
lastMouseMoveTime = now;
}
/**
* When an element is in focus and has a tippy, leaving the tab/window and
* returning causes it to show again. For mouse users this is unexpected, but
* for keyboard use it makes sense.
* TODO: find a better technique to solve this problem
*/
function onWindowBlur() {
var activeElement = document.activeElement;
if (isReferenceElement(activeElement)) {
var instance = activeElement._tippy;
if (activeElement.blur && !instance.state.isVisible) {
activeElement.blur();
}
}
}
function bindGlobalEventListeners() {
document.addEventListener('touchstart', onDocumentTouchStart, Object.assign({}, PASSIVE, {
capture: true
}));
window.addEventListener('blur', onWindowBlur);
}
var innerHTML = function innerHTML() {

@@ -499,6 +488,6 @@ return 'innerHTML';

return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
}) || null,
}),
backdrop: boxChildren.find(function (node) {
return node.classList.contains(BACKDROP_CLASS);
}) || null
})
};

@@ -518,5 +507,5 @@ }

box.appendChild(content);
update(instance.props, instance.props);
onUpdate(instance.props, instance.props);
function update(prevProps, nextProps) {
function onUpdate(prevProps, nextProps) {
var _getChildren = getChildren(popper),

@@ -535,3 +524,3 @@ box = _getChildren.box,

if (nextProps.animation) {
if (typeof nextProps.animation === 'string') {
box.setAttribute('data-animation', nextProps.animation);

@@ -574,3 +563,3 @@ } else {

popper: popper,
update: update
onUpdate: onUpdate
};

@@ -582,3 +571,2 @@ } // Runtime check to identify if the render function is the default one; this

function isDefaultRenderFn(render) {
// @ts-ignore
return render.$$tippy;

@@ -616,4 +604,2 @@ }

var state = {
// The current real placement (`data-placement` attribute)
currentPlacement: null,
// Is the instance currently enabled?

@@ -667,3 +653,3 @@ isEnabled: true,

popper = _props$render.popper,
update = _props$render.update;
onUpdate = _props$render.onUpdate;

@@ -678,4 +664,4 @@ popper.setAttribute('data-tippy-root', '');

});
var hadAriaExpandedAttributeOnCreate = reference.hasAttribute('aria-expanded');
addListenersToTriggerTarget();
var hasAriaExpanded = reference.hasAttribute('aria-expanded');
addListeners();
handleAriaExpandedAttribute();

@@ -695,5 +681,6 @@ invokeHook('onCreate', [instance]);

});
popper.addEventListener('mouseleave', function () {
popper.addEventListener('mouseleave', function (event) {
if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
doc.addEventListener('mousemove', debouncedOnMouseMove);
debouncedOnMouseMove(event);
}

@@ -760,10 +747,10 @@ });

function handleAriaDescribedByAttribute() {
function handleAriaContentAttribute() {
var aria = instance.props.aria;
if (!aria) {
if (!aria.content) {
return;
}
var attr = "aria-" + aria;
var attr = "aria-" + aria.content;
var id = popper.id;

@@ -789,6 +776,3 @@ var nodes = normalizeToArray(instance.props.triggerTarget || reference);

function handleAriaExpandedAttribute() {
// If the user has specified `aria-expanded` on their reference when the
// instance was created, we have to assume they're controlling it externally
// themselves
if (hadAriaExpandedAttributeOnCreate) {
if (hasAriaExpanded || !instance.props.aria.expanded) {
return;

@@ -910,3 +894,3 @@ }

function addListenersToTriggerTarget() {
function addListeners() {
if (getIsCustomTouchBehavior()) {

@@ -940,3 +924,3 @@ on('touchstart', onTrigger, PASSIVE);

function removeListenersFromTriggerTarget() {
function removeListeners() {
listeners.forEach(function (_ref) {

@@ -1002,7 +986,6 @@ var node = _ref.node,

function onMouseMove(event) {
var isCursorOverReferenceOrPopper = closestCallback(event.target, function (el) {
return el === reference || el === popper;
});
var target = event.target;
var isCursorOverReferenceOrPopper = reference.contains(target) || popper.contains(target);
if (isCursorOverReferenceOrPopper) {
if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
return;

@@ -1012,9 +995,11 @@ }

var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
var _instance$popperInsta;
var instance = popper._tippy;
var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
if (instance.popperInstance) {
if (state) {
return {
popperRect: popper.getBoundingClientRect(),
basePlacement: getBasePlacement(instance.state.currentPlacement),
offsetData: instance.popperInstance.state.modifiersData.offset,
popperState: state,
props: props

@@ -1044,2 +1029,3 @@ };

pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
debouncedOnMouseMove(event);
return;

@@ -1065,6 +1051,3 @@ }

function isEventListenerStopped(event) {
var supportsTouch = 'ontouchstart' in window;
var isTouchEvent = event.type.indexOf('touch') >= 0;
var isCustomTouch = getIsCustomTouchBehavior();
return supportsTouch && currentInput.isTouch && isCustomTouch && !isTouchEvent || currentInput.isTouch && !isCustomTouch && isTouchEvent;
return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
}

@@ -1093,8 +1076,18 @@

if (isDefaultRenderFn(instance.props.render)) {
// Replace `data-popper-placement` with `data-placement`
delete state.attributes.popper['data-popper-placement'];
getDefaultTemplateChildren().box.setAttribute('data-placement', state.placement);
var _getDefaultTemplateCh = getDefaultTemplateChildren(),
box = _getDefaultTemplateCh.box;
['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
if (attr === 'placement') {
box.setAttribute('data-placement', state.placement);
} else {
if (state.attributes.popper["data-popper-" + attr]) {
box.setAttribute("data-" + attr, '');
} else {
box.removeAttribute("data-" + attr);
}
}
});
state.attributes.popper = {};
}
instance.state.currentPlacement = state.placement;
}

@@ -1110,3 +1103,3 @@ };

};
var mergeableModifiers = [].concat((popperOptions == null ? void 0 : popperOptions.modifiers) || [], [{
var modifiers = [{
name: 'offset',

@@ -1129,8 +1122,3 @@ options: {

options: {
padding: {
top: 2,
bottom: 2,
left: 5,
right: 5
}
padding: 5
}

@@ -1142,7 +1130,7 @@ }, {

}
}, tippyModifier]).concat(isDefaultRenderFn(instance.props.render) ? [arrowModifier] : []);
}].concat(isDefaultRenderFn(instance.props.render) ? [arrowModifier] : [], (popperOptions == null ? void 0 : popperOptions.modifiers) || [], [tippyModifier]);
instance.popperInstance = createPopper(computedReference, popper, Object.assign({}, popperOptions, {
placement: placement,
onFirstUpdate: onFirstUpdate,
modifiers: [mergeModifier(mergeableModifiers, 'offset'), mergeModifier(mergeableModifiers, 'arrow'), mergeModifier(mergeableModifiers, 'preventOverflow'), mergeModifier(mergeableModifiers, 'flip'), mergeModifier(mergeableModifiers, 'computeStyles')].concat(mergeableModifiers)
modifiers: modifiers
}));

@@ -1185,3 +1173,3 @@ }

// Accessibility check
warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/accessibility/#interactivity'].join(' '));
warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));
}

@@ -1278,3 +1266,3 @@ }

invokeHook('onBeforeUpdate', [instance, partialProps]);
removeListenersFromTriggerTarget();
removeListeners();
var prevProps = instance.props;

@@ -1285,3 +1273,3 @@ var nextProps = evaluateProps(reference, Object.assign({}, instance.props, {}, partialProps, {

instance.props = nextProps;
addListenersToTriggerTarget();
addListeners();

@@ -1305,4 +1293,4 @@ if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {

if (update) {
update(prevProps, nextProps);
if (onUpdate) {
onUpdate(prevProps, nextProps);
}

@@ -1357,4 +1345,7 @@

addDocumentMouseDownListener();
popper.style.transition = 'none';
if (!instance.state.isMounted) {
popper.style.transition = 'none';
}
onFirstUpdate = function onFirstUpdate() {

@@ -1371,5 +1362,5 @@ if (!instance.state.isVisible || ignoreOnFirstUpdate) {

if (isDefaultRenderFn(instance.props.render)) {
var _getDefaultTemplateCh = getDefaultTemplateChildren(),
box = _getDefaultTemplateCh.box,
content = _getDefaultTemplateCh.content;
var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
box = _getDefaultTemplateCh2.box,
content = _getDefaultTemplateCh2.content;

@@ -1382,3 +1373,3 @@ if (instance.props.animation) {

handleAriaDescribedByAttribute();
handleAriaContentAttribute();
handleAriaExpandedAttribute();

@@ -1432,5 +1423,5 @@ pushIfUnique(mountedInstances, instance);

if (isDefaultRenderFn(instance.props.render)) {
var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
box = _getDefaultTemplateCh2.box,
content = _getDefaultTemplateCh2.content;
var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
box = _getDefaultTemplateCh3.box,
content = _getDefaultTemplateCh3.content;

@@ -1443,7 +1434,11 @@ if (instance.props.animation) {

handleAriaDescribedByAttribute();
handleAriaContentAttribute();
handleAriaExpandedAttribute();
if (instance.props.animation && isDefaultRenderFn(instance.props.render)) {
onTransitionedOut(duration, unmount);
if (instance.props.animation) {
if (isDefaultRenderFn(instance.props.render)) {
onTransitionedOut(duration, instance.unmount);
}
} else {
instance.unmount();
}

@@ -1459,2 +1454,3 @@ }

var instance = nestedPopper._tippy;
instance.hide();
instance.unmount();

@@ -1490,4 +1486,5 @@ });

instance.clearDelayTimeouts();
instance.hide();
instance.unmount();
removeListenersFromTriggerTarget();
removeListeners();
delete reference._tippy;

@@ -1739,2 +1736,10 @@ instance.state.isDestroyed = true;

fn: function fn(instance) {
if (!isDefaultRenderFn(instance.props.render)) {
if (process.env.NODE_ENV !== "production") {
errorWhen(true, 'The `animateFill` plugin requires the default render function.');
}
return {};
}
var _getChildren = getChildren(instance.popper),

@@ -1794,11 +1799,6 @@ box = _getChildren.box,

fn: function fn(instance) {
var reference = instance.reference; // Support iframe contexts
// Static check that assumes any of the `triggerTarget` or `reference`
// nodes will never change documents, even when they are updated
var reference = instance.reference;
var doc = getOwnerDocument(instance.props.triggerTarget || reference);
var initialMouseCoords = null;
var doc = getOwnerDocument(instance.props.triggerTarget || reference); // Internal state
var lastMouseMoveEvent;
var mouseCoords = null;
function getIsManual() {

@@ -1811,3 +1811,3 @@ return instance.props.trigger.trim() === 'manual';

var isValidMouseEvent = getIsManual() ? true : // Check if a keyboard "click"
mouseCoords !== null && !(mouseCoords.clientX === 0 && mouseCoords.clientY === 0);
initialMouseCoords !== null && !(initialMouseCoords.clientX === 0 && initialMouseCoords.clientY === 0);
return instance.props.followCursor && isValidMouseEvent;

@@ -1820,6 +1820,8 @@ }

function resetReference() {
instance.setProps({
getReferenceClientRect: null
});
function unsetReferenceClientRect(shouldUnset) {
if (shouldUnset) {
instance.setProps({
getReferenceClientRect: null
});
}
}

@@ -1831,3 +1833,3 @@

} else {
resetReference();
unsetReferenceClientRect(instance.props.followCursor);
}

@@ -1838,3 +1840,3 @@ }

if (getIsEnabled()) {
onMouseMove(lastMouseMoveEvent);
onMouseMove(initialMouseCoords);
}

@@ -1852,12 +1854,15 @@ }

function onMouseMove(event) {
var _lastMouseMoveEvent = lastMouseMoveEvent = event,
clientX = _lastMouseMoveEvent.clientX,
clientY = _lastMouseMoveEvent.clientY; // If the instance is interactive, avoid updating the position unless it's
initialMouseCoords = {
clientX: event.clientX,
clientY: event.clientY
}; // If the instance is interactive, avoid updating the position unless it's
// over the reference element
var isCursorOverReference = closestCallback(event.target, function (el) {
return el === reference;
});
var isCursorOverReference = event.target ? reference.contains(event.target) : true;
var followCursor = instance.props.followCursor;
var clientX = event.clientX,
clientY = event.clientY;
var rect = reference.getBoundingClientRect();
var relativeX = clientX - rect.left;
var relativeY = clientY - rect.top;

@@ -1868,9 +1873,21 @@ if (isCursorOverReference || !instance.props.interactive) {

var rect = reference.getBoundingClientRect();
var x = clientX;
var y = clientY;
if (followCursor === 'initial') {
x = rect.left + relativeX;
y = rect.top + relativeY;
}
var top = followCursor === 'horizontal' ? rect.top : y;
var right = followCursor === 'vertical' ? rect.right : x;
var bottom = followCursor === 'horizontal' ? rect.bottom : y;
var left = followCursor === 'vertical' ? rect.left : x;
return {
width: 0,
height: 0,
top: followCursor === 'horizontal' ? rect.top : clientY,
bottom: followCursor === 'horizontal' ? rect.bottom : clientY,
left: followCursor === 'vertical' ? rect.left : clientX,
right: followCursor === 'vertical' ? rect.right : clientX
width: right - left,
height: bottom - top,
top: top,
right: right,
bottom: bottom,
left: left
};

@@ -1887,2 +1904,9 @@ }

return {
onAfterUpdate: function onAfterUpdate(_, _ref) {
var followCursor = _ref.followCursor;
if (followCursor !== undefined && !followCursor) {
unsetReferenceClientRect(true);
}
},
onMount: function onMount() {

@@ -1895,9 +1919,6 @@ triggerLastMouseMove();

// baseline coords
mouseCoords = {
initialMouseCoords = {
clientX: 0,
clientY: 0
}; // Ensure `lastMouseMoveEvent` doesn't access any other properties
// of a MouseEvent here
lastMouseMoveEvent = mouseCoords;
};
handleMouseMoveListener();

@@ -1908,3 +1929,3 @@ }

// Tapping on touch devices can trigger `mouseenter` then `focus`
if (mouseCoords) {
if (initialMouseCoords) {
return;

@@ -1914,7 +1935,6 @@ }

if (isMouseEvent(event)) {
mouseCoords = {
initialMouseCoords = {
clientX: event.clientX,
clientY: event.clientY
};
lastMouseMoveEvent = event;
}

@@ -1928,3 +1948,3 @@

removeListener();
mouseCoords = null;
initialMouseCoords = null;
}

@@ -1934,4 +1954,3 @@ },

removeListener();
resetReference();
mouseCoords = null;
initialMouseCoords = null;
}

@@ -1942,4 +1961,4 @@ };

// TODO: Work on a "cursor" value so it chooses a rect optimal to the cursor
// position.
var inlinePositioning = {

@@ -1983,8 +2002,8 @@ name: 'inlinePositioning',

onCreate: function onCreate() {
var _instance$popperInsta;
var _instance$props$poppe;
instance.setProps({
popperOptions: {
modifiers: [].concat(((_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state.options.modifiers) || [], [modifier])
}
popperOptions: Object.assign({}, instance.props.popperOptions, {
modifiers: [].concat(((_instance$props$poppe = instance.props.popperOptions) == null ? void 0 : _instance$props$poppe.modifiers) || [], [modifier])
})
});

@@ -1991,0 +2010,0 @@ }

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@popperjs/core")):"function"==typeof define&&define.amd?define(["exports","@popperjs/core"],t):t((e=e||self).tippy={},e.Popper)}(this,(function(e,t){"use strict";function n(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function r(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function i(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function o(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function a(e){return[].concat(e)}function s(e,t){-1===e.indexOf(t)&&e.push(t)}function u(e,t){return e.filter((function(e){return e.name===t})).reduce((function(e,t){return Object.assign({},e,{},t,{options:Object.assign({},e.options,{},t.options)})}),{})}function c(e){return e.split("-")[0]}function p(e){return[].slice.call(e)}var f=Object.assign({appendTo:function(){return document.body},aria:"describedby",content:"",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(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),l=Object.keys(f);function d(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:i),t}),{});return Object.assign({},e,{},t)}function v(e,t){var n=Object.assign({},t,{},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(d(Object.assign({},f,{plugins:t}))):l).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.interactive&&(n.aria=null),n}var m="undefined"!=typeof window&&"undefined"!=typeof document,g=m?navigator.userAgent:"",h=/MSIE |Trident\//.test(g),b=m&&/iPhone|iPad|iPod/.test(navigator.platform),y={passive:!0};function w(){return document.createElement("div")}function T(e){return r(e,"Element")}function E(e){return r(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function x(e){return T(e)?[e]:function(e){return r(e,"NodeList")}(e)?p(e):Array.isArray(e)?e:p(document.querySelectorAll(e))}function O(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function C(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function D(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null}function L(e){var t=a(e)[0];return t&&t.ownerDocument||document}function P(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var k={isTouch:!1},V=0;function j(){k.isTouch||(k.isTouch=!0,window.performance&&document.addEventListener("mousemove",M))}function M(){var e=performance.now();e-V<20&&(k.isTouch=!1,document.removeEventListener("mousemove",M)),V=e}function R(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function S(e,t){e.innerHTML=t}function I(e){var t=w();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",T(e)?t.appendChild(e):S(t,e)),t}function B(e,t){var n=t.props,r=t.reference,i="function"==typeof n.content?n.content(r):n.content;T(i)?(S(e,""),e.appendChild(i)):n.allowHTML?S(e,i):e.textContent=i}function N(e){var t=e.firstElementChild,n=p(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")}))||null,backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))||null}}function H(e){var t=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=w();function i(n,r){var i=N(t),o=i.box,a=i.content,s=i.arrow;t.style.zIndex=""+r.zIndex,r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content!==r.content&&B(a,e),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(I(r.arrow))):o.appendChild(I(r.arrow)):s&&o.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),B(r,e),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,update:i}}function _(e){return e.$$tippy}H.$$tippy=!0;var U=1,F=[],W=[];function q(e,r){var o,l,m,g,T,A,x,V,j=v(e,Object.assign({},f,{},d(r))),M=!1,R=!1,S=!1,I=[],B=i(he,j.interactiveDebounce),H=L(j.triggerTarget||e),q=U++,z=(V=j.plugins).filter((function(e,t){return V.indexOf(e)===t})),X={id:q,reference:e,popper:w(),popperInstance:null,props:j,state:{currentPlacement:null,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:z,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(l),cancelAnimationFrame(m)},setProps:function(t){if(X.state.isDestroyed)return;oe("onBeforeUpdate",[X,t]),me();var n=X.props,r=v(e,Object.assign({},X.props,{},t,{ignoreAttributes:!0}));X.props=r,ve(),n.interactiveDebounce!==r.interactiveDebounce&&(ue(),B=i(he,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?a(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");se(),re(),J&&J(n,r);X.popperInstance&&Te();oe("onAfterUpdate",[X,t])},setContent:function(e){X.setProps({content:e})},show:function(){var e=X.state.isVisible,t=X.state.isDestroyed,r=!X.state.isEnabled,i=k.isTouch&&!X.props.touch,o=n(X.props.duration,0,f.duration);if(e||t||r||i)return;if(ee().hasAttribute("disabled"))return;if(oe("onShow",[X],!1),!1===X.props.onShow(X))return;X.state.isVisible=!0,$.style.visibility="visible",re(),pe(),$.style.transition="none",A=function(){if(X.state.isVisible&&!S){if(S=!0,$.offsetHeight,$.style.transition=X.props.moveTransition,_(X.props.render)){var e=te(),t=e.box,n=e.content;X.props.animation&&(O([t,n],o),C([t,n],"visible"))}ae(),se(),s(W,X),ie(!0),X.state.isMounted=!0,oe("onMount",[X]),X.props.animation&&_(X.props.render)&&function(e,t){le(e,t)}(o,(function(){X.state.isShown=!0,oe("onShown",[X])}))}},function(){var e,t=X.props.appendTo,n=ee();X.props.interactive&&t===f.appendTo||"parent"===t?e=n.parentNode:(i=[n],e="function"==typeof(r=t)?r.apply(void 0,i):r);var r,i;e.contains($)||e.appendChild($);Te()}()},hide:function(){var e=!X.state.isVisible,t=X.state.isDestroyed,r=!X.state.isEnabled,i=n(X.props.duration,1,f.duration);if(e||t||r)return;if(oe("onHide",[X],!1),!1===X.props.onHide(X))return;if(X.state.isVisible=!1,X.state.isShown=!1,$.style.visibility="hidden",S=!1,ue(),fe(),re(),_(X.props.render)){var o=te(),a=o.box,s=o.content;X.props.animation&&(O([a,s],i),C([a,s],"hidden"))}ae(),se(),X.props.animation&&_(X.props.render)&&function(e,t){le(e,(function(){!X.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&t()}))}(i,Ce)},enable:function(){X.state.isEnabled=!0},disable:function(){X.hide(),X.state.isEnabled=!1},unmount:Ce,destroy:function(){if(X.state.isDestroyed)return;X.clearDelayTimeouts(),X.unmount(),me(),delete e._tippy,X.state.isDestroyed=!0,oe("onDestroy",[X])}};if(!j.render)return X;var Y=j.render(X),$=Y.popper,J=Y.update;$.setAttribute("data-tippy-root",""),$.id="tippy-"+X.id,X.popper=$,e._tippy=X,$._tippy=X;var G=z.map((function(e){return e.fn(X)})),K=e.hasAttribute("aria-expanded");return ve(),se(),oe("onCreate",[X]),j.showOnCreate&&xe(),$.addEventListener("mouseenter",(function(){X.props.interactive&&X.state.isVisible&&X.clearDelayTimeouts()})),$.addEventListener("mouseleave",(function(){X.props.interactive&&X.props.trigger.indexOf("mouseenter")>=0&&H.addEventListener("mousemove",B)})),X;function Q(){var e=X.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===Q()[0]}function ee(){return x||e}function te(){return N($)}function ne(e){return X.state.isMounted&&!X.state.isVisible||k.isTouch||g&&"focus"===g.type?0:n(X.props.delay,e?0:1,f.delay)}function re(){$.style.pointerEvents=X.props.interactive&&X.state.isVisible?"":"none"}function ie(e){var t=e&&b&&k.isTouch;H.body.classList[t?"add":"remove"]("tippy-iOS")}function oe(e,t,n){var r;(void 0===n&&(n=!0),G.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=X.props)[e].apply(r,t)}function ae(){var t=X.props.aria;if(t){var n="aria-"+t,r=$.id;a(X.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(X.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function se(){K||a(X.props.triggerTarget||e).forEach((function(e){X.props.interactive?e.setAttribute("aria-expanded",X.state.isVisible&&e===ee()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ue(){H.body.removeEventListener("mouseleave",Oe),H.removeEventListener("mousemove",B),F=F.filter((function(e){return e!==B}))}function ce(e){if(!X.props.interactive||!$.contains(e.target)){if(ee().contains(e.target)){if(k.isTouch)return;if(X.state.isVisible&&X.props.trigger.indexOf("click")>=0)return}!0===X.props.hideOnClick&&(M=!1,X.clearDelayTimeouts(),X.hide(),R=!0,setTimeout((function(){R=!1})),X.state.isMounted||fe())}}function pe(){H.addEventListener("mousedown",ce,!0)}function fe(){H.removeEventListener("mousedown",ce,!0)}function le(e,t){var n=te().box;function r(e){e.target===n&&(P(n,"remove",r),t())}if(0===e)return t();P(n,"remove",T),P(n,"add",r),T=r}function de(t,n,r){void 0===r&&(r=!1),a(X.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),I.push({node:e,eventType:t,handler:n,options:r})}))}function ve(){var e;Z()&&(de("touchstart",ge,y),de("touchend",be,y)),(e=X.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(de(e,ge),e){case"mouseenter":de("mouseleave",be);break;case"focus":de(h?"focusout":"blur",ye);break;case"focusin":de("focusout",ye)}}))}function me(){I.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),I=[]}function ge(e){var t=!1;if(X.state.isEnabled&&!we(e)&&!R){if(g=e,x=e.currentTarget,se(),!X.state.isVisible&&E(e)&&F.forEach((function(t){return t(e)})),"click"===e.type&&(X.props.trigger.indexOf("mouseenter")<0||M)&&!1!==X.props.hideOnClick&&X.state.isVisible)t=!0;else{var n=Q(),r=n[0],i=n[1];k.isTouch&&"hold"===r&&i?o=setTimeout((function(){xe(e)}),i):xe(e)}"click"===e.type&&(M=!t),t&&Oe(e)}}function he(t){D(t.target,(function(t){return t===e||t===$}))||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.basePlacement,i=e.popperRect,o=e.props,a=e.offsetData,s=o.interactiveBorder,u="bottom"===t?a.top.y:0,c="top"===t?a.bottom.y:0,p="right"===t?a.left.x:0,f="left"===t?a.right.x:0,l=i.top-r+u>s,d=r-i.bottom-c>s,v=i.left-n+p>s,m=n-i.right-f>s;return l||d||v||m}))}(Ae().concat($).map((function(e){var t=e._tippy;return t.popperInstance?{popperRect:e.getBoundingClientRect(),basePlacement:c(t.state.currentPlacement),offsetData:t.popperInstance.state.modifiersData.offset,props:j}:null})).filter(Boolean),t)&&(ue(),Oe(t))}function be(e){if(!(we(e)||X.props.trigger.indexOf("click")>=0&&M))return X.props.interactive?(H.body.addEventListener("mouseleave",Oe),H.addEventListener("mousemove",B),void s(F,B)):void Oe(e)}function ye(e){X.props.trigger.indexOf("focusin")<0&&e.target!==ee()||X.props.interactive&&e.relatedTarget&&$.contains(e.relatedTarget)||Oe(e)}function we(e){var t="ontouchstart"in window,n=e.type.indexOf("touch")>=0,r=Z();return t&&k.isTouch&&r&&!n||k.isTouch&&!r&&n}function Te(){Ee();var n=X.props,r=n.popperOptions,i=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,c=_(X.props.render)?N($).arrow:null,p=a?{getBoundingClientRect:a}:e,f={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;_(X.props.render)&&(delete t.attributes.popper["data-popper-placement"],te().box.setAttribute("data-placement",t.placement)),X.state.currentPlacement=t.placement}},l={name:"arrow",enabled:!!c,options:{element:c,padding:3}},d=[].concat((null==r?void 0:r.modifiers)||[],[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"computeStyles",options:{adaptive:!s}},f]).concat(_(X.props.render)?[l]:[]);X.popperInstance=t.createPopper(p,$,Object.assign({},r,{placement:i,onFirstUpdate:A,modifiers:[u(d,"offset"),u(d,"arrow"),u(d,"preventOverflow"),u(d,"flip"),u(d,"computeStyles")].concat(d)}))}function Ee(){X.popperInstance&&(X.popperInstance.destroy(),X.popperInstance=null)}function Ae(){return p($.querySelectorAll("[data-tippy-root]"))}function xe(e){X.clearDelayTimeouts(),e&&oe("onTrigger",[X,e]),pe();var t=ne(!0);t?o=setTimeout((function(){X.show()}),t):X.show()}function Oe(e){if(X.clearDelayTimeouts(),oe("onUntrigger",[X,e]),X.state.isVisible){if(!(X.props.trigger.indexOf("mouseenter")>=0&&X.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&M)){var t=ne(!1);t?l=setTimeout((function(){X.state.isVisible&&X.hide()}),t):m=requestAnimationFrame((function(){X.hide()}))}}else fe()}function Ce(){Ee(),Ae().forEach((function(e){e._tippy.unmount()})),$.parentNode&&$.parentNode.removeChild($),0===(W=W.filter((function(e){return e!==X}))).length&&ie(!1),X.state.isMounted=!1,oe("onHidden",[X])}}function z(e,t){void 0===t&&(t={});var n=f.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",j,Object.assign({},y,{capture:!0})),window.addEventListener("blur",R);var r=Object.assign({},t,{plugins:n}),i=x(e).reduce((function(e,t){var n=t&&q(t,r);return n&&e.push(n),e}),[]);return T(e)?i[0]:i}z.defaultProps=f,z.setDefaultProps=function(e){Object.keys(e).forEach((function(t){f[t]=e[t]}))},z.currentInput=k;var X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(e){var t=N(e.popper),n=t.box,r=t.content,i=e.props.animateFill?function(){var e=w();return e.className="tippy-backdrop",C([e],"hidden"),e}():null;return{onCreate:function(){i&&(n.insertBefore(i,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=n.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,C([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&C([i],"hidden")}}}};var $={name:"followCursor",defaultValue:!1,fn:function(e){var t,n=e.reference,r=L(e.props.triggerTarget||n),i=null;function o(){return"manual"===e.props.trigger.trim()}function a(){var t=!!o()||null!==i&&!(0===i.clientX&&0===i.clientY);return e.props.followCursor&&t}function s(){e.setProps({getReferenceClientRect:null})}function u(){a()?r.addEventListener("mousemove",p):s()}function c(){r.removeEventListener("mousemove",p)}function p(r){var i=t=r,o=i.clientX,a=i.clientY,s=D(r.target,(function(e){return e===n})),u=e.props.followCursor;!s&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=n.getBoundingClientRect();return{width:0,height:0,top:"horizontal"===u?e.top:a,bottom:"horizontal"===u?e.bottom:a,left:"vertical"===u?e.left:o,right:"vertical"===u?e.right:o}}}),(k.isTouch||"initial"===e.props.followCursor&&e.state.isVisible)&&c()}return{onMount:function(){a()&&p(t)},onShow:function(){o()&&(t=i={clientX:0,clientY:0},u())},onTrigger:function(e,n){i||(E(n)&&(i={clientX:n.clientX,clientY:n.clientY},t=n),u())},onUntrigger:function(){e.state.isVisible||(c(),i=null)},onHidden:function(){c(),s(),i=null}}}},J={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;e.props.inlinePositioning&&(t!==i.placement&&e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n){if(n.length<2||null===e)return t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===e,a=r.top,s=i.bottom,u=o?r.left:i.left,c=o?r.right:i.right;return{top:a,bottom:s,left:u,right:c,width:c-u,height:s-a};case"left":case"right":var p=Math.min.apply(Math,n.map((function(e){return e.left}))),f=Math.max.apply(Math,n.map((function(e){return e.right}))),l=n.filter((function(t){return"left"===e?t.left===p:t.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:p,right:f,width:f-p,height:v-d};default:return t}}(c(e),n.getBoundingClientRect(),p(n.getClientRects()))}(i.placement)}}),t=i.placement)}};return{onCreate:function(){var t;e.setProps({popperOptions:{modifiers:[].concat((null==(t=e.popperInstance)?void 0:t.state.options.modifiers)||[],[r])}})}}}};var G={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var i=null,o=null;function a(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=r("popper")?n.getBoundingClientRect():null;(s&&K(i,s)||u&&K(o,u))&&e.popperInstance&&e.popperInstance.update(),i=s,o=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function K(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}z.setDefaultProps({plugins:[Y,$,J,G],render:H}),z.createSingleton=function(e,t){var n;void 0===t&&(t={}),e.forEach((function(e){e.disable()}));var r=e.map((function(e){return e.reference})),i={fn:function(){return{onDestroy:function(){e.forEach((function(e){e.enable()}))},onTrigger:function(i,o){var a=o.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var u=(t.overrides||[]).concat("content").reduce((function(t,n){return t[n]=e[s].props[n],t}),{});i.setProps(Object.assign({},u,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return z(w(),Object.assign({},o(t,["overrides"]),{plugins:[i].concat(t.plugins||[]),triggerTarget:r}))},z.delegate=function(e,t){var n=[],r=[],i=t.target,s=o(t,["target"]),u=Object.assign({},s,{trigger:"manual"}),c=Object.assign({},s,{showOnCreate:!0}),p=z(e,u);function l(e){if(e.target){var n=e.target.closest(i);if(n)if(!((n.getAttribute("data-tippy-trigger")||t.trigger||f.trigger).indexOf(X[e.type])<0||n._tippy)){var o=z(n,c);o&&(r=r.concat(o))}}}function d(e,t,r,i){void 0===i&&(i=!1),e.addEventListener(t,r,i),n.push({node:e,eventType:t,handler:r,options:i})}return a(p).forEach((function(e){var t=e.destroy;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),n=[],t()},function(e){var t=e.reference;d(t,"mouseover",l),d(t,"focusin",l),d(t,"click",l)}(e)})),p},z.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;W.forEach((function(e){var t=!1;if(n&&(t=A(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.setProps({duration:i})}}))},z.roundArrow='<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>',e.default=z}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,(function(e){"use strict";var t={passive:!0};function n(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function r(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function i(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function o(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function a(e){return[].concat(e)}function s(e,t){-1===e.indexOf(t)&&e.push(t)}function u(e){return e.split("-")[0]}function c(e){return[].slice.call(e)}function p(){return document.createElement("div")}function f(e){return r(e,"Element")}function l(e){return r(e,"MouseEvent")}function d(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function v(e){return f(e)?[e]:function(e){return r(e,"NodeList")}(e)?c(e):Array.isArray(e)?e:c(document.querySelectorAll(e))}function m(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function g(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function h(e){var t=a(e)[0];return t&&t.ownerDocument||document}function b(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var y={isTouch:!1},w=0;function T(){y.isTouch||(y.isTouch=!0,window.performance&&document.addEventListener("mousemove",E))}function E(){var e=performance.now();e-w<20&&(y.isTouch=!1,document.removeEventListener("mousemove",E)),w=e}function x(){var e=document.activeElement;if(d(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var A="undefined"!=typeof window&&"undefined"!=typeof document,C=A?navigator.userAgent:"",O=/MSIE |Trident\//.test(C),D=A&&/iPhone|iPad|iPod/.test(navigator.platform),L=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",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(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(L);function V(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:i),t}),{});return Object.assign({},e,{},t)}function j(e,t){var n=Object.assign({},t,{},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(V(Object.assign({},L,{plugins:t}))):k).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},L.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function M(e,t){e.innerHTML=t}function R(e){var t=p();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",f(e)?t.appendChild(e):M(t,e)),t}function P(e,t){var n=t.props,r=t.reference,i="function"==typeof n.content?n.content(r):n.content;f(i)?(M(e,""),e.appendChild(i)):n.allowHTML?M(e,i):e.textContent=i}function S(e){var t=e.firstElementChild,n=c(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function I(e){var t=p(),n=p();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=p();function i(n,r){var i=S(t),o=i.box,a=i.content,s=i.arrow;t.style.zIndex=""+r.zIndex,r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content!==r.content&&P(a,e),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(R(r.arrow))):o.appendChild(R(r.arrow)):s&&o.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),P(r,e),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}function B(e){return e.$$tippy}I.$$tippy=!0;var N=1,H=[],U=[];function _(r,o){var f,d,v,w,T,E,x,A,C=j(r,Object.assign({},L,{},V(o))),k=!1,M=!1,R=!1,P=[],I=i(me,C.interactiveDebounce),_=h(C.triggerTarget||r),X=N++,Y=(A=C.plugins).filter((function(e,t){return A.indexOf(e)===t})),F={id:X,reference:r,popper:p(),popperInstance:null,props:C,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Y,clearDelayTimeouts:function(){clearTimeout(f),clearTimeout(d),cancelAnimationFrame(v)},setProps:function(e){if(F.state.isDestroyed)return;re("onBeforeUpdate",[F,e]),de();var t=F.props,n=j(r,Object.assign({},F.props,{},e,{ignoreAttributes:!0}));F.props=n,le(),t.interactiveDebounce!==n.interactiveDebounce&&(ae(),I=i(me,n.interactiveDebounce));t.triggerTarget&&!n.triggerTarget?a(t.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&r.removeAttribute("aria-expanded");oe(),te(),z&&z(t,n);F.popperInstance&&ye();re("onAfterUpdate",[F,e])},setContent:function(e){F.setProps({content:e})},show:function(){var e=F.state.isVisible,t=F.state.isDestroyed,r=!F.state.isEnabled,i=y.isTouch&&!F.props.touch,o=n(F.props.duration,0,L.duration);if(e||t||r||i)return;if(Q().hasAttribute("disabled"))return;if(re("onShow",[F],!1),!1===F.props.onShow(F))return;F.state.isVisible=!0,q.style.visibility="visible",te(),ue(),F.state.isMounted||(q.style.transition="none");E=function(){if(F.state.isVisible&&!R){if(R=!0,q.offsetHeight,q.style.transition=F.props.moveTransition,B(F.props.render)){var e=Z(),t=e.box,n=e.content;F.props.animation&&(m([t,n],o),g([t,n],"visible"))}ie(),oe(),s(U,F),ne(!0),F.state.isMounted=!0,re("onMount",[F]),F.props.animation&&B(F.props.render)&&function(e,t){pe(e,t)}(o,(function(){F.state.isShown=!0,re("onShown",[F])}))}},function(){var e,t=F.props.appendTo,n=Q();F.props.interactive&&t===L.appendTo||"parent"===t?e=n.parentNode:(i=[n],e="function"==typeof(r=t)?r.apply(void 0,i):r);var r,i;e.contains(q)||e.appendChild(q);ye()}()},hide:function(){var e=!F.state.isVisible,t=F.state.isDestroyed,r=!F.state.isEnabled,i=n(F.props.duration,1,L.duration);if(e||t||r)return;if(re("onHide",[F],!1),!1===F.props.onHide(F))return;if(F.state.isVisible=!1,F.state.isShown=!1,q.style.visibility="hidden",R=!1,ae(),ce(),te(),B(F.props.render)){var o=Z(),a=o.box,s=o.content;F.props.animation&&(m([a,s],i),g([a,s],"hidden"))}ie(),oe(),F.props.animation?B(F.props.render)&&function(e,t){pe(e,(function(){!F.state.isVisible&&q.parentNode&&q.parentNode.contains(q)&&t()}))}(i,F.unmount):F.unmount()},enable:function(){F.state.isEnabled=!0},disable:function(){F.hide(),F.state.isEnabled=!1},unmount:function(){we(),Te().forEach((function(e){var t=e._tippy;t.hide(),t.unmount()})),q.parentNode&&q.parentNode.removeChild(q);0===(U=U.filter((function(e){return e!==F}))).length&&ne(!1);F.state.isMounted=!1,re("onHidden",[F])},destroy:function(){if(F.state.isDestroyed)return;F.clearDelayTimeouts(),F.hide(),F.unmount(),de(),delete r._tippy,F.state.isDestroyed=!0,re("onDestroy",[F])}};if(!C.render)return F;var W=C.render(F),q=W.popper,z=W.onUpdate;q.setAttribute("data-tippy-root",""),q.id="tippy-"+F.id,F.popper=q,r._tippy=F,q._tippy=F;var $=Y.map((function(e){return e.fn(F)})),J=r.hasAttribute("aria-expanded");return le(),oe(),re("onCreate",[F]),C.showOnCreate&&Ee(),q.addEventListener("mouseenter",(function(){F.props.interactive&&F.state.isVisible&&F.clearDelayTimeouts()})),q.addEventListener("mouseleave",(function(e){F.props.interactive&&F.props.trigger.indexOf("mouseenter")>=0&&(_.addEventListener("mousemove",I),I(e))})),F;function G(){var e=F.props.touch;return Array.isArray(e)?e:[e,0]}function K(){return"hold"===G()[0]}function Q(){return x||r}function Z(){return S(q)}function ee(e){return F.state.isMounted&&!F.state.isVisible||y.isTouch||w&&"focus"===w.type?0:n(F.props.delay,e?0:1,L.delay)}function te(){q.style.pointerEvents=F.props.interactive&&F.state.isVisible?"":"none"}function ne(e){var t=e&&D&&y.isTouch;_.body.classList[t?"add":"remove"]("tippy-iOS")}function re(e,t,n){var r;(void 0===n&&(n=!0),$.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=F.props)[e].apply(r,t)}function ie(){var e=F.props.aria;if(e.content){var t="aria-"+e.content,n=q.id;a(F.props.triggerTarget||r).forEach((function(e){var r=e.getAttribute(t);if(F.state.isVisible)e.setAttribute(t,r?r+" "+n:n);else{var i=r&&r.replace(n,"").trim();i?e.setAttribute(t,i):e.removeAttribute(t)}}))}}function oe(){!J&&F.props.aria.expanded&&a(F.props.triggerTarget||r).forEach((function(e){F.props.interactive?e.setAttribute("aria-expanded",F.state.isVisible&&e===Q()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ae(){_.body.removeEventListener("mouseleave",xe),_.removeEventListener("mousemove",I),H=H.filter((function(e){return e!==I}))}function se(e){if(!F.props.interactive||!q.contains(e.target)){if(Q().contains(e.target)){if(y.isTouch)return;if(F.state.isVisible&&F.props.trigger.indexOf("click")>=0)return}!0===F.props.hideOnClick&&(k=!1,F.clearDelayTimeouts(),F.hide(),M=!0,setTimeout((function(){M=!1})),F.state.isMounted||ce())}}function ue(){_.addEventListener("mousedown",se,!0)}function ce(){_.removeEventListener("mousedown",se,!0)}function pe(e,t){var n=Z().box;function r(e){e.target===n&&(b(n,"remove",r),t())}if(0===e)return t();b(n,"remove",T),b(n,"add",r),T=r}function fe(e,t,n){void 0===n&&(n=!1),a(F.props.triggerTarget||r).forEach((function(r){r.addEventListener(e,t,n),P.push({node:r,eventType:e,handler:t,options:n})}))}function le(){var e;K()&&(fe("touchstart",ve,t),fe("touchend",ge,t)),(e=F.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(fe(e,ve),e){case"mouseenter":fe("mouseleave",ge);break;case"focus":fe(O?"focusout":"blur",he);break;case"focusin":fe("focusout",he)}}))}function de(){P.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),P=[]}function ve(e){var t=!1;if(F.state.isEnabled&&!be(e)&&!M){if(w=e,x=e.currentTarget,oe(),!F.state.isVisible&&l(e)&&H.forEach((function(t){return t(e)})),"click"===e.type&&(F.props.trigger.indexOf("mouseenter")<0||k)&&!1!==F.props.hideOnClick&&F.state.isVisible)t=!0;else{var n=G(),r=n[0],i=n[1];y.isTouch&&"hold"===r&&i?f=setTimeout((function(){Ee(e)}),i):Ee(e)}"click"===e.type&&(k=!t),t&&xe(e)}}function me(e){var t=e.target,n=r.contains(t)||q.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=u(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=t.top-r+c>o,v=r-t.bottom-p>o,m=t.left-n+f>o,g=n-t.right-l>o;return d||v||m||g}))}(Te().concat(q).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:C}:null})).filter(Boolean),e)&&(ae(),xe(e))}function ge(e){if(!(be(e)||F.props.trigger.indexOf("click")>=0&&k))return F.props.interactive?(_.body.addEventListener("mouseleave",xe),_.addEventListener("mousemove",I),s(H,I),void I(e)):void xe(e)}function he(e){F.props.trigger.indexOf("focusin")<0&&e.target!==Q()||F.props.interactive&&e.relatedTarget&&q.contains(e.relatedTarget)||xe(e)}function be(e){return!!y.isTouch&&K()!==e.type.indexOf("touch")>=0}function ye(){we();var t=F.props,n=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,u=B(F.props.render)?S(q).arrow:null,c=a?{getBoundingClientRect:a}:r,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(B(F.props.render)){var n=Z().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f={name:"arrow",enabled:!!u,options:{element:u,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(B(F.props.render)?[f]:[],(null==n?void 0:n.modifiers)||[],[p]);F.popperInstance=e.createPopper(c,q,Object.assign({},n,{placement:i,onFirstUpdate:E,modifiers:l}))}function we(){F.popperInstance&&(F.popperInstance.destroy(),F.popperInstance=null)}function Te(){return c(q.querySelectorAll("[data-tippy-root]"))}function Ee(e){F.clearDelayTimeouts(),e&&re("onTrigger",[F,e]),ue();var t=ee(!0);t?f=setTimeout((function(){F.show()}),t):F.show()}function xe(e){if(F.clearDelayTimeouts(),re("onUntrigger",[F,e]),F.state.isVisible){if(!(F.props.trigger.indexOf("mouseenter")>=0&&F.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&k)){var t=ee(!1);t?d=setTimeout((function(){F.state.isVisible&&F.hide()}),t):v=requestAnimationFrame((function(){F.hide()}))}}else ce()}}function X(e,n){void 0===n&&(n={});var r=L.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",T,Object.assign({},t,{capture:!0})),window.addEventListener("blur",x);var i=Object.assign({},n,{plugins:r}),o=v(e).reduce((function(e,t){var n=t&&_(t,i);return n&&e.push(n),e}),[]);return f(e)?o[0]:o}X.defaultProps=L,X.setDefaultProps=function(e){Object.keys(e).forEach((function(t){L[t]=e[t]}))},X.currentInput=y;var Y={mouseover:"mouseenter",focusin:"focus",click:"click"};var F={name:"animateFill",defaultValue:!1,fn:function(e){if(!B(e.props.render))return{};var t=S(e.popper),n=t.box,r=t.content,i=e.props.animateFill?function(){var e=p();return e.className="tippy-backdrop",g([e],"hidden"),e}():null;return{onCreate:function(){i&&(n.insertBefore(i,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=n.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,g([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&g([i],"hidden")}}}};var W={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=h(e.props.triggerTarget||t),r=null;function i(){return"manual"===e.props.trigger.trim()}function o(){var t=!!i()||null!==r&&!(0===r.clientX&&0===r.clientY);return e.props.followCursor&&t}function a(t){t&&e.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",c):a(e.props.followCursor)}function u(){n.removeEventListener("mousemove",c)}function c(n){r={clientX:n.clientX,clientY:n.clientY};var i=!n.target||t.contains(n.target),o=e.props.followCursor,a=n.clientX,s=n.clientY,c=t.getBoundingClientRect(),p=a-c.left,f=s-c.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=a,r=s;"initial"===o&&(n=e.left+p,r=e.top+f);var i="horizontal"===o?e.top:r,u="vertical"===o?e.right:n,c="horizontal"===o?e.bottom:r,l="vertical"===o?e.left:n;return{width:u-l,height:c-i,top:i,right:u,bottom:c,left:l}}}),(y.isTouch||"initial"===e.props.followCursor&&e.state.isVisible)&&u()}return{onAfterUpdate:function(e,t){var n=t.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&c(r)},onShow:function(){i()&&(r={clientX:0,clientY:0},s())},onTrigger:function(e,t){r||(l(t)&&(r={clientX:t.clientX,clientY:t.clientY}),s())},onUntrigger:function(){e.state.isVisible||(u(),r=null)},onHidden:function(){u(),r=null}}}},q={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;e.props.inlinePositioning&&(t!==i.placement&&e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n){if(n.length<2||null===e)return t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===e,a=r.top,s=i.bottom,u=o?r.left:i.left,c=o?r.right:i.right;return{top:a,bottom:s,left:u,right:c,width:c-u,height:s-a};case"left":case"right":var p=Math.min.apply(Math,n.map((function(e){return e.left}))),f=Math.max.apply(Math,n.map((function(e){return e.right}))),l=n.filter((function(t){return"left"===e?t.left===p:t.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:p,right:f,width:f-p,height:v-d};default:return t}}(u(e),n.getBoundingClientRect(),c(n.getClientRects()))}(i.placement)}}),t=i.placement)}};return{onCreate:function(){var t;e.setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat((null==(t=e.props.popperOptions)?void 0:t.modifiers)||[],[r])})})}}}};var z={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var i=null,o=null;function a(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=r("popper")?n.getBoundingClientRect():null;(s&&$(i,s)||u&&$(o,u))&&e.popperInstance&&e.popperInstance.update(),i=s,o=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function $(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}return X.setDefaultProps({plugins:[F,W,q,z],render:I}),X.createSingleton=function(e,t){var n;void 0===t&&(t={}),e.forEach((function(e){e.disable()}));var r=e.map((function(e){return e.reference})),i={fn:function(){return{onDestroy:function(){e.forEach((function(e){e.enable()}))},onTrigger:function(i,o){var a=o.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var u=(t.overrides||[]).concat("content").reduce((function(t,n){return t[n]=e[s].props[n],t}),{});i.setProps(Object.assign({},u,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return X(p(),Object.assign({},o(t,["overrides"]),{plugins:[i].concat(t.plugins||[]),triggerTarget:r}))},X.delegate=function(e,t){var n=[],r=[],i=t.target,s=o(t,["target"]),u=Object.assign({},s,{trigger:"manual"}),c=Object.assign({},s,{showOnCreate:!0}),p=X(e,u);function f(e){if(e.target){var n=e.target.closest(i);if(n)if(!((n.getAttribute("data-tippy-trigger")||t.trigger||L.trigger).indexOf(Y[e.type])<0||n._tippy)){var o=X(n,c);o&&(r=r.concat(o))}}}function l(e,t,r,i){void 0===i&&(i=!1),e.addEventListener(t,r,i),n.push({node:e,eventType:t,handler:r,options:i})}return a(p).forEach((function(e){var t=e.destroy;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),n=[],t()},function(e){var t=e.reference;l(t,"mouseover",f),l(t,"focusin",f),l(t,"click",f)}(e)})),p},X.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;U.forEach((function(e){var t=!1;if(n&&(t=d(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.setProps({duration:i})}}))},X.roundArrow='<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>',X}));
//# sourceMappingURL=tippy.umd.min.js.map
import * as Popper from '@popperjs/core';
export type BasePlacement = Popper.Placement;
export type BasePlacement = Popper.BasePlacement;

@@ -45,3 +45,3 @@ export type Placement = Popper.Placement;

allowHTML: boolean;
animation: string | false;
animation: string | boolean;
arrow: boolean | string | SVGElement;

@@ -59,3 +59,6 @@ content: Content;

appendTo: 'parent' | Element | ((ref: Element) => Element);
aria: 'describedby' | 'labelledby' | null;
aria: {
content?: 'auto' | 'describedby' | 'labelledby' | null;
expanded?: 'auto' | boolean;
};
delay: number | [number | null, number | null];

@@ -91,3 +94,3 @@ duration: number | [number | null, number | null];

popper: PopperElement;
update?: (prevProps: Props, nextProps: Props) => void;
onUpdate?: (prevProps: Props, nextProps: Props) => void;
})

@@ -123,3 +126,2 @@ | null;

state: {
currentPlacement: Placement | null;
isEnabled: boolean;

@@ -134,9 +136,2 @@ isVisible: boolean;

export interface PopperChildren {
box: HTMLDivElement;
content: HTMLDivElement;
arrow: HTMLDivElement | null;
backdrop: HTMLDivElement | null;
}
export interface TippyStatics {

@@ -183,3 +178,3 @@ readonly currentInput: {isTouch: boolean};

tippyInstances: Instance<TProps | Props>[],
optionalProps?: Partial<TProps> & {overrides?: Array<keyof Props>},
optionalProps?: Partial<TProps> & {overrides?: Array<keyof TProps>},
) => Instance<TProps>;

@@ -186,0 +181,0 @@

{
"name": "tippy.js",
"version": "6.0.0-alpha.0",
"version": "6.0.0",
"description": "Highly customizable tooltip and popover library",

@@ -32,2 +32,3 @@ "main": "dist/tippy.umd.js",

"themes/",
"headless/",
"index.d.ts"

@@ -40,5 +41,5 @@ ],

"scripts": {
"dev": "NODE_ENV=dev rollup -c --watch",
"build": "node rollup.css && rollup -c && bundlesize",
"build:visual": "NODE_ENV=test rollup -c",
"dev": "cross-env NODE_ENV=dev rollup -c --watch",
"build": "node build/index.js && rollup -c && bundlesize",
"build:visual": "cross-env NODE_ENV=test rollup -c",
"serve": "serve test/visual",

@@ -65,3 +66,3 @@ "test:dom": "jest unit integration --coverage",

{
"path": "dist/tippy-headless.umd.min.js",
"path": "headless/dist/tippy-headless.umd.min.js",
"maxSize": "10 kB"

@@ -96,4 +97,2 @@ },

"@babel/core": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-template-literals": "^7.8.3",
"@babel/preset-env": "^7.8.3",

@@ -103,4 +102,4 @@ "@babel/preset-typescript": "^7.8.3",

"@types/node": "^12.12.25",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"autoprefixer": "^9.7.4",

@@ -112,2 +111,3 @@ "babel-jest": "^24.9.0",

"core-js": "^3.6.4",
"cross-env": "^7.0.0",
"cssnano": "^4.1.10",

@@ -123,5 +123,4 @@ "dotenv": "^8.2.0",

"lint-staged": "^9.5.0",
"parcel": "^2.0.0-alpha.3.2",
"popmotion": "^8.7.1",
"postcss": "^7.0.26",
"poster": "0.0.9",
"prettier": "^1.19.1",

@@ -147,4 +146,4 @@ "promise": "^8.0.3",

"dependencies": {
"@popperjs/core": "^2.0.5"
"@popperjs/core": "^2.0.6"
}
}

@@ -22,6 +22,4 @@ <div align="center">

[View migration guide from v4 to v5](https://github.com/atomiks/tippyjs/blob/master/MIGRATION_GUIDE.md)
[Migration Guide](https://github.com/atomiks/tippyjs/blob/master/MIGRATION_GUIDE.md)
[4.x docs](https://github.com/atomiks/tippyjs/tree/623e8416fbb314741db603c997081512105c0d96/website/src/pages)
## Installation

@@ -33,6 +31,6 @@

# npm
npm i tippy.js@next
npm i tippy.js
# Yarn
yarn add tippy.js@next
yarn add tippy.js
```

@@ -51,3 +49,3 @@

<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@next"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
```

@@ -59,3 +57,4 @@

For detailed usage information, [visit the docs](https://atomiks.github.io/tippyjs/creating-tooltips/).
For detailed usage information,
[visit the docs](https://atomiks.github.io/tippyjs/v6/creation/).

@@ -62,0 +61,0 @@ ## Component Wrappers

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc