Comparing version 2.0.2 to 2.0.3
@@ -1,1 +0,1 @@ | ||
(function(t,e){'object'==typeof exports&&'undefined'!=typeof module?module.exports=e():'function'==typeof define&&define.amd?define(e):t.tippy=e()})(this,function(){'use strict';function t(t){return'[object Object]'===Object.prototype.toString.call(t)}function a(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(t){return[]}}function r(t,e){var a=Nt.reduce(function(a,i){var r=t.getAttribute('data-tippy-'+i.toLowerCase())||e[i];return'false'===r&&(r=!1),'true'===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),'string'==typeof r&&'['===r.trim().charAt(0)&&(r=JSON.parse(r)),a[i]=r,a},{});return It({},e,a)}function o(t){for(var e=[!1,'webkit'],a=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?''+i+a:t;if('undefined'!=typeof document.body.style[o])return o}return null}function p(t,e,a){var i=a.placement,r=a.distance,p=a.arrow,n=a.arrowType,s=a.arrowTransform,l=a.animateFill,d=a.inertia,c=a.animation,m=a.size,f=a.theme,h=a.html,b=a.zIndex,u=a.interactive,y=a.maxWidth,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('id','tippy-'+t),g.style.zIndex=b,g.style.maxWidth=y;var x=document.createElement('div');if(x.setAttribute('class','tippy-tooltip'),x.setAttribute('data-size',m),x.setAttribute('data-animation',c),x.setAttribute('data-state','hidden'),f.split(' ').forEach(function(e){x.classList.add(e+'-theme')}),p){var w=document.createElement('div');w.style[o('transform')]=s,'round'===n?(w.classList.add('tippy-roundarrow'),w.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):w.classList.add('tippy-arrow'),x.appendChild(w)}if(l){x.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),x.appendChild(v)}d&&x.setAttribute('data-inertia',''),u&&x.setAttribute('data-interactive','');var k=document.createElement('div');if(k.setAttribute('class','tippy-content'),h){var E;h instanceof Element?(k.appendChild(h),E='#'+h.id||'tippy-html-template'):(k.innerHTML=document.querySelector(h).innerHTML,E=h),g.setAttribute('data-html',''),u&&g.setAttribute('tabindex','-1'),x.setAttribute('data-template-id',E)}else k.innerHTML=e;return x.appendChild(k),g.appendChild(x),g}function n(t){return t&&'[object Function]'==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var a=getComputedStyle(t,null);return e?a[e]:a}function l(t){return'HTML'===t.nodeName?t:t.parentNode||t.host}function d(t){if(!t)return document.body;switch(t.nodeName){case'HTML':case'BODY':return t.ownerDocument.body;case'#document':return t.body;}var e=s(t),a=e.overflow,i=e.overflowX,r=e.overflowY;return /(auto|scroll)/.test(a+r+i)?t:d(l(t))}function c(t){var e=t&&t.offsetParent,a=e&&e.nodeName;return a&&'BODY'!==a&&'HTML'!==a?-1!==['TD','TABLE'].indexOf(e.nodeName)&&'static'===s(e,'position')?c(e):e:t?t.ownerDocument.documentElement:document.documentElement}function m(t){var e=t.nodeName;return'BODY'!==e&&('HTML'===e||c(t.firstElementChild)===t)}function f(t){return null===t.parentNode?t:f(t.parentNode)}function h(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var a=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=a?t:e,r=a?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var p=o.commonAncestorContainer;if(t!==p&&e!==p||i.contains(r))return m(p)?p:c(p);var n=f(t);return n.host?h(n.host,e):h(t,f(e).host)}function b(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',a='top'===e?'scrollTop':'scrollLeft',i=t.nodeName;if('BODY'===i||'HTML'===i){var r=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||r;return o[a]}return t[a]}function u(t,e){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=b(e,'top'),r=b(e,'left'),o=a?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function y(t,e){var a='x'===e?'Left':'Top',i='Left'==a?'Right':'Bottom';return parseFloat(t['border'+a+'Width'],10)+parseFloat(t['border'+i+'Width'],10)}function g(t,e,a,i){return St(e['offset'+t],e['scroll'+t],a['client'+t],a['offset'+t],a['scroll'+t],qt()?a['offset'+t]+i['margin'+('Height'===t?'Top':'Left')]+i['margin'+('Height'===t?'Bottom':'Right')]:0)}function x(){var t=document.body,e=document.documentElement,a=qt()&&getComputedStyle(e);return{height:g('Height',t,e,a),width:g('Width',t,e,a)}}function w(t){return Vt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function v(t){var e={};if(qt())try{e=t.getBoundingClientRect();var a=b(t,'top'),i=b(t,'left');e.top+=a,e.left+=i,e.bottom+=a,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o='HTML'===t.nodeName?x():{},p=o.width||t.clientWidth||r.right-r.left,n=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-p,d=t.offsetHeight-n;if(l||d){var c=s(t);l-=y(c,'x'),d-=y(c,'y'),r.width-=l,r.height-=d}return w(r)}function k(t,e){var a=qt(),i='HTML'===e.nodeName,r=v(t),o=v(e),p=d(t),n=s(e),l=parseFloat(n.borderTopWidth,10),c=parseFloat(n.borderLeftWidth,10),m=w({top:r.top-o.top-l,left:r.left-o.left-c,width:r.width,height:r.height});if(m.marginTop=0,m.marginLeft=0,!a&&i){var f=parseFloat(n.marginTop,10),h=parseFloat(n.marginLeft,10);m.top-=l-f,m.bottom-=l-f,m.left-=c-h,m.right-=c-h,m.marginTop=f,m.marginLeft=h}return(a?e.contains(p):e===p&&'BODY'!==p.nodeName)&&(m=u(m,e)),m}function E(t){var e=t.ownerDocument.documentElement,a=k(t,e),i=St(e.clientWidth,window.innerWidth||0),r=St(e.clientHeight,window.innerHeight||0),o=b(e),p=b(e,'left'),n={top:o-a.top+a.marginTop,left:p-a.left+a.marginLeft,width:i,height:r};return w(n)}function L(t){var e=t.nodeName;return'BODY'===e||'HTML'===e?!1:'fixed'===s(t,'position')||L(l(t))}function T(t,e,a,i){var r={top:0,left:0},o=h(t,e);if('viewport'===i)r=E(o);else{var p;'scrollParent'===i?(p=d(l(e)),'BODY'===p.nodeName&&(p=t.ownerDocument.documentElement)):'window'===i?p=t.ownerDocument.documentElement:p=i;var n=k(p,o);if('HTML'===p.nodeName&&!L(o)){var s=x(),c=s.height,m=s.width;r.top+=n.top-n.marginTop,r.bottom=c+n.top,r.left+=n.left-n.marginLeft,r.right=m+n.left}else r=n}return r.left+=a,r.top+=a,r.right-=a,r.bottom-=a,r}function O(t){var e=t.width,a=t.height;return e*a}function A(t,e,a,i,r){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf('auto'))return t;var p=T(a,i,o,r),n={top:{width:p.width,height:e.top-p.top},right:{width:p.right-e.right,height:p.height},bottom:{width:p.width,height:p.bottom-e.bottom},left:{width:e.left-p.left,height:p.height}},s=Object.keys(n).map(function(t){return Vt({key:t},n[t],{area:O(n[t])})}).sort(function(t,e){return e.area-t.area}),l=s.filter(function(t){var e=t.width,i=t.height;return e>=a.clientWidth&&i>=a.clientHeight}),d=0<l.length?l[0].key:s[0].key,c=t.split('-')[1];return d+(c?'-'+c:'')}function C(t,e,a){var i=h(e,a);return k(a,i)}function S(t){var e=getComputedStyle(t),a=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),r={width:t.offsetWidth+i,height:t.offsetHeight+a};return r}function Y(t){var e={left:'right',right:'left',bottom:'top',top:'bottom'};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function X(t,e,a){a=a.split('-')[0];var i=S(t),r={width:i.width,height:i.height},o=-1!==['right','left'].indexOf(a),p=o?'top':'left',n=o?'left':'top',s=o?'height':'width',l=o?'width':'height';return r[p]=e[p]+e[s]/2-i[s]/2,r[n]=a===n?e[n]-i[l]:e[Y(n)],r}function D(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,e,a){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===a});var i=D(t,function(t){return t[e]===a});return t.indexOf(i)}function N(t,e,a){var i=void 0===a?t:t.slice(0,P(t,'name',a));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var a=t['function']||t.fn;t.enabled&&n(a)&&(e.offsets.popper=w(e.offsets.popper),e.offsets.reference=w(e.offsets.reference),e=a(e,t))}),e}function B(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=C(this.state,this.popper,this.reference),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=X(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position='absolute',t=N(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function R(t,e){return t.some(function(t){var a=t.name,i=t.enabled;return i&&a===e})}function I(t){for(var e=[!1,'ms','Webkit','Moz','O'],a=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length-1;r++){var i=e[r],o=i?''+i+a:t;if('undefined'!=typeof document.body.style[o])return o}return null}function W(){return this.state.isDestroyed=!0,R(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[I('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(t){var e=t.ownerDocument;return e?e.defaultView:window}function M(t,e,a,i){var r='BODY'===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,a,{passive:!0}),r||M(d(o.parentNode),e,a,i),i.push(o)}function z(t,e,a,i){a.updateBound=i,H(t).addEventListener('resize',a.updateBound,{passive:!0});var r=d(t);return M(r,'scroll',a.updateBound,a.scrollParents),a.scrollElement=r,a.eventsEnabled=!0,a}function _(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function U(t,e){return H(t).removeEventListener('resize',e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener('scroll',e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=U(this.reference,this.state))}function F(t){return''!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function j(t,e){Object.keys(e).forEach(function(a){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(a)&&F(e[a])&&(i='px'),t.style[a]=e[a]+i})}function K(t,e){Object.keys(e).forEach(function(a){var i=e[a];!1===i?t.removeAttribute(a):t.setAttribute(a,e[a])})}function V(t,e,a){var i=D(t,function(t){var a=t.name;return a===e}),r=!!i&&t.some(function(t){return t.name===a&&t.enabled&&t.order<i.order});if(!r){var o='`'+e+'`';console.warn('`'+a+'`'+' modifier is required by '+o+' modifier in order to work, be sure to include it before '+o+'!')}return r}function G(t){return'end'===t?'start':'start'===t?'end':t}function Z(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=Zt.indexOf(t),i=Zt.slice(a+1).concat(Zt.slice(0,a));return e?i.reverse():i}function Q(t,e,a,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],p=r[2];if(!o)return t;if(0===p.indexOf('%')){var n;switch(p){case'%p':n=a;break;case'%':case'%r':default:n=i;}var s=w(n);return s[e]/100*o}if('vh'===p||'vw'===p){var l;return l='vh'===p?St(document.documentElement.clientHeight,window.innerHeight||0):St(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}return o}function $(t,e,a,i){var r=[0,0],o=-1!==['right','left'].indexOf(i),p=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=p.indexOf(D(p,function(t){return-1!==t.search(/,|\s/)}));p[n]&&-1===p[n].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var s=/\s*,\s*|\s+/,l=-1===n?[p]:[p.slice(0,n).concat([p[n].split(s)[0]]),[p[n].split(s)[1],p.slice(n+1)]];return l=l.map(function(t,i){var r=(1===i?!o:o)?'height':'width',p=!1;return t.reduce(function(t,e){return''===t[t.length-1]&&-1!==['+','-'].indexOf(e)?(t[t.length-1]=e,p=!0,t):p?(t[t.length-1]+=e,p=!1,t):t.concat(e)},[]).map(function(t){return Q(t,r,e,a)})}),l.forEach(function(t,e){t.forEach(function(a,i){F(a)&&(r[e]+=a*('-'===t[i-1]?-1:1))})}),r}function J(t,e,a,i){if(!e.length)return'';var r={scale:function(){return 1===e.length?''+e[0]:a?e[0]+', '+e[1]:e[1]+', '+e[0]}(),translate:function(){return 1===e.length?i?-e[0]+'px':e[0]+'px':a?i?e[0]+'px, '+-e[1]+'px':e[0]+'px, '+e[1]+'px':i?-e[1]+'px, '+e[0]+'px':e[1]+'px, '+e[0]+'px'}()};return r[t]}function tt(t,e){if(!t)return'';return e?t:{X:'Y',Y:'X'}[t]}function et(t){return t.getAttribute('x-placement').replace(/-.+/,'')}function at(t,e,a){var i=et(t),r='top'===i||'bottom'===i,p='right'===i||'bottom'===i,n=function(t){var e=a.match(t);return e?e[1]:''},s=function(t){var e=a.match(t);return e?e[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:n(/translate([XY])/),numbers:s(l.translate)},scale:{axis:n(/scale([XY])/),numbers:s(l.scale)}},c=a.replace(l.translate,'translate'+tt(d.translate.axis,r)+'('+J('translate',d.translate.numbers,r,p)+')').replace(l.scale,'scale'+tt(d.scale.axis,r)+'('+J('scale',d.scale.numbers,r,p)+')');e.style[o('transform')]=c}function it(t){requestAnimationFrame(function(){setTimeout(t,0)})}function rt(t){return{tooltip:t.querySelector(Dt.TOOLTIP),backdrop:t.querySelector(Dt.BACKDROP),content:t.querySelector(Dt.CONTENT)}}function ot(t){return-(t-Pt.distance)+'px'}function pt(t){var e=t.tippy,a=t.target,i=t.callback,r=t.options;if(window.MutationObserver){var o=new MutationObserver(i);o.observe(a,r),e._mutationObservers.push(o)}}function nt(t){var e=t.reference,a=t.popper,i=t.options,r=i.placement,p=i.popperOptions,n=i.offset,s=i.distance,l=i.updateDuration,d=i.flip,c=i.flipBehavior,m=i.arrowType,f=i.arrowTransform,h=i.sticky,b=rt(a),u=b.tooltip,y='round'===m?Dt.ROUND_ARROW:Dt.ARROW,g=u.querySelector(y),x=It({placement:r},p||{},{modifiers:It({},p?p.modifiers:{},{arrow:It({element:y},p&&p.modifiers?p.modifiers.arrow:{}),flip:It({enabled:d,padding:s+5,behavior:c},p&&p.modifiers?p.modifiers.flip:{}),offset:It({offset:n},p&&p.modifiers?p.modifiers.offset:{})}),onCreate:function(){u.style[et(a)]=ot(s),g&&f&&at(a,g,f)},onUpdate:function(){var t=u.style;t.top='',t.bottom='',t.left='',t.right='',t[et(a)]=ot(s),g&&f&&at(a,g,f)}});return pt({tippy:t,target:a,callback:function(){var e=a.style;e[o('transitionDuration')]='0ms',t.popperInstance.update(),it(function(){e[o('transitionDuration')]=l+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new $t(e,a,x)}function st(t,e,a,i){var r=[];return'manual'===t?r:(e.addEventListener(t,a.handleTrigger),r.push({event:t,handler:a.handleTrigger}),'mouseenter'===t&&(Xt.supportsTouch&&i&&(e.addEventListener('touchstart',a.handleTrigger),r.push({event:'touchstart',handler:a.handleTrigger}),e.addEventListener('touchend',a.handleMouseleave),r.push({event:'touchend',handler:a.handleMouseleave})),e.addEventListener('mouseleave',a.handleMouseleave),r.push({event:'mouseleave',handler:a.handleMouseleave})),'focus'===t&&(e.addEventListener('blur',a.handleBlur),r.push({event:'blur',handler:a.handleBlur})),r)}function lt(t,a){var i=Element.prototype.closest||function(t){for(var a=this;a;){if(e.call(a,t))return a;a=a.parentElement}};return i.call(t,a)}function dt(t,e,a){if(!e.getAttribute('x-placement'))return!0;var i=t.clientX,r=t.clientY,o=a.interactiveBorder,p=a.distance,n=e.getBoundingClientRect(),s=et(e),l=o+p,d={top:n.top-r>o,bottom:r-n.bottom>o,left:n.left-i>o,right:i-n.right>o};return'top'===s?d.top=n.top-r>l:'bottom'===s?d.bottom=r-n.bottom>l:'left'===s?d.left=n.left-i>l:'right'===s?d.right=i-n.right>l:void 0,d.top||d.bottom||d.left||d.right}function ct(t,e){var a,i,r=t.popper,o=t.reference,p=t.options,n=p.delay,s=p.duration,l=p.interactive,d=p.interactiveBorder,c=p.hideOnClick,m=p.trigger,f=p.touchHold,h=function(){clearTimeout(a),clearTimeout(i)},b=function(){if(h(),!t.state.visible){var e=Array.isArray(n)?n[0]:n;n?a=setTimeout(function(){return t.show()},e):t.show()}},u=function(e){t.options.wait?t.options.wait.call(r,b,e):b()},y=function(){if(h(),!!t.state.visible){var e=Array.isArray(n)?n[1]:n;n?i=setTimeout(function(){t.state.visible&&t.hide()},e):t.hide()}};return{handleTrigger:function(e){if(!t.state.disabled){var a=Xt.supportsTouch&&Xt.usingTouch&&('mouseenter'===e.type||'focus'===e.type);if(!(a&&f)){t._lastTriggerEvent=e.type;var i='click'===e.type;i&&t.state.visible&&'persistent'!==c?y():u(e),a&&Xt.iOS&&o.click&&o.click()}}},handleMouseleave:function(t){if(!('mouseleave'===t.type&&Xt.supportsTouch&&Xt.usingTouch&&f)){if(l){var a=function t(a){var i=lt(a.target,Dt.REFERENCE),p=lt(a.target,Dt.POPPER)===r;p||i===o||dt(a,r,e)&&(document.body.removeEventListener('mouseleave',y),document.removeEventListener('mousemove',t),y())};return document.body.addEventListener('mouseleave',y),void document.addEventListener('mousemove',a)}y()}},handleBlur:function(t){!t.relatedTarget||Xt.usingTouch||lt(t.relatedTarget,Dt.POPPER)||y()}}}function mt(t,e){return e.arrow&&(e.animateFill=!1),e.appendTo&&'function'==typeof e.appendTo&&(e.appendTo=e.appendTo()),'function'==typeof e.html&&(e.html=e.html(t)),e}function ft(t){var e=t.getAttribute('title');e&&t.setAttribute('data-original-title',e),t.removeAttribute('title')}function ht(t){var e=function(a){if('focus'!==t._lastTriggerEvent){var e,i,r=t.popper,p=t.options.offset,n=et(r),s=Ot(r.offsetWidth/2),l=Ot(r.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,m=a.pageX,f=a.pageY;'top'===n?(e=m-s+p,i=f-2*l):'bottom'===n?(e=m-s+p,i=f+10):'left'===n?(e=m-2*s,i=f-l+p):'right'===n?(e=m+5,i=f-l+p):void 0;('top'===n||'bottom'===n)&&(m+d+s+p>c&&(e=c-d-2*s),0>m-d-s+p&&(e=d)),r.style[o('transform')]='translate3d('+e+'px, '+i+'px, 0)'}};return t._followCursorListener=e,e}function bt(t){var e=t.popper,a=t.reference,i=t.options,r=t.popperInstance;i.appendTo.contains(e)||(i.appendTo.appendChild(e),r?(e.style[o('transform')]=null,r.update(),(!i.followCursor||Xt.usingTouch)&&r.enableEventListeners()):r=t.popperInstance=nt(t),i.followCursor&&!Xt.usingTouch&&(document.addEventListener('mousemove',ht(t)),r.disableEventListeners()))}function ut(t){var e=function(){t.popper.style[o('transitionDuration')]=t.options.updateDuration+'ms'},a=function(){t.popper.style[o('transitionDuration')]=''};it(function i(){t.popperInstance&&t.popperInstance.scheduleUpdate(),e(),t.state.visible?requestAnimationFrame(i):a()})}function yt(t,e,a){if(!e)return a();var i=rt(t.popper),r=i.tooltip,o=function(t,e){e&&r[t+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',e)},p=function t(i){i.target===r&&(o('remove',t),a())};o('remove',t._transitionendListener),o('add',p),t._transitionendListener=p}function gt(t){var e=t.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function xt(t,e){return Array.isArray(t)?t[e]:t}function wt(t,e){t.forEach(function(t){t&&t.setAttribute('data-state',e)})}function vt(t,e){t.forEach(function(t){t&&(t.style[o('transitionDuration')]=e+'ms')})}function kt(t,e){return t.reduce(function(t,a){var i=ae,o=mt(a,e.performance?e:r(a,e)),n=o.html,s=o.trigger,l=o.touchHold,d=o.dynamicTitle,c=o.createPopperInstanceOnInit,m=a.getAttribute('title');if(!m&&!n)return t;a.setAttribute('data-tippy',''),a.setAttribute('aria-describedby','tippy-'+i),ft(a);var f=p(i,m,o),h=new ee({id:i,reference:a,popper:f,options:o,_mutationObservers:[]});h.popperInstance=c?nt(h):null;var b=ct(h,o);return h.listeners=s.trim().split(' ').reduce(function(t,e){return t.concat(st(e,a,b,l))},[]),d&&pt({tippy:h,target:a,callback:function(){var t=rt(f),e=t.content,i=a.getAttribute('title');i&&(e.innerHTML=i,ft(a))},options:{attributes:!0}}),a._tippy=h,f._reference=a,t.push(h),ae++,t},[])}function Et(t){var e=[].slice.call(document.querySelectorAll(Dt.POPPER));e.forEach(function(e){var a=e._reference._tippy,i=a.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!t||e!==t.popper)&&a.hide()})}function Lt(){var t=function(){Xt.usingTouch||(Xt.usingTouch=!0,Xt.iOS&&document.body.classList.add('tippy-touch'),Xt.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',a),Xt.onUserInputChange('touch'))},a=function(){var t;return function(){var e=performance.now();20>e-t&&(Xt.usingTouch=!1,document.removeEventListener('mousemove',a),!Xt.iOS&&document.body.classList.remove('tippy-touch'),Xt.onUserInputChange('mouse')),t=e}}();document.addEventListener('click',function(t){if(!(t.target instanceof Element))return Et();var e=lt(t.target,Dt.REFERENCE),a=lt(t.target,Dt.POPPER);if(!(a&&a._reference._tippy.options.interactive)){if(e){var i=e._tippy.options;if(!i.multiple&&Xt.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return Et(e._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}Et()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,a=t.activeElement;a&&a.blur&&e.call(a,Dt.REFERENCE)&&a.blur()}),!Xt.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function Tt(e,i){return Xt.supported&&!Xt._eventListenersBound&&(Lt(),Xt._eventListenersBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,a){e.attributes[t]=a},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),i=It({},Pt,i),{selector:e,options:i,tooltips:Xt.supported?kt(a(e),i):[],destroyAll:function(){this.tooltips.forEach(function(t){return t.destroy()})}}}var Ot=Math.round,At=Math.min,Ct=Math.floor,St=Math.max,Yt='undefined'!=typeof window,Xt={};Yt&&(Xt.supported='requestAnimationFrame'in window,Xt.supportsTouch='ontouchstart'in window,Xt.usingTouch=!1,Xt.dynamicInputDetection=!0,Xt.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Xt.onUserInputChange=function(){},Xt._eventListenersBound=!1);for(var Dt={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Pt={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Nt=Xt.supported&&Object.keys(Pt),Bt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},Rt=function(){function t(t,e){for(var a,r=0;r<e.length;r++)a=e[r],a.enumerable=a.enumerable||!1,a.configurable=!0,('value'in a)&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),It=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var i in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Wt='undefined'!=typeof window&&'undefined'!=typeof document,Ht=['Edge','Trident','Firefox'],Mt=0,zt=0;zt<Ht.length;zt+=1)if(Wt&&0<=navigator.userAgent.indexOf(Ht[zt])){Mt=1;break}var i,_t=Wt&&window.Promise,Ut=_t?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Mt))}},qt=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},Ft=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},jt=function(){function t(t,e){for(var a,r=0;r<e.length;r++)a=e[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),Kt=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},Vt=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var i in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Gt=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],Zt=Gt.slice(3),Qt={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},$t=function(){function t(e,a){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Ft(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ut(this.update.bind(this)),this.options=Vt({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=a&&a.jquery?a[0]:a,this.options.modifiers={},Object.keys(Vt({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=Vt({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Vt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&n(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return jt(t,[{key:'update',value:function(){return B.call(this)}},{key:'destroy',value:function(){return W.call(this)}},{key:'enableEventListeners',value:function(){return _.call(this)}},{key:'disableEventListeners',value:function(){return q.call(this)}}]),t}();$t.Utils=('undefined'==typeof window?global:window).PopperUtils,$t.placements=Gt,$t.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,a=e.split('-')[0],i=e.split('-')[1];if(i){var r=t.offsets,o=r.reference,p=r.popper,n=-1!==['bottom','top'].indexOf(a),s=n?'left':'top',l=n?'width':'height',d={start:Kt({},s,o[s]),end:Kt({},s,o[s]+o[l]-p[l])};t.offsets.popper=Vt({},p,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var a,i=e.offset,r=t.placement,o=t.offsets,p=o.popper,n=o.reference,s=r.split('-')[0];return a=F(+i)?[+i,0]:$(i,p,n,s),'left'===s?(p.top+=a[0],p.left-=a[1]):'right'===s?(p.top+=a[0],p.left+=a[1]):'top'===s?(p.left+=a[0],p.top-=a[1]):'bottom'===s&&(p.left+=a[0],p.top+=a[1]),t.popper=p,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var a=e.boundariesElement||c(t.instance.popper);t.instance.reference===a&&(a=c(a));var i=T(t.instance.popper,t.instance.reference,e.padding,a);e.boundaries=i;var r=e.priority,o=t.offsets.popper,p={primary:function(t){var a=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(a=St(o[t],i[t])),Kt({},t,a)},secondary:function(t){var a='right'===t?'left':'top',r=o[a];return o[t]>i[t]&&!e.escapeWithReference&&(r=At(o[a],i[t]-('right'===t?o.width:o.height))),Kt({},a,r)}};return r.forEach(function(t){var e=-1===['left','top'].indexOf(t)?'secondary':'primary';o=Vt({},o,p[e](t))}),t.offsets.popper=o,t},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,a=e.popper,i=e.reference,r=t.placement.split('-')[0],o=Ct,p=-1!==['top','bottom'].indexOf(r),n=p?'right':'bottom',s=p?'left':'top',l=p?'width':'height';return a[n]<o(i[s])&&(t.offsets.popper[s]=o(i[s])-a[l]),a[s]>o(i[n])&&(t.offsets.popper[s]=o(i[n])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var a;if(!V(t.instance.modifiers,'arrow','keepTogether'))return t;var i=e.element;if('string'==typeof i){if(i=t.instance.popper.querySelector(i),!i)return t;}else if(!t.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),t;var r=t.placement.split('-')[0],o=t.offsets,p=o.popper,n=o.reference,l=-1!==['left','right'].indexOf(r),d=l?'height':'width',c=l?'Top':'Left',m=c.toLowerCase(),f=l?'left':'top',h=l?'bottom':'right',b=S(i)[d];n[h]-b<p[m]&&(t.offsets.popper[m]-=p[m]-(n[h]-b)),n[m]+b>p[h]&&(t.offsets.popper[m]+=n[m]+b-p[h]),t.offsets.popper=w(t.offsets.popper);var u=n[m]+n[d]/2-b/2,y=s(t.instance.popper),g=parseFloat(y['margin'+c],10),x=parseFloat(y['border'+c+'Width'],10),v=u-t.offsets.popper[m]-g-x;return v=St(At(p[d]-b,v),0),t.arrowElement=i,t.offsets.arrow=(a={},Kt(a,m,Ot(v)),Kt(a,f,''),a),t},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(t,e){if(R(t.instance.modifiers,'inner'))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var a=T(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split('-')[0],r=Y(i),o=t.placement.split('-')[1]||'',p=[];switch(e.behavior){case Qt.FLIP:p=[i,r];break;case Qt.CLOCKWISE:p=Z(i);break;case Qt.COUNTERCLOCKWISE:p=Z(i,!0);break;default:p=e.behavior;}return p.forEach(function(n,s){if(i!==n||p.length===s+1)return t;i=t.placement.split('-')[0],r=Y(i);var l=t.offsets.popper,d=t.offsets.reference,c=Ct,m='left'===i&&c(l.right)>c(d.left)||'right'===i&&c(l.left)<c(d.right)||'top'===i&&c(l.bottom)>c(d.top)||'bottom'===i&&c(l.top)<c(d.bottom),f=c(l.left)<c(a.left),h=c(l.right)>c(a.right),b=c(l.top)<c(a.top),u=c(l.bottom)>c(a.bottom),y='left'===i&&f||'right'===i&&h||'top'===i&&b||'bottom'===i&&u,g=-1!==['top','bottom'].indexOf(i),x=!!e.flipVariations&&(g&&'start'===o&&f||g&&'end'===o&&h||!g&&'start'===o&&b||!g&&'end'===o&&u);(m||y||x)&&(t.flipped=!0,(m||y)&&(i=p[s+1]),x&&(o=G(o)),t.placement=i+(o?'-'+o:''),t.offsets.popper=Vt({},t.offsets.popper,X(t.instance.popper,t.offsets.reference,t.placement)),t=N(t.instance.modifiers,t,'flip'))}),t},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,a=e.split('-')[0],i=t.offsets,r=i.popper,o=i.reference,p=-1!==['left','right'].indexOf(a),n=-1===['top','left'].indexOf(a);return r[p?'left':'top']=o[a]-(n?r[p?'width':'height']:0),t.placement=Y(e),t.offsets.popper=w(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!V(t.instance.modifiers,'hide','preventOverflow'))return t;var e=t.offsets.reference,a=D(t.instance.modifiers,function(t){return'preventOverflow'===t.name}).boundaries;if(e.bottom<a.top||e.left>a.right||e.top>a.bottom||e.right<a.left){if(!0===t.hide)return t;t.hide=!0,t.attributes['x-out-of-boundaries']=''}else{if(!1===t.hide)return t;t.hide=!1,t.attributes['x-out-of-boundaries']=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var a=e.x,i=e.y,r=t.offsets.popper,o=D(t.instance.modifiers,function(t){return'applyStyle'===t.name}).gpuAcceleration;void 0!==o&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var p,n,s=void 0===o?e.gpuAcceleration:o,l=c(t.instance.popper),d=v(l),m={position:r.position},f={left:Ct(r.left),top:Ct(r.top),bottom:Ct(r.bottom),right:Ct(r.right)},h='bottom'===a?'top':'bottom',b='right'===i?'left':'right',u=I('transform');if(n='bottom'==h?-d.height+f.bottom:f.top,p='right'==b?-d.width+f.right:f.left,s&&u)m[u]='translate3d('+p+'px, '+n+'px, 0)',m[h]=0,m[b]=0,m.willChange='transform';else{var y='bottom'==h?-1:1,g='right'==b?-1:1;m[h]=n*y,m[b]=p*g,m.willChange=h+', '+b}var x={"x-placement":t.placement};return t.attributes=Vt({},x,t.attributes),t.styles=Vt({},m,t.styles),t.arrowStyles=Vt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(t){return j(t.instance.popper,t.styles),K(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&j(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,a,i,r){var o=C(r,e,t),p=A(a.placement,o,e,t,a.modifiers.flip.boundariesElement,a.modifiers.flip.padding);return e.setAttribute('x-placement',p),j(e,{position:'absolute'}),a},gpuAcceleration:void 0}}};var Jt={};if(Yt){var te=Element.prototype;Jt=te.matches||te.matchesSelector||te.webkitMatchesSelector||te.mozMatchesSelector||te.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),a=e.length;0<=--a&&e.item(a)!==this;);return-1<a}}var e=Jt,ee=function(){function t(e){for(var a in Bt(this,t),e)this[a]=e[a];this.state={destroyed:!1,visible:!1,enabled:!0}}return Rt(t,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(t){var e=this;if(!this.state.destroyed&&this.state.enabled){var a=this.popper,i=this.reference,r=this.options,p=rt(a),n=p.tooltip,s=p.backdrop,l=p.content;return i.refObj||document.body.contains(i)?void(r.onShow.call(a),t=xt(void 0===t?r.duration:t,0),vt([a,n,s],0),bt(this),a.style.visibility='visible',this.state.visible=!0,it(function(){e.state.visible&&((!r.followCursor||Xt.usingTouch)&&(e.popperInstance.update(),vt([a],r.updateDuration)),vt([n,s,s?l:null],t),s&&getComputedStyle(s)[o('transform')],r.interactive&&i.classList.add('tippy-active'),r.sticky&&ut(e),wt([n,s],'visible'),yt(e,t,function(){r.updateDuration||n.classList.add('tippy-notransition'),r.interactive&&a.focus(),r.onShown.call(a)}))})):void this.destroy()}}},{key:'hide',value:function(t){var e=this;if(!this.state.destroyed&&this.state.enabled){var a=this.popper,i=this.reference,r=this.options,o=rt(a),p=o.tooltip,n=o.backdrop,s=o.content;r.onHide.call(a),t=xt(void 0===t?r.duration:t,1),r.updateDuration||p.classList.remove('tippy-notransition'),r.interactive&&i.classList.remove('tippy-active'),a.style.visibility='hidden',this.state.visible=!1,vt([p,n,n?s:null],t),wt([p,n],'hidden'),r.interactive&&-1<r.trigger.indexOf('click')&>(i)&&i.focus(),it(function(){yt(e,t,function(){e.state.visible||!r.appendTo.contains(a)||(e.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',e._followCursorListener),r.appendTo.removeChild(a),r.onHidden.call(a))})})}}},{key:'destroy',value:function(){var t=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(e){t.reference.removeEventListener(e.event,e.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(e){t.reference.removeAttribute(e)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(t){t.disconnect()}),this.state.destroyed=!0)}}]),t}(),ae=1;return Tt.browser=Xt,Tt.defaults=Pt,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'';if(Yt){var e=document.head||document.querySelector('head'),a=document.createElement('style');a.type='text/css',e.insertBefore(a,e.firstChild),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}('.tippy-touch{cursor:pointer!important}.tippy-notransition{-webkit-transition:none!important;transition:none!important}.tippy-popper{max-width:350px;-webkit-perspective:700px;perspective:700px;z-index:9999;outline:0;-webkit-transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper[data-html]{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{width:23px;height:23px;fill:#333;bottom:-15px;margin:0 6px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 100%;transform-origin:0 100%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-50%,25%);transform:scale(5.5) translate(-50%,25%);opacity:1}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1) translate(-50%,25%);transform:scale(1) translate(-50%,25%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{width:23px;height:23px;fill:#333;top:-15px;margin:0 6px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{-webkit-transform:rotate(0);transform:rotate(0)}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -100%;transform-origin:0 -100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-50%,-125%);transform:scale(5.5) translate(-50%,-125%);opacity:1}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1) translate(-50%,-125%);transform:scale(1) translate(-50%,-125%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:30% 0 0 30%}.tippy-popper[x-placement^=left] .tippy-roundarrow{width:23px;height:23px;fill:#333;right:-15px;margin:4px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:100% 0;transform-origin:100% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(33%,-50%);transform:scale(5.5) translate(33%,-50%);opacity:1}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1.5) translate(33%,-50%);transform:scale(1.5) translate(33%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 30% 30% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{width:23px;height:23px;fill:#333;left:-15px;margin:4px 0}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-100% 0;transform-origin:-100% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-133%,-50%);transform:scale(5.5) translate(-133%,-50%);opacity:1}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1.5) translate(-133%,-50%);transform:scale(1.5) translate(-133%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.9rem;padding:.3rem .6rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip[data-size=small]{padding:.2rem .4rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.4rem .8rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-animatefill] .tippy-content{-webkit-transition:-webkit-clip-path cubic-bezier(.46,.1,.52,.98);transition:-webkit-clip-path cubic-bezier(.46,.1,.52,.98);transition:clip-path cubic-bezier(.46,.1,.52,.98);transition:clip-path cubic-bezier(.46,.1,.52,.98),-webkit-clip-path cubic-bezier(.46,.1,.52,.98)}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(.53,2,.36,.85);transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip[data-inertia][data-state=hidden]{-webkit-transition-timing-function:ease;transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-backdrop{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:26%;left:50%;top:50%;z-index:-1;-webkit-transition:all cubic-bezier(.46,.1,.52,.98);transition:all cubic-bezier(.46,.1,.52,.98)}.tippy-backdrop:after{content:"";float:left;padding-top:100%}body:not(.tippy-touch) .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(100% 100% at 50% 50%);clip-path:ellipse(100% 100% at 50% 50%)}body:not(.tippy-touch) .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(5% 50% at 50% 50%);clip-path:ellipse(5% 50% at 50% 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=right] .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(135% 100% at 0 50%);clip-path:ellipse(135% 100% at 0 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=right] .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(25% 100% at 0 50%);clip-path:ellipse(25% 100% at 0 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=left] .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(135% 100% at 100% 50%);clip-path:ellipse(135% 100% at 100% 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=left] .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(25% 100% at 100% 50%);clip-path:ellipse(25% 100% at 100% 50%)}@media (max-width:360px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}'),Tt}); | ||
(function(t,e){'object'==typeof exports&&'undefined'!=typeof module?module.exports=e():'function'==typeof define&&define.amd?define(e):t.tippy=e()})(this,function(){'use strict';function t(t){return'[object Object]'===Object.prototype.toString.call(t)}function a(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(t){return[]}}function o(t,e){var a=Bt.reduce(function(a,i){var o=t.getAttribute('data-tippy-'+i.toLowerCase())||e[i];return'false'===o&&(o=!1),'true'===o&&(o=!0),isFinite(o)&&!isNaN(parseFloat(o))&&(o=parseFloat(o)),'string'==typeof o&&'['===o.trim().charAt(0)&&(o=JSON.parse(o)),a[i]=o,a},{});return _t({},e,a)}function r(t){for(var e=[!1,'webkit'],a=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?''+i+a:t;if('undefined'!=typeof document.body.style[r])return r}return null}function p(t,e,a){var i=a.placement,o=a.distance,p=a.arrow,n=a.arrowType,s=a.arrowTransform,l=a.animateFill,d=a.inertia,c=a.animation,m=a.size,f=a.theme,h=a.html,b=a.zIndex,u=a.interactive,y=a.maxWidth,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('id','tippy-'+t),g.style.zIndex=b,g.style.maxWidth=y;var x=document.createElement('div');if(x.setAttribute('class','tippy-tooltip'),x.setAttribute('data-size',m),x.setAttribute('data-animation',c),x.setAttribute('data-state','hidden'),f.split(' ').forEach(function(e){x.classList.add(e+'-theme')}),p){var w=document.createElement('div');w.style[r('transform')]=s,'round'===n?(w.classList.add('tippy-roundarrow'),w.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):w.classList.add('tippy-arrow'),x.appendChild(w)}if(l){x.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),x.appendChild(v)}d&&x.setAttribute('data-inertia',''),u&&x.setAttribute('data-interactive','');var k=document.createElement('div');if(k.setAttribute('class','tippy-content'),h){var E;h instanceof Element?(k.appendChild(h),E='#'+h.id||'tippy-html-template'):(k.innerHTML=document.querySelector(h).innerHTML,E=h),g.setAttribute('data-html',''),u&&g.setAttribute('tabindex','-1'),x.setAttribute('data-template-id',E)}else k.innerHTML=e;return x.appendChild(k),g.appendChild(x),g}function n(t,e,a,i){var o=[];return'manual'===t?o:(e.addEventListener(t,a.handleTrigger),o.push({event:t,handler:a.handleTrigger}),'mouseenter'===t&&(Nt.supportsTouch&&i&&(e.addEventListener('touchstart',a.handleTrigger),o.push({event:'touchstart',handler:a.handleTrigger}),e.addEventListener('touchend',a.handleMouseleave),o.push({event:'touchend',handler:a.handleMouseleave})),e.addEventListener('mouseleave',a.handleMouseleave),o.push({event:'mouseleave',handler:a.handleMouseleave})),'focus'===t&&(e.addEventListener('blur',a.handleBlur),o.push({event:'blur',handler:a.handleBlur})),o)}function s(t,e){return e.arrow&&(e.animateFill=!1),e.appendTo&&'function'==typeof e.appendTo&&(e.appendTo=e.appendTo()),'function'==typeof e.html&&(e.html=e.html(t)),e}function l(t){return{tooltip:t.querySelector(It.TOOLTIP),backdrop:t.querySelector(It.BACKDROP),content:t.querySelector(It.CONTENT)}}function d(t){var e=t.getAttribute('title');e&&t.setAttribute('data-original-title',e),t.removeAttribute('title')}function c(t){return t&&'[object Function]'==={}.toString.call(t)}function m(t,e){if(1!==t.nodeType)return[];var a=getComputedStyle(t,null);return e?a[e]:a}function f(t){return'HTML'===t.nodeName?t:t.parentNode||t.host}function h(t){if(!t)return document.body;switch(t.nodeName){case'HTML':case'BODY':return t.ownerDocument.body;case'#document':return t.body;}var e=m(t),a=e.overflow,i=e.overflowX,o=e.overflowY;return /(auto|scroll)/.test(a+o+i)?t:h(f(t))}function b(t){var e=t&&t.offsetParent,a=e&&e.nodeName;return a&&'BODY'!==a&&'HTML'!==a?-1!==['TD','TABLE'].indexOf(e.nodeName)&&'static'===m(e,'position')?b(e):e:t?t.ownerDocument.documentElement:document.documentElement}function u(t){var e=t.nodeName;return'BODY'!==e&&('HTML'===e||b(t.firstElementChild)===t)}function y(t){return null===t.parentNode?t:y(t.parentNode)}function g(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var a=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=a?t:e,o=a?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var p=r.commonAncestorContainer;if(t!==p&&e!==p||i.contains(o))return u(p)?p:b(p);var n=y(t);return n.host?g(n.host,e):g(t,y(e).host)}function x(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',a='top'===e?'scrollTop':'scrollLeft',i=t.nodeName;if('BODY'===i||'HTML'===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[a]}return t[a]}function w(t,e){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=x(e,'top'),o=x(e,'left'),r=a?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function v(t,e){var a='x'===e?'Left':'Top',i='Left'==a?'Right':'Bottom';return parseFloat(t['border'+a+'Width'],10)+parseFloat(t['border'+i+'Width'],10)}function k(t,e,a,i){return Pt(e['offset'+t],e['scroll'+t],a['client'+t],a['offset'+t],a['scroll'+t],Kt()?a['offset'+t]+i['margin'+('Height'===t?'Top':'Left')]+i['margin'+('Height'===t?'Bottom':'Right')]:0)}function E(){var t=document.body,e=document.documentElement,a=Kt()&&getComputedStyle(e);return{height:k('Height',t,e,a),width:k('Width',t,e,a)}}function T(t){return Qt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function L(t){var e={};if(Kt())try{e=t.getBoundingClientRect();var a=x(t,'top'),i=x(t,'left');e.top+=a,e.left+=i,e.bottom+=a,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r='HTML'===t.nodeName?E():{},p=r.width||t.clientWidth||o.right-o.left,n=r.height||t.clientHeight||o.bottom-o.top,s=t.offsetWidth-p,l=t.offsetHeight-n;if(s||l){var d=m(t);s-=v(d,'x'),l-=v(d,'y'),o.width-=s,o.height-=l}return T(o)}function O(t,e){var a=Kt(),i='HTML'===e.nodeName,o=L(t),r=L(e),p=h(t),n=m(e),s=parseFloat(n.borderTopWidth,10),l=parseFloat(n.borderLeftWidth,10),d=T({top:o.top-r.top-s,left:o.left-r.left-l,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!a&&i){var c=parseFloat(n.marginTop,10),f=parseFloat(n.marginLeft,10);d.top-=s-c,d.bottom-=s-c,d.left-=l-f,d.right-=l-f,d.marginTop=c,d.marginLeft=f}return(a?e.contains(p):e===p&&'BODY'!==p.nodeName)&&(d=w(d,e)),d}function C(t){var e=t.ownerDocument.documentElement,a=O(t,e),i=Pt(e.clientWidth,window.innerWidth||0),o=Pt(e.clientHeight,window.innerHeight||0),r=x(e),p=x(e,'left'),n={top:r-a.top+a.marginTop,left:p-a.left+a.marginLeft,width:i,height:o};return T(n)}function A(t){var e=t.nodeName;return'BODY'===e||'HTML'===e?!1:'fixed'===m(t,'position')||A(f(t))}function S(t,e,a,i){var o={top:0,left:0},r=g(t,e);if('viewport'===i)o=C(r);else{var p;'scrollParent'===i?(p=h(f(e)),'BODY'===p.nodeName&&(p=t.ownerDocument.documentElement)):'window'===i?p=t.ownerDocument.documentElement:p=i;var n=O(p,r);if('HTML'===p.nodeName&&!A(r)){var s=E(),l=s.height,d=s.width;o.top+=n.top-n.marginTop,o.bottom=l+n.top,o.left+=n.left-n.marginLeft,o.right=d+n.left}else o=n}return o.left+=a,o.top+=a,o.right-=a,o.bottom-=a,o}function Y(t){var e=t.width,a=t.height;return e*a}function X(t,e,a,i,o){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf('auto'))return t;var p=S(a,i,r,o),n={top:{width:p.width,height:e.top-p.top},right:{width:p.right-e.right,height:p.height},bottom:{width:p.width,height:p.bottom-e.bottom},left:{width:e.left-p.left,height:p.height}},s=Object.keys(n).map(function(t){return Qt({key:t},n[t],{area:Y(n[t])})}).sort(function(t,e){return e.area-t.area}),l=s.filter(function(t){var e=t.width,i=t.height;return e>=a.clientWidth&&i>=a.clientHeight}),d=0<l.length?l[0].key:s[0].key,c=t.split('-')[1];return d+(c?'-'+c:'')}function P(t,e,a){var i=g(e,a);return O(a,i)}function D(t){var e=getComputedStyle(t),a=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),o={width:t.offsetWidth+i,height:t.offsetHeight+a};return o}function N(t){var e={left:'right',right:'left',bottom:'top',top:'bottom'};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function I(t,e,a){a=a.split('-')[0];var i=D(t),o={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(a),p=r?'top':'left',n=r?'left':'top',s=r?'height':'width',l=r?'width':'height';return o[p]=e[p]+e[s]/2-i[s]/2,o[n]=a===n?e[n]-i[l]:e[N(n)],o}function R(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function B(t,e,a){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===a});var i=R(t,function(t){return t[e]===a});return t.indexOf(i)}function W(t,e,a){var i=void 0===a?t:t.slice(0,B(t,'name',a));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var a=t['function']||t.fn;t.enabled&&c(a)&&(e.offsets.popper=T(e.offsets.popper),e.offsets.reference=T(e.offsets.reference),e=a(e,t))}),e}function H(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference),t.placement=X(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=I(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position='absolute',t=W(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function _(t,e){return t.some(function(t){var a=t.name,i=t.enabled;return i&&a===e})}function M(t){for(var e=[!1,'ms','Webkit','Moz','O'],a=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var i=e[o],r=i?''+i+a:t;if('undefined'!=typeof document.body.style[r])return r}return null}function z(){return this.state.isDestroyed=!0,_(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[M('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(t){var e=t.ownerDocument;return e?e.defaultView:window}function q(t,e,a,i){var o='BODY'===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,a,{passive:!0}),o||q(h(r.parentNode),e,a,i),i.push(r)}function F(t,e,a,i){a.updateBound=i,U(t).addEventListener('resize',a.updateBound,{passive:!0});var o=h(t);return q(o,'scroll',a.updateBound,a.scrollParents),a.scrollElement=o,a.eventsEnabled=!0,a}function j(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function K(t,e){return U(t).removeEventListener('resize',e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener('scroll',e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function V(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=K(this.reference,this.state))}function G(t){return''!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Z(t,e){Object.keys(e).forEach(function(a){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(a)&&G(e[a])&&(i='px'),t.style[a]=e[a]+i})}function Q(t,e){Object.keys(e).forEach(function(a){var i=e[a];!1===i?t.removeAttribute(a):t.setAttribute(a,e[a])})}function $(t,e,a){var i=R(t,function(t){var a=t.name;return a===e}),o=!!i&&t.some(function(t){return t.name===a&&t.enabled&&t.order<i.order});if(!o){var r='`'+e+'`';console.warn('`'+a+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return o}function J(t){return'end'===t?'start':'start'===t?'end':t}function tt(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=Jt.indexOf(t),i=Jt.slice(a+1).concat(Jt.slice(0,a));return e?i.reverse():i}function et(t,e,a,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],p=o[2];if(!r)return t;if(0===p.indexOf('%')){var n;switch(p){case'%p':n=a;break;case'%':case'%r':default:n=i;}var s=T(n);return s[e]/100*r}if('vh'===p||'vw'===p){var l;return l='vh'===p?Pt(document.documentElement.clientHeight,window.innerHeight||0):Pt(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function at(t,e,a,i){var o=[0,0],r=-1!==['right','left'].indexOf(i),p=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=p.indexOf(R(p,function(t){return-1!==t.search(/,|\s/)}));p[n]&&-1===p[n].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var s=/\s*,\s*|\s+/,l=-1===n?[p]:[p.slice(0,n).concat([p[n].split(s)[0]]),[p[n].split(s)[1],p.slice(n+1)]];return l=l.map(function(t,i){var o=(1===i?!r:r)?'height':'width',p=!1;return t.reduce(function(t,e){return''===t[t.length-1]&&-1!==['+','-'].indexOf(e)?(t[t.length-1]=e,p=!0,t):p?(t[t.length-1]+=e,p=!1,t):t.concat(e)},[]).map(function(t){return et(t,o,e,a)})}),l.forEach(function(t,e){t.forEach(function(a,i){G(a)&&(o[e]+=a*('-'===t[i-1]?-1:1))})}),o}function it(t){return t.getAttribute('x-placement').replace(/-.+/,'')}function ot(t,e,a){if(!e.getAttribute('x-placement'))return!0;var i=t.clientX,o=t.clientY,r=a.interactiveBorder,p=a.distance,n=e.getBoundingClientRect(),s=it(e),l=r+p,d={top:n.top-o>r,bottom:o-n.bottom>r,left:n.left-i>r,right:i-n.right>r};return'top'===s?d.top=n.top-o>l:'bottom'===s?d.bottom=o-n.bottom>l:'left'===s?d.left=n.left-i>l:'right'===s?d.right=i-n.right>l:void 0,d.top||d.bottom||d.left||d.right}function rt(t,e,a,i){if(!e.length)return'';var o={scale:function(){return 1===e.length?''+e[0]:a?e[0]+', '+e[1]:e[1]+', '+e[0]}(),translate:function(){return 1===e.length?i?-e[0]+'px':e[0]+'px':a?i?e[0]+'px, '+-e[1]+'px':e[0]+'px, '+e[1]+'px':i?-e[1]+'px, '+e[0]+'px':e[1]+'px, '+e[0]+'px'}()};return o[t]}function pt(t,e){if(!t)return'';return e?t:{X:'Y',Y:'X'}[t]}function nt(t,e,a){var i=it(t),o='top'===i||'bottom'===i,p='right'===i||'bottom'===i,n=function(t){var e=a.match(t);return e?e[1]:''},s=function(t){var e=a.match(t);return e?e[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:n(/translate([XY])/),numbers:s(l.translate)},scale:{axis:n(/scale([XY])/),numbers:s(l.scale)}},c=a.replace(l.translate,'translate'+pt(d.translate.axis,o)+'('+rt('translate',d.translate.numbers,o,p)+')').replace(l.scale,'scale'+pt(d.scale.axis,o)+'('+rt('scale',d.scale.numbers,o,p)+')');e.style[r('transform')]=c}function st(t){var e=t.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function lt(t){return-(t-Rt.distance)+'px'}function dt(t){requestAnimationFrame(function(){setTimeout(t,0)})}function ct(t,a){var i=Element.prototype.closest||function(t){for(var a=this;a;){if(e.call(a,t))return a;a=a.parentElement}};return i.call(t,a)}function mt(t,e){return Array.isArray(t)?t[e]:t}function ft(t,e){t.forEach(function(t){t&&t.setAttribute('data-state',e)})}function ht(t,e){t.forEach(function(t){t&&(t.style[r('transitionDuration')]=e+'ms')})}function bt(t){var e=this;if(wt.call(this),!this.state.visible){if(this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),t);var a=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;a?this._internal.showTimeout=setTimeout(function(){e.show()},a):this.show()}}function ut(){var t=this;if(wt.call(this),!!this.state.visible){var e=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;e?this._internal.hideTimeout=setTimeout(function(){t.state.visible&&t.hide()},e):this.hide()}}function yt(){var t=this;return{handleTrigger:function(e){if(!t.state.disabled){var a=Nt.supportsTouch&&Nt.usingTouch&&('mouseenter'===e.type||'focus'===e.type);a&&t.options.touchHold||(t._internal.lastTriggerEvent=e,'click'===e.type&&'persistent'!==t.options.hideOnClick&&t.state.visible?ut.call(t):bt.call(t,e),a&&Nt.iOS&&t.reference.click&&t.reference.click())}},handleMouseleave:function(e){if(!('mouseleave'===e.type&&Nt.supportsTouch&&Nt.usingTouch&&t.options.touchHold)){if(t.options.interactive){var a=ut.bind(t),i=function e(i){var o=ct(i.target,It.REFERENCE),r=ct(i.target,It.POPPER)===t.popper,p=o===t.reference;r||p||ot(i,t.popper,t.options)&&(document.body.removeEventListener('mouseleave',a),document.removeEventListener('mousemove',e),ut.call(t))};return document.body.addEventListener('mouseleave',a),void document.addEventListener('mousemove',i)}ut.call(t)}},handleBlur:function(e){!e.relatedTarget||Nt.usingTouch||ct(e.relatedTarget,It.POPPER)||ut.call(t)}}}function gt(){var t=this,e=this.popper,a=this.reference,i=this.options,o=l(e),p=o.tooltip,n=i.popperOptions,s='round'===i.arrowType?It.ROUND_ARROW:It.ARROW,d=p.querySelector(s),c=_t({placement:i.placement},n||{},{modifiers:_t({},n?n.modifiers:{},{arrow:_t({element:s},n&&n.modifiers?n.modifiers.arrow:{}),flip:_t({enabled:i.flip,padding:i.distance+5,behavior:i.flipBehavior},n&&n.modifiers?n.modifiers.flip:{}),offset:_t({offset:i.offset},n&&n.modifiers?n.modifiers.offset:{})}),onCreate:function(){p.style[it(e)]=lt(i.distance),d&&i.arrowTransform&&nt(e,d,i.arrowTransform)},onUpdate:function(){var t=p.style;t.top='',t.bottom='',t.left='',t.right='',t[it(e)]=lt(i.distance),d&&i.arrowTransform&&nt(e,d,i.arrowTransform)}});return Et.call(this,{target:e,callback:function(){var a=e.style;a[r('transitionDuration')]='0ms',t.popperInstance.update(),dt(function(){a[r('transitionDuration')]=i.updateDuration+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new ee(a,e,c)}function xt(){var t=this,e=this.popper;this.options.appendTo.contains(e)||(this.options.appendTo.appendChild(e),this.popperInstance?(e.style[r('transform')]=null,this.popperInstance.update(),(!this.options.followCursor||Nt.usingTouch)&&this.popperInstance.enableEventListeners()):this.popperInstance=gt.call(this),this.options.followCursor&&!Nt.usingTouch&&(!this._internal.followCursorListener&&vt.call(this),document.addEventListener('mousemove',this._internal.followCursorListener),this.popperInstance.disableEventListeners(),dt(function(){t._internal.followCursorListener(t._internal.lastTriggerEvent)})))}function wt(){clearTimeout(this._internal.showTimeout),clearTimeout(this._internal.hideTimeout)}function vt(){var t=this;this._internal.followCursorListener=function(a){if('focus'!==t._internal.lastTriggerEvent.type){var e,i,o=t.popper,p=t.options.offset,n=it(o),s=St(o.offsetWidth/2),l=St(o.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,m=a.pageX,f=a.pageY;'top'===n?(e=m-s+p,i=f-2*l):'bottom'===n?(e=m-s+p,i=f+10):'left'===n?(e=m-2*s,i=f-l+p):'right'===n?(e=m+5,i=f-l+p):void 0;('top'===n||'bottom'===n)&&(m+d+s+p>c&&(e=c-d-2*s),0>m-d-s+p&&(e=d)),o.style[r('transform')]='translate3d('+e+'px, '+i+'px, 0)'}}}function kt(){var t=this,e=function(){t.popper.style[r('transitionDuration')]=t.options.updateDuration+'ms'},a=function(){t.popper.style[r('transitionDuration')]=''};dt(function i(){t.popperInstance&&t.popperInstance.scheduleUpdate(),e(),t.state.visible?requestAnimationFrame(i):a()})}function Et(t){var e=t.target,a=t.callback,i=t.options;if(window.MutationObserver){var o=new MutationObserver(a);o.observe(e,i),this._internal.mutationObservers.push(o)}}function Tt(t,a){if(!t)return a();var e=l(this.popper),i=e.tooltip,o=function(t,e){e&&i[t+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',e)},r=function t(r){r.target===i&&(o('remove',t),a())};o('remove',this._internal.transitionendListener),o('add',r),this._internal.transitionendListener=r}function Lt(t,e){return t.reduce(function(t,a){var i=re,r=s(a,e.performance?e:o(a,e)),c=r.html,m=r.trigger,f=r.touchHold,h=r.dynamicTitle,b=r.createPopperInstanceOnInit,u=a.getAttribute('title');if(!u&&!c)return t;a.setAttribute('data-tippy',''),a.setAttribute('aria-describedby','tippy-'+i),d(a);var y=p(i,u,r),g=new oe({id:i,reference:a,popper:y,options:r});g.popperInstance=b?gt.call(g):null;var x=yt.call(g);return g.listeners=m.trim().split(' ').reduce(function(t,e){return t.concat(n(e,a,x,f))},[]),h&&Et.call(g,{target:a,callback:function(){var t=l(y),e=t.content,i=a.getAttribute('title');i&&(e.innerHTML=i,d(a))},options:{attributes:!0}}),a._tippy=g,y._reference=a,t.push(g),re++,t},[])}function Ot(t){var e=[].slice.call(document.querySelectorAll(It.POPPER));e.forEach(function(e){var a=e._reference._tippy,i=a.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!t||e!==t.popper)&&a.hide()})}function Ct(){var t=function(){Nt.usingTouch||(Nt.usingTouch=!0,Nt.iOS&&document.body.classList.add('tippy-touch'),Nt.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',a),Nt.onUserInputChange('touch'))},a=function(){var t;return function(){var e=performance.now();20>e-t&&(Nt.usingTouch=!1,document.removeEventListener('mousemove',a),!Nt.iOS&&document.body.classList.remove('tippy-touch'),Nt.onUserInputChange('mouse')),t=e}}();document.addEventListener('click',function(t){if(!(t.target instanceof Element))return Ot();var e=ct(t.target,It.REFERENCE),a=ct(t.target,It.POPPER);if(!(a&&a._reference._tippy.options.interactive)){if(e){var i=e._tippy.options;if(!i.multiple&&Nt.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return Ot(e._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}Ot()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,a=t.activeElement;a&&a.blur&&e.call(a,It.REFERENCE)&&a.blur()}),!Nt.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function At(e,i){return Nt.supported&&!Nt._eventListenersBound&&(Ct(),Nt._eventListenersBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,a){e.attributes[t]=a},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),i=_t({},Rt,i),{selector:e,options:i,tooltips:Nt.supported?Lt(a(e),i):[],destroyAll:function(){this.tooltips.forEach(function(t){return t.destroy()})}}}var St=Math.round,Yt=Math.min,Xt=Math.floor,Pt=Math.max,Dt='undefined'!=typeof window,Nt={};Dt&&(Nt.supported='requestAnimationFrame'in window,Nt.supportsTouch='ontouchstart'in window,Nt.usingTouch=!1,Nt.dynamicInputDetection=!0,Nt.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Nt.onUserInputChange=function(){},Nt._eventListenersBound=!1);for(var It={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Rt={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Bt=Nt.supported&&Object.keys(Rt),Wt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},Ht=function(){function t(t,e){for(var a,o=0;o<e.length;o++)a=e[o],a.enumerable=a.enumerable||!1,a.configurable=!0,('value'in a)&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),_t=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var i in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Mt='undefined'!=typeof window&&'undefined'!=typeof document,zt=['Edge','Trident','Firefox'],Ut=0,qt=0;qt<zt.length;qt+=1)if(Mt&&0<=navigator.userAgent.indexOf(zt[qt])){Ut=1;break}var i,Ft=Mt&&window.Promise,jt=Ft?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Ut))}},Kt=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},Vt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},Gt=function(){function t(t,e){for(var a,o=0;o<e.length;o++)a=e[o],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),Zt=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},Qt=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var i in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$t=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],Jt=$t.slice(3),te={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ee=function(){function t(e,a){var i=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Vt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=jt(this.update.bind(this)),this.options=Qt({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=a&&a.jquery?a[0]:a,this.options.modifiers={},Object.keys(Qt({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=Qt({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Qt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&c(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Gt(t,[{key:'update',value:function(){return H.call(this)}},{key:'destroy',value:function(){return z.call(this)}},{key:'enableEventListeners',value:function(){return j.call(this)}},{key:'disableEventListeners',value:function(){return V.call(this)}}]),t}();ee.Utils=('undefined'==typeof window?global:window).PopperUtils,ee.placements=$t,ee.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,a=e.split('-')[0],i=e.split('-')[1];if(i){var o=t.offsets,r=o.reference,p=o.popper,n=-1!==['bottom','top'].indexOf(a),s=n?'left':'top',l=n?'width':'height',d={start:Zt({},s,r[s]),end:Zt({},s,r[s]+r[l]-p[l])};t.offsets.popper=Qt({},p,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var a,i=e.offset,o=t.placement,r=t.offsets,p=r.popper,n=r.reference,s=o.split('-')[0];return a=G(+i)?[+i,0]:at(i,p,n,s),'left'===s?(p.top+=a[0],p.left-=a[1]):'right'===s?(p.top+=a[0],p.left+=a[1]):'top'===s?(p.left+=a[0],p.top-=a[1]):'bottom'===s&&(p.left+=a[0],p.top+=a[1]),t.popper=p,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var a=e.boundariesElement||b(t.instance.popper);t.instance.reference===a&&(a=b(a));var i=S(t.instance.popper,t.instance.reference,e.padding,a);e.boundaries=i;var o=e.priority,r=t.offsets.popper,p={primary:function(t){var a=r[t];return r[t]<i[t]&&!e.escapeWithReference&&(a=Pt(r[t],i[t])),Zt({},t,a)},secondary:function(t){var a='right'===t?'left':'top',o=r[a];return r[t]>i[t]&&!e.escapeWithReference&&(o=Yt(r[a],i[t]-('right'===t?r.width:r.height))),Zt({},a,o)}};return o.forEach(function(t){var e=-1===['left','top'].indexOf(t)?'secondary':'primary';r=Qt({},r,p[e](t))}),t.offsets.popper=r,t},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,a=e.popper,i=e.reference,o=t.placement.split('-')[0],r=Xt,p=-1!==['top','bottom'].indexOf(o),n=p?'right':'bottom',s=p?'left':'top',l=p?'width':'height';return a[n]<r(i[s])&&(t.offsets.popper[s]=r(i[s])-a[l]),a[s]>r(i[n])&&(t.offsets.popper[s]=r(i[n])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var a;if(!$(t.instance.modifiers,'arrow','keepTogether'))return t;var i=e.element;if('string'==typeof i){if(i=t.instance.popper.querySelector(i),!i)return t;}else if(!t.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),t;var o=t.placement.split('-')[0],r=t.offsets,p=r.popper,n=r.reference,s=-1!==['left','right'].indexOf(o),l=s?'height':'width',d=s?'Top':'Left',c=d.toLowerCase(),f=s?'left':'top',h=s?'bottom':'right',b=D(i)[l];n[h]-b<p[c]&&(t.offsets.popper[c]-=p[c]-(n[h]-b)),n[c]+b>p[h]&&(t.offsets.popper[c]+=n[c]+b-p[h]),t.offsets.popper=T(t.offsets.popper);var u=n[c]+n[l]/2-b/2,y=m(t.instance.popper),g=parseFloat(y['margin'+d],10),x=parseFloat(y['border'+d+'Width'],10),w=u-t.offsets.popper[c]-g-x;return w=Pt(Yt(p[l]-b,w),0),t.arrowElement=i,t.offsets.arrow=(a={},Zt(a,c,St(w)),Zt(a,f,''),a),t},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(t,e){if(_(t.instance.modifiers,'inner'))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var a=S(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split('-')[0],o=N(i),r=t.placement.split('-')[1]||'',p=[];switch(e.behavior){case te.FLIP:p=[i,o];break;case te.CLOCKWISE:p=tt(i);break;case te.COUNTERCLOCKWISE:p=tt(i,!0);break;default:p=e.behavior;}return p.forEach(function(n,s){if(i!==n||p.length===s+1)return t;i=t.placement.split('-')[0],o=N(i);var l=t.offsets.popper,d=t.offsets.reference,c=Xt,m='left'===i&&c(l.right)>c(d.left)||'right'===i&&c(l.left)<c(d.right)||'top'===i&&c(l.bottom)>c(d.top)||'bottom'===i&&c(l.top)<c(d.bottom),f=c(l.left)<c(a.left),h=c(l.right)>c(a.right),b=c(l.top)<c(a.top),u=c(l.bottom)>c(a.bottom),y='left'===i&&f||'right'===i&&h||'top'===i&&b||'bottom'===i&&u,g=-1!==['top','bottom'].indexOf(i),x=!!e.flipVariations&&(g&&'start'===r&&f||g&&'end'===r&&h||!g&&'start'===r&&b||!g&&'end'===r&&u);(m||y||x)&&(t.flipped=!0,(m||y)&&(i=p[s+1]),x&&(r=J(r)),t.placement=i+(r?'-'+r:''),t.offsets.popper=Qt({},t.offsets.popper,I(t.instance.popper,t.offsets.reference,t.placement)),t=W(t.instance.modifiers,t,'flip'))}),t},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,a=e.split('-')[0],i=t.offsets,o=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(a),n=-1===['top','left'].indexOf(a);return o[p?'left':'top']=r[a]-(n?o[p?'width':'height']:0),t.placement=N(e),t.offsets.popper=T(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!$(t.instance.modifiers,'hide','preventOverflow'))return t;var e=t.offsets.reference,a=R(t.instance.modifiers,function(t){return'preventOverflow'===t.name}).boundaries;if(e.bottom<a.top||e.left>a.right||e.top>a.bottom||e.right<a.left){if(!0===t.hide)return t;t.hide=!0,t.attributes['x-out-of-boundaries']=''}else{if(!1===t.hide)return t;t.hide=!1,t.attributes['x-out-of-boundaries']=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var a=e.x,i=e.y,o=t.offsets.popper,r=R(t.instance.modifiers,function(t){return'applyStyle'===t.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var p,n,s=void 0===r?e.gpuAcceleration:r,l=b(t.instance.popper),d=L(l),c={position:o.position},m={left:Xt(o.left),top:Xt(o.top),bottom:Xt(o.bottom),right:Xt(o.right)},f='bottom'===a?'top':'bottom',h='right'===i?'left':'right',u=M('transform');if(n='bottom'==f?-d.height+m.bottom:m.top,p='right'==h?-d.width+m.right:m.left,s&&u)c[u]='translate3d('+p+'px, '+n+'px, 0)',c[f]=0,c[h]=0,c.willChange='transform';else{var y='bottom'==f?-1:1,g='right'==h?-1:1;c[f]=n*y,c[h]=p*g,c.willChange=f+', '+h}var x={"x-placement":t.placement};return t.attributes=Qt({},x,t.attributes),t.styles=Qt({},c,t.styles),t.arrowStyles=Qt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(t){return Z(t.instance.popper,t.styles),Q(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&Z(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,a,i,o){var r=P(o,e,t),p=X(a.placement,r,e,t,a.modifiers.flip.boundariesElement,a.modifiers.flip.padding);return e.setAttribute('x-placement',p),Z(e,{position:'absolute'}),a},gpuAcceleration:void 0}}};var ae={};if(Dt){var ie=Element.prototype;ae=ie.matches||ie.matchesSelector||ie.webkitMatchesSelector||ie.mozMatchesSelector||ie.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),a=e.length;0<=--a&&e.item(a)!==this;);return-1<a}}var e=ae,oe=function(){function t(e){for(var a in Wt(this,t),e)this[a]=e[a];this.state={destroyed:!1,visible:!1,enabled:!0},this._internal={mutationObservers:[]}}return Ht(t,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(t){var e=this;if(!this.state.destroyed&&this.state.enabled){var a=this.popper,i=this.reference,o=this.options,p=l(a),n=p.tooltip,s=p.backdrop,d=p.content;return i.refObj||document.body.contains(i)?void(o.onShow.call(a),t=mt(void 0===t?o.duration:t,0),ht([a,n,s],0),xt.call(this),a.style.visibility='visible',this.state.visible=!0,dt(function(){e.state.visible&&((!o.followCursor||Nt.usingTouch)&&(e.popperInstance.update(),ht([a],o.updateDuration)),ht([n,s,s?d:null],t),s&&getComputedStyle(s)[r('transform')],o.interactive&&i.classList.add('tippy-active'),o.sticky&&kt.call(e),ft([n,s],'visible'),Tt.call(e,t,function(){o.updateDuration||n.classList.add('tippy-notransition'),o.interactive&&a.focus(),o.onShown.call(a)}))})):void this.destroy()}}},{key:'hide',value:function(t){var e=this;if(!this.state.destroyed&&this.state.enabled){var a=this.popper,i=this.reference,o=this.options,r=l(a),p=r.tooltip,n=r.backdrop,s=r.content;o.onHide.call(a),t=mt(void 0===t?o.duration:t,1),o.updateDuration||p.classList.remove('tippy-notransition'),o.interactive&&i.classList.remove('tippy-active'),a.style.visibility='hidden',this.state.visible=!1,ht([p,n,n?s:null],t),ft([p,n],'hidden'),o.interactive&&-1<o.trigger.indexOf('click')&&st(i)&&i.focus(),dt(function(){Tt.call(e,t,function(){e.state.visible||!o.appendTo.contains(a)||(e.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',e._internal.followCursorListener),o.appendTo.removeChild(a),o.onHidden.call(a))})})}}},{key:'destroy',value:function(){var t=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(e){t.reference.removeEventListener(e.event,e.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(e){t.reference.removeAttribute(e)}),this.popperInstance&&this.popperInstance.destroy(),this._internal.mutationObservers.forEach(function(t){t.disconnect()}),this.state.destroyed=!0)}}]),t}(),re=1;return At.browser=Nt,At.defaults=Rt,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'';if(Dt){var e=document.head||document.querySelector('head'),a=document.createElement('style');a.type='text/css',e.insertBefore(a,e.firstChild),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}('.tippy-touch{cursor:pointer!important}.tippy-notransition{-webkit-transition:none!important;transition:none!important}.tippy-popper{max-width:350px;-webkit-perspective:700px;perspective:700px;z-index:9999;outline:0;-webkit-transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper[data-html]{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{width:23px;height:23px;fill:#333;bottom:-15px;margin:0 6px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 100%;transform-origin:0 100%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-50%,25%);transform:scale(5.5) translate(-50%,25%);opacity:1}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1) translate(-50%,25%);transform:scale(1) translate(-50%,25%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{width:23px;height:23px;fill:#333;top:-15px;margin:0 6px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{-webkit-transform:rotate(0);transform:rotate(0)}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -100%;transform-origin:0 -100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-50%,-125%);transform:scale(5.5) translate(-50%,-125%);opacity:1}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1) translate(-50%,-125%);transform:scale(1) translate(-50%,-125%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:30% 0 0 30%}.tippy-popper[x-placement^=left] .tippy-roundarrow{width:23px;height:23px;fill:#333;right:-15px;margin:4px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:100% 0;transform-origin:100% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(33%,-50%);transform:scale(5.5) translate(33%,-50%);opacity:1}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1.5) translate(33%,-50%);transform:scale(1.5) translate(33%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 30% 30% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{width:23px;height:23px;fill:#333;left:-15px;margin:4px 0}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-100% 0;transform-origin:-100% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-133%,-50%);transform:scale(5.5) translate(-133%,-50%);opacity:1}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1.5) translate(-133%,-50%);transform:scale(1.5) translate(-133%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.9rem;padding:.3rem .6rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip[data-size=small]{padding:.2rem .4rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.4rem .8rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-animatefill] .tippy-content{-webkit-transition:-webkit-clip-path cubic-bezier(.46,.1,.52,.98);transition:-webkit-clip-path cubic-bezier(.46,.1,.52,.98);transition:clip-path cubic-bezier(.46,.1,.52,.98);transition:clip-path cubic-bezier(.46,.1,.52,.98),-webkit-clip-path cubic-bezier(.46,.1,.52,.98)}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(.53,2,.36,.85);transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip[data-inertia][data-state=hidden]{-webkit-transition-timing-function:ease;transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-backdrop{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:26%;left:50%;top:50%;z-index:-1;-webkit-transition:all cubic-bezier(.46,.1,.52,.98);transition:all cubic-bezier(.46,.1,.52,.98)}.tippy-backdrop:after{content:"";float:left;padding-top:100%}body:not(.tippy-touch) .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(100% 100% at 50% 50%);clip-path:ellipse(100% 100% at 50% 50%)}body:not(.tippy-touch) .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(5% 50% at 50% 50%);clip-path:ellipse(5% 50% at 50% 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=right] .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(135% 100% at 0 50%);clip-path:ellipse(135% 100% at 0 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=right] .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(25% 100% at 0 50%);clip-path:ellipse(25% 100% at 0 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=left] .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(135% 100% at 100% 50%);clip-path:ellipse(135% 100% at 100% 50%)}body:not(.tippy-touch) .tippy-popper[x-placement=left] .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(25% 100% at 100% 50%);clip-path:ellipse(25% 100% at 100% 50%)}@media (max-width:360px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}'),At}); |
@@ -1,1 +0,1 @@ | ||
(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.tippy=t()})(this,function(){'use strict';function t(e){return'[object Object]'===Object.prototype.toString.call(e)}function o(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(e){return[]}}function r(e,t){var o=Ie.reduce(function(o,i){var r=e.getAttribute('data-tippy-'+i.toLowerCase())||t[i];return'false'===r&&(r=!1),'true'===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),'string'==typeof r&&'['===r.trim().charAt(0)&&(r=JSON.parse(r)),o[i]=r,o},{});return He({},t,o)}function n(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function s(e,t,o){var i=o.placement,r=o.distance,s=o.arrow,a=o.arrowType,p=o.arrowTransform,l=o.animateFill,d=o.inertia,c=o.animation,f=o.size,m=o.theme,h=o.html,u=o.zIndex,g=o.interactive,b=o.maxWidth,y=document.createElement('div');y.setAttribute('class','tippy-popper'),y.setAttribute('role','tooltip'),y.setAttribute('id','tippy-'+e),y.style.zIndex=u,y.style.maxWidth=b;var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip'),v.setAttribute('data-size',f),v.setAttribute('data-animation',c),v.setAttribute('data-state','hidden'),m.split(' ').forEach(function(e){v.classList.add(e+'-theme')}),s){var E=document.createElement('div');E.style[n('transform')]=p,'round'===a?(E.classList.add('tippy-roundarrow'),E.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):E.classList.add('tippy-arrow'),v.appendChild(E)}if(l){v.setAttribute('data-animatefill','');var w=document.createElement('div');w.setAttribute('data-state','hidden'),w.classList.add('tippy-backdrop'),v.appendChild(w)}d&&v.setAttribute('data-inertia',''),g&&v.setAttribute('data-interactive','');var L=document.createElement('div');if(L.setAttribute('class','tippy-content'),h){var T;h instanceof Element?(L.appendChild(h),T='#'+h.id||'tippy-html-template'):(L.innerHTML=document.querySelector(h).innerHTML,T=h),y.setAttribute('data-html',''),g&&y.setAttribute('tabindex','-1'),v.setAttribute('data-template-id',T)}else L.innerHTML=t;return v.appendChild(L),y.appendChild(v),y}function a(e){return e&&'[object Function]'==={}.toString.call(e)}function p(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function l(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var t=p(e),o=t.overflow,i=t.overflowX,r=t.overflowY;return /(auto|scroll)/.test(o+r+i)?e:d(l(e))}function c(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?-1!==['TD','TABLE'].indexOf(t.nodeName)&&'static'===p(t,'position')?c(t):t:e?e.ownerDocument.documentElement:document.documentElement}function f(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||c(e.firstElementChild)===e)}function m(e){return null===e.parentNode?e:m(e.parentNode)}function h(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,r=o?t:e,n=document.createRange();n.setStart(i,0),n.setEnd(r,0);var s=n.commonAncestorContainer;if(e!==s&&t!==s||i.contains(r))return f(s)?s:c(s);var a=m(e);return a.host?h(a.host,t):h(e,m(t).host)}function u(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var r=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||r;return n[o]}return e[o]}function g(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=u(t,'top'),r=u(t,'left'),n=o?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=r*n,e.right+=r*n,e}function b(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+i+'Width'],10)}function y(e,t,o,i){return Se(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],je()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function v(){var e=document.body,t=document.documentElement,o=je()&&getComputedStyle(t);return{height:y('Height',e,t,o),width:y('Width',e,t,o)}}function E(e){return Ve({},e,{right:e.left+e.width,bottom:e.top+e.height})}function w(e){var t={};if(je())try{t=e.getBoundingClientRect();var o=u(e,'top'),i=u(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n='HTML'===e.nodeName?v():{},s=n.width||e.clientWidth||r.right-r.left,a=n.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,d=e.offsetHeight-a;if(l||d){var c=p(e);l-=b(c,'x'),d-=b(c,'y'),r.width-=l,r.height-=d}return E(r)}function L(e,t){var o=je(),i='HTML'===t.nodeName,r=w(e),n=w(t),s=d(e),a=p(t),l=parseFloat(a.borderTopWidth,10),c=parseFloat(a.borderLeftWidth,10),f=E({top:r.top-n.top-l,left:r.left-n.left-c,width:r.width,height:r.height});if(f.marginTop=0,f.marginLeft=0,!o&&i){var m=parseFloat(a.marginTop,10),h=parseFloat(a.marginLeft,10);f.top-=l-m,f.bottom-=l-m,f.left-=c-h,f.right-=c-h,f.marginTop=m,f.marginLeft=h}return(o?t.contains(s):t===s&&'BODY'!==s.nodeName)&&(f=g(f,t)),f}function T(e){var t=e.ownerDocument.documentElement,o=L(e,t),i=Se(t.clientWidth,window.innerWidth||0),r=Se(t.clientHeight,window.innerHeight||0),n=u(t),s=u(t,'left'),a={top:n-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return E(a)}function O(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===p(e,'position')||O(l(e))}function x(e,t,o,i){var r={top:0,left:0},n=h(e,t);if('viewport'===i)r=T(n);else{var s;'scrollParent'===i?(s=d(l(t)),'BODY'===s.nodeName&&(s=e.ownerDocument.documentElement)):'window'===i?s=e.ownerDocument.documentElement:s=i;var a=L(s,n);if('HTML'===s.nodeName&&!O(n)){var p=v(),c=p.height,f=p.width;r.top+=a.top-a.marginTop,r.bottom=c+a.top,r.left+=a.left-a.marginLeft,r.right=f+a.left}else r=a}return r.left+=o,r.top+=o,r.right-=o,r.bottom-=o,r}function k(e){var t=e.width,o=e.height;return t*o}function A(e,t,o,i,r){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var s=x(o,i,n,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map(function(e){return Ve({key:e},a[e],{area:k(a[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),d=0<l.length?l[0].key:p[0].key,c=e.split('-')[1];return d+(c?'-'+c:'')}function C(e,t,o){var i=h(t,o);return L(o,i)}function S(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),r={width:e.offsetWidth+i,height:e.offsetHeight+o};return r}function P(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function D(e,t,o){o=o.split('-')[0];var i=S(e),r={width:i.width,height:i.height},n=-1!==['right','left'].indexOf(o),s=n?'top':'left',a=n?'left':'top',p=n?'height':'width',l=n?'width':'height';return r[s]=t[s]+t[p]/2-i[p]/2,r[a]=o===a?t[a]-i[l]:t[P(a)],r}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=N(e,function(e){return e[t]===o});return e.indexOf(i)}function I(e,t,o){var i=void 0===o?e:e.slice(0,R(e,'name',o));return i.forEach(function(e){e['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var o=e['function']||e.fn;e.enabled&&a(o)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=o(t,e))}),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function H(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function M(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[H('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function _(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,o,i){var r='BODY'===e.nodeName,n=r?e.ownerDocument.defaultView:e;n.addEventListener(t,o,{passive:!0}),r||U(d(n.parentNode),t,o,i),i.push(n)}function Y(e,t,o,i){o.updateBound=i,_(e).addEventListener('resize',o.updateBound,{passive:!0});var r=d(e);return U(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function F(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function q(e,t){return _(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function j(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=q(this.reference,this.state))}function z(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&z(t[o])&&(i='px'),e.style[o]=t[o]+i})}function X(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function V(e,t,o){var i=N(e,function(e){var o=e.name;return o===t}),r=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!r){var n='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+n+' modifier in order to work, be sure to include it before '+n+'!')}return r}function G(e){return'end'===e?'start':'start'===e?'end':e}function Z(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=Ze.indexOf(e),i=Ze.slice(o+1).concat(Ze.slice(0,o));return t?i.reverse():i}function J(e,t,o,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+r[1],s=r[2];if(!n)return e;if(0===s.indexOf('%')){var a;switch(s){case'%p':a=o;break;case'%':case'%r':default:a=i;}var p=E(a);return p[t]/100*n}if('vh'===s||'vw'===s){var l;return l='vh'===s?Se(document.documentElement.clientHeight,window.innerHeight||0):Se(document.documentElement.clientWidth,window.innerWidth||0),l/100*n}return n}function Q(e,t,o,i){var r=[0,0],n=-1!==['right','left'].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(N(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var p=/\s*,\s*|\s+/,l=-1===a?[s]:[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1],s.slice(a+1)]];return l=l.map(function(e,i){var r=(1===i?!n:n)?'height':'width',s=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return J(e,r,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){z(o)&&(r[t]+=o*('-'===e[i-1]?-1:1))})}),r}function $(e,t,o,i){if(!t.length)return'';var r={scale:function(){return 1===t.length?''+t[0]:o?t[0]+', '+t[1]:t[1]+', '+t[0]}(),translate:function(){return 1===t.length?i?-t[0]+'px':t[0]+'px':o?i?t[0]+'px, '+-t[1]+'px':t[0]+'px, '+t[1]+'px':i?-t[1]+'px, '+t[0]+'px':t[1]+'px, '+t[0]+'px'}()};return r[e]}function ee(e,t){if(!e)return'';return t?e:{X:'Y',Y:'X'}[e]}function te(e){return e.getAttribute('x-placement').replace(/-.+/,'')}function oe(e,t,o){var i=te(e),r='top'===i||'bottom'===i,s='right'===i||'bottom'===i,a=function(e){var t=o.match(e);return t?t[1]:''},p=function(e){var t=o.match(e);return t?t[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:a(/translate([XY])/),numbers:p(l.translate)},scale:{axis:a(/scale([XY])/),numbers:p(l.scale)}},c=o.replace(l.translate,'translate'+ee(d.translate.axis,r)+'('+$('translate',d.translate.numbers,r,s)+')').replace(l.scale,'scale'+ee(d.scale.axis,r)+'('+$('scale',d.scale.numbers,r,s)+')');t.style[n('transform')]=c}function ie(e){requestAnimationFrame(function(){setTimeout(e,0)})}function re(e){return{tooltip:e.querySelector(Ne.TOOLTIP),backdrop:e.querySelector(Ne.BACKDROP),content:e.querySelector(Ne.CONTENT)}}function ne(e){return-(e-Re.distance)+'px'}function se(e){var t=e.tippy,o=e.target,i=e.callback,r=e.options;if(window.MutationObserver){var n=new MutationObserver(i);n.observe(o,r),t._mutationObservers.push(n)}}function ae(e){var t=e.reference,o=e.popper,i=e.options,r=i.placement,s=i.popperOptions,a=i.offset,p=i.distance,l=i.updateDuration,d=i.flip,c=i.flipBehavior,f=i.arrowType,m=i.arrowTransform,h=i.sticky,u=re(o),g=u.tooltip,b='round'===f?Ne.ROUND_ARROW:Ne.ARROW,y=g.querySelector(b),v=He({placement:r},s||{},{modifiers:He({},s?s.modifiers:{},{arrow:He({element:b},s&&s.modifiers?s.modifiers.arrow:{}),flip:He({enabled:d,padding:p+5,behavior:c},s&&s.modifiers?s.modifiers.flip:{}),offset:He({offset:a},s&&s.modifiers?s.modifiers.offset:{})}),onCreate:function(){g.style[te(o)]=ne(p),y&&m&&oe(o,y,m)},onUpdate:function(){var e=g.style;e.top='',e.bottom='',e.left='',e.right='',e[te(o)]=ne(p),y&&m&&oe(o,y,m)}});return se({tippy:e,target:o,callback:function(){var t=o.style;t[n('transitionDuration')]='0ms',e.popperInstance.update(),ie(function(){t[n('transitionDuration')]=l+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new Qe(t,o,v)}function pe(e,t,o,i){var r=[];return'manual'===e?r:(t.addEventListener(e,o.handleTrigger),r.push({event:e,handler:o.handleTrigger}),'mouseenter'===e&&(De.supportsTouch&&i&&(t.addEventListener('touchstart',o.handleTrigger),r.push({event:'touchstart',handler:o.handleTrigger}),t.addEventListener('touchend',o.handleMouseleave),r.push({event:'touchend',handler:o.handleMouseleave})),t.addEventListener('mouseleave',o.handleMouseleave),r.push({event:'mouseleave',handler:o.handleMouseleave})),'focus'===e&&(t.addEventListener('blur',o.handleBlur),r.push({event:'blur',handler:o.handleBlur})),r)}function le(t,o){var i=Element.prototype.closest||function(t){for(var o=this;o;){if(e.call(o,t))return o;o=o.parentElement}};return i.call(t,o)}function de(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,r=e.clientY,n=o.interactiveBorder,s=o.distance,a=t.getBoundingClientRect(),p=te(t),l=n+s,d={top:a.top-r>n,bottom:r-a.bottom>n,left:a.left-i>n,right:i-a.right>n};return'top'===p?d.top=a.top-r>l:'bottom'===p?d.bottom=r-a.bottom>l:'left'===p?d.left=a.left-i>l:'right'===p?d.right=i-a.right>l:void 0,d.top||d.bottom||d.left||d.right}function ce(e,t){var o,i,r=e.popper,n=e.reference,s=e.options,a=s.delay,p=s.duration,l=s.interactive,d=s.interactiveBorder,c=s.hideOnClick,f=s.trigger,m=s.touchHold,h=function(){clearTimeout(o),clearTimeout(i)},u=function(){if(h(),!e.state.visible){var t=Array.isArray(a)?a[0]:a;a?o=setTimeout(function(){return e.show()},t):e.show()}},g=function(t){e.options.wait?e.options.wait.call(r,u,t):u()},b=function(){if(h(),!!e.state.visible){var t=Array.isArray(a)?a[1]:a;a?i=setTimeout(function(){e.state.visible&&e.hide()},t):e.hide()}};return{handleTrigger:function(t){if(!e.state.disabled){var o=De.supportsTouch&&De.usingTouch&&('mouseenter'===t.type||'focus'===t.type);if(!(o&&m)){e._lastTriggerEvent=t.type;var i='click'===t.type;i&&e.state.visible&&'persistent'!==c?b():g(t),o&&De.iOS&&n.click&&n.click()}}},handleMouseleave:function(e){if(!('mouseleave'===e.type&&De.supportsTouch&&De.usingTouch&&m)){if(l){var o=function e(o){var i=le(o.target,Ne.REFERENCE),s=le(o.target,Ne.POPPER)===r;s||i===n||de(o,r,t)&&(document.body.removeEventListener('mouseleave',b),document.removeEventListener('mousemove',e),b())};return document.body.addEventListener('mouseleave',b),void document.addEventListener('mousemove',o)}b()}},handleBlur:function(e){!e.relatedTarget||De.usingTouch||le(e.relatedTarget,Ne.POPPER)||b()}}}function fe(e,t){return t.arrow&&(t.animateFill=!1),t.appendTo&&'function'==typeof t.appendTo&&(t.appendTo=t.appendTo()),'function'==typeof t.html&&(t.html=t.html(e)),t}function me(e){var t=e.getAttribute('title');t&&e.setAttribute('data-original-title',t),e.removeAttribute('title')}function he(t){var e=function(o){if('focus'!==t._lastTriggerEvent){var e,i,r=t.popper,s=t.options.offset,a=te(r),p=ke(r.offsetWidth/2),l=ke(r.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,f=o.pageX,m=o.pageY;'top'===a?(e=f-p+s,i=m-2*l):'bottom'===a?(e=f-p+s,i=m+10):'left'===a?(e=f-2*p,i=m-l+s):'right'===a?(e=f+5,i=m-l+s):void 0;('top'===a||'bottom'===a)&&(f+d+p+s>c&&(e=c-d-2*p),0>f-d-p+s&&(e=d)),r.style[n('transform')]='translate3d('+e+'px, '+i+'px, 0)'}};return t._followCursorListener=e,e}function ue(e){var t=e.popper,o=e.reference,i=e.options,r=e.popperInstance;i.appendTo.contains(t)||(i.appendTo.appendChild(t),r?(t.style[n('transform')]=null,r.update(),(!i.followCursor||De.usingTouch)&&r.enableEventListeners()):r=e.popperInstance=ae(e),i.followCursor&&!De.usingTouch&&(document.addEventListener('mousemove',he(e)),r.disableEventListeners()))}function ge(e){var t=function(){e.popper.style[n('transitionDuration')]=e.options.updateDuration+'ms'},o=function(){e.popper.style[n('transitionDuration')]=''};ie(function i(){e.popperInstance&&e.popperInstance.scheduleUpdate(),t(),e.state.visible?requestAnimationFrame(i):o()})}function be(e,t,o){if(!t)return o();var i=re(e.popper),r=i.tooltip,n=function(e,t){t&&r[e+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',t)},s=function t(i){i.target===r&&(n('remove',t),o())};n('remove',e._transitionendListener),n('add',s),e._transitionendListener=s}function ye(e){var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function ve(e,t){return Array.isArray(e)?e[t]:e}function Ee(e,t){e.forEach(function(e){e&&e.setAttribute('data-state',t)})}function we(e,t){e.forEach(function(e){e&&(e.style[n('transitionDuration')]=t+'ms')})}function Le(e,t){return e.reduce(function(e,o){var i=ot,n=fe(o,t.performance?t:r(o,t)),a=n.html,p=n.trigger,l=n.touchHold,d=n.dynamicTitle,c=n.createPopperInstanceOnInit,f=o.getAttribute('title');if(!f&&!a)return e;o.setAttribute('data-tippy',''),o.setAttribute('aria-describedby','tippy-'+i),me(o);var m=s(i,f,n),h=new tt({id:i,reference:o,popper:m,options:n,_mutationObservers:[]});h.popperInstance=c?ae(h):null;var u=ce(h,n);return h.listeners=p.trim().split(' ').reduce(function(e,t){return e.concat(pe(t,o,u,l))},[]),d&&se({tippy:h,target:o,callback:function(){var e=re(m),t=e.content,i=o.getAttribute('title');i&&(t.innerHTML=i,me(o))},options:{attributes:!0}}),o._tippy=h,m._reference=o,e.push(h),ot++,e},[])}function Te(e){var t=[].slice.call(document.querySelectorAll(Ne.POPPER));t.forEach(function(t){var o=t._reference._tippy,i=o.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!e||t!==e.popper)&&o.hide()})}function Oe(){var t=function(){De.usingTouch||(De.usingTouch=!0,De.iOS&&document.body.classList.add('tippy-touch'),De.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',o),De.onUserInputChange('touch'))},o=function(){var e;return function(){var t=performance.now();20>t-e&&(De.usingTouch=!1,document.removeEventListener('mousemove',o),!De.iOS&&document.body.classList.remove('tippy-touch'),De.onUserInputChange('mouse')),e=t}}();document.addEventListener('click',function(e){if(!(e.target instanceof Element))return Te();var t=le(e.target,Ne.REFERENCE),o=le(e.target,Ne.POPPER);if(!(o&&o._reference._tippy.options.interactive)){if(t){var i=t._tippy.options;if(!i.multiple&&De.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return Te(t._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}Te()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,o=t.activeElement;o&&o.blur&&e.call(o,Ne.REFERENCE)&&o.blur()}),!De.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function xe(e,i){return De.supported&&!De._eventListenersBound&&(Oe(),De._eventListenersBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,o){e.attributes[t]=o},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),i=He({},Re,i),{selector:e,options:i,tooltips:De.supported?Le(o(e),i):[],destroyAll:function(){this.tooltips.forEach(function(e){return e.destroy()})}}}var ke=Math.round,Ae=Math.min,Ce=Math.floor,Se=Math.max,Pe='undefined'!=typeof window,De={};Pe&&(De.supported='requestAnimationFrame'in window,De.supportsTouch='ontouchstart'in window,De.usingTouch=!1,De.dynamicInputDetection=!0,De.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,De.onUserInputChange=function(){},De._eventListenersBound=!1);for(var Ne={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Re={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Ie=De.supported&&Object.keys(Re),Be=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},We=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,('value'in o)&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),He=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Me='undefined'!=typeof window&&'undefined'!=typeof document,_e=['Edge','Trident','Firefox'],Ue=0,Ye=0;Ye<_e.length;Ye+=1)if(Me&&0<=navigator.userAgent.indexOf(_e[Ye])){Ue=1;break}var i,Fe=Me&&window.Promise,qe=Fe?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ue))}},je=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ze=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Ke=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Xe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},Ve=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ge=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],Ze=Ge.slice(3),Je={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Qe=function(){function e(t,o){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ze(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=qe(this.update.bind(this)),this.options=Ve({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=o&&o.jquery?o[0]:o,this.options.modifiers={},Object.keys(Ve({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=Ve({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Ve({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return Ke(e,[{key:'update',value:function(){return B.call(this)}},{key:'destroy',value:function(){return M.call(this)}},{key:'enableEventListeners',value:function(){return F.call(this)}},{key:'disableEventListeners',value:function(){return j.call(this)}}]),e}();Qe.Utils=('undefined'==typeof window?global:window).PopperUtils,Qe.placements=Ge,Qe.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var r=e.offsets,n=r.reference,s=r.popper,a=-1!==['bottom','top'].indexOf(o),p=a?'left':'top',l=a?'width':'height',d={start:Xe({},p,n[p]),end:Xe({},p,n[p]+n[l]-s[l])};e.offsets.popper=Ve({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,r=e.placement,n=e.offsets,s=n.popper,a=n.reference,p=r.split('-')[0];return o=z(+i)?[+i,0]:Q(i,s,a,p),'left'===p?(s.top+=o[0],s.left-=o[1]):'right'===p?(s.top+=o[0],s.left+=o[1]):'top'===p?(s.left+=o[0],s.top-=o[1]):'bottom'===p&&(s.left+=o[0],s.top+=o[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||c(e.instance.popper);e.instance.reference===o&&(o=c(o));var i=x(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var r=t.priority,n=e.offsets.popper,s={primary:function(e){var o=n[e];return n[e]<i[e]&&!t.escapeWithReference&&(o=Se(n[e],i[e])),Xe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',r=n[o];return n[e]>i[e]&&!t.escapeWithReference&&(r=Ae(n[o],i[e]-('right'===e?n.width:n.height))),Xe({},o,r)}};return r.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';n=Ve({},n,s[t](e))}),e.offsets.popper=n,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,r=e.placement.split('-')[0],n=Ce,s=-1!==['top','bottom'].indexOf(r),a=s?'right':'bottom',p=s?'left':'top',l=s?'width':'height';return o[a]<n(i[p])&&(e.offsets.popper[p]=n(i[p])-o[l]),o[p]>n(i[a])&&(e.offsets.popper[p]=n(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var o;if(!V(e.instance.modifiers,'arrow','keepTogether'))return e;var i=t.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],n=e.offsets,s=n.popper,a=n.reference,l=-1!==['left','right'].indexOf(r),d=l?'height':'width',c=l?'Top':'Left',f=c.toLowerCase(),m=l?'left':'top',h=l?'bottom':'right',u=S(i)[d];a[h]-u<s[f]&&(e.offsets.popper[f]-=s[f]-(a[h]-u)),a[f]+u>s[h]&&(e.offsets.popper[f]+=a[f]+u-s[h]),e.offsets.popper=E(e.offsets.popper);var g=a[f]+a[d]/2-u/2,b=p(e.instance.popper),y=parseFloat(b['margin'+c],10),v=parseFloat(b['border'+c+'Width'],10),w=g-e.offsets.popper[f]-y-v;return w=Se(Ae(s[d]-u,w),0),e.arrowElement=i,e.offsets.arrow=(o={},Xe(o,f,ke(w)),Xe(o,m,''),o),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=x(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],r=P(i),n=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case Je.FLIP:s=[i,r];break;case Je.CLOCKWISE:s=Z(i);break;case Je.COUNTERCLOCKWISE:s=Z(i,!0);break;default:s=t.behavior;}return s.forEach(function(a,p){if(i!==a||s.length===p+1)return e;i=e.placement.split('-')[0],r=P(i);var l=e.offsets.popper,d=e.offsets.reference,c=Ce,f='left'===i&&c(l.right)>c(d.left)||'right'===i&&c(l.left)<c(d.right)||'top'===i&&c(l.bottom)>c(d.top)||'bottom'===i&&c(l.top)<c(d.bottom),m=c(l.left)<c(o.left),h=c(l.right)>c(o.right),u=c(l.top)<c(o.top),g=c(l.bottom)>c(o.bottom),b='left'===i&&m||'right'===i&&h||'top'===i&&u||'bottom'===i&&g,y=-1!==['top','bottom'].indexOf(i),v=!!t.flipVariations&&(y&&'start'===n&&m||y&&'end'===n&&h||!y&&'start'===n&&u||!y&&'end'===n&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(n=G(n)),e.placement=i+(n?'-'+n:''),e.offsets.popper=Ve({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=I(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,r=i.popper,n=i.reference,s=-1!==['left','right'].indexOf(o),a=-1===['top','left'].indexOf(o);return r[s?'left':'top']=n[o]-(a?r[s?'width':'height']:0),e.placement=P(t),e.offsets.popper=E(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=N(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,r=e.offsets.popper,n=N(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==n&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,a,p=void 0===n?t.gpuAcceleration:n,l=c(e.instance.popper),d=w(l),f={position:r.position},m={left:Ce(r.left),top:Ce(r.top),bottom:Ce(r.bottom),right:Ce(r.right)},h='bottom'===o?'top':'bottom',u='right'===i?'left':'right',g=H('transform');if(a='bottom'==h?-d.height+m.bottom:m.top,s='right'==u?-d.width+m.right:m.left,p&&g)f[g]='translate3d('+s+'px, '+a+'px, 0)',f[h]=0,f[u]=0,f.willChange='transform';else{var b='bottom'==h?-1:1,y='right'==u?-1:1;f[h]=a*b,f[u]=s*y,f.willChange=h+', '+u}var v={"x-placement":e.placement};return e.attributes=Ve({},v,e.attributes),e.styles=Ve({},f,e.styles),e.arrowStyles=Ve({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return K(e.instance.popper,e.styles),X(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,r){var n=C(r,t,e),s=A(o.placement,n,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),K(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var $e={};if(Pe){var et=Element.prototype;$e=et.matches||et.matchesSelector||et.webkitMatchesSelector||et.mozMatchesSelector||et.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o}}var e=$e,tt=function(){function e(t){for(var o in Be(this,e),t)this[o]=t[o];this.state={destroyed:!1,visible:!1,enabled:!0}}return We(e,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(e){var t=this;if(!this.state.destroyed&&this.state.enabled){var o=this.popper,i=this.reference,r=this.options,s=re(o),a=s.tooltip,p=s.backdrop,l=s.content;return i.refObj||document.body.contains(i)?void(r.onShow.call(o),e=ve(void 0===e?r.duration:e,0),we([o,a,p],0),ue(this),o.style.visibility='visible',this.state.visible=!0,ie(function(){t.state.visible&&((!r.followCursor||De.usingTouch)&&(t.popperInstance.update(),we([o],r.updateDuration)),we([a,p,p?l:null],e),p&&getComputedStyle(p)[n('transform')],r.interactive&&i.classList.add('tippy-active'),r.sticky&&ge(t),Ee([a,p],'visible'),be(t,e,function(){r.updateDuration||a.classList.add('tippy-notransition'),r.interactive&&o.focus(),r.onShown.call(o)}))})):void this.destroy()}}},{key:'hide',value:function(e){var t=this;if(!this.state.destroyed&&this.state.enabled){var o=this.popper,i=this.reference,r=this.options,n=re(o),s=n.tooltip,a=n.backdrop,p=n.content;r.onHide.call(o),e=ve(void 0===e?r.duration:e,1),r.updateDuration||s.classList.remove('tippy-notransition'),r.interactive&&i.classList.remove('tippy-active'),o.style.visibility='hidden',this.state.visible=!1,we([s,a,a?p:null],e),Ee([s,a],'hidden'),r.interactive&&-1<r.trigger.indexOf('click')&&ye(i)&&i.focus(),ie(function(){be(t,e,function(){t.state.visible||!r.appendTo.contains(o)||(t.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',t._followCursorListener),r.appendTo.removeChild(o),r.onHidden.call(o))})})}}},{key:'destroy',value:function(){var e=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(t){e.reference.removeEventListener(t.event,t.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(t){e.reference.removeAttribute(t)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(e){e.disconnect()}),this.state.destroyed=!0)}}]),e}(),ot=1;return xe.browser=De,xe.defaults=Re,xe}); | ||
(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.tippy=t()})(this,function(){'use strict';function t(e){return'[object Object]'===Object.prototype.toString.call(e)}function o(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(e){return[]}}function n(e,t){var o=We.reduce(function(o,i){var n=e.getAttribute('data-tippy-'+i.toLowerCase())||t[i];return'false'===n&&(n=!1),'true'===n&&(n=!0),isFinite(n)&&!isNaN(parseFloat(n))&&(n=parseFloat(n)),'string'==typeof n&&'['===n.trim().charAt(0)&&(n=JSON.parse(n)),o[i]=n,o},{});return Ue({},t,o)}function r(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function a(e,t,o){var i=o.placement,n=o.distance,a=o.arrow,s=o.arrowType,p=o.arrowTransform,l=o.animateFill,d=o.inertia,c=o.animation,f=o.size,m=o.theme,u=o.html,h=o.zIndex,g=o.interactive,b=o.maxWidth,y=document.createElement('div');y.setAttribute('class','tippy-popper'),y.setAttribute('role','tooltip'),y.setAttribute('id','tippy-'+e),y.style.zIndex=h,y.style.maxWidth=b;var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip'),v.setAttribute('data-size',f),v.setAttribute('data-animation',c),v.setAttribute('data-state','hidden'),m.split(' ').forEach(function(e){v.classList.add(e+'-theme')}),a){var w=document.createElement('div');w.style[r('transform')]=p,'round'===s?(w.classList.add('tippy-roundarrow'),w.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):w.classList.add('tippy-arrow'),v.appendChild(w)}if(l){v.setAttribute('data-animatefill','');var E=document.createElement('div');E.setAttribute('data-state','hidden'),E.classList.add('tippy-backdrop'),v.appendChild(E)}d&&v.setAttribute('data-inertia',''),g&&v.setAttribute('data-interactive','');var L=document.createElement('div');if(L.setAttribute('class','tippy-content'),u){var T;u instanceof Element?(L.appendChild(u),T='#'+u.id||'tippy-html-template'):(L.innerHTML=document.querySelector(u).innerHTML,T=u),y.setAttribute('data-html',''),g&&y.setAttribute('tabindex','-1'),v.setAttribute('data-template-id',T)}else L.innerHTML=t;return v.appendChild(L),y.appendChild(v),y}function s(e,t,o,i){var n=[];return'manual'===e?n:(t.addEventListener(e,o.handleTrigger),n.push({event:e,handler:o.handleTrigger}),'mouseenter'===e&&(Re.supportsTouch&&i&&(t.addEventListener('touchstart',o.handleTrigger),n.push({event:'touchstart',handler:o.handleTrigger}),t.addEventListener('touchend',o.handleMouseleave),n.push({event:'touchend',handler:o.handleMouseleave})),t.addEventListener('mouseleave',o.handleMouseleave),n.push({event:'mouseleave',handler:o.handleMouseleave})),'focus'===e&&(t.addEventListener('blur',o.handleBlur),n.push({event:'blur',handler:o.handleBlur})),n)}function p(e,t){return t.arrow&&(t.animateFill=!1),t.appendTo&&'function'==typeof t.appendTo&&(t.appendTo=t.appendTo()),'function'==typeof t.html&&(t.html=t.html(e)),t}function l(e){return{tooltip:e.querySelector(Be.TOOLTIP),backdrop:e.querySelector(Be.BACKDROP),content:e.querySelector(Be.CONTENT)}}function d(e){var t=e.getAttribute('title');t&&e.setAttribute('data-original-title',t),e.removeAttribute('title')}function c(e){return e&&'[object Function]'==={}.toString.call(e)}function f(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function m(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var t=f(e),o=t.overflow,i=t.overflowX,n=t.overflowY;return /(auto|scroll)/.test(o+n+i)?e:u(m(e))}function h(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?-1!==['TD','TABLE'].indexOf(t.nodeName)&&'static'===f(t,'position')?h(t):t:e?e.ownerDocument.documentElement:document.documentElement}function g(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||h(e.firstElementChild)===e)}function b(e){return null===e.parentNode?e:b(e.parentNode)}function y(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(n,0);var a=r.commonAncestorContainer;if(e!==a&&t!==a||i.contains(n))return g(a)?a:h(a);var s=b(e);return s.host?y(s.host,t):y(e,b(t).host)}function v(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||n;return r[o]}return e[o]}function w(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=v(t,'top'),n=v(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function E(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+i+'Width'],10)}function L(e,t,o,i){return Ne(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],Xe()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function T(){var e=document.body,t=document.documentElement,o=Xe()&&getComputedStyle(t);return{height:L('Height',e,t,o),width:L('Width',e,t,o)}}function O(e){return Je({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};if(Xe())try{t=e.getBoundingClientRect();var o=v(e,'top'),i=v(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r='HTML'===e.nodeName?T():{},a=r.width||e.clientWidth||n.right-n.left,s=r.height||e.clientHeight||n.bottom-n.top,p=e.offsetWidth-a,l=e.offsetHeight-s;if(p||l){var d=f(e);p-=E(d,'x'),l-=E(d,'y'),n.width-=p,n.height-=l}return O(n)}function x(e,t){var o=Xe(),i='HTML'===t.nodeName,n=k(e),r=k(t),a=u(e),s=f(t),p=parseFloat(s.borderTopWidth,10),l=parseFloat(s.borderLeftWidth,10),d=O({top:n.top-r.top-p,left:n.left-r.left-l,width:n.width,height:n.height});if(d.marginTop=0,d.marginLeft=0,!o&&i){var c=parseFloat(s.marginTop,10),m=parseFloat(s.marginLeft,10);d.top-=p-c,d.bottom-=p-c,d.left-=l-m,d.right-=l-m,d.marginTop=c,d.marginLeft=m}return(o?t.contains(a):t===a&&'BODY'!==a.nodeName)&&(d=w(d,t)),d}function C(e){var t=e.ownerDocument.documentElement,o=x(e,t),i=Ne(t.clientWidth,window.innerWidth||0),n=Ne(t.clientHeight,window.innerHeight||0),r=v(t),a=v(t,'left'),s={top:r-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:n};return O(s)}function A(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===f(e,'position')||A(m(e))}function S(e,t,o,i){var n={top:0,left:0},r=y(e,t);if('viewport'===i)n=C(r);else{var a;'scrollParent'===i?(a=u(m(t)),'BODY'===a.nodeName&&(a=e.ownerDocument.documentElement)):'window'===i?a=e.ownerDocument.documentElement:a=i;var s=x(a,r);if('HTML'===a.nodeName&&!A(r)){var p=T(),l=p.height,d=p.width;n.top+=s.top-s.marginTop,n.bottom=l+s.top,n.left+=s.left-s.marginLeft,n.right=d+s.left}else n=s}return n.left+=o,n.top+=o,n.right-=o,n.bottom-=o,n}function D(e){var t=e.width,o=e.height;return t*o}function P(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var a=S(o,i,r,n),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},p=Object.keys(s).map(function(e){return Je({key:e},s[e],{area:D(s[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),d=0<l.length?l[0].key:p[0].key,c=e.split('-')[1];return d+(c?'-'+c:'')}function N(e,t,o){var i=y(t,o);return x(o,i)}function I(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function R(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function B(e,t,o){o=o.split('-')[0];var i=I(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),a=r?'top':'left',s=r?'left':'top',p=r?'height':'width',l=r?'width':'height';return n[a]=t[a]+t[p]/2-i[p]/2,n[s]=o===s?t[s]-i[l]:t[R(s)],n}function H(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=H(e,function(e){return e[t]===o});return e.indexOf(i)}function _(e,t,o){var i=void 0===o?e:e.slice(0,W(e,'name',o));return i.forEach(function(e){e['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var o=e['function']||e.fn;e.enabled&&c(o)&&(t.offsets.popper=O(t.offsets.popper),t.offsets.reference=O(t.offsets.reference),t=o(t,e))}),t}function M(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=N(this.state,this.popper,this.reference),e.placement=P(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=B(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=_(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function Y(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function F(){return this.state.isDestroyed=!0,U(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[Y('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function j(e,t,o,i){var n='BODY'===e.nodeName,r=n?e.ownerDocument.defaultView:e;r.addEventListener(t,o,{passive:!0}),n||j(u(r.parentNode),t,o,i),i.push(r)}function z(e,t,o,i){o.updateBound=i,q(e).addEventListener('resize',o.updateBound,{passive:!0});var n=u(e);return j(n,'scroll',o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function K(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function X(e,t){return q(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function V(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=X(this.reference,this.state))}function G(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Z(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&G(t[o])&&(i='px'),e.style[o]=t[o]+i})}function J(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function Q(e,t,o){var i=H(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function $(e){return'end'===e?'start':'start'===e?'end':e}function ee(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=$e.indexOf(e),i=$e.slice(o+1).concat($e.slice(0,o));return t?i.reverse():i}function te(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],a=n[2];if(!r)return e;if(0===a.indexOf('%')){var s;switch(a){case'%p':s=o;break;case'%':case'%r':default:s=i;}var p=O(s);return p[t]/100*r}if('vh'===a||'vw'===a){var l;return l='vh'===a?Ne(document.documentElement.clientHeight,window.innerHeight||0):Ne(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function oe(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(H(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var p=/\s*,\s*|\s+/,l=-1===s?[a]:[a.slice(0,s).concat([a[s].split(p)[0]]),[a[s].split(p)[1],a.slice(s+1)]];return l=l.map(function(e,i){var n=(1===i?!r:r)?'height':'width',s=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return te(e,n,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){G(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}function ie(e){return e.getAttribute('x-placement').replace(/-.+/,'')}function ne(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,n=e.clientY,r=o.interactiveBorder,a=o.distance,s=t.getBoundingClientRect(),p=ie(t),l=r+a,d={top:s.top-n>r,bottom:n-s.bottom>r,left:s.left-i>r,right:i-s.right>r};return'top'===p?d.top=s.top-n>l:'bottom'===p?d.bottom=n-s.bottom>l:'left'===p?d.left=s.left-i>l:'right'===p?d.right=i-s.right>l:void 0,d.top||d.bottom||d.left||d.right}function ae(e,t,o,i){if(!t.length)return'';var n={scale:function(){return 1===t.length?''+t[0]:o?t[0]+', '+t[1]:t[1]+', '+t[0]}(),translate:function(){return 1===t.length?i?-t[0]+'px':t[0]+'px':o?i?t[0]+'px, '+-t[1]+'px':t[0]+'px, '+t[1]+'px':i?-t[1]+'px, '+t[0]+'px':t[1]+'px, '+t[0]+'px'}()};return n[e]}function se(e,t){if(!e)return'';return t?e:{X:'Y',Y:'X'}[e]}function re(e,t,o){var i=ie(e),n='top'===i||'bottom'===i,a='right'===i||'bottom'===i,s=function(e){var t=o.match(e);return t?t[1]:''},p=function(e){var t=o.match(e);return t?t[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:s(/translate([XY])/),numbers:p(l.translate)},scale:{axis:s(/scale([XY])/),numbers:p(l.scale)}},c=o.replace(l.translate,'translate'+se(d.translate.axis,n)+'('+ae('translate',d.translate.numbers,n,a)+')').replace(l.scale,'scale'+se(d.scale.axis,n)+'('+ae('scale',d.scale.numbers,n,a)+')');t.style[r('transform')]=c}function pe(e){var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function le(e){return-(e-He.distance)+'px'}function de(e){requestAnimationFrame(function(){setTimeout(e,0)})}function ce(t,o){var i=Element.prototype.closest||function(t){for(var o=this;o;){if(e.call(o,t))return o;o=o.parentElement}};return i.call(t,o)}function fe(e,t){return Array.isArray(e)?e[t]:e}function me(e,t){e.forEach(function(e){e&&e.setAttribute('data-state',t)})}function ue(e,t){e.forEach(function(e){e&&(e.style[r('transitionDuration')]=t+'ms')})}function he(e){var t=this;if(we.call(this),!this.state.visible){if(this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),e);var o=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;o?this._internal.showTimeout=setTimeout(function(){t.show()},o):this.show()}}function ge(){var e=this;if(we.call(this),!!this.state.visible){var t=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;t?this._internal.hideTimeout=setTimeout(function(){e.state.visible&&e.hide()},t):this.hide()}}function be(){var e=this;return{handleTrigger:function(t){if(!e.state.disabled){var o=Re.supportsTouch&&Re.usingTouch&&('mouseenter'===t.type||'focus'===t.type);o&&e.options.touchHold||(e._internal.lastTriggerEvent=t,'click'===t.type&&'persistent'!==e.options.hideOnClick&&e.state.visible?ge.call(e):he.call(e,t),o&&Re.iOS&&e.reference.click&&e.reference.click())}},handleMouseleave:function(t){if(!('mouseleave'===t.type&&Re.supportsTouch&&Re.usingTouch&&e.options.touchHold)){if(e.options.interactive){var o=ge.bind(e),i=function t(i){var n=ce(i.target,Be.REFERENCE),r=ce(i.target,Be.POPPER)===e.popper,a=n===e.reference;r||a||ne(i,e.popper,e.options)&&(document.body.removeEventListener('mouseleave',o),document.removeEventListener('mousemove',t),ge.call(e))};return document.body.addEventListener('mouseleave',o),void document.addEventListener('mousemove',i)}ge.call(e)}},handleBlur:function(t){!t.relatedTarget||Re.usingTouch||ce(t.relatedTarget,Be.POPPER)||ge.call(e)}}}function ye(){var e=this,t=this.popper,o=this.reference,i=this.options,n=l(t),a=n.tooltip,s=i.popperOptions,p='round'===i.arrowType?Be.ROUND_ARROW:Be.ARROW,d=a.querySelector(p),c=Ue({placement:i.placement},s||{},{modifiers:Ue({},s?s.modifiers:{},{arrow:Ue({element:p},s&&s.modifiers?s.modifiers.arrow:{}),flip:Ue({enabled:i.flip,padding:i.distance+5,behavior:i.flipBehavior},s&&s.modifiers?s.modifiers.flip:{}),offset:Ue({offset:i.offset},s&&s.modifiers?s.modifiers.offset:{})}),onCreate:function(){a.style[ie(t)]=le(i.distance),d&&i.arrowTransform&&re(t,d,i.arrowTransform)},onUpdate:function(){var e=a.style;e.top='',e.bottom='',e.left='',e.right='',e[ie(t)]=le(i.distance),d&&i.arrowTransform&&re(t,d,i.arrowTransform)}});return Te.call(this,{target:t,callback:function(){var o=t.style;o[r('transitionDuration')]='0ms',e.popperInstance.update(),de(function(){o[r('transitionDuration')]=i.updateDuration+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new tt(o,t,c)}function ve(){var e=this,t=this.popper;this.options.appendTo.contains(t)||(this.options.appendTo.appendChild(t),this.popperInstance?(t.style[r('transform')]=null,this.popperInstance.update(),(!this.options.followCursor||Re.usingTouch)&&this.popperInstance.enableEventListeners()):this.popperInstance=ye.call(this),this.options.followCursor&&!Re.usingTouch&&(!this._internal.followCursorListener&&Ee.call(this),document.addEventListener('mousemove',this._internal.followCursorListener),this.popperInstance.disableEventListeners(),de(function(){e._internal.followCursorListener(e._internal.lastTriggerEvent)})))}function we(){clearTimeout(this._internal.showTimeout),clearTimeout(this._internal.hideTimeout)}function Ee(){var t=this;this._internal.followCursorListener=function(o){if('focus'!==t._internal.lastTriggerEvent.type){var e,i,n=t.popper,a=t.options.offset,s=ie(n),p=Se(n.offsetWidth/2),l=Se(n.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,f=o.pageX,m=o.pageY;'top'===s?(e=f-p+a,i=m-2*l):'bottom'===s?(e=f-p+a,i=m+10):'left'===s?(e=f-2*p,i=m-l+a):'right'===s?(e=f+5,i=m-l+a):void 0;('top'===s||'bottom'===s)&&(f+d+p+a>c&&(e=c-d-2*p),0>f-d-p+a&&(e=d)),n.style[r('transform')]='translate3d('+e+'px, '+i+'px, 0)'}}}function Le(){var e=this,t=function(){e.popper.style[r('transitionDuration')]=e.options.updateDuration+'ms'},o=function(){e.popper.style[r('transitionDuration')]=''};de(function i(){e.popperInstance&&e.popperInstance.scheduleUpdate(),t(),e.state.visible?requestAnimationFrame(i):o()})}function Te(e){var t=e.target,o=e.callback,i=e.options;if(window.MutationObserver){var n=new MutationObserver(o);n.observe(t,i),this._internal.mutationObservers.push(n)}}function Oe(e,t){if(!e)return t();var o=l(this.popper),i=o.tooltip,n=function(e,t){t&&i[e+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',t)},r=function o(r){r.target===i&&(n('remove',o),t())};n('remove',this._internal.transitionendListener),n('add',r),this._internal.transitionendListener=r}function xe(e,t){return e.reduce(function(e,o){var i=rt,r=p(o,t.performance?t:n(o,t)),c=r.html,f=r.trigger,m=r.touchHold,u=r.dynamicTitle,h=r.createPopperInstanceOnInit,g=o.getAttribute('title');if(!g&&!c)return e;o.setAttribute('data-tippy',''),o.setAttribute('aria-describedby','tippy-'+i),d(o);var b=a(i,g,r),y=new nt({id:i,reference:o,popper:b,options:r});y.popperInstance=h?ye.call(y):null;var v=be.call(y);return y.listeners=f.trim().split(' ').reduce(function(e,t){return e.concat(s(t,o,v,m))},[]),u&&Te.call(y,{target:o,callback:function(){var e=l(b),t=e.content,i=o.getAttribute('title');i&&(t.innerHTML=i,d(o))},options:{attributes:!0}}),o._tippy=y,b._reference=o,e.push(y),rt++,e},[])}function ke(e){var t=[].slice.call(document.querySelectorAll(Be.POPPER));t.forEach(function(t){var o=t._reference._tippy,i=o.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!e||t!==e.popper)&&o.hide()})}function Ce(){var t=function(){Re.usingTouch||(Re.usingTouch=!0,Re.iOS&&document.body.classList.add('tippy-touch'),Re.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',o),Re.onUserInputChange('touch'))},o=function(){var e;return function(){var t=performance.now();20>t-e&&(Re.usingTouch=!1,document.removeEventListener('mousemove',o),!Re.iOS&&document.body.classList.remove('tippy-touch'),Re.onUserInputChange('mouse')),e=t}}();document.addEventListener('click',function(e){if(!(e.target instanceof Element))return ke();var t=ce(e.target,Be.REFERENCE),o=ce(e.target,Be.POPPER);if(!(o&&o._reference._tippy.options.interactive)){if(t){var i=t._tippy.options;if(!i.multiple&&Re.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return ke(t._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}ke()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,o=t.activeElement;o&&o.blur&&e.call(o,Be.REFERENCE)&&o.blur()}),!Re.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function Ae(e,i){return Re.supported&&!Re._eventListenersBound&&(Ce(),Re._eventListenersBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,o){e.attributes[t]=o},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),i=Ue({},He,i),{selector:e,options:i,tooltips:Re.supported?xe(o(e),i):[],destroyAll:function(){this.tooltips.forEach(function(e){return e.destroy()})}}}var Se=Math.round,De=Math.min,Pe=Math.floor,Ne=Math.max,Ie='undefined'!=typeof window,Re={};Ie&&(Re.supported='requestAnimationFrame'in window,Re.supportsTouch='ontouchstart'in window,Re.usingTouch=!1,Re.dynamicInputDetection=!0,Re.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Re.onUserInputChange=function(){},Re._eventListenersBound=!1);for(var Be={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},He={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},We=Re.supported&&Object.keys(He),_e=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Me=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,('value'in o)&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Ue=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ye='undefined'!=typeof window&&'undefined'!=typeof document,Fe=['Edge','Trident','Firefox'],qe=0,je=0;je<Fe.length;je+=1)if(Ye&&0<=navigator.userAgent.indexOf(Fe[je])){qe=1;break}var i,ze=Ye&&window.Promise,Ke=ze?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},qe))}},Xe=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},Ve=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Ge=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Ze=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},Je=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qe=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],$e=Qe.slice(3),et={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},tt=function(){function e(t,o){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Ve(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ke(this.update.bind(this)),this.options=Je({},e.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=o&&o.jquery?o[0]:o,this.options.modifiers={},Object.keys(Je({},e.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=Je({},e.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Je({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&c(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Ge(e,[{key:'update',value:function(){return M.call(this)}},{key:'destroy',value:function(){return F.call(this)}},{key:'enableEventListeners',value:function(){return K.call(this)}},{key:'disableEventListeners',value:function(){return V.call(this)}}]),e}();tt.Utils=('undefined'==typeof window?global:window).PopperUtils,tt.placements=Qe,tt.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,a=n.popper,s=-1!==['bottom','top'].indexOf(o),p=s?'left':'top',l=s?'width':'height',d={start:Ze({},p,r[p]),end:Ze({},p,r[p]+r[l]-a[l])};e.offsets.popper=Je({},a,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,a=r.popper,s=r.reference,p=n.split('-')[0];return o=G(+i)?[+i,0]:oe(i,a,s,p),'left'===p?(a.top+=o[0],a.left-=o[1]):'right'===p?(a.top+=o[0],a.left+=o[1]):'top'===p?(a.left+=o[0],a.top-=o[1]):'bottom'===p&&(a.left+=o[0],a.top+=o[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||h(e.instance.popper);e.instance.reference===o&&(o=h(o));var i=S(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,r=e.offsets.popper,a={primary:function(e){var o=r[e];return r[e]<i[e]&&!t.escapeWithReference&&(o=Ne(r[e],i[e])),Ze({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=r[o];return r[e]>i[e]&&!t.escapeWithReference&&(n=De(r[o],i[e]-('right'===e?r.width:r.height))),Ze({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';r=Je({},r,a[t](e))}),e.offsets.popper=r,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=Pe,a=-1!==['top','bottom'].indexOf(n),s=a?'right':'bottom',p=a?'left':'top',l=a?'width':'height';return o[s]<r(i[p])&&(e.offsets.popper[p]=r(i[p])-o[l]),o[p]>r(i[s])&&(e.offsets.popper[p]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var o;if(!Q(e.instance.modifiers,'arrow','keepTogether'))return e;var i=t.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var n=e.placement.split('-')[0],r=e.offsets,a=r.popper,s=r.reference,p=-1!==['left','right'].indexOf(n),l=p?'height':'width',d=p?'Top':'Left',c=d.toLowerCase(),m=p?'left':'top',u=p?'bottom':'right',h=I(i)[l];s[u]-h<a[c]&&(e.offsets.popper[c]-=a[c]-(s[u]-h)),s[c]+h>a[u]&&(e.offsets.popper[c]+=s[c]+h-a[u]),e.offsets.popper=O(e.offsets.popper);var g=s[c]+s[l]/2-h/2,b=f(e.instance.popper),y=parseFloat(b['margin'+d],10),v=parseFloat(b['border'+d+'Width'],10),w=g-e.offsets.popper[c]-y-v;return w=Ne(De(a[l]-h,w),0),e.arrowElement=i,e.offsets.arrow=(o={},Ze(o,c,Se(w)),Ze(o,m,''),o),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(U(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=S(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=R(i),r=e.placement.split('-')[1]||'',a=[];switch(t.behavior){case et.FLIP:a=[i,n];break;case et.CLOCKWISE:a=ee(i);break;case et.COUNTERCLOCKWISE:a=ee(i,!0);break;default:a=t.behavior;}return a.forEach(function(s,p){if(i!==s||a.length===p+1)return e;i=e.placement.split('-')[0],n=R(i);var l=e.offsets.popper,d=e.offsets.reference,c=Pe,f='left'===i&&c(l.right)>c(d.left)||'right'===i&&c(l.left)<c(d.right)||'top'===i&&c(l.bottom)>c(d.top)||'bottom'===i&&c(l.top)<c(d.bottom),m=c(l.left)<c(o.left),u=c(l.right)>c(o.right),h=c(l.top)<c(o.top),g=c(l.bottom)>c(o.bottom),b='left'===i&&m||'right'===i&&u||'top'===i&&h||'bottom'===i&&g,y=-1!==['top','bottom'].indexOf(i),v=!!t.flipVariations&&(y&&'start'===r&&m||y&&'end'===r&&u||!y&&'start'===r&&h||!y&&'end'===r&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=a[p+1]),v&&(r=$(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=Je({},e.offsets.popper,B(e.instance.popper,e.offsets.reference,e.placement)),e=_(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,a=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[a?'left':'top']=r[o]-(s?n[a?'width':'height']:0),e.placement=R(t),e.offsets.popper=O(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=H(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,r=H(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var a,s,p=void 0===r?t.gpuAcceleration:r,l=h(e.instance.popper),d=k(l),c={position:n.position},f={left:Pe(n.left),top:Pe(n.top),bottom:Pe(n.bottom),right:Pe(n.right)},m='bottom'===o?'top':'bottom',u='right'===i?'left':'right',g=Y('transform');if(s='bottom'==m?-d.height+f.bottom:f.top,a='right'==u?-d.width+f.right:f.left,p&&g)c[g]='translate3d('+a+'px, '+s+'px, 0)',c[m]=0,c[u]=0,c.willChange='transform';else{var b='bottom'==m?-1:1,y='right'==u?-1:1;c[m]=s*b,c[u]=a*y,c.willChange=m+', '+u}var v={"x-placement":e.placement};return e.attributes=Je({},v,e.attributes),e.styles=Je({},c,e.styles),e.arrowStyles=Je({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return Z(e.instance.popper,e.styles),J(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,n){var r=N(n,t,e),a=P(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',a),Z(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var ot={};if(Ie){var it=Element.prototype;ot=it.matches||it.matchesSelector||it.webkitMatchesSelector||it.mozMatchesSelector||it.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o}}var e=ot,nt=function(){function e(t){for(var o in _e(this,e),t)this[o]=t[o];this.state={destroyed:!1,visible:!1,enabled:!0},this._internal={mutationObservers:[]}}return Me(e,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(e){var t=this;if(!this.state.destroyed&&this.state.enabled){var o=this.popper,i=this.reference,n=this.options,a=l(o),s=a.tooltip,p=a.backdrop,d=a.content;return i.refObj||document.body.contains(i)?void(n.onShow.call(o),e=fe(void 0===e?n.duration:e,0),ue([o,s,p],0),ve.call(this),o.style.visibility='visible',this.state.visible=!0,de(function(){t.state.visible&&((!n.followCursor||Re.usingTouch)&&(t.popperInstance.update(),ue([o],n.updateDuration)),ue([s,p,p?d:null],e),p&&getComputedStyle(p)[r('transform')],n.interactive&&i.classList.add('tippy-active'),n.sticky&&Le.call(t),me([s,p],'visible'),Oe.call(t,e,function(){n.updateDuration||s.classList.add('tippy-notransition'),n.interactive&&o.focus(),n.onShown.call(o)}))})):void this.destroy()}}},{key:'hide',value:function(e){var t=this;if(!this.state.destroyed&&this.state.enabled){var o=this.popper,i=this.reference,n=this.options,r=l(o),a=r.tooltip,s=r.backdrop,p=r.content;n.onHide.call(o),e=fe(void 0===e?n.duration:e,1),n.updateDuration||a.classList.remove('tippy-notransition'),n.interactive&&i.classList.remove('tippy-active'),o.style.visibility='hidden',this.state.visible=!1,ue([a,s,s?p:null],e),me([a,s],'hidden'),n.interactive&&-1<n.trigger.indexOf('click')&&pe(i)&&i.focus(),de(function(){Oe.call(t,e,function(){t.state.visible||!n.appendTo.contains(o)||(t.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',t._internal.followCursorListener),n.appendTo.removeChild(o),n.onHidden.call(o))})})}}},{key:'destroy',value:function(){var e=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(t){e.reference.removeEventListener(t.event,t.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(t){e.reference.removeAttribute(t)}),this.popperInstance&&this.popperInstance.destroy(),this._internal.mutationObservers.forEach(function(e){e.disconnect()}),this.state.destroyed=!0)}}]),e}(),rt=1;return Ae.browser=Re,Ae.defaults=He,Ae}); |
@@ -316,238 +316,2 @@ (function (global, factory) { | ||
/** | ||
* Transforms the `arrowTransform` numbers based on the placement axis | ||
* @param {String} type 'scale' or 'translate' | ||
* @param {Number[]} numbers | ||
* @param {Boolean} isVertical | ||
* @param {Boolean} isReverse | ||
* @return {String} | ||
*/ | ||
function transformNumbersBasedOnPlacementAxis(type, numbers, isVertical, isReverse) { | ||
if (!numbers.length) return ''; | ||
var transforms = { | ||
scale: function () { | ||
if (numbers.length === 1) { | ||
return '' + numbers[0]; | ||
} else { | ||
return isVertical ? numbers[0] + ', ' + numbers[1] : numbers[1] + ', ' + numbers[0]; | ||
} | ||
}(), | ||
translate: function () { | ||
if (numbers.length === 1) { | ||
return isReverse ? -numbers[0] + 'px' : numbers[0] + 'px'; | ||
} else { | ||
if (isVertical) { | ||
return isReverse ? numbers[0] + 'px, ' + -numbers[1] + 'px' : numbers[0] + 'px, ' + numbers[1] + 'px'; | ||
} else { | ||
return isReverse ? -numbers[1] + 'px, ' + numbers[0] + 'px' : numbers[1] + 'px, ' + numbers[0] + 'px'; | ||
} | ||
} | ||
}() | ||
}; | ||
return transforms[type]; | ||
} | ||
/** | ||
* Transforms the `arrowTransform` x or y axis based on the placement axis | ||
* @param {String} axis 'X', 'Y', '' | ||
* @param {Boolean} isVertical | ||
* @return {String} | ||
*/ | ||
function transformAxis(axis, isVertical) { | ||
if (!axis) return ''; | ||
var map = { | ||
'X': 'Y', | ||
'Y': 'X' | ||
}; | ||
return isVertical ? axis : map[axis]; | ||
} | ||
/** | ||
* Returns the core placement ('top', 'bottom', 'left', 'right') of a popper | ||
* @param {Element} popper | ||
* @return {String} | ||
*/ | ||
function getPopperPlacement(popper) { | ||
return popper.getAttribute('x-placement').replace(/-.+/, ''); | ||
} | ||
/** | ||
* Computes and applies the necessary arrow transform | ||
* @param {Element} popper | ||
* @param {Element} arrow | ||
* @param {String} arrowTransform | ||
*/ | ||
function computeArrowTransform(popper, arrow, arrowTransform) { | ||
var placement = getPopperPlacement(popper); | ||
var isVertical = placement === 'top' || placement === 'bottom'; | ||
var isReverse = placement === 'right' || placement === 'bottom'; | ||
var getAxis = function getAxis(re) { | ||
var match = arrowTransform.match(re); | ||
return match ? match[1] : ''; | ||
}; | ||
var getNumbers = function getNumbers(re) { | ||
var match = arrowTransform.match(re); | ||
return match ? match[1].split(',').map(parseFloat) : []; | ||
}; | ||
var re = { | ||
translate: /translateX?Y?\(([^)]+)\)/, | ||
scale: /scaleX?Y?\(([^)]+)\)/ | ||
}; | ||
var matches = { | ||
translate: { | ||
axis: getAxis(/translate([XY])/), | ||
numbers: getNumbers(re.translate) | ||
}, | ||
scale: { | ||
axis: getAxis(/scale([XY])/), | ||
numbers: getNumbers(re.scale) | ||
} | ||
}; | ||
var computedTransform = arrowTransform.replace(re.translate, 'translate' + transformAxis(matches.translate.axis, isVertical) + '(' + transformNumbersBasedOnPlacementAxis('translate', matches.translate.numbers, isVertical, isReverse) + ')').replace(re.scale, 'scale' + transformAxis(matches.scale.axis, isVertical) + '(' + transformNumbersBasedOnPlacementAxis('scale', matches.scale.numbers, isVertical, isReverse) + ')'); | ||
arrow.style[prefix('transform')] = computedTransform; | ||
} | ||
/** | ||
* Waits until next repaint to execute a fn | ||
* @param {Function} fn | ||
*/ | ||
function defer(fn) { | ||
requestAnimationFrame(function () { | ||
setTimeout(fn, 0); | ||
}); | ||
} | ||
/** | ||
* Returns inner elements of the popper element | ||
* @param {Element} popper | ||
* @return {Object} | ||
*/ | ||
function getInnerElements(popper) { | ||
return { | ||
tooltip: popper.querySelector(selectors.TOOLTIP), | ||
backdrop: popper.querySelector(selectors.BACKDROP), | ||
content: popper.querySelector(selectors.CONTENT) | ||
}; | ||
} | ||
/** | ||
* Returns the distance taking into account the default distance due to | ||
* the transform: translate setting in CSS | ||
* @param {Number} distance | ||
* @return {String} | ||
*/ | ||
function getOffsetDistanceInPx(distance) { | ||
return -(distance - defaults.distance) + 'px'; | ||
} | ||
/** | ||
* Adds a mutation observer to an element and stores it in the instance | ||
* @param {Object} | ||
*/ | ||
function addMutationObserver(_ref) { | ||
var tippy = _ref.tippy, | ||
target = _ref.target, | ||
callback = _ref.callback, | ||
options = _ref.options; | ||
if (!window.MutationObserver) return; | ||
var observer = new MutationObserver(callback); | ||
observer.observe(target, options); | ||
tippy._mutationObservers.push(observer); | ||
} | ||
/** | ||
* Creates a new popper instance | ||
* @param {Tippy} tippy | ||
* @return {Popper} | ||
*/ | ||
function createPopperInstance(tippy) { | ||
var reference = tippy.reference, | ||
popper = tippy.popper, | ||
_tippy$options = tippy.options, | ||
placement = _tippy$options.placement, | ||
popperOptions = _tippy$options.popperOptions, | ||
offset = _tippy$options.offset, | ||
distance = _tippy$options.distance, | ||
updateDuration = _tippy$options.updateDuration, | ||
flip = _tippy$options.flip, | ||
flipBehavior = _tippy$options.flipBehavior, | ||
arrowType = _tippy$options.arrowType, | ||
arrowTransform = _tippy$options.arrowTransform, | ||
sticky = _tippy$options.sticky; | ||
var _getInnerElements = getInnerElements(popper), | ||
tooltip = _getInnerElements.tooltip; | ||
var arrowSelector = arrowType === 'round' ? selectors.ROUND_ARROW : selectors.ARROW; | ||
var arrow = tooltip.querySelector(arrowSelector); | ||
var config = _extends({ | ||
placement: placement | ||
}, popperOptions || {}, { | ||
modifiers: _extends({}, popperOptions ? popperOptions.modifiers : {}, { | ||
arrow: _extends({ | ||
element: arrowSelector | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.arrow : {}), | ||
flip: _extends({ | ||
enabled: flip, | ||
padding: distance + 5 /* 5px from viewport boundary */ | ||
, behavior: flipBehavior | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.flip : {}), | ||
offset: _extends({ | ||
offset: offset | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.offset : {}) | ||
}), | ||
onCreate: function onCreate() { | ||
tooltip.style[getPopperPlacement(popper)] = getOffsetDistanceInPx(distance); | ||
if (arrow && arrowTransform) { | ||
computeArrowTransform(popper, arrow, arrowTransform); | ||
} | ||
}, | ||
onUpdate: function onUpdate() { | ||
var styles = tooltip.style; | ||
styles.top = ''; | ||
styles.bottom = ''; | ||
styles.left = ''; | ||
styles.right = ''; | ||
styles[getPopperPlacement(popper)] = getOffsetDistanceInPx(distance); | ||
if (arrow && arrowTransform) { | ||
computeArrowTransform(popper, arrow, arrowTransform); | ||
} | ||
} | ||
}); | ||
addMutationObserver({ | ||
tippy: tippy, | ||
target: popper, | ||
callback: function callback() { | ||
var styles = popper.style; | ||
styles[prefix('transitionDuration')] = '0ms'; | ||
tippy.popperInstance.update(); | ||
defer(function () { | ||
styles[prefix('transitionDuration')] = updateDuration + 'ms'; | ||
}); | ||
}, | ||
options: { | ||
childList: true, | ||
subtree: true, | ||
characterData: true | ||
} | ||
}); | ||
return new Popper(reference, popper, config); | ||
} | ||
/** | ||
* Creates a trigger by adding the necessary event listeners to the reference element | ||
@@ -605,37 +369,62 @@ * @param {String} eventType - the custom event specified in the `trigger` setting | ||
var matches = {}; | ||
/** | ||
* Evaluates/modifies the options object for appropriate behavior | ||
* @param {Element|Object} reference | ||
* @param {Object} options | ||
* @return {Object} modified/evaluated options | ||
*/ | ||
function evaluateOptions(reference, options) { | ||
// animateFill is disabled if an arrow is true | ||
if (options.arrow) { | ||
options.animateFill = false; | ||
} | ||
if (isBrowser) { | ||
var e = Element.prototype; | ||
matches = e.matches || e.matchesSelector || e.webkitMatchesSelector || e.mozMatchesSelector || e.msMatchesSelector || function (s) { | ||
var matches = (this.document || this.ownerDocument).querySelectorAll(s); | ||
var i = matches.length; | ||
while (--i >= 0 && matches.item(i) !== this) {} | ||
return i > -1; | ||
}; | ||
if (options.appendTo && typeof options.appendTo === 'function') { | ||
options.appendTo = options.appendTo(); | ||
} | ||
if (typeof options.html === 'function') { | ||
options.html = options.html(reference); | ||
} | ||
return options; | ||
} | ||
var matches$1 = matches; | ||
/** | ||
* Ponyfill to get the closest parent element | ||
* @param {Element} element - child of parent to be returned | ||
* @param {String} parentSelector - selector to match the parent if found | ||
* @return {Element} | ||
* Returns inner elements of the popper element | ||
* @param {Element} popper | ||
* @return {Object} | ||
*/ | ||
function closest(element, parentSelector) { | ||
var fn = Element.prototype.closest || function (selector) { | ||
var el = this; | ||
while (el) { | ||
if (matches$1.call(el, selector)) { | ||
return el; | ||
} | ||
el = el.parentElement; | ||
} | ||
function getInnerElements(popper) { | ||
return { | ||
tooltip: popper.querySelector(selectors.TOOLTIP), | ||
backdrop: popper.querySelector(selectors.BACKDROP), | ||
content: popper.querySelector(selectors.CONTENT) | ||
}; | ||
} | ||
return fn.call(element, parentSelector); | ||
/** | ||
* Removes the title from an element, setting `data-original-title` | ||
* appropriately | ||
* @param {Element} el | ||
*/ | ||
function removeTitle(el) { | ||
var title = el.getAttribute('title'); | ||
// Only set `data-original-title` attr if there is a title | ||
if (title) { | ||
el.setAttribute('data-original-title', title); | ||
} | ||
el.removeAttribute('title'); | ||
} | ||
/** | ||
* Returns the core placement ('top', 'bottom', 'left', 'right') of a popper | ||
* @param {Element} popper | ||
* @return {String} | ||
*/ | ||
function getPopperPlacement(popper) { | ||
return popper.getAttribute('x-placement').replace(/-.+/, ''); | ||
} | ||
/** | ||
* Determines if the mouse's cursor is outside the interactive border | ||
@@ -686,340 +475,159 @@ * @param {MouseEvent} event | ||
/** | ||
* Returns relevant listeners for each Tippy instance | ||
* @param {Tippy} tippy | ||
* @param {Object} options | ||
* @return {Object} of listeners | ||
* Transforms the `arrowTransform` numbers based on the placement axis | ||
* @param {String} type 'scale' or 'translate' | ||
* @param {Number[]} numbers | ||
* @param {Boolean} isVertical | ||
* @param {Boolean} isReverse | ||
* @return {String} | ||
*/ | ||
function getEventListeners(tippy, options) { | ||
var popper = tippy.popper, | ||
reference = tippy.reference, | ||
_tippy$options = tippy.options, | ||
delay = _tippy$options.delay, | ||
duration = _tippy$options.duration, | ||
interactive = _tippy$options.interactive, | ||
interactiveBorder = _tippy$options.interactiveBorder, | ||
hideOnClick = _tippy$options.hideOnClick, | ||
trigger = _tippy$options.trigger, | ||
touchHold = _tippy$options.touchHold; | ||
function transformNumbersBasedOnPlacementAxis(type, numbers, isVertical, isReverse) { | ||
if (!numbers.length) return ''; | ||
var transforms = { | ||
scale: function () { | ||
if (numbers.length === 1) { | ||
return '' + numbers[0]; | ||
} else { | ||
return isVertical ? numbers[0] + ', ' + numbers[1] : numbers[1] + ', ' + numbers[0]; | ||
} | ||
}(), | ||
translate: function () { | ||
if (numbers.length === 1) { | ||
return isReverse ? -numbers[0] + 'px' : numbers[0] + 'px'; | ||
} else { | ||
if (isVertical) { | ||
return isReverse ? numbers[0] + 'px, ' + -numbers[1] + 'px' : numbers[0] + 'px, ' + numbers[1] + 'px'; | ||
} else { | ||
return isReverse ? -numbers[1] + 'px, ' + numbers[0] + 'px' : numbers[1] + 'px, ' + numbers[0] + 'px'; | ||
} | ||
} | ||
}() | ||
}; | ||
var showDelay = void 0, | ||
hideDelay = void 0; | ||
return transforms[type]; | ||
} | ||
var clearTimeouts = function clearTimeouts() { | ||
clearTimeout(showDelay); | ||
clearTimeout(hideDelay); | ||
/** | ||
* Transforms the `arrowTransform` x or y axis based on the placement axis | ||
* @param {String} axis 'X', 'Y', '' | ||
* @param {Boolean} isVertical | ||
* @return {String} | ||
*/ | ||
function transformAxis(axis, isVertical) { | ||
if (!axis) return ''; | ||
var map = { | ||
'X': 'Y', | ||
'Y': 'X' | ||
}; | ||
return isVertical ? axis : map[axis]; | ||
} | ||
var _show = function _show() { | ||
clearTimeouts(); | ||
/** | ||
* Computes and applies the necessary arrow transform | ||
* @param {Element} popper | ||
* @param {Element} arrow | ||
* @param {String} arrowTransform | ||
*/ | ||
function computeArrowTransform(popper, arrow, arrowTransform) { | ||
var placement = getPopperPlacement(popper); | ||
var isVertical = placement === 'top' || placement === 'bottom'; | ||
var isReverse = placement === 'right' || placement === 'bottom'; | ||
if (tippy.state.visible) return; | ||
var _delay = Array.isArray(delay) ? delay[0] : delay; | ||
if (delay) { | ||
showDelay = setTimeout(function () { | ||
return tippy.show(); | ||
}, _delay); | ||
} else { | ||
tippy.show(); | ||
} | ||
var getAxis = function getAxis(re) { | ||
var match = arrowTransform.match(re); | ||
return match ? match[1] : ''; | ||
}; | ||
var show = function show(event) { | ||
tippy.options.wait ? tippy.options.wait.call(popper, _show, event) : _show(); | ||
var getNumbers = function getNumbers(re) { | ||
var match = arrowTransform.match(re); | ||
return match ? match[1].split(',').map(parseFloat) : []; | ||
}; | ||
var hide = function hide() { | ||
clearTimeouts(); | ||
if (!tippy.state.visible) return; | ||
var _delay = Array.isArray(delay) ? delay[1] : delay; | ||
if (delay) { | ||
hideDelay = setTimeout(function () { | ||
if (!tippy.state.visible) return; | ||
tippy.hide(); | ||
}, _delay); | ||
} else { | ||
tippy.hide(); | ||
} | ||
var re = { | ||
translate: /translateX?Y?\(([^)]+)\)/, | ||
scale: /scaleX?Y?\(([^)]+)\)/ | ||
}; | ||
var handleTrigger = function handleTrigger(event) { | ||
if (tippy.state.disabled) return; | ||
var shouldStopEvent = browser.supportsTouch && browser.usingTouch && (event.type === 'mouseenter' || event.type === 'focus'); | ||
if (shouldStopEvent && touchHold) return; | ||
tippy._lastTriggerEvent = event.type; | ||
// Toggle show/hide when clicking click-triggered tooltips | ||
var isClick = event.type === 'click'; | ||
var isNotPersistent = hideOnClick !== 'persistent'; | ||
isClick && tippy.state.visible && isNotPersistent ? hide() : show(event); | ||
// iOS prevents click events from firing | ||
if (shouldStopEvent && browser.iOS && reference.click) { | ||
reference.click(); | ||
var matches = { | ||
translate: { | ||
axis: getAxis(/translate([XY])/), | ||
numbers: getNumbers(re.translate) | ||
}, | ||
scale: { | ||
axis: getAxis(/scale([XY])/), | ||
numbers: getNumbers(re.scale) | ||
} | ||
}; | ||
var handleMouseleave = function handleMouseleave(event) { | ||
if (event.type === 'mouseleave' && browser.supportsTouch && browser.usingTouch && touchHold) return; | ||
var computedTransform = arrowTransform.replace(re.translate, 'translate' + transformAxis(matches.translate.axis, isVertical) + '(' + transformNumbersBasedOnPlacementAxis('translate', matches.translate.numbers, isVertical, isReverse) + ')').replace(re.scale, 'scale' + transformAxis(matches.scale.axis, isVertical) + '(' + transformNumbersBasedOnPlacementAxis('scale', matches.scale.numbers, isVertical, isReverse) + ')'); | ||
if (interactive) { | ||
// Temporarily handle mousemove to check if the mouse left somewhere other than the popper | ||
var handleMousemove = function handleMousemove(event) { | ||
var referenceCursorIsOver = closest(event.target, selectors.REFERENCE); | ||
var cursorIsOverPopper = closest(event.target, selectors.POPPER) === popper; | ||
var cursorIsOverReference = referenceCursorIsOver === reference; | ||
if (cursorIsOverPopper || cursorIsOverReference) return; | ||
if (cursorIsOutsideInteractiveBorder(event, popper, options)) { | ||
document.body.removeEventListener('mouseleave', hide); | ||
document.removeEventListener('mousemove', handleMousemove); | ||
hide(); | ||
} | ||
}; | ||
document.body.addEventListener('mouseleave', hide); | ||
document.addEventListener('mousemove', handleMousemove); | ||
return; | ||
} | ||
hide(); | ||
}; | ||
var handleBlur = function handleBlur(event) { | ||
if (!event.relatedTarget || browser.usingTouch) return; | ||
if (closest(event.relatedTarget, selectors.POPPER)) return; | ||
hide(); | ||
}; | ||
return { | ||
handleTrigger: handleTrigger, | ||
handleMouseleave: handleMouseleave, | ||
handleBlur: handleBlur | ||
}; | ||
arrow.style[prefix('transform')] = computedTransform; | ||
} | ||
/** | ||
* Evaluates/modifies the options object for appropriate behavior | ||
* @param {Element|Object} reference | ||
* @param {Object} options | ||
* @return {Object} modified/evaluated options | ||
* Determines if an element is visible in the viewport | ||
* @param {Element} el | ||
* @return {Boolean} | ||
*/ | ||
function evaluateOptions(reference, options) { | ||
// animateFill is disabled if an arrow is true | ||
if (options.arrow) { | ||
options.animateFill = false; | ||
} | ||
function elementIsInViewport(el) { | ||
var rect = el.getBoundingClientRect(); | ||
if (options.appendTo && typeof options.appendTo === 'function') { | ||
options.appendTo = options.appendTo(); | ||
} | ||
if (typeof options.html === 'function') { | ||
options.html = options.html(reference); | ||
} | ||
return options; | ||
return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth); | ||
} | ||
/** | ||
* Removes the title from an element, setting `data-original-title` | ||
* appropriately | ||
* @param {Element} el | ||
* Returns the distance taking into account the default distance due to | ||
* the transform: translate setting in CSS | ||
* @param {Number} distance | ||
* @return {String} | ||
*/ | ||
function removeTitle(el) { | ||
var title = el.getAttribute('title'); | ||
// Only set `data-original-title` attr if there is a title | ||
if (title) { | ||
el.setAttribute('data-original-title', title); | ||
} | ||
el.removeAttribute('title'); | ||
function getOffsetDistanceInPx(distance) { | ||
return -(distance - defaults.distance) + 'px'; | ||
} | ||
/** | ||
* Ponyfill for Array.prototype.find | ||
* @param {Array} arr | ||
* Waits until next repaint to execute a fn | ||
* @param {Function} fn | ||
* @return item in the array | ||
*/ | ||
function defer(fn) { | ||
requestAnimationFrame(function () { | ||
setTimeout(fn, 0); | ||
}); | ||
} | ||
/** | ||
* Creates a mousemove event listener function for `followCursor` option | ||
* @param {Tippy} tippy | ||
* @return {Function} the event listener | ||
*/ | ||
function createFollowCursorListener(tippy) { | ||
var listener = function listener(e) { | ||
if (tippy._lastTriggerEvent === 'focus') return; | ||
var matches = {}; | ||
var popper = tippy.popper, | ||
offset = tippy.options.offset; | ||
var placement = getPopperPlacement(popper); | ||
var halfPopperWidth = Math.round(popper.offsetWidth / 2); | ||
var halfPopperHeight = Math.round(popper.offsetHeight / 2); | ||
var viewportPadding = 5; | ||
var pageWidth = document.documentElement.offsetWidth || document.body.offsetWidth; | ||
var pageX = e.pageX, | ||
pageY = e.pageY; | ||
var x = void 0, | ||
y = void 0; | ||
switch (placement) { | ||
case 'top': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY - 2 * halfPopperHeight; | ||
break; | ||
case 'bottom': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY + 10; | ||
break; | ||
case 'left': | ||
x = pageX - 2 * halfPopperWidth; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
case 'right': | ||
x = pageX + 5; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
} | ||
var isRightOverflowing = pageX + viewportPadding + halfPopperWidth + offset > pageWidth; | ||
var isLeftOverflowing = pageX - viewportPadding - halfPopperWidth + offset < 0; | ||
// Prevent left/right overflow | ||
if (placement === 'top' || placement === 'bottom') { | ||
if (isRightOverflowing) { | ||
x = pageWidth - viewportPadding - 2 * halfPopperWidth; | ||
} | ||
if (isLeftOverflowing) { | ||
x = viewportPadding; | ||
} | ||
} | ||
popper.style[prefix('transform')] = 'translate3d(' + x + 'px, ' + y + 'px, 0)'; | ||
if (isBrowser) { | ||
var e = Element.prototype; | ||
matches = e.matches || e.matchesSelector || e.webkitMatchesSelector || e.mozMatchesSelector || e.msMatchesSelector || function (s) { | ||
var matches = (this.document || this.ownerDocument).querySelectorAll(s); | ||
var i = matches.length; | ||
while (--i >= 0 && matches.item(i) !== this) {} | ||
return i > -1; | ||
}; | ||
tippy._followCursorListener = listener; | ||
return listener; | ||
} | ||
/** | ||
* Appends the popper and creates a popper instance if one does not exist | ||
* Also updates its position if need be and enables event listeners | ||
* @param {Tippy} tippy | ||
*/ | ||
function mountPopper(tippy) { | ||
var popper = tippy.popper, | ||
reference = tippy.reference, | ||
options = tippy.options; | ||
var popperInstance = tippy.popperInstance; | ||
var matches$1 = matches; | ||
// Already on the DOM | ||
if (options.appendTo.contains(popper)) return; | ||
options.appendTo.appendChild(popper); | ||
if (!popperInstance) { | ||
popperInstance = tippy.popperInstance = createPopperInstance(tippy); | ||
} else { | ||
popper.style[prefix('transform')] = null; | ||
popperInstance.update(); | ||
if (!options.followCursor || browser.usingTouch) { | ||
popperInstance.enableEventListeners(); | ||
} | ||
} | ||
// Since touch is determined dynamically, followCursor is set on mount | ||
if (options.followCursor && !browser.usingTouch) { | ||
document.addEventListener('mousemove', createFollowCursorListener(tippy)); | ||
popperInstance.disableEventListeners(); | ||
} | ||
} | ||
/** | ||
* Updates a popper's position on each animation frame to make it stick to a moving element | ||
* @param {Tippy} tippy | ||
* Ponyfill to get the closest parent element | ||
* @param {Element} element - child of parent to be returned | ||
* @param {String} parentSelector - selector to match the parent if found | ||
* @return {Element} | ||
*/ | ||
function makeSticky(tippy) { | ||
var applyTransitionDuration = function applyTransitionDuration() { | ||
tippy.popper.style[prefix('transitionDuration')] = tippy.options.updateDuration + 'ms'; | ||
}; | ||
var removeTransitionDuration = function removeTransitionDuration() { | ||
tippy.popper.style[prefix('transitionDuration')] = ''; | ||
}; | ||
var updatePosition = function updatePosition() { | ||
tippy.popperInstance && tippy.popperInstance.scheduleUpdate(); | ||
applyTransitionDuration(); | ||
tippy.state.visible ? requestAnimationFrame(updatePosition) : removeTransitionDuration(); | ||
}; | ||
// Wait until Popper's position has been updated initially | ||
defer(updatePosition); | ||
} | ||
/** | ||
* Prepares the callback functions for `show` and `hide` methods | ||
* @param {Tippy} tippy | ||
* @param {Number} duration | ||
* @param {Function} callback - callback function to fire once transition completes | ||
*/ | ||
function onTransitionEnd(tippy, duration, callback) { | ||
// Make callback synchronous if duration is 0 | ||
if (!duration) { | ||
return callback(); | ||
} | ||
var _getInnerElements = getInnerElements(tippy.popper), | ||
tooltip = _getInnerElements.tooltip; | ||
var toggleListeners = function toggleListeners(action, listener) { | ||
if (!listener) return; | ||
tooltip[action + 'EventListener']('ontransitionend' in window ? 'transitionend' : 'webkitTransitionEnd', listener); | ||
}; | ||
var listener = function listener(e) { | ||
if (e.target === tooltip) { | ||
toggleListeners('remove', listener); | ||
callback(); | ||
function closest(element, parentSelector) { | ||
var fn = Element.prototype.closest || function (selector) { | ||
var el = this; | ||
while (el) { | ||
if (matches$1.call(el, selector)) { | ||
return el; | ||
} | ||
el = el.parentElement; | ||
} | ||
}; | ||
toggleListeners('remove', tippy._transitionendListener); | ||
toggleListeners('add', listener); | ||
tippy._transitionendListener = listener; | ||
return fn.call(element, parentSelector); | ||
} | ||
/** | ||
* Determines if an element is visible in the viewport | ||
* @param {Element} el | ||
* @return {Boolean} | ||
*/ | ||
function elementIsInViewport(el) { | ||
var rect = el.getBoundingClientRect(); | ||
return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth); | ||
} | ||
/** | ||
* Returns duration taking into account the option being either a number or array | ||
@@ -1047,2 +655,9 @@ * @param {Number} duration | ||
/** | ||
* Ponyfill for Array.prototype.find | ||
* @param {Array} arr | ||
* @param {Function} fn | ||
* @return item in the array | ||
*/ | ||
/** | ||
* Applies the transition duration to each element | ||
@@ -1063,5 +678,6 @@ * @param {Element[]} els - Array of elements | ||
for (var prop in config) { | ||
this[prop] = config[prop]; | ||
for (var key in config) { | ||
this[key] = config[key]; | ||
} | ||
this.state = { | ||
@@ -1072,2 +688,6 @@ destroyed: false, | ||
}; | ||
this._internal = { | ||
mutationObservers: [] | ||
}; | ||
} | ||
@@ -1077,2 +697,4 @@ | ||
* Enables the tooltip to allow it to show or hide | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
@@ -1089,2 +711,4 @@ | ||
* Disables the tooltip from showing or hiding, but does not destroy it | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
@@ -1101,2 +725,4 @@ | ||
* @param {Number} duration in milliseconds | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
@@ -1135,3 +761,3 @@ | ||
mountPopper(this); | ||
_mount.call(this); | ||
@@ -1141,4 +767,3 @@ popper.style.visibility = 'visible'; | ||
// Wait for popper's position to update by deferring the callback, so | ||
// that the position update doesn't transition, only the normal animation | ||
// Popper#update is async, requiring us to defer this code. Popper 2.0 will make it sync. | ||
defer(function () { | ||
@@ -1167,3 +792,3 @@ // ~20ms can elapse before this defer callback is run, so the hide() method | ||
if (options.sticky) { | ||
makeSticky(_this); | ||
_makeSticky.call(_this); | ||
} | ||
@@ -1173,3 +798,3 @@ | ||
onTransitionEnd(_this, duration, function () { | ||
_onTransitionEnd.call(_this, duration, function () { | ||
if (!options.updateDuration) { | ||
@@ -1191,2 +816,4 @@ tooltip.classList.add('tippy-notransition'); | ||
* @param {Number} duration in milliseconds | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
@@ -1240,7 +867,7 @@ | ||
defer(function () { | ||
onTransitionEnd(_this2, duration, function () { | ||
_onTransitionEnd.call(_this2, duration, function () { | ||
if (_this2.state.visible || !options.appendTo.contains(popper)) return; | ||
_this2.popperInstance.disableEventListeners(); | ||
document.removeEventListener('mousemove', _this2._followCursorListener); | ||
document.removeEventListener('mousemove', _this2._internal.followCursorListener); | ||
options.appendTo.removeChild(popper); | ||
@@ -1254,2 +881,4 @@ options.onHidden.call(popper); | ||
* Destroys the tooltip | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
@@ -1284,3 +913,3 @@ | ||
this._mutationObservers.forEach(function (observer) { | ||
this._internal.mutationObservers.forEach(function (observer) { | ||
observer.disconnect(); | ||
@@ -1295,2 +924,416 @@ }); | ||
/** | ||
* ------------------------------------------------------------------------ | ||
* Private methods | ||
* ------------------------------------------------------------------------ | ||
* Standalone functions to be called with the instance's `this` context to make | ||
* them truly private and not accessible on the prototype | ||
*/ | ||
/** | ||
* Method used by event listeners to invoke the show method, taking into account delays and | ||
* the `wait` option | ||
* @param {Event} event | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _enter(event) { | ||
var _this4 = this; | ||
_clearDelayTimeouts.call(this); | ||
if (this.state.visible) return; | ||
if (this.options.wait) { | ||
this.options.wait.call(this.popper, this.show.bind(this), event); | ||
return; | ||
} | ||
var delay = Array.isArray(this.options.delay) ? this.options.delay[0] : this.options.delay; | ||
if (delay) { | ||
this._internal.showTimeout = setTimeout(function () { | ||
_this4.show(); | ||
}, delay); | ||
} else { | ||
this.show(); | ||
} | ||
} | ||
/** | ||
* Method used by event listeners to invoke the hide method, taking into account delays | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _leave() { | ||
var _this5 = this; | ||
_clearDelayTimeouts.call(this); | ||
if (!this.state.visible) return; | ||
var delay = Array.isArray(this.options.delay) ? this.options.delay[1] : this.options.delay; | ||
if (delay) { | ||
this._internal.hideTimeout = setTimeout(function () { | ||
if (!_this5.state.visible) return; | ||
_this5.hide(); | ||
}, delay); | ||
} else { | ||
this.hide(); | ||
} | ||
} | ||
/** | ||
* Returns relevant listeners for the instance | ||
* @return {Object} of listeners | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _getEventListeners() { | ||
var _this6 = this; | ||
var handleTrigger = function handleTrigger(event) { | ||
if (_this6.state.disabled) return; | ||
var shouldStopEvent = browser.supportsTouch && browser.usingTouch && (event.type === 'mouseenter' || event.type === 'focus'); | ||
if (shouldStopEvent && _this6.options.touchHold) return; | ||
_this6._internal.lastTriggerEvent = event; | ||
// Toggle show/hide when clicking click-triggered tooltips | ||
if (event.type === 'click' && _this6.options.hideOnClick !== 'persistent' && _this6.state.visible) { | ||
_leave.call(_this6); | ||
} else { | ||
_enter.call(_this6, event); | ||
} | ||
// iOS prevents click events from firing | ||
if (shouldStopEvent && browser.iOS && _this6.reference.click) { | ||
_this6.reference.click(); | ||
} | ||
}; | ||
var handleMouseleave = function handleMouseleave(event) { | ||
if (event.type === 'mouseleave' && browser.supportsTouch && browser.usingTouch && _this6.options.touchHold) return; | ||
if (_this6.options.interactive) { | ||
var hide = _leave.bind(_this6); | ||
// Temporarily handle mousemove to check if the mouse left somewhere other than the popper | ||
var handleMousemove = function handleMousemove(event) { | ||
var referenceCursorIsOver = closest(event.target, selectors.REFERENCE); | ||
var cursorIsOverPopper = closest(event.target, selectors.POPPER) === _this6.popper; | ||
var cursorIsOverReference = referenceCursorIsOver === _this6.reference; | ||
if (cursorIsOverPopper || cursorIsOverReference) return; | ||
if (cursorIsOutsideInteractiveBorder(event, _this6.popper, _this6.options)) { | ||
document.body.removeEventListener('mouseleave', hide); | ||
document.removeEventListener('mousemove', handleMousemove); | ||
_leave.call(_this6); | ||
} | ||
}; | ||
document.body.addEventListener('mouseleave', hide); | ||
document.addEventListener('mousemove', handleMousemove); | ||
return; | ||
} | ||
_leave.call(_this6); | ||
}; | ||
var handleBlur = function handleBlur(event) { | ||
if (!event.relatedTarget || browser.usingTouch) return; | ||
if (closest(event.relatedTarget, selectors.POPPER)) return; | ||
_leave.call(_this6); | ||
}; | ||
return { | ||
handleTrigger: handleTrigger, | ||
handleMouseleave: handleMouseleave, | ||
handleBlur: handleBlur | ||
}; | ||
} | ||
/** | ||
* Creates and returns a new popper instance | ||
* @return {Popper} | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _createPopperInstance() { | ||
var _this7 = this; | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
var _getInnerElements3 = getInnerElements(popper), | ||
tooltip = _getInnerElements3.tooltip; | ||
var popperOptions = options.popperOptions; | ||
var arrowSelector = options.arrowType === 'round' ? selectors.ROUND_ARROW : selectors.ARROW; | ||
var arrow = tooltip.querySelector(arrowSelector); | ||
var config = _extends({ | ||
placement: options.placement | ||
}, popperOptions || {}, { | ||
modifiers: _extends({}, popperOptions ? popperOptions.modifiers : {}, { | ||
arrow: _extends({ | ||
element: arrowSelector | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.arrow : {}), | ||
flip: _extends({ | ||
enabled: options.flip, | ||
padding: options.distance + 5 /* 5px from viewport boundary */ | ||
, behavior: options.flipBehavior | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.flip : {}), | ||
offset: _extends({ | ||
offset: options.offset | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.offset : {}) | ||
}), | ||
onCreate: function onCreate() { | ||
tooltip.style[getPopperPlacement(popper)] = getOffsetDistanceInPx(options.distance); | ||
if (arrow && options.arrowTransform) { | ||
computeArrowTransform(popper, arrow, options.arrowTransform); | ||
} | ||
}, | ||
onUpdate: function onUpdate() { | ||
var styles = tooltip.style; | ||
styles.top = ''; | ||
styles.bottom = ''; | ||
styles.left = ''; | ||
styles.right = ''; | ||
styles[getPopperPlacement(popper)] = getOffsetDistanceInPx(options.distance); | ||
if (arrow && options.arrowTransform) { | ||
computeArrowTransform(popper, arrow, options.arrowTransform); | ||
} | ||
} | ||
}); | ||
_addMutationObserver.call(this, { | ||
target: popper, | ||
callback: function callback() { | ||
var styles = popper.style; | ||
styles[prefix('transitionDuration')] = '0ms'; | ||
_this7.popperInstance.update(); | ||
defer(function () { | ||
styles[prefix('transitionDuration')] = options.updateDuration + 'ms'; | ||
}); | ||
}, | ||
options: { | ||
childList: true, | ||
subtree: true, | ||
characterData: true | ||
} | ||
}); | ||
return new Popper(reference, popper, config); | ||
} | ||
/** | ||
* Appends the popper element to the DOM | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _mount() { | ||
var _this8 = this; | ||
var popper = this.popper; | ||
if (this.options.appendTo.contains(popper)) return; | ||
this.options.appendTo.appendChild(popper); | ||
if (!this.popperInstance) { | ||
this.popperInstance = _createPopperInstance.call(this); | ||
} else { | ||
popper.style[prefix('transform')] = null; | ||
this.popperInstance.update(); | ||
if (!this.options.followCursor || browser.usingTouch) { | ||
this.popperInstance.enableEventListeners(); | ||
} | ||
} | ||
// Since touch is determined dynamically, followCursor is set on mount | ||
if (this.options.followCursor && !browser.usingTouch) { | ||
if (!this._internal.followCursorListener) { | ||
_setFollowCursorListener.call(this); | ||
} | ||
document.addEventListener('mousemove', this._internal.followCursorListener); | ||
this.popperInstance.disableEventListeners(); | ||
defer(function () { | ||
_this8._internal.followCursorListener(_this8._internal.lastTriggerEvent); | ||
}); | ||
} | ||
} | ||
/** | ||
* Clears the show and hide delay timeouts | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _clearDelayTimeouts() { | ||
clearTimeout(this._internal.showTimeout); | ||
clearTimeout(this._internal.hideTimeout); | ||
} | ||
/** | ||
* Sets a mousemove event listener function for `followCursor` option | ||
* @return {Function} the event listener | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _setFollowCursorListener() { | ||
var _this9 = this; | ||
this._internal.followCursorListener = function (e) { | ||
if (_this9._internal.lastTriggerEvent.type === 'focus') return; | ||
var popper = _this9.popper, | ||
offset = _this9.options.offset; | ||
var placement = getPopperPlacement(popper); | ||
var halfPopperWidth = Math.round(popper.offsetWidth / 2); | ||
var halfPopperHeight = Math.round(popper.offsetHeight / 2); | ||
var viewportPadding = 5; | ||
var pageWidth = document.documentElement.offsetWidth || document.body.offsetWidth; | ||
var pageX = e.pageX, | ||
pageY = e.pageY; | ||
var x = void 0, | ||
y = void 0; | ||
switch (placement) { | ||
case 'top': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY - 2 * halfPopperHeight; | ||
break; | ||
case 'bottom': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY + 10; | ||
break; | ||
case 'left': | ||
x = pageX - 2 * halfPopperWidth; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
case 'right': | ||
x = pageX + 5; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
} | ||
var isRightOverflowing = pageX + viewportPadding + halfPopperWidth + offset > pageWidth; | ||
var isLeftOverflowing = pageX - viewportPadding - halfPopperWidth + offset < 0; | ||
// Prevent left/right overflow | ||
if (placement === 'top' || placement === 'bottom') { | ||
if (isRightOverflowing) { | ||
x = pageWidth - viewportPadding - 2 * halfPopperWidth; | ||
} | ||
if (isLeftOverflowing) { | ||
x = viewportPadding; | ||
} | ||
} | ||
popper.style[prefix('transform')] = 'translate3d(' + x + 'px, ' + y + 'px, 0)'; | ||
}; | ||
} | ||
/** | ||
* Updates the popper's position on each animation frame | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _makeSticky() { | ||
var _this10 = this; | ||
var applyTransitionDuration$$1 = function applyTransitionDuration$$1() { | ||
_this10.popper.style[prefix('transitionDuration')] = _this10.options.updateDuration + 'ms'; | ||
}; | ||
var removeTransitionDuration = function removeTransitionDuration() { | ||
_this10.popper.style[prefix('transitionDuration')] = ''; | ||
}; | ||
var updatePosition = function updatePosition() { | ||
if (_this10.popperInstance) { | ||
_this10.popperInstance.scheduleUpdate(); | ||
} | ||
applyTransitionDuration$$1(); | ||
if (_this10.state.visible) { | ||
requestAnimationFrame(updatePosition); | ||
} else { | ||
removeTransitionDuration(); | ||
} | ||
}; | ||
// Wait until the popper's position has been updated initially | ||
defer(updatePosition); | ||
} | ||
/** | ||
* Adds a mutation observer to an element and stores it in the instance | ||
* @param {Object} | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _addMutationObserver(_ref) { | ||
var target = _ref.target, | ||
callback = _ref.callback, | ||
options = _ref.options; | ||
if (!window.MutationObserver) return; | ||
var observer = new MutationObserver(callback); | ||
observer.observe(target, options); | ||
this._internal.mutationObservers.push(observer); | ||
} | ||
/** | ||
* Fires the callback functions once the CSS transition ends for `show` and `hide` methods | ||
* @param {Number} duration | ||
* @param {Function} callback - callback function to fire once transition completes | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _onTransitionEnd(duration, callback) { | ||
// Make callback synchronous if duration is 0 | ||
if (!duration) { | ||
return callback(); | ||
} | ||
var _getInnerElements4 = getInnerElements(this.popper), | ||
tooltip = _getInnerElements4.tooltip; | ||
var toggleListeners = function toggleListeners(action, listener) { | ||
if (!listener) return; | ||
tooltip[action + 'EventListener']('ontransitionend' in window ? 'transitionend' : 'webkitTransitionEnd', listener); | ||
}; | ||
var listener = function listener(e) { | ||
if (e.target === tooltip) { | ||
toggleListeners('remove', listener); | ||
callback(); | ||
} | ||
}; | ||
toggleListeners('remove', this._internal.transitionendListener); | ||
toggleListeners('add', listener); | ||
this._internal.transitionendListener = listener; | ||
} | ||
var idCounter = 1; | ||
@@ -1331,9 +1374,8 @@ | ||
popper: popper, | ||
options: options, | ||
_mutationObservers: [] | ||
options: options | ||
}); | ||
tippy.popperInstance = createPopperInstanceOnInit ? createPopperInstance(tippy) : null; | ||
tippy.popperInstance = createPopperInstanceOnInit ? _createPopperInstance.call(tippy) : null; | ||
var listeners = getEventListeners(tippy, options); | ||
var listeners = _getEventListeners.call(tippy); | ||
tippy.listeners = trigger.trim().split(' ').reduce(function (acc, eventType) { | ||
@@ -1345,4 +1387,3 @@ return acc.concat(createTrigger(eventType, reference, listeners, touchHold)); | ||
if (dynamicTitle) { | ||
addMutationObserver({ | ||
tippy: tippy, | ||
_addMutationObserver.call(tippy, { | ||
target: reference, | ||
@@ -1349,0 +1390,0 @@ callback: function callback() { |
@@ -1,1 +0,1 @@ | ||
(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('popper.js')):'function'==typeof define&&define.amd?define(['popper.js'],b):a.tippy=b(a.Popper)})(this,function(a){'use strict';function b(a){return'[object Object]'===Object.prototype.toString.call(a)}function c(a){if(a instanceof Element||b(a))return[a];if(a instanceof NodeList)return[].slice.call(a);if(Array.isArray(a))return a;try{return[].slice.call(document.querySelectorAll(a))}catch(a){return[]}}function d(a,b){var c=M.reduce(function(c,d){var e=a.getAttribute('data-tippy-'+d.toLowerCase())||b[d];return'false'===e&&(e=!1),'true'===e&&(e=!0),isFinite(e)&&!isNaN(parseFloat(e))&&(e=parseFloat(e)),'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return P({},b,c)}function f(a){for(var b=[!1,'webkit'],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length;d++){var e=b[d],f=e?''+e+c:a;if('undefined'!=typeof document.body.style[f])return f}return null}function g(a,b,c){var d=c.placement,e=c.distance,g=c.arrow,h=c.arrowType,i=c.arrowTransform,j=c.animateFill,k=c.inertia,l=c.animation,m=c.size,n=c.theme,o=c.html,p=c.zIndex,q=c.interactive,r=c.maxWidth,s=document.createElement('div');s.setAttribute('class','tippy-popper'),s.setAttribute('role','tooltip'),s.setAttribute('id','tippy-'+a),s.style.zIndex=p,s.style.maxWidth=r;var u=document.createElement('div');if(u.setAttribute('class','tippy-tooltip'),u.setAttribute('data-size',m),u.setAttribute('data-animation',l),u.setAttribute('data-state','hidden'),n.split(' ').forEach(function(a){u.classList.add(a+'-theme')}),g){var t=document.createElement('div');t.style[f('transform')]=i,'round'===h?(t.classList.add('tippy-roundarrow'),t.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):t.classList.add('tippy-arrow'),u.appendChild(t)}if(j){u.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),u.appendChild(v)}k&&u.setAttribute('data-inertia',''),q&&u.setAttribute('data-interactive','');var w=document.createElement('div');if(w.setAttribute('class','tippy-content'),o){var x;o instanceof Element?(w.appendChild(o),x='#'+o.id||'tippy-html-template'):(w.innerHTML=document.querySelector(o).innerHTML,x=o),s.setAttribute('data-html',''),q&&s.setAttribute('tabindex','-1'),u.setAttribute('data-template-id',x)}else w.innerHTML=b;return u.appendChild(w),s.appendChild(u),s}function h(a,b,c,d){if(!b.length)return'';var e={scale:function(){return 1===b.length?''+b[0]:c?b[0]+', '+b[1]:b[1]+', '+b[0]}(),translate:function(){return 1===b.length?d?-b[0]+'px':b[0]+'px':c?d?b[0]+'px, '+-b[1]+'px':b[0]+'px, '+b[1]+'px':d?-b[1]+'px, '+b[0]+'px':b[1]+'px, '+b[0]+'px'}()};return e[a]}function i(a,b){if(!a)return'';return b?a:{X:'Y',Y:'X'}[a]}function j(a){return a.getAttribute('x-placement').replace(/-.+/,'')}function k(a,b,c){var d=j(a),e='top'===d||'bottom'===d,g='right'===d||'bottom'===d,k=function(a){var b=c.match(a);return b?b[1]:''},l=function(a){var b=c.match(a);return b?b[1].split(',').map(parseFloat):[]},m={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},n={translate:{axis:k(/translate([XY])/),numbers:l(m.translate)},scale:{axis:k(/scale([XY])/),numbers:l(m.scale)}},o=c.replace(m.translate,'translate'+i(n.translate.axis,e)+'('+h('translate',n.translate.numbers,e,g)+')').replace(m.scale,'scale'+i(n.scale.axis,e)+'('+h('scale',n.scale.numbers,e,g)+')');b.style[f('transform')]=o}function l(a){requestAnimationFrame(function(){setTimeout(a,0)})}function m(a){return{tooltip:a.querySelector(K.TOOLTIP),backdrop:a.querySelector(K.BACKDROP),content:a.querySelector(K.CONTENT)}}function n(a){return-(a-L.distance)+'px'}function o(a){var b=a.tippy,c=a.target,d=a.callback,e=a.options;if(window.MutationObserver){var f=new MutationObserver(d);f.observe(c,e),b._mutationObservers.push(f)}}function p(b){var c=b.reference,d=b.popper,e=b.options,g=e.placement,h=e.popperOptions,i=e.offset,p=e.distance,q=e.updateDuration,r=e.flip,s=e.flipBehavior,t=e.arrowType,u=e.arrowTransform,v=e.sticky,w=m(d),x=w.tooltip,y='round'===t?K.ROUND_ARROW:K.ARROW,z=x.querySelector(y),A=P({placement:g},h||{},{modifiers:P({},h?h.modifiers:{},{arrow:P({element:y},h&&h.modifiers?h.modifiers.arrow:{}),flip:P({enabled:r,padding:p+5,behavior:s},h&&h.modifiers?h.modifiers.flip:{}),offset:P({offset:i},h&&h.modifiers?h.modifiers.offset:{})}),onCreate:function(){x.style[j(d)]=n(p),z&&u&&k(d,z,u)},onUpdate:function(){var a=x.style;a.top='',a.bottom='',a.left='',a.right='',a[j(d)]=n(p),z&&u&&k(d,z,u)}});return o({tippy:b,target:d,callback:function(){var a=d.style;a[f('transitionDuration')]='0ms',b.popperInstance.update(),l(function(){a[f('transitionDuration')]=q+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new a(c,d,A)}function q(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(J.supportsTouch&&d&&(b.addEventListener('touchstart',c.handleTrigger),e.push({event:'touchstart',handler:c.handleTrigger}),b.addEventListener('touchend',c.handleMouseleave),e.push({event:'touchend',handler:c.handleMouseleave})),b.addEventListener('mouseleave',c.handleMouseleave),e.push({event:'mouseleave',handler:c.handleMouseleave})),'focus'===a&&(b.addEventListener('blur',c.handleBlur),e.push({event:'blur',handler:c.handleBlur})),e)}function r(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(e.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function s(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=j(b),k=f+g,l={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?l.top=h.top-e>k:'bottom'===i?l.bottom=e-h.bottom>k:'left'===i?l.left=h.left-d>k:'right'===i?l.right=d-h.right>k:void 0,l.top||l.bottom||l.left||l.right}function t(a,b){var c,d,e=a.popper,f=a.reference,g=a.options,h=g.delay,i=g.duration,j=g.interactive,k=g.interactiveBorder,l=g.hideOnClick,m=g.trigger,n=g.touchHold,o=function(){clearTimeout(c),clearTimeout(d)},p=function(){if(o(),!a.state.visible){var b=Array.isArray(h)?h[0]:h;h?c=setTimeout(function(){return a.show()},b):a.show()}},q=function(b){a.options.wait?a.options.wait.call(e,p,b):p()},t=function(){if(o(),!!a.state.visible){var b=Array.isArray(h)?h[1]:h;h?d=setTimeout(function(){a.state.visible&&a.hide()},b):a.hide()}};return{handleTrigger:function(b){if(!a.state.disabled){var c=J.supportsTouch&&J.usingTouch&&('mouseenter'===b.type||'focus'===b.type);if(!(c&&n)){a._lastTriggerEvent=b.type;var d='click'===b.type;d&&a.state.visible&&'persistent'!==l?t():q(b),c&&J.iOS&&f.click&&f.click()}}},handleMouseleave:function(a){if(!('mouseleave'===a.type&&J.supportsTouch&&J.usingTouch&&n)){if(j){var c=function a(c){var d=r(c.target,K.REFERENCE),g=r(c.target,K.POPPER)===e;g||d===f||s(c,e,b)&&(document.body.removeEventListener('mouseleave',t),document.removeEventListener('mousemove',a),t())};return document.body.addEventListener('mouseleave',t),void document.addEventListener('mousemove',c)}t()}},handleBlur:function(a){!a.relatedTarget||J.usingTouch||r(a.relatedTarget,K.POPPER)||t()}}}function u(a,b){return b.arrow&&(b.animateFill=!1),b.appendTo&&'function'==typeof b.appendTo&&(b.appendTo=b.appendTo()),'function'==typeof b.html&&(b.html=b.html(a)),b}function v(a){var b=a.getAttribute('title');b&&a.setAttribute('data-original-title',b),a.removeAttribute('title')}function w(a){var b=function(b){var c=Math.round;if('focus'!==a._lastTriggerEvent){var d,e,g=a.popper,h=a.options.offset,i=j(g),k=c(g.offsetWidth/2),l=c(g.offsetHeight/2),m=5,n=document.documentElement.offsetWidth||document.body.offsetWidth,o=b.pageX,p=b.pageY;'top'===i?(d=o-k+h,e=p-2*l):'bottom'===i?(d=o-k+h,e=p+10):'left'===i?(d=o-2*k,e=p-l+h):'right'===i?(d=o+5,e=p-l+h):void 0;('top'===i||'bottom'===i)&&(o+m+k+h>n&&(d=n-m-2*k),0>o-m-k+h&&(d=m)),g.style[f('transform')]='translate3d('+d+'px, '+e+'px, 0)'}};return a._followCursorListener=b,b}function x(a){var b=a.popper,c=a.reference,d=a.options,e=a.popperInstance;d.appendTo.contains(b)||(d.appendTo.appendChild(b),e?(b.style[f('transform')]=null,e.update(),(!d.followCursor||J.usingTouch)&&e.enableEventListeners()):e=a.popperInstance=p(a),d.followCursor&&!J.usingTouch&&(document.addEventListener('mousemove',w(a)),e.disableEventListeners()))}function y(a){var b=function(){a.popper.style[f('transitionDuration')]=a.options.updateDuration+'ms'},c=function(){a.popper.style[f('transitionDuration')]=''};l(function d(){a.popperInstance&&a.popperInstance.scheduleUpdate(),b(),a.state.visible?requestAnimationFrame(d):c()})}function z(a,b,c){if(!b)return c();var d=m(a.popper),f=d.tooltip,g=function(a,b){b&&f[a+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',b)},e=function a(b){b.target===f&&(g('remove',a),c())};g('remove',a._transitionendListener),g('add',e),a._transitionendListener=e}function A(a){var b=a.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}function B(a,b){return Array.isArray(a)?a[b]:a}function C(a,b){a.forEach(function(a){a&&a.setAttribute('data-state',b)})}function D(a,b){a.forEach(function(a){a&&(a.style[f('transitionDuration')]=b+'ms')})}function E(a,b){return a.reduce(function(a,c){var e=T,f=u(c,b.performance?b:d(c,b)),h=f.html,i=f.trigger,j=f.touchHold,k=f.dynamicTitle,l=f.createPopperInstanceOnInit,n=c.getAttribute('title');if(!n&&!h)return a;c.setAttribute('data-tippy',''),c.setAttribute('aria-describedby','tippy-'+e),v(c);var r=g(e,n,f),s=new S({id:e,reference:c,popper:r,options:f,_mutationObservers:[]});s.popperInstance=l?p(s):null;var w=t(s,f);return s.listeners=i.trim().split(' ').reduce(function(a,b){return a.concat(q(b,c,w,j))},[]),k&&o({tippy:s,target:c,callback:function(){var a=m(r),b=a.content,d=c.getAttribute('title');d&&(b.innerHTML=d,v(c))},options:{attributes:!0}}),c._tippy=s,r._reference=c,a.push(s),T++,a},[])}function F(a){var b=[].slice.call(document.querySelectorAll(K.POPPER));b.forEach(function(b){var c=b._reference._tippy,d=c.options;(!0===d.hideOnClick||-1<d.trigger.indexOf('focus'))&&(!a||b!==a.popper)&&c.hide()})}function G(){var a=function(){J.usingTouch||(J.usingTouch=!0,J.iOS&&document.body.classList.add('tippy-touch'),J.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',b),J.onUserInputChange('touch'))},b=function(){var a;return function(){var c=performance.now();20>c-a&&(J.usingTouch=!1,document.removeEventListener('mousemove',b),!J.iOS&&document.body.classList.remove('tippy-touch'),J.onUserInputChange('mouse')),a=c}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return F();var b=r(a.target,K.REFERENCE),c=r(a.target,K.POPPER);if(!(c&&c._reference._tippy.options.interactive)){if(b){var d=b._tippy.options;if(!d.multiple&&J.usingTouch||!d.multiple&&-1<d.trigger.indexOf('click'))return F(b._tippy);if(!0!==d.hideOnClick||-1<d.trigger.indexOf('click'))return}F()}}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&e.call(b,K.REFERENCE)&&b.blur()}),!J.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function H(a,d){return J.supported&&!J._eventListenersBound&&(G(),J._eventListenersBound=!0),b(a)&&(a.refObj=!0,a.attributes=a.attributes||{},a.setAttribute=function(b,c){a.attributes[b]=c},a.getAttribute=function(b){return a.attributes[b]},a.removeAttribute=function(b){delete a.attributes[b]},a.addEventListener=function(){},a.removeEventListener=function(){},a.classList={classNames:{},add:function(b){return a.classList.classNames[b]=!0},remove:function(b){return delete a.classList.classNames[b],!0},contains:function(b){return!!a.classList.classNames[b]}}),d=P({},L,d),{selector:a,options:d,tooltips:J.supported?E(c(a),d):[],destroyAll:function(){this.tooltips.forEach(function(a){return a.destroy()})}}}a=a&&a.hasOwnProperty('default')?a['default']:a;var I='undefined'!=typeof window,J={};I&&(J.supported='requestAnimationFrame'in window,J.supportsTouch='ontouchstart'in window,J.usingTouch=!1,J.dynamicInputDetection=!0,J.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,J.onUserInputChange=function(){},J._eventListenersBound=!1);var K={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},L={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},M=J.supported&&Object.keys(L),N=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},O=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),P=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},Q={};if(I){var R=Element.prototype;Q=R.matches||R.matchesSelector||R.webkitMatchesSelector||R.mozMatchesSelector||R.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c}}var e=Q,S=function(){function a(b){for(var c in N(this,a),b)this[c]=b[c];this.state={destroyed:!1,visible:!1,enabled:!0}}return O(a,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(a){var b=this;if(!this.state.destroyed&&this.state.enabled){var c=this.popper,d=this.reference,e=this.options,g=m(c),h=g.tooltip,i=g.backdrop,j=g.content;return d.refObj||document.body.contains(d)?void(e.onShow.call(c),a=B(void 0===a?e.duration:a,0),D([c,h,i],0),x(this),c.style.visibility='visible',this.state.visible=!0,l(function(){b.state.visible&&((!e.followCursor||J.usingTouch)&&(b.popperInstance.update(),D([c],e.updateDuration)),D([h,i,i?j:null],a),i&&getComputedStyle(i)[f('transform')],e.interactive&&d.classList.add('tippy-active'),e.sticky&&y(b),C([h,i],'visible'),z(b,a,function(){e.updateDuration||h.classList.add('tippy-notransition'),e.interactive&&c.focus(),e.onShown.call(c)}))})):void this.destroy()}}},{key:'hide',value:function(a){var b=this;if(!this.state.destroyed&&this.state.enabled){var c=this.popper,d=this.reference,e=this.options,f=m(c),g=f.tooltip,h=f.backdrop,i=f.content;e.onHide.call(c),a=B(void 0===a?e.duration:a,1),e.updateDuration||g.classList.remove('tippy-notransition'),e.interactive&&d.classList.remove('tippy-active'),c.style.visibility='hidden',this.state.visible=!1,D([g,h,h?i:null],a),C([g,h],'hidden'),e.interactive&&-1<e.trigger.indexOf('click')&&A(d)&&d.focus(),l(function(){z(b,a,function(){b.state.visible||!e.appendTo.contains(c)||(b.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',b._followCursorListener),e.appendTo.removeChild(c),e.onHidden.call(c))})})}}},{key:'destroy',value:function(){var a=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(b){a.reference.removeEventListener(b.event,b.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(b){a.reference.removeAttribute(b)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(a){a.disconnect()}),this.state.destroyed=!0)}}]),a}(),T=1;return H.browser=J,H.defaults=L,H}); | ||
(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('popper.js')):'function'==typeof define&&define.amd?define(['popper.js'],b):a.tippy=b(a.Popper)})(this,function(a){'use strict';function b(a){return'[object Object]'===Object.prototype.toString.call(a)}function c(a){if(a instanceof Element||b(a))return[a];if(a instanceof NodeList)return[].slice.call(a);if(Array.isArray(a))return a;try{return[].slice.call(document.querySelectorAll(a))}catch(a){return[]}}function d(a,b){var c=P.reduce(function(c,d){var e=a.getAttribute('data-tippy-'+d.toLowerCase())||b[d];return'false'===e&&(e=!1),'true'===e&&(e=!0),isFinite(e)&&!isNaN(parseFloat(e))&&(e=parseFloat(e)),'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return S({},b,c)}function f(a){for(var b=[!1,'webkit'],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length;d++){var e=b[d],f=e?''+e+c:a;if('undefined'!=typeof document.body.style[f])return f}return null}function g(a,b,c){var d=c.placement,e=c.distance,g=c.arrow,h=c.arrowType,i=c.arrowTransform,j=c.animateFill,k=c.inertia,l=c.animation,m=c.size,n=c.theme,o=c.html,p=c.zIndex,q=c.interactive,r=c.maxWidth,s=document.createElement('div');s.setAttribute('class','tippy-popper'),s.setAttribute('role','tooltip'),s.setAttribute('id','tippy-'+a),s.style.zIndex=p,s.style.maxWidth=r;var u=document.createElement('div');if(u.setAttribute('class','tippy-tooltip'),u.setAttribute('data-size',m),u.setAttribute('data-animation',l),u.setAttribute('data-state','hidden'),n.split(' ').forEach(function(a){u.classList.add(a+'-theme')}),g){var t=document.createElement('div');t.style[f('transform')]=i,'round'===h?(t.classList.add('tippy-roundarrow'),t.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):t.classList.add('tippy-arrow'),u.appendChild(t)}if(j){u.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),u.appendChild(v)}k&&u.setAttribute('data-inertia',''),q&&u.setAttribute('data-interactive','');var w=document.createElement('div');if(w.setAttribute('class','tippy-content'),o){var x;o instanceof Element?(w.appendChild(o),x='#'+o.id||'tippy-html-template'):(w.innerHTML=document.querySelector(o).innerHTML,x=o),s.setAttribute('data-html',''),q&&s.setAttribute('tabindex','-1'),u.setAttribute('data-template-id',x)}else w.innerHTML=b;return u.appendChild(w),s.appendChild(u),s}function h(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(M.supportsTouch&&d&&(b.addEventListener('touchstart',c.handleTrigger),e.push({event:'touchstart',handler:c.handleTrigger}),b.addEventListener('touchend',c.handleMouseleave),e.push({event:'touchend',handler:c.handleMouseleave})),b.addEventListener('mouseleave',c.handleMouseleave),e.push({event:'mouseleave',handler:c.handleMouseleave})),'focus'===a&&(b.addEventListener('blur',c.handleBlur),e.push({event:'blur',handler:c.handleBlur})),e)}function i(a,b){return b.arrow&&(b.animateFill=!1),b.appendTo&&'function'==typeof b.appendTo&&(b.appendTo=b.appendTo()),'function'==typeof b.html&&(b.html=b.html(a)),b}function j(a){return{tooltip:a.querySelector(N.TOOLTIP),backdrop:a.querySelector(N.BACKDROP),content:a.querySelector(N.CONTENT)}}function k(a){var b=a.getAttribute('title');b&&a.setAttribute('data-original-title',b),a.removeAttribute('title')}function l(a){return a.getAttribute('x-placement').replace(/-.+/,'')}function m(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=l(b),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function n(a,b,c,d){if(!b.length)return'';var e={scale:function(){return 1===b.length?''+b[0]:c?b[0]+', '+b[1]:b[1]+', '+b[0]}(),translate:function(){return 1===b.length?d?-b[0]+'px':b[0]+'px':c?d?b[0]+'px, '+-b[1]+'px':b[0]+'px, '+b[1]+'px':d?-b[1]+'px, '+b[0]+'px':b[1]+'px, '+b[0]+'px'}()};return e[a]}function o(a,b){if(!a)return'';return b?a:{X:'Y',Y:'X'}[a]}function p(a,b,c){var d=l(a),e='top'===d||'bottom'===d,g='right'===d||'bottom'===d,h=function(a){var b=c.match(a);return b?b[1]:''},i=function(a){var b=c.match(a);return b?b[1].split(',').map(parseFloat):[]},j={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},k={translate:{axis:h(/translate([XY])/),numbers:i(j.translate)},scale:{axis:h(/scale([XY])/),numbers:i(j.scale)}},m=c.replace(j.translate,'translate'+o(k.translate.axis,e)+'('+n('translate',k.translate.numbers,e,g)+')').replace(j.scale,'scale'+o(k.scale.axis,e)+'('+n('scale',k.scale.numbers,e,g)+')');b.style[f('transform')]=m}function q(a){var b=a.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}function r(a){return-(a-O.distance)+'px'}function s(a){requestAnimationFrame(function(){setTimeout(a,0)})}function t(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(e.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function u(a,b){return Array.isArray(a)?a[b]:a}function v(a,b){a.forEach(function(a){a&&a.setAttribute('data-state',b)})}function w(a,b){a.forEach(function(a){a&&(a.style[f('transitionDuration')]=b+'ms')})}function x(a){var b=this;if(C.call(this),!this.state.visible){if(this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),a);var c=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;c?this._internal.showTimeout=setTimeout(function(){b.show()},c):this.show()}}function y(){var a=this;if(C.call(this),!!this.state.visible){var b=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;b?this._internal.hideTimeout=setTimeout(function(){a.state.visible&&a.hide()},b):this.hide()}}function z(){var a=this;return{handleTrigger:function(b){if(!a.state.disabled){var c=M.supportsTouch&&M.usingTouch&&('mouseenter'===b.type||'focus'===b.type);c&&a.options.touchHold||(a._internal.lastTriggerEvent=b,'click'===b.type&&'persistent'!==a.options.hideOnClick&&a.state.visible?y.call(a):x.call(a,b),c&&M.iOS&&a.reference.click&&a.reference.click())}},handleMouseleave:function(b){if(!('mouseleave'===b.type&&M.supportsTouch&&M.usingTouch&&a.options.touchHold)){if(a.options.interactive){var c=y.bind(a),d=function b(d){var e=t(d.target,N.REFERENCE),f=t(d.target,N.POPPER)===a.popper,g=e===a.reference;f||g||m(d,a.popper,a.options)&&(document.body.removeEventListener('mouseleave',c),document.removeEventListener('mousemove',b),y.call(a))};return document.body.addEventListener('mouseleave',c),void document.addEventListener('mousemove',d)}y.call(a)}},handleBlur:function(b){!b.relatedTarget||M.usingTouch||t(b.relatedTarget,N.POPPER)||y.call(a)}}}function A(){var b=this,c=this.popper,d=this.reference,e=this.options,g=j(c),h=g.tooltip,i=e.popperOptions,k='round'===e.arrowType?N.ROUND_ARROW:N.ARROW,m=h.querySelector(k),n=S({placement:e.placement},i||{},{modifiers:S({},i?i.modifiers:{},{arrow:S({element:k},i&&i.modifiers?i.modifiers.arrow:{}),flip:S({enabled:e.flip,padding:e.distance+5,behavior:e.flipBehavior},i&&i.modifiers?i.modifiers.flip:{}),offset:S({offset:e.offset},i&&i.modifiers?i.modifiers.offset:{})}),onCreate:function(){h.style[l(c)]=r(e.distance),m&&e.arrowTransform&&p(c,m,e.arrowTransform)},onUpdate:function(){var a=h.style;a.top='',a.bottom='',a.left='',a.right='',a[l(c)]=r(e.distance),m&&e.arrowTransform&&p(c,m,e.arrowTransform)}});return F.call(this,{target:c,callback:function(){var a=c.style;a[f('transitionDuration')]='0ms',b.popperInstance.update(),s(function(){a[f('transitionDuration')]=e.updateDuration+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new a(d,c,n)}function B(){var a=this,b=this.popper;this.options.appendTo.contains(b)||(this.options.appendTo.appendChild(b),this.popperInstance?(b.style[f('transform')]=null,this.popperInstance.update(),(!this.options.followCursor||M.usingTouch)&&this.popperInstance.enableEventListeners()):this.popperInstance=A.call(this),this.options.followCursor&&!M.usingTouch&&(!this._internal.followCursorListener&&D.call(this),document.addEventListener('mousemove',this._internal.followCursorListener),this.popperInstance.disableEventListeners(),s(function(){a._internal.followCursorListener(a._internal.lastTriggerEvent)})))}function C(){clearTimeout(this._internal.showTimeout),clearTimeout(this._internal.hideTimeout)}function D(){var a=this;this._internal.followCursorListener=function(b){var c=Math.round;if('focus'!==a._internal.lastTriggerEvent.type){var d,e,g=a.popper,h=a.options.offset,i=l(g),j=c(g.offsetWidth/2),k=c(g.offsetHeight/2),m=5,n=document.documentElement.offsetWidth||document.body.offsetWidth,o=b.pageX,p=b.pageY;'top'===i?(d=o-j+h,e=p-2*k):'bottom'===i?(d=o-j+h,e=p+10):'left'===i?(d=o-2*j,e=p-k+h):'right'===i?(d=o+5,e=p-k+h):void 0;('top'===i||'bottom'===i)&&(o+m+j+h>n&&(d=n-m-2*j),0>o-m-j+h&&(d=m)),g.style[f('transform')]='translate3d('+d+'px, '+e+'px, 0)'}}}function E(){var a=this,b=function(){a.popper.style[f('transitionDuration')]=a.options.updateDuration+'ms'},c=function(){a.popper.style[f('transitionDuration')]=''};s(function d(){a.popperInstance&&a.popperInstance.scheduleUpdate(),b(),a.state.visible?requestAnimationFrame(d):c()})}function F(a){var b=a.target,c=a.callback,d=a.options;if(window.MutationObserver){var e=new MutationObserver(c);e.observe(b,d),this._internal.mutationObservers.push(e)}}function G(a,b){if(!a)return b();var c=j(this.popper),d=c.tooltip,f=function(a,b){b&&d[a+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',b)},e=function a(c){c.target===d&&(f('remove',a),b())};f('remove',this._internal.transitionendListener),f('add',e),this._internal.transitionendListener=e}function H(a,b){return a.reduce(function(a,c){var e=W,f=i(c,b.performance?b:d(c,b)),l=f.html,m=f.trigger,n=f.touchHold,o=f.dynamicTitle,p=f.createPopperInstanceOnInit,q=c.getAttribute('title');if(!q&&!l)return a;c.setAttribute('data-tippy',''),c.setAttribute('aria-describedby','tippy-'+e),k(c);var r=g(e,q,f),s=new V({id:e,reference:c,popper:r,options:f});s.popperInstance=p?A.call(s):null;var t=z.call(s);return s.listeners=m.trim().split(' ').reduce(function(a,b){return a.concat(h(b,c,t,n))},[]),o&&F.call(s,{target:c,callback:function(){var a=j(r),b=a.content,d=c.getAttribute('title');d&&(b.innerHTML=d,k(c))},options:{attributes:!0}}),c._tippy=s,r._reference=c,a.push(s),W++,a},[])}function I(a){var b=[].slice.call(document.querySelectorAll(N.POPPER));b.forEach(function(b){var c=b._reference._tippy,d=c.options;(!0===d.hideOnClick||-1<d.trigger.indexOf('focus'))&&(!a||b!==a.popper)&&c.hide()})}function J(){var a=function(){M.usingTouch||(M.usingTouch=!0,M.iOS&&document.body.classList.add('tippy-touch'),M.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',b),M.onUserInputChange('touch'))},b=function(){var a;return function(){var c=performance.now();20>c-a&&(M.usingTouch=!1,document.removeEventListener('mousemove',b),!M.iOS&&document.body.classList.remove('tippy-touch'),M.onUserInputChange('mouse')),a=c}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return I();var b=t(a.target,N.REFERENCE),c=t(a.target,N.POPPER);if(!(c&&c._reference._tippy.options.interactive)){if(b){var d=b._tippy.options;if(!d.multiple&&M.usingTouch||!d.multiple&&-1<d.trigger.indexOf('click'))return I(b._tippy);if(!0!==d.hideOnClick||-1<d.trigger.indexOf('click'))return}I()}}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&e.call(b,N.REFERENCE)&&b.blur()}),!M.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function K(a,d){return M.supported&&!M._eventListenersBound&&(J(),M._eventListenersBound=!0),b(a)&&(a.refObj=!0,a.attributes=a.attributes||{},a.setAttribute=function(b,c){a.attributes[b]=c},a.getAttribute=function(b){return a.attributes[b]},a.removeAttribute=function(b){delete a.attributes[b]},a.addEventListener=function(){},a.removeEventListener=function(){},a.classList={classNames:{},add:function(b){return a.classList.classNames[b]=!0},remove:function(b){return delete a.classList.classNames[b],!0},contains:function(b){return!!a.classList.classNames[b]}}),d=S({},O,d),{selector:a,options:d,tooltips:M.supported?H(c(a),d):[],destroyAll:function(){this.tooltips.forEach(function(a){return a.destroy()})}}}a=a&&a.hasOwnProperty('default')?a['default']:a;var L='undefined'!=typeof window,M={};L&&(M.supported='requestAnimationFrame'in window,M.supportsTouch='ontouchstart'in window,M.usingTouch=!1,M.dynamicInputDetection=!0,M.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,M.onUserInputChange=function(){},M._eventListenersBound=!1);var N={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},O={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},P=M.supported&&Object.keys(O),Q=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},R=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),S=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},T={};if(L){var U=Element.prototype;T=U.matches||U.matchesSelector||U.webkitMatchesSelector||U.mozMatchesSelector||U.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c}}var e=T,V=function(){function a(b){for(var c in Q(this,a),b)this[c]=b[c];this.state={destroyed:!1,visible:!1,enabled:!0},this._internal={mutationObservers:[]}}return R(a,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(a){var b=this;if(!this.state.destroyed&&this.state.enabled){var c=this.popper,d=this.reference,e=this.options,g=j(c),h=g.tooltip,i=g.backdrop,k=g.content;return d.refObj||document.body.contains(d)?void(e.onShow.call(c),a=u(void 0===a?e.duration:a,0),w([c,h,i],0),B.call(this),c.style.visibility='visible',this.state.visible=!0,s(function(){b.state.visible&&((!e.followCursor||M.usingTouch)&&(b.popperInstance.update(),w([c],e.updateDuration)),w([h,i,i?k:null],a),i&&getComputedStyle(i)[f('transform')],e.interactive&&d.classList.add('tippy-active'),e.sticky&&E.call(b),v([h,i],'visible'),G.call(b,a,function(){e.updateDuration||h.classList.add('tippy-notransition'),e.interactive&&c.focus(),e.onShown.call(c)}))})):void this.destroy()}}},{key:'hide',value:function(a){var b=this;if(!this.state.destroyed&&this.state.enabled){var c=this.popper,d=this.reference,e=this.options,f=j(c),g=f.tooltip,h=f.backdrop,i=f.content;e.onHide.call(c),a=u(void 0===a?e.duration:a,1),e.updateDuration||g.classList.remove('tippy-notransition'),e.interactive&&d.classList.remove('tippy-active'),c.style.visibility='hidden',this.state.visible=!1,w([g,h,h?i:null],a),v([g,h],'hidden'),e.interactive&&-1<e.trigger.indexOf('click')&&q(d)&&d.focus(),s(function(){G.call(b,a,function(){b.state.visible||!e.appendTo.contains(c)||(b.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',b._internal.followCursorListener),e.appendTo.removeChild(c),e.onHidden.call(c))})})}}},{key:'destroy',value:function(){var a=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(b){a.reference.removeEventListener(b.event,b.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(b){a.reference.removeAttribute(b)}),this.popperInstance&&this.popperInstance.destroy(),this._internal.mutationObservers.forEach(function(a){a.disconnect()}),this.state.destroyed=!0)}}]),a}(),W=1;return K.browser=M,K.defaults=O,K}); |
{ | ||
"name": "tippy.js", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Vanilla JS Tooltip Library", | ||
@@ -5,0 +5,0 @@ "main": "dist/tippy.all.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
429945
8670