Socket
Socket
Sign inDemoInstall

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 5.0.0-alpha.0 to 5.0.0-alpha.1

addons/iife/tippy-addons.js

138

addons/cjs/tippy-addons.js
/**!
* tippy.js v5.0.0-alpha.0
* tippy.js v5.0.0-alpha.1
* (c) 2017-2019 atomiks

@@ -10,3 +10,3 @@ * MIT License

var __chunk_1 = require('../../cjs/chunk-aff5aec0.js');
var __chunk_1 = require('../../cjs/tippy.chunk.js');
require('popper.js');

@@ -17,9 +17,7 @@

* for child elements (`target` CSS selector).
* Port of v4's `target` option to a separate function.
* Port of v4's `target` prop to a separate function.
*/
function delegate(targets, options) {
function delegate(targets, props) {
if (process.env.NODE_ENV !== "production") {
if (!options || !options.target) {
throw new Error('[tippy.js ERROR] You must specify a `target` option ' + 'indicating the CSS selector string matching the target elements ' + 'that should receive a tippy.');
}
__chunk_1.throwErrorWhen(!props || !props.target, 'You must specify a `target` prop indicating the CSS selector string ' + 'matching the target elements that should receive a tippy.');
}

@@ -29,5 +27,5 @@

var childTippyInstances = [];
var target = options.target;
delete options.target;
var instanceOrInstances = __chunk_1.tippy(targets, options);
var target = props.target;
delete props.target;
var instanceOrInstances = __chunk_1.tippy(targets, props);

@@ -39,3 +37,3 @@ function onTrigger(event) {

if (targetNode) {
var instance = __chunk_1.tippy(targetNode, __chunk_1._extends({}, options, {
var instance = __chunk_1.tippy(targetNode, __chunk_1._extends({}, props, {
showOnInit: true

@@ -101,3 +99,3 @@ }));

instance.destroy = function () {
var shouldDestroyChildInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
var shouldDestroyChildInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

@@ -116,3 +114,3 @@ if (shouldDestroyChildInstances) {

addEventListeners(instance);
instance.set({
instance.setProps({
trigger: 'manual'

@@ -139,5 +137,4 @@ });

*/
function createSingleton(tippyInstances) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
var optionalProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
delay: 0

@@ -148,14 +145,25 @@ };

if (!Array.isArray(tippyInstances)) {
if (!tippyInstances) {
throw new Error('[tippy.js ERROR] First argument to `createSingleton()` must ' + 'be an array of tippy instances. The passed value was `' + tippyInstances + '`'); // @ts-ignore
} else if (tippyInstances.reference && tippyInstances.reference._tippy) {
throw new Error('[tippy.js ERROR] First argument to `createSingleton()` must ' + 'be an *array* of tippy instances. The passed value was a ' + '*single* tippy instance.');
}
__chunk_1.throwErrorWhen(!tippyInstances, 'First argument to `createSingleton()` must be an array of tippy ' + 'instances. The passed value was `' + tippyInstances + '`');
__chunk_1.throwErrorWhen( // @ts-ignore
tippyInstances.reference && tippyInstances.reference._tippy, 'First argument to `createSingleton()` must be an *array* of tippy ' + 'instances. The passed value was a *single* tippy instance.');
}
var isAnyInstancePartOfExistingSingleton = tippyInstances.some(function (instance) {
return __chunk_1.hasOwnProperty(instance, '__singleton__');
});
__chunk_1.throwErrorWhen(isAnyInstancePartOfExistingSingleton, 'The passed tippy instance(s) are already part of an existing ' + 'singleton instance. Make sure you destroy the previous singleton ' + 'before calling `createSingleton()` again.');
tippyInstances.forEach(function (instance) {
instance.__singleton__ = true;
});
}
var singletonInstance = __chunk_1.tippy(document.createElement('div'));
var delay = optionalProps.delay;
var showTimeout;
var hideTimeout;
var _onTrigger;
var _onUntrigger;
function clearTimeouts() {

@@ -167,6 +175,9 @@ clearTimeout(showTimeout);

tippyInstances.forEach(function (instance) {
var _instance$props = instance.props,
_onShow = _instance$props.onShow,
_onTrigger = _instance$props.onTrigger,
_onUntrigger = _instance$props.onUntrigger;
// To prevent bugs with `hideOnClick`, we need to let the original tippy
// instance also go through its lifecycle (i.e. be mounted to the DOM as
// well). To prevent it from being seen/overlayed over the singleton
// tippy, we can set its opacity to 0
instance.popper.style.opacity = '0';
_onTrigger = instance.props.onTrigger;
_onUntrigger = instance.props.onUntrigger;
var originalClearDelayTimeouts = instance.clearDelayTimeouts;

@@ -179,16 +190,11 @@

instance.set({
instance.setProps({
delay: 0,
onShow: function onShow(instance) {
_onShow(instance);
return false;
},
onTrigger: function onTrigger(instance, event) {
_onTrigger(instance, event);
var otherOptions = __chunk_1._extends({}, instance.props);
var props = __chunk_1._extends({}, instance.props);
delete otherOptions.onShow;
singletonInstance.set(otherOptions);
delete props.delay;
singletonInstance.setProps(props);

@@ -199,6 +205,15 @@ singletonInstance.reference.getBoundingClientRect = function () {

clearTimeouts();
showTimeout = setTimeout(function () {
singletonInstance.show();
}, __chunk_1.getValue(options.delay, 0, __chunk_1.tippy.defaults.delay));
clearTimeouts(); // Edge case: if the tippy is currently hiding (but still mounted and
// visible due to its opacity), it will slide to the new reference
// element but fully to fade out before fading back in.
// Also, we need to ensure the `popper` element doesn't set its
// `transitionDuration` to 0ms, so it can transition smoothly
if (!singletonInstance.state.isVisible && singletonInstance.state.isMounted) {
singletonInstance.show(undefined, false);
} else {
showTimeout = setTimeout(function () {
singletonInstance.show();
}, __chunk_1.getValue(delay, 0, __chunk_1.tippy.defaultProps.delay));
}
},

@@ -211,17 +226,48 @@ onUntrigger: function onUntrigger(instance, event) {

singletonInstance.hide();
}, __chunk_1.getValue(options.delay, 1, __chunk_1.tippy.defaults.delay));
}, __chunk_1.getValue(delay, 1, __chunk_1.tippy.defaultProps.delay));
}
}); // Ensure the lifecycles functions are updateable
var originalSet = instance.set;
var originalSetProps = instance.setProps;
instance.set = function (options) {
// Delay can't be updated
delete options.delay;
originalSet(options);
_onShow = options.onShow || _onShow;
_onTrigger = options.onTrigger || _onTrigger;
_onUntrigger = options.onUntrigger || _onUntrigger;
instance.setProps = function (partialProps) {
// `delay` can't be updated
delete partialProps.delay;
originalSetProps(partialProps);
_onTrigger = partialProps.onTrigger || _onTrigger;
_onUntrigger = partialProps.onUntrigger || _onUntrigger;
};
});
var originalSetProps = singletonInstance.setProps;
singletonInstance.setProps = function (partialProps) {
delay = partialProps.delay !== undefined ? partialProps.delay : delay;
originalSetProps(partialProps);
};
var originalDestroy = singletonInstance.destroy;
singletonInstance.destroy = function () {
var shouldDestroyPassedInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
tippyInstances.forEach(function (instance) {
// Reset the original lifecycle hooks to prevent stack overflow if
// calling again.
// Note: users must always destroy the singleton instance before calling
// `createSingleton()` again on the same instances.
instance.setProps({
onTrigger: _onTrigger,
onUntrigger: _onUntrigger
});
if (process.env.NODE_ENV !== "production") {
delete instance.__singleton__;
}
if (shouldDestroyPassedInstances) {
instance.destroy();
}
});
originalDestroy();
};
return singletonInstance;

@@ -228,0 +274,0 @@ }

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var __chunk_1=require("../../cjs/chunk-a3127cbc.js");function delegate(e,t){var n=[],r=[],o=t.target;delete t.target;var i=__chunk_1.tippy(e,t);function c(e){if(e.target){var n=e.target.closest(o);if(n){var i=__chunk_1.tippy(n,__chunk_1._extends({},t,{showOnInit:!0}));i&&(r=r.concat(i))}}}function u(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,r,o),n.push({element:e,eventType:t,listener:r,options:o})}function a(e){var t=e.destroy;e.destroy=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&r.forEach(function(e){e.destroy()}),r=[],function(e){e.forEach(function(e){var t=e.element,n=e.eventType,r=e.listener,o=e.options;t.removeEventListener(n,r,o)}),e=[]}(n),t()},function(e){var t=e.reference;e.props.trigger.trim().split(" ").forEach(function(e){switch(e){case"mouseenter":u(t,"mouseover",c);break;case"focus":u(t,"focusin",c);break;case"click":u(t,"click",c)}})}(e),e.set({trigger:"manual"})}i&&(Array.isArray(i)?i.forEach(a):a(i));return i}function createSingleton(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},o=__chunk_1.tippy(document.createElement("div"));function i(){clearTimeout(t),clearTimeout(n)}return e.forEach(function(e){var c=e.props,u=c.onShow,a=c.onTrigger,s=c.onUntrigger,l=e.clearDelayTimeouts;e.clearDelayTimeouts=function(){l(),i()},e.set({delay:0,onShow:function(e){return u(e),!1},onTrigger:function(e,n){a(e,n);var c=__chunk_1._extends({},e.props);delete c.onShow,o.set(c),o.reference.getBoundingClientRect=function(){return e.reference.getBoundingClientRect()},i(),t=setTimeout(function(){o.show()},__chunk_1.getValue(r.delay,0,__chunk_1.tippy.defaults.delay))},onUntrigger:function(e,t){s(e,t),i(),n=setTimeout(function(){o.hide()},__chunk_1.getValue(r.delay,1,__chunk_1.tippy.defaults.delay))}});var f=e.set;e.set=function(e){delete e.delay,f(e),u=e.onShow||u,a=e.onTrigger||a,s=e.onUntrigger||s}}),o}require("popper.js"),exports.createSingleton=createSingleton,exports.delegate=delegate;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var __chunk_1=require("../../cjs/tippy.chunk.min.js");function delegate(e,t){var n=[],r=[],o=t.target;delete t.target;var i=__chunk_1.tippy(e,t);function c(e){if(e.target){var n=e.target.closest(o);if(n){var i=__chunk_1.tippy(n,__chunk_1._extends({},t,{showOnInit:!0}));i&&(r=r.concat(i))}}}function s(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,r,o),n.push({element:e,eventType:t,listener:r,options:o})}function a(e){var t=e.destroy;e.destroy=function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&r.forEach(function(e){e.destroy()}),r=[],function(e){e.forEach(function(e){var t=e.element,n=e.eventType,r=e.listener,o=e.options;t.removeEventListener(n,r,o)}),e=[]}(n),t()},function(e){var t=e.reference;e.props.trigger.trim().split(" ").forEach(function(e){switch(e){case"mouseenter":s(t,"mouseover",c);break;case"focus":s(t,"focusin",c);break;case"click":s(t,"click",c)}})}(e),e.setProps({trigger:"manual"})}i&&(Array.isArray(i)?i.forEach(a):a(i));return i}function createSingleton(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},c=__chunk_1.tippy(document.createElement("div")),s=i.delay;function a(){clearTimeout(t),clearTimeout(n)}e.forEach(function(e){e.popper.style.opacity="0",r=e.props.onTrigger,o=e.props.onUntrigger;var i=e.clearDelayTimeouts;e.clearDelayTimeouts=function(){i(),a()},e.setProps({delay:0,onTrigger:function(e,n){r(e,n);var o=__chunk_1._extends({},e.props);delete o.delay,c.setProps(o),c.reference.getBoundingClientRect=function(){return e.reference.getBoundingClientRect()},a(),!c.state.isVisible&&c.state.isMounted?c.show(void 0,!1):t=setTimeout(function(){c.show()},__chunk_1.getValue(s,0,__chunk_1.tippy.defaultProps.delay))},onUntrigger:function(e,t){o(e,t),a(),n=setTimeout(function(){c.hide()},__chunk_1.getValue(s,1,__chunk_1.tippy.defaultProps.delay))}});var u=e.setProps;e.setProps=function(e){delete e.delay,u(e),r=e.onTrigger||r,o=e.onUntrigger||o}});var u=c.setProps;c.setProps=function(e){s=void 0!==e.delay?e.delay:s,u(e)};var l=c.destroy;return c.destroy=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.forEach(function(e){e.setProps({onTrigger:r,onUntrigger:o}),t&&e.destroy()}),l()},c}require("popper.js"),exports.createSingleton=createSingleton,exports.delegate=delegate;
//# sourceMappingURL=tippy-addons.min.js.map
/**!
* tippy.js v5.0.0-alpha.0
* tippy.js v5.0.0-alpha.1
* (c) 2017-2019 atomiks
* MIT License
*/
import { a as tippy, c as _extends, d as getValue } from '../../esm/chunk-d3154ad2.js';
import { c as throwErrorWhen, a as tippy, d as _extends, e as hasOwnProperty, f as getValue } from '../../esm/tippy.chunk.js';
import 'popper.js';

@@ -12,9 +12,7 @@

* for child elements (`target` CSS selector).
* Port of v4's `target` option to a separate function.
* Port of v4's `target` prop to a separate function.
*/
function delegate(targets, options) {
function delegate(targets, props) {
if (process.env.NODE_ENV !== "production") {
if (!options || !options.target) {
throw new Error('[tippy.js ERROR] You must specify a `target` option ' + 'indicating the CSS selector string matching the target elements ' + 'that should receive a tippy.');
}
throwErrorWhen(!props || !props.target, 'You must specify a `target` prop indicating the CSS selector string ' + 'matching the target elements that should receive a tippy.');
}

@@ -24,5 +22,5 @@

var childTippyInstances = [];
var target = options.target;
delete options.target;
var instanceOrInstances = tippy(targets, options);
var target = props.target;
delete props.target;
var instanceOrInstances = tippy(targets, props);

@@ -34,3 +32,3 @@ function onTrigger(event) {

if (targetNode) {
var instance = tippy(targetNode, _extends({}, options, {
var instance = tippy(targetNode, _extends({}, props, {
showOnInit: true

@@ -96,3 +94,3 @@ }));

instance.destroy = function () {
var shouldDestroyChildInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
var shouldDestroyChildInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

@@ -111,3 +109,3 @@ if (shouldDestroyChildInstances) {

addEventListeners(instance);
instance.set({
instance.setProps({
trigger: 'manual'

@@ -134,5 +132,4 @@ });

*/
function createSingleton(tippyInstances) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
var optionalProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
delay: 0

@@ -143,14 +140,25 @@ };

if (!Array.isArray(tippyInstances)) {
if (!tippyInstances) {
throw new Error('[tippy.js ERROR] First argument to `createSingleton()` must ' + 'be an array of tippy instances. The passed value was `' + tippyInstances + '`'); // @ts-ignore
} else if (tippyInstances.reference && tippyInstances.reference._tippy) {
throw new Error('[tippy.js ERROR] First argument to `createSingleton()` must ' + 'be an *array* of tippy instances. The passed value was a ' + '*single* tippy instance.');
}
throwErrorWhen(!tippyInstances, 'First argument to `createSingleton()` must be an array of tippy ' + 'instances. The passed value was `' + tippyInstances + '`');
throwErrorWhen( // @ts-ignore
tippyInstances.reference && tippyInstances.reference._tippy, 'First argument to `createSingleton()` must be an *array* of tippy ' + 'instances. The passed value was a *single* tippy instance.');
}
var isAnyInstancePartOfExistingSingleton = tippyInstances.some(function (instance) {
return hasOwnProperty(instance, '__singleton__');
});
throwErrorWhen(isAnyInstancePartOfExistingSingleton, 'The passed tippy instance(s) are already part of an existing ' + 'singleton instance. Make sure you destroy the previous singleton ' + 'before calling `createSingleton()` again.');
tippyInstances.forEach(function (instance) {
instance.__singleton__ = true;
});
}
var singletonInstance = tippy(document.createElement('div'));
var delay = optionalProps.delay;
var showTimeout;
var hideTimeout;
var _onTrigger;
var _onUntrigger;
function clearTimeouts() {

@@ -162,6 +170,9 @@ clearTimeout(showTimeout);

tippyInstances.forEach(function (instance) {
var _instance$props = instance.props,
_onShow = _instance$props.onShow,
_onTrigger = _instance$props.onTrigger,
_onUntrigger = _instance$props.onUntrigger;
// To prevent bugs with `hideOnClick`, we need to let the original tippy
// instance also go through its lifecycle (i.e. be mounted to the DOM as
// well). To prevent it from being seen/overlayed over the singleton
// tippy, we can set its opacity to 0
instance.popper.style.opacity = '0';
_onTrigger = instance.props.onTrigger;
_onUntrigger = instance.props.onUntrigger;
var originalClearDelayTimeouts = instance.clearDelayTimeouts;

@@ -174,16 +185,11 @@

instance.set({
instance.setProps({
delay: 0,
onShow: function onShow(instance) {
_onShow(instance);
return false;
},
onTrigger: function onTrigger(instance, event) {
_onTrigger(instance, event);
var otherOptions = _extends({}, instance.props);
var props = _extends({}, instance.props);
delete otherOptions.onShow;
singletonInstance.set(otherOptions);
delete props.delay;
singletonInstance.setProps(props);

@@ -194,6 +200,15 @@ singletonInstance.reference.getBoundingClientRect = function () {

clearTimeouts();
showTimeout = setTimeout(function () {
singletonInstance.show();
}, getValue(options.delay, 0, tippy.defaults.delay));
clearTimeouts(); // Edge case: if the tippy is currently hiding (but still mounted and
// visible due to its opacity), it will slide to the new reference
// element but fully to fade out before fading back in.
// Also, we need to ensure the `popper` element doesn't set its
// `transitionDuration` to 0ms, so it can transition smoothly
if (!singletonInstance.state.isVisible && singletonInstance.state.isMounted) {
singletonInstance.show(undefined, false);
} else {
showTimeout = setTimeout(function () {
singletonInstance.show();
}, getValue(delay, 0, tippy.defaultProps.delay));
}
},

@@ -206,17 +221,48 @@ onUntrigger: function onUntrigger(instance, event) {

singletonInstance.hide();
}, getValue(options.delay, 1, tippy.defaults.delay));
}, getValue(delay, 1, tippy.defaultProps.delay));
}
}); // Ensure the lifecycles functions are updateable
var originalSet = instance.set;
var originalSetProps = instance.setProps;
instance.set = function (options) {
// Delay can't be updated
delete options.delay;
originalSet(options);
_onShow = options.onShow || _onShow;
_onTrigger = options.onTrigger || _onTrigger;
_onUntrigger = options.onUntrigger || _onUntrigger;
instance.setProps = function (partialProps) {
// `delay` can't be updated
delete partialProps.delay;
originalSetProps(partialProps);
_onTrigger = partialProps.onTrigger || _onTrigger;
_onUntrigger = partialProps.onUntrigger || _onUntrigger;
};
});
var originalSetProps = singletonInstance.setProps;
singletonInstance.setProps = function (partialProps) {
delay = partialProps.delay !== undefined ? partialProps.delay : delay;
originalSetProps(partialProps);
};
var originalDestroy = singletonInstance.destroy;
singletonInstance.destroy = function () {
var shouldDestroyPassedInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
tippyInstances.forEach(function (instance) {
// Reset the original lifecycle hooks to prevent stack overflow if
// calling again.
// Note: users must always destroy the singleton instance before calling
// `createSingleton()` again on the same instances.
instance.setProps({
onTrigger: _onTrigger,
onUntrigger: _onUntrigger
});
if (process.env.NODE_ENV !== "production") {
delete instance.__singleton__;
}
if (shouldDestroyPassedInstances) {
instance.destroy();
}
});
originalDestroy();
};
return singletonInstance;

@@ -223,0 +269,0 @@ }

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

import{a as e,c as t,d as n}from"../../esm/chunk-1094dcf0.js";import"popper.js";function r(n,r){var o=[],i=[],c=r.target;delete r.target;var a=e(n,r);function s(n){if(n.target){var o=n.target.closest(c);if(o){var a=e(o,t({},r,{showOnInit:!0}));a&&(i=i.concat(a))}}}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r),o.push({element:e,eventType:t,listener:n,options:r})}function f(e){var t=e.destroy;e.destroy=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&i.forEach(function(e){e.destroy()}),i=[],function(e){e.forEach(function(e){var t=e.element,n=e.eventType,r=e.listener,o=e.options;t.removeEventListener(n,r,o)}),e=[]}(o),t()},function(e){var t=e.reference;e.props.trigger.trim().split(" ").forEach(function(e){switch(e){case"mouseenter":u(t,"mouseover",s);break;case"focus":u(t,"focusin",s);break;case"click":u(t,"click",s)}})}(e),e.set({trigger:"manual"})}a&&(Array.isArray(a)?a.forEach(f):f(a));return a}function o(r){var o,i,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},a=e(document.createElement("div"));function s(){clearTimeout(o),clearTimeout(i)}return r.forEach(function(r){var u=r.props,f=u.onShow,l=u.onTrigger,d=u.onUntrigger,g=r.clearDelayTimeouts;r.clearDelayTimeouts=function(){g(),s()},r.set({delay:0,onShow:function(e){return f(e),!1},onTrigger:function(r,i){l(r,i);var u=t({},r.props);delete u.onShow,a.set(u),a.reference.getBoundingClientRect=function(){return r.reference.getBoundingClientRect()},s(),o=setTimeout(function(){a.show()},n(c.delay,0,e.defaults.delay))},onUntrigger:function(t,r){d(t,r),s(),i=setTimeout(function(){a.hide()},n(c.delay,1,e.defaults.delay))}});var v=r.set;r.set=function(e){delete e.delay,v(e),f=e.onShow||f,l=e.onTrigger||l,d=e.onUntrigger||d}}),a}export{o as createSingleton,r as delegate};
import{a as e,c as t,d as r}from"../../esm/tippy.chunk.min.js";import"popper.js";function n(r,n){var o=[],i=[],s=n.target;delete n.target;var a=e(r,n);function c(r){if(r.target){var o=r.target.closest(s);if(o){var a=e(o,t({},n,{showOnInit:!0}));a&&(i=i.concat(a))}}}function u(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,r,n),o.push({element:e,eventType:t,listener:r,options:n})}function f(e){var t=e.destroy;e.destroy=function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&i.forEach(function(e){e.destroy()}),i=[],function(e){e.forEach(function(e){var t=e.element,r=e.eventType,n=e.listener,o=e.options;t.removeEventListener(r,n,o)}),e=[]}(o),t()},function(e){var t=e.reference;e.props.trigger.trim().split(" ").forEach(function(e){switch(e){case"mouseenter":u(t,"mouseover",c);break;case"focus":u(t,"focusin",c);break;case"click":u(t,"click",c)}})}(e),e.setProps({trigger:"manual"})}a&&(Array.isArray(a)?a.forEach(f):f(a));return a}function o(n){var o,i,s,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},u=e(document.createElement("div")),f=c.delay;function l(){clearTimeout(o),clearTimeout(i)}n.forEach(function(n){n.popper.style.opacity="0",s=n.props.onTrigger,a=n.props.onUntrigger;var c=n.clearDelayTimeouts;n.clearDelayTimeouts=function(){c(),l()},n.setProps({delay:0,onTrigger:function(n,i){s(n,i);var a=t({},n.props);delete a.delay,u.setProps(a),u.reference.getBoundingClientRect=function(){return n.reference.getBoundingClientRect()},l(),!u.state.isVisible&&u.state.isMounted?u.show(void 0,!1):o=setTimeout(function(){u.show()},r(f,0,e.defaultProps.delay))},onUntrigger:function(t,n){a(t,n),l(),i=setTimeout(function(){u.hide()},r(f,1,e.defaultProps.delay))}});var p=n.setProps;n.setProps=function(e){delete e.delay,p(e),s=e.onTrigger||s,a=e.onUntrigger||a}});var p=u.setProps;u.setProps=function(e){f=void 0!==e.delay?e.delay:f,p(e)};var d=u.destroy;return u.destroy=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.forEach(function(t){t.setProps({onTrigger:s,onUntrigger:a}),e&&t.destroy()}),d()},u}export{o as createSingleton,n as delegate};
//# sourceMappingURL=tippy-addons.min.js.map

@@ -1,16 +0,12 @@

import { Instance, Targets, Options } from '..'
import { Instance, Targets, Props } from '..'
export interface Delegate {
(targets: Targets, options: Options & { target: string }):
| Instance
| Instance[]
| null
}
export type Delegate = (
targets: Targets,
props: Partial<Props> & { target: string },
) => Instance | Instance[]
export interface CreateSingleton {
(
tippyInstances: Instance[],
options?: { delay: number | [number, number] },
): Instance
}
export type CreateSingleton = (
tippyInstances: Instance[],
optionalProps?: { delay: number | [number, number] },
) => Instance

@@ -17,0 +13,0 @@ declare const delegate: Delegate

@@ -6,4 +6,5 @@ {

"module": "./esm/tippy-addons.js",
"unpkg": "./iife/tippy-addons.min.js",
"types": "index.d.ts",
"sideEffects": false
}

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

"use strict";var __chunk_1=require("./chunk-a3127cbc.js");require("popper.js");var css='.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}';function injectCSS(t){if(__chunk_1.isBrowser){var a=document.createElement("style");a.type="text/css",a.textContent=t,a.setAttribute("data-tippy-stylesheet","");var p=document.head,i=p.firstChild;i?p.insertBefore(a,i):p.appendChild(a)}}injectCSS(css),module.exports=__chunk_1.tippy;
"use strict";var __chunk_1=require("./tippy.chunk.min.js");require("popper.js");var css='.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-svgArrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}';function injectCSS(t){if(__chunk_1.isBrowser){var a=document.createElement("style");a.textContent=t,a.setAttribute("data-tippy-stylesheet","");var p=document.head,i=p.firstChild;i?p.insertBefore(a,i):p.appendChild(a)}}injectCSS(css),module.exports=__chunk_1.tippy;
//# sourceMappingURL=tippy.bundle.min.js.map

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

"use strict";var __chunk_1=require("./chunk-a3127cbc.js");require("popper.js"),module.exports=__chunk_1.tippy;
"use strict";var __chunk_1=require("./tippy.chunk.min.js");require("popper.js"),module.exports=__chunk_1.tippy;
//# sourceMappingURL=tippy.min.js.map
/**!
* tippy.js v5.0.0-alpha.0
* tippy.js v5.0.0-alpha.1
* (c) 2017-2019 atomiks
* MIT License
*/
import { b as isBrowser, a as tippy } from './chunk-d3154ad2.js';
import { b as isBrowser, a as tippy } from './tippy.chunk.js';
import 'popper.js';
var css = ".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:\"\";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}";
var css = ".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-svgArrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:\"\";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}";

@@ -18,3 +18,2 @@ /**

var style = document.createElement('style');
style.type = 'text/css';
style.textContent = css;

@@ -21,0 +20,0 @@ style.setAttribute('data-tippy-stylesheet', '');

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

import{b as t,a}from"./chunk-1094dcf0.js";import"popper.js";!function(a){if(t){var p=document.createElement("style");p.type="text/css",p.textContent=a,p.setAttribute("data-tippy-stylesheet","");var i=document.head,o=i.firstChild;o?i.insertBefore(p,o):i.appendChild(p)}}('.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}');export default a;
import{b as t,a}from"./tippy.chunk.min.js";import"popper.js";!function(a){if(t){var p=document.createElement("style");p.textContent=a,p.setAttribute("data-tippy-stylesheet","");var i=document.head,o=i.firstChild;o?i.insertBefore(p,o):i.appendChild(p)}}('.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-svgArrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}');export default a;
//# sourceMappingURL=tippy.bundle.min.js.map
/**!
* tippy.js v5.0.0-alpha.0
* tippy.js v5.0.0-alpha.1
* (c) 2017-2019 atomiks
* MIT License
*/
import { a as tippy } from './chunk-d3154ad2.js';
import { a as tippy } from './tippy.chunk.js';
import 'popper.js';

@@ -8,0 +8,0 @@

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

import{a as p}from"./chunk-1094dcf0.js";import"popper.js";export default p;
import{a as p}from"./tippy.chunk.min.js";import"popper.js";export default p;
//# sourceMappingURL=tippy.min.js.map
/**!
* tippy.js v5.0.0-alpha.0
* tippy.js v5.0.0-alpha.1
* (c) 2017-2019 atomiks

@@ -11,3 +11,3 @@ * MIT License

var css = ".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:\"\";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}";
var css = ".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-svgArrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:\"\";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}";

@@ -32,3 +32,3 @@ function _extends() {

var version = "5.0.0-alpha.0";
var version = "5.0.0-alpha.1";

@@ -39,3 +39,3 @@ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';

var isUCBrowser = /UCBrowser\//.test(ua);
var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream;
var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform);

@@ -145,3 +145,5 @@ var defaultProps = {

var isUsingTouch = false;
var currentInput = {
isTouch: false
};
var lastMouseMoveTime = 0;

@@ -151,12 +153,12 @@ /**

* input. We'll bind a `mousemove` event listener to listen for mouse input in
* the future. This way, the `isUsingTouch` variable is fully dynamic and will
* handle hybrid devices that use a mix of touch + mouse input.
* the future. This way, the `isTouch` property is fully dynamic and will handle
* hybrid devices that use a mix of touch + mouse input.
*/
function onDocumentTouchStart() {
if (isUsingTouch) {
if (currentInput.isTouch) {
return;
}
isUsingTouch = true;
currentInput.isTouch = true;

@@ -181,3 +183,3 @@ if (isIOS) {

if (now - lastMouseMoveTime < 20) {
isUsingTouch = false;
currentInput.isTouch = false;
document.removeEventListener('mousemove', onDocumentMouseMove);

@@ -202,4 +204,5 @@

activeElement = _document.activeElement;
var instance = activeElement._tippy;
if (activeElement && activeElement.blur && activeElement._tippy) {
if (activeElement && activeElement.blur && instance && !instance.state.isVisible) {
activeElement.blur();

@@ -222,3 +225,3 @@ }

function getDataAttributeOptions(reference) {
function getDataAttributeProps(reference) {
return keys.reduce(function (acc, key) {

@@ -370,4 +373,4 @@ var valueAsString = (reference.getAttribute("data-tippy-".concat(key)) || '').trim();

/**
* Evaluates the props object by merging data attributes and
* disabling conflicting options where necessary
* Evaluates the props object by merging data attributes and disabling
* conflicting props where necessary
*/

@@ -378,3 +381,3 @@

content: invokeWithArgsOrReturn(props.content, [reference])
}, props.ignoreAttributes ? {} : getDataAttributeOptions(reference));
}, props.ignoreAttributes ? {} : getDataAttributeProps(reference));

@@ -407,13 +410,3 @@ if (out.arrow || isUCBrowser) {

}
/**
* Helpful wrapper around `console.warn()`
*/
function warnWhen(condition, message) {
if (condition) {
/* eslint-disable-next-line no-console */
console.warn("[tippy.js WARNING] ".concat(message));
}
}
/**

@@ -523,3 +516,3 @@ * Sets the innerHTML of an element

function getBasicPlacement(placement) {
function getBasePlacement(placement) {
return placement.split('-')[0];

@@ -554,2 +547,3 @@ }

tooltip.setAttribute('data-state', 'hidden');
tooltip.setAttribute('tabindex', '-1');
updateTheme(tooltip, 'add', props.theme);

@@ -675,19 +669,43 @@ var content = div();

/**
* Validates options with the valid `defaultProps` object
* Helpful wrapper around `console.warn()`.
* TODO: Should we use a cache so it only warns a single time and not spam the
* console? (Need to consider hot reloading and invalidation though). Chrome
* already batches warnings as well.
*/
function validateOptions() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Object.keys(options).forEach(function (option) {
var value = options[option];
var didPassTargetOption = option === 'target';
var didPassA11yOption = option === 'a11y';
var didPassOtherUnknownOption = !hasOwnProperty(defaultProps, option) && option !== 'target' && option !== 'a11y';
var didPassOldThemeName = option === 'theme' && includes(['dark', 'light', 'light-border', 'translucent'], value);
var didPassGoogleTheme = option === 'theme' && value === 'google';
warnWhen(didPassTargetOption, 'The `target` option was removed in v5 and ' + 'replaced with the `delegate()` method. Read more here: ' + 'https//atomiks.github.io/tippyjs/event-delegation/');
warnWhen(didPassA11yOption, 'The `a11y` option was removed in v5. Make ' + 'sure the element you are giving a tippy to is natively ' + 'focusable, such as <button> or <input>, not <div> or <span>.');
warnWhen(didPassOtherUnknownOption, '`' + option + '` is not a valid option. You ' + 'may have spelled it incorrectly. View all of the valid options ' + 'here: https://atomiks.github.io/tippyjs/all-options/');
function warnWhen(condition, message) {
if (condition) {
/* eslint-disable-next-line no-console */
console.warn("[tippy.js WARNING] ".concat(message));
}
}
/**
* Helpful wrapper around thrown errors
*/
function throwErrorWhen(condition, message) {
if (condition) {
throw new Error("[tippy.js ERROR] ".concat(message));
}
}
/**
* Validates props with the valid `defaultProps` object
*/
function validateProps() {
var partialProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Object.keys(partialProps).forEach(function (prop) {
var value = partialProps[prop];
var didPassTargetprop = prop === 'target';
var didPassA11yprop = prop === 'a11y';
var didPassOtherUnknownprop = !hasOwnProperty(defaultProps, prop) && prop !== 'target' && prop !== 'a11y';
var didPassOldThemeName = prop === 'theme' && includes(['dark', 'light', 'light-border', 'translucent'], value);
var didPassGoogleTheme = prop === 'theme' && value === 'google';
var didSpecifyPlacementInPopperOptions = prop === 'popperOptions' && value && hasOwnProperty(value, 'placement');
warnWhen(didPassTargetprop, 'The `target` prop was removed in v5 and ' + 'replaced with the `delegate()` method. Read more here: ' + 'https//atomiks.github.io/tippyjs/addons#event-delegation');
warnWhen(didPassA11yprop, 'The `a11y` prop was removed in v5. Make ' + 'sure the element you are giving a tippy to is natively ' + 'focusable, such as <button> or <input>, not <div> or <span>.');
warnWhen(didPassOtherUnknownprop, '`' + prop + '` is not a valid prop. You ' + 'may have spelled it incorrectly. View all of the valid props ' + 'here: https://atomiks.github.io/tippyjs/all-props/');
warnWhen(didPassOldThemeName, 'The default theme `' + value + '` in v5 must include the prefix `tippy`, i.e. ' + '"tippy-' + value + '" instead of "' + value + '".');
warnWhen(didPassGoogleTheme, 'The default theme `google` was renamed to ' + '`tippy-material` in v5.');
warnWhen(didSpecifyPlacementInPopperOptions, 'Specifying `placement` in `popperOptions` is not supported. Use the ' + 'base-level `placement` prop instead.');
});

@@ -702,4 +720,4 @@ }

var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
warnWhen(didPassFalsyValue, '`tippy()` was passed `' + targets + '` (an invalid falsy value) as its targets argument. Valid types are: ' + 'String (CSS selector), Element, Element[], or NodeList.');
warnWhen(didPassPlainObject, '`tippy()` was passed a plain object (virtual ' + 'reference element) which is no longer supported in v5. Instead, pass ' + 'a placeholder element like `document.createElement("div")`');
throwErrorWhen(didPassFalsyValue, '`tippy()` was passed `' + targets + '` (an invalid falsy value) as its targets argument. Valid types are: ' + 'String (CSS selector), Element, Element[], or NodeList.');
throwErrorWhen(didPassPlainObject, '`tippy()` was passed a plain object (virtual ' + 'reference element) which is no longer supported in v5. Instead, pass ' + 'a placeholder element like `document.createElement("div")`');
}

@@ -733,2 +751,3 @@

var hasMountCallbackRun = false;
var didHideDueToDocumentMouseDown = false;
var currentMountCallback;

@@ -771,3 +790,3 @@ var currentTransitionEndListener;

clearDelayTimeouts: clearDelayTimeouts,
set: set,
setProps: setProps,
setContent: setContent,

@@ -779,5 +798,15 @@ show: show,

destroy: destroy
/* ==================== Initial instance mutations =================== */
};
};
{
Object.defineProperty(instance, 'set', {
value: function value() {
warnWhen(true, '`set()` was renamed to `setProps()` in v5.');
},
enumerable: false
});
}
/* ==================== Initial instance mutations =================== */
reference._tippy = instance;

@@ -811,6 +840,18 @@ popper._tippy = instance;

function isInFollowCursorMode() {
return instance.props.followCursor && !isUsingTouch && lastTriggerEventType !== 'focus';
function getIsVerticalPlacement() {
return includes(['top', 'bottom'], getBasePlacement(currentPlacement));
}
function getIsOppositePlacement() {
return includes(['bottom', 'right'], getBasePlacement(currentPlacement));
}
function getIsInFollowCursorMode() {
return instance.props.followCursor && lastTriggerEventType !== 'focus';
}
function getTransitionableElements() {
return [tooltip, content, instance.popperChildren.backdrop];
}
function removeFollowCursorListener() {

@@ -832,3 +873,3 @@ document.removeEventListener('mousemove', positionVirtualReferenceNearCursor);

function onDocumentClick(event) {
function onDocumentMouseDown(event) {
// Clicked on interactive popper

@@ -841,3 +882,3 @@ if (instance.props.interactive && popper.contains(event.target)) {

if (getEventListenersTarget().contains(event.target)) {
if (isUsingTouch) {
if (currentInput.isTouch) {
return;

@@ -853,18 +894,26 @@ }

instance.clearDelayTimeouts();
instance.hide();
instance.hide(); // `mousedown` event is fired right before `focus`. This lets a tippy with
// `focus` trigger know that it should not show
didHideDueToDocumentMouseDown = true;
setTimeout(function () {
didHideDueToDocumentMouseDown = false;
}); // The listener gets added in `scheduleShow()`, but this may be hiding it
// before it shows, and hide()'s early bail-out behavior can prevent it
// from being cleaned up
if (!instance.state.isMounted) {
removeDocumentMouseDownListener();
}
}
}
function addDocumentClickListener() {
document.addEventListener('click', onDocumentClick, true);
function addDocumentMouseDownListener() {
document.addEventListener('mousedown', onDocumentMouseDown, true);
}
function removeDocumentClickListener() {
document.removeEventListener('click', onDocumentClick, true);
function removeDocumentMouseDownListener() {
document.removeEventListener('mousedown', onDocumentMouseDown, true);
}
function getTransitionableElements() {
return [tooltip, content, instance.popperChildren.backdrop];
}
function makeSticky() {

@@ -934,2 +983,11 @@ setTransitionDuration([popper], isIE ? 0 : instance.props.updateDuration);

on('touchend', onMouseLeave, PASSIVE);
} // `click` for keyboard. Mouse uses `mousedown` (onDocumentMouseDown)
if (!includes(instance.props.trigger, 'click')) {
on('click', function () {
if (!currentInput.isTouch && instance.props.hideOnClick === true) {
instance.hide();
}
});
}

@@ -966,10 +1024,6 @@

function getCorrectedPadding(placement) {
return instance.props.arrow ? currentComputedPadding[placement] + (instance.props.arrowType === 'round' ? 18 : 16) : currentComputedPadding[placement];
}
function positionVirtualReferenceNearCursor(event) {
var _lastMouseMoveEvent = lastMouseMoveEvent = event,
clientX = _lastMouseMoveEvent.clientX,
clientY = _lastMouseMoveEvent.clientY; // Gets set once popperInstance `onCreate` has been called
x = _lastMouseMoveEvent.clientX,
y = _lastMouseMoveEvent.clientY; // Gets set once popperInstance `onCreate` has been called

@@ -979,38 +1033,2 @@

return;
}
var rect = reference.getBoundingClientRect();
var followCursor = instance.props.followCursor;
var isHorizontal = followCursor === 'horizontal';
var isVertical = followCursor === 'vertical'; // Ensure virtual reference is padded to prevent tooltip from overflowing.
// Seems to be a Popper.js issue
var placement = getBasicPlacement(currentPlacement);
var isVerticalPlacement = includes(['top', 'bottom'], placement);
var isHorizontalPlacement = includes(['left', 'right'], placement);
var padding = _extends({}, currentComputedPadding);
if (isVerticalPlacement) {
padding.left = getCorrectedPadding('left');
padding.right = getCorrectedPadding('right');
}
if (isHorizontalPlacement) {
padding.top = getCorrectedPadding('top');
padding.bottom = getCorrectedPadding('bottom');
} // TODO: Remove the following later if Popper.js changes/fixes the
// behavior
// Top / left boundary
var x = isVerticalPlacement ? Math.max(padding.left, clientX) : clientX;
var y = isHorizontalPlacement ? Math.max(padding.top, clientY) : clientY; // Bottom / right boundary
if (isVerticalPlacement && x > padding.right) {
x = Math.min(clientX, window.innerWidth - padding.right);
}
if (isHorizontalPlacement && y > padding.bottom) {
y = Math.min(clientY, window.innerHeight - padding.bottom);
} // If the instance is interactive, avoid updating the position unless it's

@@ -1023,20 +1041,33 @@ // over the reference element

});
var rect = reference.getBoundingClientRect();
var followCursor = instance.props.followCursor;
var isHorizontal = followCursor === 'horizontal';
var isVertical = followCursor === 'vertical'; // The virtual reference needs some size to prevent itself from overflowing
var fakeSize = 100;
var halfFakeSize = fakeSize / 2;
var isVerticalPlacement = getIsVerticalPlacement();
var verticalIncrease = isVerticalPlacement ? 0 : halfFakeSize;
var horizontalIncrease = isVerticalPlacement ? halfFakeSize : 0;
if (isCursorOverReference || !instance.props.interactive) {
instance.popperInstance.reference = _extends({}, instance.popperInstance.reference, {
instance.popperInstance.reference = {
// These `clientWidth` values don't get used by Popper.js if they are 0
clientWidth: 0,
clientHeight: 0,
getBoundingClientRect: function getBoundingClientRect() {
return {
width: 0,
height: 0,
top: isHorizontal ? rect.top : y,
bottom: isHorizontal ? rect.bottom : y,
left: isVertical ? rect.left : x,
right: isVertical ? rect.right : x
width: isVerticalPlacement ? fakeSize : 0,
height: isVerticalPlacement ? 0 : fakeSize,
top: (isHorizontal ? rect.top : y) - verticalIncrease,
bottom: (isHorizontal ? rect.bottom : y) + verticalIncrease,
left: (isVertical ? rect.left : x) - horizontalIncrease,
right: (isVertical ? rect.right : x) + horizontalIncrease
};
}
});
};
instance.popperInstance.scheduleUpdate();
}
if (followCursor === 'initial' && instance.state.isVisible) {
if (currentInput.isTouch || followCursor === 'initial' && instance.state.isVisible) {
removeFollowCursorListener();

@@ -1047,3 +1078,3 @@ }

function onTrigger(event) {
if (!instance.state.isEnabled || isEventListenerStopped(event)) {
if (didHideDueToDocumentMouseDown || !instance.state.isEnabled || isEventListenerStopped(event)) {
return;

@@ -1084,3 +1115,3 @@ }

if (isCursorOutsideInteractiveBorder(getBasicPlacement(currentPlacement), popper.getBoundingClientRect(), event, instance.props)) {
if (isCursorOutsideInteractiveBorder(getBasePlacement(currentPlacement), popper.getBoundingClientRect(), event, instance.props)) {
cleanupInteractiveMouseListeners();

@@ -1109,4 +1140,5 @@ scheduleHide(event);

return;
}
} // If focus was moved to within the popper
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {

@@ -1123,3 +1155,3 @@ return;

var touchHold = instance.props.touchHold;
return supportsTouch && isUsingTouch && touchHold && !isTouchEvent || isUsingTouch && !touchHold && isTouchEvent;
return supportsTouch && currentInput.isTouch && touchHold && !isTouchEvent || currentInput.isTouch && !touchHold && isTouchEvent;
}

@@ -1145,4 +1177,2 @@

popper.removeAttribute('x-placement');
popper.removeAttribute('x-out-of-boundaries');
tooltip.setAttribute('data-placement', currentPlacement);

@@ -1157,9 +1187,7 @@

var basicPlacement = getBasicPlacement(currentPlacement);
var BasePlacement = getBasePlacement(currentPlacement);
var tooltipStyles = tooltip.style;
tooltipStyles.top = '';
tooltipStyles.bottom = '';
tooltipStyles.left = '';
tooltipStyles.right = '';
tooltipStyles[basicPlacement] = -instance.props.distance + 'px';
tooltipStyles.top = '0';
tooltipStyles.left = '0';
tooltipStyles[getIsVerticalPlacement() ? 'top' : 'left'] = "".concat((getIsOppositePlacement() ? 1 : -1) * instance.props.distance, "px");
var padding = preventOverflowModifier && preventOverflowModifier.padding !== undefined ? preventOverflowModifier.padding : PADDING;

@@ -1175,3 +1203,3 @@ var isPaddingNumber = typeof padding === 'number';

computedPadding[basicPlacement] = isPaddingNumber ? padding + instance.props.distance : (padding[basicPlacement] || 0) + instance.props.distance;
computedPadding[BasePlacement] = isPaddingNumber ? padding + instance.props.distance : (padding[BasePlacement] || 0) + instance.props.distance;
instance.popperInstance.modifiers.filter(function (m) {

@@ -1243,3 +1271,3 @@ return m.name === 'preventOverflow';

hasMountCallbackRun = false;
var shouldEnableListeners = !isInFollowCursorMode() && !(instance.props.followCursor === 'initial' && isUsingTouch);
var isInFollowCursorMode = getIsInFollowCursorMode();

@@ -1249,12 +1277,9 @@ if (!instance.popperInstance) {

if (shouldEnableListeners) {
if (!isInFollowCursorMode) {
instance.popperInstance.enableEventListeners();
}
} else {
if (!isInFollowCursorMode()) {
if (!isInFollowCursorMode) {
instance.popperInstance.scheduleUpdate();
if (shouldEnableListeners) {
instance.popperInstance.enableEventListeners();
}
instance.popperInstance.enableEventListeners();
}

@@ -1269,23 +1294,9 @@

instance.popperInstance.reference = reference;
var arrow = instance.popperChildren.arrow;
if (isInFollowCursorMode()) {
if (arrow) {
arrow.style.margin = '0';
}
if (lastMouseMoveEvent) {
if (isInFollowCursorMode && lastMouseMoveEvent) {
// TODO: If the tippy also has `updateDuration`, it transitions from
// the initial placement to the cursor point
requestAnimationFrame(function () {
positionVirtualReferenceNearCursor(lastMouseMoveEvent);
}
} else if (arrow) {
arrow.style.margin = '';
} // Allow followCursor: 'initial' on touch devices
if (isUsingTouch && lastMouseMoveEvent && instance.props.followCursor === 'initial') {
positionVirtualReferenceNearCursor(lastMouseMoveEvent);
if (arrow) {
arrow.style.margin = '0';
}
});
}

@@ -1325,3 +1336,3 @@

if (isInFollowCursorMode() && !instance.state.isMounted) {
if (getIsInFollowCursorMode() && !instance.state.isMounted) {
if (!instance.popperInstance) {

@@ -1334,3 +1345,3 @@ createPopperInstance();

addDocumentClickListener();
addDocumentMouseDownListener();
var delay = getValue(instance.props.delay, 0, defaultProps.delay);

@@ -1389,3 +1400,3 @@

function set(options) {
function setProps(partialProps) {
{

@@ -1400,3 +1411,3 @@ warnWhen(instance.state.isDestroyed, '`set()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');

{
validateOptions(options);
validateProps(partialProps);
}

@@ -1406,6 +1417,6 @@

var prevProps = instance.props;
var nextProps = evaluateProps(reference, _extends({}, instance.props, options, {
var nextProps = evaluateProps(reference, _extends({}, instance.props, partialProps, {
ignoreAttributes: true
}));
nextProps.ignoreAttributes = hasOwnProperty(options, 'ignoreAttributes') ? options.ignoreAttributes || false : prevProps.ignoreAttributes;
nextProps.ignoreAttributes = hasOwnProperty(partialProps, 'ignoreAttributes') ? partialProps.ignoreAttributes || false : prevProps.ignoreAttributes;
instance.props = nextProps;

@@ -1420,3 +1431,3 @@ addTriggersToEventListenersTarget();

if (POPPER_INSTANCE_DEPENDENCIES.some(function (prop) {
return hasOwnProperty(options, prop) && options[prop] !== prevProps[prop];
return hasOwnProperty(partialProps, prop) && partialProps[prop] !== prevProps[prop];
})) {

@@ -1440,3 +1451,3 @@ instance.popperInstance.destroy();

function setContent(content) {
instance.set({
instance.setProps({
content: content

@@ -1448,8 +1459,15 @@ });

var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getValue(instance.props.duration, 0, defaultProps.duration[1]);
var shouldPreventPopperTransition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
{
warnWhen(instance.state.isDestroyed, '`show()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');
}
} // Early bail-out
if (instance.state.isDestroyed || !instance.state.isEnabled || isUsingTouch && !instance.props.touch) {
var isAlreadyVisible = instance.state.isVisible;
var isDestroyed = instance.state.isDestroyed;
var isDisabled = !instance.state.isEnabled;
var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
return;

@@ -1469,8 +1487,9 @@ } // Standardize `disabled` behavior across browsers.

addDocumentClickListener();
addDocumentMouseDownListener();
popper.style.visibility = 'visible';
instance.state.isVisible = true; // Prevent a transition if the popper is at the opposite placement
instance.state.isVisible = true; // Prevent a transition of the popper from its previous position and of the
// elements at a different placement.
var transitionableElements = getTransitionableElements();
setTransitionDuration(transitionableElements.concat(popper), 0);
setTransitionDuration(shouldPreventPopperTransition ? transitionableElements.concat(popper) : transitionableElements, 0);

@@ -1483,3 +1502,3 @@ currentMountCallback = function currentMountCallback() {

if (!isInFollowCursorMode()) {
if (!getIsInFollowCursorMode()) {
instance.popperInstance.update();

@@ -1517,5 +1536,12 @@ }

warnWhen(instance.state.isDestroyed, '`hide()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');
}
} // Early bail-out
// We're checking `isMounted` instead if `isVisible` so that `destroy()`'s
// instance.hide(0) call is not ignored (to unmount the tippy instantly)
if (instance.state.isDestroyed || !instance.state.isEnabled) {
var isAlreadyHidden = !instance.state.isMounted;
var isDestroyed = instance.state.isDestroyed;
var isDisabled = !instance.state.isEnabled;
if (isAlreadyHidden || isDestroyed || isDisabled) {
return;

@@ -1528,3 +1554,3 @@ }

removeDocumentClickListener();
removeDocumentMouseDownListener();
popper.style.visibility = 'hidden';

@@ -1560,10 +1586,7 @@ instance.state.isVisible = false;

return;
} // If the popper is currently mounted to the DOM, we want to ensure it gets
// hidden and unmounted instantly upon destruction
} // `destroy()`'s `hide()` call should not be ignored
if (instance.state.isMounted) {
instance.hide(0);
}
instance.enable();
instance.hide(0);
removeTriggersFromEventListenersTarget();

@@ -1580,19 +1603,14 @@ delete reference._tippy;

var globalEventListenersBound = false;
/**
* Exported module
*/
function tippy(targets, options) {
function tippy(targets, optionalProps) {
{
validateTargets(targets);
validateOptions(options);
validateProps(optionalProps);
}
if (!globalEventListenersBound) {
bindGlobalEventListeners();
globalEventListenersBound = true;
}
bindGlobalEventListeners();
var props = _extends({}, defaultProps, options);
var props = _extends({}, defaultProps, optionalProps);

@@ -1604,3 +1622,3 @@ var elements = getArrayOfElements(targets);

var isMoreThanOneReferenceElement = elements.length > 1;
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, '`tippy()` was passed a targets argument that will create more than ' + 'one tippy instance, but only a single element was supplied as the ' + '`content` option. Use a function that returns a cloned version of ' + 'the element instead, or pass the .innerHTML of the template element.');
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, '`tippy()` was passed a targets argument that will create more than ' + 'one tippy instance, but only a single element was supplied as the ' + '`content` prop. This means the content will only be appended to the ' + 'last tippy element of the list. Instead, use a function that ' + 'returns a cloned version of the element instead, or pass the ' + '.innerHTML of the element.');
}

@@ -1617,7 +1635,8 @@

}, []);
return targets ? isRealElement(targets) ? instances[0] : instances : null;
return isRealElement(targets) ? instances[0] : instances;
}
tippy.version = version;
tippy.defaults = defaultProps;
tippy.defaultProps = defaultProps;
tippy.currentInput = currentInput;
/**

@@ -1627,6 +1646,6 @@ * Mutates the defaultProps object by setting the props specified

tippy.setDefaults = function (partialDefaults) {
Object.keys(partialDefaults).forEach(function (key) {
tippy.setDefaultProps = function (partialProps) {
Object.keys(partialProps).forEach(function (key) {
// @ts-ignore
defaultProps[key] = partialDefaults[key];
defaultProps[key] = partialProps[key];
});

@@ -1662,5 +1681,21 @@ };

{
tippy.group = function () {
warnWhen(true, '`tippy.group()` was removed in v5 and replaced ' + 'with `createSingleton()`. Read more: ' + 'https://atomiks.github.io/tippyjs/singleton/');
};
Object.defineProperty(tippy, 'group', {
value: function value() {
warnWhen(true, '`tippy.group()` was removed in v5 and replaced with ' + '`createSingleton()`. Read more here: ' + 'https://atomiks.github.io/tippyjs/addons#singleton');
},
enumerable: false
});
Object.defineProperty(tippy, 'setDefaults', {
value: function value() {
warnWhen(true, '`tippy.setDefaults()` was renamed to `tippy.setDefaultProps()` in v5.');
},
enumerable: false
});
Object.defineProperty(tippy, 'defaults', {
get: function get() {
warnWhen(true, 'The `tippy.defaults` property was renamed to `tippy.defaultProps` ' + 'in v5.');
return undefined;
},
enumerable: false
});
}

@@ -1695,3 +1730,2 @@ /**

var style = document.createElement('style');
style.type = 'text/css';
style.textContent = css;

@@ -1698,0 +1732,0 @@ style.setAttribute('data-tippy-stylesheet', '');

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

var tippy=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var n="undefined"!=typeof window&&"undefined"!=typeof document,i=n?navigator.userAgent:"",r=/MSIE |Trident\//.test(i),o=/UCBrowser\//.test(i),a=n&&/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,p={allowHTML:!0,animateFill:!0,animation:"shift-away",appendTo:function(){return document.body},aria:"describedby",arrow:!1,arrowType:"sharp",boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,followCursor:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnInit:!1,size:"regular",sticky:!1,theme:"tippy-dark",touch:!0,touchHold:!1,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},s=["arrow","arrowType","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"];function d(t){return[].slice.call(t)}function c(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}var l={passive:!0},u=4,f="tippy-iOS",m="tippy-popper",y="tippy-tooltip",v="tippy-content",b="tippy-backdrop",h="tippy-arrow",g="tippy-svgArrow",w=".".concat(m),x=".".concat(y),A=".".concat(v),E=".".concat(b),k=".".concat(h),C=".".concat(g),T=!1,I=0;function L(){T||(T=!0,a&&document.body.classList.add(f),window.performance&&document.addEventListener("mousemove",O))}function O(){var t=performance.now();t-I<20&&(T=!1,document.removeEventListener("mousemove",O),a||document.body.classList.remove(f)),I=t}function M(){var t=document.activeElement;t&&t.blur&&t._tippy&&t.blur()}var S=Object.keys(p);function D(t,e){return{}.hasOwnProperty.call(t,e)}function z(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function H(t,e){return t&&t.modifiers&&t.modifiers[e]}function V(t,e){return t.indexOf(e)>-1}function N(t){return t instanceof Element}function U(t,e){return"function"==typeof t?t.apply(null,e):t}function B(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function q(){return document.createElement("div")}function F(t,e){t.forEach(function(t){t&&(t.style.transitionDuration="".concat(e,"ms"))})}function P(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function _(t,n){var i=e({},n,{content:U(n.content,[t])},n.ignoreAttributes?{}:function(t){return S.reduce(function(e,n){var i=(t.getAttribute("data-tippy-".concat(n))||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e},{})}(t));return(i.arrow||o)&&(i.animateFill=!1),i}function W(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)};var n}function j(t,e){t.innerHTML=N(e)?e.innerHTML:e}function X(t,e){if(N(e.content))j(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function Y(t){return{tooltip:t.querySelector(x),backdrop:t.querySelector(E),content:t.querySelector(A),arrow:t.querySelector(k)||t.querySelector(C)}}function R(t){t.setAttribute("data-inertia","")}function J(t){var e=q();return"sharp"!==t?(e.className=g,j(e,"round"===t?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':t)):e.className=h,e}function G(t){var e=q();return e.className=b,e.setAttribute("data-state",t?"visible":"hidden"),e}function K(t){t.setAttribute("data-interactive","")}function Q(t,e,n){var i=o&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function Z(t){return t.split("-")[0]}function $(t,e,n){n.split(" ").forEach(function(n){t.classList[e](n+"-theme")})}function tt(t,e){var n=q();n.className=m;var i=q();i.className=y,i.id="tippy-".concat(t),i.setAttribute("data-state","hidden"),$(i,"add",e.theme);var r=q();return r.className=v,r.setAttribute("data-state","hidden"),e.interactive&&K(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(J(e.arrowType))),e.animateFill&&(i.appendChild(G(!1)),i.setAttribute("data-animatefill","")),e.inertia&&R(i),X(r,e),i.appendChild(r),n.appendChild(i),et(n,e,e,!1),n}function et(t,e,n,i){var r=Y(t),o=r.tooltip,a=r.content,p=r.backdrop,s=r.arrow;t.style.zIndex=""+n.zIndex,o.setAttribute("data-size",n.size),o.setAttribute("data-animation",n.animation),o.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),e.content!==n.content&&X(a,n),!e.animateFill&&n.animateFill?(o.appendChild(G(i)),o.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(o.removeChild(p),o.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(o.appendChild(J(n.arrowType)),o.setAttribute("data-arrow","")):e.arrow&&!n.arrow&&(o.removeChild(s),o.removeAttribute("data-arrow")),e.arrow&&n.arrow&&e.arrowType!==n.arrowType&&o.replaceChild(J(n.arrowType),s),!e.interactive&&n.interactive?K(o):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(o),!e.inertia&&n.inertia?R(o):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(o),e.theme!==n.theme&&($(o,"remove",e.theme),$(o,"add",n.theme))}var nt=1,it=[];function rt(n,i){var o,a,d,f,m,y=_(n,i);if(!y.multiple&&n._tippy)return null;var v,b,h,g=!1,w=y.placement,x=!1,A=[],E=W(st,y.interactiveDebounce),k=nt++,C=tt(k,y),I=Y(C),L=I.tooltip,O=I.content,M={id:k,reference:n,popper:C,popperChildren:I,popperInstance:null,props:y,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:function(){clearTimeout(d),clearTimeout(f),cancelAnimationFrame(m)},set:function(t){if(M.state.isDestroyed)return;rt();var i=M.props,r=_(n,e({},M.props,t,{ignoreAttributes:!0}));r.ignoreAttributes=D(t,"ignoreAttributes")?t.ignoreAttributes||!1:i.ignoreAttributes,M.props=r,$(),q(),E=W(st,r.interactiveDebounce),et(C,i,r,M.state.isVisible),M.popperChildren=Y(C),M.popperInstance&&(s.some(function(e){return D(t,e)&&t[e]!==i[e]})?(M.popperInstance.destroy(),ut(),M.state.isVisible&&M.popperInstance.enableEventListeners(),M.props.followCursor&&a&&at(a)):M.popperInstance.update())},setContent:function(t){M.set({content:t})},show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z(M.props.duration,0,p.duration[1]);if(M.state.isDestroyed||!M.state.isEnabled||T&&!M.props.touch)return;if(j().hasAttribute("disabled"))return;if(!1===M.props.onShow(M))return;R(),C.style.visibility="visible",M.state.isVisible=!0;var e=J();F(e.concat(C),0),v=function(){M.state.isVisible&&(S()||M.popperInstance.update(),M.popperChildren.backdrop&&(M.popperChildren.content.style.transitionDelay=Math.round(t/12)+"ms"),M.props.sticky&&function(){F([C],r?0:M.props.updateDuration),function t(){M.popperInstance.scheduleUpdate();M.state.isMounted?requestAnimationFrame(t):F([C],0)}()}(),F([C],M.props.updateDuration),F(e,t),P(e,"visible"),function(t,e){G(t,e)}(t,function(){M.props.aria&&j().setAttribute("aria-".concat(M.props.aria),L.id),M.props.onShown(M),M.state.isShown=!0}))},function(){x=!1;var t=!(S()||"initial"===M.props.followCursor&&T);M.popperInstance?(S()||(M.popperInstance.scheduleUpdate(),t&&M.popperInstance.enableEventListeners()),B(M.popperInstance.modifiers,M.props.flip)):(ut(),t&&M.popperInstance.enableEventListeners());M.popperInstance.reference=n;var e=M.popperChildren.arrow;S()?(e&&(e.style.margin="0"),a&&at(a)):e&&(e.style.margin="");T&&a&&"initial"===M.props.followCursor&&(at(a),e&&(e.style.margin="0"));var i=M.props.appendTo,r="parent"===i?n.parentNode:U(i,[n]);r.contains(C)||(r.appendChild(C),M.props.onMount(M),M.state.isMounted=!0)}()},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z(M.props.duration,1,p.duration[1]);if(M.state.isDestroyed||!M.state.isEnabled)return;if(!1===M.props.onHide(M))return;document.removeEventListener("click",X,!0),C.style.visibility="hidden",M.state.isVisible=!1,M.state.isShown=!1;var e=J();F(e,t),P(e,"hidden"),function(t,e){G(t,function(){!M.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&e()})}(t,function(){g||N(),M.props.aria&&j().removeAttribute("aria-".concat(M.props.aria)),M.popperInstance.disableEventListeners(),M.popperInstance.options.placement=M.props.placement,C.parentNode.removeChild(C),M.props.onHidden(M),M.state.isMounted=!1})},enable:function(){M.state.isEnabled=!0},disable:function(){M.state.isEnabled=!1},destroy:function(){if(M.state.isDestroyed)return;M.state.isMounted&&M.hide(0);rt(),delete n._tippy,M.popperInstance&&M.popperInstance.destroy();M.state.isDestroyed=!0}};return n._tippy=M,C._tippy=M,$(),y.lazy||ut(),y.showOnInit&&mt(),C.addEventListener("mouseenter",function(){M.props.interactive&&M.state.isVisible&&"mouseenter"===o&&M.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){M.props.interactive&&"mouseenter"===o&&document.addEventListener("mousemove",E)}),y.onCreate(M),M;function S(){return M.props.followCursor&&!T&&"focus"!==o}function N(){document.removeEventListener("mousemove",at)}function q(){document.body.removeEventListener("mouseleave",yt),document.removeEventListener("mousemove",E),it=it.filter(function(t){return t!==E})}function j(){return M.props.triggerTarget||n}function X(t){if(!M.props.interactive||!C.contains(t.target)){if(j().contains(t.target)){if(T)return;if(M.state.isVisible&&V(M.props.trigger,"click"))return}!0===M.props.hideOnClick&&(M.clearDelayTimeouts(),M.hide())}}function R(){document.addEventListener("click",X,!0)}function J(){return[L,O,M.popperChildren.backdrop]}function G(t,e){function n(t){t.target===L&&(Q(L,"remove",n),e())}if(0===t)return e();Q(L,"remove",b),Q(L,"add",n),b=n}function K(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];j().addEventListener(t,e,n),A.push({eventType:t,handler:e,options:n})}function $(){M.props.touchHold&&(K("touchstart",pt,l),K("touchend",dt,l)),M.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)switch(K(t,pt),t){case"mouseenter":K("mouseleave",dt);break;case"focus":K(r?"focusout":"blur",ct)}})}function rt(){A.forEach(function(t){var e=t.eventType,n=t.handler,i=t.options;j().removeEventListener(e,n,i)}),A=[]}function ot(t){return M.props.arrow?h[t]+("round"===M.props.arrowType?18:16):h[t]}function at(t){var i=a=t,r=i.clientX,o=i.clientY;if(h){var p=n.getBoundingClientRect(),s=M.props.followCursor,d="horizontal"===s,l="vertical"===s,u=Z(w),f=V(["top","bottom"],u),m=V(["left","right"],u),y=e({},h);f&&(y.left=ot("left"),y.right=ot("right")),m&&(y.top=ot("top"),y.bottom=ot("bottom"));var v=f?Math.max(y.left,r):r,b=m?Math.max(y.top,o):o;f&&v>y.right&&(v=Math.min(r,window.innerWidth-y.right)),m&&b>y.bottom&&(b=Math.min(o,window.innerHeight-y.bottom)),!c(t.target,function(t){return t===n})&&M.props.interactive||(M.popperInstance.reference=e({},M.popperInstance.reference,{getBoundingClientRect:function(){return{width:0,height:0,top:d?p.top:b,bottom:d?p.bottom:b,left:l?p.left:v,right:l?p.right:v}}}),M.popperInstance.scheduleUpdate()),"initial"===s&&M.state.isVisible&&N()}}function pt(t){M.state.isEnabled&&!lt(t)&&(M.state.isVisible||(o=t.type,t instanceof MouseEvent&&(a=t,it.forEach(function(e){return e(t)}))),"click"===t.type&&!1!==M.props.hideOnClick&&M.state.isVisible?yt(t):mt(t))}function st(t){c(t.target,function(t){return t===n||t===C})||function(t,e,n,i){if(!t)return!0;var r=n.clientX,o=n.clientY,a=i.interactiveBorder,p=i.distance,s=e.top-o>("top"===t?a+p:a),d=o-e.bottom>("bottom"===t?a+p:a),c=e.left-r>("left"===t?a+p:a),l=r-e.right>("right"===t?a+p:a);return s||d||c||l}(Z(w),C.getBoundingClientRect(),t,M.props)&&(q(),yt(t))}function dt(t){if(!lt(t))return M.props.interactive?(document.body.addEventListener("mouseleave",yt),document.addEventListener("mousemove",E),void it.push(E)):void yt(t)}function ct(t){t.target===j()&&(M.props.interactive&&t.relatedTarget&&C.contains(t.relatedTarget)||yt(t))}function lt(t){var e="ontouchstart"in window,n=V(t.type,"touch"),i=M.props.touchHold;return e&&T&&i&&!n||T&&!i&&n}function ut(){var i=M.props.popperOptions,r=M.popperChildren.arrow,o=H(i,"preventOverflow");function a(t){var n=w;w=t.placement,M.props.flip&&!M.props.flipOnUpdate&&(t.flipped&&(M.popperInstance.options.placement=t.placement),B(M.popperInstance.modifiers,!1)),C.removeAttribute("x-placement"),C.removeAttribute("x-out-of-boundaries"),L.setAttribute("data-placement",w),!1!==t.attributes["x-out-of-boundaries"]?L.setAttribute("data-out-of-boundaries",""):L.removeAttribute("data-out-of-boundaries");var i=Z(w),r=L.style;r.top="",r.bottom="",r.left="",r.right="",r[i]=-M.props.distance+"px";var a=o&&void 0!==o.padding?o.padding:u,p="number"==typeof a,s=e({top:p?a:a.top,bottom:p?a:a.bottom,left:p?a:a.left,right:p?a:a.right},!p&&a);s[i]=p?a+M.props.distance:(a[i]||0)+M.props.distance,M.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=s,h=s,w!==n&&M.popperInstance.update()}var p=e({eventsEnabled:!1,placement:M.props.placement},i,{modifiers:e({},i?i.modifiers:{},{preventOverflow:e({boundariesElement:M.props.boundary,padding:u},o),arrow:e({element:r,enabled:!!r},H(i,"arrow")),flip:e({enabled:M.props.flip,padding:M.props.distance+u,behavior:M.props.flipBehavior},H(i,"flip")),offset:e({offset:M.props.offset},H(i,"offset"))}),onCreate:function(t){a(t),ft(),i&&i.onCreate&&i.onCreate(t)},onUpdate:function(t){a(t),ft(),i&&i.onUpdate&&i.onUpdate(t)}});M.popperInstance=new t(n,C,p)}function ft(){!x&&v&&(x=!0,function(t){t.offsetHeight}(C),v())}function mt(t){if(M.clearDelayTimeouts(),t&&M.props.onTrigger(M,t),!M.state.isVisible){if(g=!0,M.props.wait)return M.props.wait(M,t);S()&&!M.state.isMounted&&(M.popperInstance||ut(),document.addEventListener("mousemove",at)),R();var e=z(M.props.delay,0,p.delay);e?d=setTimeout(function(){M.show()},e):M.show()}}function yt(t){if(M.clearDelayTimeouts(),M.props.onUntrigger(M,t),!M.state.isVisible)return N();g=!1;var e=z(M.props.delay,1,p.delay);e?f=setTimeout(function(){M.state.isVisible&&M.hide()},e):m=requestAnimationFrame(function(){M.hide()})}}var ot=!1;function at(t,n){ot||(document.addEventListener("touchstart",L,l),window.addEventListener("blur",M),ot=!0);var i=e({},p,n),r=function(t){if(N(t))return[t];if(t instanceof NodeList)return d(t);if(Array.isArray(t))return t;try{return d(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce(function(t,e){var n=e&&rt(e,i);return n&&t.push(n),t},[]);return t?N(t)?r[0]:r:null}return at.version="5.0.0-alpha.0",at.defaults=p,at.setDefaults=function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},at.hideAll=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.exclude,n=t.duration;d(document.querySelectorAll(w)).forEach(function(t){var i,r=t._tippy;if(r){var o=!1;e&&(o=(i=e)&&i._tippy&&!i.classList.contains(m)?r.reference===e:t===e.popper),o||r.hide(n)}})},n&&setTimeout(function(){d(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&at(t,{content:e})})}),function(t){if(n){var e=document.createElement("style");e.type="text/css",e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var i=document.head,r=i.firstChild;r?i.insertBefore(e,r):i.appendChild(e)}}('.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}'),at}(Popper);
var tippy=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}var i="undefined"!=typeof window&&"undefined"!=typeof document,n=i?navigator.userAgent:"",o=/MSIE |Trident\//.test(n),r=/UCBrowser\//.test(n),a=i&&/iPhone|iPad|iPod/.test(navigator.platform),p={allowHTML:!0,animateFill:!0,animation:"shift-away",appendTo:function(){return document.body},aria:"describedby",arrow:!1,arrowType:"sharp",boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,followCursor:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnInit:!1,size:"regular",sticky:!1,theme:"tippy-dark",touch:!0,touchHold:!1,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},s=["arrow","arrowType","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"];function c(t){return[].slice.call(t)}function d(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}var l={passive:!0},u=4,f="tippy-iOS",m="tippy-popper",y="tippy-tooltip",v="tippy-content",b="tippy-backdrop",h="tippy-arrow",g="tippy-svgArrow",w=".".concat(m),A=".".concat(y),x=".".concat(v),T=".".concat(b),E=".".concat(h),k=".".concat(g),C={isTouch:!1},I=0;function L(){C.isTouch||(C.isTouch=!0,a&&document.body.classList.add(f),window.performance&&document.addEventListener("mousemove",O))}function O(){var t=performance.now();t-I<20&&(C.isTouch=!1,document.removeEventListener("mousemove",O),a||document.body.classList.remove(f)),I=t}function D(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}var z=Object.keys(p);function S(t,e){return{}.hasOwnProperty.call(t,e)}function M(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?i:n}return t}function V(t,e){return t&&t.modifiers&&t.modifiers[e]}function H(t,e){return t.indexOf(e)>-1}function N(t){return t instanceof Element}function P(t,e){return"function"==typeof t?t.apply(null,e):t}function U(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function q(){return document.createElement("div")}function B(t,e){t.forEach(function(t){t&&(t.style.transitionDuration="".concat(e,"ms"))})}function F(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function _(t,i){var n=e({},i,{content:P(i.content,[t])},i.ignoreAttributes?{}:function(t){return z.reduce(function(e,i){var n=(t.getAttribute("data-tippy-".concat(i))||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e},{})}(t));return(n.arrow||r)&&(n.animateFill=!1),n}function W(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout(function(){t(n)},e)};var i}function j(t,e){t.innerHTML=N(e)?e.innerHTML:e}function X(t,e){if(N(e.content))j(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function Y(t){return{tooltip:t.querySelector(A),backdrop:t.querySelector(T),content:t.querySelector(x),arrow:t.querySelector(E)||t.querySelector(k)}}function R(t){t.setAttribute("data-inertia","")}function J(t){var e=q();return"sharp"!==t?(e.className=g,j(e,"round"===t?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':t)):e.className=h,e}function G(t){var e=q();return e.className=b,e.setAttribute("data-state",t?"visible":"hidden"),e}function K(t){t.setAttribute("data-interactive","")}function Q(t,e,i){var n=r&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](n,i)}function Z(t){return t.split("-")[0]}function $(t,e,i){i.split(" ").forEach(function(i){t.classList[e](i+"-theme")})}function tt(t,e){var i=q();i.className=m;var n=q();n.className=y,n.id="tippy-".concat(t),n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1"),$(n,"add",e.theme);var o=q();return o.className=v,o.setAttribute("data-state","hidden"),e.interactive&&K(n),e.arrow&&(n.setAttribute("data-arrow",""),n.appendChild(J(e.arrowType))),e.animateFill&&(n.appendChild(G(!1)),n.setAttribute("data-animatefill","")),e.inertia&&R(n),X(o,e),n.appendChild(o),i.appendChild(n),et(i,e,e,!1),i}function et(t,e,i,n){var o=Y(t),r=o.tooltip,a=o.content,p=o.backdrop,s=o.arrow;t.style.zIndex=""+i.zIndex,r.setAttribute("data-size",i.size),r.setAttribute("data-animation",i.animation),r.style.maxWidth=i.maxWidth+("number"==typeof i.maxWidth?"px":""),i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),e.content!==i.content&&X(a,i),!e.animateFill&&i.animateFill?(r.appendChild(G(n)),r.setAttribute("data-animatefill","")):e.animateFill&&!i.animateFill&&(r.removeChild(p),r.removeAttribute("data-animatefill")),!e.arrow&&i.arrow?(r.appendChild(J(i.arrowType)),r.setAttribute("data-arrow","")):e.arrow&&!i.arrow&&(r.removeChild(s),r.removeAttribute("data-arrow")),e.arrow&&i.arrow&&e.arrowType!==i.arrowType&&r.replaceChild(J(i.arrowType),s),!e.interactive&&i.interactive?K(r):e.interactive&&!i.interactive&&function(t){t.removeAttribute("data-interactive")}(r),!e.inertia&&i.inertia?R(r):e.inertia&&!i.inertia&&function(t){t.removeAttribute("data-inertia")}(r),e.theme!==i.theme&&($(r,"remove",e.theme),$(r,"add",i.theme))}var it=1,nt=[];function ot(i,n){var r,a,c,f,m,y=_(i,n);if(!y.multiple&&i._tippy)return null;var v,b,h,g=!1,w=y.placement,A=!1,x=!1,T=[],E=W(dt,y.interactiveDebounce),k=it++,I=tt(k,y),L=Y(I),O=L.tooltip,D=L.content,z={id:k,reference:i,popper:I,popperChildren:L,popperInstance:null,props:y,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:function(){clearTimeout(c),clearTimeout(f),cancelAnimationFrame(m)},setProps:function(t){if(z.state.isDestroyed)return;pt();var n=z.props,o=_(i,e({},z.props,t,{ignoreAttributes:!0}));o.ignoreAttributes=S(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,z.props=o,at(),R(),E=W(dt,o.interactiveDebounce),et(I,n,o,z.state.isVisible),z.popperChildren=Y(I),z.popperInstance&&(s.some(function(e){return S(t,e)&&t[e]!==n[e]})?(z.popperInstance.destroy(),mt(),z.state.isVisible&&z.popperInstance.enableEventListeners(),z.props.followCursor&&a&&st(a)):z.popperInstance.update())},setContent:function(t){z.setProps({content:t})},show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M(z.props.duration,0,p.duration[1]),e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=z.state.isVisible,r=z.state.isDestroyed,s=!z.state.isEnabled,c=C.isTouch&&!z.props.touch;if(n||r||s||c)return;if(J().hasAttribute("disabled"))return;if(!1===z.props.onShow(z))return;K(),I.style.visibility="visible",z.state.isVisible=!0;var d=j();B(e?d.concat(I):d,0),v=function(){z.state.isVisible&&(q()||z.popperInstance.update(),z.popperChildren.backdrop&&(z.popperChildren.content.style.transitionDelay=Math.round(t/12)+"ms"),z.props.sticky&&function(){B([I],o?0:z.props.updateDuration),function t(){z.popperInstance.scheduleUpdate();z.state.isMounted?requestAnimationFrame(t):B([I],0)}()}(),B([I],z.props.updateDuration),B(d,t),F(d,"visible"),function(t,e){ot(t,e)}(t,function(){z.props.aria&&J().setAttribute("aria-".concat(z.props.aria),O.id),z.props.onShown(z),z.state.isShown=!0}))},function(){A=!1;var t=q();z.popperInstance?(t||(z.popperInstance.scheduleUpdate(),z.popperInstance.enableEventListeners()),U(z.popperInstance.modifiers,z.props.flip)):(mt(),t||z.popperInstance.enableEventListeners());z.popperInstance.reference=i,t&&a&&requestAnimationFrame(function(){st(a)});var e=z.props.appendTo,n="parent"===e?i.parentNode:P(e,[i]);n.contains(I)||(n.appendChild(I),z.props.onMount(z),z.state.isMounted=!0)}()},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M(z.props.duration,1,p.duration[1]),e=!z.state.isMounted,i=z.state.isDestroyed,n=!z.state.isEnabled;if(e||i||n)return;if(!1===z.props.onHide(z))return;$(),I.style.visibility="hidden",z.state.isVisible=!1,z.state.isShown=!1;var o=j();B(o,t),F(o,"hidden"),function(t,e){ot(t,function(){!z.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&e()})}(t,function(){g||X(),z.props.aria&&J().removeAttribute("aria-".concat(z.props.aria)),z.popperInstance.disableEventListeners(),z.popperInstance.options.placement=z.props.placement,I.parentNode.removeChild(I),z.props.onHidden(z),z.state.isMounted=!1})},enable:function(){z.state.isEnabled=!0},disable:function(){z.state.isEnabled=!1},destroy:function(){if(z.state.isDestroyed)return;z.enable(),z.hide(0),pt(),delete i._tippy,z.popperInstance&&z.popperInstance.destroy();z.state.isDestroyed=!0}};return i._tippy=z,I._tippy=z,at(),y.lazy||mt(),y.showOnInit&&vt(),I.addEventListener("mouseenter",function(){z.props.interactive&&z.state.isVisible&&"mouseenter"===r&&z.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){z.props.interactive&&"mouseenter"===r&&document.addEventListener("mousemove",E)}),y.onCreate(z),z;function N(){return H(["top","bottom"],Z(w))}function q(){return z.props.followCursor&&"focus"!==r}function j(){return[O,D,z.popperChildren.backdrop]}function X(){document.removeEventListener("mousemove",st)}function R(){document.body.removeEventListener("mouseleave",bt),document.removeEventListener("mousemove",E),nt=nt.filter(function(t){return t!==E})}function J(){return z.props.triggerTarget||i}function G(t){if(!z.props.interactive||!I.contains(t.target)){if(J().contains(t.target)){if(C.isTouch)return;if(z.state.isVisible&&H(z.props.trigger,"click"))return}!0===z.props.hideOnClick&&(z.clearDelayTimeouts(),z.hide(),x=!0,setTimeout(function(){x=!1}),z.state.isMounted||$())}}function K(){document.addEventListener("mousedown",G,!0)}function $(){document.removeEventListener("mousedown",G,!0)}function ot(t,e){function i(t){t.target===O&&(Q(O,"remove",i),e())}if(0===t)return e();Q(O,"remove",b),Q(O,"add",i),b=i}function rt(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J().addEventListener(t,e,i),T.push({eventType:t,handler:e,options:i})}function at(){z.props.touchHold&&(rt("touchstart",ct,l),rt("touchend",lt,l)),H(z.props.trigger,"click")||rt("click",function(){C.isTouch||!0!==z.props.hideOnClick||z.hide()}),z.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)switch(rt(t,ct),t){case"mouseenter":rt("mouseleave",lt);break;case"focus":rt(o?"focusout":"blur",ut)}})}function pt(){T.forEach(function(t){var e=t.eventType,i=t.handler,n=t.options;J().removeEventListener(e,i,n)}),T=[]}function st(t){var e=a=t,n=e.clientX,o=e.clientY;if(h){var r=d(t.target,function(t){return t===i}),p=i.getBoundingClientRect(),s=z.props.followCursor,c="horizontal"===s,l="vertical"===s,u=N(),f=u?0:50,m=u?50:0;!r&&z.props.interactive||(z.popperInstance.reference={clientWidth:0,clientHeight:0,getBoundingClientRect:function(){return{width:u?100:0,height:u?0:100,top:(c?p.top:o)-f,bottom:(c?p.bottom:o)+f,left:(l?p.left:n)-m,right:(l?p.right:n)+m}}},z.popperInstance.scheduleUpdate()),(C.isTouch||"initial"===s&&z.state.isVisible)&&X()}}function ct(t){x||!z.state.isEnabled||ft(t)||(z.state.isVisible||(r=t.type,t instanceof MouseEvent&&(a=t,nt.forEach(function(e){return e(t)}))),"click"===t.type&&!1!==z.props.hideOnClick&&z.state.isVisible?bt(t):vt(t))}function dt(t){d(t.target,function(t){return t===i||t===I})||function(t,e,i,n){if(!t)return!0;var o=i.clientX,r=i.clientY,a=n.interactiveBorder,p=n.distance,s=e.top-r>("top"===t?a+p:a),c=r-e.bottom>("bottom"===t?a+p:a),d=e.left-o>("left"===t?a+p:a),l=o-e.right>("right"===t?a+p:a);return s||c||d||l}(Z(w),I.getBoundingClientRect(),t,z.props)&&(R(),bt(t))}function lt(t){if(!ft(t))return z.props.interactive?(document.body.addEventListener("mouseleave",bt),document.addEventListener("mousemove",E),void nt.push(E)):void bt(t)}function ut(t){t.target===J()&&(z.props.interactive&&t.relatedTarget&&I.contains(t.relatedTarget)||bt(t))}function ft(t){var e="ontouchstart"in window,i=H(t.type,"touch"),n=z.props.touchHold;return e&&C.isTouch&&n&&!i||C.isTouch&&!n&&i}function mt(){var n=z.props.popperOptions,o=z.popperChildren.arrow,r=V(n,"preventOverflow");function a(t){var i=w;w=t.placement,z.props.flip&&!z.props.flipOnUpdate&&(t.flipped&&(z.popperInstance.options.placement=t.placement),U(z.popperInstance.modifiers,!1)),O.setAttribute("data-placement",w),!1!==t.attributes["x-out-of-boundaries"]?O.setAttribute("data-out-of-boundaries",""):O.removeAttribute("data-out-of-boundaries");var n=Z(w),o=O.style;o.top="0",o.left="0",o[N()?"top":"left"]="".concat((H(["bottom","right"],Z(w))?1:-1)*z.props.distance,"px");var a=r&&void 0!==r.padding?r.padding:u,p="number"==typeof a,s=e({top:p?a:a.top,bottom:p?a:a.bottom,left:p?a:a.left,right:p?a:a.right},!p&&a);s[n]=p?a+z.props.distance:(a[n]||0)+z.props.distance,z.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=s,h=s,w!==i&&z.popperInstance.update()}var p=e({eventsEnabled:!1,placement:z.props.placement},n,{modifiers:e({},n?n.modifiers:{},{preventOverflow:e({boundariesElement:z.props.boundary,padding:u},r),arrow:e({element:o,enabled:!!o},V(n,"arrow")),flip:e({enabled:z.props.flip,padding:z.props.distance+u,behavior:z.props.flipBehavior},V(n,"flip")),offset:e({offset:z.props.offset},V(n,"offset"))}),onCreate:function(t){a(t),yt(),n&&n.onCreate&&n.onCreate(t)},onUpdate:function(t){a(t),yt(),n&&n.onUpdate&&n.onUpdate(t)}});z.popperInstance=new t(i,I,p)}function yt(){!A&&v&&(A=!0,function(t){t.offsetHeight}(I),v())}function vt(t){if(z.clearDelayTimeouts(),t&&z.props.onTrigger(z,t),!z.state.isVisible){if(g=!0,z.props.wait)return z.props.wait(z,t);q()&&!z.state.isMounted&&(z.popperInstance||mt(),document.addEventListener("mousemove",st)),K();var e=M(z.props.delay,0,p.delay);e?c=setTimeout(function(){z.show()},e):z.show()}}function bt(t){if(z.clearDelayTimeouts(),z.props.onUntrigger(z,t),!z.state.isVisible)return X();g=!1;var e=M(z.props.delay,1,p.delay);e?f=setTimeout(function(){z.state.isVisible&&z.hide()},e):m=requestAnimationFrame(function(){z.hide()})}}function rt(t,i){document.addEventListener("touchstart",L,l),window.addEventListener("blur",D);var n=e({},p,i),o=function(t){if(N(t))return[t];if(t instanceof NodeList)return c(t);if(Array.isArray(t))return t;try{return c(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce(function(t,e){var i=e&&ot(e,n);return i&&t.push(i),t},[]);return N(t)?o[0]:o}return rt.version="5.0.0-alpha.1",rt.defaultProps=p,rt.currentInput=C,rt.setDefaultProps=function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},rt.hideAll=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.exclude,i=t.duration;c(document.querySelectorAll(w)).forEach(function(t){var n,o=t._tippy;if(o){var r=!1;e&&(r=(n=e)&&n._tippy&&!n.classList.contains(m)?o.reference===e:t===e.popper),r||o.hide(i)}})},i&&setTimeout(function(){c(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&rt(t,{content:e})})}),function(t){if(i){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,o=n.firstChild;o?n.insertBefore(e,o):n.appendChild(e)}}('.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-tooltip[data-animation=shift-away][data-placement^=top][data-state=hidden]{transform:translateY(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=bottom][data-state=hidden]{transform:translateY(-10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=left][data-state=hidden]{transform:translateX(10px)}.tippy-tooltip[data-animation=shift-away][data-placement^=right][data-state=hidden]{transform:translateX(-10px)}.tippy-tooltip[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;text-align:center;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-tooltip[data-placement^=top] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-tooltip[data-placement^=top] .tippy-svgArrow{transform-origin:50% 0;margin:0 3px;bottom:-7px;bottom:-6.5px}.tippy-tooltip[data-placement^=top] .tippy-svgArrow svg{transform:rotate(180deg)}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-tooltip[data-placement^=bottom] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow{transform-origin:50% 7px;margin:0 3px;top:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-svgArrow svg{transform:rotate(0)}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-tooltip[data-placement^=left] .tippy-svgArrow{transform-origin:33.33333333% 50%;margin:3px 0;right:-12px}.tippy-tooltip[data-placement^=left] .tippy-svgArrow svg{transform:rotate(90deg)}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-tooltip[data-placement^=right] .tippy-svgArrow{transform-origin:66.66666666% 50%;margin:3px 0;left:-12px}.tippy-tooltip[data-placement^=right] .tippy-svgArrow svg{transform:rotate(-90deg)}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-svgArrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid}.tippy-arrow,.tippy-svgArrow{position:absolute}.tippy-arrow[data-state=hidden],.tippy-svgArrow[data-state=hidden]{opacity:0}.tippy-svgArrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-svgArrow svg{position:absolute;left:0}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-content{padding:.3125rem .5625rem}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}'),rt}(Popper);
//# sourceMappingURL=tippy.bundle.min.js.map
/**!
* tippy.js v5.0.0-alpha.0
* tippy.js v5.0.0-alpha.1
* (c) 2017-2019 atomiks

@@ -29,3 +29,3 @@ * MIT License

var version = "5.0.0-alpha.0";
var version = "5.0.0-alpha.1";

@@ -36,3 +36,3 @@ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';

var isUCBrowser = /UCBrowser\//.test(ua);
var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream;
var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform);

@@ -142,3 +142,5 @@ var defaultProps = {

var isUsingTouch = false;
var currentInput = {
isTouch: false
};
var lastMouseMoveTime = 0;

@@ -148,12 +150,12 @@ /**

* input. We'll bind a `mousemove` event listener to listen for mouse input in
* the future. This way, the `isUsingTouch` variable is fully dynamic and will
* handle hybrid devices that use a mix of touch + mouse input.
* the future. This way, the `isTouch` property is fully dynamic and will handle
* hybrid devices that use a mix of touch + mouse input.
*/
function onDocumentTouchStart() {
if (isUsingTouch) {
if (currentInput.isTouch) {
return;
}
isUsingTouch = true;
currentInput.isTouch = true;

@@ -178,3 +180,3 @@ if (isIOS) {

if (now - lastMouseMoveTime < 20) {
isUsingTouch = false;
currentInput.isTouch = false;
document.removeEventListener('mousemove', onDocumentMouseMove);

@@ -199,4 +201,5 @@

activeElement = _document.activeElement;
var instance = activeElement._tippy;
if (activeElement && activeElement.blur && activeElement._tippy) {
if (activeElement && activeElement.blur && instance && !instance.state.isVisible) {
activeElement.blur();

@@ -219,3 +222,3 @@ }

function getDataAttributeOptions(reference) {
function getDataAttributeProps(reference) {
return keys.reduce(function (acc, key) {

@@ -367,4 +370,4 @@ var valueAsString = (reference.getAttribute("data-tippy-".concat(key)) || '').trim();

/**
* Evaluates the props object by merging data attributes and
* disabling conflicting options where necessary
* Evaluates the props object by merging data attributes and disabling
* conflicting props where necessary
*/

@@ -375,3 +378,3 @@

content: invokeWithArgsOrReturn(props.content, [reference])
}, props.ignoreAttributes ? {} : getDataAttributeOptions(reference));
}, props.ignoreAttributes ? {} : getDataAttributeProps(reference));

@@ -404,13 +407,3 @@ if (out.arrow || isUCBrowser) {

}
/**
* Helpful wrapper around `console.warn()`
*/
function warnWhen(condition, message) {
if (condition) {
/* eslint-disable-next-line no-console */
console.warn("[tippy.js WARNING] ".concat(message));
}
}
/**

@@ -520,3 +513,3 @@ * Sets the innerHTML of an element

function getBasicPlacement(placement) {
function getBasePlacement(placement) {
return placement.split('-')[0];

@@ -551,2 +544,3 @@ }

tooltip.setAttribute('data-state', 'hidden');
tooltip.setAttribute('tabindex', '-1');
updateTheme(tooltip, 'add', props.theme);

@@ -672,19 +666,43 @@ var content = div();

/**
* Validates options with the valid `defaultProps` object
* Helpful wrapper around `console.warn()`.
* TODO: Should we use a cache so it only warns a single time and not spam the
* console? (Need to consider hot reloading and invalidation though). Chrome
* already batches warnings as well.
*/
function validateOptions() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Object.keys(options).forEach(function (option) {
var value = options[option];
var didPassTargetOption = option === 'target';
var didPassA11yOption = option === 'a11y';
var didPassOtherUnknownOption = !hasOwnProperty(defaultProps, option) && option !== 'target' && option !== 'a11y';
var didPassOldThemeName = option === 'theme' && includes(['dark', 'light', 'light-border', 'translucent'], value);
var didPassGoogleTheme = option === 'theme' && value === 'google';
warnWhen(didPassTargetOption, 'The `target` option was removed in v5 and ' + 'replaced with the `delegate()` method. Read more here: ' + 'https//atomiks.github.io/tippyjs/event-delegation/');
warnWhen(didPassA11yOption, 'The `a11y` option was removed in v5. Make ' + 'sure the element you are giving a tippy to is natively ' + 'focusable, such as <button> or <input>, not <div> or <span>.');
warnWhen(didPassOtherUnknownOption, '`' + option + '` is not a valid option. You ' + 'may have spelled it incorrectly. View all of the valid options ' + 'here: https://atomiks.github.io/tippyjs/all-options/');
function warnWhen(condition, message) {
if (condition) {
/* eslint-disable-next-line no-console */
console.warn("[tippy.js WARNING] ".concat(message));
}
}
/**
* Helpful wrapper around thrown errors
*/
function throwErrorWhen(condition, message) {
if (condition) {
throw new Error("[tippy.js ERROR] ".concat(message));
}
}
/**
* Validates props with the valid `defaultProps` object
*/
function validateProps() {
var partialProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Object.keys(partialProps).forEach(function (prop) {
var value = partialProps[prop];
var didPassTargetprop = prop === 'target';
var didPassA11yprop = prop === 'a11y';
var didPassOtherUnknownprop = !hasOwnProperty(defaultProps, prop) && prop !== 'target' && prop !== 'a11y';
var didPassOldThemeName = prop === 'theme' && includes(['dark', 'light', 'light-border', 'translucent'], value);
var didPassGoogleTheme = prop === 'theme' && value === 'google';
var didSpecifyPlacementInPopperOptions = prop === 'popperOptions' && value && hasOwnProperty(value, 'placement');
warnWhen(didPassTargetprop, 'The `target` prop was removed in v5 and ' + 'replaced with the `delegate()` method. Read more here: ' + 'https//atomiks.github.io/tippyjs/addons#event-delegation');
warnWhen(didPassA11yprop, 'The `a11y` prop was removed in v5. Make ' + 'sure the element you are giving a tippy to is natively ' + 'focusable, such as <button> or <input>, not <div> or <span>.');
warnWhen(didPassOtherUnknownprop, '`' + prop + '` is not a valid prop. You ' + 'may have spelled it incorrectly. View all of the valid props ' + 'here: https://atomiks.github.io/tippyjs/all-props/');
warnWhen(didPassOldThemeName, 'The default theme `' + value + '` in v5 must include the prefix `tippy`, i.e. ' + '"tippy-' + value + '" instead of "' + value + '".');
warnWhen(didPassGoogleTheme, 'The default theme `google` was renamed to ' + '`tippy-material` in v5.');
warnWhen(didSpecifyPlacementInPopperOptions, 'Specifying `placement` in `popperOptions` is not supported. Use the ' + 'base-level `placement` prop instead.');
});

@@ -699,4 +717,4 @@ }

var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
warnWhen(didPassFalsyValue, '`tippy()` was passed `' + targets + '` (an invalid falsy value) as its targets argument. Valid types are: ' + 'String (CSS selector), Element, Element[], or NodeList.');
warnWhen(didPassPlainObject, '`tippy()` was passed a plain object (virtual ' + 'reference element) which is no longer supported in v5. Instead, pass ' + 'a placeholder element like `document.createElement("div")`');
throwErrorWhen(didPassFalsyValue, '`tippy()` was passed `' + targets + '` (an invalid falsy value) as its targets argument. Valid types are: ' + 'String (CSS selector), Element, Element[], or NodeList.');
throwErrorWhen(didPassPlainObject, '`tippy()` was passed a plain object (virtual ' + 'reference element) which is no longer supported in v5. Instead, pass ' + 'a placeholder element like `document.createElement("div")`');
}

@@ -730,2 +748,3 @@

var hasMountCallbackRun = false;
var didHideDueToDocumentMouseDown = false;
var currentMountCallback;

@@ -768,3 +787,3 @@ var currentTransitionEndListener;

clearDelayTimeouts: clearDelayTimeouts,
set: set,
setProps: setProps,
setContent: setContent,

@@ -776,5 +795,15 @@ show: show,

destroy: destroy
/* ==================== Initial instance mutations =================== */
};
};
{
Object.defineProperty(instance, 'set', {
value: function value() {
warnWhen(true, '`set()` was renamed to `setProps()` in v5.');
},
enumerable: false
});
}
/* ==================== Initial instance mutations =================== */
reference._tippy = instance;

@@ -808,6 +837,18 @@ popper._tippy = instance;

function isInFollowCursorMode() {
return instance.props.followCursor && !isUsingTouch && lastTriggerEventType !== 'focus';
function getIsVerticalPlacement() {
return includes(['top', 'bottom'], getBasePlacement(currentPlacement));
}
function getIsOppositePlacement() {
return includes(['bottom', 'right'], getBasePlacement(currentPlacement));
}
function getIsInFollowCursorMode() {
return instance.props.followCursor && lastTriggerEventType !== 'focus';
}
function getTransitionableElements() {
return [tooltip, content, instance.popperChildren.backdrop];
}
function removeFollowCursorListener() {

@@ -829,3 +870,3 @@ document.removeEventListener('mousemove', positionVirtualReferenceNearCursor);

function onDocumentClick(event) {
function onDocumentMouseDown(event) {
// Clicked on interactive popper

@@ -838,3 +879,3 @@ if (instance.props.interactive && popper.contains(event.target)) {

if (getEventListenersTarget().contains(event.target)) {
if (isUsingTouch) {
if (currentInput.isTouch) {
return;

@@ -850,18 +891,26 @@ }

instance.clearDelayTimeouts();
instance.hide();
instance.hide(); // `mousedown` event is fired right before `focus`. This lets a tippy with
// `focus` trigger know that it should not show
didHideDueToDocumentMouseDown = true;
setTimeout(function () {
didHideDueToDocumentMouseDown = false;
}); // The listener gets added in `scheduleShow()`, but this may be hiding it
// before it shows, and hide()'s early bail-out behavior can prevent it
// from being cleaned up
if (!instance.state.isMounted) {
removeDocumentMouseDownListener();
}
}
}
function addDocumentClickListener() {
document.addEventListener('click', onDocumentClick, true);
function addDocumentMouseDownListener() {
document.addEventListener('mousedown', onDocumentMouseDown, true);
}
function removeDocumentClickListener() {
document.removeEventListener('click', onDocumentClick, true);
function removeDocumentMouseDownListener() {
document.removeEventListener('mousedown', onDocumentMouseDown, true);
}
function getTransitionableElements() {
return [tooltip, content, instance.popperChildren.backdrop];
}
function makeSticky() {

@@ -931,2 +980,11 @@ setTransitionDuration([popper], isIE ? 0 : instance.props.updateDuration);

on('touchend', onMouseLeave, PASSIVE);
} // `click` for keyboard. Mouse uses `mousedown` (onDocumentMouseDown)
if (!includes(instance.props.trigger, 'click')) {
on('click', function () {
if (!currentInput.isTouch && instance.props.hideOnClick === true) {
instance.hide();
}
});
}

@@ -963,10 +1021,6 @@

function getCorrectedPadding(placement) {
return instance.props.arrow ? currentComputedPadding[placement] + (instance.props.arrowType === 'round' ? 18 : 16) : currentComputedPadding[placement];
}
function positionVirtualReferenceNearCursor(event) {
var _lastMouseMoveEvent = lastMouseMoveEvent = event,
clientX = _lastMouseMoveEvent.clientX,
clientY = _lastMouseMoveEvent.clientY; // Gets set once popperInstance `onCreate` has been called
x = _lastMouseMoveEvent.clientX,
y = _lastMouseMoveEvent.clientY; // Gets set once popperInstance `onCreate` has been called

@@ -976,38 +1030,2 @@

return;
}
var rect = reference.getBoundingClientRect();
var followCursor = instance.props.followCursor;
var isHorizontal = followCursor === 'horizontal';
var isVertical = followCursor === 'vertical'; // Ensure virtual reference is padded to prevent tooltip from overflowing.
// Seems to be a Popper.js issue
var placement = getBasicPlacement(currentPlacement);
var isVerticalPlacement = includes(['top', 'bottom'], placement);
var isHorizontalPlacement = includes(['left', 'right'], placement);
var padding = _extends({}, currentComputedPadding);
if (isVerticalPlacement) {
padding.left = getCorrectedPadding('left');
padding.right = getCorrectedPadding('right');
}
if (isHorizontalPlacement) {
padding.top = getCorrectedPadding('top');
padding.bottom = getCorrectedPadding('bottom');
} // TODO: Remove the following later if Popper.js changes/fixes the
// behavior
// Top / left boundary
var x = isVerticalPlacement ? Math.max(padding.left, clientX) : clientX;
var y = isHorizontalPlacement ? Math.max(padding.top, clientY) : clientY; // Bottom / right boundary
if (isVerticalPlacement && x > padding.right) {
x = Math.min(clientX, window.innerWidth - padding.right);
}
if (isHorizontalPlacement && y > padding.bottom) {
y = Math.min(clientY, window.innerHeight - padding.bottom);
} // If the instance is interactive, avoid updating the position unless it's

@@ -1020,20 +1038,33 @@ // over the reference element

});
var rect = reference.getBoundingClientRect();
var followCursor = instance.props.followCursor;
var isHorizontal = followCursor === 'horizontal';
var isVertical = followCursor === 'vertical'; // The virtual reference needs some size to prevent itself from overflowing
var fakeSize = 100;
var halfFakeSize = fakeSize / 2;
var isVerticalPlacement = getIsVerticalPlacement();
var verticalIncrease = isVerticalPlacement ? 0 : halfFakeSize;
var horizontalIncrease = isVerticalPlacement ? halfFakeSize : 0;
if (isCursorOverReference || !instance.props.interactive) {
instance.popperInstance.reference = _extends({}, instance.popperInstance.reference, {
instance.popperInstance.reference = {
// These `clientWidth` values don't get used by Popper.js if they are 0
clientWidth: 0,
clientHeight: 0,
getBoundingClientRect: function getBoundingClientRect() {
return {
width: 0,
height: 0,
top: isHorizontal ? rect.top : y,
bottom: isHorizontal ? rect.bottom : y,
left: isVertical ? rect.left : x,
right: isVertical ? rect.right : x
width: isVerticalPlacement ? fakeSize : 0,
height: isVerticalPlacement ? 0 : fakeSize,
top: (isHorizontal ? rect.top : y) - verticalIncrease,
bottom: (isHorizontal ? rect.bottom : y) + verticalIncrease,
left: (isVertical ? rect.left : x) - horizontalIncrease,
right: (isVertical ? rect.right : x) + horizontalIncrease
};
}
});
};
instance.popperInstance.scheduleUpdate();
}
if (followCursor === 'initial' && instance.state.isVisible) {
if (currentInput.isTouch || followCursor === 'initial' && instance.state.isVisible) {
removeFollowCursorListener();

@@ -1044,3 +1075,3 @@ }

function onTrigger(event) {
if (!instance.state.isEnabled || isEventListenerStopped(event)) {
if (didHideDueToDocumentMouseDown || !instance.state.isEnabled || isEventListenerStopped(event)) {
return;

@@ -1081,3 +1112,3 @@ }

if (isCursorOutsideInteractiveBorder(getBasicPlacement(currentPlacement), popper.getBoundingClientRect(), event, instance.props)) {
if (isCursorOutsideInteractiveBorder(getBasePlacement(currentPlacement), popper.getBoundingClientRect(), event, instance.props)) {
cleanupInteractiveMouseListeners();

@@ -1106,4 +1137,5 @@ scheduleHide(event);

return;
}
} // If focus was moved to within the popper
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {

@@ -1120,3 +1152,3 @@ return;

var touchHold = instance.props.touchHold;
return supportsTouch && isUsingTouch && touchHold && !isTouchEvent || isUsingTouch && !touchHold && isTouchEvent;
return supportsTouch && currentInput.isTouch && touchHold && !isTouchEvent || currentInput.isTouch && !touchHold && isTouchEvent;
}

@@ -1142,4 +1174,2 @@

popper.removeAttribute('x-placement');
popper.removeAttribute('x-out-of-boundaries');
tooltip.setAttribute('data-placement', currentPlacement);

@@ -1154,9 +1184,7 @@

var basicPlacement = getBasicPlacement(currentPlacement);
var BasePlacement = getBasePlacement(currentPlacement);
var tooltipStyles = tooltip.style;
tooltipStyles.top = '';
tooltipStyles.bottom = '';
tooltipStyles.left = '';
tooltipStyles.right = '';
tooltipStyles[basicPlacement] = -instance.props.distance + 'px';
tooltipStyles.top = '0';
tooltipStyles.left = '0';
tooltipStyles[getIsVerticalPlacement() ? 'top' : 'left'] = "".concat((getIsOppositePlacement() ? 1 : -1) * instance.props.distance, "px");
var padding = preventOverflowModifier && preventOverflowModifier.padding !== undefined ? preventOverflowModifier.padding : PADDING;

@@ -1172,3 +1200,3 @@ var isPaddingNumber = typeof padding === 'number';

computedPadding[basicPlacement] = isPaddingNumber ? padding + instance.props.distance : (padding[basicPlacement] || 0) + instance.props.distance;
computedPadding[BasePlacement] = isPaddingNumber ? padding + instance.props.distance : (padding[BasePlacement] || 0) + instance.props.distance;
instance.popperInstance.modifiers.filter(function (m) {

@@ -1240,3 +1268,3 @@ return m.name === 'preventOverflow';

hasMountCallbackRun = false;
var shouldEnableListeners = !isInFollowCursorMode() && !(instance.props.followCursor === 'initial' && isUsingTouch);
var isInFollowCursorMode = getIsInFollowCursorMode();

@@ -1246,12 +1274,9 @@ if (!instance.popperInstance) {

if (shouldEnableListeners) {
if (!isInFollowCursorMode) {
instance.popperInstance.enableEventListeners();
}
} else {
if (!isInFollowCursorMode()) {
if (!isInFollowCursorMode) {
instance.popperInstance.scheduleUpdate();
if (shouldEnableListeners) {
instance.popperInstance.enableEventListeners();
}
instance.popperInstance.enableEventListeners();
}

@@ -1266,23 +1291,9 @@

instance.popperInstance.reference = reference;
var arrow = instance.popperChildren.arrow;
if (isInFollowCursorMode()) {
if (arrow) {
arrow.style.margin = '0';
}
if (lastMouseMoveEvent) {
if (isInFollowCursorMode && lastMouseMoveEvent) {
// TODO: If the tippy also has `updateDuration`, it transitions from
// the initial placement to the cursor point
requestAnimationFrame(function () {
positionVirtualReferenceNearCursor(lastMouseMoveEvent);
}
} else if (arrow) {
arrow.style.margin = '';
} // Allow followCursor: 'initial' on touch devices
if (isUsingTouch && lastMouseMoveEvent && instance.props.followCursor === 'initial') {
positionVirtualReferenceNearCursor(lastMouseMoveEvent);
if (arrow) {
arrow.style.margin = '0';
}
});
}

@@ -1322,3 +1333,3 @@

if (isInFollowCursorMode() && !instance.state.isMounted) {
if (getIsInFollowCursorMode() && !instance.state.isMounted) {
if (!instance.popperInstance) {

@@ -1331,3 +1342,3 @@ createPopperInstance();

addDocumentClickListener();
addDocumentMouseDownListener();
var delay = getValue(instance.props.delay, 0, defaultProps.delay);

@@ -1386,3 +1397,3 @@

function set(options) {
function setProps(partialProps) {
{

@@ -1397,3 +1408,3 @@ warnWhen(instance.state.isDestroyed, '`set()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');

{
validateOptions(options);
validateProps(partialProps);
}

@@ -1403,6 +1414,6 @@

var prevProps = instance.props;
var nextProps = evaluateProps(reference, _extends({}, instance.props, options, {
var nextProps = evaluateProps(reference, _extends({}, instance.props, partialProps, {
ignoreAttributes: true
}));
nextProps.ignoreAttributes = hasOwnProperty(options, 'ignoreAttributes') ? options.ignoreAttributes || false : prevProps.ignoreAttributes;
nextProps.ignoreAttributes = hasOwnProperty(partialProps, 'ignoreAttributes') ? partialProps.ignoreAttributes || false : prevProps.ignoreAttributes;
instance.props = nextProps;

@@ -1417,3 +1428,3 @@ addTriggersToEventListenersTarget();

if (POPPER_INSTANCE_DEPENDENCIES.some(function (prop) {
return hasOwnProperty(options, prop) && options[prop] !== prevProps[prop];
return hasOwnProperty(partialProps, prop) && partialProps[prop] !== prevProps[prop];
})) {

@@ -1437,3 +1448,3 @@ instance.popperInstance.destroy();

function setContent(content) {
instance.set({
instance.setProps({
content: content

@@ -1445,8 +1456,15 @@ });

var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getValue(instance.props.duration, 0, defaultProps.duration[1]);
var shouldPreventPopperTransition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
{
warnWhen(instance.state.isDestroyed, '`show()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');
}
} // Early bail-out
if (instance.state.isDestroyed || !instance.state.isEnabled || isUsingTouch && !instance.props.touch) {
var isAlreadyVisible = instance.state.isVisible;
var isDestroyed = instance.state.isDestroyed;
var isDisabled = !instance.state.isEnabled;
var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
return;

@@ -1466,8 +1484,9 @@ } // Standardize `disabled` behavior across browsers.

addDocumentClickListener();
addDocumentMouseDownListener();
popper.style.visibility = 'visible';
instance.state.isVisible = true; // Prevent a transition if the popper is at the opposite placement
instance.state.isVisible = true; // Prevent a transition of the popper from its previous position and of the
// elements at a different placement.
var transitionableElements = getTransitionableElements();
setTransitionDuration(transitionableElements.concat(popper), 0);
setTransitionDuration(shouldPreventPopperTransition ? transitionableElements.concat(popper) : transitionableElements, 0);

@@ -1480,3 +1499,3 @@ currentMountCallback = function currentMountCallback() {

if (!isInFollowCursorMode()) {
if (!getIsInFollowCursorMode()) {
instance.popperInstance.update();

@@ -1514,5 +1533,12 @@ }

warnWhen(instance.state.isDestroyed, '`hide()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');
}
} // Early bail-out
// We're checking `isMounted` instead if `isVisible` so that `destroy()`'s
// instance.hide(0) call is not ignored (to unmount the tippy instantly)
if (instance.state.isDestroyed || !instance.state.isEnabled) {
var isAlreadyHidden = !instance.state.isMounted;
var isDestroyed = instance.state.isDestroyed;
var isDisabled = !instance.state.isEnabled;
if (isAlreadyHidden || isDestroyed || isDisabled) {
return;

@@ -1525,3 +1551,3 @@ }

removeDocumentClickListener();
removeDocumentMouseDownListener();
popper.style.visibility = 'hidden';

@@ -1557,10 +1583,7 @@ instance.state.isVisible = false;

return;
} // If the popper is currently mounted to the DOM, we want to ensure it gets
// hidden and unmounted instantly upon destruction
} // `destroy()`'s `hide()` call should not be ignored
if (instance.state.isMounted) {
instance.hide(0);
}
instance.enable();
instance.hide(0);
removeTriggersFromEventListenersTarget();

@@ -1577,19 +1600,14 @@ delete reference._tippy;

var globalEventListenersBound = false;
/**
* Exported module
*/
function tippy(targets, options) {
function tippy(targets, optionalProps) {
{
validateTargets(targets);
validateOptions(options);
validateProps(optionalProps);
}
if (!globalEventListenersBound) {
bindGlobalEventListeners();
globalEventListenersBound = true;
}
bindGlobalEventListeners();
var props = _extends({}, defaultProps, options);
var props = _extends({}, defaultProps, optionalProps);

@@ -1601,3 +1619,3 @@ var elements = getArrayOfElements(targets);

var isMoreThanOneReferenceElement = elements.length > 1;
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, '`tippy()` was passed a targets argument that will create more than ' + 'one tippy instance, but only a single element was supplied as the ' + '`content` option. Use a function that returns a cloned version of ' + 'the element instead, or pass the .innerHTML of the template element.');
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, '`tippy()` was passed a targets argument that will create more than ' + 'one tippy instance, but only a single element was supplied as the ' + '`content` prop. This means the content will only be appended to the ' + 'last tippy element of the list. Instead, use a function that ' + 'returns a cloned version of the element instead, or pass the ' + '.innerHTML of the element.');
}

@@ -1614,7 +1632,8 @@

}, []);
return targets ? isRealElement(targets) ? instances[0] : instances : null;
return isRealElement(targets) ? instances[0] : instances;
}
tippy.version = version;
tippy.defaults = defaultProps;
tippy.defaultProps = defaultProps;
tippy.currentInput = currentInput;
/**

@@ -1624,6 +1643,6 @@ * Mutates the defaultProps object by setting the props specified

tippy.setDefaults = function (partialDefaults) {
Object.keys(partialDefaults).forEach(function (key) {
tippy.setDefaultProps = function (partialProps) {
Object.keys(partialProps).forEach(function (key) {
// @ts-ignore
defaultProps[key] = partialDefaults[key];
defaultProps[key] = partialProps[key];
});

@@ -1659,5 +1678,21 @@ };

{
tippy.group = function () {
warnWhen(true, '`tippy.group()` was removed in v5 and replaced ' + 'with `createSingleton()`. Read more: ' + 'https://atomiks.github.io/tippyjs/singleton/');
};
Object.defineProperty(tippy, 'group', {
value: function value() {
warnWhen(true, '`tippy.group()` was removed in v5 and replaced with ' + '`createSingleton()`. Read more here: ' + 'https://atomiks.github.io/tippyjs/addons#singleton');
},
enumerable: false
});
Object.defineProperty(tippy, 'setDefaults', {
value: function value() {
warnWhen(true, '`tippy.setDefaults()` was renamed to `tippy.setDefaultProps()` in v5.');
},
enumerable: false
});
Object.defineProperty(tippy, 'defaults', {
get: function get() {
warnWhen(true, 'The `tippy.defaults` property was renamed to `tippy.defaultProps` ' + 'in v5.');
return undefined;
},
enumerable: false
});
}

@@ -1664,0 +1699,0 @@ /**

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

var tippy=function(t){"use strict";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}t=t&&t.hasOwnProperty("default")?t.default:t;var n="undefined"!=typeof window&&"undefined"!=typeof document,r=n?navigator.userAgent:"",i=/MSIE |Trident\//.test(r),o=/UCBrowser\//.test(r),a=n&&/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,p={allowHTML:!0,animateFill:!0,animation:"shift-away",appendTo:function(){return document.body},aria:"describedby",arrow:!1,arrowType:"sharp",boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,followCursor:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnInit:!1,size:"regular",sticky:!1,theme:"tippy-dark",touch:!0,touchHold:!1,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},s=["arrow","arrowType","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"];function u(t){return[].slice.call(t)}function c(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}var l={passive:!0},d=4,f="tippy-iOS",m="tippy-popper",v="tippy-tooltip",h="tippy-content",b="tippy-backdrop",y="tippy-arrow",w="tippy-svgArrow",g=".".concat(m),A=".".concat(v),E=".".concat(h),C=".".concat(b),T=".".concat(y),I=".".concat(w),L=!1,O=0;function M(){L||(L=!0,a&&document.body.classList.add(f),window.performance&&document.addEventListener("mousemove",k))}function k(){var t=performance.now();t-O<20&&(L=!1,document.removeEventListener("mousemove",k),a||document.body.classList.remove(f)),O=t}function D(){var t=document.activeElement;t&&t.blur&&t._tippy&&t.blur()}var S=Object.keys(p);function x(t,e){return{}.hasOwnProperty.call(t,e)}function H(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?n:r}return t}function V(t,e){return t&&t.modifiers&&t.modifiers[e]}function N(t,e){return t.indexOf(e)>-1}function U(t){return t instanceof Element}function q(t,e){return"function"==typeof t?t.apply(null,e):t}function z(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function B(){return document.createElement("div")}function F(t,e){t.forEach(function(t){t&&(t.style.transitionDuration="".concat(e,"ms"))})}function P(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function _(t,n){var r=e({},n,{content:q(n.content,[t])},n.ignoreAttributes?{}:function(t){return S.reduce(function(e,n){var r=(t.getAttribute("data-tippy-".concat(n))||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e},{})}(t));return(r.arrow||o)&&(r.animateFill=!1),r}function W(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)};var n}function j(t,e){t.innerHTML=U(e)?e.innerHTML:e}function R(t,e){if(U(e.content))j(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function X(t){return{tooltip:t.querySelector(A),backdrop:t.querySelector(C),content:t.querySelector(E),arrow:t.querySelector(T)||t.querySelector(I)}}function Y(t){t.setAttribute("data-inertia","")}function J(t){var e=B();return"sharp"!==t?(e.className=w,j(e,"round"===t?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':t)):e.className=y,e}function G(t){var e=B();return e.className=b,e.setAttribute("data-state",t?"visible":"hidden"),e}function K(t){t.setAttribute("data-interactive","")}function Q(t,e,n){var r=o&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](r,n)}function Z(t){return t.split("-")[0]}function $(t,e,n){n.split(" ").forEach(function(n){t.classList[e](n+"-theme")})}function tt(t,e){var n=B();n.className=m;var r=B();r.className=v,r.id="tippy-".concat(t),r.setAttribute("data-state","hidden"),$(r,"add",e.theme);var i=B();return i.className=h,i.setAttribute("data-state","hidden"),e.interactive&&K(r),e.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(J(e.arrowType))),e.animateFill&&(r.appendChild(G(!1)),r.setAttribute("data-animatefill","")),e.inertia&&Y(r),R(i,e),r.appendChild(i),n.appendChild(r),et(n,e,e,!1),n}function et(t,e,n,r){var i=X(t),o=i.tooltip,a=i.content,p=i.backdrop,s=i.arrow;t.style.zIndex=""+n.zIndex,o.setAttribute("data-size",n.size),o.setAttribute("data-animation",n.animation),o.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),e.content!==n.content&&R(a,n),!e.animateFill&&n.animateFill?(o.appendChild(G(r)),o.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(o.removeChild(p),o.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(o.appendChild(J(n.arrowType)),o.setAttribute("data-arrow","")):e.arrow&&!n.arrow&&(o.removeChild(s),o.removeAttribute("data-arrow")),e.arrow&&n.arrow&&e.arrowType!==n.arrowType&&o.replaceChild(J(n.arrowType),s),!e.interactive&&n.interactive?K(o):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(o),!e.inertia&&n.inertia?Y(o):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(o),e.theme!==n.theme&&($(o,"remove",e.theme),$(o,"add",n.theme))}var nt=1,rt=[];function it(n,r){var o,a,u,f,m,v=_(n,r);if(!v.multiple&&n._tippy)return null;var h,b,y,w=!1,g=v.placement,A=!1,E=[],C=W(st,v.interactiveDebounce),T=nt++,I=tt(T,v),O=X(I),M=O.tooltip,k=O.content,D={id:T,reference:n,popper:I,popperChildren:O,popperInstance:null,props:v,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:function(){clearTimeout(u),clearTimeout(f),cancelAnimationFrame(m)},set:function(t){if(D.state.isDestroyed)return;it();var r=D.props,i=_(n,e({},D.props,t,{ignoreAttributes:!0}));i.ignoreAttributes=x(t,"ignoreAttributes")?t.ignoreAttributes||!1:r.ignoreAttributes,D.props=i,$(),B(),C=W(st,i.interactiveDebounce),et(I,r,i,D.state.isVisible),D.popperChildren=X(I),D.popperInstance&&(s.some(function(e){return x(t,e)&&t[e]!==r[e]})?(D.popperInstance.destroy(),dt(),D.state.isVisible&&D.popperInstance.enableEventListeners(),D.props.followCursor&&a&&at(a)):D.popperInstance.update())},setContent:function(t){D.set({content:t})},show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H(D.props.duration,0,p.duration[1]);if(D.state.isDestroyed||!D.state.isEnabled||L&&!D.props.touch)return;if(j().hasAttribute("disabled"))return;if(!1===D.props.onShow(D))return;Y(),I.style.visibility="visible",D.state.isVisible=!0;var e=J();F(e.concat(I),0),h=function(){D.state.isVisible&&(S()||D.popperInstance.update(),D.popperChildren.backdrop&&(D.popperChildren.content.style.transitionDelay=Math.round(t/12)+"ms"),D.props.sticky&&function(){F([I],i?0:D.props.updateDuration),function t(){D.popperInstance.scheduleUpdate();D.state.isMounted?requestAnimationFrame(t):F([I],0)}()}(),F([I],D.props.updateDuration),F(e,t),P(e,"visible"),function(t,e){G(t,e)}(t,function(){D.props.aria&&j().setAttribute("aria-".concat(D.props.aria),M.id),D.props.onShown(D),D.state.isShown=!0}))},function(){A=!1;var t=!(S()||"initial"===D.props.followCursor&&L);D.popperInstance?(S()||(D.popperInstance.scheduleUpdate(),t&&D.popperInstance.enableEventListeners()),z(D.popperInstance.modifiers,D.props.flip)):(dt(),t&&D.popperInstance.enableEventListeners());D.popperInstance.reference=n;var e=D.popperChildren.arrow;S()?(e&&(e.style.margin="0"),a&&at(a)):e&&(e.style.margin="");L&&a&&"initial"===D.props.followCursor&&(at(a),e&&(e.style.margin="0"));var r=D.props.appendTo,i="parent"===r?n.parentNode:q(r,[n]);i.contains(I)||(i.appendChild(I),D.props.onMount(D),D.state.isMounted=!0)}()},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H(D.props.duration,1,p.duration[1]);if(D.state.isDestroyed||!D.state.isEnabled)return;if(!1===D.props.onHide(D))return;document.removeEventListener("click",R,!0),I.style.visibility="hidden",D.state.isVisible=!1,D.state.isShown=!1;var e=J();F(e,t),P(e,"hidden"),function(t,e){G(t,function(){!D.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&e()})}(t,function(){w||U(),D.props.aria&&j().removeAttribute("aria-".concat(D.props.aria)),D.popperInstance.disableEventListeners(),D.popperInstance.options.placement=D.props.placement,I.parentNode.removeChild(I),D.props.onHidden(D),D.state.isMounted=!1})},enable:function(){D.state.isEnabled=!0},disable:function(){D.state.isEnabled=!1},destroy:function(){if(D.state.isDestroyed)return;D.state.isMounted&&D.hide(0);it(),delete n._tippy,D.popperInstance&&D.popperInstance.destroy();D.state.isDestroyed=!0}};return n._tippy=D,I._tippy=D,$(),v.lazy||dt(),v.showOnInit&&mt(),I.addEventListener("mouseenter",function(){D.props.interactive&&D.state.isVisible&&"mouseenter"===o&&D.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){D.props.interactive&&"mouseenter"===o&&document.addEventListener("mousemove",C)}),v.onCreate(D),D;function S(){return D.props.followCursor&&!L&&"focus"!==o}function U(){document.removeEventListener("mousemove",at)}function B(){document.body.removeEventListener("mouseleave",vt),document.removeEventListener("mousemove",C),rt=rt.filter(function(t){return t!==C})}function j(){return D.props.triggerTarget||n}function R(t){if(!D.props.interactive||!I.contains(t.target)){if(j().contains(t.target)){if(L)return;if(D.state.isVisible&&N(D.props.trigger,"click"))return}!0===D.props.hideOnClick&&(D.clearDelayTimeouts(),D.hide())}}function Y(){document.addEventListener("click",R,!0)}function J(){return[M,k,D.popperChildren.backdrop]}function G(t,e){function n(t){t.target===M&&(Q(M,"remove",n),e())}if(0===t)return e();Q(M,"remove",b),Q(M,"add",n),b=n}function K(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];j().addEventListener(t,e,n),E.push({eventType:t,handler:e,options:n})}function $(){D.props.touchHold&&(K("touchstart",pt,l),K("touchend",ut,l)),D.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)switch(K(t,pt),t){case"mouseenter":K("mouseleave",ut);break;case"focus":K(i?"focusout":"blur",ct)}})}function it(){E.forEach(function(t){var e=t.eventType,n=t.handler,r=t.options;j().removeEventListener(e,n,r)}),E=[]}function ot(t){return D.props.arrow?y[t]+("round"===D.props.arrowType?18:16):y[t]}function at(t){var r=a=t,i=r.clientX,o=r.clientY;if(y){var p=n.getBoundingClientRect(),s=D.props.followCursor,u="horizontal"===s,l="vertical"===s,d=Z(g),f=N(["top","bottom"],d),m=N(["left","right"],d),v=e({},y);f&&(v.left=ot("left"),v.right=ot("right")),m&&(v.top=ot("top"),v.bottom=ot("bottom"));var h=f?Math.max(v.left,i):i,b=m?Math.max(v.top,o):o;f&&h>v.right&&(h=Math.min(i,window.innerWidth-v.right)),m&&b>v.bottom&&(b=Math.min(o,window.innerHeight-v.bottom)),!c(t.target,function(t){return t===n})&&D.props.interactive||(D.popperInstance.reference=e({},D.popperInstance.reference,{getBoundingClientRect:function(){return{width:0,height:0,top:u?p.top:b,bottom:u?p.bottom:b,left:l?p.left:h,right:l?p.right:h}}}),D.popperInstance.scheduleUpdate()),"initial"===s&&D.state.isVisible&&U()}}function pt(t){D.state.isEnabled&&!lt(t)&&(D.state.isVisible||(o=t.type,t instanceof MouseEvent&&(a=t,rt.forEach(function(e){return e(t)}))),"click"===t.type&&!1!==D.props.hideOnClick&&D.state.isVisible?vt(t):mt(t))}function st(t){c(t.target,function(t){return t===n||t===I})||function(t,e,n,r){if(!t)return!0;var i=n.clientX,o=n.clientY,a=r.interactiveBorder,p=r.distance,s=e.top-o>("top"===t?a+p:a),u=o-e.bottom>("bottom"===t?a+p:a),c=e.left-i>("left"===t?a+p:a),l=i-e.right>("right"===t?a+p:a);return s||u||c||l}(Z(g),I.getBoundingClientRect(),t,D.props)&&(B(),vt(t))}function ut(t){if(!lt(t))return D.props.interactive?(document.body.addEventListener("mouseleave",vt),document.addEventListener("mousemove",C),void rt.push(C)):void vt(t)}function ct(t){t.target===j()&&(D.props.interactive&&t.relatedTarget&&I.contains(t.relatedTarget)||vt(t))}function lt(t){var e="ontouchstart"in window,n=N(t.type,"touch"),r=D.props.touchHold;return e&&L&&r&&!n||L&&!r&&n}function dt(){var r=D.props.popperOptions,i=D.popperChildren.arrow,o=V(r,"preventOverflow");function a(t){var n=g;g=t.placement,D.props.flip&&!D.props.flipOnUpdate&&(t.flipped&&(D.popperInstance.options.placement=t.placement),z(D.popperInstance.modifiers,!1)),I.removeAttribute("x-placement"),I.removeAttribute("x-out-of-boundaries"),M.setAttribute("data-placement",g),!1!==t.attributes["x-out-of-boundaries"]?M.setAttribute("data-out-of-boundaries",""):M.removeAttribute("data-out-of-boundaries");var r=Z(g),i=M.style;i.top="",i.bottom="",i.left="",i.right="",i[r]=-D.props.distance+"px";var a=o&&void 0!==o.padding?o.padding:d,p="number"==typeof a,s=e({top:p?a:a.top,bottom:p?a:a.bottom,left:p?a:a.left,right:p?a:a.right},!p&&a);s[r]=p?a+D.props.distance:(a[r]||0)+D.props.distance,D.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=s,y=s,g!==n&&D.popperInstance.update()}var p=e({eventsEnabled:!1,placement:D.props.placement},r,{modifiers:e({},r?r.modifiers:{},{preventOverflow:e({boundariesElement:D.props.boundary,padding:d},o),arrow:e({element:i,enabled:!!i},V(r,"arrow")),flip:e({enabled:D.props.flip,padding:D.props.distance+d,behavior:D.props.flipBehavior},V(r,"flip")),offset:e({offset:D.props.offset},V(r,"offset"))}),onCreate:function(t){a(t),ft(),r&&r.onCreate&&r.onCreate(t)},onUpdate:function(t){a(t),ft(),r&&r.onUpdate&&r.onUpdate(t)}});D.popperInstance=new t(n,I,p)}function ft(){!A&&h&&(A=!0,function(t){t.offsetHeight}(I),h())}function mt(t){if(D.clearDelayTimeouts(),t&&D.props.onTrigger(D,t),!D.state.isVisible){if(w=!0,D.props.wait)return D.props.wait(D,t);S()&&!D.state.isMounted&&(D.popperInstance||dt(),document.addEventListener("mousemove",at)),Y();var e=H(D.props.delay,0,p.delay);e?u=setTimeout(function(){D.show()},e):D.show()}}function vt(t){if(D.clearDelayTimeouts(),D.props.onUntrigger(D,t),!D.state.isVisible)return U();w=!1;var e=H(D.props.delay,1,p.delay);e?f=setTimeout(function(){D.state.isVisible&&D.hide()},e):m=requestAnimationFrame(function(){D.hide()})}}var ot=!1;function at(t,n){ot||(document.addEventListener("touchstart",M,l),window.addEventListener("blur",D),ot=!0);var r=e({},p,n),i=function(t){if(U(t))return[t];if(t instanceof NodeList)return u(t);if(Array.isArray(t))return t;try{return u(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce(function(t,e){var n=e&&it(e,r);return n&&t.push(n),t},[]);return t?U(t)?i[0]:i:null}return at.version="5.0.0-alpha.0",at.defaults=p,at.setDefaults=function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},at.hideAll=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.exclude,n=t.duration;u(document.querySelectorAll(g)).forEach(function(t){var r,i=t._tippy;if(i){var o=!1;e&&(o=(r=e)&&r._tippy&&!r.classList.contains(m)?i.reference===e:t===e.popper),o||i.hide(n)}})},n&&setTimeout(function(){u(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&at(t,{content:e})})}),at}(Popper);
var tippy=function(t){"use strict";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}t=t&&t.hasOwnProperty("default")?t.default:t;var n="undefined"!=typeof window&&"undefined"!=typeof document,i=n?navigator.userAgent:"",r=/MSIE |Trident\//.test(i),o=/UCBrowser\//.test(i),a=n&&/iPhone|iPad|iPod/.test(navigator.platform),s={allowHTML:!0,animateFill:!0,animation:"shift-away",appendTo:function(){return document.body},aria:"describedby",arrow:!1,arrowType:"sharp",boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,followCursor:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnInit:!1,size:"regular",sticky:!1,theme:"tippy-dark",touch:!0,touchHold:!1,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},p=["arrow","arrowType","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"];function u(t){return[].slice.call(t)}function c(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}var d={passive:!0},l=4,f="tippy-iOS",m="tippy-popper",v="tippy-tooltip",h="tippy-content",b="tippy-backdrop",y="tippy-arrow",w="tippy-svgArrow",g=".".concat(m),A=".".concat(v),T=".".concat(h),E=".".concat(b),C=".".concat(y),I=".".concat(w),L={isTouch:!1},O=0;function k(){L.isTouch||(L.isTouch=!0,a&&document.body.classList.add(f),window.performance&&document.addEventListener("mousemove",D))}function D(){var t=performance.now();t-O<20&&(L.isTouch=!1,document.removeEventListener("mousemove",D),a||document.body.classList.remove(f)),O=t}function M(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}var S=Object.keys(s);function V(t,e){return{}.hasOwnProperty.call(t,e)}function x(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function H(t,e){return t&&t.modifiers&&t.modifiers[e]}function N(t,e){return t.indexOf(e)>-1}function P(t){return t instanceof Element}function U(t,e){return"function"==typeof t?t.apply(null,e):t}function q(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function F(){return document.createElement("div")}function z(t,e){t.forEach(function(t){t&&(t.style.transitionDuration="".concat(e,"ms"))})}function B(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function _(t,n){var i=e({},n,{content:U(n.content,[t])},n.ignoreAttributes?{}:function(t){return S.reduce(function(e,n){var i=(t.getAttribute("data-tippy-".concat(n))||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e},{})}(t));return(i.arrow||o)&&(i.animateFill=!1),i}function W(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)};var n}function j(t,e){t.innerHTML=P(e)?e.innerHTML:e}function R(t,e){if(P(e.content))j(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function X(t){return{tooltip:t.querySelector(A),backdrop:t.querySelector(E),content:t.querySelector(T),arrow:t.querySelector(C)||t.querySelector(I)}}function Y(t){t.setAttribute("data-inertia","")}function J(t){var e=F();return"sharp"!==t?(e.className=w,j(e,"round"===t?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':t)):e.className=y,e}function G(t){var e=F();return e.className=b,e.setAttribute("data-state",t?"visible":"hidden"),e}function K(t){t.setAttribute("data-interactive","")}function Q(t,e,n){var i=o&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function Z(t){return t.split("-")[0]}function $(t,e,n){n.split(" ").forEach(function(n){t.classList[e](n+"-theme")})}function tt(t,e){var n=F();n.className=m;var i=F();i.className=v,i.id="tippy-".concat(t),i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),$(i,"add",e.theme);var r=F();return r.className=h,r.setAttribute("data-state","hidden"),e.interactive&&K(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(J(e.arrowType))),e.animateFill&&(i.appendChild(G(!1)),i.setAttribute("data-animatefill","")),e.inertia&&Y(i),R(r,e),i.appendChild(r),n.appendChild(i),et(n,e,e,!1),n}function et(t,e,n,i){var r=X(t),o=r.tooltip,a=r.content,s=r.backdrop,p=r.arrow;t.style.zIndex=""+n.zIndex,o.setAttribute("data-size",n.size),o.setAttribute("data-animation",n.animation),o.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),e.content!==n.content&&R(a,n),!e.animateFill&&n.animateFill?(o.appendChild(G(i)),o.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(o.removeChild(s),o.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(o.appendChild(J(n.arrowType)),o.setAttribute("data-arrow","")):e.arrow&&!n.arrow&&(o.removeChild(p),o.removeAttribute("data-arrow")),e.arrow&&n.arrow&&e.arrowType!==n.arrowType&&o.replaceChild(J(n.arrowType),p),!e.interactive&&n.interactive?K(o):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(o),!e.inertia&&n.inertia?Y(o):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(o),e.theme!==n.theme&&($(o,"remove",e.theme),$(o,"add",n.theme))}var nt=1,it=[];function rt(n,i){var o,a,u,f,m,v=_(n,i);if(!v.multiple&&n._tippy)return null;var h,b,y,w=!1,g=v.placement,A=!1,T=!1,E=[],C=W(ct,v.interactiveDebounce),I=nt++,O=tt(I,v),k=X(O),D=k.tooltip,M=k.content,S={id:I,reference:n,popper:O,popperChildren:k,popperInstance:null,props:v,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:function(){clearTimeout(u),clearTimeout(f),cancelAnimationFrame(m)},setProps:function(t){if(S.state.isDestroyed)return;st();var i=S.props,r=_(n,e({},S.props,t,{ignoreAttributes:!0}));r.ignoreAttributes=V(t,"ignoreAttributes")?t.ignoreAttributes||!1:i.ignoreAttributes,S.props=r,at(),Y(),C=W(ct,r.interactiveDebounce),et(O,i,r,S.state.isVisible),S.popperChildren=X(O),S.popperInstance&&(p.some(function(e){return V(t,e)&&t[e]!==i[e]})?(S.popperInstance.destroy(),mt(),S.state.isVisible&&S.popperInstance.enableEventListeners(),S.props.followCursor&&a&&pt(a)):S.popperInstance.update())},setContent:function(t){S.setProps({content:t})},show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x(S.props.duration,0,s.duration[1]),e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=S.state.isVisible,o=S.state.isDestroyed,p=!S.state.isEnabled,u=L.isTouch&&!S.props.touch;if(i||o||p||u)return;if(J().hasAttribute("disabled"))return;if(!1===S.props.onShow(S))return;K(),O.style.visibility="visible",S.state.isVisible=!0;var c=j();z(e?c.concat(O):c,0),h=function(){S.state.isVisible&&(F()||S.popperInstance.update(),S.popperChildren.backdrop&&(S.popperChildren.content.style.transitionDelay=Math.round(t/12)+"ms"),S.props.sticky&&function(){z([O],r?0:S.props.updateDuration),function t(){S.popperInstance.scheduleUpdate();S.state.isMounted?requestAnimationFrame(t):z([O],0)}()}(),z([O],S.props.updateDuration),z(c,t),B(c,"visible"),function(t,e){rt(t,e)}(t,function(){S.props.aria&&J().setAttribute("aria-".concat(S.props.aria),D.id),S.props.onShown(S),S.state.isShown=!0}))},function(){A=!1;var t=F();S.popperInstance?(t||(S.popperInstance.scheduleUpdate(),S.popperInstance.enableEventListeners()),q(S.popperInstance.modifiers,S.props.flip)):(mt(),t||S.popperInstance.enableEventListeners());S.popperInstance.reference=n,t&&a&&requestAnimationFrame(function(){pt(a)});var e=S.props.appendTo,i="parent"===e?n.parentNode:U(e,[n]);i.contains(O)||(i.appendChild(O),S.props.onMount(S),S.state.isMounted=!0)}()},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x(S.props.duration,1,s.duration[1]),e=!S.state.isMounted,n=S.state.isDestroyed,i=!S.state.isEnabled;if(e||n||i)return;if(!1===S.props.onHide(S))return;$(),O.style.visibility="hidden",S.state.isVisible=!1,S.state.isShown=!1;var r=j();z(r,t),B(r,"hidden"),function(t,e){rt(t,function(){!S.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&e()})}(t,function(){w||R(),S.props.aria&&J().removeAttribute("aria-".concat(S.props.aria)),S.popperInstance.disableEventListeners(),S.popperInstance.options.placement=S.props.placement,O.parentNode.removeChild(O),S.props.onHidden(S),S.state.isMounted=!1})},enable:function(){S.state.isEnabled=!0},disable:function(){S.state.isEnabled=!1},destroy:function(){if(S.state.isDestroyed)return;S.enable(),S.hide(0),st(),delete n._tippy,S.popperInstance&&S.popperInstance.destroy();S.state.isDestroyed=!0}};return n._tippy=S,O._tippy=S,at(),v.lazy||mt(),v.showOnInit&&ht(),O.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&"mouseenter"===o&&S.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){S.props.interactive&&"mouseenter"===o&&document.addEventListener("mousemove",C)}),v.onCreate(S),S;function P(){return N(["top","bottom"],Z(g))}function F(){return S.props.followCursor&&"focus"!==o}function j(){return[D,M,S.popperChildren.backdrop]}function R(){document.removeEventListener("mousemove",pt)}function Y(){document.body.removeEventListener("mouseleave",bt),document.removeEventListener("mousemove",C),it=it.filter(function(t){return t!==C})}function J(){return S.props.triggerTarget||n}function G(t){if(!S.props.interactive||!O.contains(t.target)){if(J().contains(t.target)){if(L.isTouch)return;if(S.state.isVisible&&N(S.props.trigger,"click"))return}!0===S.props.hideOnClick&&(S.clearDelayTimeouts(),S.hide(),T=!0,setTimeout(function(){T=!1}),S.state.isMounted||$())}}function K(){document.addEventListener("mousedown",G,!0)}function $(){document.removeEventListener("mousedown",G,!0)}function rt(t,e){function n(t){t.target===D&&(Q(D,"remove",n),e())}if(0===t)return e();Q(D,"remove",b),Q(D,"add",n),b=n}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J().addEventListener(t,e,n),E.push({eventType:t,handler:e,options:n})}function at(){S.props.touchHold&&(ot("touchstart",ut,d),ot("touchend",dt,d)),N(S.props.trigger,"click")||ot("click",function(){L.isTouch||!0!==S.props.hideOnClick||S.hide()}),S.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)switch(ot(t,ut),t){case"mouseenter":ot("mouseleave",dt);break;case"focus":ot(r?"focusout":"blur",lt)}})}function st(){E.forEach(function(t){var e=t.eventType,n=t.handler,i=t.options;J().removeEventListener(e,n,i)}),E=[]}function pt(t){var e=a=t,i=e.clientX,r=e.clientY;if(y){var o=c(t.target,function(t){return t===n}),s=n.getBoundingClientRect(),p=S.props.followCursor,u="horizontal"===p,d="vertical"===p,l=P(),f=l?0:50,m=l?50:0;!o&&S.props.interactive||(S.popperInstance.reference={clientWidth:0,clientHeight:0,getBoundingClientRect:function(){return{width:l?100:0,height:l?0:100,top:(u?s.top:r)-f,bottom:(u?s.bottom:r)+f,left:(d?s.left:i)-m,right:(d?s.right:i)+m}}},S.popperInstance.scheduleUpdate()),(L.isTouch||"initial"===p&&S.state.isVisible)&&R()}}function ut(t){T||!S.state.isEnabled||ft(t)||(S.state.isVisible||(o=t.type,t instanceof MouseEvent&&(a=t,it.forEach(function(e){return e(t)}))),"click"===t.type&&!1!==S.props.hideOnClick&&S.state.isVisible?bt(t):ht(t))}function ct(t){c(t.target,function(t){return t===n||t===O})||function(t,e,n,i){if(!t)return!0;var r=n.clientX,o=n.clientY,a=i.interactiveBorder,s=i.distance,p=e.top-o>("top"===t?a+s:a),u=o-e.bottom>("bottom"===t?a+s:a),c=e.left-r>("left"===t?a+s:a),d=r-e.right>("right"===t?a+s:a);return p||u||c||d}(Z(g),O.getBoundingClientRect(),t,S.props)&&(Y(),bt(t))}function dt(t){if(!ft(t))return S.props.interactive?(document.body.addEventListener("mouseleave",bt),document.addEventListener("mousemove",C),void it.push(C)):void bt(t)}function lt(t){t.target===J()&&(S.props.interactive&&t.relatedTarget&&O.contains(t.relatedTarget)||bt(t))}function ft(t){var e="ontouchstart"in window,n=N(t.type,"touch"),i=S.props.touchHold;return e&&L.isTouch&&i&&!n||L.isTouch&&!i&&n}function mt(){var i=S.props.popperOptions,r=S.popperChildren.arrow,o=H(i,"preventOverflow");function a(t){var n=g;g=t.placement,S.props.flip&&!S.props.flipOnUpdate&&(t.flipped&&(S.popperInstance.options.placement=t.placement),q(S.popperInstance.modifiers,!1)),D.setAttribute("data-placement",g),!1!==t.attributes["x-out-of-boundaries"]?D.setAttribute("data-out-of-boundaries",""):D.removeAttribute("data-out-of-boundaries");var i=Z(g),r=D.style;r.top="0",r.left="0",r[P()?"top":"left"]="".concat((N(["bottom","right"],Z(g))?1:-1)*S.props.distance,"px");var a=o&&void 0!==o.padding?o.padding:l,s="number"==typeof a,p=e({top:s?a:a.top,bottom:s?a:a.bottom,left:s?a:a.left,right:s?a:a.right},!s&&a);p[i]=s?a+S.props.distance:(a[i]||0)+S.props.distance,S.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=p,y=p,g!==n&&S.popperInstance.update()}var s=e({eventsEnabled:!1,placement:S.props.placement},i,{modifiers:e({},i?i.modifiers:{},{preventOverflow:e({boundariesElement:S.props.boundary,padding:l},o),arrow:e({element:r,enabled:!!r},H(i,"arrow")),flip:e({enabled:S.props.flip,padding:S.props.distance+l,behavior:S.props.flipBehavior},H(i,"flip")),offset:e({offset:S.props.offset},H(i,"offset"))}),onCreate:function(t){a(t),vt(),i&&i.onCreate&&i.onCreate(t)},onUpdate:function(t){a(t),vt(),i&&i.onUpdate&&i.onUpdate(t)}});S.popperInstance=new t(n,O,s)}function vt(){!A&&h&&(A=!0,function(t){t.offsetHeight}(O),h())}function ht(t){if(S.clearDelayTimeouts(),t&&S.props.onTrigger(S,t),!S.state.isVisible){if(w=!0,S.props.wait)return S.props.wait(S,t);F()&&!S.state.isMounted&&(S.popperInstance||mt(),document.addEventListener("mousemove",pt)),K();var e=x(S.props.delay,0,s.delay);e?u=setTimeout(function(){S.show()},e):S.show()}}function bt(t){if(S.clearDelayTimeouts(),S.props.onUntrigger(S,t),!S.state.isVisible)return R();w=!1;var e=x(S.props.delay,1,s.delay);e?f=setTimeout(function(){S.state.isVisible&&S.hide()},e):m=requestAnimationFrame(function(){S.hide()})}}function ot(t,n){document.addEventListener("touchstart",k,d),window.addEventListener("blur",M);var i=e({},s,n),r=function(t){if(P(t))return[t];if(t instanceof NodeList)return u(t);if(Array.isArray(t))return t;try{return u(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce(function(t,e){var n=e&&rt(e,i);return n&&t.push(n),t},[]);return P(t)?r[0]:r}return ot.version="5.0.0-alpha.1",ot.defaultProps=s,ot.currentInput=L,ot.setDefaultProps=function(t){Object.keys(t).forEach(function(e){s[e]=t[e]})},ot.hideAll=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.exclude,n=t.duration;u(document.querySelectorAll(g)).forEach(function(t){var i,r=t._tippy;if(r){var o=!1;e&&(o=(i=e)&&i._tippy&&!i.classList.contains(m)?r.reference===e:t===e.popper),o||r.hide(n)}})},n&&setTimeout(function(){u(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&ot(t,{content:e})})}),ot}(Popper);
//# sourceMappingURL=tippy.min.js.map

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

import Popper from 'popper.js'
import Popper, { ReferenceObject } from 'popper.js'
export type BasicPlacement = 'top' | 'bottom' | 'left' | 'right'
export type BasePlacement = 'top' | 'bottom' | 'left' | 'right'

@@ -20,3 +20,3 @@ export type Placement = Popper.Placement

export interface PopperInstance extends Popper {
reference: ReferenceElement
reference: ReferenceElement | ReferenceObject
popper: PopperElement

@@ -80,4 +80,2 @@ data: {

export type Options = Partial<Props>
export interface Instance {

@@ -95,5 +93,5 @@ clearDelayTimeouts(): void

reference: ReferenceElement
set(options: Options): void
setContent(content: Content): void
show(duration?: number): void
setProps(partialProps: Partial<Props>): void
show(duration?: number, shouldPreventPopperTransition?: boolean): void
state: {

@@ -121,7 +119,7 @@ isEnabled: boolean

export interface Tippy {
(targets: Targets, options?: Options): Instance | Instance[] | null
(targets: Targets, props?: Partial<Props>): Instance | Instance[]
readonly defaults: Props
readonly version: string
hideAll(options?: HideAllOptions): void
setDefaults(partialDefaults: Options): void
setDefaultProps(partialProps: Partial<Props>): void
}

@@ -128,0 +126,0 @@

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

@@ -39,3 +39,3 @@ "main": "./cjs/tippy.bundle.js",

"themes/",
"index.css",
"tippy.css",
"index.d.ts"

@@ -56,3 +56,3 @@ ],

"lint": "eslint --report-unused-disable-directives . --ext .ts,.js",
"clean": "rimraf addons/{cjs,esm} cjs iife esm themes coverage .devserver .cache ./index.css ./index.d.ts",
"clean": "rimraf addons/{cjs,esm,iife} cjs iife esm themes animations coverage .devserver .cache ./tippy.css ./index.d.ts",
"prepare": "npm run clean && npm run build"

@@ -74,10 +74,10 @@ },

"path": "./iife/tippy.bundle.min.js",
"maxSize": "6.75 kB"
"maxSize": "7 kB"
},
{
"path": "./iife/tippy.min.js",
"maxSize": "5.5 kB"
"maxSize": "5.75 kB"
},
{
"path": "./index.css",
"path": "./tippy.css",
"maxSize": "1.25 kB"

@@ -84,0 +84,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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