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

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.
Files changed (55) hide show
  1. package/dist/Tooltip.vue.d.ts +4 -0
  2. package/dist/TooltipPlugin.d.ts +2 -0
  3. package/dist/tooltip.css +1 -0
  4. package/dist/tooltip.es.js +1105 -0
  5. package/dist/tooltip.umd.js +5 -0
  6. package/package.json +38 -36
  7. package/src/Popper.js +33 -21
  8. package/src/Tooltip.vue +2 -1
  9. package/src/TooltipPlugin.ts +73 -0
  10. package/tailwindcss/index.js +18 -20
  11. package/.eslintrc.js +0 -53
  12. package/babel.config.js +0 -5
  13. package/dist/Tooltip.common.js +0 -6496
  14. package/dist/Tooltip.common.js.map +0 -1
  15. package/dist/Tooltip.css +0 -193
  16. package/dist/Tooltip.css.map +0 -1
  17. package/dist/Tooltip.umd.js +0 -6506
  18. package/dist/Tooltip.umd.js.map +0 -1
  19. package/dist/Tooltip.umd.min.js +0 -2
  20. package/dist/Tooltip.umd.min.js.map +0 -1
  21. package/dist/demo.html +0 -10
  22. package/docs/.vuepress/config.js +0 -44
  23. package/docs/.vuepress/dist/404.html +0 -19
  24. package/docs/.vuepress/dist/assets/css/0.styles.275ee968.css +0 -1
  25. package/docs/.vuepress/dist/assets/img/search.83621669.svg +0 -1
  26. package/docs/.vuepress/dist/assets/js/10.5d93d289.js +0 -1
  27. package/docs/.vuepress/dist/assets/js/11.97ab3884.js +0 -1
  28. package/docs/.vuepress/dist/assets/js/2.f3d148c3.js +0 -1
  29. package/docs/.vuepress/dist/assets/js/3.81681fff.js +0 -1
  30. package/docs/.vuepress/dist/assets/js/4.82fa7382.js +0 -1
  31. package/docs/.vuepress/dist/assets/js/5.3dae6ad4.js +0 -1
  32. package/docs/.vuepress/dist/assets/js/6.6a04f815.js +0 -1
  33. package/docs/.vuepress/dist/assets/js/7.c033cb49.js +0 -1
  34. package/docs/.vuepress/dist/assets/js/8.6d6eb599.js +0 -1
  35. package/docs/.vuepress/dist/assets/js/9.eaefe866.js +0 -1
  36. package/docs/.vuepress/dist/assets/js/app.7ed065d3.js +0 -13
  37. package/docs/.vuepress/dist/examples/index.html +0 -21
  38. package/docs/.vuepress/dist/examples/test.html +0 -17
  39. package/docs/.vuepress/dist/index.html +0 -53
  40. package/docs/.vuepress/dist/options.html +0 -41
  41. package/docs/.vuepress/dist/tailwindcss.html +0 -85
  42. package/docs/README.md +0 -23
  43. package/docs/examples/README.md +0 -3
  44. package/docs/options.md +0 -46
  45. package/docs/tailwindcss.md +0 -76
  46. package/index.html +0 -50
  47. package/index.js +0 -5
  48. package/main.js +0 -8
  49. package/postcss.config.js +0 -1
  50. package/public/favicon.ico +0 -0
  51. package/public/index.html +0 -17
  52. package/src/TooltipPlugin.js +0 -87
  53. package/src/css/Tooltip.css +0 -2
  54. package/tailwind.config.js +0 -12
  55. package/vue.config.js +0 -14
@@ -0,0 +1,1105 @@
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) {
3
+ return t.concat([e + "-" + Z, e + "-" + pe]);
4
+ }, []), nt = /* @__PURE__ */ [].concat(ce, [we]).reduce(function(t, e) {
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];
7
+ function W(t) {
8
+ return t ? (t.nodeName || "").toLowerCase() : null;
9
+ }
10
+ function L(t) {
11
+ if (t == null)
12
+ return window;
13
+ if (t.toString() !== "[object Window]") {
14
+ var e = t.ownerDocument;
15
+ return e && e.defaultView || window;
16
+ }
17
+ return t;
18
+ }
19
+ function K(t) {
20
+ var e = L(t).Element;
21
+ return t instanceof e || t instanceof Element;
22
+ }
23
+ function k(t) {
24
+ var e = L(t).HTMLElement;
25
+ return t instanceof e || t instanceof HTMLElement;
26
+ }
27
+ function Te(t) {
28
+ if (typeof ShadowRoot > "u")
29
+ return !1;
30
+ var e = L(t).ShadowRoot;
31
+ return t instanceof e || t instanceof ShadowRoot;
32
+ }
33
+ function Ct(t) {
34
+ var e = t.state;
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);
40
+ }));
41
+ });
42
+ }
43
+ function Nt(t) {
44
+ var e = t.state, r = {
45
+ popper: {
46
+ position: e.options.strategy,
47
+ left: "0",
48
+ top: "0",
49
+ margin: "0"
50
+ },
51
+ arrow: {
52
+ position: "absolute"
53
+ },
54
+ reference: {}
55
+ };
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
+ 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;
60
+ }, {});
61
+ !k(o) || !W(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(i) {
62
+ o.removeAttribute(i);
63
+ }));
64
+ });
65
+ };
66
+ }
67
+ const Lt = {
68
+ name: "applyStyles",
69
+ enabled: !0,
70
+ phase: "write",
71
+ fn: Ct,
72
+ effect: Nt,
73
+ requires: ["computeStyles"]
74
+ };
75
+ function I(t) {
76
+ return t.split("-")[0];
77
+ }
78
+ var J = Math.max, be = Math.min, ee = Math.round;
79
+ function Se() {
80
+ var t = navigator.userAgentData;
81
+ return t != null && t.brands ? t.brands.map(function(e) {
82
+ return e.brand + "/" + e.version;
83
+ }).join(" ") : navigator.userAgent;
84
+ }
85
+ function ot() {
86
+ return !/^((?!chrome|android).)*safari/i.test(Se());
87
+ }
88
+ function te(t, e, r) {
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;
93
+ return {
94
+ width: h,
95
+ height: b,
96
+ top: p,
97
+ right: c + h,
98
+ bottom: p + b,
99
+ left: c,
100
+ x: c,
101
+ y: p
102
+ };
103
+ }
104
+ function je(t) {
105
+ var e = te(t), r = t.offsetWidth, n = t.offsetHeight;
106
+ return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
107
+ x: t.offsetLeft,
108
+ y: t.offsetTop,
109
+ width: r,
110
+ height: n
111
+ };
112
+ }
113
+ function at(t, e) {
114
+ var r = e.getRootNode && e.getRootNode();
115
+ if (t.contains(e))
116
+ return !0;
117
+ if (r && Te(r)) {
118
+ var n = e;
119
+ do {
120
+ if (n && t.isSameNode(n))
121
+ return !0;
122
+ n = n.parentNode || n.host;
123
+ } while (n);
124
+ }
125
+ return !1;
126
+ }
127
+ function V(t) {
128
+ return L(t).getComputedStyle(t);
129
+ }
130
+ function Mt(t) {
131
+ return ["table", "td", "th"].indexOf(W(t)) >= 0;
132
+ }
133
+ function _(t) {
134
+ return ((K(t) ? t.ownerDocument : t.document) || window.document).documentElement;
135
+ }
136
+ function xe(t) {
137
+ return W(t) === "html" ? t : t.assignedSlot || t.parentNode || (Te(t) ? t.host : null) || _(t);
138
+ }
139
+ function Ye(t) {
140
+ return !k(t) || V(t).position === "fixed" ? null : t.offsetParent;
141
+ }
142
+ function It(t) {
143
+ var e = /firefox/i.test(Se()), r = /Trident/i.test(Se());
144
+ if (r && k(t)) {
145
+ var n = V(t);
146
+ if (n.position === "fixed")
147
+ return null;
148
+ }
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")
153
+ return o;
154
+ o = o.parentNode;
155
+ }
156
+ return null;
157
+ }
158
+ function le(t) {
159
+ for (var e = L(t), r = Ye(t); r && Mt(r) && V(r).position === "static"; )
160
+ r = Ye(r);
161
+ return r && (W(r) === "html" || W(r) === "body" && V(r).position === "static") ? e : r || It(t) || e;
162
+ }
163
+ function Be(t) {
164
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
165
+ }
166
+ function ie(t, e, r) {
167
+ return J(t, be(e, r));
168
+ }
169
+ function Vt(t, e, r) {
170
+ var n = ie(t, e, r);
171
+ return n > r ? r : n;
172
+ }
173
+ function it() {
174
+ return {
175
+ top: 0,
176
+ right: 0,
177
+ bottom: 0,
178
+ left: 0
179
+ };
180
+ }
181
+ function st(t) {
182
+ return Object.assign({}, it(), t);
183
+ }
184
+ function pt(t, e) {
185
+ return e.reduce(function(r, n) {
186
+ return r[n] = t, r;
187
+ }, {});
188
+ }
189
+ var Wt = function(e, r) {
190
+ return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
191
+ placement: r.placement
192
+ })) : e, st(typeof e != "number" ? e : pt(e, ce));
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);
199
+ }
200
+ }
201
+ function Ht(t) {
202
+ var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
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)) {
205
+ process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
206
+ return;
207
+ }
208
+ e.elements.arrow = o;
209
+ }
210
+ }
211
+ const _t = {
212
+ name: "arrow",
213
+ enabled: !0,
214
+ phase: "main",
215
+ fn: qt,
216
+ effect: Ht,
217
+ requires: ["popperOffsets"],
218
+ requiresIfExists: ["preventOverflow"]
219
+ };
220
+ function re(t) {
221
+ return t.split("-")[1];
222
+ }
223
+ var Ft = {
224
+ top: "auto",
225
+ right: "auto",
226
+ bottom: "auto",
227
+ left: "auto"
228
+ };
229
+ function Xt(t) {
230
+ var e = t.x, r = t.y, n = window, o = n.devicePixelRatio || 1;
231
+ return {
232
+ x: ee(e * o) / o || 0,
233
+ y: ee(r * o) / o || 0
234
+ };
235
+ }
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
240
+ }) : {
241
+ x: l,
242
+ y: m
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;
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;
257
+ }
258
+ }
259
+ var y = Object.assign({
260
+ position: s
261
+ }, c && Ft), R = p === !0 ? Xt({
262
+ x: l,
263
+ y: m
264
+ }) : {
265
+ x: l,
266
+ y: m
267
+ };
268
+ if (l = R.x, m = R.y, i) {
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));
271
+ }
272
+ return Object.assign({}, y, (e = {}, e[u] = A ? m + "px" : "", e[E] = w ? l + "px" : "", e.transform = "", e));
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;
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;
280
+ }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
281
+
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.", `
283
+
284
+ `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
285
+ }
286
+ var p = {
287
+ placement: I(e.placement),
288
+ variation: re(e.placement),
289
+ popper: e.elements.popper,
290
+ popperRect: e.rects.popper,
291
+ gpuAcceleration: o,
292
+ isFixed: e.options.strategy === "fixed"
293
+ };
294
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ze(Object.assign({}, p, {
295
+ offsets: e.modifiersData.popperOffsets,
296
+ position: e.options.strategy,
297
+ adaptive: f,
298
+ roundOffsets: i
299
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ze(Object.assign({}, p, {
300
+ offsets: e.modifiersData.arrow,
301
+ position: "absolute",
302
+ adaptive: !1,
303
+ roundOffsets: i
304
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
305
+ "data-popper-placement": e.placement
306
+ });
307
+ }
308
+ const zt = {
309
+ name: "computeStyles",
310
+ enabled: !0,
311
+ phase: "beforeWrite",
312
+ fn: Yt,
313
+ data: {}
314
+ };
315
+ var ge = {
316
+ passive: !0
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) {
321
+ p.addEventListener("scroll", r.update, ge);
322
+ }), s && i.addEventListener("resize", r.update, ge), function() {
323
+ a && c.forEach(function(p) {
324
+ p.removeEventListener("scroll", r.update, ge);
325
+ }), s && i.removeEventListener("resize", r.update, ge);
326
+ };
327
+ }
328
+ const Gt = {
329
+ name: "eventListeners",
330
+ enabled: !0,
331
+ phase: "write",
332
+ fn: function() {
333
+ },
334
+ effect: Ut,
335
+ data: {}
336
+ };
337
+ var Jt = {
338
+ left: "right",
339
+ right: "left",
340
+ bottom: "top",
341
+ top: "bottom"
342
+ };
343
+ function ye(t) {
344
+ return t.replace(/left|right|bottom|top/g, function(e) {
345
+ return Jt[e];
346
+ });
347
+ }
348
+ var Kt = {
349
+ start: "end",
350
+ end: "start"
351
+ };
352
+ function Ue(t) {
353
+ return t.replace(/start|end/g, function(e) {
354
+ return Kt[e];
355
+ });
356
+ }
357
+ function $e(t) {
358
+ var e = L(t), r = e.pageXOffset, n = e.pageYOffset;
359
+ return {
360
+ scrollLeft: r,
361
+ scrollTop: n
362
+ };
363
+ }
364
+ function ke(t) {
365
+ return te(_(t)).left + $e(t).scrollLeft;
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;
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);
373
+ }
374
+ return {
375
+ width: a,
376
+ height: f,
377
+ x: s + ke(t),
378
+ y: i
379
+ };
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
388
+ };
389
+ }
390
+ function Ce(t) {
391
+ var e = V(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
392
+ return /auto|scroll|overlay|hidden/.test(r + o + n);
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));
396
+ }
397
+ function se(t, e) {
398
+ var r;
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)));
402
+ }
403
+ function Re(t) {
404
+ return Object.assign({}, t, {
405
+ left: t.x,
406
+ top: t.y,
407
+ right: t.x + t.width,
408
+ bottom: t.y + t.height
409
+ });
410
+ }
411
+ function er(t, e) {
412
+ var r = te(t, !1, e === "fixed");
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
+ }
415
+ function Ge(t, e, r) {
416
+ return e === rt ? Re(Qt(t, r)) : K(e) ? er(e, r) : Re(Zt(_(t)));
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;
420
+ return K(n) ? e.filter(function(o) {
421
+ return K(o) && at(o, n) && W(o) !== "body";
422
+ }) : [];
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;
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;
433
+ switch (o) {
434
+ case j:
435
+ i = {
436
+ x: f,
437
+ y: e.y - r.height
438
+ };
439
+ break;
440
+ case C:
441
+ i = {
442
+ x: f,
443
+ y: e.y + e.height
444
+ };
445
+ break;
446
+ case N:
447
+ i = {
448
+ x: e.x + e.width,
449
+ y: s
450
+ };
451
+ break;
452
+ case B:
453
+ i = {
454
+ x: e.x - r.width,
455
+ y: s
456
+ };
457
+ break;
458
+ default:
459
+ i = {
460
+ x: e.x,
461
+ y: e.y
462
+ };
463
+ }
464
+ var c = o ? Be(o) : null;
465
+ if (c != null) {
466
+ var p = c === "y" ? "height" : "width";
467
+ switch (a) {
468
+ case Z:
469
+ i[c] = i[c] - (e[p] / 2 - r[p] / 2);
470
+ break;
471
+ case pe:
472
+ i[c] = i[c] + (e[p] / 2 - r[p] / 2);
473
+ break;
474
+ }
475
+ }
476
+ return i;
477
+ }
478
+ function fe(t, e) {
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,
483
+ strategy: "absolute",
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;
496
+ });
497
+ }
498
+ return S;
499
+ }
500
+ function nr(t, e) {
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) {
503
+ return re(x) === p;
504
+ }) : ce, b = h.filter(function(x) {
505
+ return c.indexOf(x) >= 0;
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,
511
+ boundary: o,
512
+ rootBoundary: a,
513
+ padding: f
514
+ })[I(m)], x;
515
+ }, {});
516
+ return Object.keys(l).sort(function(x, m) {
517
+ return l[x] - l[m];
518
+ });
519
+ }
520
+ function or(t) {
521
+ if (I(t) === we)
522
+ return [];
523
+ var e = ye(t);
524
+ return [Ue(t), e, Ue(e)];
525
+ }
526
+ function ar(t) {
527
+ var e = t.state, r = t.options, n = t.name;
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,
532
+ boundary: p,
533
+ rootBoundary: h,
534
+ padding: c,
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,
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) {
549
+ return Q;
550
+ })) {
551
+ D = y, P = !1;
552
+ break;
553
+ }
554
+ O.set(y, Y);
555
+ }
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);
560
+ if (z)
561
+ return z.slice(0, q).every(function(Ee) {
562
+ return Ee;
563
+ });
564
+ });
565
+ if (oe)
566
+ return D = oe, "break";
567
+ }, ne = ve; ne > 0; ne--) {
568
+ var de = Oe(ne);
569
+ if (de === "break")
570
+ break;
571
+ }
572
+ e.placement !== D && (e.modifiersData[n]._skip = !0, e.placement = D, e.reset = !0);
573
+ }
574
+ }
575
+ const ir = {
576
+ name: "flip",
577
+ enabled: !0,
578
+ phase: "main",
579
+ fn: ar,
580
+ requiresIfExists: ["offset"],
581
+ data: {
582
+ _skip: !1
583
+ }
584
+ };
585
+ function Je(t, e, r) {
586
+ return r === void 0 && (r = {
587
+ x: 0,
588
+ y: 0
589
+ }), {
590
+ top: t.top - e.height - r.y,
591
+ right: t.right - e.width + r.x,
592
+ bottom: t.bottom - e.height + r.y,
593
+ left: t.left - e.width - r.x
594
+ };
595
+ }
596
+ function Ke(t) {
597
+ return [j, N, C, B].some(function(e) {
598
+ return t[e] >= 0;
599
+ });
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, {
603
+ elementContext: "reference"
604
+ }), s = fe(e, {
605
+ altBoundary: !0
606
+ }), i = Je(f, n), c = Je(s, o, a), p = Ke(i), h = Ke(c);
607
+ e.modifiersData[r] = {
608
+ referenceClippingOffsets: i,
609
+ popperEscapeOffsets: c,
610
+ isReferenceHidden: p,
611
+ hasPopperEscaped: h
612
+ }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
613
+ "data-popper-reference-hidden": p,
614
+ "data-popper-escaped": h
615
+ });
616
+ }
617
+ const pr = {
618
+ name: "hide",
619
+ enabled: !0,
620
+ phase: "main",
621
+ requiresIfExists: ["preventOverflow"],
622
+ fn: sr
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, {
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
631
+ } : {
632
+ x: f,
633
+ y: s
634
+ };
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;
641
+ }
642
+ const lr = {
643
+ name: "offset",
644
+ enabled: !0,
645
+ phase: "main",
646
+ requires: ["popperOffsets"],
647
+ fn: cr
648
+ };
649
+ function ur(t) {
650
+ var e = t.state, r = t.name;
651
+ e.modifiersData[r] = ct({
652
+ reference: e.rects.reference,
653
+ element: e.rects.popper,
654
+ strategy: "absolute",
655
+ placement: e.placement
656
+ });
657
+ }
658
+ const vr = {
659
+ name: "popperOffsets",
660
+ enabled: !0,
661
+ phase: "read",
662
+ fn: ur,
663
+ data: {}
664
+ };
665
+ function dr(t) {
666
+ return t === "x" ? "y" : "x";
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,
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, {
675
+ placement: e.placement
676
+ })) : m, S = typeof D == "number" ? {
677
+ mainAxis: D,
678
+ altAxis: D
679
+ } : Object.assign({
680
+ mainAxis: 0,
681
+ altAxis: 0
682
+ }, D), y = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, R = {
683
+ x: 0,
684
+ y: 0
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) : {
689
+ width: 0,
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;
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;
697
+ }
698
+ e.modifiersData[n] = R;
699
+ }
700
+ }
701
+ const mr = {
702
+ name: "preventOverflow",
703
+ enabled: !0,
704
+ phase: "main",
705
+ fn: hr,
706
+ requiresIfExists: ["offset"]
707
+ };
708
+ function gr(t) {
709
+ return {
710
+ scrollLeft: t.scrollLeft,
711
+ scrollTop: t.scrollTop
712
+ };
713
+ }
714
+ function yr(t) {
715
+ return t === L(t) || !k(t) ? $e(t) : gr(t);
716
+ }
717
+ function br(t) {
718
+ var e = t.getBoundingClientRect(), r = ee(e.width) / t.offsetWidth || 1, n = ee(e.height) / t.offsetHeight || 1;
719
+ return r !== 1 || n !== 1;
720
+ }
721
+ function wr(t, e, r) {
722
+ r === void 0 && (r = !1);
723
+ var n = k(e), o = k(e) && br(e), a = _(e), f = te(t, o, r), s = {
724
+ scrollLeft: 0,
725
+ scrollTop: 0
726
+ }, i = {
727
+ x: 0,
728
+ y: 0
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
735
+ };
736
+ }
737
+ function xr(t) {
738
+ var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
739
+ t.forEach(function(a) {
740
+ e.set(a.name, a);
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);
749
+ }
750
+ }), n.push(a);
751
+ }
752
+ return t.forEach(function(a) {
753
+ r.has(a.name) || o(a);
754
+ }), n;
755
+ }
756
+ function Or(t) {
757
+ var e = xr(t);
758
+ return De.reduce(function(r, n) {
759
+ return r.concat(e.filter(function(o) {
760
+ return o.phase === n;
761
+ }));
762
+ }, []);
763
+ }
764
+ function Er(t) {
765
+ var e;
766
+ return function() {
767
+ return e || (e = new Promise(function(r) {
768
+ Promise.resolve().then(function() {
769
+ e = void 0, r(t());
770
+ });
771
+ })), e;
772
+ };
773
+ }
774
+ function H(t) {
775
+ for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
776
+ r[n - 1] = arguments[n];
777
+ return [].concat(r).reduce(function(o, a) {
778
+ return o.replace(/%s/, a);
779
+ }, t);
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) {
783
+ t.forEach(function(e) {
784
+ [].concat(Object.keys(e), Qe).filter(function(r, n, o) {
785
+ return o.indexOf(r) === n;
786
+ }).forEach(function(r) {
787
+ switch (r) {
788
+ case "name":
789
+ typeof e.name != "string" && console.error(H(G, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
790
+ break;
791
+ case "enabled":
792
+ typeof e.enabled != "boolean" && console.error(H(G, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
793
+ break;
794
+ case "phase":
795
+ De.indexOf(e.phase) < 0 && console.error(H(G, e.name, '"phase"', "either " + De.join(", "), '"' + String(e.phase) + '"'));
796
+ break;
797
+ case "fn":
798
+ typeof e.fn != "function" && console.error(H(G, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
799
+ break;
800
+ case "effect":
801
+ e.effect != null && typeof e.effect != "function" && console.error(H(G, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
802
+ break;
803
+ case "requires":
804
+ e.requires != null && !Array.isArray(e.requires) && console.error(H(G, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
805
+ break;
806
+ case "requiresIfExists":
807
+ Array.isArray(e.requiresIfExists) || console.error(H(G, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
808
+ break;
809
+ case "options":
810
+ case "data":
811
+ break;
812
+ default:
813
+ console.error('PopperJS: an invalid property has been provided to the "' + e.name + '" modifier, valid properties are ' + Qe.map(function(n) {
814
+ return '"' + n + '"';
815
+ }).join(", ") + '; but "' + r + '" was provided.');
816
+ }
817
+ e.requires && e.requires.forEach(function(n) {
818
+ t.find(function(o) {
819
+ return o.name === n;
820
+ }) == null && console.error(H(Ar, String(e.name), n, n));
821
+ });
822
+ });
823
+ });
824
+ }
825
+ function Dr(t, e) {
826
+ var r = /* @__PURE__ */ new Set();
827
+ return t.filter(function(n) {
828
+ var o = e(n);
829
+ if (!r.has(o))
830
+ return r.add(o), !0;
831
+ });
832
+ }
833
+ function Sr(t) {
834
+ var e = t.reduce(function(r, n) {
835
+ var o = r[n.name];
836
+ return r[n.name] = o ? Object.assign({}, o, n, {
837
+ options: Object.assign({}, o.options, n.options),
838
+ data: Object.assign({}, o.data, n.data)
839
+ }) : n, r;
840
+ }, {});
841
+ return Object.keys(e).map(function(r) {
842
+ return e[r];
843
+ });
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 = {
846
+ placement: "bottom",
847
+ modifiers: [],
848
+ strategy: "absolute"
849
+ };
850
+ function tt() {
851
+ for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
852
+ e[r] = arguments[r];
853
+ return !e.some(function(n) {
854
+ return !(n && typeof n.getBoundingClientRect == "function");
855
+ });
856
+ }
857
+ function Tr(t) {
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);
862
+ var p = {
863
+ placement: "bottom",
864
+ orderedModifiers: [],
865
+ options: Object.assign({}, et, a),
866
+ modifiersData: {},
867
+ elements: {
868
+ reference: s,
869
+ popper: i
870
+ },
871
+ attributes: {},
872
+ styles: {}
873
+ }, h = [], b = !1, l = {
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)
880
+ };
881
+ var E = Or(Sr([].concat(n, p.options.modifiers)));
882
+ if (p.orderedModifiers = E.filter(function(y) {
883
+ return y.enabled;
884
+ }), process.env.NODE_ENV !== "production") {
885
+ var u = Dr([].concat(E, p.options.modifiers), function(y) {
886
+ var R = y.name;
887
+ return R;
888
+ });
889
+ if (Pr(u), I(p.options.placement) === we) {
890
+ var g = p.orderedModifiers.find(function(y) {
891
+ var R = y.name;
892
+ return R === "flip";
893
+ });
894
+ g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
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);
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
+ }
901
+ return x(), l.update();
902
+ },
903
+ forceUpdate: function() {
904
+ if (!b) {
905
+ var w = p.elements, A = w.reference, E = w.popper;
906
+ if (!tt(A, E)) {
907
+ process.env.NODE_ENV !== "production" && console.error(Ze);
908
+ return;
909
+ }
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);
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);
919
+ break;
920
+ }
921
+ if (p.reset === !0) {
922
+ p.reset = !1, g = -1;
923
+ continue;
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({
927
+ state: p,
928
+ options: D,
929
+ name: S,
930
+ instance: l
931
+ }) || p);
932
+ }
933
+ }
934
+ },
935
+ update: Er(function() {
936
+ return new Promise(function(d) {
937
+ l.forceUpdate(), d(p);
938
+ });
939
+ }),
940
+ destroy: function() {
941
+ m(), b = !0;
942
+ }
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);
948
+ });
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({
954
+ state: p,
955
+ name: w,
956
+ instance: l,
957
+ options: E
958
+ }), v = function() {
959
+ };
960
+ h.push(g || v);
961
+ }
962
+ });
963
+ }
964
+ function m() {
965
+ h.forEach(function(d) {
966
+ return d();
967
+ }), h = [];
968
+ }
969
+ return l;
970
+ };
971
+ }
972
+ var jr = [Gt, vr, zt, Lt, lr, ir, mr, _t, pr], Br = /* @__PURE__ */ Tr({
973
+ defaultModifiers: jr
974
+ });
975
+ const $r = {
976
+ props: {
977
+ offset: Array,
978
+ popper: Object,
979
+ show: Boolean,
980
+ target: {
981
+ type: HTMLElement,
982
+ required: !0
983
+ },
984
+ top: Boolean,
985
+ bottom: Boolean,
986
+ left: Boolean,
987
+ right: Boolean
988
+ },
989
+ data() {
990
+ return {
991
+ currentShow: !1,
992
+ popperInstance: null
993
+ };
994
+ },
995
+ methods: {
996
+ open() {
997
+ this.currentShow = !0;
998
+ },
999
+ close() {
1000
+ this.currentShow = !1;
1001
+ }
1002
+ },
1003
+ computed: {
1004
+ placement() {
1005
+ return this.bottom ? "bottom" : this.left ? "left" : this.right ? "right" : "top";
1006
+ },
1007
+ tooltipClasses() {
1008
+ return {
1009
+ show: this.currentShow,
1010
+ [`bs-tooltip-${this.placement}`]: !0
1011
+ };
1012
+ }
1013
+ },
1014
+ mounted() {
1015
+ this.popperInstance = Br(this.target, this.$el, Object.assign({
1016
+ placement: this.placement,
1017
+ modifiers: [{
1018
+ name: "offset",
1019
+ options: {
1020
+ offset: [0, 6]
1021
+ }
1022
+ }, {
1023
+ name: "arrow",
1024
+ options: {
1025
+ element: this.$refs.arrow
1026
+ }
1027
+ }]
1028
+ }, this.popper)), this.$nextTick(() => {
1029
+ this.currentShow = this.show;
1030
+ });
1031
+ },
1032
+ beforeDestroy() {
1033
+ this.popperInstance && this.popperInstance.destroy();
1034
+ }
1035
+ }, kr = {
1036
+ mixins: [
1037
+ $r
1038
+ ]
1039
+ };
1040
+ const Cr = (t, e) => {
1041
+ const r = t.__vccOpts || t;
1042
+ for (const [n, o] of e)
1043
+ r[n] = o;
1044
+ return r;
1045
+ }, Nr = {
1046
+ ref: "arrow",
1047
+ class: "tooltip-arrow"
1048
+ }, Lr = {
1049
+ ref: "inner",
1050
+ class: "tooltip-inner"
1051
+ };
1052
+ function Mr(t, e, r, n, o, a) {
1053
+ return gt(), yt("div", {
1054
+ class: bt(["tooltip", t.tooltipClasses]),
1055
+ role: "tooltip"
1056
+ }, [
1057
+ Fe("div", Nr, null, 512),
1058
+ Fe("div", Lr, [
1059
+ wt(t.$slots, "default")
1060
+ ], 512)
1061
+ ], 2);
1062
+ }
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,
1068
+ 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
+ }
1079
+ };
1080
+ }
1081
+ t.mixin({
1082
+ created() {
1083
+ console.log("created");
1084
+ }
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
+ });
1101
+ }
1102
+ export {
1103
+ Ir as Tooltip,
1104
+ Wr as TooltipPlugin
1105
+ };