@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.
- package/dist/TooltipPlugin.d.ts +8 -1
- package/dist/tooltip.es.js +466 -434
- package/dist/tooltip.umd.js +2 -2
- package/index.ts +7 -0
- package/package.json +8 -6
- package/src/Popper.js +11 -3
- package/src/Tooltip.vue +1 -1
- package/src/TooltipPlugin.ts +113 -49
- package/tailwindcss/index.js +4 -4
- package/tailwindcss/safelist.js +12 -0
package/dist/tooltip.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock as gt, createElementBlock as
|
|
2
|
-
var j = "top", C = "bottom",
|
|
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(
|
|
4
|
+
}, []), nt = /* @__PURE__ */ [].concat(fe, [we]).reduce(function(t, e) {
|
|
5
5
|
return t.concat([e, e + "-" + Z, e + "-" + pe]);
|
|
6
|
-
}, []),
|
|
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
|
|
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
|
|
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] || {},
|
|
37
|
-
!
|
|
38
|
-
var
|
|
39
|
-
|
|
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
|
|
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],
|
|
59
|
-
return
|
|
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
|
-
!
|
|
62
|
-
o.removeAttribute(
|
|
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
|
|
67
|
+
const It = {
|
|
68
68
|
name: "applyStyles",
|
|
69
69
|
enabled: !0,
|
|
70
70
|
phase: "write",
|
|
71
|
-
fn:
|
|
72
|
-
effect:
|
|
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,
|
|
79
|
-
function
|
|
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(
|
|
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,
|
|
91
|
-
e &&
|
|
92
|
-
var
|
|
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:
|
|
95
|
-
height:
|
|
94
|
+
width: u,
|
|
95
|
+
height: v,
|
|
96
96
|
top: p,
|
|
97
|
-
right:
|
|
98
|
-
bottom: p +
|
|
99
|
-
left:
|
|
100
|
-
x:
|
|
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
|
|
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 !
|
|
140
|
+
return !B(t) || V(t).position === "fixed" ? null : t.offsetParent;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
var e = /firefox/i.test(
|
|
144
|
-
if (r &&
|
|
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);
|
|
151
|
-
var
|
|
152
|
-
if (
|
|
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 &&
|
|
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 ||
|
|
161
|
+
return r && (W(r) === "html" || W(r) === "body" && V(r).position === "static") ? e : r || Wt(t) || e;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
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,
|
|
167
|
+
return J(t, ye(e, r));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
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
|
|
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,
|
|
192
|
+
})) : e, st(typeof e != "number" ? e : pt(e, fe));
|
|
193
193
|
};
|
|
194
|
-
function
|
|
195
|
-
var e, r = t.state, n = t.name, o = t.options,
|
|
196
|
-
if (!(!
|
|
197
|
-
var
|
|
198
|
-
r.modifiersData[n] = (e = {}, e[P] =
|
|
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
|
|
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" && (
|
|
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
|
|
211
|
+
const Xt = {
|
|
212
212
|
name: "arrow",
|
|
213
213
|
enabled: !0,
|
|
214
214
|
phase: "main",
|
|
215
|
-
fn:
|
|
216
|
-
effect:
|
|
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
|
|
223
|
+
var Yt = {
|
|
224
224
|
top: "auto",
|
|
225
225
|
right: "auto",
|
|
226
226
|
bottom: "auto",
|
|
227
227
|
left: "auto"
|
|
228
228
|
};
|
|
229
|
-
function
|
|
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,
|
|
238
|
-
x:
|
|
239
|
-
y:
|
|
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:
|
|
242
|
-
y:
|
|
241
|
+
x: d,
|
|
242
|
+
y: h
|
|
243
243
|
};
|
|
244
|
-
|
|
245
|
-
var
|
|
246
|
-
if (
|
|
247
|
-
var
|
|
248
|
-
if (
|
|
249
|
-
|
|
250
|
-
var
|
|
251
|
-
|
|
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 ===
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
-
|
|
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
|
|
260
|
-
position:
|
|
261
|
-
},
|
|
262
|
-
x:
|
|
263
|
-
y:
|
|
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:
|
|
266
|
-
y:
|
|
265
|
+
x: d,
|
|
266
|
+
y: h
|
|
267
267
|
};
|
|
268
|
-
if (
|
|
268
|
+
if (d = R.x, h = R.y, a) {
|
|
269
269
|
var T;
|
|
270
|
-
return Object.assign({},
|
|
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({},
|
|
272
|
+
return Object.assign({}, w, (e = {}, e[m] = A ? h + "px" : "", e[O] = y ? d + "px" : "", e.transform = "", e));
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n,
|
|
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
|
|
278
|
-
|
|
279
|
-
return
|
|
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:
|
|
298
|
-
roundOffsets:
|
|
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:
|
|
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
|
|
308
|
+
const Gt = {
|
|
309
309
|
name: "computeStyles",
|
|
310
310
|
enabled: !0,
|
|
311
311
|
phase: "beforeWrite",
|
|
312
|
-
fn:
|
|
312
|
+
fn: Ut,
|
|
313
313
|
data: {}
|
|
314
314
|
};
|
|
315
315
|
var ge = {
|
|
316
316
|
passive: !0
|
|
317
317
|
};
|
|
318
|
-
function
|
|
319
|
-
var e = t.state, r = t.instance, n = t.options, o = n.scroll,
|
|
320
|
-
return
|
|
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
|
-
}),
|
|
323
|
-
|
|
322
|
+
}), i && a.addEventListener("resize", r.update, ge), function() {
|
|
323
|
+
s && f.forEach(function(p) {
|
|
324
324
|
p.removeEventListener("scroll", r.update, ge);
|
|
325
|
-
}),
|
|
325
|
+
}), i && a.removeEventListener("resize", r.update, ge);
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
const
|
|
328
|
+
const Kt = {
|
|
329
329
|
name: "eventListeners",
|
|
330
330
|
enabled: !0,
|
|
331
331
|
phase: "write",
|
|
332
332
|
fn: function() {
|
|
333
333
|
},
|
|
334
|
-
effect:
|
|
334
|
+
effect: Jt,
|
|
335
335
|
data: {}
|
|
336
336
|
};
|
|
337
|
-
var
|
|
337
|
+
var Qt = {
|
|
338
338
|
left: "right",
|
|
339
339
|
right: "left",
|
|
340
340
|
bottom: "top",
|
|
341
341
|
top: "bottom"
|
|
342
342
|
};
|
|
343
|
-
function
|
|
343
|
+
function be(t) {
|
|
344
344
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
345
|
-
return
|
|
345
|
+
return Qt[e];
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
var
|
|
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
|
|
354
|
+
return Zt[e];
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
function
|
|
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
|
|
365
|
-
return te(_(t)).left +
|
|
364
|
+
function Be(t) {
|
|
365
|
+
return te(_(t)).left + Ne(t).scrollLeft;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
var r = L(t), n = _(t), o = r.visualViewport,
|
|
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
|
-
|
|
371
|
-
var
|
|
372
|
-
(
|
|
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:
|
|
376
|
-
height:
|
|
377
|
-
x:
|
|
378
|
-
y:
|
|
375
|
+
width: s,
|
|
376
|
+
height: c,
|
|
377
|
+
x: i + Be(t),
|
|
378
|
+
y: a
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
var e, r = _(t), n =
|
|
383
|
-
return V(o || r).direction === "rtl" && (
|
|
384
|
-
width:
|
|
385
|
-
height:
|
|
386
|
-
x:
|
|
387
|
-
y:
|
|
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
|
|
395
|
-
return ["html", "body", "#document"].indexOf(W(t)) >= 0 ? t.ownerDocument.body :
|
|
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 =
|
|
401
|
-
return o ?
|
|
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
|
|
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(
|
|
416
|
+
return e === rt ? Re(er(t, r)) : K(e) ? rr(e, r) : Re(tr(_(t)));
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
var e = se(xe(t)), r = ["absolute", "fixed"].indexOf(V(t).position) >= 0, n = r &&
|
|
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
|
|
425
|
-
var o = e === "clippingParents" ?
|
|
426
|
-
var p = Ge(t,
|
|
427
|
-
return
|
|
428
|
-
}, Ge(t,
|
|
429
|
-
return
|
|
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
|
|
432
|
-
var e = t.reference, r = t.element, n = t.placement, o = n ? I(n) : null,
|
|
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
|
-
|
|
436
|
-
x:
|
|
435
|
+
a = {
|
|
436
|
+
x: c,
|
|
437
437
|
y: e.y - r.height
|
|
438
438
|
};
|
|
439
439
|
break;
|
|
440
440
|
case C:
|
|
441
|
-
|
|
442
|
-
x:
|
|
441
|
+
a = {
|
|
442
|
+
x: c,
|
|
443
443
|
y: e.y + e.height
|
|
444
444
|
};
|
|
445
445
|
break;
|
|
446
|
-
case
|
|
447
|
-
|
|
446
|
+
case k:
|
|
447
|
+
a = {
|
|
448
448
|
x: e.x + e.width,
|
|
449
|
-
y:
|
|
449
|
+
y: i
|
|
450
450
|
};
|
|
451
451
|
break;
|
|
452
|
-
case
|
|
453
|
-
|
|
452
|
+
case $:
|
|
453
|
+
a = {
|
|
454
454
|
x: e.x - r.width,
|
|
455
|
-
y:
|
|
455
|
+
y: i
|
|
456
456
|
};
|
|
457
457
|
break;
|
|
458
458
|
default:
|
|
459
|
-
|
|
459
|
+
a = {
|
|
460
460
|
x: e.x,
|
|
461
461
|
y: e.y
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
-
var
|
|
465
|
-
if (
|
|
466
|
-
var p =
|
|
467
|
-
switch (
|
|
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
|
-
|
|
469
|
+
a[f] = a[f] - (e[p] / 2 - r[p] / 2);
|
|
470
470
|
break;
|
|
471
471
|
case pe:
|
|
472
|
-
|
|
472
|
+
a[f] = a[f] + (e[p] / 2 - r[p] / 2);
|
|
473
473
|
break;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
return
|
|
476
|
+
return a;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
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,
|
|
481
|
-
reference:
|
|
482
|
-
element:
|
|
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({},
|
|
486
|
-
top:
|
|
487
|
-
bottom:
|
|
488
|
-
left:
|
|
489
|
-
right:
|
|
490
|
-
},
|
|
491
|
-
if (
|
|
492
|
-
var R =
|
|
493
|
-
Object.keys(
|
|
494
|
-
var F = [
|
|
495
|
-
|
|
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
|
|
498
|
+
return D;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function ar(t, e) {
|
|
501
501
|
e === void 0 && (e = {});
|
|
502
|
-
var r = e, n = r.placement, o = r.boundary,
|
|
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
|
-
}) :
|
|
505
|
-
return
|
|
504
|
+
}) : fe, v = u.filter(function(x) {
|
|
505
|
+
return f.indexOf(x) >= 0;
|
|
506
506
|
});
|
|
507
|
-
|
|
508
|
-
var
|
|
509
|
-
return x[
|
|
510
|
-
placement:
|
|
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:
|
|
513
|
-
padding:
|
|
514
|
-
})[I(
|
|
512
|
+
rootBoundary: s,
|
|
513
|
+
padding: c
|
|
514
|
+
})[I(h)], x;
|
|
515
515
|
}, {});
|
|
516
|
-
return Object.keys(
|
|
517
|
-
return
|
|
516
|
+
return Object.keys(d).sort(function(x, h) {
|
|
517
|
+
return d[x] - d[h];
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function ir(t) {
|
|
521
521
|
if (I(t) === we)
|
|
522
522
|
return [];
|
|
523
|
-
var e =
|
|
523
|
+
var e = be(t);
|
|
524
524
|
return [Ue(t), e, Ue(e)];
|
|
525
525
|
}
|
|
526
|
-
function
|
|
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,
|
|
530
|
-
return Q.concat(I(
|
|
531
|
-
placement:
|
|
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:
|
|
534
|
-
padding:
|
|
533
|
+
rootBoundary: u,
|
|
534
|
+
padding: f,
|
|
535
535
|
flipVariations: x,
|
|
536
|
-
allowedAutoPlacements:
|
|
537
|
-
}) :
|
|
538
|
-
}, []),
|
|
539
|
-
var
|
|
540
|
-
placement:
|
|
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:
|
|
543
|
-
altBoundary:
|
|
544
|
-
padding:
|
|
545
|
-
}), M = F ? T ?
|
|
546
|
-
|
|
547
|
-
var ue =
|
|
548
|
-
if (
|
|
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
|
-
|
|
551
|
+
S = w, P = !1;
|
|
552
552
|
break;
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
E.set(w, Y);
|
|
555
555
|
}
|
|
556
556
|
if (P)
|
|
557
|
-
for (var
|
|
558
|
-
var oe =
|
|
559
|
-
var z =
|
|
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,
|
|
561
|
+
return z.slice(0, H).every(function(Ee) {
|
|
562
562
|
return Ee;
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
if (oe)
|
|
566
|
-
return
|
|
567
|
-
}, ne =
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
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 !==
|
|
572
|
+
e.placement !== S && (e.modifiersData[n]._skip = !0, e.placement = S, e.reset = !0);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const pr = {
|
|
576
576
|
name: "flip",
|
|
577
577
|
enabled: !0,
|
|
578
578
|
phase: "main",
|
|
579
|
-
fn:
|
|
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,
|
|
597
|
+
return [j, k, C, $].some(function(e) {
|
|
598
598
|
return t[e] >= 0;
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper,
|
|
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
|
-
}),
|
|
604
|
+
}), i = ce(e, {
|
|
605
605
|
altBoundary: !0
|
|
606
|
-
}),
|
|
606
|
+
}), a = Je(c, n), f = Je(i, o, s), p = Ke(a), u = Ke(f);
|
|
607
607
|
e.modifiersData[r] = {
|
|
608
|
-
referenceClippingOffsets:
|
|
609
|
-
popperEscapeOffsets:
|
|
608
|
+
referenceClippingOffsets: a,
|
|
609
|
+
popperEscapeOffsets: f,
|
|
610
610
|
isReferenceHidden: p,
|
|
611
|
-
hasPopperEscaped:
|
|
611
|
+
hasPopperEscaped: u
|
|
612
612
|
}, e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
613
613
|
"data-popper-reference-hidden": p,
|
|
614
|
-
"data-popper-escaped":
|
|
614
|
+
"data-popper-escaped": u
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const fr = {
|
|
618
618
|
name: "hide",
|
|
619
619
|
enabled: !0,
|
|
620
620
|
phase: "main",
|
|
621
621
|
requiresIfExists: ["preventOverflow"],
|
|
622
|
-
fn:
|
|
622
|
+
fn: cr
|
|
623
623
|
};
|
|
624
|
-
function
|
|
625
|
-
var n = I(t), o = [
|
|
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,
|
|
628
|
-
return
|
|
629
|
-
x:
|
|
630
|
-
y:
|
|
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:
|
|
633
|
-
y:
|
|
632
|
+
x: c,
|
|
633
|
+
y: i
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
var e = t.state, r = t.options, n = t.name, o = r.offset,
|
|
638
|
-
return p[
|
|
639
|
-
}, {}),
|
|
640
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x +=
|
|
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
|
|
642
|
+
const dr = {
|
|
643
643
|
name: "offset",
|
|
644
644
|
enabled: !0,
|
|
645
645
|
phase: "main",
|
|
646
646
|
requires: ["popperOffsets"],
|
|
647
|
-
fn:
|
|
647
|
+
fn: ur
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function vr(t) {
|
|
650
650
|
var e = t.state, r = t.name;
|
|
651
|
-
e.modifiersData[r] =
|
|
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
|
|
658
|
+
const hr = {
|
|
659
659
|
name: "popperOffsets",
|
|
660
660
|
enabled: !0,
|
|
661
661
|
phase: "read",
|
|
662
|
-
fn:
|
|
662
|
+
fn: vr,
|
|
663
663
|
data: {}
|
|
664
664
|
};
|
|
665
|
-
function
|
|
665
|
+
function mr(t) {
|
|
666
666
|
return t === "x" ? "y" : "x";
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
var e = t.state, r = t.options, n = t.name, o = r.mainAxis,
|
|
670
|
-
boundary:
|
|
671
|
-
rootBoundary:
|
|
672
|
-
padding:
|
|
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
|
-
}),
|
|
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
|
-
})) :
|
|
677
|
-
mainAxis:
|
|
678
|
-
altAxis:
|
|
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
|
-
},
|
|
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 (!!
|
|
687
|
-
if (
|
|
688
|
-
var T, F =
|
|
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
|
-
},
|
|
692
|
-
|
|
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 (
|
|
695
|
-
var Me, ht =
|
|
696
|
-
|
|
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
|
|
701
|
+
const br = {
|
|
702
702
|
name: "preventOverflow",
|
|
703
703
|
enabled: !0,
|
|
704
704
|
phase: "main",
|
|
705
|
-
fn:
|
|
705
|
+
fn: gr,
|
|
706
706
|
requiresIfExists: ["offset"]
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function yr(t) {
|
|
709
709
|
return {
|
|
710
710
|
scrollLeft: t.scrollLeft,
|
|
711
711
|
scrollTop: t.scrollTop
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return t === L(t) || !
|
|
714
|
+
function wr(t) {
|
|
715
|
+
return t === L(t) || !B(t) ? Ne(t) : yr(t);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
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
|
|
721
|
+
function Or(t, e, r) {
|
|
722
722
|
r === void 0 && (r = !1);
|
|
723
|
-
var n =
|
|
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
|
-
},
|
|
726
|
+
}, a = {
|
|
727
727
|
x: 0,
|
|
728
728
|
y: 0
|
|
729
729
|
};
|
|
730
|
-
return (n || !n && !r) && ((W(e) !== "body" || Ce(
|
|
731
|
-
x:
|
|
732
|
-
y:
|
|
733
|
-
width:
|
|
734
|
-
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
|
|
737
|
+
function Er(t) {
|
|
738
738
|
var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
739
|
-
t.forEach(function(
|
|
740
|
-
e.set(
|
|
739
|
+
t.forEach(function(s) {
|
|
740
|
+
e.set(s.name, s);
|
|
741
741
|
});
|
|
742
|
-
function o(
|
|
743
|
-
r.add(
|
|
744
|
-
var
|
|
745
|
-
|
|
746
|
-
if (!r.has(
|
|
747
|
-
var
|
|
748
|
-
|
|
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(
|
|
750
|
+
}), n.push(s);
|
|
751
751
|
}
|
|
752
|
-
return t.forEach(function(
|
|
753
|
-
r.has(
|
|
752
|
+
return t.forEach(function(s) {
|
|
753
|
+
r.has(s.name) || o(s);
|
|
754
754
|
}), n;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
var e =
|
|
758
|
-
return
|
|
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
|
|
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
|
|
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,
|
|
778
|
-
return o.replace(/%s/,
|
|
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',
|
|
782
|
-
function
|
|
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(
|
|
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(
|
|
792
|
+
typeof e.enabled != "boolean" && console.error(q(G, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
|
|
793
793
|
break;
|
|
794
794
|
case "phase":
|
|
795
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
820
|
+
}) == null && console.error(q(Sr, String(e.name), n, n));
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
function
|
|
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
|
|
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.",
|
|
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
|
|
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,
|
|
860
|
-
return function(
|
|
861
|
-
|
|
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,
|
|
865
|
+
options: Object.assign({}, et, s),
|
|
866
866
|
modifiersData: {},
|
|
867
867
|
elements: {
|
|
868
|
-
reference:
|
|
869
|
-
popper:
|
|
868
|
+
reference: i,
|
|
869
|
+
popper: a
|
|
870
870
|
},
|
|
871
871
|
attributes: {},
|
|
872
872
|
styles: {}
|
|
873
|
-
},
|
|
873
|
+
}, u = [], v = !1, d = {
|
|
874
874
|
state: p,
|
|
875
|
-
setOptions: function(
|
|
876
|
-
var A = typeof
|
|
877
|
-
|
|
878
|
-
reference: K(
|
|
879
|
-
popper: se(
|
|
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
|
|
882
|
-
if (p.orderedModifiers =
|
|
883
|
-
return
|
|
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
|
|
886
|
-
var R =
|
|
885
|
+
var m = Rr([].concat(O, p.options.modifiers), function(w) {
|
|
886
|
+
var R = w.name;
|
|
887
887
|
return R;
|
|
888
888
|
});
|
|
889
|
-
if (
|
|
890
|
-
var
|
|
891
|
-
var R =
|
|
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
|
-
|
|
894
|
+
b || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
895
895
|
}
|
|
896
|
-
var
|
|
897
|
-
[
|
|
898
|
-
return parseFloat(
|
|
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(),
|
|
901
|
+
return x(), d.update();
|
|
902
902
|
},
|
|
903
903
|
forceUpdate: function() {
|
|
904
|
-
if (!
|
|
905
|
-
var
|
|
906
|
-
if (!tt(A,
|
|
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:
|
|
912
|
-
popper: je(
|
|
913
|
-
}, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(
|
|
914
|
-
return p.modifiersData[
|
|
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
|
|
917
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
918
|
-
console.error(
|
|
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,
|
|
922
|
+
p.reset = !1, b = -1;
|
|
923
923
|
continue;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
926
|
-
typeof
|
|
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:
|
|
929
|
-
name:
|
|
930
|
-
instance:
|
|
928
|
+
options: S,
|
|
929
|
+
name: D,
|
|
930
|
+
instance: d
|
|
931
931
|
}) || p);
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
|
-
update:
|
|
936
|
-
return new Promise(function(
|
|
937
|
-
|
|
935
|
+
update: Pr(function() {
|
|
936
|
+
return new Promise(function(l) {
|
|
937
|
+
d.forceUpdate(), l(p);
|
|
938
938
|
});
|
|
939
939
|
}),
|
|
940
940
|
destroy: function() {
|
|
941
|
-
|
|
941
|
+
h(), v = !0;
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
|
-
if (!tt(
|
|
945
|
-
return process.env.NODE_ENV !== "production" && console.error(Ze),
|
|
946
|
-
|
|
947
|
-
!
|
|
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(
|
|
951
|
-
var
|
|
952
|
-
if (typeof
|
|
953
|
-
var
|
|
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:
|
|
956
|
-
instance:
|
|
957
|
-
options:
|
|
958
|
-
}),
|
|
955
|
+
name: y,
|
|
956
|
+
instance: d,
|
|
957
|
+
options: O
|
|
958
|
+
}), g = function() {
|
|
959
959
|
};
|
|
960
|
-
|
|
960
|
+
u.push(b || g);
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
|
|
966
|
-
return
|
|
967
|
-
}),
|
|
964
|
+
function h() {
|
|
965
|
+
u.forEach(function(l) {
|
|
966
|
+
return l();
|
|
967
|
+
}), u = [];
|
|
968
968
|
}
|
|
969
|
-
return
|
|
969
|
+
return d;
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
var
|
|
973
|
-
defaultModifiers:
|
|
972
|
+
var Nr = [Kt, hr, Gt, It, dr, pr, br, Xt, fr], Br = /* @__PURE__ */ $r({
|
|
973
|
+
defaultModifiers: Nr
|
|
974
974
|
});
|
|
975
|
-
const
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
1039
|
+
Cr
|
|
1038
1040
|
]
|
|
1039
1041
|
};
|
|
1040
|
-
const
|
|
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
|
-
},
|
|
1047
|
+
}, Mr = {
|
|
1046
1048
|
ref: "arrow",
|
|
1047
1049
|
class: "tooltip-arrow"
|
|
1048
|
-
},
|
|
1050
|
+
}, Ir = {
|
|
1049
1051
|
ref: "inner",
|
|
1050
1052
|
class: "tooltip-inner"
|
|
1051
1053
|
};
|
|
1052
|
-
function
|
|
1053
|
-
return gt(),
|
|
1054
|
-
class:
|
|
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",
|
|
1058
|
-
Fe("div",
|
|
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
|
|
1064
|
-
function
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
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
|
-
},
|
|
1070
|
-
|
|
1071
|
-
const [
|
|
1072
|
-
return document.body.append(
|
|
1073
|
-
|
|
1074
|
-
|
|
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
|
-
|
|
1083
|
-
|
|
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", (
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
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
|
-
|
|
1104
|
-
|
|
1135
|
+
Wr as Tooltip,
|
|
1136
|
+
qr as TooltipPlugin
|
|
1105
1137
|
};
|