UNPKG

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