@vue-interface/tooltip 1.0.0-beta.0 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { openBlock as gt, createElementBlock as yt, normalizeClass as bt, createElementVNode as Fe, renderSlot as wt, h as xt, render as Ot } from "vue";
2
- var j = "top", C = "bottom", N = "right", B = "left", we = "auto", ce = [j, C, N, B], Z = "start", pe = "end", Et = "clippingParents", rt = "viewport", ae = "popper", At = "reference", Xe = /* @__PURE__ */ ce.reduce(function(t, e) {
1
+ import { openBlock as gt, createElementBlock as bt, normalizeClass as yt, createElementVNode as Fe, renderSlot as wt, createTextVNode as xt, toDisplayString as Ot, h as Et, render as At } from "vue";
2
+ var j = "top", C = "bottom", k = "right", $ = "left", we = "auto", fe = [j, C, k, $], Z = "start", pe = "end", Pt = "clippingParents", rt = "viewport", ae = "popper", St = "reference", Xe = /* @__PURE__ */ fe.reduce(function(t, e) {
3
3
  return t.concat([e + "-" + Z, e + "-" + pe]);
4
- }, []), nt = /* @__PURE__ */ [].concat(ce, [we]).reduce(function(t, e) {
4
+ }, []), nt = /* @__PURE__ */ [].concat(fe, [we]).reduce(function(t, e) {
5
5
  return t.concat([e, e + "-" + Z, e + "-" + pe]);
6
- }, []), Pt = "beforeRead", Dt = "read", St = "afterRead", Rt = "beforeMain", Tt = "main", jt = "afterMain", Bt = "beforeWrite", $t = "write", kt = "afterWrite", De = [Pt, Dt, St, Rt, Tt, jt, Bt, $t, kt];
6
+ }, []), Dt = "beforeRead", Rt = "read", Tt = "afterRead", jt = "beforeMain", $t = "main", Nt = "afterMain", Bt = "beforeWrite", Ct = "write", kt = "afterWrite", Se = [Dt, Rt, Tt, jt, $t, Nt, Bt, Ct, kt];
7
7
  function W(t) {
8
8
  return t ? (t.nodeName || "").toLowerCase() : null;
9
9
  }
@@ -20,7 +20,7 @@ function K(t) {
20
20
  var e = L(t).Element;
21
21
  return t instanceof e || t instanceof Element;
22
22
  }
23
- function k(t) {
23
+ function B(t) {
24
24
  var e = L(t).HTMLElement;
25
25
  return t instanceof e || t instanceof HTMLElement;
26
26
  }
@@ -30,17 +30,17 @@ function Te(t) {
30
30
  var e = L(t).ShadowRoot;
31
31
  return t instanceof e || t instanceof ShadowRoot;
32
32
  }
33
- function Ct(t) {
33
+ function Lt(t) {
34
34
  var e = t.state;
35
35
  Object.keys(e.elements).forEach(function(r) {
36
- var n = e.styles[r] || {}, o = e.attributes[r] || {}, a = e.elements[r];
37
- !k(a) || !W(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(f) {
38
- var s = o[f];
39
- s === !1 ? a.removeAttribute(f) : a.setAttribute(f, s === !0 ? "" : s);
36
+ var n = e.styles[r] || {}, o = e.attributes[r] || {}, s = e.elements[r];
37
+ !B(s) || !W(s) || (Object.assign(s.style, n), Object.keys(o).forEach(function(c) {
38
+ var i = o[c];
39
+ i === !1 ? s.removeAttribute(c) : s.setAttribute(c, i === !0 ? "" : i);
40
40
  }));
41
41
  });
42
42
  }
43
- function Nt(t) {
43
+ function Mt(t) {
44
44
  var e = t.state, r = {
45
45
  popper: {
46
46
  position: e.options.strategy,
@@ -55,49 +55,49 @@ function Nt(t) {
55
55
  };
56
56
  return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
57
57
  Object.keys(e.elements).forEach(function(n) {
58
- var o = e.elements[n], a = e.attributes[n] || {}, f = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), s = f.reduce(function(i, c) {
59
- return i[c] = "", i;
58
+ var o = e.elements[n], s = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = c.reduce(function(a, f) {
59
+ return a[f] = "", a;
60
60
  }, {});
61
- !k(o) || !W(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(i) {
62
- o.removeAttribute(i);
61
+ !B(o) || !W(o) || (Object.assign(o.style, i), Object.keys(s).forEach(function(a) {
62
+ o.removeAttribute(a);
63
63
  }));
64
64
  });
65
65
  };
66
66
  }
67
- const Lt = {
67
+ const It = {
68
68
  name: "applyStyles",
69
69
  enabled: !0,
70
70
  phase: "write",
71
- fn: Ct,
72
- effect: Nt,
71
+ fn: Lt,
72
+ effect: Mt,
73
73
  requires: ["computeStyles"]
74
74
  };
75
75
  function I(t) {
76
76
  return t.split("-")[0];
77
77
  }
78
- var J = Math.max, be = Math.min, ee = Math.round;
79
- function Se() {
78
+ var J = Math.max, ye = Math.min, ee = Math.round;
79
+ function De() {
80
80
  var t = navigator.userAgentData;
81
81
  return t != null && t.brands ? t.brands.map(function(e) {
82
82
  return e.brand + "/" + e.version;
83
83
  }).join(" ") : navigator.userAgent;
84
84
  }
85
85
  function ot() {
86
- return !/^((?!chrome|android).)*safari/i.test(Se());
86
+ return !/^((?!chrome|android).)*safari/i.test(De());
87
87
  }
88
88
  function te(t, e, r) {
89
89
  e === void 0 && (e = !1), r === void 0 && (r = !1);
90
- var n = t.getBoundingClientRect(), o = 1, a = 1;
91
- e && k(t) && (o = t.offsetWidth > 0 && ee(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && ee(n.height) / t.offsetHeight || 1);
92
- var f = K(t) ? L(t) : window, s = f.visualViewport, i = !ot() && r, c = (n.left + (i && s ? s.offsetLeft : 0)) / o, p = (n.top + (i && s ? s.offsetTop : 0)) / a, h = n.width / o, b = n.height / a;
90
+ var n = t.getBoundingClientRect(), o = 1, s = 1;
91
+ e && B(t) && (o = t.offsetWidth > 0 && ee(n.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && ee(n.height) / t.offsetHeight || 1);
92
+ var c = K(t) ? L(t) : window, i = c.visualViewport, a = !ot() && r, f = (n.left + (a && i ? i.offsetLeft : 0)) / o, p = (n.top + (a && i ? i.offsetTop : 0)) / s, u = n.width / o, v = n.height / s;
93
93
  return {
94
- width: h,
95
- height: b,
94
+ width: u,
95
+ height: v,
96
96
  top: p,
97
- right: c + h,
98
- bottom: p + b,
99
- left: c,
100
- x: c,
97
+ right: f + u,
98
+ bottom: p + v,
99
+ left: f,
100
+ x: f,
101
101
  y: p
102
102
  };
103
103
  }
@@ -127,7 +127,7 @@ function at(t, e) {
127
127
  function V(t) {
128
128
  return L(t).getComputedStyle(t);
129
129
  }
130
- function Mt(t) {
130
+ function Vt(t) {
131
131
  return ["table", "td", "th"].indexOf(W(t)) >= 0;
132
132
  }
133
133
  function _(t) {
@@ -137,36 +137,36 @@ function xe(t) {
137
137
  return W(t) === "html" ? t : t.assignedSlot || t.parentNode || (Te(t) ? t.host : null) || _(t);
138
138
  }
139
139
  function Ye(t) {
140
- return !k(t) || V(t).position === "fixed" ? null : t.offsetParent;
140
+ return !B(t) || V(t).position === "fixed" ? null : t.offsetParent;
141
141
  }
142
- function It(t) {
143
- var e = /firefox/i.test(Se()), r = /Trident/i.test(Se());
144
- if (r && k(t)) {
142
+ function Wt(t) {
143
+ var e = /firefox/i.test(De()), r = /Trident/i.test(De());
144
+ if (r && B(t)) {
145
145
  var n = V(t);
146
146
  if (n.position === "fixed")
147
147
  return null;
148
148
  }
149
149
  var o = xe(t);
150
- for (Te(o) && (o = o.host); k(o) && ["html", "body"].indexOf(W(o)) < 0; ) {
151
- var a = V(o);
152
- if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
150
+ for (Te(o) && (o = o.host); B(o) && ["html", "body"].indexOf(W(o)) < 0; ) {
151
+ var s = V(o);
152
+ if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
153
153
  return o;
154
154
  o = o.parentNode;
155
155
  }
156
156
  return null;
157
157
  }
158
158
  function le(t) {
159
- for (var e = L(t), r = Ye(t); r && Mt(r) && V(r).position === "static"; )
159
+ for (var e = L(t), r = Ye(t); r && Vt(r) && V(r).position === "static"; )
160
160
  r = Ye(r);
161
- return r && (W(r) === "html" || W(r) === "body" && V(r).position === "static") ? e : r || It(t) || e;
161
+ return r && (W(r) === "html" || W(r) === "body" && V(r).position === "static") ? e : r || Wt(t) || e;
162
162
  }
163
- function Be(t) {
163
+ function $e(t) {
164
164
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
165
165
  }
166
166
  function ie(t, e, r) {
167
- return J(t, be(e, r));
167
+ return J(t, ye(e, r));
168
168
  }
169
- function Vt(t, e, r) {
169
+ function Ht(t, e, r) {
170
170
  var n = ie(t, e, r);
171
171
  return n > r ? r : n;
172
172
  }
@@ -186,47 +186,47 @@ function pt(t, e) {
186
186
  return r[n] = t, r;
187
187
  }, {});
188
188
  }
189
- var Wt = function(e, r) {
189
+ var qt = function(e, r) {
190
190
  return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
191
191
  placement: r.placement
192
- })) : e, st(typeof e != "number" ? e : pt(e, ce));
192
+ })) : e, st(typeof e != "number" ? e : pt(e, fe));
193
193
  };
194
- function qt(t) {
195
- var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, f = r.modifiersData.popperOffsets, s = I(r.placement), i = Be(s), c = [B, N].indexOf(s) >= 0, p = c ? "height" : "width";
196
- if (!(!a || !f)) {
197
- var h = Wt(o.padding, r), b = je(a), l = i === "y" ? j : B, x = i === "y" ? C : N, m = r.rects.reference[p] + r.rects.reference[i] - f[i] - r.rects.popper[p], d = f[i] - r.rects.reference[i], w = le(a), A = w ? i === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, E = m / 2 - d / 2, u = h[l], g = A - b[p] - h[x], v = A / 2 - b[p] / 2 + E, O = ie(u, v, g), P = i;
198
- r.modifiersData[n] = (e = {}, e[P] = O, e.centerOffset = O - v, e);
194
+ function _t(t) {
195
+ var e, r = t.state, n = t.name, o = t.options, s = r.elements.arrow, c = r.modifiersData.popperOffsets, i = I(r.placement), a = $e(i), f = [$, k].indexOf(i) >= 0, p = f ? "height" : "width";
196
+ if (!(!s || !c)) {
197
+ var u = qt(o.padding, r), v = je(s), d = a === "y" ? j : $, x = a === "y" ? C : k, h = r.rects.reference[p] + r.rects.reference[a] - c[a] - r.rects.popper[p], l = c[a] - r.rects.reference[a], y = le(s), A = y ? a === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, O = h / 2 - l / 2, m = u[d], b = A - v[p] - u[x], g = A / 2 - v[p] / 2 + O, E = ie(m, g, b), P = a;
198
+ r.modifiersData[n] = (e = {}, e[P] = E, e.centerOffset = E - g, e);
199
199
  }
200
200
  }
201
- function Ht(t) {
201
+ function Ft(t) {
202
202
  var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
203
203
  if (o != null && !(typeof o == "string" && (o = e.elements.popper.querySelector(o), !o))) {
204
- if (process.env.NODE_ENV !== "production" && (k(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !at(e.elements.popper, o)) {
204
+ if (process.env.NODE_ENV !== "production" && (B(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !at(e.elements.popper, o)) {
205
205
  process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
206
206
  return;
207
207
  }
208
208
  e.elements.arrow = o;
209
209
  }
210
210
  }
211
- const _t = {
211
+ const Xt = {
212
212
  name: "arrow",
213
213
  enabled: !0,
214
214
  phase: "main",
215
- fn: qt,
216
- effect: Ht,
215
+ fn: _t,
216
+ effect: Ft,
217
217
  requires: ["popperOffsets"],
218
218
  requiresIfExists: ["preventOverflow"]
219
219
  };
220
220
  function re(t) {
221
221
  return t.split("-")[1];
222
222
  }
223
- var Ft = {
223
+ var Yt = {
224
224
  top: "auto",
225
225
  right: "auto",
226
226
  bottom: "auto",
227
227
  left: "auto"
228
228
  };
229
- function Xt(t) {
229
+ function zt(t) {
230
230
  var e = t.x, r = t.y, n = window, o = n.devicePixelRatio || 1;
231
231
  return {
232
232
  x: ee(e * o) / o || 0,
@@ -234,49 +234,49 @@ function Xt(t) {
234
234
  };
235
235
  }
236
236
  function ze(t) {
237
- var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, f = t.offsets, s = t.position, i = t.gpuAcceleration, c = t.adaptive, p = t.roundOffsets, h = t.isFixed, b = f.x, l = b === void 0 ? 0 : b, x = f.y, m = x === void 0 ? 0 : x, d = typeof p == "function" ? p({
238
- x: l,
239
- y: m
237
+ var e, r = t.popper, n = t.popperRect, o = t.placement, s = t.variation, c = t.offsets, i = t.position, a = t.gpuAcceleration, f = t.adaptive, p = t.roundOffsets, u = t.isFixed, v = c.x, d = v === void 0 ? 0 : v, x = c.y, h = x === void 0 ? 0 : x, l = typeof p == "function" ? p({
238
+ x: d,
239
+ y: h
240
240
  }) : {
241
- x: l,
242
- y: m
241
+ x: d,
242
+ y: h
243
243
  };
244
- l = d.x, m = d.y;
245
- var w = f.hasOwnProperty("x"), A = f.hasOwnProperty("y"), E = B, u = j, g = window;
246
- if (c) {
247
- var v = le(r), O = "clientHeight", P = "clientWidth";
248
- if (v === L(r) && (v = _(r), V(v).position !== "static" && s === "absolute" && (O = "scrollHeight", P = "scrollWidth")), v = v, o === j || (o === B || o === N) && a === pe) {
249
- u = C;
250
- var D = h && v === g && g.visualViewport ? g.visualViewport.height : v[O];
251
- m -= D - n.height, m *= i ? 1 : -1;
244
+ d = l.x, h = l.y;
245
+ var y = c.hasOwnProperty("x"), A = c.hasOwnProperty("y"), O = $, m = j, b = window;
246
+ if (f) {
247
+ var g = le(r), E = "clientHeight", P = "clientWidth";
248
+ if (g === L(r) && (g = _(r), V(g).position !== "static" && i === "absolute" && (E = "scrollHeight", P = "scrollWidth")), g = g, o === j || (o === $ || o === k) && s === pe) {
249
+ m = C;
250
+ var S = u && g === b && b.visualViewport ? b.visualViewport.height : g[E];
251
+ h -= S - n.height, h *= a ? 1 : -1;
252
252
  }
253
- if (o === B || (o === j || o === C) && a === pe) {
254
- E = N;
255
- var S = h && v === g && g.visualViewport ? g.visualViewport.width : v[P];
256
- l -= S - n.width, l *= i ? 1 : -1;
253
+ if (o === $ || (o === j || o === C) && s === pe) {
254
+ O = k;
255
+ var D = u && g === b && b.visualViewport ? b.visualViewport.width : g[P];
256
+ d -= D - n.width, d *= a ? 1 : -1;
257
257
  }
258
258
  }
259
- var y = Object.assign({
260
- position: s
261
- }, c && Ft), R = p === !0 ? Xt({
262
- x: l,
263
- y: m
259
+ var w = Object.assign({
260
+ position: i
261
+ }, f && Yt), R = p === !0 ? zt({
262
+ x: d,
263
+ y: h
264
264
  }) : {
265
- x: l,
266
- y: m
265
+ x: d,
266
+ y: h
267
267
  };
268
- if (l = R.x, m = R.y, i) {
268
+ if (d = R.x, h = R.y, a) {
269
269
  var T;
270
- return Object.assign({}, y, (T = {}, T[u] = A ? "0" : "", T[E] = w ? "0" : "", T.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + l + "px, " + m + "px)" : "translate3d(" + l + "px, " + m + "px, 0)", T));
270
+ return Object.assign({}, w, (T = {}, T[m] = A ? "0" : "", T[O] = y ? "0" : "", T.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + h + "px)" : "translate3d(" + d + "px, " + h + "px, 0)", T));
271
271
  }
272
- return Object.assign({}, y, (e = {}, e[u] = A ? m + "px" : "", e[E] = w ? l + "px" : "", e.transform = "", e));
272
+ return Object.assign({}, w, (e = {}, e[m] = A ? h + "px" : "", e[O] = y ? d + "px" : "", e.transform = "", e));
273
273
  }
274
- function Yt(t) {
275
- var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, f = a === void 0 ? !0 : a, s = r.roundOffsets, i = s === void 0 ? !0 : s;
274
+ function Ut(t) {
275
+ var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, s = r.adaptive, c = s === void 0 ? !0 : s, i = r.roundOffsets, a = i === void 0 ? !0 : i;
276
276
  if (process.env.NODE_ENV !== "production") {
277
- var c = V(e.elements.popper).transitionProperty || "";
278
- f && ["transform", "top", "right", "bottom", "left"].some(function(h) {
279
- return c.indexOf(h) >= 0;
277
+ var f = V(e.elements.popper).transitionProperty || "";
278
+ c && ["transform", "top", "right", "bottom", "left"].some(function(u) {
279
+ return f.indexOf(u) >= 0;
280
280
  }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
281
281
 
282
282
  `, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
@@ -294,111 +294,111 @@ function Yt(t) {
294
294
  e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ze(Object.assign({}, p, {
295
295
  offsets: e.modifiersData.popperOffsets,
296
296
  position: e.options.strategy,
297
- adaptive: f,
298
- roundOffsets: i
297
+ adaptive: c,
298
+ roundOffsets: a
299
299
  })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ze(Object.assign({}, p, {
300
300
  offsets: e.modifiersData.arrow,
301
301
  position: "absolute",
302
302
  adaptive: !1,
303
- roundOffsets: i
303
+ roundOffsets: a
304
304
  })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
305
305
  "data-popper-placement": e.placement
306
306
  });
307
307
  }
308
- const zt = {
308
+ const Gt = {
309
309
  name: "computeStyles",
310
310
  enabled: !0,
311
311
  phase: "beforeWrite",
312
- fn: Yt,
312
+ fn: Ut,
313
313
  data: {}
314
314
  };
315
315
  var ge = {
316
316
  passive: !0
317
317
  };
318
- function Ut(t) {
319
- var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, f = n.resize, s = f === void 0 ? !0 : f, i = L(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
320
- return a && c.forEach(function(p) {
318
+ function Jt(t) {
319
+ var e = t.state, r = t.instance, n = t.options, o = n.scroll, s = o === void 0 ? !0 : o, c = n.resize, i = c === void 0 ? !0 : c, a = L(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
320
+ return s && f.forEach(function(p) {
321
321
  p.addEventListener("scroll", r.update, ge);
322
- }), s && i.addEventListener("resize", r.update, ge), function() {
323
- a && c.forEach(function(p) {
322
+ }), i && a.addEventListener("resize", r.update, ge), function() {
323
+ s && f.forEach(function(p) {
324
324
  p.removeEventListener("scroll", r.update, ge);
325
- }), s && i.removeEventListener("resize", r.update, ge);
325
+ }), i && a.removeEventListener("resize", r.update, ge);
326
326
  };
327
327
  }
328
- const Gt = {
328
+ const Kt = {
329
329
  name: "eventListeners",
330
330
  enabled: !0,
331
331
  phase: "write",
332
332
  fn: function() {
333
333
  },
334
- effect: Ut,
334
+ effect: Jt,
335
335
  data: {}
336
336
  };
337
- var Jt = {
337
+ var Qt = {
338
338
  left: "right",
339
339
  right: "left",
340
340
  bottom: "top",
341
341
  top: "bottom"
342
342
  };
343
- function ye(t) {
343
+ function be(t) {
344
344
  return t.replace(/left|right|bottom|top/g, function(e) {
345
- return Jt[e];
345
+ return Qt[e];
346
346
  });
347
347
  }
348
- var Kt = {
348
+ var Zt = {
349
349
  start: "end",
350
350
  end: "start"
351
351
  };
352
352
  function Ue(t) {
353
353
  return t.replace(/start|end/g, function(e) {
354
- return Kt[e];
354
+ return Zt[e];
355
355
  });
356
356
  }
357
- function $e(t) {
357
+ function Ne(t) {
358
358
  var e = L(t), r = e.pageXOffset, n = e.pageYOffset;
359
359
  return {
360
360
  scrollLeft: r,
361
361
  scrollTop: n
362
362
  };
363
363
  }
364
- function ke(t) {
365
- return te(_(t)).left + $e(t).scrollLeft;
364
+ function Be(t) {
365
+ return te(_(t)).left + Ne(t).scrollLeft;
366
366
  }
367
- function Qt(t, e) {
368
- var r = L(t), n = _(t), o = r.visualViewport, a = n.clientWidth, f = n.clientHeight, s = 0, i = 0;
367
+ function er(t, e) {
368
+ var r = L(t), n = _(t), o = r.visualViewport, s = n.clientWidth, c = n.clientHeight, i = 0, a = 0;
369
369
  if (o) {
370
- a = o.width, f = o.height;
371
- var c = ot();
372
- (c || !c && e === "fixed") && (s = o.offsetLeft, i = o.offsetTop);
370
+ s = o.width, c = o.height;
371
+ var f = ot();
372
+ (f || !f && e === "fixed") && (i = o.offsetLeft, a = o.offsetTop);
373
373
  }
374
374
  return {
375
- width: a,
376
- height: f,
377
- x: s + ke(t),
378
- y: i
375
+ width: s,
376
+ height: c,
377
+ x: i + Be(t),
378
+ y: a
379
379
  };
380
380
  }
381
- function Zt(t) {
382
- var e, r = _(t), n = $e(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = J(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), f = J(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + ke(t), i = -n.scrollTop;
383
- return V(o || r).direction === "rtl" && (s += J(r.clientWidth, o ? o.clientWidth : 0) - a), {
384
- width: a,
385
- height: f,
386
- x: s,
387
- y: i
381
+ function tr(t) {
382
+ var e, r = _(t), n = Ne(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, s = J(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = J(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + Be(t), a = -n.scrollTop;
383
+ return V(o || r).direction === "rtl" && (i += J(r.clientWidth, o ? o.clientWidth : 0) - s), {
384
+ width: s,
385
+ height: c,
386
+ x: i,
387
+ y: a
388
388
  };
389
389
  }
390
390
  function Ce(t) {
391
391
  var e = V(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
392
392
  return /auto|scroll|overlay|hidden/.test(r + o + n);
393
393
  }
394
- function ft(t) {
395
- return ["html", "body", "#document"].indexOf(W(t)) >= 0 ? t.ownerDocument.body : k(t) && Ce(t) ? t : ft(xe(t));
394
+ function ct(t) {
395
+ return ["html", "body", "#document"].indexOf(W(t)) >= 0 ? t.ownerDocument.body : B(t) && Ce(t) ? t : ct(xe(t));
396
396
  }
397
397
  function se(t, e) {
398
398
  var r;
399
399
  e === void 0 && (e = []);
400
- var n = ft(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = L(n), f = o ? [a].concat(a.visualViewport || [], Ce(n) ? n : []) : n, s = e.concat(f);
401
- return o ? s : s.concat(se(xe(f)));
400
+ var n = ct(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), s = L(n), c = o ? [s].concat(s.visualViewport || [], Ce(n) ? n : []) : n, i = e.concat(c);
401
+ return o ? i : i.concat(se(xe(c)));
402
402
  }
403
403
  function Re(t) {
404
404
  return Object.assign({}, t, {
@@ -408,175 +408,175 @@ function Re(t) {
408
408
  bottom: t.y + t.height
409
409
  });
410
410
  }
411
- function er(t, e) {
411
+ function rr(t, e) {
412
412
  var r = te(t, !1, e === "fixed");
413
413
  return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
414
414
  }
415
415
  function Ge(t, e, r) {
416
- return e === rt ? Re(Qt(t, r)) : K(e) ? er(e, r) : Re(Zt(_(t)));
416
+ return e === rt ? Re(er(t, r)) : K(e) ? rr(e, r) : Re(tr(_(t)));
417
417
  }
418
- function tr(t) {
419
- var e = se(xe(t)), r = ["absolute", "fixed"].indexOf(V(t).position) >= 0, n = r && k(t) ? le(t) : t;
418
+ function nr(t) {
419
+ var e = se(xe(t)), r = ["absolute", "fixed"].indexOf(V(t).position) >= 0, n = r && B(t) ? le(t) : t;
420
420
  return K(n) ? e.filter(function(o) {
421
421
  return K(o) && at(o, n) && W(o) !== "body";
422
422
  }) : [];
423
423
  }
424
- function rr(t, e, r, n) {
425
- var o = e === "clippingParents" ? tr(t) : [].concat(e), a = [].concat(o, [r]), f = a[0], s = a.reduce(function(i, c) {
426
- var p = Ge(t, c, n);
427
- return i.top = J(p.top, i.top), i.right = be(p.right, i.right), i.bottom = be(p.bottom, i.bottom), i.left = J(p.left, i.left), i;
428
- }, Ge(t, f, n));
429
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
424
+ function or(t, e, r, n) {
425
+ var o = e === "clippingParents" ? nr(t) : [].concat(e), s = [].concat(o, [r]), c = s[0], i = s.reduce(function(a, f) {
426
+ var p = Ge(t, f, n);
427
+ return a.top = J(p.top, a.top), a.right = ye(p.right, a.right), a.bottom = ye(p.bottom, a.bottom), a.left = J(p.left, a.left), a;
428
+ }, Ge(t, c, n));
429
+ return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
430
430
  }
431
- function ct(t) {
432
- var e = t.reference, r = t.element, n = t.placement, o = n ? I(n) : null, a = n ? re(n) : null, f = e.x + e.width / 2 - r.width / 2, s = e.y + e.height / 2 - r.height / 2, i;
431
+ function ft(t) {
432
+ var e = t.reference, r = t.element, n = t.placement, o = n ? I(n) : null, s = n ? re(n) : null, c = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, a;
433
433
  switch (o) {
434
434
  case j:
435
- i = {
436
- x: f,
435
+ a = {
436
+ x: c,
437
437
  y: e.y - r.height
438
438
  };
439
439
  break;
440
440
  case C:
441
- i = {
442
- x: f,
441
+ a = {
442
+ x: c,
443
443
  y: e.y + e.height
444
444
  };
445
445
  break;
446
- case N:
447
- i = {
446
+ case k:
447
+ a = {
448
448
  x: e.x + e.width,
449
- y: s
449
+ y: i
450
450
  };
451
451
  break;
452
- case B:
453
- i = {
452
+ case $:
453
+ a = {
454
454
  x: e.x - r.width,
455
- y: s
455
+ y: i
456
456
  };
457
457
  break;
458
458
  default:
459
- i = {
459
+ a = {
460
460
  x: e.x,
461
461
  y: e.y
462
462
  };
463
463
  }
464
- var c = o ? Be(o) : null;
465
- if (c != null) {
466
- var p = c === "y" ? "height" : "width";
467
- switch (a) {
464
+ var f = o ? $e(o) : null;
465
+ if (f != null) {
466
+ var p = f === "y" ? "height" : "width";
467
+ switch (s) {
468
468
  case Z:
469
- i[c] = i[c] - (e[p] / 2 - r[p] / 2);
469
+ a[f] = a[f] - (e[p] / 2 - r[p] / 2);
470
470
  break;
471
471
  case pe:
472
- i[c] = i[c] + (e[p] / 2 - r[p] / 2);
472
+ a[f] = a[f] + (e[p] / 2 - r[p] / 2);
473
473
  break;
474
474
  }
475
475
  }
476
- return i;
476
+ return a;
477
477
  }
478
- function fe(t, e) {
478
+ function ce(t, e) {
479
479
  e === void 0 && (e = {});
480
- var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, f = a === void 0 ? t.strategy : a, s = r.boundary, i = s === void 0 ? Et : s, c = r.rootBoundary, p = c === void 0 ? rt : c, h = r.elementContext, b = h === void 0 ? ae : h, l = r.altBoundary, x = l === void 0 ? !1 : l, m = r.padding, d = m === void 0 ? 0 : m, w = st(typeof d != "number" ? d : pt(d, ce)), A = b === ae ? At : ae, E = t.rects.popper, u = t.elements[x ? A : b], g = rr(K(u) ? u : u.contextElement || _(t.elements.popper), i, p, f), v = te(t.elements.reference), O = ct({
481
- reference: v,
482
- element: E,
480
+ var r = e, n = r.placement, o = n === void 0 ? t.placement : n, s = r.strategy, c = s === void 0 ? t.strategy : s, i = r.boundary, a = i === void 0 ? Pt : i, f = r.rootBoundary, p = f === void 0 ? rt : f, u = r.elementContext, v = u === void 0 ? ae : u, d = r.altBoundary, x = d === void 0 ? !1 : d, h = r.padding, l = h === void 0 ? 0 : h, y = st(typeof l != "number" ? l : pt(l, fe)), A = v === ae ? St : ae, O = t.rects.popper, m = t.elements[x ? A : v], b = or(K(m) ? m : m.contextElement || _(t.elements.popper), a, p, c), g = te(t.elements.reference), E = ft({
481
+ reference: g,
482
+ element: O,
483
483
  strategy: "absolute",
484
484
  placement: o
485
- }), P = Re(Object.assign({}, E, O)), D = b === ae ? P : v, S = {
486
- top: g.top - D.top + w.top,
487
- bottom: D.bottom - g.bottom + w.bottom,
488
- left: g.left - D.left + w.left,
489
- right: D.right - g.right + w.right
490
- }, y = t.modifiersData.offset;
491
- if (b === ae && y) {
492
- var R = y[o];
493
- Object.keys(S).forEach(function(T) {
494
- var F = [N, C].indexOf(T) >= 0 ? 1 : -1, X = [j, C].indexOf(T) >= 0 ? "y" : "x";
495
- S[T] += R[X] * F;
485
+ }), P = Re(Object.assign({}, O, E)), S = v === ae ? P : g, D = {
486
+ top: b.top - S.top + y.top,
487
+ bottom: S.bottom - b.bottom + y.bottom,
488
+ left: b.left - S.left + y.left,
489
+ right: S.right - b.right + y.right
490
+ }, w = t.modifiersData.offset;
491
+ if (v === ae && w) {
492
+ var R = w[o];
493
+ Object.keys(D).forEach(function(T) {
494
+ var F = [k, C].indexOf(T) >= 0 ? 1 : -1, X = [j, C].indexOf(T) >= 0 ? "y" : "x";
495
+ D[T] += R[X] * F;
496
496
  });
497
497
  }
498
- return S;
498
+ return D;
499
499
  }
500
- function nr(t, e) {
500
+ function ar(t, e) {
501
501
  e === void 0 && (e = {});
502
- var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, f = r.padding, s = r.flipVariations, i = r.allowedAutoPlacements, c = i === void 0 ? nt : i, p = re(n), h = p ? s ? Xe : Xe.filter(function(x) {
502
+ var r = e, n = r.placement, o = r.boundary, s = r.rootBoundary, c = r.padding, i = r.flipVariations, a = r.allowedAutoPlacements, f = a === void 0 ? nt : a, p = re(n), u = p ? i ? Xe : Xe.filter(function(x) {
503
503
  return re(x) === p;
504
- }) : ce, b = h.filter(function(x) {
505
- return c.indexOf(x) >= 0;
504
+ }) : fe, v = u.filter(function(x) {
505
+ return f.indexOf(x) >= 0;
506
506
  });
507
- b.length === 0 && (b = h, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
508
- var l = b.reduce(function(x, m) {
509
- return x[m] = fe(t, {
510
- placement: m,
507
+ v.length === 0 && (v = u, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
508
+ var d = v.reduce(function(x, h) {
509
+ return x[h] = ce(t, {
510
+ placement: h,
511
511
  boundary: o,
512
- rootBoundary: a,
513
- padding: f
514
- })[I(m)], x;
512
+ rootBoundary: s,
513
+ padding: c
514
+ })[I(h)], x;
515
515
  }, {});
516
- return Object.keys(l).sort(function(x, m) {
517
- return l[x] - l[m];
516
+ return Object.keys(d).sort(function(x, h) {
517
+ return d[x] - d[h];
518
518
  });
519
519
  }
520
- function or(t) {
520
+ function ir(t) {
521
521
  if (I(t) === we)
522
522
  return [];
523
- var e = ye(t);
523
+ var e = be(t);
524
524
  return [Ue(t), e, Ue(e)];
525
525
  }
526
- function ar(t) {
526
+ function sr(t) {
527
527
  var e = t.state, r = t.options, n = t.name;
528
528
  if (!e.modifiersData[n]._skip) {
529
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, f = r.altAxis, s = f === void 0 ? !0 : f, i = r.fallbackPlacements, c = r.padding, p = r.boundary, h = r.rootBoundary, b = r.altBoundary, l = r.flipVariations, x = l === void 0 ? !0 : l, m = r.allowedAutoPlacements, d = e.options.placement, w = I(d), A = w === d, E = i || (A || !x ? [ye(d)] : or(d)), u = [d].concat(E).reduce(function(Q, q) {
530
- return Q.concat(I(q) === we ? nr(e, {
531
- placement: q,
529
+ for (var o = r.mainAxis, s = o === void 0 ? !0 : o, c = r.altAxis, i = c === void 0 ? !0 : c, a = r.fallbackPlacements, f = r.padding, p = r.boundary, u = r.rootBoundary, v = r.altBoundary, d = r.flipVariations, x = d === void 0 ? !0 : d, h = r.allowedAutoPlacements, l = e.options.placement, y = I(l), A = y === l, O = a || (A || !x ? [be(l)] : ir(l)), m = [l].concat(O).reduce(function(Q, H) {
530
+ return Q.concat(I(H) === we ? ar(e, {
531
+ placement: H,
532
532
  boundary: p,
533
- rootBoundary: h,
534
- padding: c,
533
+ rootBoundary: u,
534
+ padding: f,
535
535
  flipVariations: x,
536
- allowedAutoPlacements: m
537
- }) : q);
538
- }, []), g = e.rects.reference, v = e.rects.popper, O = /* @__PURE__ */ new Map(), P = !0, D = u[0], S = 0; S < u.length; S++) {
539
- var y = u[S], R = I(y), T = re(y) === Z, F = [j, C].indexOf(R) >= 0, X = F ? "width" : "height", $ = fe(e, {
540
- placement: y,
536
+ allowedAutoPlacements: h
537
+ }) : H);
538
+ }, []), b = e.rects.reference, g = e.rects.popper, E = /* @__PURE__ */ new Map(), P = !0, S = m[0], D = 0; D < m.length; D++) {
539
+ var w = m[D], R = I(w), T = re(w) === Z, F = [j, C].indexOf(R) >= 0, X = F ? "width" : "height", N = ce(e, {
540
+ placement: w,
541
541
  boundary: p,
542
- rootBoundary: h,
543
- altBoundary: b,
544
- padding: c
545
- }), M = F ? T ? N : B : T ? C : j;
546
- g[X] > v[X] && (M = ye(M));
547
- var ue = ye(M), Y = [];
548
- if (a && Y.push($[R] <= 0), s && Y.push($[M] <= 0, $[ue] <= 0), Y.every(function(Q) {
542
+ rootBoundary: u,
543
+ altBoundary: v,
544
+ padding: f
545
+ }), M = F ? T ? k : $ : T ? C : j;
546
+ b[X] > g[X] && (M = be(M));
547
+ var ue = be(M), Y = [];
548
+ if (s && Y.push(N[R] <= 0), i && Y.push(N[M] <= 0, N[ue] <= 0), Y.every(function(Q) {
549
549
  return Q;
550
550
  })) {
551
- D = y, P = !1;
551
+ S = w, P = !1;
552
552
  break;
553
553
  }
554
- O.set(y, Y);
554
+ E.set(w, Y);
555
555
  }
556
556
  if (P)
557
- for (var ve = x ? 3 : 1, Oe = function(q) {
558
- var oe = u.find(function(he) {
559
- var z = O.get(he);
557
+ for (var de = x ? 3 : 1, Oe = function(H) {
558
+ var oe = m.find(function(he) {
559
+ var z = E.get(he);
560
560
  if (z)
561
- return z.slice(0, q).every(function(Ee) {
561
+ return z.slice(0, H).every(function(Ee) {
562
562
  return Ee;
563
563
  });
564
564
  });
565
565
  if (oe)
566
- return D = oe, "break";
567
- }, ne = ve; ne > 0; ne--) {
568
- var de = Oe(ne);
569
- if (de === "break")
566
+ return S = oe, "break";
567
+ }, ne = de; ne > 0; ne--) {
568
+ var ve = Oe(ne);
569
+ if (ve === "break")
570
570
  break;
571
571
  }
572
- e.placement !== D && (e.modifiersData[n]._skip = !0, e.placement = D, e.reset = !0);
572
+ e.placement !== S && (e.modifiersData[n]._skip = !0, e.placement = S, e.reset = !0);
573
573
  }
574
574
  }
575
- const ir = {
575
+ const pr = {
576
576
  name: "flip",
577
577
  enabled: !0,
578
578
  phase: "main",
579
- fn: ar,
579
+ fn: sr,
580
580
  requiresIfExists: ["offset"],
581
581
  data: {
582
582
  _skip: !1
@@ -594,174 +594,174 @@ function Je(t, e, r) {
594
594
  };
595
595
  }
596
596
  function Ke(t) {
597
- return [j, N, C, B].some(function(e) {
597
+ return [j, k, C, $].some(function(e) {
598
598
  return t[e] >= 0;
599
599
  });
600
600
  }
601
- function sr(t) {
602
- var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, f = fe(e, {
601
+ function cr(t) {
602
+ var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, s = e.modifiersData.preventOverflow, c = ce(e, {
603
603
  elementContext: "reference"
604
- }), s = fe(e, {
604
+ }), i = ce(e, {
605
605
  altBoundary: !0
606
- }), i = Je(f, n), c = Je(s, o, a), p = Ke(i), h = Ke(c);
606
+ }), a = Je(c, n), f = Je(i, o, s), p = Ke(a), u = Ke(f);
607
607
  e.modifiersData[r] = {
608
- referenceClippingOffsets: i,
609
- popperEscapeOffsets: c,
608
+ referenceClippingOffsets: a,
609
+ popperEscapeOffsets: f,
610
610
  isReferenceHidden: p,
611
- hasPopperEscaped: h
611
+ hasPopperEscaped: u
612
612
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
613
613
  "data-popper-reference-hidden": p,
614
- "data-popper-escaped": h
614
+ "data-popper-escaped": u
615
615
  });
616
616
  }
617
- const pr = {
617
+ const fr = {
618
618
  name: "hide",
619
619
  enabled: !0,
620
620
  phase: "main",
621
621
  requiresIfExists: ["preventOverflow"],
622
- fn: sr
622
+ fn: cr
623
623
  };
624
- function fr(t, e, r) {
625
- var n = I(t), o = [B, j].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
624
+ function lr(t, e, r) {
625
+ var n = I(t), o = [$, j].indexOf(n) >= 0 ? -1 : 1, s = typeof r == "function" ? r(Object.assign({}, e, {
626
626
  placement: t
627
- })) : r, f = a[0], s = a[1];
628
- return f = f || 0, s = (s || 0) * o, [B, N].indexOf(n) >= 0 ? {
629
- x: s,
630
- y: f
627
+ })) : r, c = s[0], i = s[1];
628
+ return c = c || 0, i = (i || 0) * o, [$, k].indexOf(n) >= 0 ? {
629
+ x: i,
630
+ y: c
631
631
  } : {
632
- x: f,
633
- y: s
632
+ x: c,
633
+ y: i
634
634
  };
635
635
  }
636
- function cr(t) {
637
- var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, f = nt.reduce(function(p, h) {
638
- return p[h] = fr(h, e.rects, a), p;
639
- }, {}), s = f[e.placement], i = s.x, c = s.y;
640
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += i, e.modifiersData.popperOffsets.y += c), e.modifiersData[n] = f;
636
+ function ur(t) {
637
+ var e = t.state, r = t.options, n = t.name, o = r.offset, s = o === void 0 ? [0, 0] : o, c = nt.reduce(function(p, u) {
638
+ return p[u] = lr(u, e.rects, s), p;
639
+ }, {}), i = c[e.placement], a = i.x, f = i.y;
640
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = c;
641
641
  }
642
- const lr = {
642
+ const dr = {
643
643
  name: "offset",
644
644
  enabled: !0,
645
645
  phase: "main",
646
646
  requires: ["popperOffsets"],
647
- fn: cr
647
+ fn: ur
648
648
  };
649
- function ur(t) {
649
+ function vr(t) {
650
650
  var e = t.state, r = t.name;
651
- e.modifiersData[r] = ct({
651
+ e.modifiersData[r] = ft({
652
652
  reference: e.rects.reference,
653
653
  element: e.rects.popper,
654
654
  strategy: "absolute",
655
655
  placement: e.placement
656
656
  });
657
657
  }
658
- const vr = {
658
+ const hr = {
659
659
  name: "popperOffsets",
660
660
  enabled: !0,
661
661
  phase: "read",
662
- fn: ur,
662
+ fn: vr,
663
663
  data: {}
664
664
  };
665
- function dr(t) {
665
+ function mr(t) {
666
666
  return t === "x" ? "y" : "x";
667
667
  }
668
- function hr(t) {
669
- var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, f = r.altAxis, s = f === void 0 ? !1 : f, i = r.boundary, c = r.rootBoundary, p = r.altBoundary, h = r.padding, b = r.tether, l = b === void 0 ? !0 : b, x = r.tetherOffset, m = x === void 0 ? 0 : x, d = fe(e, {
670
- boundary: i,
671
- rootBoundary: c,
672
- padding: h,
668
+ function gr(t) {
669
+ var e = t.state, r = t.options, n = t.name, o = r.mainAxis, s = o === void 0 ? !0 : o, c = r.altAxis, i = c === void 0 ? !1 : c, a = r.boundary, f = r.rootBoundary, p = r.altBoundary, u = r.padding, v = r.tether, d = v === void 0 ? !0 : v, x = r.tetherOffset, h = x === void 0 ? 0 : x, l = ce(e, {
670
+ boundary: a,
671
+ rootBoundary: f,
672
+ padding: u,
673
673
  altBoundary: p
674
- }), w = I(e.placement), A = re(e.placement), E = !A, u = Be(w), g = dr(u), v = e.modifiersData.popperOffsets, O = e.rects.reference, P = e.rects.popper, D = typeof m == "function" ? m(Object.assign({}, e.rects, {
674
+ }), y = I(e.placement), A = re(e.placement), O = !A, m = $e(y), b = mr(m), g = e.modifiersData.popperOffsets, E = e.rects.reference, P = e.rects.popper, S = typeof h == "function" ? h(Object.assign({}, e.rects, {
675
675
  placement: e.placement
676
- })) : m, S = typeof D == "number" ? {
677
- mainAxis: D,
678
- altAxis: D
676
+ })) : h, D = typeof S == "number" ? {
677
+ mainAxis: S,
678
+ altAxis: S
679
679
  } : Object.assign({
680
680
  mainAxis: 0,
681
681
  altAxis: 0
682
- }, D), y = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, R = {
682
+ }, S), w = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, R = {
683
683
  x: 0,
684
684
  y: 0
685
685
  };
686
- if (!!v) {
687
- if (a) {
688
- var T, F = u === "y" ? j : B, X = u === "y" ? C : N, $ = u === "y" ? "height" : "width", M = v[u], ue = M + d[F], Y = M - d[X], ve = l ? -P[$] / 2 : 0, Oe = A === Z ? O[$] : P[$], ne = A === Z ? -P[$] : -O[$], de = e.elements.arrow, Q = l && de ? je(de) : {
686
+ if (!!g) {
687
+ if (s) {
688
+ var T, F = m === "y" ? j : $, X = m === "y" ? C : k, N = m === "y" ? "height" : "width", M = g[m], ue = M + l[F], Y = M - l[X], de = d ? -P[N] / 2 : 0, Oe = A === Z ? E[N] : P[N], ne = A === Z ? -P[N] : -E[N], ve = e.elements.arrow, Q = d && ve ? je(ve) : {
689
689
  width: 0,
690
690
  height: 0
691
- }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : it(), oe = q[F], he = q[X], z = ie(0, O[$], Q[$]), Ee = E ? O[$] / 2 - ve - z - oe - S.mainAxis : Oe - z - oe - S.mainAxis, lt = E ? -O[$] / 2 + ve + z + he + S.mainAxis : ne + z + he + S.mainAxis, Ae = e.elements.arrow && le(e.elements.arrow), ut = Ae ? u === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Ne = (T = y == null ? void 0 : y[u]) != null ? T : 0, vt = M + Ee - Ne - ut, dt = M + lt - Ne, Le = ie(l ? be(ue, vt) : ue, M, l ? J(Y, dt) : Y);
692
- v[u] = Le, R[u] = Le - M;
691
+ }, H = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : it(), oe = H[F], he = H[X], z = ie(0, E[N], Q[N]), Ee = O ? E[N] / 2 - de - z - oe - D.mainAxis : Oe - z - oe - D.mainAxis, lt = O ? -E[N] / 2 + de + z + he + D.mainAxis : ne + z + he + D.mainAxis, Ae = e.elements.arrow && le(e.elements.arrow), ut = Ae ? m === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, ke = (T = w == null ? void 0 : w[m]) != null ? T : 0, dt = M + Ee - ke - ut, vt = M + lt - ke, Le = ie(d ? ye(ue, dt) : ue, M, d ? J(Y, vt) : Y);
692
+ g[m] = Le, R[m] = Le - M;
693
693
  }
694
- if (s) {
695
- var Me, ht = u === "x" ? j : B, mt = u === "x" ? C : N, U = v[g], me = g === "y" ? "height" : "width", Ie = U + d[ht], Ve = U - d[mt], Pe = [j, B].indexOf(w) !== -1, We = (Me = y == null ? void 0 : y[g]) != null ? Me : 0, qe = Pe ? Ie : U - O[me] - P[me] - We + S.altAxis, He = Pe ? U + O[me] + P[me] - We - S.altAxis : Ve, _e = l && Pe ? Vt(qe, U, He) : ie(l ? qe : Ie, U, l ? He : Ve);
696
- v[g] = _e, R[g] = _e - U;
694
+ if (i) {
695
+ var Me, ht = m === "x" ? j : $, mt = m === "x" ? C : k, U = g[b], me = b === "y" ? "height" : "width", Ie = U + l[ht], Ve = U - l[mt], Pe = [j, $].indexOf(y) !== -1, We = (Me = w == null ? void 0 : w[b]) != null ? Me : 0, He = Pe ? Ie : U - E[me] - P[me] - We + D.altAxis, qe = Pe ? U + E[me] + P[me] - We - D.altAxis : Ve, _e = d && Pe ? Ht(He, U, qe) : ie(d ? He : Ie, U, d ? qe : Ve);
696
+ g[b] = _e, R[b] = _e - U;
697
697
  }
698
698
  e.modifiersData[n] = R;
699
699
  }
700
700
  }
701
- const mr = {
701
+ const br = {
702
702
  name: "preventOverflow",
703
703
  enabled: !0,
704
704
  phase: "main",
705
- fn: hr,
705
+ fn: gr,
706
706
  requiresIfExists: ["offset"]
707
707
  };
708
- function gr(t) {
708
+ function yr(t) {
709
709
  return {
710
710
  scrollLeft: t.scrollLeft,
711
711
  scrollTop: t.scrollTop
712
712
  };
713
713
  }
714
- function yr(t) {
715
- return t === L(t) || !k(t) ? $e(t) : gr(t);
714
+ function wr(t) {
715
+ return t === L(t) || !B(t) ? Ne(t) : yr(t);
716
716
  }
717
- function br(t) {
717
+ function xr(t) {
718
718
  var e = t.getBoundingClientRect(), r = ee(e.width) / t.offsetWidth || 1, n = ee(e.height) / t.offsetHeight || 1;
719
719
  return r !== 1 || n !== 1;
720
720
  }
721
- function wr(t, e, r) {
721
+ function Or(t, e, r) {
722
722
  r === void 0 && (r = !1);
723
- var n = k(e), o = k(e) && br(e), a = _(e), f = te(t, o, r), s = {
723
+ var n = B(e), o = B(e) && xr(e), s = _(e), c = te(t, o, r), i = {
724
724
  scrollLeft: 0,
725
725
  scrollTop: 0
726
- }, i = {
726
+ }, a = {
727
727
  x: 0,
728
728
  y: 0
729
729
  };
730
- return (n || !n && !r) && ((W(e) !== "body" || Ce(a)) && (s = yr(e)), k(e) ? (i = te(e, !0), i.x += e.clientLeft, i.y += e.clientTop) : a && (i.x = ke(a))), {
731
- x: f.left + s.scrollLeft - i.x,
732
- y: f.top + s.scrollTop - i.y,
733
- width: f.width,
734
- height: f.height
730
+ return (n || !n && !r) && ((W(e) !== "body" || Ce(s)) && (i = wr(e)), B(e) ? (a = te(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Be(s))), {
731
+ x: c.left + i.scrollLeft - a.x,
732
+ y: c.top + i.scrollTop - a.y,
733
+ width: c.width,
734
+ height: c.height
735
735
  };
736
736
  }
737
- function xr(t) {
737
+ function Er(t) {
738
738
  var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
739
- t.forEach(function(a) {
740
- e.set(a.name, a);
739
+ t.forEach(function(s) {
740
+ e.set(s.name, s);
741
741
  });
742
- function o(a) {
743
- r.add(a.name);
744
- var f = [].concat(a.requires || [], a.requiresIfExists || []);
745
- f.forEach(function(s) {
746
- if (!r.has(s)) {
747
- var i = e.get(s);
748
- i && o(i);
742
+ function o(s) {
743
+ r.add(s.name);
744
+ var c = [].concat(s.requires || [], s.requiresIfExists || []);
745
+ c.forEach(function(i) {
746
+ if (!r.has(i)) {
747
+ var a = e.get(i);
748
+ a && o(a);
749
749
  }
750
- }), n.push(a);
750
+ }), n.push(s);
751
751
  }
752
- return t.forEach(function(a) {
753
- r.has(a.name) || o(a);
752
+ return t.forEach(function(s) {
753
+ r.has(s.name) || o(s);
754
754
  }), n;
755
755
  }
756
- function Or(t) {
757
- var e = xr(t);
758
- return De.reduce(function(r, n) {
756
+ function Ar(t) {
757
+ var e = Er(t);
758
+ return Se.reduce(function(r, n) {
759
759
  return r.concat(e.filter(function(o) {
760
760
  return o.phase === n;
761
761
  }));
762
762
  }, []);
763
763
  }
764
- function Er(t) {
764
+ function Pr(t) {
765
765
  var e;
766
766
  return function() {
767
767
  return e || (e = new Promise(function(r) {
@@ -771,40 +771,40 @@ function Er(t) {
771
771
  })), e;
772
772
  };
773
773
  }
774
- function H(t) {
774
+ function q(t) {
775
775
  for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
776
776
  r[n - 1] = arguments[n];
777
- return [].concat(r).reduce(function(o, a) {
778
- return o.replace(/%s/, a);
777
+ return [].concat(r).reduce(function(o, s) {
778
+ return o.replace(/%s/, s);
779
779
  }, t);
780
780
  }
781
- var G = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Ar = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Qe = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
782
- function Pr(t) {
781
+ var G = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Sr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Qe = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
782
+ function Dr(t) {
783
783
  t.forEach(function(e) {
784
784
  [].concat(Object.keys(e), Qe).filter(function(r, n, o) {
785
785
  return o.indexOf(r) === n;
786
786
  }).forEach(function(r) {
787
787
  switch (r) {
788
788
  case "name":
789
- typeof e.name != "string" && console.error(H(G, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
789
+ typeof e.name != "string" && console.error(q(G, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
790
790
  break;
791
791
  case "enabled":
792
- typeof e.enabled != "boolean" && console.error(H(G, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
792
+ typeof e.enabled != "boolean" && console.error(q(G, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
793
793
  break;
794
794
  case "phase":
795
- De.indexOf(e.phase) < 0 && console.error(H(G, e.name, '"phase"', "either " + De.join(", "), '"' + String(e.phase) + '"'));
795
+ Se.indexOf(e.phase) < 0 && console.error(q(G, e.name, '"phase"', "either " + Se.join(", "), '"' + String(e.phase) + '"'));
796
796
  break;
797
797
  case "fn":
798
- typeof e.fn != "function" && console.error(H(G, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
798
+ typeof e.fn != "function" && console.error(q(G, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
799
799
  break;
800
800
  case "effect":
801
- e.effect != null && typeof e.effect != "function" && console.error(H(G, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
801
+ e.effect != null && typeof e.effect != "function" && console.error(q(G, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
802
802
  break;
803
803
  case "requires":
804
- e.requires != null && !Array.isArray(e.requires) && console.error(H(G, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
804
+ e.requires != null && !Array.isArray(e.requires) && console.error(q(G, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
805
805
  break;
806
806
  case "requiresIfExists":
807
- Array.isArray(e.requiresIfExists) || console.error(H(G, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
807
+ Array.isArray(e.requiresIfExists) || console.error(q(G, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
808
808
  break;
809
809
  case "options":
810
810
  case "data":
@@ -817,12 +817,12 @@ function Pr(t) {
817
817
  e.requires && e.requires.forEach(function(n) {
818
818
  t.find(function(o) {
819
819
  return o.name === n;
820
- }) == null && console.error(H(Ar, String(e.name), n, n));
820
+ }) == null && console.error(q(Sr, String(e.name), n, n));
821
821
  });
822
822
  });
823
823
  });
824
824
  }
825
- function Dr(t, e) {
825
+ function Rr(t, e) {
826
826
  var r = /* @__PURE__ */ new Set();
827
827
  return t.filter(function(n) {
828
828
  var o = e(n);
@@ -830,7 +830,7 @@ function Dr(t, e) {
830
830
  return r.add(o), !0;
831
831
  });
832
832
  }
833
- function Sr(t) {
833
+ function Tr(t) {
834
834
  var e = t.reduce(function(r, n) {
835
835
  var o = r[n.name];
836
836
  return r[n.name] = o ? Object.assign({}, o, n, {
@@ -842,7 +842,7 @@ function Sr(t) {
842
842
  return e[r];
843
843
  });
844
844
  }
845
- var Ze = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Rr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", et = {
845
+ var Ze = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", jr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", et = {
846
846
  placement: "bottom",
847
847
  modifiers: [],
848
848
  strategy: "absolute"
@@ -854,125 +854,125 @@ function tt() {
854
854
  return !(n && typeof n.getBoundingClientRect == "function");
855
855
  });
856
856
  }
857
- function Tr(t) {
857
+ function $r(t) {
858
858
  t === void 0 && (t = {});
859
- var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? et : o;
860
- return function(s, i, c) {
861
- c === void 0 && (c = a);
859
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, s = o === void 0 ? et : o;
860
+ return function(i, a, f) {
861
+ f === void 0 && (f = s);
862
862
  var p = {
863
863
  placement: "bottom",
864
864
  orderedModifiers: [],
865
- options: Object.assign({}, et, a),
865
+ options: Object.assign({}, et, s),
866
866
  modifiersData: {},
867
867
  elements: {
868
- reference: s,
869
- popper: i
868
+ reference: i,
869
+ popper: a
870
870
  },
871
871
  attributes: {},
872
872
  styles: {}
873
- }, h = [], b = !1, l = {
873
+ }, u = [], v = !1, d = {
874
874
  state: p,
875
- setOptions: function(w) {
876
- var A = typeof w == "function" ? w(p.options) : w;
877
- m(), p.options = Object.assign({}, a, p.options, A), p.scrollParents = {
878
- reference: K(s) ? se(s) : s.contextElement ? se(s.contextElement) : [],
879
- popper: se(i)
875
+ setOptions: function(y) {
876
+ var A = typeof y == "function" ? y(p.options) : y;
877
+ h(), p.options = Object.assign({}, s, p.options, A), p.scrollParents = {
878
+ reference: K(i) ? se(i) : i.contextElement ? se(i.contextElement) : [],
879
+ popper: se(a)
880
880
  };
881
- var E = Or(Sr([].concat(n, p.options.modifiers)));
882
- if (p.orderedModifiers = E.filter(function(y) {
883
- return y.enabled;
881
+ var O = Ar(Tr([].concat(n, p.options.modifiers)));
882
+ if (p.orderedModifiers = O.filter(function(w) {
883
+ return w.enabled;
884
884
  }), process.env.NODE_ENV !== "production") {
885
- var u = Dr([].concat(E, p.options.modifiers), function(y) {
886
- var R = y.name;
885
+ var m = Rr([].concat(O, p.options.modifiers), function(w) {
886
+ var R = w.name;
887
887
  return R;
888
888
  });
889
- if (Pr(u), I(p.options.placement) === we) {
890
- var g = p.orderedModifiers.find(function(y) {
891
- var R = y.name;
889
+ if (Dr(m), I(p.options.placement) === we) {
890
+ var b = p.orderedModifiers.find(function(w) {
891
+ var R = w.name;
892
892
  return R === "flip";
893
893
  });
894
- g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
894
+ b || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
895
895
  }
896
- var v = V(i), O = v.marginTop, P = v.marginRight, D = v.marginBottom, S = v.marginLeft;
897
- [O, P, D, S].some(function(y) {
898
- return parseFloat(y);
896
+ var g = V(a), E = g.marginTop, P = g.marginRight, S = g.marginBottom, D = g.marginLeft;
897
+ [E, P, S, D].some(function(w) {
898
+ return parseFloat(w);
899
899
  }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
900
900
  }
901
- return x(), l.update();
901
+ return x(), d.update();
902
902
  },
903
903
  forceUpdate: function() {
904
- if (!b) {
905
- var w = p.elements, A = w.reference, E = w.popper;
906
- if (!tt(A, E)) {
904
+ if (!v) {
905
+ var y = p.elements, A = y.reference, O = y.popper;
906
+ if (!tt(A, O)) {
907
907
  process.env.NODE_ENV !== "production" && console.error(Ze);
908
908
  return;
909
909
  }
910
910
  p.rects = {
911
- reference: wr(A, le(E), p.options.strategy === "fixed"),
912
- popper: je(E)
913
- }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(y) {
914
- return p.modifiersData[y.name] = Object.assign({}, y.data);
911
+ reference: Or(A, le(O), p.options.strategy === "fixed"),
912
+ popper: je(O)
913
+ }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(w) {
914
+ return p.modifiersData[w.name] = Object.assign({}, w.data);
915
915
  });
916
- for (var u = 0, g = 0; g < p.orderedModifiers.length; g++) {
917
- if (process.env.NODE_ENV !== "production" && (u += 1, u > 100)) {
918
- console.error(Rr);
916
+ for (var m = 0, b = 0; b < p.orderedModifiers.length; b++) {
917
+ if (process.env.NODE_ENV !== "production" && (m += 1, m > 100)) {
918
+ console.error(jr);
919
919
  break;
920
920
  }
921
921
  if (p.reset === !0) {
922
- p.reset = !1, g = -1;
922
+ p.reset = !1, b = -1;
923
923
  continue;
924
924
  }
925
- var v = p.orderedModifiers[g], O = v.fn, P = v.options, D = P === void 0 ? {} : P, S = v.name;
926
- typeof O == "function" && (p = O({
925
+ var g = p.orderedModifiers[b], E = g.fn, P = g.options, S = P === void 0 ? {} : P, D = g.name;
926
+ typeof E == "function" && (p = E({
927
927
  state: p,
928
- options: D,
929
- name: S,
930
- instance: l
928
+ options: S,
929
+ name: D,
930
+ instance: d
931
931
  }) || p);
932
932
  }
933
933
  }
934
934
  },
935
- update: Er(function() {
936
- return new Promise(function(d) {
937
- l.forceUpdate(), d(p);
935
+ update: Pr(function() {
936
+ return new Promise(function(l) {
937
+ d.forceUpdate(), l(p);
938
938
  });
939
939
  }),
940
940
  destroy: function() {
941
- m(), b = !0;
941
+ h(), v = !0;
942
942
  }
943
943
  };
944
- if (!tt(s, i))
945
- return process.env.NODE_ENV !== "production" && console.error(Ze), l;
946
- l.setOptions(c).then(function(d) {
947
- !b && c.onFirstUpdate && c.onFirstUpdate(d);
944
+ if (!tt(i, a))
945
+ return process.env.NODE_ENV !== "production" && console.error(Ze), d;
946
+ d.setOptions(f).then(function(l) {
947
+ !v && f.onFirstUpdate && f.onFirstUpdate(l);
948
948
  });
949
949
  function x() {
950
- p.orderedModifiers.forEach(function(d) {
951
- var w = d.name, A = d.options, E = A === void 0 ? {} : A, u = d.effect;
952
- if (typeof u == "function") {
953
- var g = u({
950
+ p.orderedModifiers.forEach(function(l) {
951
+ var y = l.name, A = l.options, O = A === void 0 ? {} : A, m = l.effect;
952
+ if (typeof m == "function") {
953
+ var b = m({
954
954
  state: p,
955
- name: w,
956
- instance: l,
957
- options: E
958
- }), v = function() {
955
+ name: y,
956
+ instance: d,
957
+ options: O
958
+ }), g = function() {
959
959
  };
960
- h.push(g || v);
960
+ u.push(b || g);
961
961
  }
962
962
  });
963
963
  }
964
- function m() {
965
- h.forEach(function(d) {
966
- return d();
967
- }), h = [];
964
+ function h() {
965
+ u.forEach(function(l) {
966
+ return l();
967
+ }), u = [];
968
968
  }
969
- return l;
969
+ return d;
970
970
  };
971
971
  }
972
- var jr = [Gt, vr, zt, Lt, lr, ir, mr, _t, pr], Br = /* @__PURE__ */ Tr({
973
- defaultModifiers: jr
972
+ var Nr = [Kt, hr, Gt, It, dr, pr, br, Xt, fr], Br = /* @__PURE__ */ $r({
973
+ defaultModifiers: Nr
974
974
  });
975
- const $r = {
975
+ const Cr = {
976
976
  props: {
977
977
  offset: Array,
978
978
  popper: Object,
@@ -981,6 +981,8 @@ const $r = {
981
981
  type: HTMLElement,
982
982
  required: !0
983
983
  },
984
+ title: String,
985
+ placement: String,
984
986
  top: Boolean,
985
987
  bottom: Boolean,
986
988
  left: Boolean,
@@ -1001,19 +1003,19 @@ const $r = {
1001
1003
  }
1002
1004
  },
1003
1005
  computed: {
1004
- placement() {
1005
- return this.bottom ? "bottom" : this.left ? "left" : this.right ? "right" : "top";
1006
+ computedPlacement() {
1007
+ return this.placement ? this.placement : this.bottom ? "bottom" : this.left ? "left" : this.right ? "right" : "top";
1006
1008
  },
1007
1009
  tooltipClasses() {
1008
1010
  return {
1009
1011
  show: this.currentShow,
1010
- [`bs-tooltip-${this.placement}`]: !0
1012
+ [`bs-tooltip-${this.computedPlacement}`]: !0
1011
1013
  };
1012
1014
  }
1013
1015
  },
1014
1016
  mounted() {
1015
1017
  this.popperInstance = Br(this.target, this.$el, Object.assign({
1016
- placement: this.placement,
1018
+ placement: this.computedPlacement,
1017
1019
  modifiers: [{
1018
1020
  name: "offset",
1019
1021
  options: {
@@ -1034,72 +1036,102 @@ const $r = {
1034
1036
  }
1035
1037
  }, kr = {
1036
1038
  mixins: [
1037
- $r
1039
+ Cr
1038
1040
  ]
1039
1041
  };
1040
- const Cr = (t, e) => {
1042
+ const Lr = (t, e) => {
1041
1043
  const r = t.__vccOpts || t;
1042
1044
  for (const [n, o] of e)
1043
1045
  r[n] = o;
1044
1046
  return r;
1045
- }, Nr = {
1047
+ }, Mr = {
1046
1048
  ref: "arrow",
1047
1049
  class: "tooltip-arrow"
1048
- }, Lr = {
1050
+ }, Ir = {
1049
1051
  ref: "inner",
1050
1052
  class: "tooltip-inner"
1051
1053
  };
1052
- function Mr(t, e, r, n, o, a) {
1053
- return gt(), yt("div", {
1054
- class: bt(["tooltip", t.tooltipClasses]),
1054
+ function Vr(t, e, r, n, o, s) {
1055
+ return gt(), bt("div", {
1056
+ class: yt(["tooltip", t.tooltipClasses]),
1055
1057
  role: "tooltip"
1056
1058
  }, [
1057
- Fe("div", Nr, null, 512),
1058
- Fe("div", Lr, [
1059
- wt(t.$slots, "default")
1059
+ Fe("div", Mr, null, 512),
1060
+ Fe("div", Ir, [
1061
+ wt(t.$slots, "default", {}, () => [
1062
+ xt(Ot(t.title), 1)
1063
+ ])
1060
1064
  ], 512)
1061
1065
  ], 2);
1062
1066
  }
1063
- const Ir = /* @__PURE__ */ Cr(kr, [["render", Mr]]);
1064
- function Wr(t, e = {}) {
1065
- function r(n, o = {}) {
1066
- const a = document.createElement("template"), f = n.getAttribute("data-tooltip") || "", s = xt(Ir, Object.assign({
1067
- target: n,
1067
+ const Wr = /* @__PURE__ */ Lr(kr, [["render", Vr]]);
1068
+ function qr(t, e = {
1069
+ delay: void 0,
1070
+ prefix: "data-tooltip",
1071
+ triggers: {
1072
+ open: ["mouseover:750", "focus"],
1073
+ close: ["mouseout:1000", "blur"]
1074
+ }
1075
+ }) {
1076
+ const r = e.prefix.replace(/[-]+$/, ""), n = new RegExp(`^${r}-`);
1077
+ function o(i) {
1078
+ return Array.from(i.attributes).map((a) => [a.name, a.value]).filter(([a]) => a === "title" || a.match(n)).map(([a, f]) => [a.replace(new RegExp(n), ""), f]).reduce((a, f) => Object.assign(a, { [f[0]]: f[1] }), {});
1079
+ }
1080
+ function s(i, a = {}) {
1081
+ const f = document.createElement("template"), p = Et(Wr, Object.assign({
1082
+ target: i,
1068
1083
  show: !0
1069
- }, o), () => f);
1070
- Ot(s, a);
1071
- const [i] = [...a.children];
1072
- return document.body.append(i), {
1073
- el: i,
1074
- vnode: s,
1075
- close() {
1076
- var c;
1077
- (c = s.component) == null || c.ctx.close(), setTimeout(() => i.remove(), 150);
1078
- }
1084
+ }, a));
1085
+ At(p, f);
1086
+ const [u] = [...f.children];
1087
+ return document.body.append(u), () => {
1088
+ var v;
1089
+ (v = p.component) == null || v.ctx.close(), setTimeout(() => u.remove(), 150);
1079
1090
  };
1080
1091
  }
1092
+ function c(i, a = {}) {
1093
+ const f = Object.assign({
1094
+ title: i.getAttribute(r)
1095
+ }, a, o(i));
1096
+ if (!f.title || i.hasAttribute(`${r}-id`))
1097
+ return;
1098
+ const p = Math.random().toString(36).slice(2, 7);
1099
+ let u, v;
1100
+ i.setAttribute(`${r}-id`, p), i.removeAttribute("title");
1101
+ function d(l = 0) {
1102
+ clearTimeout(v), u || (v = setTimeout(() => {
1103
+ u = s(i, f);
1104
+ }, l));
1105
+ }
1106
+ function x(l = 0) {
1107
+ clearTimeout(v), u && (v = setTimeout(() => {
1108
+ u && u(), u = null;
1109
+ }, l));
1110
+ }
1111
+ function h(l, y) {
1112
+ const [A, O] = l.split(":");
1113
+ i.addEventListener(A, () => y(Number(O || 0)));
1114
+ }
1115
+ e.triggers.open.map((l) => h(l, d)), e.triggers.close.map((l) => h(l, x));
1116
+ }
1081
1117
  t.mixin({
1082
- created() {
1083
- console.log("created");
1118
+ mounted() {
1119
+ let i = this.$el;
1120
+ this.$el instanceof Text && (i = this.$el.parentNode), i instanceof HTMLElement && c(i);
1121
+ const a = document.createTreeWalker(
1122
+ i,
1123
+ NodeFilter.SHOW_ALL,
1124
+ (f) => f instanceof Element ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT
1125
+ );
1126
+ for (; a.nextNode(); )
1127
+ a.currentNode instanceof Element && c(a.currentNode);
1084
1128
  }
1085
- }), t.directive("tooltip", (n, o) => {
1086
- n.getAttribute("data-tooltip") || n.setAttribute("data-tooltip", n.getAttribute("title")), n.removeAttribute("title"), n.addEventListener("mouseover", (a) => {
1087
- clearTimeout(n.timer), n.tooltip || (n.timer = setTimeout(() => {
1088
- n.tooltip = r(n, {
1089
- top: o.modifiers.top,
1090
- bottom: o.modifiers.bottom,
1091
- left: o.modifiers.left,
1092
- right: o.modifiers.right
1093
- });
1094
- }, 1e3));
1095
- }), n.addEventListener("mouseout", (a) => {
1096
- clearTimeout(n.timer), n.tooltip && (n.timer = setTimeout(() => {
1097
- n.tooltip && n.tooltip.close(), n.tooltip = null;
1098
- }, 1e3));
1099
- });
1100
- });
1129
+ }), t.directive("tooltip", (i, a) => c(
1130
+ i,
1131
+ Object.assign({}, a.modifiers, a.value)
1132
+ ));
1101
1133
  }
1102
1134
  export {
1103
- Ir as Tooltip,
1104
- Wr as TooltipPlugin
1135
+ Wr as Tooltip,
1136
+ qr as TooltipPlugin
1105
1137
  };