gd-bs 5.7.1 → 5.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Popover = exports.PopoverPlacements = exports.PopoverTypes = void 0;
30
- var tippy_js_1 = require("tippy.js");
30
+ var tippy_js_1 = require("../../tippy.js");
31
31
  var button_1 = require("../button");
32
32
  var base_1 = require("../base");
33
33
  var common_1 = require("../common");
@@ -27,7 +27,7 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Tooltip = exports.TooltipPlacements = exports.TooltipTypes = void 0;
30
- var tippy_js_1 = require("tippy.js");
30
+ var tippy_js_1 = require("../../tippy.js");
31
31
  var base_1 = require("../base");
32
32
  var button_1 = require("../button");
33
33
  var common_1 = require("../common");
@@ -9,7 +9,7 @@ require("./ie");
9
9
  var Components = require("./components");
10
10
  exports.Components = Components;
11
11
  // TippyJS library
12
- var tippy_js_1 = require("tippy.js");
12
+ var tippy_js_1 = require("./tippy.js");
13
13
  exports.tippy = tippy_js_1.default;
14
14
  // Icons
15
15
  var icons_1 = require("./icons");
package/build/index.js CHANGED
@@ -9,8 +9,8 @@ require("./ie");
9
9
  var Components = require("./components");
10
10
  exports.Components = Components;
11
11
  // TippyJS library
12
- var tippy = require("tippy.js");
13
- exports.tippy = tippy;
12
+ var tippy_js_1 = require("./tippy.js");
13
+ exports.tippy = tippy_js_1.default;
14
14
  // Bootstrap Global library
15
- var BS = { Components: Components, tippy: tippy };
15
+ var BS = { Components: Components, tippy: tippy_js_1.default };
16
16
  window["GD"] = window["GD"] || BS;
package/build/tippy.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see tippy.js.LICENSE.txt */
2
+ !function(){"use strict";var e,t={569:function(e,t){function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof n(e).Element||e instanceof Element}function o(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}Object.defineProperty(t,"__esModule",{value:!0});var a=Math.max,s=Math.min,c=Math.round;function u(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=c(n.width)/s||1),a>0&&(i=c(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function d(e){return u(l(e)).left+f(e).scrollLeft}function v(e){return n(e).getComputedStyle(e)}function m(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function h(e,t,r){void 0===r&&(r=!1);var i,a,s=o(t),v=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),h=l(t),g=u(e,v),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!r)&&(("body"!==p(t)||m(h))&&(y=(i=t)!==n(i)&&o(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:f(i)),o(t)?((b=u(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):h&&(b.x=d(h))),{x:g.left+y.scrollLeft-b.x,y:g.top+y.scrollTop-b.y,width:g.width,height:g.height}}function g(e){var t=u(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function y(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(i(e)?e.host:null)||l(e)}function b(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:o(e)&&m(e)?e:b(y(e))}function w(e,t){var r;void 0===t&&(t=[]);var o=b(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=n(o),s=i?[a].concat(a.visualViewport||[],m(o)?o:[]):o,c=t.concat(s);return i?c:c.concat(w(y(s)))}function x(e){return["table","td","th"].indexOf(p(e))>=0}function O(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function E(e){for(var t=n(e),r=O(e);r&&x(r)&&"static"===v(r).position;)r=O(r);return r&&("html"===p(r)||"body"===p(r)&&"static"===v(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===v(e).position)return null;var n=y(e);for(i(n)&&(n=n.host);o(n)&&["html","body"].indexOf(p(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var A="top",T="bottom",C="right",j="left",D="auto",L=[A,T,C,j],P="start",k="end",M="viewport",R="popper",S=L.reduce((function(e,t){return e.concat([t+"-"+P,t+"-"+k])}),[]),V=[].concat(L,[D]).reduce((function(e,t){return e.concat([t,t+"-"+P,t+"-"+k])}),[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){return e.split("-")[0]}function I(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&i(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function U(e,t){return t===M?N(function(e){var t=n(e),r=l(e),o=t.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,c=o.offsetTop)),{width:i,height:a,x:s+d(e),y:c}}(e)):r(t)?function(e){var t=u(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):N(function(e){var t,n=l(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+d(e),u=-r.scrollTop;return"rtl"===v(o||n).direction&&(c+=a(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:u}}(l(e)))}function _(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function F(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?W(o):null,a=o?_(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case A:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:c};break;case j:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?q(i):null;if(null!=u){var f="y"===u?"height":"width";switch(a){case P:t[u]=t[u]-(n[f]/2-r[f]/2);break;case k:t[u]=t[u]+(n[f]/2-r[f]/2)}}return t}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Y(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function z(e,t){void 0===t&&(t={});var n=t,i=n.placement,c=void 0===i?e.placement:i,f=n.boundary,d=void 0===f?"clippingParents":f,m=n.rootBoundary,h=void 0===m?M:m,g=n.elementContext,b=void 0===g?R:g,x=n.altBoundary,O=void 0!==x&&x,j=n.padding,D=void 0===j?0:j,P=X("number"!=typeof D?D:Y(D,L)),k=b===R?"reference":R,S=e.rects.popper,V=e.elements[O?k:b],B=function(e,t,n){var i="clippingParents"===t?function(e){var t=w(y(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?E(e):e;return r(n)?t.filter((function(e){return r(e)&&I(e,n)&&"body"!==p(e)})):[]}(e):[].concat(t),c=[].concat(i,[n]),u=c[0],f=c.reduce((function(t,n){var r=U(e,n);return t.top=a(r.top,t.top),t.right=s(r.right,t.right),t.bottom=s(r.bottom,t.bottom),t.left=a(r.left,t.left),t}),U(e,u));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}(r(V)?V:V.contextElement||l(e.elements.popper),d,h),H=u(e.elements.reference),W=F({reference:H,element:S,strategy:"absolute",placement:c}),_=N(Object.assign({},S,W)),q=b===R?_:H,z={top:B.top-q.top+P.top,bottom:q.bottom-B.bottom+P.bottom,left:B.left-q.left+P.left,right:q.right-B.right+P.right},$=e.modifiersData.offset;if(b===R&&$){var G=$[c];Object.keys(z).forEach((function(e){var t=[C,T].indexOf(e)>=0?1:-1,n=[A,T].indexOf(e)>=0?"y":"x";z[e]+=G[n]*t}))}return z}var $={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function J(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?$:i;return function(e,t,n){void 0===n&&(n=a);var i,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],f=!1,p={state:c,setOptions:function(n){var i="function"==typeof n?n(c.options):n;l(),c.options=Object.assign({},a,c.options,i),c.scrollParents={reference:r(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,f,d=function(e){var t=H(e);return B.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,c.options.modifiers),f=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(f).map((function(e){return f[e]}))));return c.orderedModifiers=d.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:p,options:r});u.push(i||function(){})}})),p.update()},forceUpdate:function(){if(!f){var e=c.elements,t=e.reference,n=e.popper;if(G(t,n)){c.rects={reference:h(t,E(n),"fixed"===c.options.strategy),popper:g(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:u,instance:p})||c)}else c.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){p.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),f=!0}};if(!G(e,t))return p;function l(){u.forEach((function(e){return e()})),u=[]}return p.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var K={passive:!0},Q={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,c=void 0===s||s,u=n(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach((function(e){e.addEventListener("scroll",r.update,K)})),c&&u.addEventListener("resize",r.update,K),function(){a&&f.forEach((function(e){e.removeEventListener("scroll",r.update,K)})),c&&u.removeEventListener("resize",r.update,K)}},data:{}},Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=F({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,u=e.position,f=e.gpuAcceleration,p=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=s.x,g=void 0===h?0:h,y=s.y,b=void 0===y?0:y,w="function"==typeof d?d({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var x=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),D=j,L=A,P=window;if(p){var M=E(r),R="clientHeight",S="clientWidth";M===n(r)&&"static"!==v(M=l(r)).position&&"absolute"===u&&(R="scrollHeight",S="scrollWidth"),(i===A||(i===j||i===C)&&a===k)&&(L=T,b-=(m&&M===P&&P.visualViewport?P.visualViewport.height:M[R])-o.height,b*=f?1:-1),i!==j&&(i!==A&&i!==T||a!==k)||(D=C,g-=(m&&M===P&&P.visualViewport?P.visualViewport.width:M[S])-o.width,g*=f?1:-1)}var V,B=Object.assign({position:u},p&&ee),H=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:c(t*r)/r||0,y:c(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=H.x,b=H.y,f?Object.assign({},B,((V={})[L]=O?"0":"",V[D]=x?"0":"",V.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",V)):Object.assign({},B,((t={})[L]=O?b+"px":"",t[D]=x?g+"px":"",t.transform="",t))}var ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:W(t.placement),variation:_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},re={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&p(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&p(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=V.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),o=[j,A].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[j,C].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},ie={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var se={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return se[e]}))}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?V:c,f=_(r),p=f?s?S:S.filter((function(e){return _(e)===f})):L,l=p.filter((function(e){return u.indexOf(e)>=0}));0===l.length&&(l=p);var d=l.reduce((function(t,n){return t[n]=z(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[W(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var fe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,v=void 0===d||d,m=n.allowedAutoPlacements,h=t.options.placement,g=W(h),y=c||(g!==h&&v?function(e){if(W(e)===D)return[];var t=ae(e);return[ce(e),t,ce(t)]}(h):[ae(h)]),b=[h].concat(y).reduce((function(e,n){return e.concat(W(n)===D?ue(t,{placement:n,boundary:f,rootBoundary:p,padding:u,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,L=b[0],k=0;k<b.length;k++){var M=b[k],R=W(M),S=_(M)===P,V=[A,T].indexOf(R)>=0,B=V?"width":"height",H=z(t,{placement:M,boundary:f,rootBoundary:p,altBoundary:l,padding:u}),I=V?S?C:j:S?T:A;w[B]>x[B]&&(I=ae(I));var N=ae(I),U=[];if(i&&U.push(H[R]<=0),s&&U.push(H[I]<=0,H[N]<=0),U.every((function(e){return e}))){L=M,E=!1;break}O.set(M,U)}if(E)for(var q=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},F=v?3:1;F>0&&"break"!==q(F);F--);t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return a(e,s(t,n))}var le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,c=n.altAxis,u=void 0!==c&&c,f=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.padding,v=n.tether,m=void 0===v||v,h=n.tetherOffset,y=void 0===h?0:h,b=z(t,{boundary:f,rootBoundary:p,padding:d,altBoundary:l}),w=W(t.placement),x=_(t.placement),O=!x,D=q(w),L="x"===D?"y":"x",k=t.modifiersData.popperOffsets,M=t.rects.reference,R=t.rects.popper,S="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,V="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(k){if(i){var I,N="y"===D?A:j,U="y"===D?T:C,F="y"===D?"height":"width",X=k[D],Y=X+b[N],$=X-b[U],G=m?-R[F]/2:0,J=x===P?M[F]:R[F],K=x===P?-R[F]:-M[F],Q=t.elements.arrow,Z=m&&Q?g(Q):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[N],ne=ee[U],re=pe(0,M[F],Z[F]),oe=O?M[F]/2-G-re-te-V.mainAxis:J-re-te-V.mainAxis,ie=O?-M[F]/2+G+re+ne+V.mainAxis:K+re+ne+V.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),se=ae?"y"===D?ae.clientTop||0:ae.clientLeft||0:0,ce=null!=(I=null==B?void 0:B[D])?I:0,ue=X+ie-ce,fe=pe(m?s(Y,X+oe-ce-se):Y,X,m?a($,ue):$);k[D]=fe,H[D]=fe-X}if(u){var le,de="x"===D?A:j,ve="x"===D?T:C,me=k[L],he="y"===L?"height":"width",ge=me+b[de],ye=me-b[ve],be=-1!==[A,j].indexOf(w),we=null!=(le=null==B?void 0:B[L])?le:0,xe=be?ge:me-M[he]-R[he]-we+V.altAxis,Oe=be?me+M[he]+R[he]-we-V.altAxis:ye,Ee=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(xe,me,Oe):pe(m?xe:ge,me,m?Oe:ye);k[L]=Ee,H[L]=Ee-me}t.modifiersData[r]=H}},requiresIfExists:["offset"]},de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=W(n.placement),c=q(s),u=[j,C].indexOf(s)>=0?"height":"width";if(i&&a){var f=function(e,t){return X("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Y(e,L))}(o.padding,n),p=g(i),l="y"===c?A:j,d="y"===c?T:C,v=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],h=E(i),y=h?"y"===c?h.clientHeight||0:h.clientWidth||0:0,b=v/2-m/2,w=f[l],x=y-p[u]-f[d],O=y/2-p[u]/2+b,D=pe(w,O,x),P=c;n.modifiersData[r]=((t={})[P]=D,t.centerOffset=D-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&I(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[A,C,T,j].some((function(t){return e[t]>=0}))}var he={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=z(t,{elementContext:"reference"}),s=z(t,{altBoundary:!0}),c=ve(a,r),u=ve(s,o,i),f=me(c),p=me(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}},ge=J({defaultModifiers:[Q,Z,ne,re]}),ye=[Q,Z,ne,re,oe,fe,le,de,he],be=J({defaultModifiers:ye});t.applyStyles=re,t.arrow=de,t.computeStyles=ne,t.createPopper=be,t.createPopperLite=ge,t.defaultModifiers=ye,t.detectOverflow=z,t.eventListeners=Q,t.flip=fe,t.hide=he,t.offset=oe,t.popperGenerator=J,t.popperOffsets=Z,t.preventOverflow=le},323:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(569),o="tippy-content",i="tippy-backdrop",a="tippy-arrow",s="tippy-svg-arrow",c={passive:!0,capture:!0},u=function(){return document.body};function f(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function p(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function l(e,t){return"function"==typeof e?e.apply(void 0,t):e}function d(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function v(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function m(e){return[].concat(e)}function h(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function b(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function w(){return document.createElement("div")}function x(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function O(e){return p(e,"MouseEvent")}function E(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function A(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function T(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function j(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function D(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var L={isTouch:!1},P=0;function k(){L.isTouch||(L.isTouch=!0,window.performance&&document.addEventListener("mousemove",M))}function M(){var e=performance.now();e-P<20&&(L.isTouch=!1,document.removeEventListener("mousemove",M)),P=e}function R(){var e=document.activeElement;if(E(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var S=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),V=Object.assign({appendTo:u,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}),B=Object.keys(V);function H(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=V[o])?r:i),t}),{});return Object.assign({},e,t)}function W(e,t){var n=Object.assign({},t,{content:l(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(H(Object.assign({},V,{plugins:t}))):B).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},V.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function I(e,t){e.innerHTML=t}function N(e){var t=w();return!0===e?t.className=a:(t.className=s,x(e)?t.appendChild(e):I(t,e)),t}function U(e,t){x(t.content)?(I(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?I(e,t.content):e.textContent=t.content)}function _(e){var t=e.firstElementChild,n=y(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(o)})),arrow:n.find((function(e){return e.classList.contains(a)||e.classList.contains(s)})),backdrop:n.find((function(e){return e.classList.contains(i)}))}}function q(e){var t=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=w();function i(n,r){var o=_(t),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||U(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(N(r.arrow))):i.appendChild(N(r.arrow)):s&&i.removeChild(s)}return r.className=o,r.setAttribute("data-state","hidden"),U(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}q.$$tippy=!0;var F=1,X=[],Y=[];function z(e,t){var n,o,i,a,s,p,v,x,E=W(e,Object.assign({},V,H(b(t)))),P=!1,k=!1,M=!1,R=!1,B=[],I=d(we,E.interactiveDebounce),N=F++,U=(x=E.plugins).filter((function(e,t){return x.indexOf(e)===t})),q={id:N,reference:e,popper:w(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:U,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!q.state.isDestroyed){ae("onBeforeUpdate",[q,t]),ye();var n=q.props,r=W(e,Object.assign({},n,b(t),{ignoreAttributes:!0}));q.props=r,ge(),n.interactiveDebounce!==r.interactiveDebounce&&(ue(),I=d(we,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),ce(),ie(),G&&G(n,r),q.popperInstance&&(Ae(),Ce().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),ae("onAfterUpdate",[q,t])}},setContent:function(e){q.setProps({content:e})},show:function(){var e=q.state.isVisible,t=q.state.isDestroyed,n=!q.state.isEnabled,r=L.isTouch&&!q.props.touch,o=f(q.props.duration,0,V.duration);if(!(e||t||n||r||te().hasAttribute("disabled")||(ae("onShow",[q],!1),!1===q.props.onShow(q)))){if(q.state.isVisible=!0,ee()&&($.style.visibility="visible"),ie(),de(),q.state.isMounted||($.style.transition="none"),ee()){var i=re();A([i.box,i.content],0)}var a,s,c;p=function(){var e;if(q.state.isVisible&&!R){if(R=!0,$.offsetHeight,$.style.transition=q.props.moveTransition,ee()&&q.props.animation){var t=re(),n=t.box,r=t.content;A([n,r],o),T([n,r],"visible")}se(),ce(),h(Y,q),null==(e=q.popperInstance)||e.forceUpdate(),ae("onMount",[q]),q.props.animation&&ee()&&function(e,t){me(e,(function(){q.state.isShown=!0,ae("onShown",[q])}))}(o)}},s=q.props.appendTo,c=te(),(a=q.props.interactive&&s===u||"parent"===s?c.parentNode:l(s,[c])).contains($)||a.appendChild($),q.state.isMounted=!0,Ae()}},hide:function(){var e=!q.state.isVisible,t=q.state.isDestroyed,n=!q.state.isEnabled,r=f(q.props.duration,1,V.duration);if(!(e||t||n)&&(ae("onHide",[q],!1),!1!==q.props.onHide(q))){if(q.state.isVisible=!1,q.state.isShown=!1,R=!1,P=!1,ee()&&($.style.visibility="hidden"),ue(),ve(),ie(!0),ee()){var o=re(),i=o.box,a=o.content;q.props.animation&&(A([i,a],r),T([i,a],"hidden"))}se(),ce(),q.props.animation?ee()&&function(e,t){me(e,(function(){!q.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&t()}))}(r,q.unmount):q.unmount()}},hideWithInteractivity:function(e){ne().addEventListener("mousemove",I),h(X,I),I(e)},enable:function(){q.state.isEnabled=!0},disable:function(){q.hide(),q.state.isEnabled=!1},unmount:function(){q.state.isVisible&&q.hide(),q.state.isMounted&&(Te(),Ce().forEach((function(e){e._tippy.unmount()})),$.parentNode&&$.parentNode.removeChild($),Y=Y.filter((function(e){return e!==q})),q.state.isMounted=!1,ae("onHidden",[q]))},destroy:function(){q.state.isDestroyed||(q.clearDelayTimeouts(),q.unmount(),ye(),delete e._tippy,q.state.isDestroyed=!0,ae("onDestroy",[q]))}};if(!E.render)return q;var z=E.render(q),$=z.popper,G=z.onUpdate;$.setAttribute("data-tippy-root",""),$.id="tippy-"+q.id,q.popper=$,e._tippy=q,$._tippy=q;var J=U.map((function(e){return e.fn(q)})),K=e.hasAttribute("aria-expanded");return ge(),ce(),ie(),ae("onCreate",[q]),E.showOnCreate&&je(),$.addEventListener("mouseenter",(function(){q.props.interactive&&q.state.isVisible&&q.clearDelayTimeouts()})),$.addEventListener("mouseleave",(function(){q.props.interactive&&q.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",I)})),q;function Q(){var e=q.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=q.props.render)||!e.$$tippy)}function te(){return v||e}function ne(){var e=te().parentNode;return e?C(e):document}function re(){return _($)}function oe(e){return q.state.isMounted&&!q.state.isVisible||L.isTouch||a&&"focus"===a.type?0:f(q.props.delay,e?0:1,V.delay)}function ie(e){void 0===e&&(e=!1),$.style.pointerEvents=q.props.interactive&&!e?"":"none",$.style.zIndex=""+q.props.zIndex}function ae(e,t,n){var r;void 0===n&&(n=!0),J.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=q.props)[e].apply(r,t)}function se(){var t=q.props.aria;if(t.content){var n="aria-"+t.content,r=$.id;m(q.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(q.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function ce(){!K&&q.props.aria.expanded&&m(q.props.triggerTarget||e).forEach((function(e){q.props.interactive?e.setAttribute("aria-expanded",q.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ue(){ne().removeEventListener("mousemove",I),X=X.filter((function(e){return e!==I}))}function fe(t){if(!L.isTouch||!M&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!q.props.interactive||!D($,n)){if(m(q.props.triggerTarget||e).some((function(e){return D(e,n)}))){if(L.isTouch)return;if(q.state.isVisible&&q.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[q,t]);!0===q.props.hideOnClick&&(q.clearDelayTimeouts(),q.hide(),k=!0,setTimeout((function(){k=!1})),q.state.isMounted||ve())}}}function pe(){M=!0}function le(){M=!1}function de(){var e=ne();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,c),e.addEventListener("touchstart",le,c),e.addEventListener("touchmove",pe,c)}function ve(){var e=ne();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,c),e.removeEventListener("touchstart",le,c),e.removeEventListener("touchmove",pe,c)}function me(e,t){var n=re().box;function r(e){e.target===n&&(j(n,"remove",r),t())}if(0===e)return t();j(n,"remove",s),j(n,"add",r),s=r}function he(t,n,r){void 0===r&&(r=!1),m(q.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),B.push({node:e,eventType:t,handler:n,options:r})}))}function ge(){var e;Z()&&(he("touchstart",be,{passive:!0}),he("touchend",xe,{passive:!0})),(e=q.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(he(e,be),e){case"mouseenter":he("mouseleave",xe);break;case"focus":he(S?"focusout":"blur",Oe);break;case"focusin":he("focusout",Oe)}}))}function ye(){B.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),B=[]}function be(e){var t,n=!1;if(q.state.isEnabled&&!Ee(e)&&!k){var r="focus"===(null==(t=a)?void 0:t.type);a=e,v=e.currentTarget,ce(),!q.state.isVisible&&O(e)&&X.forEach((function(t){return t(e)})),"click"===e.type&&(q.props.trigger.indexOf("mouseenter")<0||P)&&!1!==q.props.hideOnClick&&q.state.isVisible?n=!0:je(e),"click"===e.type&&(P=!n),n&&!r&&De(e)}}function we(e){var t=e.target,n=te().contains(t)||$.contains(t);if("mousemove"!==e.type||!n){var r=Ce().concat($).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=g(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,p="left"===a?s.right.x:0,l=t.top-r+c>i,d=r-t.bottom-u>i,v=t.left-n+f>i,m=n-t.right-p>i;return l||d||v||m}))})(r,e)&&(ue(),De(e))}}function xe(e){Ee(e)||q.props.trigger.indexOf("click")>=0&&P||(q.props.interactive?q.hideWithInteractivity(e):De(e))}function Oe(e){q.props.trigger.indexOf("focusin")<0&&e.target!==te()||q.props.interactive&&e.relatedTarget&&$.contains(e.relatedTarget)||De(e)}function Ee(e){return!!L.isTouch&&Z()!==e.type.indexOf("touch")>=0}function Ae(){Te();var t=q.props,n=t.popperOptions,o=t.placement,i=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,c=ee()?_($).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];ee()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),q.popperInstance=r.createPopper(u,$,Object.assign({},n,{placement:o,onFirstUpdate:p,modifiers:f}))}function Te(){q.popperInstance&&(q.popperInstance.destroy(),q.popperInstance=null)}function Ce(){return y($.querySelectorAll("[data-tippy-root]"))}function je(e){q.clearDelayTimeouts(),e&&ae("onTrigger",[q,e]),de();var t=oe(!0),r=Q(),o=r[0],i=r[1];L.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){q.show()}),t):q.show()}function De(e){if(q.clearDelayTimeouts(),ae("onUntrigger",[q,e]),q.state.isVisible){if(!(q.props.trigger.indexOf("mouseenter")>=0&&q.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&P)){var t=oe(!1);t?o=setTimeout((function(){q.state.isVisible&&q.hide()}),t):i=requestAnimationFrame((function(){q.hide()}))}}else ve()}}function $(e,t){void 0===t&&(t={});var n=V.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",k,c),window.addEventListener("blur",R);var r,o=Object.assign({},t,{plugins:n}),i=(r=e,x(r)?[r]:function(e){return p(e,"NodeList")}(r)?y(r):Array.isArray(r)?r:y(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&z(t,o);return n&&e.push(n),e}),[]);return x(e)?i[0]:i}$.defaultProps=V,$.setDefaultProps=function(e){Object.keys(e).forEach((function(t){V[t]=e[t]}))},$.currentInput=L;var G=Object.assign({},r.applyStyles,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),J={mouseover:"mouseenter",focusin:"focus",click:"click"},K={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=_(e.popper),r=n.box,o=n.content,a=e.props.animateFill?function(){var e=w();return e.className=i,T([e],"hidden"),e}():null;return{onCreate:function(){a&&(r.insertBefore(a,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",a.style.transitionDuration=e,T([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&T([a],"hidden")}}}},Q={clientX:0,clientY:0},Z=[];function ee(e){var t=e.clientX,n=e.clientY;Q={clientX:t,clientY:n}}var te={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=C(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",p)}function u(){n.removeEventListener("mousemove",p)}function f(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function p(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),c=i-s.left,u=a-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+c,r=e.top+u);var s="horizontal"===o?e.top:r,f="vertical"===o?e.right:n,p="horizontal"===o?e.bottom:r,l="vertical"===o?e.left:n;return{width:f-l,height:p-s,top:s,right:f,bottom:p,left:l}}})}function l(){e.props.followCursor&&(Z.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",ee)}(n))}function d(){0===(Z=Z.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",ee)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||o||s()||c()):(u(),f()))},onMount:function(){e.props.followCursor&&!o&&(i&&(p(Q),i=!1),s()||c())},onTrigger:function(e,t){O(t)&&(Q={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(f(),u(),i=!0)}}}},ne={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===e,s=o.top,c=i.bottom,u=a?o.left:i.left,f=a?o.right:i.right;return{top:s,bottom:c,left:u,right:f,width:f-u,height:c-s};case"left":case"right":var p=Math.min.apply(Math,n.map((function(e){return e.left}))),l=Math.max.apply(Math,n.map((function(e){return e.right}))),d=n.filter((function(t){return"left"===e?t.left===p:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:p,right:l,width:l-p,height:m-v};default:return t}}(g(e),n.getBoundingClientRect(),y(n.getClientRects()),r)}(a.placement)}})),t=a.placement)}};function s(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),o=!0,e.setProps(t),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(O(n)){var o=y(e.reference.getClientRects()),i=o.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}},re={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=r("popper")?n.getBoundingClientRect():null;(s&&oe(o,s)||c&&oe(i,c))&&e.popperInstance&&e.popperInstance.update(),o=s,i=c,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function oe(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}$.setDefaultProps({render:q}),t.animateFill=K,t.createSingleton=function(e,t){var n;void 0===t&&(t={});var r,o=e,i=[],a=[],s=t.overrides,c=[],u=!1;function f(){a=o.map((function(e){return m(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function p(){i=o.map((function(e){return e.reference}))}function l(e){o.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return o.map((function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===r&&e.setProps(o)},function(){t.setProps=n}}))}function h(e,t){var n=a.indexOf(t);if(t!==r){r=t;var c=(s||[]).concat("content").reduce((function(e,t){return e[t]=o[n].props[t],e}),{});e.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}l(!1),p(),f();var g={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,h(e,i[0]))},onTrigger:function(e,t){h(e,t.currentTarget)}}}},y=$(w(),Object.assign({},v(t,["overrides"]),{plugins:[g].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[G])})})),b=y.show;y.show=function(e){if(b(),!r&&null==e)return h(y,i[0]);if(!r||null!=e){if("number"==typeof e)return i[e]&&h(y,i[e]);if(o.indexOf(e)>=0){var t=e.reference;return h(y,t)}return i.indexOf(e)>=0?h(y,e):void 0}},y.showNext=function(){var e=i[0];if(!r)return y.show(0);var t=i.indexOf(r);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!r)return y.show(e);var t=i.indexOf(r),n=i[t-1]||e;y.show(n)};var x=y.setProps;return y.setProps=function(e){s=e.overrides||s,x(e)},y.setInstances=function(e){l(!0),c.forEach((function(e){return e()})),o=e,l(!1),p(),f(),c=d(y),y.setProps({triggerTarget:a})},c=d(y),y},t.default=$,t.delegate=function(e,t){var n=[],r=[],o=!1,i=t.target,a=v(t,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),u=Object.assign({touch:V.touch},a,{showOnCreate:!0}),f=$(e,s);function p(e){if(e.target&&!o){var n=e.target.closest(i);if(n){var a=n.getAttribute("data-tippy-trigger")||t.trigger||V.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof u.touch||"touchstart"!==e.type&&a.indexOf(J[e.type])<0)){var s=$(n,u);s&&(r=r.concat(s))}}}}function l(e,t,r,o){void 0===o&&(o=!1),e.addEventListener(t,r,o),n.push({node:e,eventType:t,handler:r,options:o})}return m(f).forEach((function(e){var t=e.destroy,i=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),n=[],t()},e.enable=function(){i(),r.forEach((function(e){return e.enable()})),o=!1},e.disable=function(){a(),r.forEach((function(e){return e.disable()})),o=!0},function(e){var t=e.reference;l(t,"touchstart",p,c),l(t,"mouseover",p),l(t,"focusin",p),l(t,"click",p)}(e)})),f},t.followCursor=te,t.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Y.forEach((function(e){var t=!1;if(n&&(t=E(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}}))},t.inlinePositioning=ne,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.sticky=re}},n={};(e=function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}(323)).animateFill,e.createSingleton,e.delegate,e.followCursor,e.hideAll,e.inlinePositioning,e.roundArrow,e.sticky}();
package/clean.js CHANGED
@@ -36,5 +36,14 @@ deleteDirectory("./src/icons");
36
36
  fs.mkdirSync("./src/icons");
37
37
  fs.mkdirSync("./src/icons/svgs");
38
38
 
39
+ // Copy the popper library
40
+ var popperConfig = require("./node_modules/@popperjs/core/package.json");
41
+ fs.copyFileSync("./node_modules/@popperjs/core/" + popperConfig.main, "./src/tippy.js/popper.js");
42
+
43
+ // Copy the tippy.js library
44
+ var tippyConfig = require("./node_modules/tippy.js/package.json");
45
+ var tippyJS = fs.readFileSync("./node_modules/tippy.js/" + tippyConfig.main).toString();
46
+ fs.writeFileSync("./src/tippy.js/tippy.js", tippyJS.replace("var core = require('@popperjs/core');", "var core = require('./popper');"));
47
+
39
48
  // Log
40
49
  console.log("Successfully cleaned the library");