5 lines
32 KiB
JavaScript
5 lines
32 KiB
JavaScript
|
|
/**!
|
||
|
|
* tippy.js v6.3.7
|
||
|
|
* (c) 2017-2021 atomiks
|
||
|
|
* MIT License
|
||
|
|
*/(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self,e.tippy=t(e.Popper))})(this,function(e){"use strict";function t(e,t){return{}.hasOwnProperty.call(e,t)}function n(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function i(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&-1<n.indexOf(t+"]")}function o(e,t){return"function"==typeof e?e.apply(void 0,t):e}function r(e,t){if(0===t)return e;var n;return function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)}}function a(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function s(e){return e.split(/\s+/).filter(Boolean)}function p(e){return[].concat(e)}function d(e,t){-1===e.indexOf(t)&&e.push(t)}function l(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function c(e){return e?e.split("-")[0]:"auto"}function u(e){return[].slice.call(e)}function f(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function m(){return document.createElement("div")}function h(e){return["Element","Fragment"].some(function(t){return i(e,t)})}function g(e){return i(e,"NodeList")}function y(e){return i(e,"MouseEvent")}function b(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function v(e){return h(e)?[e]:g(e)?u(e):Array.isArray(e)?e:u(document.querySelectorAll(e))}function w(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function x(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function E(e){var t,n=p(e),i=n[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function T(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,r=e.props,a=r.interactiveBorder,s=c(o?.placement),p=o?.modifiersData?.offset;if(!p)return!0;var d="bottom"===s?p.top.y:0,l="top"===s?p.bottom.y:0,u="right"===s?p.left.x:0,f="left"===s?p.right.x:0,m=t.top-i+d>a,h=i-t.bottom-l>a,g=t.left-n+u>a,y=n-t.right-f>a;return m||h||g||y})}function k(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function C(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}function A(){ae.isTouch||(ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",L))}function L(){var e=performance.now();20>e-se&&(ae.isTouch=!1,document.removeEventListener("mousemove",L)),se=e}function O(){var e=document.activeElement;if(b(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function D(){document.addEventListener("touchstart",A,oe),window.addEventListener("blur",O)}function R(e){var t="destroy"===e?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function I(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function P(e){return I("\n %ctippy.js\n\n %c"+I(e)+"\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ")}function S(e){return[P(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function M(e,t){var n}function V(e,t){if(e&&!te.has(t)){var n;te.add(t),(n=console).error.apply(n,S(t))}}function H(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;V(t,["tippy() was passed","`"+(e+"`"),"as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),V(n,"tippy() was passed a plain object which is not supported as an argument for virtual positioning. Use props.getReferenceClientRect instead.")}function N(e){var t=e.plugins||[],n=t.reduce(function(t,n){var i=n.name,o=n.defaultValue;if(i){var r;t[i]=void 0===e[i]?null==(r=de[i])?o:r:e[i]}return t},{});return Object.assign({},e,n)}function B(e,t){var n=t?Object.keys(N(Object.assign({},de,{plugins:t}))):le,i=n.r
|