Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tippy.js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tippy.js - npm Package Compare versions

Comparing version 0.16.0 to 0.16.1

2

dist/tippy.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Tippy=t()}(this,function(){"use strict";function e(e){var t=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute("x-index",n),n+=1)}}function t(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Se))}}function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function i(e,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r})}function r(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=o(e),n=t.overflow,i=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+i)?e:s(a(e))}function p(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||e.firstElementChild.offsetParent===e)}function l(e){return null!==e.parentNode?l(e.parentNode):e}function f(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?t:window.document.documentElement}function u(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||i.contains(r))return p(a)?a:f(a);var s=l(e);return s.host?u(s.host,t):u(e,l(t).host)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(t,"top"),r=c(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function h(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+i+"Width"].split("px")[0]}function m(e,t,n,i){return Math.max(t["offset"+e],n["client"+e],n["offset"+e],Ne()?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=window.document.body,t=window.document.documentElement,n=Ne()&&window.getComputedStyle(t);return{height:m("Height",e,t,n),width:m("Width",e,t,n)}}function g(e){return je({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};if(Ne())try{t=e.getBoundingClientRect();var n=c(e,"top"),i=c(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?v():{},s=a.width||e.clientWidth||r.right-r.left,p=a.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,f=e.offsetHeight-p;if(l||f){var u=o(e);l-=h(u,"x"),f-=h(u,"y"),r.width-=l,r.height-=f}return g(r)}function w(e,t){var n=Ne(),i="HTML"===t.nodeName,r=b(e),a=b(t),p=s(e),l=g({top:r.top-a.top,left:r.left-a.left,width:r.width,height:r.height});if(i||"BODY"===t.nodeName){var f=o(t),u=n&&i?0:+f.borderTopWidth.split("px")[0],c=n&&i?0:+f.borderLeftWidth.split("px")[0],h=n&&i?0:+f.marginTop.split("px")[0],m=n&&i?0:+f.marginLeft.split("px")[0];l.top-=u-h,l.bottom-=u-h,l.left-=c-m,l.right-=c-m,l.marginTop=h,l.marginLeft=m}return(n?t.contains(p):t===p&&"BODY"!==p.nodeName)&&(l=d(l,t)),l}function y(e){var t=window.document.documentElement,n=w(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),o=c(t),a=c(t,"left");return g({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:r})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||E(a(e)))}function O(e,t,n,i){var r={top:0,left:0},o=u(e,t);if("viewport"===i)r=y(o);else{var p=void 0;"scrollParent"===i?(p=s(a(e)),"BODY"===p.nodeName&&(p=window.document.documentElement)):p="window"===i?window.document.documentElement:i;var l=w(p,o);if("HTML"!==p.nodeName||E(o))r=l;else{var f=v(),c=f.height,d=f.width;r.top+=l.top-l.marginTop,r.bottom=c+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(e){return e.width*e.height}function L(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=O(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},p=Object.keys(s).map(function(e){return je({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}),f=l.length>0?l[0].key:p[0].key,u=e.split("-")[1];return f+(u?"-"+u:"")}function T(e,t,n){return w(n,u(t,n))}function k(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,n){n=n.split("-")[0];var i=k(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",p=o?"height":"width",l=o?"width":"height";return r[a]=t[a]+t[p]/2-i[p]/2,r[s]=n===s?t[s]-i[l]:t[A(s)],r}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function S(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=M(e,function(e){return e[t]===n});return e.indexOf(i)}function H(e,t,n){return(void 0===n?e:e.slice(0,S(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&r(n)&&(t=n(t,e))}),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=T(this.state,this.popper,this.reference),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function I(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function B(e){for(var t=[!1,"ms","webkit","moz","o"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length-1;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function N(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e,t,n,i){var r="BODY"===e.nodeName,o=r?window:e;o.addEventListener(t,n,{passive:!0}),r||F(s(o.parentNode),t,n,i),i.push(o)}function W(e,t,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(e);return F(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function P(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function j(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function q(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=j(this.reference,this.state))}function R(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function U(e,t){var n={position:e.offsets.popper.position},r={"x-placement":e.placement},o=Math.round(e.offsets.popper.left),a=Math.round(e.offsets.popper.top),s=B("transform");return t.gpuAcceleration&&s?(n[s]="translate3d("+o+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=a,n.willChange="top, left"),i(e.instance.popper,je({},n,e.styles)),R(e.instance.popper,je({},r,e.attributes)),e.offsets.arrow&&i(e.arrowElement,e.offsets.arrow),e}function z(e,t,n,i,r){var o=T(r,t,e),a=L(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),n}function Y(e,t,n){var i=M(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function _(e,t){if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=g(e.offsets.popper),o=e.offsets.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",p=a?"top":"left",l=a?"left":"top",f=a?"bottom":"right",u=k(n)[s];o[f]-u<r[p]&&(e.offsets.popper[p]-=r[p]-(o[f]-u)),o[p]+u>r[f]&&(e.offsets.popper[p]+=o[p]+u-r[f]);var c=o[p]+o[s]/2-u/2,d=c-g(e.offsets.popper)[p];return d=Math.max(Math.min(r[s]-u,d),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[p]=Math.round(d),e.offsets.arrow[l]="",e}function K(e){return"end"===e?"start":"start"===e?"end":e}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re.indexOf(e),i=Re.slice(n+1).concat(Re.slice(0,n));return t?i.reverse():i}function G(e,t){if(I(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split("-")[0],r=A(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ue.FLIP:a=[i,r];break;case Ue.CLOCKWISE:a=X(i);break;case Ue.COUNTERCLOCKWISE:a=X(i,!0);break;default:a=t.behavior}return a.forEach(function(s,p){if(i!==s||a.length===p+1)return e;i=e.placement.split("-")[0],r=A(i);var l=g(e.offsets.popper),f=e.offsets.reference,u=Math.floor,c="left"===i&&u(l.right)>u(f.left)||"right"===i&&u(l.left)<u(f.right)||"top"===i&&u(l.bottom)>u(f.top)||"bottom"===i&&u(l.top)<u(f.bottom),d=u(l.left)<u(n.left),h=u(l.right)>u(n.right),m=u(l.top)<u(n.top),v=u(l.bottom)>u(n.bottom),b="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,w=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(w&&"start"===o&&d||w&&"end"===o&&h||!w&&"start"===o&&m||!w&&"end"===o&&v);(c||b||y)&&(e.flipped=!0,(c||b)&&(i=a[p+1]),y&&(o=K(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=je({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,"flip"))}),e}function V(e){var t=g(e.offsets.popper),n=e.offsets.reference,i=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",s=o?"left":"top",p=o?"width":"height";return t[a]<r(n[s])&&(e.offsets.popper[s]=r(n[s])-t[p]),t[s]>r(n[a])&&(e.offsets.popper[s]=r(n[a])),e}function J(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return g(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function Q(e,t,i,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),p=s.indexOf(M(s,function(e){return-1!==e.search(/,|\s/)}));s[p]&&-1===s[p].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=-1!==p?[s.slice(0,p).concat([s[p].split(/\s*,\s*|\s+/)[0]]),[s[p].split(/\s*,\s*|\s+/)[1]].concat(s.slice(p+1))]:[s];return l=l.map(function(e,n){var r=(1===n?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return J(e,r,t,i)})}),l.forEach(function(e,t){e.forEach(function(i,r){n(i)&&(o[t]+=i*("-"===e[r-1]?-1:1))})}),o}function Z(e,t){var i=t.offset,r=e.placement,o=e.offsets,a=o.popper,s=o.reference,p=r.split("-")[0],l=void 0;return l=n(+i)?[+i,0]:Q(i,a,s,p),"left"===p?(a.top+=l[0],a.left-=l[1]):"right"===p?(a.top+=l[0],a.left+=l[1]):"top"===p?(a.left+=l[0],a.top-=l[1]):"bottom"===p&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function $(e,t){var n=t.boundariesElement||f(e.instance.popper),i=O(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=i;var r=t.priority,o=g(e.offsets.popper),a={primary:function(e){var n=o[e];return o[e]<i[e]&&!t.escapeWithReference&&(n=Math.max(o[e],i[e])),Pe({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=o[n];return o[e]>i[e]&&!t.escapeWithReference&&(r=Math.min(o[n],i[e]-("right"===e?o.width:o.height))),Pe({},n,r)}};return r.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";o=je({},o,a[t](e))}),e.offsets.popper=o,e}function ee(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,o=g(e.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",p=a?"width":"height",l={start:Pe({},s,r[s]),end:Pe({},s,r[s]+r[p]-o[p])};e.offsets.popper=je({},o,l[i])}return e}function te(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ne(e){var t=e.placement,n=t.split("-")[0],i=g(e.offsets.popper),r=g(e.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[t]-(a?i[o?"width":"height"]:0),e.placement=A(t),e.offsets.popper=g(i),e}function ie(e){et=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",ie)}function re(e){var t=se(e.target,$e.el),n=se(e.target,$e.popper);if(n){if(pe(Je,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=pe(Je,function(e){return e.el===t}),r=i.popper,o=i.settings,a=o.hideOnClick,s=o.multiple,p=o.trigger;if(!0!==a||et||clearTimeout(r.getAttribute("data-delay")),!s&&et||!s&&-1!==p.indexOf("click"))return xe(i);if(!0!==a||-1!==p.indexOf("click"))return}!se(e.target,$e.controller)&&document.querySelector($e.popper)&&xe()}function oe(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function ae(e){return e.replace(/-.+/,"")}function se(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function pe(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function le(e){var t=e.el,n=e.popper,i=e.settings,r=i.position,o=i.popperOptions,a=i.offset,s=i.distance,p=n.querySelector($e.tooltip),l=Ge({placement:r},o||{},{modifiers:Ge({},o?o.modifiers:{},{flip:Ge({padding:s+5},o&&o.modifiers?o.modifiers.flip:{}),offset:Ge({offset:a},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){p.style.top="",p.style.bottom="",p.style.left="",p.style.right="",p.style[ae(n.getAttribute("x-placement"))]=-(s-Qe.distance)+"px"}});return new _e(t,n,l)}function fe(e,t,n){var i=n.position,r=n.distance,o=n.arrow,a=n.animateFill,s=n.inertia,p=n.animation,l=n.arrowSize,f=n.size,u=n.theme,c=n.html,d=n.zIndex,h=document.createElement("div");h.setAttribute("class","tippy-popper"),h.setAttribute("role","tooltip"),h.setAttribute("aria-hidden","true"),h.setAttribute("id","tippy-tooltip-"+e),h.style.zIndex=d;var m=document.createElement("div");if(m.setAttribute("class","tippy-tooltip tippy-tooltip--"+f+" "+u+"-theme leave"),m.setAttribute("data-animation",p),o){var v=document.createElement("div");v.setAttribute("class","arrow-"+l),v.setAttribute("x-arrow",""),m.appendChild(v)}if(a){m.setAttribute("data-animatefill","");var g=document.createElement("div");g.setAttribute("class","leave"),g.setAttribute("x-circle",""),m.appendChild(g)}s&&m.setAttribute("data-inertia","");var b=document.createElement("div");if(b.setAttribute("class","tippy-tooltip-content"),c){var w=void 0;c instanceof Element?(b.innerHTML=c.innerHTML,w=c.id||"tippy-html-template"):(b.innerHTML=document.getElementById(c.replace("#","")).innerHTML,w=c),h.classList.add("html-template"),h.setAttribute("tabindex","0"),m.setAttribute("data-template-id",w)}else b.innerHTML=t;return m.style[ae(i)]=-(r-Qe.distance)+"px",m.appendChild(b),h.appendChild(m),h}function ue(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function ce(e){Je.push(e)}function de(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function he(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function me(e){var t=this,n=pe(Je,function(e){return e.el===t}),i=n.popper,r=ae(i.getAttribute("x-placement")),o=Math.round(i.offsetWidth/2),a=Math.round(i.offsetHeight/2),s=document.documentElement.offsetWidth||document.body.offsetWidth,p=e.pageX,l=e.pageY,f=void 0,u=void 0;"top"===r?(f=p-o,u=l-2.5*a):"left"===r?(f=p-2*o-15,u=l-a):"right"===r?(f=p+a,u=l-a):"bottom"===r&&(f=p-o,u=l+a/1.5),"top"!==r&&"bottom"!==r||(p+5+o>s?f=s-5-2*o:p-5-o<0&&(f=5)),i.style[oe("transform")]="translate3d("+f+"px, "+u+"px, 0)"}function ve(e,t){t?window.getComputedStyle(t)[oe("transform")]:window.getComputedStyle(e).opacity}function ge(e,t){e.forEach(function(e){e&&t(e.classList)})}function be(e,t){var n=t;e.forEach(function(e){e&&(n=t,e.hasAttribute("x-circle")&&(n=Math.round(n/1.2)),e.style[oe("transitionDuration")]=n+"ms")})}function we(e,t,n){var i=e.popper.querySelector($e.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){!r&&n()},t)}function ye(e,t){return e.style.visibility===t}function Ee(e){var t=e.el,n=(e.popper,e.settings),i=n.appendTo,r=n.followCursor;i.appendChild(e.popper),e.popperInstance?(e.popperInstance.update(),!r&&e.popperInstance.enableEventListeners()):(e.popperInstance=le(e),r&&!et&&(t.addEventListener("mousemove",me),e.popperInstance.disableEventListeners()))}function Oe(e){var t=e.popper,n=e.popperInstance,i=e.settings.stickyDuration,r=function(){return t.style[oe("transitionDuration")]=i+"ms"},o=function(){return t.style[oe("transitionDuration")]=""};nt(function e(){n&&n.scheduleUpdate(),r();var i="visible"===t.style.visibility;window.requestAnimationFrame?i?window.requestAnimationFrame(e):o():i?setTimeout(e,20):o()})}function xe(e){Je.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.appendTo,a=r.hideOnClick,s=r.hideDuration,p=r.trigger;if(o.contains(n)){var l=!0===a||-1!==p.indexOf("focus"),f=!e||n!==e.popper;l&&f&&i.hide(n,s)}})}function Le(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}function Te(e,t,n){if(!t.getAttribute("x-placement"))return!1;var i=e.clientX,r=e.clientY,o=n.interactiveBorder,a=n.distance,s=t.getBoundingClientRect(),p=ae(t.getAttribute("x-placement")),l=o+a,f=s.top-r>o,u=r-s.bottom>o,c=s.left-i>o,d=i-s.right>o;return"top"===p?f=s.top-r>l:"bottom"===p?u=r-s.bottom>l:"left"===p?c=s.left-i>l:"right"===p&&(d=i-s.right>l),f||u||c||d}function ke(e,t){return new it(e,t)}for(var Ae=["native code","[object MutationObserverConstructor]"],Ce="undefined"!=typeof window,Me=["Edge","Trident","Firefox"],Se=0,He=0;He<Me.length;He+=1)if(Ce&&navigator.userAgent.indexOf(Me[He])>=0){Se=1;break}var De=Ce&&function(e){return Ae.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver),Ie=De?e:t,Be=void 0,Ne=function(){return void 0===Be&&(Be=-1!==navigator.appVersion.indexOf("MSIE 10")),Be},Fe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},We=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Pe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Re=qe.slice(3),Ue={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ze={shift:{order:100,enabled:!0,fn:ee},offset:{order:200,enabled:!0,fn:Z,offset:0},preventOverflow:{order:300,enabled:!0,fn:$,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:V},arrow:{order:500,enabled:!0,fn:_,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:G,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ne},hide:{order:800,enabled:!0,fn:te},applyStyle:{order:900,enabled:!0,fn:U,onLoad:z,gpuAcceleration:!0}},Ye={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ze},_e=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Fe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Ie(this.update.bind(this)),this.options=je({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(je({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){o.options.modifiers[t]=je({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return je({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&r(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return We(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return P.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();_e.Utils=("undefined"!=typeof window?window:global).PopperUtils,_e.placements=qe,_e.Defaults=Ye;var Ke=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Xe=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ve="undefined"!=typeof window&&(!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||void 0!==window.operamini),Je=[],Qe=!Ve&&Object.freeze({html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:300,sticky:!1,stickyDuration:200,appendTo:"undefined"!=typeof document?document.body:null,zIndex:9999,popperOptions:{}}),Ze=!Ve&&Object.keys(Qe),$e={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"};"undefined"!=typeof window&&"undefined"!=typeof document&&(Ve||(document.addEventListener("click",re),document.addEventListener("touchstart",ie)));var et=!1,tt=1,nt=function(){var e=void 0;return function(t){clearTimeout(e),window.requestAnimationFrame?window.requestAnimationFrame(function(){e=setTimeout(t,0)}):e=setTimeout(t,0)}}(),it=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ke(this,e),!Ve){this.selector=t,this.settings=Object.freeze(Ge({},Qe,n)),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=Le(t);this._createTooltips(i)}}return Xe(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return Ze.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r?r=!1:"true"===r&&(r=!0),isNaN(parseFloat(r))||(r=parseFloat(r)),n[i]=r}),n.arrow&&(n.animateFill=!1),Ge({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=(n.position,n.delay),o=n.hideDelay,a=n.hideDuration,s=n.duration,p=n.interactive,l=(n.interactiveBorder,n.distance,n.hideOnClick),f=n.trigger,u=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},c=function(){if(u(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,s)},r);t.setAttribute("data-delay",e)}else i.show(t,s)},d=function(e){return i.callbacks.wait?i.callbacks.wait.call(t,c,e):c()},h=function(){if(u(),o){var e=setTimeout(function(){return i.hide(t,a)},o);t.setAttribute("data-hidedelay",e)}else i.hide(t,a)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==l;n&&i&&r?h():d(e)},handleMouseleave:function(i){if(p){var r=function i(r){var o=function(){document.removeEventListener("mousemove",i),h()},a=se(r.target,$e.el),s=se(r.target,$e.popper)===t,p=a===e,l=-1!==f.indexOf("click");if(a&&a!==e)return o();s||p||l||Te(r,t,n)&&o()};return document.addEventListener("mousemove",r)}h()},handleBlur:function(e){!et&&e.relatedTarget&&(se(e.relatedTarget,$e.popper)||h())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e);t.appendTo=t.appendTo||document.body;var i=t.html,r=t.trigger,o=e.title;if(o||i){var a=tt;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),de(e);var s=fe(a,o,t),p=n._getEventListenerHandlers(e,s,t),l=[];r.trim().split(" ").forEach(function(t){return l=l.concat(ue(t,e,p))}),ce({id:a,el:e,popper:s,settings:t,listeners:l,tippyInstance:n}),tt++}}),e.store=Je}},{key:"getPopperElement",value:function(e){try{return pe(Je,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return pe(Je,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"getReference",value:function(e){var t=pe(Je,function(t){return t.el===e});return t||pe(Je,function(t){return t.popper===e})}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeShown.call(e);var i=pe(Je,function(t){return t.popper===e}),r=e.querySelector($e.tooltip),o=e.querySelector($e.circle),a=i.el,s=i.settings,p=s.appendTo,l=s.sticky,f=s.interactive,u=s.followCursor,c=s.flipDuration;be([e,r,o],0),!p.contains(e)&&Ee(i),e.style.visibility="visible",e.setAttribute("aria-hidden","false"),nt(function(){ye(e,"visible")&&(!u&&i.popperInstance.update(),be([r,o],n),!u&&be([e],c),f&&a.classList.add("active"),l&&Oe(i),ve(r,o),ge([r,o],function(e){e.remove("leave"),e.add("enter")}),we(i,n,function(){ye(e,"visible")&&!i.onShownFired&&(f&&e.focus(),r.classList.add("tippy-notransition"),i.onShownFired=!0,t.callbacks.shown.call(e))}))})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeHidden.call(e);var i=pe(Je,function(t){return t.popper===e}),r=e.querySelector($e.tooltip),o=e.querySelector($e.circle),a=(e.querySelector($e.content),i.el),s=i.settings,p=s.appendTo,l=(s.sticky,s.interactive),f=(s.followCursor,s.html),u=s.trigger;i.onShownFired=!1,l&&i.el.classList.remove("active"),r.classList.remove("tippy-notransition"),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===Qe.hideDuration?n=parseInt(r.style[oe("transitionDuration")]):be([r,o],n),ge([r,o],function(e){e.remove("enter"),e.add("leave")}),f&&-1!==u.indexOf("click")&&he(a)&&a.focus(),we(i,n,function(){ye(e,"hidden")&&p.contains(e)&&(i.popperInstance.disableEventListeners(),p.removeChild(e),t.callbacks.hidden.call(e))})}},{key:"destroy",value:function(e){var t=pe(Je,function(t){return t.popper===e}),n=t.el,i=t.popperInstance,r=t.listeners;ye(e,"hidden")||this.hide(e,0),r.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),Je.splice(Je.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=pe(Je,function(t){return t.popper===e}),n=e.querySelector($e.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),de(i))}}]),e}();return ke});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Tippy=t()}(this,function(){"use strict";function e(e){var t=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute("x-index",n),n+=1)}}function t(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Se))}}function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function i(e,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r})}function r(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=o(e),n=t.overflow,i=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+i)?e:s(a(e))}function p(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||e.firstElementChild.offsetParent===e)}function l(e){return null!==e.parentNode?l(e.parentNode):e}function f(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?t:window.document.documentElement}function u(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||i.contains(r))return p(a)?a:f(a);var s=l(e);return s.host?u(s.host,t):u(e,l(t).host)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(t,"top"),r=c(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function h(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+i+"Width"].split("px")[0]}function m(e,t,n,i){return Math.max(t["offset"+e],n["client"+e],n["offset"+e],Ne()?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=window.document.body,t=window.document.documentElement,n=Ne()&&window.getComputedStyle(t);return{height:m("Height",e,t,n),width:m("Width",e,t,n)}}function g(e){return je({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};if(Ne())try{t=e.getBoundingClientRect();var n=c(e,"top"),i=c(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?v():{},s=a.width||e.clientWidth||r.right-r.left,p=a.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,f=e.offsetHeight-p;if(l||f){var u=o(e);l-=h(u,"x"),f-=h(u,"y"),r.width-=l,r.height-=f}return g(r)}function w(e,t){var n=Ne(),i="HTML"===t.nodeName,r=b(e),a=b(t),p=s(e),l=g({top:r.top-a.top,left:r.left-a.left,width:r.width,height:r.height});if(i||"BODY"===t.nodeName){var f=o(t),u=n&&i?0:+f.borderTopWidth.split("px")[0],c=n&&i?0:+f.borderLeftWidth.split("px")[0],h=n&&i?0:+f.marginTop.split("px")[0],m=n&&i?0:+f.marginLeft.split("px")[0];l.top-=u-h,l.bottom-=u-h,l.left-=c-m,l.right-=c-m,l.marginTop=h,l.marginLeft=m}return(n?t.contains(p):t===p&&"BODY"!==p.nodeName)&&(l=d(l,t)),l}function y(e){var t=window.document.documentElement,n=w(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),o=c(t),a=c(t,"left");return g({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:r})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||E(a(e)))}function O(e,t,n,i){var r={top:0,left:0},o=u(e,t);if("viewport"===i)r=y(o);else{var p=void 0;"scrollParent"===i?(p=s(a(e)),"BODY"===p.nodeName&&(p=window.document.documentElement)):p="window"===i?window.document.documentElement:i;var l=w(p,o);if("HTML"!==p.nodeName||E(o))r=l;else{var f=v(),c=f.height,d=f.width;r.top+=l.top-l.marginTop,r.bottom=c+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(e){return e.width*e.height}function T(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=O(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},p=Object.keys(s).map(function(e){return je({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}),f=l.length>0?l[0].key:p[0].key,u=e.split("-")[1];return f+(u?"-"+u:"")}function L(e,t,n){return w(n,u(t,n))}function k(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,n){n=n.split("-")[0];var i=k(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",p=o?"height":"width",l=o?"width":"height";return r[a]=t[a]+t[p]/2-i[p]/2,r[s]=n===s?t[s]-i[l]:t[A(s)],r}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function S(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=M(e,function(e){return e[t]===n});return e.indexOf(i)}function H(e,t,n){return(void 0===n?e:e.slice(0,S(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&r(n)&&(t=n(t,e))}),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference),e.placement=T(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function I(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function B(e){for(var t=[!1,"ms","webkit","moz","o"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length-1;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function N(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e,t,n,i){var r="BODY"===e.nodeName,o=r?window:e;o.addEventListener(t,n,{passive:!0}),r||F(s(o.parentNode),t,n,i),i.push(o)}function W(e,t,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(e);return F(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function P(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function j(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function q(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=j(this.reference,this.state))}function R(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function U(e,t){var n={position:e.offsets.popper.position},r={"x-placement":e.placement},o=Math.round(e.offsets.popper.left),a=Math.round(e.offsets.popper.top),s=B("transform");return t.gpuAcceleration&&s?(n[s]="translate3d("+o+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=a,n.willChange="top, left"),i(e.instance.popper,je({},n,e.styles)),R(e.instance.popper,je({},r,e.attributes)),e.offsets.arrow&&i(e.arrowElement,e.offsets.arrow),e}function z(e,t,n,i,r){var o=L(r,t,e),a=T(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),n}function Y(e,t,n){var i=M(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function _(e,t){if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=g(e.offsets.popper),o=e.offsets.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",p=a?"top":"left",l=a?"left":"top",f=a?"bottom":"right",u=k(n)[s];o[f]-u<r[p]&&(e.offsets.popper[p]-=r[p]-(o[f]-u)),o[p]+u>r[f]&&(e.offsets.popper[p]+=o[p]+u-r[f]);var c=o[p]+o[s]/2-u/2,d=c-g(e.offsets.popper)[p];return d=Math.max(Math.min(r[s]-u,d),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[p]=Math.round(d),e.offsets.arrow[l]="",e}function K(e){return"end"===e?"start":"start"===e?"end":e}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re.indexOf(e),i=Re.slice(n+1).concat(Re.slice(0,n));return t?i.reverse():i}function G(e,t){if(I(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split("-")[0],r=A(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ue.FLIP:a=[i,r];break;case Ue.CLOCKWISE:a=X(i);break;case Ue.COUNTERCLOCKWISE:a=X(i,!0);break;default:a=t.behavior}return a.forEach(function(s,p){if(i!==s||a.length===p+1)return e;i=e.placement.split("-")[0],r=A(i);var l=g(e.offsets.popper),f=e.offsets.reference,u=Math.floor,c="left"===i&&u(l.right)>u(f.left)||"right"===i&&u(l.left)<u(f.right)||"top"===i&&u(l.bottom)>u(f.top)||"bottom"===i&&u(l.top)<u(f.bottom),d=u(l.left)<u(n.left),h=u(l.right)>u(n.right),m=u(l.top)<u(n.top),v=u(l.bottom)>u(n.bottom),b="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,w=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(w&&"start"===o&&d||w&&"end"===o&&h||!w&&"start"===o&&m||!w&&"end"===o&&v);(c||b||y)&&(e.flipped=!0,(c||b)&&(i=a[p+1]),y&&(o=K(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=je({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,"flip"))}),e}function V(e){var t=g(e.offsets.popper),n=e.offsets.reference,i=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",s=o?"left":"top",p=o?"width":"height";return t[a]<r(n[s])&&(e.offsets.popper[s]=r(n[s])-t[p]),t[s]>r(n[a])&&(e.offsets.popper[s]=r(n[a])),e}function J(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return g(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function Q(e,t,i,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),p=s.indexOf(M(s,function(e){return-1!==e.search(/,|\s/)}));s[p]&&-1===s[p].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=-1!==p?[s.slice(0,p).concat([s[p].split(/\s*,\s*|\s+/)[0]]),[s[p].split(/\s*,\s*|\s+/)[1]].concat(s.slice(p+1))]:[s];return l=l.map(function(e,n){var r=(1===n?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return J(e,r,t,i)})}),l.forEach(function(e,t){e.forEach(function(i,r){n(i)&&(o[t]+=i*("-"===e[r-1]?-1:1))})}),o}function Z(e,t){var i=t.offset,r=e.placement,o=e.offsets,a=o.popper,s=o.reference,p=r.split("-")[0],l=void 0;return l=n(+i)?[+i,0]:Q(i,a,s,p),"left"===p?(a.top+=l[0],a.left-=l[1]):"right"===p?(a.top+=l[0],a.left+=l[1]):"top"===p?(a.left+=l[0],a.top-=l[1]):"bottom"===p&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function $(e,t){var n=t.boundariesElement||f(e.instance.popper),i=O(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=i;var r=t.priority,o=g(e.offsets.popper),a={primary:function(e){var n=o[e];return o[e]<i[e]&&!t.escapeWithReference&&(n=Math.max(o[e],i[e])),Pe({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=o[n];return o[e]>i[e]&&!t.escapeWithReference&&(r=Math.min(o[n],i[e]-("right"===e?o.width:o.height))),Pe({},n,r)}};return r.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";o=je({},o,a[t](e))}),e.offsets.popper=o,e}function ee(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,o=g(e.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",p=a?"width":"height",l={start:Pe({},s,r[s]),end:Pe({},s,r[s]+r[p]-o[p])};e.offsets.popper=je({},o,l[i])}return e}function te(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ne(e){var t=e.placement,n=t.split("-")[0],i=g(e.offsets.popper),r=g(e.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[t]-(a?i[o?"width":"height"]:0),e.placement=A(t),e.offsets.popper=g(i),e}function ie(e){et=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",ie)}function re(e){var t=se(e.target,$e.el),n=se(e.target,$e.popper);if(n){if(pe(Je,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=pe(Je,function(e){return e.el===t}),r=i.popper,o=i.settings,a=o.hideOnClick,s=o.multiple,p=o.trigger;if(!0!==a||et||clearTimeout(r.getAttribute("data-delay")),!s&&et||!s&&-1!==p.indexOf("click"))return xe(i);if(!0!==a||-1!==p.indexOf("click"))return}!se(e.target,$e.controller)&&document.querySelector($e.popper)&&xe()}function oe(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function ae(e){return e.replace(/-.+/,"")}function se(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function pe(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function le(e){var t=e.el,n=e.popper,i=e.settings,r=i.position,o=i.popperOptions,a=i.offset,s=i.distance,p=n.querySelector($e.tooltip),l=Ge({placement:r},o||{},{modifiers:Ge({},o?o.modifiers:{},{flip:Ge({padding:s+5},o&&o.modifiers?o.modifiers.flip:{}),offset:Ge({offset:a},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){p.style.top="",p.style.bottom="",p.style.left="",p.style.right="",p.style[ae(n.getAttribute("x-placement"))]=-(s-Qe.distance)+"px"}});return new _e(t,n,l)}function fe(e,t,n){var i=n.position,r=n.distance,o=n.arrow,a=n.animateFill,s=n.inertia,p=n.animation,l=n.arrowSize,f=n.size,u=n.theme,c=n.html,d=n.zIndex,h=document.createElement("div");h.setAttribute("class","tippy-popper"),h.setAttribute("role","tooltip"),h.setAttribute("aria-hidden","true"),h.setAttribute("id","tippy-tooltip-"+e),h.style.zIndex=d;var m=document.createElement("div");if(m.setAttribute("class","tippy-tooltip tippy-tooltip--"+f+" "+u+"-theme leave"),m.setAttribute("data-animation",p),o){var v=document.createElement("div");v.setAttribute("class","arrow-"+l),v.setAttribute("x-arrow",""),m.appendChild(v)}if(a){m.setAttribute("data-animatefill","");var g=document.createElement("div");g.setAttribute("class","leave"),g.setAttribute("x-circle",""),m.appendChild(g)}s&&m.setAttribute("data-inertia","");var b=document.createElement("div");if(b.setAttribute("class","tippy-tooltip-content"),c){var w=void 0;c instanceof Element?(b.innerHTML=c.innerHTML,w=c.id||"tippy-html-template"):(b.innerHTML=document.getElementById(c.replace("#","")).innerHTML,w=c),h.classList.add("html-template"),h.setAttribute("tabindex","0"),m.setAttribute("data-template-id",w)}else b.innerHTML=t;return m.style[ae(i)]=-(r-Qe.distance)+"px",m.appendChild(b),h.appendChild(m),h}function ue(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function ce(e){Je.push(e)}function de(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function he(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function me(e){var t=this,n=pe(Je,function(e){return e.el===t}),i=n.popper,r=ae(i.getAttribute("x-placement")),o=Math.round(i.offsetWidth/2),a=Math.round(i.offsetHeight/2),s=document.documentElement.offsetWidth||document.body.offsetWidth,p=e.pageX,l=e.pageY,f=void 0,u=void 0;"top"===r?(f=p-o,u=l-2.5*a):"left"===r?(f=p-2*o-15,u=l-a):"right"===r?(f=p+a,u=l-a):"bottom"===r&&(f=p-o,u=l+a/1.5),"top"!==r&&"bottom"!==r||(p+5+o>s?f=s-5-2*o:p-5-o<0&&(f=5)),i.style[oe("transform")]="translate3d("+f+"px, "+u+"px, 0)"}function ve(e,t){t?window.getComputedStyle(t)[oe("transform")]:window.getComputedStyle(e).opacity}function ge(e,t){e.forEach(function(e){e&&t(e.classList)})}function be(e,t){var n=t;e.forEach(function(e){e&&(n=t,e.hasAttribute("x-circle")&&(n=Math.round(n/1.2)),e.style[oe("transitionDuration")]=n+"ms")})}function we(e,t,n){var i=e.popper.querySelector($e.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){!r&&n()},t)}function ye(e,t){return e.style.visibility===t}function Ee(e){var t=e.el,n=(e.popper,e.settings),i=n.appendTo,r=n.followCursor;i.appendChild(e.popper),e.popperInstance?(e.popperInstance.update(),!r&&e.popperInstance.enableEventListeners()):(e.popperInstance=le(e),r&&!et&&(t.addEventListener("mousemove",me),e.popperInstance.disableEventListeners()))}function Oe(e){var t=e.popper,n=e.popperInstance,i=e.settings.stickyDuration,r=function(){return t.style[oe("transitionDuration")]=i+"ms"},o=function(){return t.style[oe("transitionDuration")]=""};nt(function e(){n&&n.scheduleUpdate(),r();var i="visible"===t.style.visibility;window.requestAnimationFrame?i?window.requestAnimationFrame(e):o():i?setTimeout(e,20):o()})}function xe(e){Je.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.appendTo,a=r.hideOnClick,s=r.hideDuration,p=r.trigger;if(o.contains(n)){var l=!0===a||-1!==p.indexOf("focus"),f=!e||n!==e.popper;l&&f&&i.hide(n,s)}})}function Te(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}function Le(e,t,n){if(!t.getAttribute("x-placement"))return!1;var i=e.clientX,r=e.clientY,o=n.interactiveBorder,a=n.distance,s=t.getBoundingClientRect(),p=ae(t.getAttribute("x-placement")),l=o+a,f=s.top-r>o,u=r-s.bottom>o,c=s.left-i>o,d=i-s.right>o;return"top"===p?f=s.top-r>l:"bottom"===p?u=r-s.bottom>l:"left"===p?c=s.left-i>l:"right"===p&&(d=i-s.right>l),f||u||c||d}function ke(e,t){return new it(e,t)}for(var Ae=["native code","[object MutationObserverConstructor]"],Ce="undefined"!=typeof window,Me=["Edge","Trident","Firefox"],Se=0,He=0;He<Me.length;He+=1)if(Ce&&navigator.userAgent.indexOf(Me[He])>=0){Se=1;break}var De=Ce&&function(e){return Ae.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver),Ie=De?e:t,Be=void 0,Ne=function(){return void 0===Be&&(Be=-1!==navigator.appVersion.indexOf("MSIE 10")),Be},Fe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},We=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Pe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Re=qe.slice(3),Ue={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ze={shift:{order:100,enabled:!0,fn:ee},offset:{order:200,enabled:!0,fn:Z,offset:0},preventOverflow:{order:300,enabled:!0,fn:$,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:V},arrow:{order:500,enabled:!0,fn:_,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:G,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ne},hide:{order:800,enabled:!0,fn:te},applyStyle:{order:900,enabled:!0,fn:U,onLoad:z,gpuAcceleration:!0}},Ye={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ze},_e=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Fe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Ie(this.update.bind(this)),this.options=je({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(je({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){o.options.modifiers[t]=je({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return je({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&r(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return We(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return P.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();_e.Utils=("undefined"!=typeof window?window:global).PopperUtils,_e.placements=qe,_e.Defaults=Ye;var Ke=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Xe=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ve="undefined"!=typeof window&&(!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||void 0!==window.operamini),Je=[],Qe=!Ve&&Object.freeze({html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:300,sticky:!1,stickyDuration:200,appendTo:"undefined"!=typeof document?document.body:null,zIndex:9999,popperOptions:{}}),Ze=!Ve&&Object.keys(Qe),$e={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"};"undefined"!=typeof window&&"undefined"!=typeof document&&(Ve||(document.addEventListener("click",re),document.addEventListener("touchstart",ie)));var et=!1,tt=1,nt=function(){var e=void 0;return function(t){clearTimeout(e),window.requestAnimationFrame?window.requestAnimationFrame(function(){e=setTimeout(t,0)}):e=setTimeout(t,0)}}(),it=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ke(this,e),!Ve){this.selector=t,this.settings=Object.freeze(Ge({},Qe,n)),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=Te(t);this._createTooltips(i)}}return Xe(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return Ze.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r?r=!1:"true"===r&&(r=!0),isNaN(parseFloat(r))||(r=parseFloat(r)),n[i]=r}),n.arrow&&(n.animateFill=!1),Ge({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=(n.position,n.delay),o=n.hideDelay,a=n.hideDuration,s=n.duration,p=n.interactive,l=(n.interactiveBorder,n.distance,n.hideOnClick),f=n.trigger,u=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},c=function(){if(u(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,s)},r);t.setAttribute("data-delay",e)}else i.show(t,s)},d=function(e){return i.callbacks.wait?i.callbacks.wait.call(t,c,e):c()},h=function(){if(u(),o){var e=setTimeout(function(){return i.hide(t,a)},o);t.setAttribute("data-hidedelay",e)}else i.hide(t,a)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==l;n&&i&&r?h():d(e)},handleMouseleave:function(i){if(p){var r=function i(r){var o=function(){document.removeEventListener("mousemove",i),h()},a=se(r.target,$e.el),s=se(r.target,$e.popper)===t,p=a===e,l=-1!==f.indexOf("click");if(a&&a!==e)return o();s||p||l||Le(r,t,n)&&o()};return document.addEventListener("mousemove",r)}h()},handleBlur:function(e){!et&&e.relatedTarget&&(se(e.relatedTarget,$e.popper)||h())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e);t.appendTo=t.appendTo||document.body;var i=t.html,r=t.trigger,o=e.title;if(o||i){var a=tt;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),de(e);var s=fe(a,o,t),p=n._getEventListenerHandlers(e,s,t),l=[];r.trim().split(" ").forEach(function(t){return l=l.concat(ue(t,e,p))}),ce({id:a,el:e,popper:s,settings:t,listeners:l,tippyInstance:n}),tt++}}),e.store=Je}},{key:"getPopperElement",value:function(e){try{return pe(Je,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return pe(Je,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"getReference",value:function(e){return pe(Je,function(t){return t.el===e})||pe(Je,function(t){return t.popper===e})}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeShown.call(e);var i=pe(Je,function(t){return t.popper===e}),r=e.querySelector($e.tooltip),o=e.querySelector($e.circle),a=i.el,s=i.settings,p=s.appendTo,l=s.sticky,f=s.interactive,u=s.followCursor,c=s.flipDuration;be([e,r,o],0),!p.contains(e)&&Ee(i),e.style.visibility="visible",e.setAttribute("aria-hidden","false"),nt(function(){ye(e,"visible")&&(!u&&i.popperInstance.update(),be([r,o],n),!u&&be([e],c),f&&a.classList.add("active"),l&&Oe(i),ve(r,o),ge([r,o],function(e){e.contains("tippy-notransition")&&e.remove("tippy-notransition"),e.remove("leave"),e.add("enter")}),we(i,n,function(){ye(e,"visible")&&!i.onShownFired&&(f&&e.focus(),r.classList.add("tippy-notransition"),i.onShownFired=!0,t.callbacks.shown.call(e))}))})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeHidden.call(e);var i=pe(Je,function(t){return t.popper===e}),r=e.querySelector($e.tooltip),o=e.querySelector($e.circle),a=(e.querySelector($e.content),i.el),s=i.settings,p=s.appendTo,l=(s.sticky,s.interactive),f=(s.followCursor,s.html),u=s.trigger;i.onShownFired=!1,l&&a.classList.remove("active"),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===Qe.hideDuration?n=parseInt(r.style[oe("transitionDuration")]):be([r,o],n),ge([r,o],function(e){e.contains("tippy-tooltip")&&e.remove("tippy-notransition"),e.remove("enter"),e.add("leave")}),f&&-1!==u.indexOf("click")&&he(a)&&a.focus(),we(i,n,function(){ye(e,"hidden")&&p.contains(e)&&(i.popperInstance.disableEventListeners(),p.removeChild(e),t.callbacks.hidden.call(e))})}},{key:"destroy",value:function(e){var t=pe(Je,function(t){return t.popper===e}),n=t.el,i=t.popperInstance,r=t.listeners;ye(e,"hidden")||this.hide(e,0),r.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),Je.splice(Je.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=pe(Je,function(t){return t.popper===e}),n=e.querySelector($e.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),de(i))}}]),e}();return ke});

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],t):e.Tippy=t(e.Popper)}(this,function(e){"use strict";function t(e){q=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",t)}function n(e){var t=o(e.target,H.el),n=o(e.target,H.popper);if(n){if(a(I,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=a(I,function(e){return e.el===t}),r=i.popper,s=i.settings,l=s.hideOnClick,u=s.multiple,c=s.trigger;if(!0!==l||q||clearTimeout(r.getAttribute("data-delay")),!u&&q||!u&&-1!==c.indexOf("click"))return E(i);if(!0!==l||-1!==c.indexOf("click"))return}!o(e.target,H.controller)&&document.querySelector(H.popper)&&E()}function i(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function r(e){return e.replace(/-.+/,"")}function o(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function a(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function s(t){var n=t.el,i=t.popper,o=t.settings,a=o.position,s=o.popperOptions,l=o.offset,u=o.distance,c=i.querySelector(H.tooltip),p=x({placement:a},s||{},{modifiers:x({},s?s.modifiers:{},{flip:x({padding:u+5},s&&s.modifiers?s.modifiers.flip:{}),offset:x({offset:l},s&&s.modifiers?s.modifiers.offset:{})}),onUpdate:function(){c.style.top="",c.style.bottom="",c.style.left="",c.style.right="",c.style[r(i.getAttribute("x-placement"))]=-(u-M.distance)+"px"}});return new e(n,i,p)}function l(e,t,n){var i=n.position,o=n.distance,a=n.arrow,s=n.animateFill,l=n.inertia,u=n.animation,c=n.arrowSize,p=n.size,d=n.theme,f=n.html,m=n.zIndex,v=document.createElement("div");v.setAttribute("class","tippy-popper"),v.setAttribute("role","tooltip"),v.setAttribute("aria-hidden","true"),v.setAttribute("id","tippy-tooltip-"+e),v.style.zIndex=m;var h=document.createElement("div");if(h.setAttribute("class","tippy-tooltip tippy-tooltip--"+p+" "+d+"-theme leave"),h.setAttribute("data-animation",u),a){var y=document.createElement("div");y.setAttribute("class","arrow-"+c),y.setAttribute("x-arrow",""),h.appendChild(y)}if(s){h.setAttribute("data-animatefill","");var b=document.createElement("div");b.setAttribute("class","leave"),b.setAttribute("x-circle",""),h.appendChild(b)}l&&h.setAttribute("data-inertia","");var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip-content"),f){var w=void 0;f instanceof Element?(g.innerHTML=f.innerHTML,w=f.id||"tippy-html-template"):(g.innerHTML=document.getElementById(f.replace("#","")).innerHTML,w=f),v.classList.add("html-template"),v.setAttribute("tabindex","0"),h.setAttribute("data-template-id",w)}else g.innerHTML=t;return h.style[r(i)]=-(o-M.distance)+"px",h.appendChild(g),v.appendChild(h),v}function u(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function c(e){I.push(e)}function p(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function d(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function f(e){var t=this,n=a(I,function(e){return e.el===t}),o=n.popper,s=r(o.getAttribute("x-placement")),l=Math.round(o.offsetWidth/2),u=Math.round(o.offsetHeight/2),c=document.documentElement.offsetWidth||document.body.offsetWidth,p=e.pageX,d=e.pageY,f=void 0,m=void 0;"top"===s?(f=p-l,m=d-2.5*u):"left"===s?(f=p-2*l-15,m=d-u):"right"===s?(f=p+u,m=d-u):"bottom"===s&&(f=p-l,m=d+u/1.5),"top"!==s&&"bottom"!==s||(p+5+l>c?f=c-5-2*l:p-5-l<0&&(f=5)),o.style[i("transform")]="translate3d("+f+"px, "+m+"px, 0)"}function m(e,t){t?window.getComputedStyle(t)[i("transform")]:window.getComputedStyle(e).opacity}function v(e,t){e.forEach(function(e){e&&t(e.classList)})}function h(e,t){var n=t;e.forEach(function(e){e&&(n=t,e.hasAttribute("x-circle")&&(n=Math.round(n/1.2)),e.style[i("transitionDuration")]=n+"ms")})}function y(e,t,n){var i=e.popper.querySelector(H.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){!r&&n()},t)}function b(e,t){return e.style.visibility===t}function g(e){var t=e.el,n=(e.popper,e.settings),i=n.appendTo,r=n.followCursor;i.appendChild(e.popper),e.popperInstance?(e.popperInstance.update(),!r&&e.popperInstance.enableEventListeners()):(e.popperInstance=s(e),r&&!q&&(t.addEventListener("mousemove",f),e.popperInstance.disableEventListeners()))}function w(e){var t=e.popper,n=e.popperInstance,r=e.settings.stickyDuration,o=function(){return t.style[i("transitionDuration")]=r+"ms"},a=function(){return t.style[i("transitionDuration")]=""};D(function e(){n&&n.scheduleUpdate(),o();var i="visible"===t.style.visibility;window.requestAnimationFrame?i?window.requestAnimationFrame(e):a():i?setTimeout(e,20):a()})}function E(e){I.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.appendTo,a=r.hideOnClick,s=r.hideDuration,l=r.trigger;if(o.contains(n)){var u=!0===a||-1!==l.indexOf("focus"),c=!e||n!==e.popper;u&&c&&i.hide(n,s)}})}function A(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}function T(e,t,n){if(!t.getAttribute("x-placement"))return!1;var i=e.clientX,o=e.clientY,a=n.interactiveBorder,s=n.distance,l=t.getBoundingClientRect(),u=r(t.getAttribute("x-placement")),c=a+s,p=l.top-o>a,d=o-l.bottom>a,f=l.left-i>a,m=i-l.right>a;return"top"===u?p=l.top-o>c:"bottom"===u?d=o-l.bottom>c:"left"===u?f=l.left-i>c:"right"===u&&(m=i-l.right>c),p||d||f||m}function k(e,t){return new z(e,t)}e="default"in e?e.default:e;var L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},C="undefined"!=typeof window&&(!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||void 0!==window.operamini),I=[],M=!C&&Object.freeze({html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:300,sticky:!1,stickyDuration:200,appendTo:"undefined"!=typeof document?document.body:null,zIndex:9999,popperOptions:{}}),O=!C&&Object.keys(M),H={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"};"undefined"!=typeof window&&"undefined"!=typeof document&&(C||(document.addEventListener("click",n),document.addEventListener("touchstart",t)));var q=!1,F=1,D=function(){var e=void 0;return function(t){clearTimeout(e),window.requestAnimationFrame?window.requestAnimationFrame(function(){e=setTimeout(t,0)}):e=setTimeout(t,0)}}(),z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(L(this,e),!C){this.selector=t,this.settings=Object.freeze(x({},M,n)),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=A(t);this._createTooltips(i)}}return S(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return O.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r?r=!1:"true"===r&&(r=!0),isNaN(parseFloat(r))||(r=parseFloat(r)),n[i]=r}),n.arrow&&(n.animateFill=!1),x({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=(n.position,n.delay),a=n.hideDelay,s=n.hideDuration,l=n.duration,u=n.interactive,c=(n.interactiveBorder,n.distance,n.hideOnClick),p=n.trigger,d=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},f=function(){if(d(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,l)},r);t.setAttribute("data-delay",e)}else i.show(t,l)},m=function(e){return i.callbacks.wait?i.callbacks.wait.call(t,f,e):f()},v=function(){if(d(),a){var e=setTimeout(function(){return i.hide(t,s)},a);t.setAttribute("data-hidedelay",e)}else i.hide(t,s)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==c;n&&i&&r?v():m(e)},handleMouseleave:function(i){if(u){var r=function i(r){var a=function(){document.removeEventListener("mousemove",i),v()},s=o(r.target,H.el),l=o(r.target,H.popper)===t,u=s===e,c=-1!==p.indexOf("click");if(s&&s!==e)return a();l||u||c||T(r,t,n)&&a()};return document.addEventListener("mousemove",r)}v()},handleBlur:function(e){!q&&e.relatedTarget&&(o(e.relatedTarget,H.popper)||v())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e);t.appendTo=t.appendTo||document.body;var i=t.html,r=t.trigger,o=e.title;if(o||i){var a=F;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),p(e);var s=l(a,o,t),d=n._getEventListenerHandlers(e,s,t),f=[];r.trim().split(" ").forEach(function(t){return f=f.concat(u(t,e,d))}),c({id:a,el:e,popper:s,settings:t,listeners:f,tippyInstance:n}),F++}}),e.store=I}},{key:"getPopperElement",value:function(e){try{return a(I,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return a(I,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"getReference",value:function(e){var t=a(I,function(t){return t.el===e});return t||a(I,function(t){return t.popper===e})}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeShown.call(e);var i=a(I,function(t){return t.popper===e}),r=e.querySelector(H.tooltip),o=e.querySelector(H.circle),s=i.el,l=i.settings,u=l.appendTo,c=l.sticky,p=l.interactive,d=l.followCursor,f=l.flipDuration;h([e,r,o],0),!u.contains(e)&&g(i),e.style.visibility="visible",e.setAttribute("aria-hidden","false"),D(function(){b(e,"visible")&&(!d&&i.popperInstance.update(),h([r,o],n),!d&&h([e],f),p&&s.classList.add("active"),c&&w(i),m(r,o),v([r,o],function(e){e.remove("leave"),e.add("enter")}),y(i,n,function(){b(e,"visible")&&!i.onShownFired&&(p&&e.focus(),r.classList.add("tippy-notransition"),i.onShownFired=!0,t.callbacks.shown.call(e))}))})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeHidden.call(e);var r=a(I,function(t){return t.popper===e}),o=e.querySelector(H.tooltip),s=e.querySelector(H.circle),l=(e.querySelector(H.content),r.el),u=r.settings,c=u.appendTo,p=(u.sticky,u.interactive),f=(u.followCursor,u.html),m=u.trigger;r.onShownFired=!1,p&&r.el.classList.remove("active"),o.classList.remove("tippy-notransition"),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===M.hideDuration?n=parseInt(o.style[i("transitionDuration")]):h([o,s],n),v([o,s],function(e){e.remove("enter"),e.add("leave")}),f&&-1!==m.indexOf("click")&&d(l)&&l.focus(),y(r,n,function(){b(e,"hidden")&&c.contains(e)&&(r.popperInstance.disableEventListeners(),c.removeChild(e),t.callbacks.hidden.call(e))})}},{key:"destroy",value:function(e){var t=a(I,function(t){return t.popper===e}),n=t.el,i=t.popperInstance,r=t.listeners;b(e,"hidden")||this.hide(e,0),r.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),I.splice(I.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=a(I,function(t){return t.popper===e}),n=e.querySelector(H.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),p(i))}}]),e}();return k});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],t):e.Tippy=t(e.Popper)}(this,function(e){"use strict";function t(e){q=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",t)}function n(e){var t=o(e.target,H.el),n=o(e.target,H.popper);if(n){if(a(I,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=a(I,function(e){return e.el===t}),r=i.popper,s=i.settings,l=s.hideOnClick,u=s.multiple,c=s.trigger;if(!0!==l||q||clearTimeout(r.getAttribute("data-delay")),!u&&q||!u&&-1!==c.indexOf("click"))return E(i);if(!0!==l||-1!==c.indexOf("click"))return}!o(e.target,H.controller)&&document.querySelector(H.popper)&&E()}function i(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function r(e){return e.replace(/-.+/,"")}function o(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function a(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function s(t){var n=t.el,i=t.popper,o=t.settings,a=o.position,s=o.popperOptions,l=o.offset,u=o.distance,c=i.querySelector(H.tooltip),p=x({placement:a},s||{},{modifiers:x({},s?s.modifiers:{},{flip:x({padding:u+5},s&&s.modifiers?s.modifiers.flip:{}),offset:x({offset:l},s&&s.modifiers?s.modifiers.offset:{})}),onUpdate:function(){c.style.top="",c.style.bottom="",c.style.left="",c.style.right="",c.style[r(i.getAttribute("x-placement"))]=-(u-M.distance)+"px"}});return new e(n,i,p)}function l(e,t,n){var i=n.position,o=n.distance,a=n.arrow,s=n.animateFill,l=n.inertia,u=n.animation,c=n.arrowSize,p=n.size,d=n.theme,f=n.html,m=n.zIndex,v=document.createElement("div");v.setAttribute("class","tippy-popper"),v.setAttribute("role","tooltip"),v.setAttribute("aria-hidden","true"),v.setAttribute("id","tippy-tooltip-"+e),v.style.zIndex=m;var h=document.createElement("div");if(h.setAttribute("class","tippy-tooltip tippy-tooltip--"+p+" "+d+"-theme leave"),h.setAttribute("data-animation",u),a){var y=document.createElement("div");y.setAttribute("class","arrow-"+c),y.setAttribute("x-arrow",""),h.appendChild(y)}if(s){h.setAttribute("data-animatefill","");var b=document.createElement("div");b.setAttribute("class","leave"),b.setAttribute("x-circle",""),h.appendChild(b)}l&&h.setAttribute("data-inertia","");var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip-content"),f){var w=void 0;f instanceof Element?(g.innerHTML=f.innerHTML,w=f.id||"tippy-html-template"):(g.innerHTML=document.getElementById(f.replace("#","")).innerHTML,w=f),v.classList.add("html-template"),v.setAttribute("tabindex","0"),h.setAttribute("data-template-id",w)}else g.innerHTML=t;return h.style[r(i)]=-(o-M.distance)+"px",h.appendChild(g),v.appendChild(h),v}function u(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function c(e){I.push(e)}function p(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function d(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function f(e){var t=this,n=a(I,function(e){return e.el===t}),o=n.popper,s=r(o.getAttribute("x-placement")),l=Math.round(o.offsetWidth/2),u=Math.round(o.offsetHeight/2),c=document.documentElement.offsetWidth||document.body.offsetWidth,p=e.pageX,d=e.pageY,f=void 0,m=void 0;"top"===s?(f=p-l,m=d-2.5*u):"left"===s?(f=p-2*l-15,m=d-u):"right"===s?(f=p+u,m=d-u):"bottom"===s&&(f=p-l,m=d+u/1.5),"top"!==s&&"bottom"!==s||(p+5+l>c?f=c-5-2*l:p-5-l<0&&(f=5)),o.style[i("transform")]="translate3d("+f+"px, "+m+"px, 0)"}function m(e,t){t?window.getComputedStyle(t)[i("transform")]:window.getComputedStyle(e).opacity}function v(e,t){e.forEach(function(e){e&&t(e.classList)})}function h(e,t){var n=t;e.forEach(function(e){e&&(n=t,e.hasAttribute("x-circle")&&(n=Math.round(n/1.2)),e.style[i("transitionDuration")]=n+"ms")})}function y(e,t,n){var i=e.popper.querySelector(H.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){!r&&n()},t)}function b(e,t){return e.style.visibility===t}function g(e){var t=e.el,n=(e.popper,e.settings),i=n.appendTo,r=n.followCursor;i.appendChild(e.popper),e.popperInstance?(e.popperInstance.update(),!r&&e.popperInstance.enableEventListeners()):(e.popperInstance=s(e),r&&!q&&(t.addEventListener("mousemove",f),e.popperInstance.disableEventListeners()))}function w(e){var t=e.popper,n=e.popperInstance,r=e.settings.stickyDuration,o=function(){return t.style[i("transitionDuration")]=r+"ms"},a=function(){return t.style[i("transitionDuration")]=""};D(function e(){n&&n.scheduleUpdate(),o();var i="visible"===t.style.visibility;window.requestAnimationFrame?i?window.requestAnimationFrame(e):a():i?setTimeout(e,20):a()})}function E(e){I.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.appendTo,a=r.hideOnClick,s=r.hideDuration,l=r.trigger;if(o.contains(n)){var u=!0===a||-1!==l.indexOf("focus"),c=!e||n!==e.popper;u&&c&&i.hide(n,s)}})}function A(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}function T(e,t,n){if(!t.getAttribute("x-placement"))return!1;var i=e.clientX,o=e.clientY,a=n.interactiveBorder,s=n.distance,l=t.getBoundingClientRect(),u=r(t.getAttribute("x-placement")),c=a+s,p=l.top-o>a,d=o-l.bottom>a,f=l.left-i>a,m=i-l.right>a;return"top"===u?p=l.top-o>c:"bottom"===u?d=o-l.bottom>c:"left"===u?f=l.left-i>c:"right"===u&&(m=i-l.right>c),p||d||f||m}function k(e,t){return new z(e,t)}e="default"in e?e.default:e;var L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},C="undefined"!=typeof window&&(!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||void 0!==window.operamini),I=[],M=!C&&Object.freeze({html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:300,sticky:!1,stickyDuration:200,appendTo:"undefined"!=typeof document?document.body:null,zIndex:9999,popperOptions:{}}),O=!C&&Object.keys(M),H={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"};"undefined"!=typeof window&&"undefined"!=typeof document&&(C||(document.addEventListener("click",n),document.addEventListener("touchstart",t)));var q=!1,F=1,D=function(){var e=void 0;return function(t){clearTimeout(e),window.requestAnimationFrame?window.requestAnimationFrame(function(){e=setTimeout(t,0)}):e=setTimeout(t,0)}}(),z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(L(this,e),!C){this.selector=t,this.settings=Object.freeze(x({},M,n)),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=A(t);this._createTooltips(i)}}return S(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return O.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r?r=!1:"true"===r&&(r=!0),isNaN(parseFloat(r))||(r=parseFloat(r)),n[i]=r}),n.arrow&&(n.animateFill=!1),x({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=(n.position,n.delay),a=n.hideDelay,s=n.hideDuration,l=n.duration,u=n.interactive,c=(n.interactiveBorder,n.distance,n.hideOnClick),p=n.trigger,d=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},f=function(){if(d(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,l)},r);t.setAttribute("data-delay",e)}else i.show(t,l)},m=function(e){return i.callbacks.wait?i.callbacks.wait.call(t,f,e):f()},v=function(){if(d(),a){var e=setTimeout(function(){return i.hide(t,s)},a);t.setAttribute("data-hidedelay",e)}else i.hide(t,s)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==c;n&&i&&r?v():m(e)},handleMouseleave:function(i){if(u){var r=function i(r){var a=function(){document.removeEventListener("mousemove",i),v()},s=o(r.target,H.el),l=o(r.target,H.popper)===t,u=s===e,c=-1!==p.indexOf("click");if(s&&s!==e)return a();l||u||c||T(r,t,n)&&a()};return document.addEventListener("mousemove",r)}v()},handleBlur:function(e){!q&&e.relatedTarget&&(o(e.relatedTarget,H.popper)||v())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e);t.appendTo=t.appendTo||document.body;var i=t.html,r=t.trigger,o=e.title;if(o||i){var a=F;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),p(e);var s=l(a,o,t),d=n._getEventListenerHandlers(e,s,t),f=[];r.trim().split(" ").forEach(function(t){return f=f.concat(u(t,e,d))}),c({id:a,el:e,popper:s,settings:t,listeners:f,tippyInstance:n}),F++}}),e.store=I}},{key:"getPopperElement",value:function(e){try{return a(I,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return a(I,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"getReference",value:function(e){return a(I,function(t){return t.el===e})||a(I,function(t){return t.popper===e})}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeShown.call(e);var i=a(I,function(t){return t.popper===e}),r=e.querySelector(H.tooltip),o=e.querySelector(H.circle),s=i.el,l=i.settings,u=l.appendTo,c=l.sticky,p=l.interactive,d=l.followCursor,f=l.flipDuration;h([e,r,o],0),!u.contains(e)&&g(i),e.style.visibility="visible",e.setAttribute("aria-hidden","false"),D(function(){b(e,"visible")&&(!d&&i.popperInstance.update(),h([r,o],n),!d&&h([e],f),p&&s.classList.add("active"),c&&w(i),m(r,o),v([r,o],function(e){e.contains("tippy-notransition")&&e.remove("tippy-notransition"),e.remove("leave"),e.add("enter")}),y(i,n,function(){b(e,"visible")&&!i.onShownFired&&(p&&e.focus(),r.classList.add("tippy-notransition"),i.onShownFired=!0,t.callbacks.shown.call(e))}))})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeHidden.call(e);var r=a(I,function(t){return t.popper===e}),o=e.querySelector(H.tooltip),s=e.querySelector(H.circle),l=(e.querySelector(H.content),r.el),u=r.settings,c=u.appendTo,p=(u.sticky,u.interactive),f=(u.followCursor,u.html),m=u.trigger;r.onShownFired=!1,p&&l.classList.remove("active"),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===M.hideDuration?n=parseInt(o.style[i("transitionDuration")]):h([o,s],n),v([o,s],function(e){e.contains("tippy-tooltip")&&e.remove("tippy-notransition"),e.remove("enter"),e.add("leave")}),f&&-1!==m.indexOf("click")&&d(l)&&l.focus(),y(r,n,function(){b(e,"hidden")&&c.contains(e)&&(r.popperInstance.disableEventListeners(),c.removeChild(e),t.callbacks.hidden.call(e))})}},{key:"destroy",value:function(e){var t=a(I,function(t){return t.popper===e}),n=t.el,i=t.popperInstance,r=t.listeners;b(e,"hidden")||this.hide(e,0),r.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),I.splice(I.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=a(I,function(t){return t.popper===e}),n=e.querySelector(H.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),p(i))}}]),e}();return k});
{
"name": "tippy.js",
"version": "0.16.0",
"version": "0.16.1",
"description": "Pure JS Tooltip Library",

@@ -5,0 +5,0 @@ "main": "dist/tippy.js",

@@ -5,3 +5,3 @@ import Popper from 'popper.js'

* @file tippy.js | Pure JS Tooltip Library
* @version 0.16.0
* @version 0.16.1
* @license MIT

@@ -969,4 +969,4 @@ */

getReference(x) {
const ref = find(STORE, ref => ref.el === x)
return ref ? ref : find(STORE, ref => ref.popper === x)
return find(STORE, ref => ref.el === x) ||
find(STORE, ref => ref.popper === x)
}

@@ -1028,2 +1028,3 @@

modifyClassList([tooltip, circle], list => {
list.contains('tippy-notransition') && list.remove('tippy-notransition')
list.remove('leave')

@@ -1081,6 +1082,4 @@ list.add('enter')

ref.onShownFired = false
interactive && el.classList.remove('active')
interactive && ref.el.classList.remove('active')
tooltip.classList.remove('tippy-notransition')
popper.style.visibility = 'hidden'

@@ -1097,2 +1096,3 @@ popper.setAttribute('aria-hidden', 'true')

modifyClassList([tooltip, circle], list => {
list.contains('tippy-tooltip') && list.remove('tippy-notransition')
list.remove('enter')

@@ -1099,0 +1099,0 @@ list.add('leave')

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc