vue-tippy 6.3.0-beta.1 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.3.0-beta.1
2
+ * vue-tippy v6.3.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
5
  */
@@ -4266,6 +4266,7 @@ tippy.setDefaultProps({
4266
4266
  },
4267
4267
  });
4268
4268
  function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4269
+ settings = Object.assign({ mount: true, appName: 'Tippy' }, settings);
4269
4270
  const vm = vue.getCurrentInstance();
4270
4271
  const instance = vue.ref();
4271
4272
  const state = vue.ref({
@@ -4275,12 +4276,12 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4275
4276
  isMounted: false,
4276
4277
  isShown: false,
4277
4278
  });
4278
- const createAppMounted = vue.ref(false);
4279
+ const headlessApp = vue.shallowRef();
4279
4280
  let container = null;
4280
4281
  const getContainer = () => {
4281
4282
  if (container)
4282
4283
  return container;
4283
- container = document.createElement("aside");
4284
+ container = document.createDocumentFragment();
4284
4285
  return container;
4285
4286
  };
4286
4287
  const getContent = (content) => {
@@ -4289,31 +4290,29 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4289
4290
  ? content.value
4290
4291
  : content;
4291
4292
  if (vue.isVNode(unwrappedContent)) {
4292
- if (!createAppMounted.value) {
4293
- if (vm) {
4294
- unwrappedContent.appContext = vm.appContext;
4295
- }
4296
- vue.createApp({
4293
+ if (!headlessApp.value) {
4294
+ headlessApp.value = vue.createApp({
4297
4295
  name: settings.appName,
4298
4296
  render: () => unwrappedContent,
4299
- })
4300
- .mount(getContainer());
4301
- createAppMounted.value = true;
4297
+ });
4298
+ if (vm) {
4299
+ Object.assign(headlessApp.value._context, vm.appContext);
4300
+ }
4301
+ headlessApp.value.mount(getContainer());
4302
4302
  }
4303
4303
  newContent = () => getContainer();
4304
4304
  }
4305
4305
  else if (typeof unwrappedContent === 'object') {
4306
- if (!createAppMounted.value) {
4306
+ if (!headlessApp.value) {
4307
4307
  let comp = vue.h(unwrappedContent);
4308
- if (vm) {
4309
- comp.appContext = vm.appContext;
4310
- }
4311
- vue.createApp({
4308
+ headlessApp.value = vue.createApp({
4312
4309
  name: settings.appName,
4313
4310
  render: () => comp,
4314
- })
4315
- .mount(getContainer());
4316
- createAppMounted.value = true;
4311
+ });
4312
+ if (vm) {
4313
+ Object.assign(headlessApp.value._context, vm.appContext);
4314
+ }
4315
+ headlessApp.value.mount(getContainer());
4317
4316
  }
4318
4317
  newContent = () => getContainer();
4319
4318
  }
@@ -4399,11 +4398,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4399
4398
  (_a = instance.value) === null || _a === void 0 ? void 0 : _a.setProps(getProps(value));
4400
4399
  };
4401
4400
  const destroy = () => {
4401
+ var _a;
4402
4402
  if (instance.value) {
4403
4403
  instance.value.destroy();
4404
4404
  instance.value = undefined;
4405
4405
  }
4406
4406
  container = null;
4407
+ (_a = headlessApp.value) === null || _a === void 0 ? void 0 : _a.unmount();
4408
+ headlessApp.value = undefined;
4407
4409
  };
4408
4410
  const show = () => {
4409
4411
  var _a;
@@ -4462,14 +4464,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4462
4464
  else {
4463
4465
  vue.onMounted(mount);
4464
4466
  }
4465
- vue.onUnmounted(() => {
4466
- destroy();
4467
- });
4468
4467
  }
4469
4468
  else {
4470
4469
  mount();
4471
4470
  }
4472
4471
  }
4472
+ vue.onUnmounted(() => {
4473
+ destroy();
4474
+ });
4473
4475
  if (vue.isRef(opts) || vue.isReactive(opts)) {
4474
4476
  vue.watch(opts, refresh, { immediate: false });
4475
4477
  }
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * vue-tippy v6.3.0-beta.1
2
+ * vue-tippy v6.3.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
5
  */
6
- import { getCurrentInstance, ref, onMounted, onUnmounted, isRef, isReactive, watch, isVNode, createApp, h, defineComponent, nextTick, unref, reactive } from 'vue';
6
+ import { getCurrentInstance, ref, shallowRef, onMounted, onUnmounted, isRef, isReactive, watch, isVNode, createApp, h, defineComponent, nextTick, unref, reactive } from 'vue';
7
7
 
8
8
  var top = 'top';
9
9
  var bottom = 'bottom';
@@ -3946,6 +3946,7 @@ tippy.setDefaultProps({
3946
3946
  },
3947
3947
  });
3948
3948
  function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3949
+ settings = Object.assign({ mount: true, appName: 'Tippy' }, settings);
3949
3950
  const vm = getCurrentInstance();
3950
3951
  const instance = ref();
3951
3952
  const state = ref({
@@ -3955,12 +3956,12 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3955
3956
  isMounted: false,
3956
3957
  isShown: false,
3957
3958
  });
3958
- const createAppMounted = ref(false);
3959
+ const headlessApp = shallowRef();
3959
3960
  let container = null;
3960
3961
  const getContainer = () => {
3961
3962
  if (container)
3962
3963
  return container;
3963
- container = document.createElement("aside");
3964
+ container = document.createDocumentFragment();
3964
3965
  return container;
3965
3966
  };
3966
3967
  const getContent = (content) => {
@@ -3969,31 +3970,29 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3969
3970
  ? content.value
3970
3971
  : content;
3971
3972
  if (isVNode(unwrappedContent)) {
3972
- if (!createAppMounted.value) {
3973
- if (vm) {
3974
- unwrappedContent.appContext = vm.appContext;
3975
- }
3976
- createApp({
3973
+ if (!headlessApp.value) {
3974
+ headlessApp.value = createApp({
3977
3975
  name: settings.appName,
3978
3976
  render: () => unwrappedContent,
3979
- })
3980
- .mount(getContainer());
3981
- createAppMounted.value = true;
3977
+ });
3978
+ if (vm) {
3979
+ Object.assign(headlessApp.value._context, vm.appContext);
3980
+ }
3981
+ headlessApp.value.mount(getContainer());
3982
3982
  }
3983
3983
  newContent = () => getContainer();
3984
3984
  }
3985
3985
  else if (typeof unwrappedContent === 'object') {
3986
- if (!createAppMounted.value) {
3986
+ if (!headlessApp.value) {
3987
3987
  let comp = h(unwrappedContent);
3988
- if (vm) {
3989
- comp.appContext = vm.appContext;
3990
- }
3991
- createApp({
3988
+ headlessApp.value = createApp({
3992
3989
  name: settings.appName,
3993
3990
  render: () => comp,
3994
- })
3995
- .mount(getContainer());
3996
- createAppMounted.value = true;
3991
+ });
3992
+ if (vm) {
3993
+ Object.assign(headlessApp.value._context, vm.appContext);
3994
+ }
3995
+ headlessApp.value.mount(getContainer());
3997
3996
  }
3998
3997
  newContent = () => getContainer();
3999
3998
  }
@@ -4079,11 +4078,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4079
4078
  (_a = instance.value) === null || _a === void 0 ? void 0 : _a.setProps(getProps(value));
4080
4079
  };
4081
4080
  const destroy = () => {
4081
+ var _a;
4082
4082
  if (instance.value) {
4083
4083
  instance.value.destroy();
4084
4084
  instance.value = undefined;
4085
4085
  }
4086
4086
  container = null;
4087
+ (_a = headlessApp.value) === null || _a === void 0 ? void 0 : _a.unmount();
4088
+ headlessApp.value = undefined;
4087
4089
  };
4088
4090
  const show = () => {
4089
4091
  var _a;
@@ -4142,14 +4144,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4142
4144
  else {
4143
4145
  onMounted(mount);
4144
4146
  }
4145
- onUnmounted(() => {
4146
- destroy();
4147
- });
4148
4147
  }
4149
4148
  else {
4150
4149
  mount();
4151
4150
  }
4152
4151
  }
4152
+ onUnmounted(() => {
4153
+ destroy();
4154
+ });
4153
4155
  if (isRef(opts) || isReactive(opts)) {
4154
4156
  watch(opts, refresh, { immediate: false });
4155
4157
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.3.0-beta.1
2
+ * vue-tippy v6.3.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
5
  */
@@ -4263,6 +4263,7 @@ var VueTippy = (function (exports, vue) {
4263
4263
  },
4264
4264
  });
4265
4265
  function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4266
+ settings = Object.assign({ mount: true, appName: 'Tippy' }, settings);
4266
4267
  const vm = vue.getCurrentInstance();
4267
4268
  const instance = vue.ref();
4268
4269
  const state = vue.ref({
@@ -4272,12 +4273,12 @@ var VueTippy = (function (exports, vue) {
4272
4273
  isMounted: false,
4273
4274
  isShown: false,
4274
4275
  });
4275
- const createAppMounted = vue.ref(false);
4276
+ const headlessApp = vue.shallowRef();
4276
4277
  let container = null;
4277
4278
  const getContainer = () => {
4278
4279
  if (container)
4279
4280
  return container;
4280
- container = document.createElement("aside");
4281
+ container = document.createDocumentFragment();
4281
4282
  return container;
4282
4283
  };
4283
4284
  const getContent = (content) => {
@@ -4286,31 +4287,29 @@ var VueTippy = (function (exports, vue) {
4286
4287
  ? content.value
4287
4288
  : content;
4288
4289
  if (vue.isVNode(unwrappedContent)) {
4289
- if (!createAppMounted.value) {
4290
- if (vm) {
4291
- unwrappedContent.appContext = vm.appContext;
4292
- }
4293
- vue.createApp({
4290
+ if (!headlessApp.value) {
4291
+ headlessApp.value = vue.createApp({
4294
4292
  name: settings.appName,
4295
4293
  render: () => unwrappedContent,
4296
- })
4297
- .mount(getContainer());
4298
- createAppMounted.value = true;
4294
+ });
4295
+ if (vm) {
4296
+ Object.assign(headlessApp.value._context, vm.appContext);
4297
+ }
4298
+ headlessApp.value.mount(getContainer());
4299
4299
  }
4300
4300
  newContent = () => getContainer();
4301
4301
  }
4302
4302
  else if (typeof unwrappedContent === 'object') {
4303
- if (!createAppMounted.value) {
4303
+ if (!headlessApp.value) {
4304
4304
  let comp = vue.h(unwrappedContent);
4305
- if (vm) {
4306
- comp.appContext = vm.appContext;
4307
- }
4308
- vue.createApp({
4305
+ headlessApp.value = vue.createApp({
4309
4306
  name: settings.appName,
4310
4307
  render: () => comp,
4311
- })
4312
- .mount(getContainer());
4313
- createAppMounted.value = true;
4308
+ });
4309
+ if (vm) {
4310
+ Object.assign(headlessApp.value._context, vm.appContext);
4311
+ }
4312
+ headlessApp.value.mount(getContainer());
4314
4313
  }
4315
4314
  newContent = () => getContainer();
4316
4315
  }
@@ -4396,11 +4395,14 @@ var VueTippy = (function (exports, vue) {
4396
4395
  (_a = instance.value) === null || _a === void 0 ? void 0 : _a.setProps(getProps(value));
4397
4396
  };
4398
4397
  const destroy = () => {
4398
+ var _a;
4399
4399
  if (instance.value) {
4400
4400
  instance.value.destroy();
4401
4401
  instance.value = undefined;
4402
4402
  }
4403
4403
  container = null;
4404
+ (_a = headlessApp.value) === null || _a === void 0 ? void 0 : _a.unmount();
4405
+ headlessApp.value = undefined;
4404
4406
  };
4405
4407
  const show = () => {
4406
4408
  var _a;
@@ -4459,14 +4461,14 @@ var VueTippy = (function (exports, vue) {
4459
4461
  else {
4460
4462
  vue.onMounted(mount);
4461
4463
  }
4462
- vue.onUnmounted(() => {
4463
- destroy();
4464
- });
4465
4464
  }
4466
4465
  else {
4467
4466
  mount();
4468
4467
  }
4469
4468
  }
4469
+ vue.onUnmounted(() => {
4470
+ destroy();
4471
+ });
4470
4472
  if (vue.isRef(opts) || vue.isReactive(opts)) {
4471
4473
  vue.watch(opts, refresh, { immediate: false });
4472
4474
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * vue-tippy v6.3.0-beta.1
2
+ * vue-tippy v6.3.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
5
  */
6
- var VueTippy=function(e,t){"use strict";var n="top",o="bottom",r="right",i="left",a=[n,o,r,i],s=a.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),u=[].concat(a,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),p=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function c(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof f(e).Element||e instanceof Element}function d(e){return e instanceof f(e).HTMLElement||e instanceof HTMLElement}function v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof f(e).ShadowRoot||e instanceof ShadowRoot)}var m={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]||{},o=t.attributes[e]||{},r=t.elements[e];d(r)&&c(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.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 o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(o)&&c(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function h(e){return e.split("-")[0]}var g=Math.max,y=Math.min,b=Math.round;function w(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(d(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(o=b(n.width)/a||1),i>0&&(r=b(n.height)/i||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function x(e){var t=w(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&v(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function T(e){return f(e).getComputedStyle(e)}function P(e){return["table","td","th"].indexOf(c(e))>=0}function C(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||C(e)}function E(e){return d(e)&&"fixed"!==T(e).position?e.offsetParent:null}function D(e){for(var t=f(e),n=E(e);n&&P(n)&&"static"===T(n).position;)n=E(n);return n&&("html"===c(n)||"body"===c(n)&&"static"===T(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(e)&&"fixed"===T(e).position)return null;for(var n=A(e);d(n)&&["html","body"].indexOf(c(n))<0;){var o=T(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function j(e,t,n){return g(e,y(t,n))}function S(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function L(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function R(e){return e.split("-")[1]}var k={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B(e){var t,a=e.popper,s=e.popperRect,u=e.placement,p=e.variation,c=e.offsets,l=e.position,d=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,h=e.isFixed,g=!0===m?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:b(e.x*n)/n||0,y:b(t*n)/n||0}}(c):"function"==typeof m?m(c):c,y=g.x,w=void 0===y?0:y,x=g.y,O=void 0===x?0:x,P=c.hasOwnProperty("x"),A=c.hasOwnProperty("y"),E=i,M=n,j=window;if(v){var S=D(a),L="clientHeight",R="clientWidth";if(S===f(a)&&"static"!==T(S=C(a)).position&&"absolute"===l&&(L="scrollHeight",R="scrollWidth"),S=S,u===n||(u===i||u===r)&&"end"===p)M=o,O-=(h&&j.visualViewport?j.visualViewport.height:S[L])-s.height,O*=d?1:-1;if(u===i||(u===n||u===o)&&"end"===p)E=r,w-=(h&&j.visualViewport?j.visualViewport.width:S[R])-s.width,w*=d?1:-1}var B,H=Object.assign({position:l},v&&k);return Object.assign({},H,d?((B={})[M]=A?"0":"",B[E]=P?"0":"",B.transform=(j.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",B):((t={})[M]=A?O+"px":"",t[E]=P?w+"px":"",t.transform="",t))}var H={passive:!0};var V={left:"right",right:"left",bottom:"top",top:"bottom"};function I(e){return e.replace(/left|right|bottom|top/g,(function(e){return V[e]}))}var W={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(function(e){return W[e]}))}function U(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return w(C(e)).left+U(e).scrollLeft}function q(e){var t=T(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function $(e,t){var n;void 0===t&&(t=[]);var o=function e(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:d(t)&&q(t)?t:e(A(t))}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=f(o),a=r?[i].concat(i.visualViewport||[],q(o)?o:[]):o,s=t.concat(a);return r?s:s.concat($(A(a)))}function F(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z(e,t){return"viewport"===t?F(function(e){var t=f(e),n=C(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,s=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:r,height:i,x:a+_(e),y:s}}(e)):l(t)?function(e){var t=w(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):F(function(e){var t,n=C(e),o=U(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=g(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=g(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+_(e),u=-o.scrollTop;return"rtl"===T(r||n).direction&&(s+=g(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(C(e)))}function X(e,t,n){var o="clippingParents"===t?function(e){var t=$(A(e)),n=["absolute","fixed"].indexOf(T(e).position)>=0,o=n&&d(e)?D(e):e;return l(o)?t.filter((function(e){return l(e)&&O(e,o)&&"body"!==c(e)&&(!n||"static"!==T(e).position)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r.reduce((function(t,n){var o=z(e,n);return t.top=g(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=g(o.left,t.left),t}),z(e,r[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Y(e){var t,a=e.reference,s=e.element,u=e.placement,p=u?h(u):null,c=u?R(u):null,f=a.x+a.width/2-s.width/2,l=a.y+a.height/2-s.height/2;switch(p){case n:t={x:f,y:a.y-s.height};break;case o:t={x:f,y:a.y+a.height};break;case r:t={x:a.x+a.width,y:l};break;case i:t={x:a.x-s.width,y:l};break;default:t={x:a.x,y:a.y}}var d=p?M(p):null;if(null!=d){var v="y"===d?"height":"width";switch(c){case"start":t[d]=t[d]-(a[v]/2-s[v]/2);break;case"end":t[d]=t[d]+(a[v]/2-s[v]/2)}}return t}function J(e,t){void 0===t&&(t={});var i=t.placement,s=void 0===i?e.placement:i,u=t.boundary,p=void 0===u?"clippingParents":u,c=t.rootBoundary,f=void 0===c?"viewport":c,d=t.elementContext,v=void 0===d?"popper":d,m=t.altBoundary,h=void 0!==m&&m,g=t.padding,y=void 0===g?0:g,b=S("number"!=typeof y?y:L(y,a)),x=e.rects.popper,O=e.elements[h?"popper"===v?"reference":"popper":v],T=X(l(O)?O:O.contextElement||C(e.elements.popper),p,f),P=w(e.elements.reference),A=Y({reference:P,element:x,strategy:"absolute",placement:s}),E=F(Object.assign({},x,A)),D="popper"===v?E:P,M={top:T.top-D.top+b.top,bottom:D.bottom-T.bottom+b.bottom,left:T.left-D.left+b.left,right:D.right-T.right+b.right},j=e.modifiersData.offset;if("popper"===v&&j){var R=j[s];Object.keys(M).forEach((function(e){var t=[r,o].indexOf(e)>=0?1:-1,i=[n,o].indexOf(e)>=0?"y":"x";M[e]+=R[i]*t}))}return M}function G(e,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,r=t.padding,i=t.flipVariations,p=t.allowedAutoPlacements,c=void 0===p?u:p,f=R(t.placement),l=f?i?s:s.filter((function(e){return R(e)===f})):a,d=l.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=l);var v=d.reduce((function(t,i){return t[i]=J(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[h(i)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}function K(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 Q(e){return[n,r,o,i].some((function(t){return e[t]>=0}))}function Z(e,t,n){void 0===n&&(n=!1);var o,r,i=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=b(t.width)/e.offsetWidth||1,o=b(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=C(t),u=w(e,a),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==c(t)||q(s))&&(p=(o=t)!==f(o)&&d(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:U(o)),d(t)?((l=w(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=_(s))),{x:u.left+p.scrollLeft-l.x,y:u.top+p.scrollTop-l.y,width:u.width,height:u.height}}function ee(e){var t=new Map,n=new Set,o=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(o){if(!n.has(o)){var r=t.get(o);r&&e(r)}})),o.push(r)}(e)})),o}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){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 oe(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,o=e.defaultOptions,r=void 0===o?te:o;return function(e,t,o){void 0===o&&(o=r);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},te,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,f={state:s,setOptions:function(o){var i="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},r,s.options,i),s.scrollParents={reference:l(e)?$(e):e.contextElement?$(e.contextElement):[],popper:$(t)};var a,c,v=function(e){var t=ee(e);return p.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.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(c).map((function(e){return c[e]}))));return s.orderedModifiers=v.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.options,n=e.effect;if("function"==typeof n){var o=n({state:s,name:e.name,instance:f,options:void 0===t?{}:t});u.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ne(t,n)){s.rects={reference:Z(t,D(n),"fixed"===s.options.strategy),popper:x(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var r=s.orderedModifiers[o],i=r.fn,a=r.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:r.name,instance:f})||s)}else s.reset=!1,o=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),c=!0}};if(!ne(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(o).then((function(e){!c&&o.onFirstUpdate&&o.onFirstUpdate(e)})),f}}var re=oe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,u=f(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",n.update,H)})),s&&u.addEventListener("resize",n.update,H),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),s&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,p={placement:h(t.placement),variation:R(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,B(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,B(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},m,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.name,a=e.options.offset,s=void 0===a?[0,0]:a,p=u.reduce((function(e,o){return e[o]=function(e,t,o){var a=h(e),s=[i,n].indexOf(a)>=0?-1:1,u="function"==typeof o?o(Object.assign({},t,{placement:e})):o,p=u[0],c=u[1];return p=p||0,c=(c||0)*s,[i,r].indexOf(a)>=0?{x:c,y:p}:{x:p,y:c}}(o,t.rects,s),e}),{}),c=p[t.placement],f=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c.x,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=p}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var u=a.mainAxis,p=void 0===u||u,c=a.altAxis,f=void 0===c||c,l=a.fallbackPlacements,d=a.padding,v=a.boundary,m=a.rootBoundary,g=a.altBoundary,y=a.flipVariations,b=void 0===y||y,w=a.allowedAutoPlacements,x=t.options.placement,O=h(x),T=l||(O===x||!b?[I(x)]:function(e){if("auto"===h(e))return[];var t=I(e);return[N(e),t,N(t)]}(x)),P=[x].concat(T).reduce((function(e,n){return e.concat("auto"===h(n)?G(t,{placement:n,boundary:v,rootBoundary:m,padding:d,flipVariations:b,allowedAutoPlacements:w}):n)}),[]),C=t.rects.reference,A=t.rects.popper,E=new Map,D=!0,M=P[0],j=0;j<P.length;j++){var S=P[j],L=h(S),k="start"===R(S),B=[n,o].indexOf(L)>=0,H=B?"width":"height",V=J(t,{placement:S,boundary:v,rootBoundary:m,altBoundary:g,padding:d}),W=B?k?r:i:k?o:n;C[H]>A[H]&&(W=I(W));var U=I(W),_=[];if(p&&_.push(V[L]<=0),f&&_.push(V[W]<=0,V[U]<=0),_.every((function(e){return e}))){M=S,D=!1;break}E.set(S,_)}if(D)for(var q=function(e){var t=P.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},$=b?3:1;$>0;$--){if("break"===q($))break}t.placement!==M&&(t.modifiersData[s]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name,u=a.mainAxis,p=void 0===u||u,c=a.altAxis,f=void 0!==c&&c,l=a.tether,d=void 0===l||l,v=a.tetherOffset,m=void 0===v?0:v,b=J(t,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=h(t.placement),O=R(t.placement),T=!O,P=M(w),C="x"===P?"y":"x",A=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(A){if(p){var V,I="y"===P?n:i,W="y"===P?o:r,N="y"===P?"height":"width",U=A[P],_=U+b[I],q=U-b[W],$=d?-S[N]/2:0,F="start"===O?E[N]:S[N],z="start"===O?-S[N]:-E[N],X=t.elements.arrow,Y=d&&X?x(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[I],Q=G[W],Z=j(0,E[N],Y[N]),ee=T?E[N]/2-$-Z-K-k.mainAxis:F-Z-K-k.mainAxis,te=T?-E[N]/2+$+Z+Q+k.mainAxis:z+Z+Q+k.mainAxis,ne=t.elements.arrow&&D(t.elements.arrow),oe=null!=(V=null==B?void 0:B[P])?V:0,re=U+te-oe,ie=j(d?y(_,U+ee-oe-(ne?"y"===P?ne.clientTop||0:ne.clientLeft||0:0)):_,U,d?g(q,re):q);A[P]=ie,H[P]=ie-U}if(f){var ae,se=A[C],ue="y"===C?"height":"width",pe=se+b["x"===P?n:i],ce=se-b["x"===P?o:r],fe=-1!==[n,i].indexOf(w),le=null!=(ae=null==B?void 0:B[C])?ae:0,de=fe?pe:se-E[ue]-S[ue]-le+k.altAxis,ve=fe?se+E[ue]+S[ue]-le-k.altAxis:ce,me=d&&fe?function(e,t,n){var o=j(e,t,n);return o>n?n:o}(de,se,ve):j(d?de:pe,se,d?ve:ce);A[C]=me,H[C]=me-se}t.modifiersData[s]=H}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,s=e.state,u=e.name,p=e.options,c=s.elements.arrow,f=s.modifiersData.popperOffsets,l=h(s.placement),d=M(l),v=[i,r].indexOf(l)>=0?"height":"width";if(c&&f){var m=function(e,t){return S("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:L(e,a))}(p.padding,s),g=x(c),y="y"===d?n:i,b="y"===d?o:r,w=s.rects.reference[v]+s.rects.reference[d]-f[d]-s.rects.popper[v],O=f[d]-s.rects.reference[d],T=D(c),P=T?"y"===d?T.clientHeight||0:T.clientWidth||0:0,C=P/2-g[v]/2+(w/2-O/2),A=j(m[y],C,P-g[v]-m[b]);s.modifiersData[u]=((t={})[d]=A,t.centerOffset=A-C,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&O(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),u=K(a,o),p=K(s,r,i),c=Q(u),f=Q(p);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),ie={passive:!0,capture:!0},ae=function(){return document.body};function se(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function pe(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ce(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function fe(e){return[].concat(e)}function le(e,t){-1===e.indexOf(t)&&e.push(t)}function de(e){return e.split("-")[0]}function ve(e){return[].slice.call(e)}function me(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function he(){return document.createElement("div")}function ge(e){return["Element","Fragment"].some((function(t){return ue(e,t)}))}function ye(e){return ue(e,"MouseEvent")}function be(e){return ge(e)?[e]:function(e){return ue(e,"NodeList")}(e)?ve(e):Array.isArray(e)?e:ve(document.querySelectorAll(e))}function we(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Oe(e){var t,n=fe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Te(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function Pe(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Ce={isTouch:!1},Ae=0;function Ee(){Ce.isTouch||(Ce.isTouch=!0,window.performance&&document.addEventListener("mousemove",De))}function De(){var e=performance.now();e-Ae<20&&(Ce.isTouch=!1,document.removeEventListener("mousemove",De)),Ae=e}function Me(){var e,t=document.activeElement;(e=t)&&e._tippy&&e._tippy.reference===e&&(t.blur&&!t._tippy.state.isVisible&&t.blur())}var je=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Se=Object.assign({appendTo:ae,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}),Le=Object.keys(Se);function Re(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=Se[r])?o:n.defaultValue);return t}),{});return Object.assign({},e,t)}function ke(e,t){var n=Object.assign({},t,{content:pe(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Re(Object.assign({},Se,{plugins:t}))):Le).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Se.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 Be(e,t){e.innerHTML=t}function He(e){var t=he();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ge(e)?t.appendChild(e):Be(t,e)),t}function Ve(e,t){ge(t.content)?(Be(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Be(e,t.content):e.textContent=t.content)}function Ie(e){var t=e.firstElementChild,n=ve(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function We(e){var t=he(),n=he();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=he();function r(n,o){var r=Ie(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Ve(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(He(o.arrow))):i.appendChild(He(o.arrow)):s&&i.removeChild(s)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),Ve(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}We.$$tippy=!0;var Ne=1,Ue=[],_e=[];function qe(e,t){var n,o,r,i,a,s,u,p,c=ke(e,Object.assign({},Se,Re(me(t)))),f=!1,l=!1,d=!1,v=!1,m=[],h=ce(X,c.interactiveDebounce),g=Ne++,y=(p=c.plugins).filter((function(e,t){return p.indexOf(e)===t})),b={id:g,reference:e,popper:he(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(b.state.isDestroyed)return;R("onBeforeUpdate",[b,t]),F();var n=b.props,o=ke(e,Object.assign({},n,me(t),{ignoreAttributes:!0}));b.props=o,$(),n.interactiveDebounce!==o.interactiveDebounce&&(H(),h=ce(X,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?fe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");B(),L(),O&&O(n,o);b.popperInstance&&(K(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));R("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=Ce.isTouch&&!b.props.touch,r=se(b.props.duration,0,Se.duration);if(e||t||n||o)return;if(D().hasAttribute("disabled"))return;if(R("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,E()&&(x.style.visibility="visible");L(),N(),b.state.isMounted||(x.style.transition="none");if(E()){var i=j();we([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!v){if(v=!0,x.style.transition=b.props.moveTransition,E()&&b.props.animation){var t=j(),n=t.box,o=t.content;we([n,o],r),xe([n,o],"visible")}k(),B(),le(_e,b),null==(e=b.popperInstance)||e.forceUpdate(),R("onMount",[b]),b.props.animation&&E()&&function(e,t){_(e,t)}(r,(function(){b.state.isShown=!0,R("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=D();e=b.props.interactive&&t===ae||"parent"===t?n.parentNode:pe(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=se(b.props.duration,1,Se.duration);if(e||t||n)return;if(R("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,v=!1,f=!1,E()&&(x.style.visibility="hidden");if(H(),U(),L(!0),E()){var r=j(),i=r.box,a=r.content;b.props.animation&&(we([i,a],o),xe([i,a],"hidden"))}k(),B(),b.props.animation?E()&&function(e,t){_(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(o,b.unmount):b.unmount()},hideWithInteractivity:function(e){M().addEventListener("mousemove",h),le(Ue,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),Z().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);_e=_e.filter((function(e){return e!==b})),b.state.isMounted=!1,R("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),F(),delete e._tippy,b.state.isDestroyed=!0,R("onDestroy",[b])}};if(!c.render)return b;var w=c.render(b),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var T=y.map((function(e){return e.fn(b)})),P=e.hasAttribute("aria-expanded");return $(),B(),L(),R("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",h)})),b;function C(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===C()[0]}function E(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function D(){return u||e}function M(){var e=D().parentNode;return e?Oe(e):document}function j(){return Ie(x)}function S(e){return b.state.isMounted&&!b.state.isVisible||Ce.isTouch||i&&"focus"===i.type?0:se(b.props.delay,e?0:1,Se.delay)}function L(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function R(e,t,n){var o;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=b.props)[e].apply(o,t)}function k(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,o=x.id;fe(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function B(){!P&&b.props.aria.expanded&&fe(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===D()?"true":"false"):e.removeAttribute("aria-expanded")}))}function H(){M().removeEventListener("mousemove",h),Ue=Ue.filter((function(e){return e!==h}))}function V(t){if(!Ce.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Pe(x,n)){if(fe(b.props.triggerTarget||e).some((function(e){return Pe(e,n)}))){if(Ce.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||U())}}}function I(){d=!0}function W(){d=!1}function N(){var e=M();e.addEventListener("mousedown",V,!0),e.addEventListener("touchend",V,ie),e.addEventListener("touchstart",W,ie),e.addEventListener("touchmove",I,ie)}function U(){var e=M();e.removeEventListener("mousedown",V,!0),e.removeEventListener("touchend",V,ie),e.removeEventListener("touchstart",W,ie),e.removeEventListener("touchmove",I,ie)}function _(e,t){var n=j().box;function o(e){e.target===n&&(Te(n,"remove",o),t())}if(0===e)return t();Te(n,"remove",a),Te(n,"add",o),a=o}function q(t,n,o){void 0===o&&(o=!1),fe(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})}))}function $(){var e;A()&&(q("touchstart",z,{passive:!0}),q("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(q(e,z),e){case"mouseenter":q("mouseleave",Y);break;case"focus":q(je?"focusout":"blur",J);break;case"focusin":q("focusout",J)}}))}function F(){m.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),m=[]}function z(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!l){var o="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,B(),!b.state.isVisible&&ye(e)&&Ue.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!o&&te(e)}}function X(e){var t=e.target,n=D().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=de(r.placement),s=r.modifiersData.offset;return!s||(t.top-o+("bottom"===a?s.top.y:0)>i||o-t.bottom-("top"===a?s.bottom.y:0)>i||t.left-n+("right"===a?s.left.x:0)>i||n-t.right-("left"===a?s.right.x:0)>i)}))}(Z().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean),e)&&(H(),te(e))}function Y(e){G(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function J(e){b.props.trigger.indexOf("focusin")<0&&e.target!==D()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function G(e){return!!Ce.isTouch&&A()!==e.type.indexOf("touch")>=0}function K(){Q();var t=b.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=E()?Ie(x).arrow:null,p=i?{getBoundingClientRect:i,contextElement:i.contextElement||D()}:e,c=[{name:"offset",options:{offset:r}},{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(e){var t=e.state;if(E()){var n=j().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={}}}}];E()&&u&&c.push({name:"arrow",options:{element:u,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=re(p,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:c}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return ve(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&R("onTrigger",[b,e]),N();var t=S(!0),o=C(),r=o[1];Ce.isTouch&&"hold"===o[0]&&r&&(t=r),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),R("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=S(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else U()}}function $e(e,t){void 0===t&&(t={});var n=Se.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ee,ie),window.addEventListener("blur",Me);var o=Object.assign({},t,{plugins:n}),r=be(e).reduce((function(e,t){var n=t&&qe(t,o);return n&&e.push(n),e}),[]);return ge(e)?r[0]:r}$e.defaultProps=Se,$e.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Se[t]=e[t]}))},$e.currentInput=Ce;var Fe=Object.assign({},m,{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)}}),ze=function(e,t){var n;void 0===t&&(t={});var o,r=e,i=[],a=[],s=t.overrides,u=[],p=!1;function c(){a=r.map((function(e){return fe(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function f(){i=r.map((function(e){return e.reference}))}function l(e){r.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function v(e,t){var n=a.indexOf(t);if(t!==o){o=t;var u=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}l(!1),f(),c();var m,h,g={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!p&&(p=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!p&&(p=!0,v(e,i[0]))},onTrigger:function(e,t){v(e,t.currentTarget)}}}},y=$e(he(),Object.assign({},(m=["overrides"],h=Object.assign({},t),m.forEach((function(e){delete h[e]})),h),{plugins:[g].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[Fe])})})),b=y.show;y.show=function(e){return b(),o||null!=e?o&&null==e?void 0:"number"==typeof e?i[e]&&v(y,i[e]):r.indexOf(e)>=0?v(y,e.reference):i.indexOf(e)>=0?v(y,e):void 0:v(y,i[0])},y.showNext=function(){var e=i[0];if(!o)return y.show(0);var t=i.indexOf(o);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!o)return y.show(e);var t=i.indexOf(o);y.show(i[t-1]||e)};var w=y.setProps;return y.setProps=function(e){s=e.overrides||s,w(e)},y.setInstances=function(e){l(!0),u.forEach((function(e){return e()})),r=e,l(!1),f(),c(),u=d(y),y.setProps({triggerTarget:a})},u=d(y),y},Xe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Ie(e.popper),o=n.box,r=n.content,i=e.props.animateFill?function(){var e=he();return e.className="tippy-backdrop",xe([e],"hidden"),e}():null;return{onCreate:function(){i&&(o.insertBefore(i,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=o.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,xe([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&xe([i],"hidden")}}}};var Ye={clientX:0,clientY:0},Je=[];function Ge(e){Ye={clientX:e.clientX,clientY:e.clientY}}var Ke={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Oe(e.props.triggerTarget||t),o=!1,r=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",f)}function p(){n.removeEventListener("mousemove",f)}function c(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function f(n){var o=!n.target||t.contains(n.target),r=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=i-s.left,p=a-s.top;!o&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,o=a;"initial"===r&&(n=e.left+u,o=e.top+p);var s="horizontal"===r?e.top:o,c="vertical"===r?e.right:n,f="horizontal"===r?e.bottom:o,l="vertical"===r?e.left:n;return{width:c-l,height:f-s,top:s,right:c,bottom:f,left:l}}})}function l(){e.props.followCursor&&(Je.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Ge)}(n))}function d(){0===(Je=Je.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Ge)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;o||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||r||s()||u()):(p(),c()))},onMount:function(){e.props.followCursor&&!r&&(i&&(f(Ye),i=!1),s()||u())},onTrigger:function(e,t){ye(t)&&(Ye={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),p(),i=!0)}}}};var Qe={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var o=-1,r=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var a=r.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,o){if(n.length<2||null===e)return t;if(2===n.length&&o>=0&&n[0].left>n[1].right)return n[o]||t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],a="top"===e,s=r.top,u=i.bottom,p=a?r.left:i.left,c=a?r.right:i.right;return{top:s,bottom:u,left:p,right:c,width:c-p,height:u-s};case"left":case"right":var f=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===f:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return t}}(de(e),n.getBoundingClientRect(),ve(n.getClientRects()),o)}(a.placement)}})),t=a.placement)}};function s(){var t;r||(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),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(ye(n)){var r=ve(e.reference.getClientRects()),i=r.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=r.indexOf(i);o=a>-1?a:o}},onHidden:function(){o=-1}}}};var Ze={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function o(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,i=null;function a(){var s=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=o("popper")?n.getBoundingClientRect():null;(s&&et(r,s)||u&&et(i,u))&&e.popperInstance&&e.popperInstance.update(),r=s,i=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function et(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}function tt(e,n={},o={mount:!0,appName:"Tippy"}){const r=t.getCurrentInstance(),i=t.ref(),a=t.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=t.ref(!1);let u=null;const p=()=>u||(u=document.createElement("aside"),u),c=e=>{let n,i=t.isRef(e)?e.value:e;if(t.isVNode(i))s.value||(r&&(i.appContext=r.appContext),t.createApp({name:o.appName,render:()=>i}).mount(p()),s.value=!0),n=()=>p();else if("object"==typeof i){if(!s.value){let e=t.h(i);r&&(e.appContext=r.appContext),t.createApp({name:o.appName,render:()=>e}).mount(p()),s.value=!0}n=()=>p()}else n=i;return n},f=e=>{let n={};return n=t.isRef(e)?e.value||{}:(t.isReactive(e),{...e}),n.content&&(n.content=c(n.content)),n.triggerTarget&&(n.triggerTarget=t.isRef(n.triggerTarget)?n.triggerTarget.value:n.triggerTarget),n.plugins&&Array.isArray(n.plugins)||(n.plugins=[]),n.plugins=n.plugins.filter(e=>"vueTippyReactiveState"!==e.name),n.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){a.value.isEnabled=!0},onMount(){a.value.isMounted=!0},onShow(){a.value.isMounted=!0,a.value.isVisible=!0},onShown(){a.value.isShown=!0},onHide(){a.value.isMounted=!1,a.value.isVisible=!1},onHidden(){a.value.isShown=!1},onUnmounted(){a.value.isMounted=!1},onDestroy(){a.value.isDestroyed=!0}})}),n},l=()=>{i.value&&i.value.setProps(f(n))},d=()=>{i.value&&n.content&&i.value.setContent(c(n.content))},v=()=>{i.value&&(i.value.destroy(),i.value=void 0),u=null},m=()=>{if(!e)return;let o=t.isRef(e)?e.value:e;"function"==typeof o&&(o=o()),o&&(i.value=$e(o,f(n)),o.$tippy=h)},h={tippy:i,refresh:l,refreshContent:d,setContent:e=>{var t;null===(t=i.value)||void 0===t||t.setContent(c(e))},setProps:e=>{var t;null===(t=i.value)||void 0===t||t.setProps(f(e))},destroy:v,hide:()=>{var e;null===(e=i.value)||void 0===e||e.hide()},show:()=>{var e;null===(e=i.value)||void 0===e||e.show()},disable:()=>{var e;null===(e=i.value)||void 0===e||e.disable(),a.value.isEnabled=!1},enable:()=>{var e;null===(e=i.value)||void 0===e||e.enable(),a.value.isEnabled=!0},unmount:()=>{var e;null===(e=i.value)||void 0===e||e.unmount()},mount:m,state:a};return o.mount&&(r?(r.isMounted?m():t.onMounted(m),t.onUnmounted(()=>{v()})):m()),t.isRef(n)||t.isReactive(n)?t.watch(n,l,{immediate:!1}):t.isRef(n.content)&&t.watch(n.content,d,{immediate:!1}),h}function nt(e,n){const o=t.ref();return t.onMounted(()=>{const t=(Array.isArray(e)?e.map(e=>e.value):"function"==typeof e?e():e.value).map(e=>e instanceof Element?e._tippy:e).filter(Boolean);o.value=ze(t,n?{allowHTML:!0,...n}:{allowHTML:!0})}),{singleton:o}}function ot(e){var n,o;const r="function"==typeof(i=e)?i():t.unref(i);var i;return null!==(o=null===(n=r)||void 0===n?void 0:n.$el)&&void 0!==o?o:r}$e.setDefaultProps({render:We}),$e.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const rt=t.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>$e.defaultProps.appendTo},aria:{default:()=>$e.defaultProps.aria},delay:{default:()=>$e.defaultProps.delay},duration:{default:()=>$e.defaultProps.duration},getReferenceClientRect:{default:()=>$e.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>$e.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>$e.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>$e.defaultProps.interactive},interactiveBorder:{default:()=>$e.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>$e.defaultProps.interactiveDebounce},moveTransition:{default:()=>$e.defaultProps.moveTransition},offset:{default:()=>$e.defaultProps.offset},onAfterUpdate:{default:()=>$e.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>$e.defaultProps.onBeforeUpdate},onCreate:{default:()=>$e.defaultProps.onCreate},onDestroy:{default:()=>$e.defaultProps.onDestroy},onHidden:{default:()=>$e.defaultProps.onHidden},onHide:{default:()=>$e.defaultProps.onHide},onMount:{default:()=>$e.defaultProps.onMount},onShow:{default:()=>$e.defaultProps.onShow},onShown:{default:()=>$e.defaultProps.onShown},onTrigger:{default:()=>$e.defaultProps.onTrigger},onUntrigger:{default:()=>$e.defaultProps.onUntrigger},onClickOutside:{default:()=>$e.defaultProps.onClickOutside},placement:{default:()=>$e.defaultProps.placement},plugins:{default:()=>$e.defaultProps.plugins},popperOptions:{default:()=>$e.defaultProps.popperOptions},render:{default:()=>$e.defaultProps.render},showOnCreate:{type:Boolean,default:()=>$e.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>$e.defaultProps.touch},trigger:{default:()=>$e.defaultProps.trigger},triggerTarget:{default:()=>$e.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>$e.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>$e.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>$e.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>$e.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>$e.defaultProps.allowHTML},animation:{default:()=>$e.defaultProps.animation},arrow:{default:()=>$e.defaultProps.arrow},content:{default:()=>$e.defaultProps.content},inertia:{default:()=>$e.defaultProps.inertia},maxWidth:{default:()=>$e.defaultProps.maxWidth},role:{default:()=>$e.defaultProps.role},theme:{default:()=>$e.defaultProps.theme},zIndex:{default:()=>$e.defaultProps.zIndex}},emits:["state"],setup(e,{slots:n,emit:o,expose:r}){const i=t.ref(),a=t.ref(),s=t.ref(!1),u=()=>{let t={...e};for(const e of["to","tag","contentTag","contentClass"])t.hasOwnProperty(e)&&delete t[e];return t};let p=()=>ot(i);e.to&&("undefined"!=typeof Element&&e.to instanceof Element?p=()=>e.to:("string"==typeof e.to||e.to instanceof String)&&(p=()=>document.querySelector(e.to)));const c=tt(p,u());t.onMounted(()=>{s.value=!0,t.nextTick(()=>{n.content&&c.setContent(()=>a.value)})}),t.watch(c.state,()=>{o("state",t.unref(c.state))},{immediate:!0,deep:!0}),t.watch(()=>e,()=>{c.setProps(u()),n.content&&c.setContent(()=>a.value)},{deep:!0});let f=t.reactive({elem:i,contentElem:a,mounted:s,...c});return r(f),()=>{const o=n.default?n.default(f):[],r=e.contentTag;if(!e.tag){const u=t.h(o[0],{ref:i,"data-v-tippy":""});return n.content?[u,t.h(r,{ref:a,style:{display:s.value?"inherit":"none"},class:e.contentClass},n.content(f))]:u}return t.h(e.tag,{ref:i,"data-v-tippy":""},n.content?[o,t.h(r,{ref:a,style:{display:s.value?"inherit":"none"},class:e.contentClass},n.content(f))]:o)}}}),it=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let at={};Object.keys($e.defaultProps).forEach(e=>{at[e]=it.includes(e)?{type:Boolean,default:function(){return $e.defaultProps[e]}}:{default:function(){return $e.defaultProps[e]}}});const st=t.defineComponent({props:at,setup(e){const n=t.ref([]),{singleton:o}=nt(n,e);return{instances:n,singleton:o}},mounted(){var e;const t=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(t).map(e=>e._tippy).filter(Boolean),null===(e=this.singleton)||void 0===e||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return t.h(()=>e)}}),ut={mounted(e,t,n){const o="string"==typeof t.value?{content:t.value}:t.value||{},r=Object.keys(t.modifiers||{}),i=r.find(e=>"arrow"!==e),a=-1!==r.findIndex(e=>"arrow"===e);i&&(o.placement=o.placement||i),a&&(o.arrow=void 0===o.arrow||o.arrow),n.props&&n.props.onTippyShow&&(o.onShow=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(o.onShown=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(o.onHidden=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(o.onHide=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(o.onMount=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyMount(...e)}),e.getAttribute("title")&&!o.content&&(o.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!o.content&&(o.content=e.getAttribute("content")),tt(e,o)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},pt={install(e,t={}){$e.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",ut),e.component(t.component||"tippy",rt),e.component(t.componentSingleton||"tippy-singleton",st)}},ct=$e.setDefaultProps;return ct({ignoreAttributes:!0,plugins:[Ze,Qe,Ke,Xe]}),e.Tippy=rt,e.TippySingleton=st,e.default=pt,e.directive=ut,e.plugin=pt,e.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>',e.setDefaultProps=ct,e.tippy=$e,e.useSingleton=nt,e.useTippy=tt,e.useTippyComponent=function(e={},n){const o=t.ref();return{instance:o,TippyComponent:t.h(rt,{...e,onVnodeMounted:e=>{o.value=e.component.ctx}},n)}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue);
6
+ var VueTippy=function(e,t){"use strict";var n="top",o="bottom",r="right",i="left",a=[n,o,r,i],s=a.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),u=[].concat(a,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),p=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function c(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof f(e).Element||e instanceof Element}function d(e){return e instanceof f(e).HTMLElement||e instanceof HTMLElement}function v(e){return"undefined"!=typeof ShadowRoot&&(e instanceof f(e).ShadowRoot||e instanceof ShadowRoot)}var m={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]||{},o=t.attributes[e]||{},r=t.elements[e];d(r)&&c(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.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 o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(o)&&c(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function h(e){return e.split("-")[0]}var g=Math.max,y=Math.min,b=Math.round;function w(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(d(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(o=b(n.width)/a||1),i>0&&(r=b(n.height)/i||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function x(e){var t=w(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&v(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function T(e){return f(e).getComputedStyle(e)}function P(e){return["table","td","th"].indexOf(c(e))>=0}function A(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||A(e)}function E(e){return d(e)&&"fixed"!==T(e).position?e.offsetParent:null}function D(e){for(var t=f(e),n=E(e);n&&P(n)&&"static"===T(n).position;)n=E(n);return n&&("html"===c(n)||"body"===c(n)&&"static"===T(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(e)&&"fixed"===T(e).position)return null;for(var n=C(e);d(n)&&["html","body"].indexOf(c(n))<0;){var o=T(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function j(e,t,n){return g(e,y(t,n))}function S(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function L(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function R(e){return e.split("-")[1]}var k={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B(e){var t,a=e.popper,s=e.popperRect,u=e.placement,p=e.variation,c=e.offsets,l=e.position,d=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,h=e.isFixed,g=!0===m?function(e){var t=e.y,n=window.devicePixelRatio||1;return{x:b(e.x*n)/n||0,y:b(t*n)/n||0}}(c):"function"==typeof m?m(c):c,y=g.x,w=void 0===y?0:y,x=g.y,O=void 0===x?0:x,P=c.hasOwnProperty("x"),C=c.hasOwnProperty("y"),E=i,M=n,j=window;if(v){var S=D(a),L="clientHeight",R="clientWidth";if(S===f(a)&&"static"!==T(S=A(a)).position&&"absolute"===l&&(L="scrollHeight",R="scrollWidth"),S=S,u===n||(u===i||u===r)&&"end"===p)M=o,O-=(h&&j.visualViewport?j.visualViewport.height:S[L])-s.height,O*=d?1:-1;if(u===i||(u===n||u===o)&&"end"===p)E=r,w-=(h&&j.visualViewport?j.visualViewport.width:S[R])-s.width,w*=d?1:-1}var B,H=Object.assign({position:l},v&&k);return Object.assign({},H,d?((B={})[M]=C?"0":"",B[E]=P?"0":"",B.transform=(j.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",B):((t={})[M]=C?O+"px":"",t[E]=P?w+"px":"",t.transform="",t))}var H={passive:!0};var V={left:"right",right:"left",bottom:"top",top:"bottom"};function I(e){return e.replace(/left|right|bottom|top/g,(function(e){return V[e]}))}var W={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(function(e){return W[e]}))}function U(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return w(A(e)).left+U(e).scrollLeft}function q(e){var t=T(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function F(e,t){var n;void 0===t&&(t=[]);var o=function e(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:d(t)&&q(t)?t:e(C(t))}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=f(o),a=r?[i].concat(i.visualViewport||[],q(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(F(C(a)))}function $(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z(e,t){return"viewport"===t?$(function(e){var t=f(e),n=A(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,s=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:r,height:i,x:a+_(e),y:s}}(e)):l(t)?function(e){var t=w(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):$(function(e){var t,n=A(e),o=U(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=g(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=g(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+_(e),u=-o.scrollTop;return"rtl"===T(r||n).direction&&(s+=g(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(A(e)))}function X(e,t,n){var o="clippingParents"===t?function(e){var t=F(C(e)),n=["absolute","fixed"].indexOf(T(e).position)>=0,o=n&&d(e)?D(e):e;return l(o)?t.filter((function(e){return l(e)&&O(e,o)&&"body"!==c(e)&&(!n||"static"!==T(e).position)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r.reduce((function(t,n){var o=z(e,n);return t.top=g(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=g(o.left,t.left),t}),z(e,r[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Y(e){var t,a=e.reference,s=e.element,u=e.placement,p=u?h(u):null,c=u?R(u):null,f=a.x+a.width/2-s.width/2,l=a.y+a.height/2-s.height/2;switch(p){case n:t={x:f,y:a.y-s.height};break;case o:t={x:f,y:a.y+a.height};break;case r:t={x:a.x+a.width,y:l};break;case i:t={x:a.x-s.width,y:l};break;default:t={x:a.x,y:a.y}}var d=p?M(p):null;if(null!=d){var v="y"===d?"height":"width";switch(c){case"start":t[d]=t[d]-(a[v]/2-s[v]/2);break;case"end":t[d]=t[d]+(a[v]/2-s[v]/2)}}return t}function J(e,t){void 0===t&&(t={});var i=t.placement,s=void 0===i?e.placement:i,u=t.boundary,p=void 0===u?"clippingParents":u,c=t.rootBoundary,f=void 0===c?"viewport":c,d=t.elementContext,v=void 0===d?"popper":d,m=t.altBoundary,h=void 0!==m&&m,g=t.padding,y=void 0===g?0:g,b=S("number"!=typeof y?y:L(y,a)),x=e.rects.popper,O=e.elements[h?"popper"===v?"reference":"popper":v],T=X(l(O)?O:O.contextElement||A(e.elements.popper),p,f),P=w(e.elements.reference),C=Y({reference:P,element:x,strategy:"absolute",placement:s}),E=$(Object.assign({},x,C)),D="popper"===v?E:P,M={top:T.top-D.top+b.top,bottom:D.bottom-T.bottom+b.bottom,left:T.left-D.left+b.left,right:D.right-T.right+b.right},j=e.modifiersData.offset;if("popper"===v&&j){var R=j[s];Object.keys(M).forEach((function(e){var t=[r,o].indexOf(e)>=0?1:-1,i=[n,o].indexOf(e)>=0?"y":"x";M[e]+=R[i]*t}))}return M}function G(e,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,r=t.padding,i=t.flipVariations,p=t.allowedAutoPlacements,c=void 0===p?u:p,f=R(t.placement),l=f?i?s:s.filter((function(e){return R(e)===f})):a,d=l.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=l);var v=d.reduce((function(t,i){return t[i]=J(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[h(i)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}function K(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 Q(e){return[n,r,o,i].some((function(t){return e[t]>=0}))}function Z(e,t,n){void 0===n&&(n=!1);var o,r,i=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=b(t.width)/e.offsetWidth||1,o=b(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=A(t),u=w(e,a),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==c(t)||q(s))&&(p=(o=t)!==f(o)&&d(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:U(o)),d(t)?((l=w(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=_(s))),{x:u.left+p.scrollLeft-l.x,y:u.top+p.scrollTop-l.y,width:u.width,height:u.height}}function ee(e){var t=new Map,n=new Set,o=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(o){if(!n.has(o)){var r=t.get(o);r&&e(r)}})),o.push(r)}(e)})),o}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){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 oe(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,o=e.defaultOptions,r=void 0===o?te:o;return function(e,t,o){void 0===o&&(o=r);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},te,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,f={state:s,setOptions:function(o){var i="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},r,s.options,i),s.scrollParents={reference:l(e)?F(e):e.contextElement?F(e.contextElement):[],popper:F(t)};var a,c,v=function(e){var t=ee(e);return p.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.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(c).map((function(e){return c[e]}))));return s.orderedModifiers=v.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.options,n=e.effect;if("function"==typeof n){var o=n({state:s,name:e.name,instance:f,options:void 0===t?{}:t});u.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ne(t,n)){s.rects={reference:Z(t,D(n),"fixed"===s.options.strategy),popper:x(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var r=s.orderedModifiers[o],i=r.fn,a=r.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:r.name,instance:f})||s)}else s.reset=!1,o=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),c=!0}};if(!ne(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(o).then((function(e){!c&&o.onFirstUpdate&&o.onFirstUpdate(e)})),f}}var re=oe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,u=f(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",n.update,H)})),s&&u.addEventListener("resize",n.update,H),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),s&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,p={placement:h(t.placement),variation:R(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,B(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,B(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},m,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.name,a=e.options.offset,s=void 0===a?[0,0]:a,p=u.reduce((function(e,o){return e[o]=function(e,t,o){var a=h(e),s=[i,n].indexOf(a)>=0?-1:1,u="function"==typeof o?o(Object.assign({},t,{placement:e})):o,p=u[0],c=u[1];return p=p||0,c=(c||0)*s,[i,r].indexOf(a)>=0?{x:c,y:p}:{x:p,y:c}}(o,t.rects,s),e}),{}),c=p[t.placement],f=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c.x,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=p}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var u=a.mainAxis,p=void 0===u||u,c=a.altAxis,f=void 0===c||c,l=a.fallbackPlacements,d=a.padding,v=a.boundary,m=a.rootBoundary,g=a.altBoundary,y=a.flipVariations,b=void 0===y||y,w=a.allowedAutoPlacements,x=t.options.placement,O=h(x),T=l||(O===x||!b?[I(x)]:function(e){if("auto"===h(e))return[];var t=I(e);return[N(e),t,N(t)]}(x)),P=[x].concat(T).reduce((function(e,n){return e.concat("auto"===h(n)?G(t,{placement:n,boundary:v,rootBoundary:m,padding:d,flipVariations:b,allowedAutoPlacements:w}):n)}),[]),A=t.rects.reference,C=t.rects.popper,E=new Map,D=!0,M=P[0],j=0;j<P.length;j++){var S=P[j],L=h(S),k="start"===R(S),B=[n,o].indexOf(L)>=0,H=B?"width":"height",V=J(t,{placement:S,boundary:v,rootBoundary:m,altBoundary:g,padding:d}),W=B?k?r:i:k?o:n;A[H]>C[H]&&(W=I(W));var U=I(W),_=[];if(p&&_.push(V[L]<=0),f&&_.push(V[W]<=0,V[U]<=0),_.every((function(e){return e}))){M=S,D=!1;break}E.set(S,_)}if(D)for(var q=function(e){var t=P.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},F=b?3:1;F>0;F--){if("break"===q(F))break}t.placement!==M&&(t.modifiersData[s]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,s=e.name,u=a.mainAxis,p=void 0===u||u,c=a.altAxis,f=void 0!==c&&c,l=a.tether,d=void 0===l||l,v=a.tetherOffset,m=void 0===v?0:v,b=J(t,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=h(t.placement),O=R(t.placement),T=!O,P=M(w),A="x"===P?"y":"x",C=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(C){if(p){var V,I="y"===P?n:i,W="y"===P?o:r,N="y"===P?"height":"width",U=C[P],_=U+b[I],q=U-b[W],F=d?-S[N]/2:0,$="start"===O?E[N]:S[N],z="start"===O?-S[N]:-E[N],X=t.elements.arrow,Y=d&&X?x(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[I],Q=G[W],Z=j(0,E[N],Y[N]),ee=T?E[N]/2-F-Z-K-k.mainAxis:$-Z-K-k.mainAxis,te=T?-E[N]/2+F+Z+Q+k.mainAxis:z+Z+Q+k.mainAxis,ne=t.elements.arrow&&D(t.elements.arrow),oe=null!=(V=null==B?void 0:B[P])?V:0,re=U+te-oe,ie=j(d?y(_,U+ee-oe-(ne?"y"===P?ne.clientTop||0:ne.clientLeft||0:0)):_,U,d?g(q,re):q);C[P]=ie,H[P]=ie-U}if(f){var ae,se=C[A],ue="y"===A?"height":"width",pe=se+b["x"===P?n:i],ce=se-b["x"===P?o:r],fe=-1!==[n,i].indexOf(w),le=null!=(ae=null==B?void 0:B[A])?ae:0,de=fe?pe:se-E[ue]-S[ue]-le+k.altAxis,ve=fe?se+E[ue]+S[ue]-le-k.altAxis:ce,me=d&&fe?function(e,t,n){var o=j(e,t,n);return o>n?n:o}(de,se,ve):j(d?de:pe,se,d?ve:ce);C[A]=me,H[A]=me-se}t.modifiersData[s]=H}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,s=e.state,u=e.name,p=e.options,c=s.elements.arrow,f=s.modifiersData.popperOffsets,l=h(s.placement),d=M(l),v=[i,r].indexOf(l)>=0?"height":"width";if(c&&f){var m=function(e,t){return S("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:L(e,a))}(p.padding,s),g=x(c),y="y"===d?n:i,b="y"===d?o:r,w=s.rects.reference[v]+s.rects.reference[d]-f[d]-s.rects.popper[v],O=f[d]-s.rects.reference[d],T=D(c),P=T?"y"===d?T.clientHeight||0:T.clientWidth||0:0,A=P/2-g[v]/2+(w/2-O/2),C=j(m[y],A,P-g[v]-m[b]);s.modifiersData[u]=((t={})[d]=C,t.centerOffset=C-A,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&O(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),u=K(a,o),p=K(s,r,i),c=Q(u),f=Q(p);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),ie={passive:!0,capture:!0},ae=function(){return document.body};function se(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function pe(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ce(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function fe(e){return[].concat(e)}function le(e,t){-1===e.indexOf(t)&&e.push(t)}function de(e){return e.split("-")[0]}function ve(e){return[].slice.call(e)}function me(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function he(){return document.createElement("div")}function ge(e){return["Element","Fragment"].some((function(t){return ue(e,t)}))}function ye(e){return ue(e,"MouseEvent")}function be(e){return ge(e)?[e]:function(e){return ue(e,"NodeList")}(e)?ve(e):Array.isArray(e)?e:ve(document.querySelectorAll(e))}function we(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Oe(e){var t,n=fe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Te(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function Pe(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Ae={isTouch:!1},Ce=0;function Ee(){Ae.isTouch||(Ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",De))}function De(){var e=performance.now();e-Ce<20&&(Ae.isTouch=!1,document.removeEventListener("mousemove",De)),Ce=e}function Me(){var e,t=document.activeElement;(e=t)&&e._tippy&&e._tippy.reference===e&&(t.blur&&!t._tippy.state.isVisible&&t.blur())}var je=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Se=Object.assign({appendTo:ae,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}),Le=Object.keys(Se);function Re(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=Se[r])?o:n.defaultValue);return t}),{});return Object.assign({},e,t)}function ke(e,t){var n=Object.assign({},t,{content:pe(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Re(Object.assign({},Se,{plugins:t}))):Le).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Se.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 Be(e,t){e.innerHTML=t}function He(e){var t=he();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ge(e)?t.appendChild(e):Be(t,e)),t}function Ve(e,t){ge(t.content)?(Be(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Be(e,t.content):e.textContent=t.content)}function Ie(e){var t=e.firstElementChild,n=ve(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function We(e){var t=he(),n=he();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=he();function r(n,o){var r=Ie(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Ve(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(He(o.arrow))):i.appendChild(He(o.arrow)):s&&i.removeChild(s)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),Ve(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}We.$$tippy=!0;var Ne=1,Ue=[],_e=[];function qe(e,t){var n,o,r,i,a,s,u,p,c=ke(e,Object.assign({},Se,Re(me(t)))),f=!1,l=!1,d=!1,v=!1,m=[],h=ce(X,c.interactiveDebounce),g=Ne++,y=(p=c.plugins).filter((function(e,t){return p.indexOf(e)===t})),b={id:g,reference:e,popper:he(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(b.state.isDestroyed)return;R("onBeforeUpdate",[b,t]),$();var n=b.props,o=ke(e,Object.assign({},n,me(t),{ignoreAttributes:!0}));b.props=o,F(),n.interactiveDebounce!==o.interactiveDebounce&&(H(),h=ce(X,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?fe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");B(),L(),O&&O(n,o);b.popperInstance&&(K(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));R("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=Ae.isTouch&&!b.props.touch,r=se(b.props.duration,0,Se.duration);if(e||t||n||o)return;if(D().hasAttribute("disabled"))return;if(R("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,E()&&(x.style.visibility="visible");L(),N(),b.state.isMounted||(x.style.transition="none");if(E()){var i=j();we([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!v){if(v=!0,x.style.transition=b.props.moveTransition,E()&&b.props.animation){var t=j(),n=t.box,o=t.content;we([n,o],r),xe([n,o],"visible")}k(),B(),le(_e,b),null==(e=b.popperInstance)||e.forceUpdate(),R("onMount",[b]),b.props.animation&&E()&&function(e,t){_(e,t)}(r,(function(){b.state.isShown=!0,R("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=D();e=b.props.interactive&&t===ae||"parent"===t?n.parentNode:pe(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,o=se(b.props.duration,1,Se.duration);if(e||t||n)return;if(R("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,v=!1,f=!1,E()&&(x.style.visibility="hidden");if(H(),U(),L(!0),E()){var r=j(),i=r.box,a=r.content;b.props.animation&&(we([i,a],o),xe([i,a],"hidden"))}k(),B(),b.props.animation?E()&&function(e,t){_(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(o,b.unmount):b.unmount()},hideWithInteractivity:function(e){M().addEventListener("mousemove",h),le(Ue,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),Z().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);_e=_e.filter((function(e){return e!==b})),b.state.isMounted=!1,R("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),$(),delete e._tippy,b.state.isDestroyed=!0,R("onDestroy",[b])}};if(!c.render)return b;var w=c.render(b),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var T=y.map((function(e){return e.fn(b)})),P=e.hasAttribute("aria-expanded");return F(),B(),L(),R("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",h)})),b;function A(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===A()[0]}function E(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function D(){return u||e}function M(){var e=D().parentNode;return e?Oe(e):document}function j(){return Ie(x)}function S(e){return b.state.isMounted&&!b.state.isVisible||Ae.isTouch||i&&"focus"===i.type?0:se(b.props.delay,e?0:1,Se.delay)}function L(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function R(e,t,n){var o;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=b.props)[e].apply(o,t)}function k(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,o=x.id;fe(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function B(){!P&&b.props.aria.expanded&&fe(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===D()?"true":"false"):e.removeAttribute("aria-expanded")}))}function H(){M().removeEventListener("mousemove",h),Ue=Ue.filter((function(e){return e!==h}))}function V(t){if(!Ae.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Pe(x,n)){if(fe(b.props.triggerTarget||e).some((function(e){return Pe(e,n)}))){if(Ae.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||U())}}}function I(){d=!0}function W(){d=!1}function N(){var e=M();e.addEventListener("mousedown",V,!0),e.addEventListener("touchend",V,ie),e.addEventListener("touchstart",W,ie),e.addEventListener("touchmove",I,ie)}function U(){var e=M();e.removeEventListener("mousedown",V,!0),e.removeEventListener("touchend",V,ie),e.removeEventListener("touchstart",W,ie),e.removeEventListener("touchmove",I,ie)}function _(e,t){var n=j().box;function o(e){e.target===n&&(Te(n,"remove",o),t())}if(0===e)return t();Te(n,"remove",a),Te(n,"add",o),a=o}function q(t,n,o){void 0===o&&(o=!1),fe(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})}))}function F(){var e;C()&&(q("touchstart",z,{passive:!0}),q("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(q(e,z),e){case"mouseenter":q("mouseleave",Y);break;case"focus":q(je?"focusout":"blur",J);break;case"focusin":q("focusout",J)}}))}function $(){m.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),m=[]}function z(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!l){var o="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,B(),!b.state.isVisible&&ye(e)&&Ue.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!o&&te(e)}}function X(e){var t=e.target,n=D().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=de(r.placement),s=r.modifiersData.offset;return!s||(t.top-o+("bottom"===a?s.top.y:0)>i||o-t.bottom-("top"===a?s.bottom.y:0)>i||t.left-n+("right"===a?s.left.x:0)>i||n-t.right-("left"===a?s.right.x:0)>i)}))}(Z().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean),e)&&(H(),te(e))}function Y(e){G(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function J(e){b.props.trigger.indexOf("focusin")<0&&e.target!==D()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function G(e){return!!Ae.isTouch&&C()!==e.type.indexOf("touch")>=0}function K(){Q();var t=b.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=E()?Ie(x).arrow:null,p=i?{getBoundingClientRect:i,contextElement:i.contextElement||D()}:e,c=[{name:"offset",options:{offset:r}},{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(e){var t=e.state;if(E()){var n=j().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={}}}}];E()&&u&&c.push({name:"arrow",options:{element:u,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=re(p,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:c}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return ve(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&R("onTrigger",[b,e]),N();var t=S(!0),o=A(),r=o[1];Ae.isTouch&&"hold"===o[0]&&r&&(t=r),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),R("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=S(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else U()}}function Fe(e,t){void 0===t&&(t={});var n=Se.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ee,ie),window.addEventListener("blur",Me);var o=Object.assign({},t,{plugins:n}),r=be(e).reduce((function(e,t){var n=t&&qe(t,o);return n&&e.push(n),e}),[]);return ge(e)?r[0]:r}Fe.defaultProps=Se,Fe.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Se[t]=e[t]}))},Fe.currentInput=Ae;var $e=Object.assign({},m,{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)}}),ze=function(e,t){var n;void 0===t&&(t={});var o,r=e,i=[],a=[],s=t.overrides,u=[],p=!1;function c(){a=r.map((function(e){return fe(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function f(){i=r.map((function(e){return e.reference}))}function l(e){r.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function v(e,t){var n=a.indexOf(t);if(t!==o){o=t;var u=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}l(!1),f(),c();var m,h,g={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!p&&(p=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!p&&(p=!0,v(e,i[0]))},onTrigger:function(e,t){v(e,t.currentTarget)}}}},y=Fe(he(),Object.assign({},(m=["overrides"],h=Object.assign({},t),m.forEach((function(e){delete h[e]})),h),{plugins:[g].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[$e])})})),b=y.show;y.show=function(e){return b(),o||null!=e?o&&null==e?void 0:"number"==typeof e?i[e]&&v(y,i[e]):r.indexOf(e)>=0?v(y,e.reference):i.indexOf(e)>=0?v(y,e):void 0:v(y,i[0])},y.showNext=function(){var e=i[0];if(!o)return y.show(0);var t=i.indexOf(o);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!o)return y.show(e);var t=i.indexOf(o);y.show(i[t-1]||e)};var w=y.setProps;return y.setProps=function(e){s=e.overrides||s,w(e)},y.setInstances=function(e){l(!0),u.forEach((function(e){return e()})),r=e,l(!1),f(),c(),u=d(y),y.setProps({triggerTarget:a})},u=d(y),y},Xe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Ie(e.popper),o=n.box,r=n.content,i=e.props.animateFill?function(){var e=he();return e.className="tippy-backdrop",xe([e],"hidden"),e}():null;return{onCreate:function(){i&&(o.insertBefore(i,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=o.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,xe([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&xe([i],"hidden")}}}};var Ye={clientX:0,clientY:0},Je=[];function Ge(e){Ye={clientX:e.clientX,clientY:e.clientY}}var Ke={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Oe(e.props.triggerTarget||t),o=!1,r=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",f)}function p(){n.removeEventListener("mousemove",f)}function c(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function f(n){var o=!n.target||t.contains(n.target),r=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=i-s.left,p=a-s.top;!o&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,o=a;"initial"===r&&(n=e.left+u,o=e.top+p);var s="horizontal"===r?e.top:o,c="vertical"===r?e.right:n,f="horizontal"===r?e.bottom:o,l="vertical"===r?e.left:n;return{width:c-l,height:f-s,top:s,right:c,bottom:f,left:l}}})}function l(){e.props.followCursor&&(Je.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Ge)}(n))}function d(){0===(Je=Je.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Ge)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;o||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||r||s()||u()):(p(),c()))},onMount:function(){e.props.followCursor&&!r&&(i&&(f(Ye),i=!1),s()||u())},onTrigger:function(e,t){ye(t)&&(Ye={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),p(),i=!0)}}}};var Qe={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var o=-1,r=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var a=r.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,o){if(n.length<2||null===e)return t;if(2===n.length&&o>=0&&n[0].left>n[1].right)return n[o]||t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],a="top"===e,s=r.top,u=i.bottom,p=a?r.left:i.left,c=a?r.right:i.right;return{top:s,bottom:u,left:p,right:c,width:c-p,height:u-s};case"left":case"right":var f=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===f:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return t}}(de(e),n.getBoundingClientRect(),ve(n.getClientRects()),o)}(a.placement)}})),t=a.placement)}};function s(){var t;r||(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),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(ye(n)){var r=ve(e.reference.getClientRects()),i=r.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=r.indexOf(i);o=a>-1?a:o}},onHidden:function(){o=-1}}}};var Ze={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function o(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,i=null;function a(){var s=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=o("popper")?n.getBoundingClientRect():null;(s&&et(r,s)||u&&et(i,u))&&e.popperInstance&&e.popperInstance.update(),r=s,i=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function et(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}function tt(e,n={},o={mount:!0,appName:"Tippy"}){o=Object.assign({mount:!0,appName:"Tippy"},o);const r=t.getCurrentInstance(),i=t.ref(),a=t.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=t.shallowRef();let u=null;const p=()=>u||(u=document.createDocumentFragment(),u),c=e=>{let n,i=t.isRef(e)?e.value:e;if(t.isVNode(i))s.value||(s.value=t.createApp({name:o.appName,render:()=>i}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(p())),n=()=>p();else if("object"==typeof i){if(!s.value){let e=t.h(i);s.value=t.createApp({name:o.appName,render:()=>e}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(p())}n=()=>p()}else n=i;return n},f=e=>{let n={};return n=t.isRef(e)?e.value||{}:(t.isReactive(e),{...e}),n.content&&(n.content=c(n.content)),n.triggerTarget&&(n.triggerTarget=t.isRef(n.triggerTarget)?n.triggerTarget.value:n.triggerTarget),n.plugins&&Array.isArray(n.plugins)||(n.plugins=[]),n.plugins=n.plugins.filter(e=>"vueTippyReactiveState"!==e.name),n.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){a.value.isEnabled=!0},onMount(){a.value.isMounted=!0},onShow(){a.value.isMounted=!0,a.value.isVisible=!0},onShown(){a.value.isShown=!0},onHide(){a.value.isMounted=!1,a.value.isVisible=!1},onHidden(){a.value.isShown=!1},onUnmounted(){a.value.isMounted=!1},onDestroy(){a.value.isDestroyed=!0}})}),n},l=()=>{i.value&&i.value.setProps(f(n))},d=()=>{i.value&&n.content&&i.value.setContent(c(n.content))},v=()=>{var e;i.value&&(i.value.destroy(),i.value=void 0),u=null,null===(e=s.value)||void 0===e||e.unmount(),s.value=void 0},m=()=>{if(!e)return;let o=t.isRef(e)?e.value:e;"function"==typeof o&&(o=o()),o&&(i.value=Fe(o,f(n)),o.$tippy=h)},h={tippy:i,refresh:l,refreshContent:d,setContent:e=>{var t;null===(t=i.value)||void 0===t||t.setContent(c(e))},setProps:e=>{var t;null===(t=i.value)||void 0===t||t.setProps(f(e))},destroy:v,hide:()=>{var e;null===(e=i.value)||void 0===e||e.hide()},show:()=>{var e;null===(e=i.value)||void 0===e||e.show()},disable:()=>{var e;null===(e=i.value)||void 0===e||e.disable(),a.value.isEnabled=!1},enable:()=>{var e;null===(e=i.value)||void 0===e||e.enable(),a.value.isEnabled=!0},unmount:()=>{var e;null===(e=i.value)||void 0===e||e.unmount()},mount:m,state:a};return o.mount&&(r?r.isMounted?m():t.onMounted(m):m()),t.onUnmounted(()=>{v()}),t.isRef(n)||t.isReactive(n)?t.watch(n,l,{immediate:!1}):t.isRef(n.content)&&t.watch(n.content,d,{immediate:!1}),h}function nt(e,n){const o=t.ref();return t.onMounted(()=>{const t=(Array.isArray(e)?e.map(e=>e.value):"function"==typeof e?e():e.value).map(e=>e instanceof Element?e._tippy:e).filter(Boolean);o.value=ze(t,n?{allowHTML:!0,...n}:{allowHTML:!0})}),{singleton:o}}function ot(e){var n,o;const r="function"==typeof(i=e)?i():t.unref(i);var i;return null!==(o=null===(n=r)||void 0===n?void 0:n.$el)&&void 0!==o?o:r}Fe.setDefaultProps({render:We}),Fe.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const rt=t.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>Fe.defaultProps.appendTo},aria:{default:()=>Fe.defaultProps.aria},delay:{default:()=>Fe.defaultProps.delay},duration:{default:()=>Fe.defaultProps.duration},getReferenceClientRect:{default:()=>Fe.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Fe.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Fe.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Fe.defaultProps.interactive},interactiveBorder:{default:()=>Fe.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Fe.defaultProps.interactiveDebounce},moveTransition:{default:()=>Fe.defaultProps.moveTransition},offset:{default:()=>Fe.defaultProps.offset},onAfterUpdate:{default:()=>Fe.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Fe.defaultProps.onBeforeUpdate},onCreate:{default:()=>Fe.defaultProps.onCreate},onDestroy:{default:()=>Fe.defaultProps.onDestroy},onHidden:{default:()=>Fe.defaultProps.onHidden},onHide:{default:()=>Fe.defaultProps.onHide},onMount:{default:()=>Fe.defaultProps.onMount},onShow:{default:()=>Fe.defaultProps.onShow},onShown:{default:()=>Fe.defaultProps.onShown},onTrigger:{default:()=>Fe.defaultProps.onTrigger},onUntrigger:{default:()=>Fe.defaultProps.onUntrigger},onClickOutside:{default:()=>Fe.defaultProps.onClickOutside},placement:{default:()=>Fe.defaultProps.placement},plugins:{default:()=>Fe.defaultProps.plugins},popperOptions:{default:()=>Fe.defaultProps.popperOptions},render:{default:()=>Fe.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Fe.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Fe.defaultProps.touch},trigger:{default:()=>Fe.defaultProps.trigger},triggerTarget:{default:()=>Fe.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Fe.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Fe.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Fe.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Fe.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Fe.defaultProps.allowHTML},animation:{default:()=>Fe.defaultProps.animation},arrow:{default:()=>Fe.defaultProps.arrow},content:{default:()=>Fe.defaultProps.content},inertia:{default:()=>Fe.defaultProps.inertia},maxWidth:{default:()=>Fe.defaultProps.maxWidth},role:{default:()=>Fe.defaultProps.role},theme:{default:()=>Fe.defaultProps.theme},zIndex:{default:()=>Fe.defaultProps.zIndex}},emits:["state"],setup(e,{slots:n,emit:o,expose:r}){const i=t.ref(),a=t.ref(),s=t.ref(!1),u=()=>{let t={...e};for(const e of["to","tag","contentTag","contentClass"])t.hasOwnProperty(e)&&delete t[e];return t};let p=()=>ot(i);e.to&&("undefined"!=typeof Element&&e.to instanceof Element?p=()=>e.to:("string"==typeof e.to||e.to instanceof String)&&(p=()=>document.querySelector(e.to)));const c=tt(p,u());t.onMounted(()=>{s.value=!0,t.nextTick(()=>{n.content&&c.setContent(()=>a.value)})}),t.watch(c.state,()=>{o("state",t.unref(c.state))},{immediate:!0,deep:!0}),t.watch(()=>e,()=>{c.setProps(u()),n.content&&c.setContent(()=>a.value)},{deep:!0});let f=t.reactive({elem:i,contentElem:a,mounted:s,...c});return r(f),()=>{const o=n.default?n.default(f):[],r=e.contentTag;if(!e.tag){const u=t.h(o[0],{ref:i,"data-v-tippy":""});return n.content?[u,t.h(r,{ref:a,style:{display:s.value?"inherit":"none"},class:e.contentClass},n.content(f))]:u}return t.h(e.tag,{ref:i,"data-v-tippy":""},n.content?[o,t.h(r,{ref:a,style:{display:s.value?"inherit":"none"},class:e.contentClass},n.content(f))]:o)}}}),it=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let at={};Object.keys(Fe.defaultProps).forEach(e=>{at[e]=it.includes(e)?{type:Boolean,default:function(){return Fe.defaultProps[e]}}:{default:function(){return Fe.defaultProps[e]}}});const st=t.defineComponent({props:at,setup(e){const n=t.ref([]),{singleton:o}=nt(n,e);return{instances:n,singleton:o}},mounted(){var e;const t=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(t).map(e=>e._tippy).filter(Boolean),null===(e=this.singleton)||void 0===e||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return t.h(()=>e)}}),ut={mounted(e,t,n){const o="string"==typeof t.value?{content:t.value}:t.value||{},r=Object.keys(t.modifiers||{}),i=r.find(e=>"arrow"!==e),a=-1!==r.findIndex(e=>"arrow"===e);i&&(o.placement=o.placement||i),a&&(o.arrow=void 0===o.arrow||o.arrow),n.props&&n.props.onTippyShow&&(o.onShow=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(o.onShown=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(o.onHidden=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(o.onHide=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(o.onMount=function(...e){var t;return null===(t=n.props)||void 0===t?void 0:t.onTippyMount(...e)}),e.getAttribute("title")&&!o.content&&(o.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!o.content&&(o.content=e.getAttribute("content")),tt(e,o)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},pt={install(e,t={}){Fe.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",ut),e.component(t.component||"tippy",rt),e.component(t.componentSingleton||"tippy-singleton",st)}},ct=Fe.setDefaultProps;return ct({ignoreAttributes:!0,plugins:[Ze,Qe,Ke,Xe]}),e.Tippy=rt,e.TippySingleton=st,e.default=pt,e.directive=ut,e.plugin=pt,e.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>',e.setDefaultProps=ct,e.tippy=Fe,e.useSingleton=nt,e.useTippy=tt,e.useTippyComponent=function(e={},n){const o=t.ref();return{instance:o,TippyComponent:t.h(rt,{...e,onVnodeMounted:e=>{o.value=e.component.ctx}},n)}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue);
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * vue-tippy v6.3.0-beta.1
2
+ * vue-tippy v6.3.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
5
  */
6
- import { getCurrentInstance, ref, onMounted, onUnmounted, isRef, isReactive, watch, isVNode, createApp, h, defineComponent, nextTick, unref, reactive } from 'vue';
6
+ import { getCurrentInstance, ref, shallowRef, onMounted, onUnmounted, isRef, isReactive, watch, isVNode, createApp, h, defineComponent, nextTick, unref, reactive } from 'vue';
7
7
 
8
8
  var top = 'top';
9
9
  var bottom = 'bottom';
@@ -3946,6 +3946,7 @@ tippy.setDefaultProps({
3946
3946
  },
3947
3947
  });
3948
3948
  function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3949
+ settings = Object.assign({ mount: true, appName: 'Tippy' }, settings);
3949
3950
  const vm = getCurrentInstance();
3950
3951
  const instance = ref();
3951
3952
  const state = ref({
@@ -3955,12 +3956,12 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3955
3956
  isMounted: false,
3956
3957
  isShown: false,
3957
3958
  });
3958
- const createAppMounted = ref(false);
3959
+ const headlessApp = shallowRef();
3959
3960
  let container = null;
3960
3961
  const getContainer = () => {
3961
3962
  if (container)
3962
3963
  return container;
3963
- container = document.createElement("aside");
3964
+ container = document.createDocumentFragment();
3964
3965
  return container;
3965
3966
  };
3966
3967
  const getContent = (content) => {
@@ -3969,31 +3970,29 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3969
3970
  ? content.value
3970
3971
  : content;
3971
3972
  if (isVNode(unwrappedContent)) {
3972
- if (!createAppMounted.value) {
3973
- if (vm) {
3974
- unwrappedContent.appContext = vm.appContext;
3975
- }
3976
- createApp({
3973
+ if (!headlessApp.value) {
3974
+ headlessApp.value = createApp({
3977
3975
  name: settings.appName,
3978
3976
  render: () => unwrappedContent,
3979
- })
3980
- .mount(getContainer());
3981
- createAppMounted.value = true;
3977
+ });
3978
+ if (vm) {
3979
+ Object.assign(headlessApp.value._context, vm.appContext);
3980
+ }
3981
+ headlessApp.value.mount(getContainer());
3982
3982
  }
3983
3983
  newContent = () => getContainer();
3984
3984
  }
3985
3985
  else if (typeof unwrappedContent === 'object') {
3986
- if (!createAppMounted.value) {
3986
+ if (!headlessApp.value) {
3987
3987
  let comp = h(unwrappedContent);
3988
- if (vm) {
3989
- comp.appContext = vm.appContext;
3990
- }
3991
- createApp({
3988
+ headlessApp.value = createApp({
3992
3989
  name: settings.appName,
3993
3990
  render: () => comp,
3994
- })
3995
- .mount(getContainer());
3996
- createAppMounted.value = true;
3991
+ });
3992
+ if (vm) {
3993
+ Object.assign(headlessApp.value._context, vm.appContext);
3994
+ }
3995
+ headlessApp.value.mount(getContainer());
3997
3996
  }
3998
3997
  newContent = () => getContainer();
3999
3998
  }
@@ -4079,11 +4078,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4079
4078
  (_a = instance.value) === null || _a === void 0 ? void 0 : _a.setProps(getProps(value));
4080
4079
  };
4081
4080
  const destroy = () => {
4081
+ var _a;
4082
4082
  if (instance.value) {
4083
4083
  instance.value.destroy();
4084
4084
  instance.value = undefined;
4085
4085
  }
4086
4086
  container = null;
4087
+ (_a = headlessApp.value) === null || _a === void 0 ? void 0 : _a.unmount();
4088
+ headlessApp.value = undefined;
4087
4089
  };
4088
4090
  const show = () => {
4089
4091
  var _a;
@@ -4142,14 +4144,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4142
4144
  else {
4143
4145
  onMounted(mount);
4144
4146
  }
4145
- onUnmounted(() => {
4146
- destroy();
4147
- });
4148
4147
  }
4149
4148
  else {
4150
4149
  mount();
4151
4150
  }
4152
4151
  }
4152
+ onUnmounted(() => {
4153
+ destroy();
4154
+ });
4153
4155
  if (isRef(opts) || isReactive(opts)) {
4154
4156
  watch(opts, refresh, { immediate: false });
4155
4157
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.3.0-beta.1
2
+ * vue-tippy v6.3.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
5
  */
@@ -3950,6 +3950,7 @@ tippy.setDefaultProps({
3950
3950
  },
3951
3951
  });
3952
3952
  function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3953
+ settings = Object.assign({ mount: true, appName: 'Tippy' }, settings);
3953
3954
  const vm = vue.getCurrentInstance();
3954
3955
  const instance = vue.ref();
3955
3956
  const state = vue.ref({
@@ -3959,12 +3960,12 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3959
3960
  isMounted: false,
3960
3961
  isShown: false,
3961
3962
  });
3962
- const createAppMounted = vue.ref(false);
3963
+ const headlessApp = vue.shallowRef();
3963
3964
  let container = null;
3964
3965
  const getContainer = () => {
3965
3966
  if (container)
3966
3967
  return container;
3967
- container = document.createElement("aside");
3968
+ container = document.createDocumentFragment();
3968
3969
  return container;
3969
3970
  };
3970
3971
  const getContent = (content) => {
@@ -3973,31 +3974,29 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
3973
3974
  ? content.value
3974
3975
  : content;
3975
3976
  if (vue.isVNode(unwrappedContent)) {
3976
- if (!createAppMounted.value) {
3977
- if (vm) {
3978
- unwrappedContent.appContext = vm.appContext;
3979
- }
3980
- vue.createApp({
3977
+ if (!headlessApp.value) {
3978
+ headlessApp.value = vue.createApp({
3981
3979
  name: settings.appName,
3982
3980
  render: () => unwrappedContent,
3983
- })
3984
- .mount(getContainer());
3985
- createAppMounted.value = true;
3981
+ });
3982
+ if (vm) {
3983
+ Object.assign(headlessApp.value._context, vm.appContext);
3984
+ }
3985
+ headlessApp.value.mount(getContainer());
3986
3986
  }
3987
3987
  newContent = () => getContainer();
3988
3988
  }
3989
3989
  else if (typeof unwrappedContent === 'object') {
3990
- if (!createAppMounted.value) {
3990
+ if (!headlessApp.value) {
3991
3991
  let comp = vue.h(unwrappedContent);
3992
- if (vm) {
3993
- comp.appContext = vm.appContext;
3994
- }
3995
- vue.createApp({
3992
+ headlessApp.value = vue.createApp({
3996
3993
  name: settings.appName,
3997
3994
  render: () => comp,
3998
- })
3999
- .mount(getContainer());
4000
- createAppMounted.value = true;
3995
+ });
3996
+ if (vm) {
3997
+ Object.assign(headlessApp.value._context, vm.appContext);
3998
+ }
3999
+ headlessApp.value.mount(getContainer());
4001
4000
  }
4002
4001
  newContent = () => getContainer();
4003
4002
  }
@@ -4083,11 +4082,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4083
4082
  (_a = instance.value) === null || _a === void 0 ? void 0 : _a.setProps(getProps(value));
4084
4083
  };
4085
4084
  const destroy = () => {
4085
+ var _a;
4086
4086
  if (instance.value) {
4087
4087
  instance.value.destroy();
4088
4088
  instance.value = undefined;
4089
4089
  }
4090
4090
  container = null;
4091
+ (_a = headlessApp.value) === null || _a === void 0 ? void 0 : _a.unmount();
4092
+ headlessApp.value = undefined;
4091
4093
  };
4092
4094
  const show = () => {
4093
4095
  var _a;
@@ -4146,14 +4148,14 @@ function useTippy(el, opts = {}, settings = { mount: true, appName: 'Tippy' }) {
4146
4148
  else {
4147
4149
  vue.onMounted(mount);
4148
4150
  }
4149
- vue.onUnmounted(() => {
4150
- destroy();
4151
- });
4152
4151
  }
4153
4152
  else {
4154
4153
  mount();
4155
4154
  }
4156
4155
  }
4156
+ vue.onUnmounted(() => {
4157
+ destroy();
4158
+ });
4157
4159
  if (vue.isRef(opts) || vue.isReactive(opts)) {
4158
4160
  vue.watch(opts, refresh, { immediate: false });
4159
4161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tippy",
3
- "version": "6.3.0-beta.1",
3
+ "version": "6.3.0",
4
4
  "main": "index.js",
5
5
  "module": "dist/vue-tippy.mjs",
6
6
  "unpkg": "dist/vue-tippy.iife.js",
@@ -12,6 +12,8 @@ import {
12
12
  onUnmounted,
13
13
  getCurrentInstance,
14
14
  createApp,
15
+ shallowRef,
16
+ App,
15
17
  } from 'vue'
16
18
  import { TippyOptions, TippyContent } from '../types'
17
19
 
@@ -30,6 +32,8 @@ export function useTippy(
30
32
  appName: string,
31
33
  } = { mount: true, appName: 'Tippy' }
32
34
  ) {
35
+ settings = Object.assign({ mount: true, appName: 'Tippy' }, settings);
36
+
33
37
  const vm = getCurrentInstance()
34
38
  const instance = ref<Instance>()
35
39
  const state = ref({
@@ -39,13 +43,13 @@ export function useTippy(
39
43
  isMounted: false,
40
44
  isShown: false,
41
45
  })
42
- const createAppMounted = ref(false)
46
+ const headlessApp = shallowRef<App>()
43
47
 
44
48
  let container: any = null
45
49
 
46
50
  const getContainer = () => {
47
51
  if (container) return container
48
- container = document.createElement("aside")
52
+ container = document.createDocumentFragment()
49
53
  return container
50
54
  }
51
55
 
@@ -60,33 +64,34 @@ export function useTippy(
60
64
 
61
65
 
62
66
  if (isVNode(unwrappedContent)) {
63
- if (!createAppMounted.value) {
64
- if (vm) {
65
- unwrappedContent.appContext = vm.appContext
66
- }
67
- createApp({
67
+ if (!headlessApp.value) {
68
+ headlessApp.value = createApp({
68
69
  name: settings.appName,
69
70
  render: () => unwrappedContent,
70
71
  })
71
- .mount(getContainer())
72
- createAppMounted.value = true
72
+
73
+ if (vm) {
74
+ Object.assign(headlessApp.value._context, vm.appContext)
75
+ }
76
+
77
+ headlessApp.value.mount(getContainer())
73
78
  }
74
79
  newContent = () => getContainer()
75
80
  } else if (typeof unwrappedContent === 'object') {
76
- if (!createAppMounted.value) {
81
+ if (!headlessApp.value) {
77
82
 
78
83
  let comp = h(unwrappedContent)
79
84
 
80
- if (vm) {
81
- comp.appContext = vm.appContext
82
- }
83
-
84
- createApp({
85
+ headlessApp.value = createApp({
85
86
  name: settings.appName,
86
87
  render: () => comp,
87
88
  })
88
- .mount(getContainer())
89
- createAppMounted.value = true
89
+
90
+ if (vm) {
91
+ Object.assign(headlessApp.value._context, vm.appContext)
92
+ }
93
+
94
+ headlessApp.value.mount(getContainer())
90
95
  }
91
96
 
92
97
  newContent = () => getContainer()
@@ -192,6 +197,8 @@ export function useTippy(
192
197
  instance.value = undefined
193
198
  }
194
199
  container = null
200
+ headlessApp.value?.unmount()
201
+ headlessApp.value = undefined
195
202
  }
196
203
 
197
204
  const show = () => {
@@ -253,15 +260,15 @@ export function useTippy(
253
260
  } else {
254
261
  onMounted(mount)
255
262
  }
256
-
257
- onUnmounted(() => {
258
- destroy()
259
- })
260
263
  } else {
261
264
  mount()
262
265
  }
263
266
  }
264
267
 
268
+ onUnmounted(() => {
269
+ destroy()
270
+ })
271
+
265
272
  if (isRef(opts) || isReactive(opts)) {
266
273
  watch(opts, refresh, { immediate: false })
267
274
  } else if (isRef(opts.content)) {