vue-tippy
Advanced tools
Comparing version 6.0.0-alpha.19 to 6.0.0-alpha.20
/*! | ||
* vue-tippy v6.0.0-alpha.18 | ||
* vue-tippy v6.0.0-alpha.19 | ||
* (c) 2021 Georges KABBOUCHI | ||
* @license MIT | ||
*/ | ||
var VueTippy=function(t,e){"use strict";var n="top",r="bottom",o="right",i="left",a=[n,r,o,i],s=a.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),p=[].concat(a,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),c=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function u(t){return t?(t.nodeName||"").toLowerCase():null}function f(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function l(t){return t instanceof f(t).Element||t instanceof Element}function d(t){return t instanceof f(t).HTMLElement||t instanceof HTMLElement}function m(t){return t.split("-")[0]}function v(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function h(t,e){var n,r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&((n=r)instanceof f(n).ShadowRoot||n instanceof ShadowRoot)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function g(t){return f(t).getComputedStyle(t)}function b(t){return["table","td","th"].indexOf(u(t))>=0}function y(t){return((l(t)?t.ownerDocument:t.document)||window.document).documentElement}function w(t){return"html"===u(t)?t:t.assignedSlot||t.parentNode||t.host||y(t)}function x(t){if(!d(t)||"fixed"===g(t).position)return null;var e=t.offsetParent;if(e){var n=y(e);if("body"===u(e)&&"static"===g(e).position&&"static"!==g(n).position)return n}return e}function O(t){for(var e=f(t),n=x(t);n&&b(n)&&"static"===g(n).position;)n=x(n);return n&&"body"===u(n)&&"static"===g(n).position?e:n||function(t){for(var e=w(t);d(e)&&["html","body"].indexOf(u(e))<0;){var n=g(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}function E(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function T(t,e,n){return Math.max(t,Math.min(e,n))}function A(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function C(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var j={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D(t){var e,a=t.popper,s=t.popperRect,p=t.placement,c=t.offsets,u=t.position,l=t.gpuAcceleration,d=t.adaptive,m=t.roundOffsets?function(t){var e=t.y,n=window.devicePixelRatio||1;return{x:Math.round(t.x*n)/n||0,y:Math.round(e*n)/n||0}}(c):c,v=m.x,h=void 0===v?0:v,g=m.y,b=void 0===g?0:g,w=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),E=i,T=n,A=window;if(d){var C=O(a);C===f(a)&&(C=y(a)),p===n&&(T=r,b-=C.clientHeight-s.height,b*=l?1:-1),p===i&&(E=o,h-=C.clientWidth-s.width,h*=l?1:-1)}var D,M=Object.assign({position:u},d&&j);return Object.assign(Object.assign({},M),{},l?((D={})[T]=x?"0":"",D[E]=w?"0":"",D.transform=(A.devicePixelRatio||1)<2?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",D):((e={})[T]=x?b+"px":"",e[E]=w?h+"px":"",e.transform="",e))}var M={passive:!0};var L={left:"right",right:"left",bottom:"top",top:"bottom"};function P(t){return t.replace(/left|right|bottom|top/g,(function(t){return L[t]}))}var k={start:"end",end:"start"};function R(t){return t.replace(/start|end/g,(function(t){return k[t]}))}function S(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function B(t){var e=f(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function H(t){return S(y(t)).left+B(t).scrollLeft}function V(t){var e=g(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function I(t,e){void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(u(e))>=0?e.ownerDocument.body:d(e)&&V(e)?e:t(w(e))}(t),r="body"===u(n),o=f(n),i=r?[o].concat(o.visualViewport||[],V(n)?n:[]):n,a=e.concat(i);return r?a:a.concat(I(w(i)))}function W(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function N(t,e){return"viewport"===e?W(function(t){var e=f(t),n=y(t),r=e.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+H(t),y:s}}(t)):d(e)?function(t){var e=S(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):W(function(t){var e=y(t),n=B(t),r=t.ownerDocument.body,o=Math.max(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+H(t),s=-n.scrollTop;return"rtl"===g(r||e).direction&&(a+=Math.max(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:s}}(y(t)))}function U(t,e,n){var r="clippingParents"===e?function(t){var e=I(w(t)),n=["absolute","fixed"].indexOf(g(t).position)>=0&&d(t)?O(t):t;return l(n)?e.filter((function(t){return l(t)&&h(t,n)&&"body"!==u(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),i=o.reduce((function(e,n){var r=N(t,n);return e.top=Math.max(r.top,e.top),e.right=Math.min(r.right,e.right),e.bottom=Math.min(r.bottom,e.bottom),e.left=Math.max(r.left,e.left),e}),N(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function _(t){return t.split("-")[1]}function q(t){var e,a=t.reference,s=t.element,p=t.placement,c=p?m(p):null,u=p?_(p):null,f=a.x+a.width/2-s.width/2,l=a.y+a.height/2-s.height/2;switch(c){case n:e={x:f,y:a.y-s.height};break;case r:e={x:f,y:a.y+a.height};break;case o:e={x:a.x+a.width,y:l};break;case i:e={x:a.x-s.width,y:l};break;default:e={x:a.x,y:a.y}}var d=c?E(c):null;if(null!=d){var v="y"===d?"height":"width";switch(u){case"start":e[d]=e[d]-(a[v]/2-s[v]/2);break;case"end":e[d]=e[d]+(a[v]/2-s[v]/2)}}return e}function $(t,e){void 0===e&&(e={});var i=e.placement,s=void 0===i?t.placement:i,p=e.boundary,c=void 0===p?"clippingParents":p,u=e.rootBoundary,f=void 0===u?"viewport":u,d=e.elementContext,m=void 0===d?"popper":d,v=e.altBoundary,h=void 0!==v&&v,g=e.padding,b=void 0===g?0:g,w=A("number"!=typeof b?b:C(b,a)),x=t.elements.reference,O=t.rects.popper,E=t.elements[h?"popper"===m?"reference":"popper":m],T=U(l(E)?E:E.contextElement||y(t.elements.popper),c,f),j=S(x),D=q({reference:j,element:O,strategy:"absolute",placement:s}),M=W(Object.assign(Object.assign({},O),D)),L="popper"===m?M:j,P={top:T.top-L.top+w.top,bottom:L.bottom-T.bottom+w.bottom,left:T.left-L.left+w.left,right:L.right-T.right+w.right},k=t.modifiersData.offset;if("popper"===m&&k){var R=k[s];Object.keys(P).forEach((function(t){var e=[o,r].indexOf(t)>=0?1:-1,i=[n,r].indexOf(t)>=0?"y":"x";P[t]+=R[i]*e}))}return P}function z(t,e){void 0===e&&(e={});var n=e.boundary,r=e.rootBoundary,o=e.padding,i=e.flipVariations,c=e.allowedAutoPlacements,u=void 0===c?p:c,f=_(e.placement),l=f?i?s:s.filter((function(t){return _(t)===f})):a,d=l.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=l);var v=d.reduce((function(e,i){return e[i]=$(t,{placement:i,boundary:n,rootBoundary:r,padding:o})[m(i)],e}),{});return Object.keys(v).sort((function(t,e){return v[t]-v[e]}))}function F(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function X(t){return[n,o,r,i].some((function(e){return t[e]>=0}))}function Y(t,e,n){void 0===n&&(n=!1);var r,o,i=y(e),a=S(t),s=d(e),p={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==u(e)||V(i))&&(p=(r=e)!==f(r)&&d(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:B(r)),d(e)?((c=S(e)).x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=H(i))),{x:a.left+p.scrollLeft-c.x,y:a.top+p.scrollTop-c.y,width:a.width,height:a.height}}function J(t){var e=new Map,n=new Set,r=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=e.get(r);o&&t(o)}})),r.push(o)}(t)})),r}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Q(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,r=t.defaultOptions,o=void 0===r?G:r;return function(t,e,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},G),o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},p=[],u=!1,f={state:s,setOptions:function(r){d(),s.options=Object.assign(Object.assign(Object.assign({},o),s.options),r),s.scrollParents={reference:l(t)?I(t):t.contextElement?I(t.contextElement):[],popper:I(e)};var i,a,u=function(t){var e=J(t);return c.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((i=[].concat(n,s.options.modifiers),a=i.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign(Object.assign(Object.assign({},n),e),{},{options:Object.assign(Object.assign({},n.options),e.options),data:Object.assign(Object.assign({},n.data),e.data)}):e,t}),{}),Object.keys(a).map((function(t){return a[t]}))));return s.orderedModifiers=u.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var r=n({state:s,name:t.name,instance:f,options:void 0===e?{}:e});p.push(r||function(){})}})),f.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,n=t.popper;if(K(e,n)){s.rects={reference:Y(e,O(n),"fixed"===s.options.strategy),popper:v(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:o.name,instance:f})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){f.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){d(),u=!0}};if(!K(t,e))return f;function d(){p.forEach((function(t){return t()})),p=[]}return f.setOptions(r).then((function(t){!u&&r.onFirstUpdate&&r.onFirstUpdate(t)})),f}}var Z=Q({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,p=f(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",n.update,M)})),s&&p.addEventListener("resize",n.update,M),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",n.update,M)})),s&&p.removeEventListener("resize",n.update,M)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=q({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,p=void 0===s||s,c={placement:m(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),D(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:p})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),D(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];d(o)&&u(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});d(r)&&u(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.name,a=t.options.offset,s=void 0===a?[0,0]:a,c=p.reduce((function(t,r){return t[r]=function(t,e,r){var a=m(t),s=[i,n].indexOf(a)>=0?-1:1,p="function"==typeof r?r(Object.assign(Object.assign({},e),{},{placement:t})):r,c=p[0],u=p[1];return c=c||0,u=(u||0)*s,[i,o].indexOf(a)>=0?{x:u,y:c}:{x:c,y:u}}(r,e.rects,s),t}),{}),u=c[e.placement],f=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u.x,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,a=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var p=a.mainAxis,c=void 0===p||p,u=a.altAxis,f=void 0===u||u,l=a.fallbackPlacements,d=a.padding,v=a.boundary,h=a.rootBoundary,g=a.altBoundary,b=a.flipVariations,y=void 0===b||b,w=a.allowedAutoPlacements,x=e.options.placement,O=m(x),E=l||(O===x||!y?[P(x)]:function(t){if("auto"===m(t))return[];var e=P(t);return[R(t),e,R(e)]}(x)),T=[x].concat(E).reduce((function(t,n){return t.concat("auto"===m(n)?z(e,{placement:n,boundary:v,rootBoundary:h,padding:d,flipVariations:y,allowedAutoPlacements:w}):n)}),[]),A=e.rects.reference,C=e.rects.popper,j=new Map,D=!0,M=T[0],L=0;L<T.length;L++){var k=T[L],S=m(k),B="start"===_(k),H=[n,r].indexOf(S)>=0,V=H?"width":"height",I=$(e,{placement:k,boundary:v,rootBoundary:h,altBoundary:g,padding:d}),W=H?B?o:i:B?r:n;A[V]>C[V]&&(W=P(W));var N=P(W),U=[];if(c&&U.push(I[S]<=0),f&&U.push(I[W]<=0,I[N]<=0),U.every((function(t){return t}))){M=k,D=!1;break}j.set(k,U)}if(D)for(var q=function(t){var e=T.find((function(e){var n=j.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return M=e,"break"},F=y?3:1;F>0;F--){if("break"===q(F))break}e.placement!==M&&(e.modifiersData[s]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,a=t.options,s=t.name,p=a.mainAxis,c=void 0===p||p,u=a.altAxis,f=void 0!==u&&u,l=a.tether,d=void 0===l||l,h=a.tetherOffset,g=void 0===h?0:h,b=$(e,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),y=m(e.placement),w=_(e.placement),x=!w,A=E(y),C="x"===A?"y":"x",j=e.modifiersData.popperOffsets,D=e.rects.reference,M=e.rects.popper,L="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,P={x:0,y:0};if(j){if(c){var k="y"===A?n:i,R="y"===A?r:o,S="y"===A?"height":"width",B=j[A],H=j[A]+b[k],V=j[A]-b[R],I=d?-M[S]/2:0,W="start"===w?D[S]:M[S],N="start"===w?-M[S]:-D[S],U=e.elements.arrow,q=d&&U?v(U):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=z[k],X=z[R],Y=T(0,D[S],q[S]),J=x?D[S]/2-I-Y-F-L:W-Y-F-L,G=x?-D[S]/2+I+Y+X+L:N+Y+X+L,K=e.elements.arrow&&O(e.elements.arrow),Q=e.modifiersData.offset?e.modifiersData.offset[e.placement][A]:0,Z=j[A]+G-Q,tt=T(d?Math.min(H,j[A]+J-Q-(K?"y"===A?K.clientTop||0:K.clientLeft||0:0)):H,B,d?Math.max(V,Z):V);j[A]=tt,P[A]=tt-B}if(f){var et=j[C],nt=T(et+b["x"===A?n:i],et,et-b["x"===A?r:o]);j[C]=nt,P[C]=nt-et}e.modifiersData[s]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,a=t.state,s=t.name,p=a.elements.arrow,c=a.modifiersData.popperOffsets,u=m(a.placement),f=E(u),l=[i,o].indexOf(u)>=0?"height":"width";if(p&&c){var d=a.modifiersData[s+"#persistent"].padding,h=v(p),g="y"===f?n:i,b="y"===f?r:o,y=a.rects.reference[l]+a.rects.reference[f]-c[f]-a.rects.popper[l],w=c[f]-a.rects.reference[f],x=O(p),A=x?"y"===f?x.clientHeight||0:x.clientWidth||0:0,C=A/2-h[l]/2+(y/2-w/2),j=T(d[g],C,A-h[l]-d[b]);a.modifiersData[s]=((e={})[f]=j,e.centerOffset=j-C,e)}},effect:function(t){var e=t.state,n=t.options,r=t.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,s=n.padding,p=void 0===s?0:s;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&h(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[r+"#persistent"]={padding:A("number"!=typeof p?p:C(p,a))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=$(e,{elementContext:"reference"}),s=$(e,{altBoundary:!0}),p=F(a,r),c=F(s,o,i),u=X(p),f=X(c);e.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),tt={passive:!0,capture:!0};function et(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function nt(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function rt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function ot(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function it(t){return[].concat(t)}function at(t,e){-1===t.indexOf(e)&&t.push(e)}function st(t){return t.split("-")[0]}function pt(t){return[].slice.call(t)}function ct(){return document.createElement("div")}function ut(t){return["Element","Fragment"].some((function(e){return nt(t,e)}))}function ft(t){return nt(t,"MouseEvent")}function lt(t){return ut(t)?[t]:function(t){return nt(t,"NodeList")}(t)?pt(t):Array.isArray(t)?t:pt(document.querySelectorAll(t))}function dt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function mt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function vt(t){var e=it(t)[0];return e&&e.ownerDocument||document}function ht(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var gt={isTouch:!1},bt=0;function yt(){gt.isTouch||(gt.isTouch=!0,window.performance&&document.addEventListener("mousemove",wt))}function wt(){var t=performance.now();t-bt<20&&(gt.isTouch=!1,document.removeEventListener("mousemove",wt)),bt=t}function xt(){var t,e=document.activeElement;(t=e)&&t._tippy&&t._tippy.reference===t&&(e.blur&&!e._tippy.state.isVisible&&e.blur())}var Ot="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Et=/MSIE |Trident\//.test(Ot),Tt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),At=Object.keys(Tt);function Ct(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name;return r&&(e[r]=void 0!==t[r]?t[r]:n.defaultValue),e}),{});return Object.assign({},t,{},e)}function jt(t,e){var n=Object.assign({},e,{content:rt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Ct(Object.assign({},Tt,{plugins:e}))):At).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Tt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Dt(t,e){t.innerHTML=e}function Mt(t){var e=ct();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",ut(t)?e.appendChild(t):Dt(e,t)),e}function Lt(t,e){ut(e.content)?(Dt(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Dt(t,e.content):t.textContent=e.content)}function Pt(t){var e=t.firstElementChild,n=pt(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function kt(t){var e=ct(),n=ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ct();function o(n,r){var o=Pt(e),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Lt(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(Mt(r.arrow))):i.appendChild(Mt(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),Lt(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props),{popper:e,onUpdate:o}}kt.$$tippy=!0;var Rt=1,St=[],Bt=[];function Ht(t,e){var n,r,o,i,a,s,p,c,u,f=jt(t,Object.assign({},Tt,{},Ct((n=e,Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{}))))),l=!1,d=!1,m=!1,v=!1,h=[],g=ot(Y,f.interactiveDebounce),b=Rt++,y=(u=f.plugins).filter((function(t,e){return u.indexOf(t)===e})),w={id:b,reference:t,popper:ct(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(e){if(w.state.isDestroyed)return;S("onBeforeUpdate",[w,e]),F();var n=w.props,r=jt(t,Object.assign({},w.props,{},e,{ignoreAttributes:!0}));w.props=r,z(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),g=ot(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?it(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");H(),R(),E&&E(n,r);w.popperInstance&&(Q(),ut().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));S("onAfterUpdate",[w,e])},setContent:function(t){w.setProps({content:t})},show:function(){var t=w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,r=gt.isTouch&&!w.props.touch,o=et(w.props.duration,0,Tt.duration);if(t||e||n||r)return;if(M().hasAttribute("disabled"))return;if(S("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,D()&&(O.style.visibility="visible");R(),U(),w.state.isMounted||(O.style.transition="none");if(D()){var i=P();dt([i.box,i.content],0)}p=function(){if(w.state.isVisible&&!v){if(v=!0,O.style.transition=w.props.moveTransition,D()&&w.props.animation){var t=P(),e=t.box,n=t.content;dt([e,n],o),mt([e,n],"visible")}B(),H(),at(Bt,w),w.state.isMounted=!0,S("onMount",[w]),w.props.animation&&D()&&function(t,e){q(t,e)}(o,(function(){w.state.isShown=!0,S("onShown",[w])}))}},function(){var t,e=w.props.appendTo,n=M();t=w.props.interactive&&e===Tt.appendTo||"parent"===e?n.parentNode:rt(e,[n]);t.contains(O)||t.appendChild(O);Q()}()},hide:function(){var t=!w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,r=et(w.props.duration,1,Tt.duration);if(t||e||n)return;if(S("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,v=!1,l=!1,D()&&(O.style.visibility="hidden");if(V(),_(),R(),D()){var o=P(),i=o.box,a=o.content;w.props.animation&&(dt([i,a],r),mt([i,a],"hidden"))}B(),H(),w.props.animation?D()&&function(t,e){q(t,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&e()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(t){L().addEventListener("mousemove",g),at(St,g),g(t)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;nt(),ut().forEach((function(t){t._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);Bt=Bt.filter((function(t){return t!==w})),w.state.isMounted=!1,S("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),F(),delete t._tippy,w.state.isDestroyed=!0,S("onDestroy",[w])}};if(!f.render)return w;var x=f.render(w),O=x.popper,E=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,t._tippy=w,O._tippy=w;var T=y.map((function(t){return t.fn(w)})),A=t.hasAttribute("aria-expanded");return z(),H(),R(),S("onCreate",[w]),f.showOnCreate&<(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(t){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",g),g(t))})),w;function C(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function j(){return"hold"===C()[0]}function D(){var t;return!!(null==(t=w.props.render)?void 0:t.$$tippy)}function M(){return c||t}function L(){var t=M().parentNode;return t?vt(t):document}function P(){return Pt(O)}function k(t){return w.state.isMounted&&!w.state.isVisible||gt.isTouch||a&&"focus"===a.type?0:et(w.props.delay,t?0:1,Tt.delay)}function R(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function S(t,e,n){var r;(void 0===n&&(n=!0),T.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=w.props)[t].apply(r,e)}function B(){var e=w.props.aria;if(e.content){var n="aria-"+e.content,r=O.id;it(w.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(w.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function H(){!A&&w.props.aria.expanded&&it(w.props.triggerTarget||t).forEach((function(t){w.props.interactive?t.setAttribute("aria-expanded",w.state.isVisible&&t===M()?"true":"false"):t.removeAttribute("aria-expanded")}))}function V(){L().removeEventListener("mousemove",g),St=St.filter((function(t){return t!==g}))}function I(t){if(!(gt.isTouch&&(m||"mousedown"===t.type)||w.props.interactive&&O.contains(t.target))){if(M().contains(t.target)){if(gt.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else S("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||_())}}function W(){m=!0}function N(){m=!1}function U(){var t=L();t.addEventListener("mousedown",I,!0),t.addEventListener("touchend",I,tt),t.addEventListener("touchstart",N,tt),t.addEventListener("touchmove",W,tt)}function _(){var t=L();t.removeEventListener("mousedown",I,!0),t.removeEventListener("touchend",I,tt),t.removeEventListener("touchstart",N,tt),t.removeEventListener("touchmove",W,tt)}function q(t,e){var n=P().box;function r(t){t.target===n&&(ht(n,"remove",r),e())}if(0===t)return e();ht(n,"remove",s),ht(n,"add",r),s=r}function $(e,n,r){void 0===r&&(r=!1),it(w.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),h.push({node:t,eventType:e,handler:n,options:r})}))}function z(){var t;j()&&($("touchstart",X,{passive:!0}),$("touchend",J,{passive:!0})),(t=w.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch($(t,X),t){case"mouseenter":$("mouseleave",J);break;case"focus":$(Et?"focusout":"blur",G);break;case"focusin":$("focusout",G)}}))}function F(){h.forEach((function(t){t.node.removeEventListener(t.eventType,t.handler,t.options)})),h=[]}function X(t){var e,n=!1;if(w.state.isEnabled&&!K(t)&&!d){var r="focus"===(null==(e=a)?void 0:e.type);a=t,c=t.currentTarget,H(),!w.state.isVisible&&ft(t)&&St.forEach((function(e){return e(t)})),"click"===t.type&&(w.props.trigger.indexOf("mouseenter")<0||l)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:lt(t),"click"===t.type&&(l=!n),n&&!r&&bt(t)}}function Y(t){var e=t.target,n=M().contains(e)||O.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props.interactiveBorder,a=st(o.placement),s=o.modifiersData.offset;return!s||(e.top-r+("bottom"===a?s.top.y:0)>i||r-e.bottom-("top"===a?s.bottom.y:0)>i||e.left-n+("right"===a?s.left.x:0)>i||n-e.right-("left"===a?s.right.x:0)>i)}))}(ut().concat(O).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),t)&&(V(),bt(t))}function J(t){K(t)||w.props.trigger.indexOf("click")>=0&&l||(w.props.interactive?w.hideWithInteractivity(t):bt(t))}function G(t){w.props.trigger.indexOf("focusin")<0&&t.target!==M()||w.props.interactive&&t.relatedTarget&&O.contains(t.relatedTarget)||bt(t)}function K(t){return!!gt.isTouch&&j()!==t.type.indexOf("touch")>=0}function Q(){nt();var e=w.props,n=e.popperOptions,r=e.placement,o=e.offset,i=e.getReferenceClientRect,a=e.moveTransition,s=D()?Pt(O).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:t,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(D()){var n=P().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];D()&&s&&u.push({name:"arrow",options:{element:s,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),w.popperInstance=Z(c,O,Object.assign({},n,{placement:r,onFirstUpdate:p,modifiers:u}))}function nt(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ut(){return pt(O.querySelectorAll("[data-tippy-root]"))}function lt(t){w.clearDelayTimeouts(),t&&S("onTrigger",[w,t]),U();var e=k(!0),n=C(),o=n[1];gt.isTouch&&"hold"===n[0]&&o&&(e=o),e?r=setTimeout((function(){w.show()}),e):w.show()}function bt(t){if(w.clearDelayTimeouts(),S("onUntrigger",[w,t]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&l)){var e=k(!1);e?o=setTimeout((function(){w.state.isVisible&&w.hide()}),e):i=requestAnimationFrame((function(){w.hide()}))}}else _()}}function Vt(t,e){void 0===e&&(e={});var n=Tt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",yt,tt),window.addEventListener("blur",xt);var r=Object.assign({},e,{plugins:n}),o=lt(t).reduce((function(t,e){var n=e&&Ht(e,r);return n&&t.push(n),t}),[]);return ut(t)?o[0]:o}Vt.defaultProps=Tt,Vt.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Tt[e]=t[e]}))},Vt.currentInput=gt;var It=function(t,e){void 0===e&&(e={});var n,r=t,o=[],i=e.overrides,a=[];function s(){o=r.map((function(t){return t.reference}))}function p(t){r.forEach((function(e){t?e.enable():e.disable()}))}function c(t){return r.map((function(e){var r=e.setProps;return e.setProps=function(o){r(o),e.reference===n&&t.setProps(o)},function(){e.setProps=r}}))}p(!1),s();var u,f,l={fn:function(){return{onDestroy:function(){p(!0)},onTrigger:function(t,e){var a=e.currentTarget,s=o.indexOf(a);if(a!==n){n=a;var p=(i||[]).concat("content").reduce((function(t,e){return t[e]=r[s].props[e],t}),{});t.setProps(Object.assign({},p,{getReferenceClientRect:"function"==typeof p.getReferenceClientRect?p.getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}},d=Vt(ct(),Object.assign({},(u=["overrides"],f=Object.assign({},e),u.forEach((function(t){delete f[t]})),f),{plugins:[l].concat(e.plugins||[]),triggerTarget:o})),m=d.setProps;return d.setProps=function(t){i=t.overrides||i,m(t)},d.setInstances=function(t){p(!0),a.forEach((function(t){return t()})),r=t,p(!1),s(),c(d),d.setProps({triggerTarget:o})},a=c(d),d},Wt={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(!(null==(e=t.props.render)?void 0:e.$$tippy))return{};var n=Pt(t.popper),r=n.box,o=n.content,i=t.props.animateFill?function(){var t=ct();return t.className="tippy-backdrop",mt([t],"hidden"),t}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var t=r.style.transitionDuration,e=Number(t.replace("ms",""));o.style.transitionDelay=Math.round(e/10)+"ms",i.style.transitionDuration=t,mt([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&mt([i],"hidden")}}}};var Nt={clientX:0,clientY:0},Ut=[];function _t(t){Nt={clientX:t.clientX,clientY:t.clientY}}var qt={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=vt(t.props.triggerTarget||e),r=!1,o=!1,i=!0,a=t.props;function s(){return"initial"===t.props.followCursor&&t.state.isVisible}function p(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function u(){r=!0,t.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||e.contains(n.target),o=t.props.followCursor,i=n.clientX,a=n.clientY,s=e.getBoundingClientRect(),p=i-s.left,c=a-s.top;!r&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=t.left+p,r=t.top+c);var s="horizontal"===o?t.top:r,u="vertical"===o?t.right:n,f="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:u-l,height:f-s,top:s,right:u,bottom:f,left:l}}})}function l(){t.props.followCursor&&(Ut.push({instance:t,doc:n}),function(t){t.addEventListener("mousemove",_t)}(n))}function d(){0===(Ut=Ut.filter((function(e){return e.instance!==t}))).filter((function(t){return t.doc===n})).length&&function(t){t.removeEventListener("mousemove",_t)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=t.props},onAfterUpdate:function(e,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!t.state.isMounted||o||s()||p()):(c(),u()))},onMount:function(){t.props.followCursor&&!o&&(i&&(f(Nt),i=!1),s()||p())},onTrigger:function(t,e){ft(e)&&(Nt={clientX:e.clientX,clientY:e.clientY}),o="focus"===e.type},onHidden:function(){t.props.followCursor&&(u(),c(),i=!0)}}}};var $t={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r=-1,o=!1,i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var i=o.state;t.props.inlinePositioning&&(e!==i.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n,r){if(n.length<2||null===t)return e;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===t,s=o.top,p=i.bottom,c=a?o.left:i.left,u=a?o.right:i.right;return{top:s,bottom:p,left:c,right:u,width:u-c,height:p-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(t){return t.left}))),l=Math.max.apply(Math,n.map((function(t){return t.right}))),d=n.filter((function(e){return"left"===t?e.left===f:e.right===l})),m=d[0].top,v=d[d.length-1].bottom;return{top:m,bottom:v,left:f,right:l,width:l-f,height:v-m};default:return e}}(st(t),n.getBoundingClientRect(),pt(n.getClientRects()),r)}(i.placement)}}),e=i.placement)}};function a(){var e;o||(e=function(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((null==(n=t.popperOptions)?void 0:n.modifiers)||[]).filter((function(t){return t.name!==e.name})),[e])})}}(t.props,i),o=!0,t.setProps(e),o=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(e,n){if(ft(n)){var o=pt(t.reference.getClientRects()),i=o.find((function(t){return t.left-2<=n.clientX&&t.right+2>=n.clientX&&t.top-2<=n.clientY&&t.bottom+2>=n.clientY}));r=o.indexOf(i)}},onUntrigger:function(){r=-1}}}};var zt={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var o=null,i=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=r("popper")?n.getBoundingClientRect():null;(s&&Ft(o,s)||p&&Ft(i,p))&&t.popperInstance&&t.popperInstance.update(),o=s,i=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function Ft(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}function Xt(t,n={},r={mount:!0}){const o=e.ref();let i=null;const a=()=>i||(i=document.createElement("fragment"),i),s=t=>{let n,r=e.isRef(t)?t.value:t;return e.isVNode(r)?(e.render(r,a()),n=()=>a()):"object"==typeof r?(e.render(e.h(r),a()),n=()=>a()):n=r,n},p=t=>{let n={};return n=e.isRef(t)?t.value:(e.isReactive(t),{...t}),n.content&&(n.content=s(n.content)),n.triggerTarget&&(n.triggerTarget=e.isRef(n.triggerTarget)?n.triggerTarget.value:n.triggerTarget),n},c=()=>{o.value&&o.value.setProps(p(n))},u=()=>{o.value&&n.content&&o.value.setContent(s(n.content))},f=()=>{o.value&&(o.value.destroy(),o.value=void 0),i=null},l=()=>{if(!t)return;let r=e.isRef(t)?t.value:t;"function"==typeof r&&(r=r()),r&&(o.value=Vt(r,p(n)),r.$tippy=d)},d={tippy:o,refresh:c,refreshContent:u,setContent:t=>{var e;null===(e=o.value)||void 0===e||e.setContent(s(t))},setProps:t=>{var e;null===(e=o.value)||void 0===e||e.setProps(p(t))},destroy:f,hide:()=>{var t;null===(t=o.value)||void 0===t||t.hide()},show:()=>{var t;null===(t=o.value)||void 0===t||t.show()},disable:()=>{var t;null===(t=o.value)||void 0===t||t.disable()},enable:()=>{var t;null===(t=o.value)||void 0===t||t.enable()},unmount:()=>{var t;null===(t=o.value)||void 0===t||t.unmount()},mount:l};if(r.mount){const t=e.getCurrentInstance();t?(t.isMounted?l():e.onMounted(l),e.onUnmounted(()=>{f()})):l()}return e.isRef(n)||e.isReactive(n)?e.watch(n,c,{immediate:!1}):e.isRef(n.content)&&e.watch(n.content,u,{immediate:!1}),d}Vt.setDefaultProps({render:kt}),Vt.setDefaultProps({onShow:t=>{if(!t.props.content)return!1}});const Yt=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Jt={};Object.keys(Vt.defaultProps).forEach(t=>{Jt[t]=Yt.includes(t)?{type:Boolean,default:function(){return Vt.defaultProps[t]}}:{default:function(){return Vt.defaultProps[t]}}});const Gt=e.defineComponent({props:Jt,setup(t,{slots:n}){const r=e.ref();let o={...t};null!=n.content&&void 0!==n.content&&(o.content={render:()=>n.content()});return{elem:r,...Xt(r,o)}},render(){let t=this.$slots.default?this.$slots.default():[];return e.h("span",{ref:"elem"},t)}}),Kt={mounted(t,e,n){const r=e.value||{};n.props&&n.props.onTippyShow&&(r.onShow=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyShow(...t)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyShown(...t)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyHidden(...t)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyHide(...t)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyMount(...t)}),t.getAttribute("title")&&!r.content&&(r.content=t.getAttribute("title"),t.removeAttribute("title")),t.getAttribute("content")&&!r.content&&(r.content=t.getAttribute("content")),Xt(t,r)},unmounted(t){t.$tippy?t.$tippy.destroy():t._tippy&&t._tippy.destroy()},updated(t,e){const n=e.value||{};t.getAttribute("title")&&!n.content&&(n.content=t.getAttribute("title"),t.removeAttribute("title")),t.getAttribute("content")&&!n.content&&(n.content=t.getAttribute("content")),t.$tippy?t.$tippy.setProps(n||{}):t._tippy&&t._tippy.setProps(n||{})}},Qt={install(t,e={}){Vt.setDefaultProps(e.defaultProps||{}),t.directive(e.directive||"tippy",Kt),t.component(e.component||"tippy",Gt)}};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');const Zt=Vt.setDefaultProps;return Zt({ignoreAttributes:!0,plugins:[zt,$t,qt,Wt]}),t.Tippy=Gt,t.default=Qt,t.directive=Kt,t.plugin=Qt,t.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',t.setDefaultProps=Zt,t.tippy=Vt,t.useSingleton=function(t,n){const r=e.ref();return e.onMounted(()=>{const e=(Array.isArray(t)?t.map(t=>t.value):t.value).map(t=>t instanceof Element?t._tippy:t).filter(Boolean);r.value=It(e,n)}),{singleton:r}},t.useTippy=Xt,Object.defineProperty(t,"__esModule",{value:!0}),t}({},Vue); | ||
var VueTippy=function(t,e){"use strict";var n="top",r="bottom",o="right",i="left",a=[n,r,o,i],s=a.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),p=[].concat(a,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),c=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function u(t){return t?(t.nodeName||"").toLowerCase():null}function f(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function l(t){return t instanceof f(t).Element||t instanceof Element}function d(t){return t instanceof f(t).HTMLElement||t instanceof HTMLElement}function m(t){return t.split("-")[0]}function v(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function h(t,e){var n,r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&((n=r)instanceof f(n).ShadowRoot||n instanceof ShadowRoot)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function g(t){return f(t).getComputedStyle(t)}function b(t){return["table","td","th"].indexOf(u(t))>=0}function y(t){return((l(t)?t.ownerDocument:t.document)||window.document).documentElement}function w(t){return"html"===u(t)?t:t.assignedSlot||t.parentNode||t.host||y(t)}function x(t){if(!d(t)||"fixed"===g(t).position)return null;var e=t.offsetParent;if(e){var n=y(e);if("body"===u(e)&&"static"===g(e).position&&"static"!==g(n).position)return n}return e}function O(t){for(var e=f(t),n=x(t);n&&b(n)&&"static"===g(n).position;)n=x(n);return n&&"body"===u(n)&&"static"===g(n).position?e:n||function(t){for(var e=w(t);d(e)&&["html","body"].indexOf(u(e))<0;){var n=g(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}function E(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function T(t,e,n){return Math.max(t,Math.min(e,n))}function A(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function C(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var j={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D(t){var e,a=t.popper,s=t.popperRect,p=t.placement,c=t.offsets,u=t.position,l=t.gpuAcceleration,d=t.adaptive,m=t.roundOffsets?function(t){var e=t.y,n=window.devicePixelRatio||1;return{x:Math.round(t.x*n)/n||0,y:Math.round(e*n)/n||0}}(c):c,v=m.x,h=void 0===v?0:v,g=m.y,b=void 0===g?0:g,w=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),E=i,T=n,A=window;if(d){var C=O(a);C===f(a)&&(C=y(a)),p===n&&(T=r,b-=C.clientHeight-s.height,b*=l?1:-1),p===i&&(E=o,h-=C.clientWidth-s.width,h*=l?1:-1)}var D,M=Object.assign({position:u},d&&j);return Object.assign(Object.assign({},M),{},l?((D={})[T]=x?"0":"",D[E]=w?"0":"",D.transform=(A.devicePixelRatio||1)<2?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",D):((e={})[T]=x?b+"px":"",e[E]=w?h+"px":"",e.transform="",e))}var M={passive:!0};var L={left:"right",right:"left",bottom:"top",top:"bottom"};function P(t){return t.replace(/left|right|bottom|top/g,(function(t){return L[t]}))}var k={start:"end",end:"start"};function R(t){return t.replace(/start|end/g,(function(t){return k[t]}))}function S(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function B(t){var e=f(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function H(t){return S(y(t)).left+B(t).scrollLeft}function V(t){var e=g(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function I(t,e){void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(u(e))>=0?e.ownerDocument.body:d(e)&&V(e)?e:t(w(e))}(t),r="body"===u(n),o=f(n),i=r?[o].concat(o.visualViewport||[],V(n)?n:[]):n,a=e.concat(i);return r?a:a.concat(I(w(i)))}function W(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function N(t,e){return"viewport"===e?W(function(t){var e=f(t),n=y(t),r=e.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+H(t),y:s}}(t)):d(e)?function(t){var e=S(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):W(function(t){var e=y(t),n=B(t),r=t.ownerDocument.body,o=Math.max(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+H(t),s=-n.scrollTop;return"rtl"===g(r||e).direction&&(a+=Math.max(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:s}}(y(t)))}function U(t,e,n){var r="clippingParents"===e?function(t){var e=I(w(t)),n=["absolute","fixed"].indexOf(g(t).position)>=0&&d(t)?O(t):t;return l(n)?e.filter((function(t){return l(t)&&h(t,n)&&"body"!==u(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),i=o.reduce((function(e,n){var r=N(t,n);return e.top=Math.max(r.top,e.top),e.right=Math.min(r.right,e.right),e.bottom=Math.min(r.bottom,e.bottom),e.left=Math.max(r.left,e.left),e}),N(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function _(t){return t.split("-")[1]}function q(t){var e,a=t.reference,s=t.element,p=t.placement,c=p?m(p):null,u=p?_(p):null,f=a.x+a.width/2-s.width/2,l=a.y+a.height/2-s.height/2;switch(c){case n:e={x:f,y:a.y-s.height};break;case r:e={x:f,y:a.y+a.height};break;case o:e={x:a.x+a.width,y:l};break;case i:e={x:a.x-s.width,y:l};break;default:e={x:a.x,y:a.y}}var d=c?E(c):null;if(null!=d){var v="y"===d?"height":"width";switch(u){case"start":e[d]=e[d]-(a[v]/2-s[v]/2);break;case"end":e[d]=e[d]+(a[v]/2-s[v]/2)}}return e}function $(t,e){void 0===e&&(e={});var i=e.placement,s=void 0===i?t.placement:i,p=e.boundary,c=void 0===p?"clippingParents":p,u=e.rootBoundary,f=void 0===u?"viewport":u,d=e.elementContext,m=void 0===d?"popper":d,v=e.altBoundary,h=void 0!==v&&v,g=e.padding,b=void 0===g?0:g,w=A("number"!=typeof b?b:C(b,a)),x=t.elements.reference,O=t.rects.popper,E=t.elements[h?"popper"===m?"reference":"popper":m],T=U(l(E)?E:E.contextElement||y(t.elements.popper),c,f),j=S(x),D=q({reference:j,element:O,strategy:"absolute",placement:s}),M=W(Object.assign(Object.assign({},O),D)),L="popper"===m?M:j,P={top:T.top-L.top+w.top,bottom:L.bottom-T.bottom+w.bottom,left:T.left-L.left+w.left,right:L.right-T.right+w.right},k=t.modifiersData.offset;if("popper"===m&&k){var R=k[s];Object.keys(P).forEach((function(t){var e=[o,r].indexOf(t)>=0?1:-1,i=[n,r].indexOf(t)>=0?"y":"x";P[t]+=R[i]*e}))}return P}function z(t,e){void 0===e&&(e={});var n=e.boundary,r=e.rootBoundary,o=e.padding,i=e.flipVariations,c=e.allowedAutoPlacements,u=void 0===c?p:c,f=_(e.placement),l=f?i?s:s.filter((function(t){return _(t)===f})):a,d=l.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=l);var v=d.reduce((function(e,i){return e[i]=$(t,{placement:i,boundary:n,rootBoundary:r,padding:o})[m(i)],e}),{});return Object.keys(v).sort((function(t,e){return v[t]-v[e]}))}function F(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function X(t){return[n,o,r,i].some((function(e){return t[e]>=0}))}function Y(t,e,n){void 0===n&&(n=!1);var r,o,i=y(e),a=S(t),s=d(e),p={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==u(e)||V(i))&&(p=(r=e)!==f(r)&&d(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:B(r)),d(e)?((c=S(e)).x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=H(i))),{x:a.left+p.scrollLeft-c.x,y:a.top+p.scrollTop-c.y,width:a.width,height:a.height}}function J(t){var e=new Map,n=new Set,r=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=e.get(r);o&&t(o)}})),r.push(o)}(t)})),r}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Q(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,r=t.defaultOptions,o=void 0===r?G:r;return function(t,e,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},G),o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},p=[],u=!1,f={state:s,setOptions:function(r){d(),s.options=Object.assign(Object.assign(Object.assign({},o),s.options),r),s.scrollParents={reference:l(t)?I(t):t.contextElement?I(t.contextElement):[],popper:I(e)};var i,a,u=function(t){var e=J(t);return c.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((i=[].concat(n,s.options.modifiers),a=i.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign(Object.assign(Object.assign({},n),e),{},{options:Object.assign(Object.assign({},n.options),e.options),data:Object.assign(Object.assign({},n.data),e.data)}):e,t}),{}),Object.keys(a).map((function(t){return a[t]}))));return s.orderedModifiers=u.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var r=n({state:s,name:t.name,instance:f,options:void 0===e?{}:e});p.push(r||function(){})}})),f.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,n=t.popper;if(K(e,n)){s.rects={reference:Y(e,O(n),"fixed"===s.options.strategy),popper:v(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:o.name,instance:f})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){f.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){d(),u=!0}};if(!K(t,e))return f;function d(){p.forEach((function(t){return t()})),p=[]}return f.setOptions(r).then((function(t){!u&&r.onFirstUpdate&&r.onFirstUpdate(t)})),f}}var Z=Q({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,p=f(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",n.update,M)})),s&&p.addEventListener("resize",n.update,M),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",n.update,M)})),s&&p.removeEventListener("resize",n.update,M)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=q({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,p=void 0===s||s,c={placement:m(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),D(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:p})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),D(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];d(o)&&u(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});d(r)&&u(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.name,a=t.options.offset,s=void 0===a?[0,0]:a,c=p.reduce((function(t,r){return t[r]=function(t,e,r){var a=m(t),s=[i,n].indexOf(a)>=0?-1:1,p="function"==typeof r?r(Object.assign(Object.assign({},e),{},{placement:t})):r,c=p[0],u=p[1];return c=c||0,u=(u||0)*s,[i,o].indexOf(a)>=0?{x:u,y:c}:{x:c,y:u}}(r,e.rects,s),t}),{}),u=c[e.placement],f=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u.x,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,a=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var p=a.mainAxis,c=void 0===p||p,u=a.altAxis,f=void 0===u||u,l=a.fallbackPlacements,d=a.padding,v=a.boundary,h=a.rootBoundary,g=a.altBoundary,b=a.flipVariations,y=void 0===b||b,w=a.allowedAutoPlacements,x=e.options.placement,O=m(x),E=l||(O===x||!y?[P(x)]:function(t){if("auto"===m(t))return[];var e=P(t);return[R(t),e,R(e)]}(x)),T=[x].concat(E).reduce((function(t,n){return t.concat("auto"===m(n)?z(e,{placement:n,boundary:v,rootBoundary:h,padding:d,flipVariations:y,allowedAutoPlacements:w}):n)}),[]),A=e.rects.reference,C=e.rects.popper,j=new Map,D=!0,M=T[0],L=0;L<T.length;L++){var k=T[L],S=m(k),B="start"===_(k),H=[n,r].indexOf(S)>=0,V=H?"width":"height",I=$(e,{placement:k,boundary:v,rootBoundary:h,altBoundary:g,padding:d}),W=H?B?o:i:B?r:n;A[V]>C[V]&&(W=P(W));var N=P(W),U=[];if(c&&U.push(I[S]<=0),f&&U.push(I[W]<=0,I[N]<=0),U.every((function(t){return t}))){M=k,D=!1;break}j.set(k,U)}if(D)for(var q=function(t){var e=T.find((function(e){var n=j.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return M=e,"break"},F=y?3:1;F>0;F--){if("break"===q(F))break}e.placement!==M&&(e.modifiersData[s]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,a=t.options,s=t.name,p=a.mainAxis,c=void 0===p||p,u=a.altAxis,f=void 0!==u&&u,l=a.tether,d=void 0===l||l,h=a.tetherOffset,g=void 0===h?0:h,b=$(e,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),y=m(e.placement),w=_(e.placement),x=!w,A=E(y),C="x"===A?"y":"x",j=e.modifiersData.popperOffsets,D=e.rects.reference,M=e.rects.popper,L="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,P={x:0,y:0};if(j){if(c){var k="y"===A?n:i,R="y"===A?r:o,S="y"===A?"height":"width",B=j[A],H=j[A]+b[k],V=j[A]-b[R],I=d?-M[S]/2:0,W="start"===w?D[S]:M[S],N="start"===w?-M[S]:-D[S],U=e.elements.arrow,q=d&&U?v(U):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=z[k],X=z[R],Y=T(0,D[S],q[S]),J=x?D[S]/2-I-Y-F-L:W-Y-F-L,G=x?-D[S]/2+I+Y+X+L:N+Y+X+L,K=e.elements.arrow&&O(e.elements.arrow),Q=e.modifiersData.offset?e.modifiersData.offset[e.placement][A]:0,Z=j[A]+G-Q,tt=T(d?Math.min(H,j[A]+J-Q-(K?"y"===A?K.clientTop||0:K.clientLeft||0:0)):H,B,d?Math.max(V,Z):V);j[A]=tt,P[A]=tt-B}if(f){var et=j[C],nt=T(et+b["x"===A?n:i],et,et-b["x"===A?r:o]);j[C]=nt,P[C]=nt-et}e.modifiersData[s]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,a=t.state,s=t.name,p=a.elements.arrow,c=a.modifiersData.popperOffsets,u=m(a.placement),f=E(u),l=[i,o].indexOf(u)>=0?"height":"width";if(p&&c){var d=a.modifiersData[s+"#persistent"].padding,h=v(p),g="y"===f?n:i,b="y"===f?r:o,y=a.rects.reference[l]+a.rects.reference[f]-c[f]-a.rects.popper[l],w=c[f]-a.rects.reference[f],x=O(p),A=x?"y"===f?x.clientHeight||0:x.clientWidth||0:0,C=A/2-h[l]/2+(y/2-w/2),j=T(d[g],C,A-h[l]-d[b]);a.modifiersData[s]=((e={})[f]=j,e.centerOffset=j-C,e)}},effect:function(t){var e=t.state,n=t.options,r=t.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,s=n.padding,p=void 0===s?0:s;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&h(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[r+"#persistent"]={padding:A("number"!=typeof p?p:C(p,a))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=$(e,{elementContext:"reference"}),s=$(e,{altBoundary:!0}),p=F(a,r),c=F(s,o,i),u=X(p),f=X(c);e.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),tt={passive:!0,capture:!0};function et(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function nt(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function rt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function ot(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function it(t){return[].concat(t)}function at(t,e){-1===t.indexOf(e)&&t.push(e)}function st(t){return t.split("-")[0]}function pt(t){return[].slice.call(t)}function ct(){return document.createElement("div")}function ut(t){return["Element","Fragment"].some((function(e){return nt(t,e)}))}function ft(t){return nt(t,"MouseEvent")}function lt(t){return ut(t)?[t]:function(t){return nt(t,"NodeList")}(t)?pt(t):Array.isArray(t)?t:pt(document.querySelectorAll(t))}function dt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function mt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function vt(t){var e=it(t)[0];return e&&e.ownerDocument||document}function ht(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var gt={isTouch:!1},bt=0;function yt(){gt.isTouch||(gt.isTouch=!0,window.performance&&document.addEventListener("mousemove",wt))}function wt(){var t=performance.now();t-bt<20&&(gt.isTouch=!1,document.removeEventListener("mousemove",wt)),bt=t}function xt(){var t,e=document.activeElement;(t=e)&&t._tippy&&t._tippy.reference===t&&(e.blur&&!e._tippy.state.isVisible&&e.blur())}var Ot="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Et=/MSIE |Trident\//.test(Ot),Tt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),At=Object.keys(Tt);function Ct(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name;return r&&(e[r]=void 0!==t[r]?t[r]:n.defaultValue),e}),{});return Object.assign({},t,{},e)}function jt(t,e){var n=Object.assign({},e,{content:rt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Ct(Object.assign({},Tt,{plugins:e}))):At).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Tt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Dt(t,e){t.innerHTML=e}function Mt(t){var e=ct();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",ut(t)?e.appendChild(t):Dt(e,t)),e}function Lt(t,e){ut(e.content)?(Dt(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Dt(t,e.content):t.textContent=e.content)}function Pt(t){var e=t.firstElementChild,n=pt(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function kt(t){var e=ct(),n=ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ct();function o(n,r){var o=Pt(e),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Lt(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(Mt(r.arrow))):i.appendChild(Mt(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),Lt(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props),{popper:e,onUpdate:o}}kt.$$tippy=!0;var Rt=1,St=[],Bt=[];function Ht(t,e){var n,r,o,i,a,s,p,c,u,f=jt(t,Object.assign({},Tt,{},Ct((n=e,Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{}))))),l=!1,d=!1,m=!1,v=!1,h=[],g=ot(Y,f.interactiveDebounce),b=Rt++,y=(u=f.plugins).filter((function(t,e){return u.indexOf(t)===e})),w={id:b,reference:t,popper:ct(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(e){if(w.state.isDestroyed)return;S("onBeforeUpdate",[w,e]),F();var n=w.props,r=jt(t,Object.assign({},w.props,{},e,{ignoreAttributes:!0}));w.props=r,z(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),g=ot(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?it(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");H(),R(),E&&E(n,r);w.popperInstance&&(Q(),ut().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));S("onAfterUpdate",[w,e])},setContent:function(t){w.setProps({content:t})},show:function(){var t=w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,r=gt.isTouch&&!w.props.touch,o=et(w.props.duration,0,Tt.duration);if(t||e||n||r)return;if(M().hasAttribute("disabled"))return;if(S("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,D()&&(O.style.visibility="visible");R(),U(),w.state.isMounted||(O.style.transition="none");if(D()){var i=P();dt([i.box,i.content],0)}p=function(){if(w.state.isVisible&&!v){if(v=!0,O.style.transition=w.props.moveTransition,D()&&w.props.animation){var t=P(),e=t.box,n=t.content;dt([e,n],o),mt([e,n],"visible")}B(),H(),at(Bt,w),w.state.isMounted=!0,S("onMount",[w]),w.props.animation&&D()&&function(t,e){q(t,e)}(o,(function(){w.state.isShown=!0,S("onShown",[w])}))}},function(){var t,e=w.props.appendTo,n=M();t=w.props.interactive&&e===Tt.appendTo||"parent"===e?n.parentNode:rt(e,[n]);t.contains(O)||t.appendChild(O);Q()}()},hide:function(){var t=!w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,r=et(w.props.duration,1,Tt.duration);if(t||e||n)return;if(S("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,v=!1,l=!1,D()&&(O.style.visibility="hidden");if(V(),_(),R(),D()){var o=P(),i=o.box,a=o.content;w.props.animation&&(dt([i,a],r),mt([i,a],"hidden"))}B(),H(),w.props.animation?D()&&function(t,e){q(t,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&e()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(t){L().addEventListener("mousemove",g),at(St,g),g(t)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;nt(),ut().forEach((function(t){t._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);Bt=Bt.filter((function(t){return t!==w})),w.state.isMounted=!1,S("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),F(),delete t._tippy,w.state.isDestroyed=!0,S("onDestroy",[w])}};if(!f.render)return w;var x=f.render(w),O=x.popper,E=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,t._tippy=w,O._tippy=w;var T=y.map((function(t){return t.fn(w)})),A=t.hasAttribute("aria-expanded");return z(),H(),R(),S("onCreate",[w]),f.showOnCreate&<(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(t){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",g),g(t))})),w;function C(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function j(){return"hold"===C()[0]}function D(){var t;return!!(null==(t=w.props.render)?void 0:t.$$tippy)}function M(){return c||t}function L(){var t=M().parentNode;return t?vt(t):document}function P(){return Pt(O)}function k(t){return w.state.isMounted&&!w.state.isVisible||gt.isTouch||a&&"focus"===a.type?0:et(w.props.delay,t?0:1,Tt.delay)}function R(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function S(t,e,n){var r;(void 0===n&&(n=!0),T.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=w.props)[t].apply(r,e)}function B(){var e=w.props.aria;if(e.content){var n="aria-"+e.content,r=O.id;it(w.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(w.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function H(){!A&&w.props.aria.expanded&&it(w.props.triggerTarget||t).forEach((function(t){w.props.interactive?t.setAttribute("aria-expanded",w.state.isVisible&&t===M()?"true":"false"):t.removeAttribute("aria-expanded")}))}function V(){L().removeEventListener("mousemove",g),St=St.filter((function(t){return t!==g}))}function I(t){if(!(gt.isTouch&&(m||"mousedown"===t.type)||w.props.interactive&&O.contains(t.target))){if(M().contains(t.target)){if(gt.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else S("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||_())}}function W(){m=!0}function N(){m=!1}function U(){var t=L();t.addEventListener("mousedown",I,!0),t.addEventListener("touchend",I,tt),t.addEventListener("touchstart",N,tt),t.addEventListener("touchmove",W,tt)}function _(){var t=L();t.removeEventListener("mousedown",I,!0),t.removeEventListener("touchend",I,tt),t.removeEventListener("touchstart",N,tt),t.removeEventListener("touchmove",W,tt)}function q(t,e){var n=P().box;function r(t){t.target===n&&(ht(n,"remove",r),e())}if(0===t)return e();ht(n,"remove",s),ht(n,"add",r),s=r}function $(e,n,r){void 0===r&&(r=!1),it(w.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),h.push({node:t,eventType:e,handler:n,options:r})}))}function z(){var t;j()&&($("touchstart",X,{passive:!0}),$("touchend",J,{passive:!0})),(t=w.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch($(t,X),t){case"mouseenter":$("mouseleave",J);break;case"focus":$(Et?"focusout":"blur",G);break;case"focusin":$("focusout",G)}}))}function F(){h.forEach((function(t){t.node.removeEventListener(t.eventType,t.handler,t.options)})),h=[]}function X(t){var e,n=!1;if(w.state.isEnabled&&!K(t)&&!d){var r="focus"===(null==(e=a)?void 0:e.type);a=t,c=t.currentTarget,H(),!w.state.isVisible&&ft(t)&&St.forEach((function(e){return e(t)})),"click"===t.type&&(w.props.trigger.indexOf("mouseenter")<0||l)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:lt(t),"click"===t.type&&(l=!n),n&&!r&&bt(t)}}function Y(t){var e=t.target,n=M().contains(e)||O.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props.interactiveBorder,a=st(o.placement),s=o.modifiersData.offset;return!s||(e.top-r+("bottom"===a?s.top.y:0)>i||r-e.bottom-("top"===a?s.bottom.y:0)>i||e.left-n+("right"===a?s.left.x:0)>i||n-e.right-("left"===a?s.right.x:0)>i)}))}(ut().concat(O).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),t)&&(V(),bt(t))}function J(t){K(t)||w.props.trigger.indexOf("click")>=0&&l||(w.props.interactive?w.hideWithInteractivity(t):bt(t))}function G(t){w.props.trigger.indexOf("focusin")<0&&t.target!==M()||w.props.interactive&&t.relatedTarget&&O.contains(t.relatedTarget)||bt(t)}function K(t){return!!gt.isTouch&&j()!==t.type.indexOf("touch")>=0}function Q(){nt();var e=w.props,n=e.popperOptions,r=e.placement,o=e.offset,i=e.getReferenceClientRect,a=e.moveTransition,s=D()?Pt(O).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:t,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(D()){var n=P().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];D()&&s&&u.push({name:"arrow",options:{element:s,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),w.popperInstance=Z(c,O,Object.assign({},n,{placement:r,onFirstUpdate:p,modifiers:u}))}function nt(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ut(){return pt(O.querySelectorAll("[data-tippy-root]"))}function lt(t){w.clearDelayTimeouts(),t&&S("onTrigger",[w,t]),U();var e=k(!0),n=C(),o=n[1];gt.isTouch&&"hold"===n[0]&&o&&(e=o),e?r=setTimeout((function(){w.show()}),e):w.show()}function bt(t){if(w.clearDelayTimeouts(),S("onUntrigger",[w,t]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&l)){var e=k(!1);e?o=setTimeout((function(){w.state.isVisible&&w.hide()}),e):i=requestAnimationFrame((function(){w.hide()}))}}else _()}}function Vt(t,e){void 0===e&&(e={});var n=Tt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",yt,tt),window.addEventListener("blur",xt);var r=Object.assign({},e,{plugins:n}),o=lt(t).reduce((function(t,e){var n=e&&Ht(e,r);return n&&t.push(n),t}),[]);return ut(t)?o[0]:o}Vt.defaultProps=Tt,Vt.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Tt[e]=t[e]}))},Vt.currentInput=gt;var It=function(t,e){void 0===e&&(e={});var n,r=t,o=[],i=e.overrides,a=[];function s(){o=r.map((function(t){return t.reference}))}function p(t){r.forEach((function(e){t?e.enable():e.disable()}))}function c(t){return r.map((function(e){var r=e.setProps;return e.setProps=function(o){r(o),e.reference===n&&t.setProps(o)},function(){e.setProps=r}}))}p(!1),s();var u,f,l={fn:function(){return{onDestroy:function(){p(!0)},onTrigger:function(t,e){var a=e.currentTarget,s=o.indexOf(a);if(a!==n){n=a;var p=(i||[]).concat("content").reduce((function(t,e){return t[e]=r[s].props[e],t}),{});t.setProps(Object.assign({},p,{getReferenceClientRect:"function"==typeof p.getReferenceClientRect?p.getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}},d=Vt(ct(),Object.assign({},(u=["overrides"],f=Object.assign({},e),u.forEach((function(t){delete f[t]})),f),{plugins:[l].concat(e.plugins||[]),triggerTarget:o})),m=d.setProps;return d.setProps=function(t){i=t.overrides||i,m(t)},d.setInstances=function(t){p(!0),a.forEach((function(t){return t()})),r=t,p(!1),s(),c(d),d.setProps({triggerTarget:o})},a=c(d),d},Wt={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(!(null==(e=t.props.render)?void 0:e.$$tippy))return{};var n=Pt(t.popper),r=n.box,o=n.content,i=t.props.animateFill?function(){var t=ct();return t.className="tippy-backdrop",mt([t],"hidden"),t}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var t=r.style.transitionDuration,e=Number(t.replace("ms",""));o.style.transitionDelay=Math.round(e/10)+"ms",i.style.transitionDuration=t,mt([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&mt([i],"hidden")}}}};var Nt={clientX:0,clientY:0},Ut=[];function _t(t){Nt={clientX:t.clientX,clientY:t.clientY}}var qt={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=vt(t.props.triggerTarget||e),r=!1,o=!1,i=!0,a=t.props;function s(){return"initial"===t.props.followCursor&&t.state.isVisible}function p(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function u(){r=!0,t.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||e.contains(n.target),o=t.props.followCursor,i=n.clientX,a=n.clientY,s=e.getBoundingClientRect(),p=i-s.left,c=a-s.top;!r&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=t.left+p,r=t.top+c);var s="horizontal"===o?t.top:r,u="vertical"===o?t.right:n,f="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:u-l,height:f-s,top:s,right:u,bottom:f,left:l}}})}function l(){t.props.followCursor&&(Ut.push({instance:t,doc:n}),function(t){t.addEventListener("mousemove",_t)}(n))}function d(){0===(Ut=Ut.filter((function(e){return e.instance!==t}))).filter((function(t){return t.doc===n})).length&&function(t){t.removeEventListener("mousemove",_t)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=t.props},onAfterUpdate:function(e,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!t.state.isMounted||o||s()||p()):(c(),u()))},onMount:function(){t.props.followCursor&&!o&&(i&&(f(Nt),i=!1),s()||p())},onTrigger:function(t,e){ft(e)&&(Nt={clientX:e.clientX,clientY:e.clientY}),o="focus"===e.type},onHidden:function(){t.props.followCursor&&(u(),c(),i=!0)}}}};var $t={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r=-1,o=!1,i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var i=o.state;t.props.inlinePositioning&&(e!==i.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n,r){if(n.length<2||null===t)return e;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===t,s=o.top,p=i.bottom,c=a?o.left:i.left,u=a?o.right:i.right;return{top:s,bottom:p,left:c,right:u,width:u-c,height:p-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(t){return t.left}))),l=Math.max.apply(Math,n.map((function(t){return t.right}))),d=n.filter((function(e){return"left"===t?e.left===f:e.right===l})),m=d[0].top,v=d[d.length-1].bottom;return{top:m,bottom:v,left:f,right:l,width:l-f,height:v-m};default:return e}}(st(t),n.getBoundingClientRect(),pt(n.getClientRects()),r)}(i.placement)}}),e=i.placement)}};function a(){var e;o||(e=function(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((null==(n=t.popperOptions)?void 0:n.modifiers)||[]).filter((function(t){return t.name!==e.name})),[e])})}}(t.props,i),o=!0,t.setProps(e),o=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(e,n){if(ft(n)){var o=pt(t.reference.getClientRects()),i=o.find((function(t){return t.left-2<=n.clientX&&t.right+2>=n.clientX&&t.top-2<=n.clientY&&t.bottom+2>=n.clientY}));r=o.indexOf(i)}},onUntrigger:function(){r=-1}}}};var zt={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var o=null,i=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=r("popper")?n.getBoundingClientRect():null;(s&&Ft(o,s)||p&&Ft(i,p))&&t.popperInstance&&t.popperInstance.update(),o=s,i=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function Ft(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}function Xt(t,n={},r={mount:!0}){const o=e.ref();let i=null;const a=()=>i||(i=document.createElement("fragment"),i),s=t=>{let n,r=e.isRef(t)?t.value:t;return e.isVNode(r)?(e.render(r,a()),n=()=>a()):"object"==typeof r?(e.render(e.h(r),a()),n=()=>a()):n=r,n},p=t=>{let n={};return n=e.isRef(t)?t.value:(e.isReactive(t),{...t}),n.content&&(n.content=s(n.content)),n.triggerTarget&&(n.triggerTarget=e.isRef(n.triggerTarget)?n.triggerTarget.value:n.triggerTarget),n},c=()=>{o.value&&o.value.setProps(p(n))},u=()=>{o.value&&n.content&&o.value.setContent(s(n.content))},f=()=>{o.value&&(o.value.destroy(),o.value=void 0),i=null},l=()=>{if(!t)return;let r=e.isRef(t)?t.value:t;"function"==typeof r&&(r=r()),r&&(o.value=Vt(r,p(n)),r.$tippy=d)},d={tippy:o,refresh:c,refreshContent:u,setContent:t=>{var e;null===(e=o.value)||void 0===e||e.setContent(s(t))},setProps:t=>{var e;null===(e=o.value)||void 0===e||e.setProps(p(t))},destroy:f,hide:()=>{var t;null===(t=o.value)||void 0===t||t.hide()},show:()=>{var t;null===(t=o.value)||void 0===t||t.show()},disable:()=>{var t;null===(t=o.value)||void 0===t||t.disable()},enable:()=>{var t;null===(t=o.value)||void 0===t||t.enable()},unmount:()=>{var t;null===(t=o.value)||void 0===t||t.unmount()},mount:l};if(r.mount){const t=e.getCurrentInstance();t?(t.isMounted?l():e.onMounted(l),e.onUnmounted(()=>{f()})):l()}return e.isRef(n)||e.isReactive(n)?e.watch(n,c,{immediate:!1}):e.isRef(n.content)&&e.watch(n.content,u,{immediate:!1}),d}Vt.setDefaultProps({render:kt}),Vt.setDefaultProps({onShow:t=>{if(!t.props.content)return!1}});const Yt=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Jt={};Object.keys(Vt.defaultProps).forEach(t=>{Jt[t]=Yt.includes(t)?{type:Boolean,default:function(){return Vt.defaultProps[t]}}:{default:function(){return Vt.defaultProps[t]}}}),Jt.to={};const Gt=e.defineComponent({props:Jt,setup(t,{slots:n}){const r=e.ref();let o={...t};o.to&&delete o.to,null!=n.content&&void 0!==n.content&&(o.content={render:()=>n.content()});let i=r;t.to&&(t.to instanceof Element?i=()=>t.to:("string"==typeof t.to||t.to instanceof String)&&(i=()=>document.querySelector(t.to)));return{elem:r,...Xt(i,o)}},render(){let t=this.$slots.default?this.$slots.default():[];return e.h("span",{ref:"elem"},t)}}),Kt={mounted(t,e,n){const r=e.value||{};n.props&&n.props.onTippyShow&&(r.onShow=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyShow(...t)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyShown(...t)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyHidden(...t)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyHide(...t)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...t){var e;return null===(e=n.props)||void 0===e?void 0:e.onTippyMount(...t)}),t.getAttribute("title")&&!r.content&&(r.content=t.getAttribute("title"),t.removeAttribute("title")),t.getAttribute("content")&&!r.content&&(r.content=t.getAttribute("content")),Xt(t,r)},unmounted(t){t.$tippy?t.$tippy.destroy():t._tippy&&t._tippy.destroy()},updated(t,e){const n=e.value||{};t.getAttribute("title")&&!n.content&&(n.content=t.getAttribute("title"),t.removeAttribute("title")),t.getAttribute("content")&&!n.content&&(n.content=t.getAttribute("content")),t.$tippy?t.$tippy.setProps(n||{}):t._tippy&&t._tippy.setProps(n||{})}},Qt={install(t,e={}){Vt.setDefaultProps(e.defaultProps||{}),t.directive(e.directive||"tippy",Kt),t.component(e.component||"tippy",Gt)}};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');const Zt=Vt.setDefaultProps;return Zt({ignoreAttributes:!0,plugins:[zt,$t,qt,Wt]}),t.Tippy=Gt,t.default=Qt,t.directive=Kt,t.plugin=Qt,t.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',t.setDefaultProps=Zt,t.tippy=Vt,t.useSingleton=function(t,n){const r=e.ref();return e.onMounted(()=>{const e=(Array.isArray(t)?t.map(t=>t.value):t.value).map(t=>t instanceof Element?t._tippy:t).filter(Boolean);r.value=It(e,n)}),{singleton:r}},t.useTippy=Xt,Object.defineProperty(t,"__esModule",{value:!0}),t}({},Vue); |
{ | ||
"name": "vue-tippy", | ||
"version": "6.0.0-alpha.19", | ||
"version": "6.0.0-alpha.20", | ||
"main": "dist/vue-tippy.cjs.js", | ||
@@ -5,0 +5,0 @@ "browser": "dist/vue-tippy.esm.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
684433
17632