stone-kit 0.0.1077 → 0.0.1078
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/components/Tooltip/Tooltip.js +434 -420
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as nt } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { TooltipIcon as
|
|
6
|
-
var _ = "top", G = "bottom", K = "right", F = "left",
|
|
2
|
+
import gt, { forwardRef as $n, cloneElement as rn, useState as ft, useLayoutEffect as kn, useEffect as Bn, useRef as yt, useCallback as Vn } from "react";
|
|
3
|
+
import { c as Mt } from "../../index-YnD2EP-S.js";
|
|
4
|
+
import { createPortal as In } from "react-dom";
|
|
5
|
+
import { TooltipIcon as Hn } from "../Icons/TooltipIcon.js";
|
|
6
|
+
var _ = "top", G = "bottom", K = "right", F = "left", At = "auto", Ue = [_, G, K, F], Ae = "start", Ve = "end", Wn = "clippingParents", on = "viewport", Me = "popper", Un = "reference", $t = /* @__PURE__ */ Ue.reduce(function(e, t) {
|
|
7
7
|
return e.concat([t + "-" + Ae, t + "-" + Ve]);
|
|
8
|
-
}, []),
|
|
8
|
+
}, []), an = /* @__PURE__ */ [].concat(Ue, [At]).reduce(function(e, t) {
|
|
9
9
|
return e.concat([t, t + "-" + Ae, t + "-" + Ve]);
|
|
10
|
-
}, []),
|
|
10
|
+
}, []), _n = "beforeRead", Fn = "read", qn = "afterRead", zn = "beforeMain", Yn = "main", Xn = "afterMain", Gn = "beforeWrite", Kn = "write", Jn = "afterWrite", Qn = [_n, Fn, qn, zn, Yn, Xn, Gn, Kn, Jn];
|
|
11
11
|
function te(e) {
|
|
12
12
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
13
13
|
}
|
|
@@ -28,13 +28,13 @@ function X(e) {
|
|
|
28
28
|
var t = z(e).HTMLElement;
|
|
29
29
|
return e instanceof t || e instanceof HTMLElement;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Dt(e) {
|
|
32
32
|
if (typeof ShadowRoot > "u")
|
|
33
33
|
return !1;
|
|
34
34
|
var t = z(e).ShadowRoot;
|
|
35
35
|
return e instanceof t || e instanceof ShadowRoot;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Zn(e) {
|
|
38
38
|
var t = e.state;
|
|
39
39
|
Object.keys(t.elements).forEach(function(n) {
|
|
40
40
|
var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
|
|
@@ -44,7 +44,7 @@ function Qn(e) {
|
|
|
44
44
|
}));
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function er(e) {
|
|
48
48
|
var t = e.state, n = {
|
|
49
49
|
popper: {
|
|
50
50
|
position: t.options.strategy,
|
|
@@ -68,44 +68,44 @@ function Zn(e) {
|
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const sn = {
|
|
72
72
|
name: "applyStyles",
|
|
73
73
|
enabled: !0,
|
|
74
74
|
phase: "write",
|
|
75
|
-
fn:
|
|
76
|
-
effect:
|
|
75
|
+
fn: Zn,
|
|
76
|
+
effect: er,
|
|
77
77
|
requires: ["computeStyles"]
|
|
78
78
|
};
|
|
79
79
|
function ee(e) {
|
|
80
80
|
return e.split("-")[0];
|
|
81
81
|
}
|
|
82
82
|
var he = Math.max, at = Math.min, De = Math.round;
|
|
83
|
-
function
|
|
83
|
+
function bt() {
|
|
84
84
|
var e = navigator.userAgentData;
|
|
85
85
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
86
86
|
return t.brand + "/" + t.version;
|
|
87
87
|
}).join(" ") : navigator.userAgent;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
89
|
+
function un() {
|
|
90
|
+
return !/^((?!chrome|android).)*safari/i.test(bt());
|
|
91
91
|
}
|
|
92
92
|
function Ce(e, t, n) {
|
|
93
93
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
94
94
|
var r = e.getBoundingClientRect(), o = 1, a = 1;
|
|
95
95
|
t && X(e) && (o = e.offsetWidth > 0 && De(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && De(r.height) / e.offsetHeight || 1);
|
|
96
|
-
var c = ge(e) ? z(e) : window, p = c.visualViewport, u = !
|
|
96
|
+
var c = ge(e) ? z(e) : window, p = c.visualViewport, u = !un() && n, l = (r.left + (u && p ? p.offsetLeft : 0)) / o, f = (r.top + (u && p ? p.offsetTop : 0)) / a, y = r.width / o, E = r.height / a;
|
|
97
97
|
return {
|
|
98
|
-
width:
|
|
98
|
+
width: y,
|
|
99
99
|
height: E,
|
|
100
100
|
top: f,
|
|
101
|
-
right: l +
|
|
101
|
+
right: l + y,
|
|
102
102
|
bottom: f + E,
|
|
103
103
|
left: l,
|
|
104
104
|
x: l,
|
|
105
105
|
y: f
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ct(e) {
|
|
109
109
|
var t = Ce(e), n = e.offsetWidth, r = e.offsetHeight;
|
|
110
110
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
|
|
111
111
|
x: e.offsetLeft,
|
|
@@ -114,11 +114,11 @@ function Dt(e) {
|
|
|
114
114
|
height: r
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function cn(e, t) {
|
|
118
118
|
var n = t.getRootNode && t.getRootNode();
|
|
119
119
|
if (e.contains(t))
|
|
120
120
|
return !0;
|
|
121
|
-
if (n &&
|
|
121
|
+
if (n && Dt(n)) {
|
|
122
122
|
var r = t;
|
|
123
123
|
do {
|
|
124
124
|
if (r && e.isSameNode(r))
|
|
@@ -131,7 +131,7 @@ function un(e, t) {
|
|
|
131
131
|
function se(e) {
|
|
132
132
|
return z(e).getComputedStyle(e);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function tr(e) {
|
|
135
135
|
return ["table", "td", "th"].indexOf(te(e)) >= 0;
|
|
136
136
|
}
|
|
137
137
|
function pe(e) {
|
|
@@ -147,24 +147,24 @@ function ut(e) {
|
|
|
147
147
|
// $FlowFixMe[prop-missing]
|
|
148
148
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
149
149
|
e.parentNode || // DOM Element detected
|
|
150
|
-
(
|
|
150
|
+
(Dt(e) ? e.host : null) || // ShadowRoot detected
|
|
151
151
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
152
152
|
pe(e)
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function kt(e) {
|
|
156
156
|
return !X(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
157
157
|
se(e).position === "fixed" ? null : e.offsetParent;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
var t = /firefox/i.test(
|
|
159
|
+
function nr(e) {
|
|
160
|
+
var t = /firefox/i.test(bt()), n = /Trident/i.test(bt());
|
|
161
161
|
if (n && X(e)) {
|
|
162
162
|
var r = se(e);
|
|
163
163
|
if (r.position === "fixed")
|
|
164
164
|
return null;
|
|
165
165
|
}
|
|
166
166
|
var o = ut(e);
|
|
167
|
-
for (
|
|
167
|
+
for (Dt(o) && (o = o.host); X(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
|
|
168
168
|
var a = se(o);
|
|
169
169
|
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
|
|
170
170
|
return o;
|
|
@@ -173,21 +173,21 @@ function tr(e) {
|
|
|
173
173
|
return null;
|
|
174
174
|
}
|
|
175
175
|
function _e(e) {
|
|
176
|
-
for (var t = z(e), n =
|
|
177
|
-
n =
|
|
178
|
-
return n && (te(n) === "html" || te(n) === "body" && se(n).position === "static") ? t : n ||
|
|
176
|
+
for (var t = z(e), n = kt(e); n && tr(n) && se(n).position === "static"; )
|
|
177
|
+
n = kt(n);
|
|
178
|
+
return n && (te(n) === "html" || te(n) === "body" && se(n).position === "static") ? t : n || nr(e) || t;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function St(e) {
|
|
181
181
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
182
182
|
}
|
|
183
183
|
function $e(e, t, n) {
|
|
184
184
|
return he(e, at(t, n));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function rr(e, t, n) {
|
|
187
187
|
var r = $e(e, t, n);
|
|
188
188
|
return r > n ? n : r;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function pn() {
|
|
191
191
|
return {
|
|
192
192
|
top: 0,
|
|
193
193
|
right: 0,
|
|
@@ -195,49 +195,49 @@ function cn() {
|
|
|
195
195
|
left: 0
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return Object.assign({},
|
|
198
|
+
function fn(e) {
|
|
199
|
+
return Object.assign({}, pn(), e);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ln(e, t) {
|
|
202
202
|
return t.reduce(function(n, r) {
|
|
203
203
|
return n[r] = e, n;
|
|
204
204
|
}, {});
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var ir = function(t, n) {
|
|
207
207
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
208
208
|
placement: n.placement
|
|
209
|
-
})) : t,
|
|
209
|
+
})) : t, fn(typeof t != "number" ? t : ln(t, Ue));
|
|
210
210
|
};
|
|
211
|
-
function
|
|
212
|
-
var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, c = n.modifiersData.popperOffsets, p = ee(n.placement), u =
|
|
211
|
+
function or(e) {
|
|
212
|
+
var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, c = n.modifiersData.popperOffsets, p = ee(n.placement), u = St(p), l = [F, K].indexOf(p) >= 0, f = l ? "height" : "width";
|
|
213
213
|
if (!(!a || !c)) {
|
|
214
|
-
var
|
|
215
|
-
n.modifiersData[r] = (t = {}, t[
|
|
214
|
+
var y = ir(o.padding, n), E = Ct(a), m = u === "y" ? _ : F, w = u === "y" ? G : K, g = n.rects.reference[f] + n.rects.reference[u] - c[u] - n.rects.popper[f], b = c[u] - n.rects.reference[u], D = _e(a), j = D ? u === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, N = g / 2 - b / 2, i = y[m], x = j - E[f] - y[w], d = j / 2 - E[f] / 2 + N, P = $e(i, d, x), k = u;
|
|
215
|
+
n.modifiersData[r] = (t = {}, t[k] = P, t.centerOffset = P - d, t);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ar(e) {
|
|
219
219
|
var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
220
|
-
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) ||
|
|
220
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || cn(t.elements.popper, o) && (t.elements.arrow = o));
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const sr = {
|
|
223
223
|
name: "arrow",
|
|
224
224
|
enabled: !0,
|
|
225
225
|
phase: "main",
|
|
226
|
-
fn:
|
|
227
|
-
effect:
|
|
226
|
+
fn: or,
|
|
227
|
+
effect: ar,
|
|
228
228
|
requires: ["popperOffsets"],
|
|
229
229
|
requiresIfExists: ["preventOverflow"]
|
|
230
230
|
};
|
|
231
|
-
function
|
|
231
|
+
function Se(e) {
|
|
232
232
|
return e.split("-")[1];
|
|
233
233
|
}
|
|
234
|
-
var
|
|
234
|
+
var ur = {
|
|
235
235
|
top: "auto",
|
|
236
236
|
right: "auto",
|
|
237
237
|
bottom: "auto",
|
|
238
238
|
left: "auto"
|
|
239
239
|
};
|
|
240
|
-
function
|
|
240
|
+
function cr(e, t) {
|
|
241
241
|
var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
|
|
242
242
|
return {
|
|
243
243
|
x: De(n * o) / o || 0,
|
|
@@ -245,20 +245,20 @@ function ur(e, t) {
|
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
function Bt(e) {
|
|
248
|
-
var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, c = e.offsets, p = e.position, u = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets,
|
|
248
|
+
var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, c = e.offsets, p = e.position, u = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, y = e.isFixed, E = c.x, m = E === void 0 ? 0 : E, w = c.y, g = w === void 0 ? 0 : w, b = typeof f == "function" ? f({
|
|
249
249
|
x: m,
|
|
250
250
|
y: g
|
|
251
251
|
}) : {
|
|
252
252
|
x: m,
|
|
253
253
|
y: g
|
|
254
254
|
};
|
|
255
|
-
m =
|
|
256
|
-
var D = c.hasOwnProperty("x"),
|
|
255
|
+
m = b.x, g = b.y;
|
|
256
|
+
var D = c.hasOwnProperty("x"), j = c.hasOwnProperty("y"), N = F, i = _, x = window;
|
|
257
257
|
if (l) {
|
|
258
|
-
var d = _e(n), P = "clientHeight",
|
|
259
|
-
if (d === z(n) && (d = pe(n), se(d).position !== "static" && p === "absolute" && (P = "scrollHeight",
|
|
258
|
+
var d = _e(n), P = "clientHeight", k = "clientWidth";
|
|
259
|
+
if (d === z(n) && (d = pe(n), se(d).position !== "static" && p === "absolute" && (P = "scrollHeight", k = "scrollWidth")), d = d, o === _ || (o === F || o === K) && a === Ve) {
|
|
260
260
|
i = G;
|
|
261
|
-
var A =
|
|
261
|
+
var A = y && d === x && x.visualViewport ? x.visualViewport.height : (
|
|
262
262
|
// $FlowFixMe[prop-missing]
|
|
263
263
|
d[P]
|
|
264
264
|
);
|
|
@@ -266,16 +266,16 @@ function Bt(e) {
|
|
|
266
266
|
}
|
|
267
267
|
if (o === F || (o === _ || o === G) && a === Ve) {
|
|
268
268
|
N = K;
|
|
269
|
-
var C =
|
|
269
|
+
var C = y && d === x && x.visualViewport ? x.visualViewport.width : (
|
|
270
270
|
// $FlowFixMe[prop-missing]
|
|
271
|
-
d[
|
|
271
|
+
d[k]
|
|
272
272
|
);
|
|
273
273
|
m -= C - r.width, m *= u ? 1 : -1;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
var M = Object.assign({
|
|
277
277
|
position: p
|
|
278
|
-
}, l &&
|
|
278
|
+
}, l && ur), $ = f === !0 ? cr({
|
|
279
279
|
x: m,
|
|
280
280
|
y: g
|
|
281
281
|
}, z(n)) : {
|
|
@@ -284,14 +284,14 @@ function Bt(e) {
|
|
|
284
284
|
};
|
|
285
285
|
if (m = $.x, g = $.y, u) {
|
|
286
286
|
var R;
|
|
287
|
-
return Object.assign({}, M, (R = {}, R[i] =
|
|
287
|
+
return Object.assign({}, M, (R = {}, R[i] = j ? "0" : "", R[N] = D ? "0" : "", R.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", R));
|
|
288
288
|
}
|
|
289
|
-
return Object.assign({}, M, (t = {}, t[i] =
|
|
289
|
+
return Object.assign({}, M, (t = {}, t[i] = j ? g + "px" : "", t[N] = D ? m + "px" : "", t.transform = "", t));
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function pr(e) {
|
|
292
292
|
var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, c = a === void 0 ? !0 : a, p = n.roundOffsets, u = p === void 0 ? !0 : p, l = {
|
|
293
293
|
placement: ee(t.placement),
|
|
294
|
-
variation:
|
|
294
|
+
variation: Se(t.placement),
|
|
295
295
|
popper: t.elements.popper,
|
|
296
296
|
popperRect: t.rects.popper,
|
|
297
297
|
gpuAcceleration: o,
|
|
@@ -311,17 +311,17 @@ function cr(e) {
|
|
|
311
311
|
"data-popper-placement": t.placement
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const fr = {
|
|
315
315
|
name: "computeStyles",
|
|
316
316
|
enabled: !0,
|
|
317
317
|
phase: "beforeWrite",
|
|
318
|
-
fn:
|
|
318
|
+
fn: pr,
|
|
319
319
|
data: {}
|
|
320
320
|
};
|
|
321
321
|
var rt = {
|
|
322
322
|
passive: !0
|
|
323
323
|
};
|
|
324
|
-
function
|
|
324
|
+
function lr(e) {
|
|
325
325
|
var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, c = r.resize, p = c === void 0 ? !0 : c, u = z(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
326
326
|
return a && l.forEach(function(f) {
|
|
327
327
|
f.addEventListener("scroll", n.update, rt);
|
|
@@ -331,16 +331,16 @@ function fr(e) {
|
|
|
331
331
|
}), p && u.removeEventListener("resize", n.update, rt);
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const dr = {
|
|
335
335
|
name: "eventListeners",
|
|
336
336
|
enabled: !0,
|
|
337
337
|
phase: "write",
|
|
338
338
|
fn: function() {
|
|
339
339
|
},
|
|
340
|
-
effect:
|
|
340
|
+
effect: lr,
|
|
341
341
|
data: {}
|
|
342
342
|
};
|
|
343
|
-
var
|
|
343
|
+
var vr = {
|
|
344
344
|
left: "right",
|
|
345
345
|
right: "left",
|
|
346
346
|
bottom: "top",
|
|
@@ -348,16 +348,16 @@ var dr = {
|
|
|
348
348
|
};
|
|
349
349
|
function ot(e) {
|
|
350
350
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
351
|
-
return
|
|
351
|
+
return vr[t];
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
var
|
|
354
|
+
var mr = {
|
|
355
355
|
start: "end",
|
|
356
356
|
end: "start"
|
|
357
357
|
};
|
|
358
|
-
function
|
|
358
|
+
function Vt(e) {
|
|
359
359
|
return e.replace(/start|end/g, function(t) {
|
|
360
|
-
return
|
|
360
|
+
return mr[t];
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
function jt(e) {
|
|
@@ -367,25 +367,25 @@ function jt(e) {
|
|
|
367
367
|
scrollTop: r
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Lt(e) {
|
|
371
371
|
return Ce(pe(e)).left + jt(e).scrollLeft;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function hr(e, t) {
|
|
374
374
|
var n = z(e), r = pe(e), o = n.visualViewport, a = r.clientWidth, c = r.clientHeight, p = 0, u = 0;
|
|
375
375
|
if (o) {
|
|
376
376
|
a = o.width, c = o.height;
|
|
377
|
-
var l =
|
|
377
|
+
var l = un();
|
|
378
378
|
(l || !l && t === "fixed") && (p = o.offsetLeft, u = o.offsetTop);
|
|
379
379
|
}
|
|
380
380
|
return {
|
|
381
381
|
width: a,
|
|
382
382
|
height: c,
|
|
383
|
-
x: p +
|
|
383
|
+
x: p + Lt(e),
|
|
384
384
|
y: u
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
var t, n = pe(e), r = jt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = he(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = he(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), p = -r.scrollLeft +
|
|
387
|
+
function gr(e) {
|
|
388
|
+
var t, n = pe(e), r = jt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = he(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = he(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), p = -r.scrollLeft + Lt(e), u = -r.scrollTop;
|
|
389
389
|
return se(o || n).direction === "rtl" && (p += he(n.clientWidth, o ? o.clientWidth : 0) - a), {
|
|
390
390
|
width: a,
|
|
391
391
|
height: c,
|
|
@@ -393,23 +393,23 @@ function hr(e) {
|
|
|
393
393
|
y: u
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Pt(e) {
|
|
397
397
|
var t = se(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
|
|
398
398
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
return ["html", "body", "#document"].indexOf(te(e)) >= 0 ? e.ownerDocument.body : X(e) &&
|
|
400
|
+
function dn(e) {
|
|
401
|
+
return ["html", "body", "#document"].indexOf(te(e)) >= 0 ? e.ownerDocument.body : X(e) && Pt(e) ? e : dn(ut(e));
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function ke(e, t) {
|
|
404
404
|
var n;
|
|
405
405
|
t === void 0 && (t = []);
|
|
406
|
-
var r =
|
|
406
|
+
var r = dn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = z(r), c = o ? [a].concat(a.visualViewport || [], Pt(r) ? r : []) : r, p = t.concat(c);
|
|
407
407
|
return o ? p : (
|
|
408
408
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
409
|
-
p.concat(
|
|
409
|
+
p.concat(ke(ut(c)))
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function wt(e) {
|
|
413
413
|
return Object.assign({}, e, {
|
|
414
414
|
left: e.x,
|
|
415
415
|
top: e.y,
|
|
@@ -417,28 +417,28 @@ function bt(e) {
|
|
|
417
417
|
bottom: e.y + e.height
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function yr(e, t) {
|
|
421
421
|
var n = Ce(e, !1, t === "fixed");
|
|
422
422
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
return t ===
|
|
424
|
+
function It(e, t, n) {
|
|
425
|
+
return t === on ? wt(hr(e, n)) : ge(t) ? yr(t, n) : wt(gr(pe(e)));
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
var t =
|
|
427
|
+
function br(e) {
|
|
428
|
+
var t = ke(ut(e)), n = ["absolute", "fixed"].indexOf(se(e).position) >= 0, r = n && X(e) ? _e(e) : e;
|
|
429
429
|
return ge(r) ? t.filter(function(o) {
|
|
430
|
-
return ge(o) &&
|
|
430
|
+
return ge(o) && cn(o, r) && te(o) !== "body";
|
|
431
431
|
}) : [];
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
var o = t === "clippingParents" ?
|
|
435
|
-
var f =
|
|
433
|
+
function wr(e, t, n, r) {
|
|
434
|
+
var o = t === "clippingParents" ? br(e) : [].concat(t), a = [].concat(o, [n]), c = a[0], p = a.reduce(function(u, l) {
|
|
435
|
+
var f = It(e, l, r);
|
|
436
436
|
return u.top = he(f.top, u.top), u.right = at(f.right, u.right), u.bottom = at(f.bottom, u.bottom), u.left = he(f.left, u.left), u;
|
|
437
|
-
},
|
|
437
|
+
}, It(e, c, r));
|
|
438
438
|
return p.width = p.right - p.left, p.height = p.bottom - p.top, p.x = p.left, p.y = p.top, p;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
var t = e.reference, n = e.element, r = e.placement, o = r ? ee(r) : null, a = r ?
|
|
440
|
+
function vn(e) {
|
|
441
|
+
var t = e.reference, n = e.element, r = e.placement, o = r ? ee(r) : null, a = r ? Se(r) : null, c = t.x + t.width / 2 - n.width / 2, p = t.y + t.height / 2 - n.height / 2, u;
|
|
442
442
|
switch (o) {
|
|
443
443
|
case _:
|
|
444
444
|
u = {
|
|
@@ -470,7 +470,7 @@ function dn(e) {
|
|
|
470
470
|
y: t.y
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
var l = o ?
|
|
473
|
+
var l = o ? St(o) : null;
|
|
474
474
|
if (l != null) {
|
|
475
475
|
var f = l === "y" ? "height" : "width";
|
|
476
476
|
switch (a) {
|
|
@@ -486,11 +486,11 @@ function dn(e) {
|
|
|
486
486
|
}
|
|
487
487
|
function Ie(e, t) {
|
|
488
488
|
t === void 0 && (t = {});
|
|
489
|
-
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, c = a === void 0 ? e.strategy : a, p = n.boundary, u = p === void 0 ?
|
|
489
|
+
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, c = a === void 0 ? e.strategy : a, p = n.boundary, u = p === void 0 ? Wn : p, l = n.rootBoundary, f = l === void 0 ? on : l, y = n.elementContext, E = y === void 0 ? Me : y, m = n.altBoundary, w = m === void 0 ? !1 : m, g = n.padding, b = g === void 0 ? 0 : g, D = fn(typeof b != "number" ? b : ln(b, Ue)), j = E === Me ? Un : Me, N = e.rects.popper, i = e.elements[w ? j : E], x = wr(ge(i) ? i : i.contextElement || pe(e.elements.popper), u, f, c), d = Ce(e.elements.reference), P = vn({
|
|
490
490
|
reference: d,
|
|
491
491
|
element: N,
|
|
492
492
|
placement: o
|
|
493
|
-
}),
|
|
493
|
+
}), k = wt(Object.assign({}, N, P)), A = E === Me ? k : d, C = {
|
|
494
494
|
top: x.top - A.top + D.top,
|
|
495
495
|
bottom: A.bottom - x.bottom + D.bottom,
|
|
496
496
|
left: x.left - A.left + D.left,
|
|
@@ -505,14 +505,14 @@ function Ie(e, t) {
|
|
|
505
505
|
}
|
|
506
506
|
return C;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Or(e, t) {
|
|
509
509
|
t === void 0 && (t = {});
|
|
510
|
-
var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, c = n.padding, p = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ?
|
|
511
|
-
return
|
|
512
|
-
}) : Ue, E =
|
|
510
|
+
var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, c = n.padding, p = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ? an : u, f = Se(r), y = f ? p ? $t : $t.filter(function(w) {
|
|
511
|
+
return Se(w) === f;
|
|
512
|
+
}) : Ue, E = y.filter(function(w) {
|
|
513
513
|
return l.indexOf(w) >= 0;
|
|
514
514
|
});
|
|
515
|
-
E.length === 0 && (E =
|
|
515
|
+
E.length === 0 && (E = y);
|
|
516
516
|
var m = E.reduce(function(w, g) {
|
|
517
517
|
return w[g] = Ie(e, {
|
|
518
518
|
placement: g,
|
|
@@ -525,43 +525,43 @@ function wr(e, t) {
|
|
|
525
525
|
return m[w] - m[g];
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
if (ee(e) ===
|
|
528
|
+
function Er(e) {
|
|
529
|
+
if (ee(e) === At)
|
|
530
530
|
return [];
|
|
531
531
|
var t = ot(e);
|
|
532
|
-
return [
|
|
532
|
+
return [Vt(e), t, Vt(t)];
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function xr(e) {
|
|
535
535
|
var t = e.state, n = e.options, r = e.name;
|
|
536
536
|
if (!t.modifiersData[r]._skip) {
|
|
537
|
-
for (var o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !0 : c, u = n.fallbackPlacements, l = n.padding, f = n.boundary,
|
|
538
|
-
return ne.concat(ee(J) ===
|
|
537
|
+
for (var o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !0 : c, u = n.fallbackPlacements, l = n.padding, f = n.boundary, y = n.rootBoundary, E = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, g = n.allowedAutoPlacements, b = t.options.placement, D = ee(b), j = D === b, N = u || (j || !w ? [ot(b)] : Er(b)), i = [b].concat(N).reduce(function(ne, J) {
|
|
538
|
+
return ne.concat(ee(J) === At ? Or(t, {
|
|
539
539
|
placement: J,
|
|
540
540
|
boundary: f,
|
|
541
|
-
rootBoundary:
|
|
541
|
+
rootBoundary: y,
|
|
542
542
|
padding: l,
|
|
543
543
|
flipVariations: w,
|
|
544
544
|
allowedAutoPlacements: g
|
|
545
545
|
}) : J);
|
|
546
|
-
}, []), x = t.rects.reference, d = t.rects.popper, P = /* @__PURE__ */ new Map(),
|
|
547
|
-
var M = i[C], $ = ee(M), R =
|
|
546
|
+
}, []), x = t.rects.reference, d = t.rects.popper, P = /* @__PURE__ */ new Map(), k = !0, A = i[0], C = 0; C < i.length; C++) {
|
|
547
|
+
var M = i[C], $ = ee(M), R = Se(M) === Ae, L = [_, G].indexOf($) >= 0, O = L ? "width" : "height", I = Ie(t, {
|
|
548
548
|
placement: M,
|
|
549
549
|
boundary: f,
|
|
550
|
-
rootBoundary:
|
|
550
|
+
rootBoundary: y,
|
|
551
551
|
altBoundary: E,
|
|
552
552
|
padding: l
|
|
553
553
|
}), V = L ? R ? K : F : R ? G : _;
|
|
554
554
|
x[O] > d[O] && (V = ot(V));
|
|
555
|
-
var
|
|
556
|
-
if (a && W.push(I[$] <= 0), p && W.push(I[V] <= 0, I[
|
|
555
|
+
var B = ot(V), W = [];
|
|
556
|
+
if (a && W.push(I[$] <= 0), p && W.push(I[V] <= 0, I[B] <= 0), W.every(function(ne) {
|
|
557
557
|
return ne;
|
|
558
558
|
})) {
|
|
559
|
-
A = M,
|
|
559
|
+
A = M, k = !1;
|
|
560
560
|
break;
|
|
561
561
|
}
|
|
562
562
|
P.set(M, W);
|
|
563
563
|
}
|
|
564
|
-
if (
|
|
564
|
+
if (k)
|
|
565
565
|
for (var H = w ? 3 : 1, fe = function(J) {
|
|
566
566
|
var re = i.find(function(ye) {
|
|
567
567
|
var ie = P.get(ye);
|
|
@@ -579,17 +579,17 @@ function Er(e) {
|
|
|
579
579
|
t.placement !== A && (t.modifiersData[r]._skip = !0, t.placement = A, t.reset = !0);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
const
|
|
582
|
+
const Tr = {
|
|
583
583
|
name: "flip",
|
|
584
584
|
enabled: !0,
|
|
585
585
|
phase: "main",
|
|
586
|
-
fn:
|
|
586
|
+
fn: xr,
|
|
587
587
|
requiresIfExists: ["offset"],
|
|
588
588
|
data: {
|
|
589
589
|
_skip: !1
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
|
-
function
|
|
592
|
+
function Ht(e, t, n) {
|
|
593
593
|
return n === void 0 && (n = {
|
|
594
594
|
x: 0,
|
|
595
595
|
y: 0
|
|
@@ -600,35 +600,35 @@ function It(e, t, n) {
|
|
|
600
600
|
left: e.left - t.width - n.x
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Wt(e) {
|
|
604
604
|
return [_, K, G, F].some(function(t) {
|
|
605
605
|
return e[t] >= 0;
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Ar(e) {
|
|
609
609
|
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, c = Ie(t, {
|
|
610
610
|
elementContext: "reference"
|
|
611
611
|
}), p = Ie(t, {
|
|
612
612
|
altBoundary: !0
|
|
613
|
-
}), u =
|
|
613
|
+
}), u = Ht(c, r), l = Ht(p, o, a), f = Wt(u), y = Wt(l);
|
|
614
614
|
t.modifiersData[n] = {
|
|
615
615
|
referenceClippingOffsets: u,
|
|
616
616
|
popperEscapeOffsets: l,
|
|
617
617
|
isReferenceHidden: f,
|
|
618
|
-
hasPopperEscaped:
|
|
618
|
+
hasPopperEscaped: y
|
|
619
619
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
620
620
|
"data-popper-reference-hidden": f,
|
|
621
|
-
"data-popper-escaped":
|
|
621
|
+
"data-popper-escaped": y
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
const
|
|
624
|
+
const Dr = {
|
|
625
625
|
name: "hide",
|
|
626
626
|
enabled: !0,
|
|
627
627
|
phase: "main",
|
|
628
628
|
requiresIfExists: ["preventOverflow"],
|
|
629
|
-
fn:
|
|
629
|
+
fn: Ar
|
|
630
630
|
};
|
|
631
|
-
function
|
|
631
|
+
function Cr(e, t, n) {
|
|
632
632
|
var r = ee(e), o = [F, _].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
|
|
633
633
|
placement: e
|
|
634
634
|
})) : n, c = a[0], p = a[1];
|
|
@@ -640,9 +640,9 @@ function Dr(e, t, n) {
|
|
|
640
640
|
y: p
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, c =
|
|
645
|
-
return f[
|
|
643
|
+
function Sr(e) {
|
|
644
|
+
var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, c = an.reduce(function(f, y) {
|
|
645
|
+
return f[y] = Cr(y, t.rects, a), f;
|
|
646
646
|
}, {}), p = c[t.placement], u = p.x, l = p.y;
|
|
647
647
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = c;
|
|
648
648
|
}
|
|
@@ -651,33 +651,33 @@ const jr = {
|
|
|
651
651
|
enabled: !0,
|
|
652
652
|
phase: "main",
|
|
653
653
|
requires: ["popperOffsets"],
|
|
654
|
-
fn:
|
|
654
|
+
fn: Sr
|
|
655
655
|
};
|
|
656
|
-
function
|
|
656
|
+
function Lr(e) {
|
|
657
657
|
var t = e.state, n = e.name;
|
|
658
|
-
t.modifiersData[n] =
|
|
658
|
+
t.modifiersData[n] = vn({
|
|
659
659
|
reference: t.rects.reference,
|
|
660
660
|
element: t.rects.popper,
|
|
661
661
|
placement: t.placement
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
|
-
const
|
|
664
|
+
const Pr = {
|
|
665
665
|
name: "popperOffsets",
|
|
666
666
|
enabled: !0,
|
|
667
667
|
phase: "read",
|
|
668
|
-
fn:
|
|
668
|
+
fn: Lr,
|
|
669
669
|
data: {}
|
|
670
670
|
};
|
|
671
|
-
function
|
|
671
|
+
function Nr(e) {
|
|
672
672
|
return e === "x" ? "y" : "x";
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !1 : c, u = n.boundary, l = n.rootBoundary, f = n.altBoundary,
|
|
674
|
+
function Rr(e) {
|
|
675
|
+
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !1 : c, u = n.boundary, l = n.rootBoundary, f = n.altBoundary, y = n.padding, E = n.tether, m = E === void 0 ? !0 : E, w = n.tetherOffset, g = w === void 0 ? 0 : w, b = Ie(t, {
|
|
676
676
|
boundary: u,
|
|
677
677
|
rootBoundary: l,
|
|
678
|
-
padding:
|
|
678
|
+
padding: y,
|
|
679
679
|
altBoundary: f
|
|
680
|
-
}), D = ee(t.placement),
|
|
680
|
+
}), D = ee(t.placement), j = Se(t.placement), N = !j, i = St(D), x = Nr(i), d = t.modifiersData.popperOffsets, P = t.rects.reference, k = t.rects.popper, A = typeof g == "function" ? g(Object.assign({}, t.rects, {
|
|
681
681
|
placement: t.placement
|
|
682
682
|
})) : g, C = typeof A == "number" ? {
|
|
683
683
|
mainAxis: A,
|
|
@@ -691,40 +691,40 @@ function Nr(e) {
|
|
|
691
691
|
};
|
|
692
692
|
if (d) {
|
|
693
693
|
if (a) {
|
|
694
|
-
var R, L = i === "y" ? _ : F, O = i === "y" ? G : K, I = i === "y" ? "height" : "width", V = d[i],
|
|
694
|
+
var R, L = i === "y" ? _ : F, O = i === "y" ? G : K, I = i === "y" ? "height" : "width", V = d[i], B = V + b[L], W = V - b[O], H = m ? -k[I] / 2 : 0, fe = j === Ae ? P[I] : k[I], Q = j === Ae ? -k[I] : -P[I], le = t.elements.arrow, ne = m && le ? Ct(le) : {
|
|
695
695
|
width: 0,
|
|
696
696
|
height: 0
|
|
697
|
-
}, J = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
697
|
+
}, J = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : pn(), re = J[L], ye = J[O], ie = $e(0, P[I], ne[I]), be = N ? P[I] / 2 - H - ie - re - C.mainAxis : fe - ie - re - C.mainAxis, ue = N ? -P[I] / 2 + H + ie + ye + C.mainAxis : Q + ie + ye + C.mainAxis, we = t.elements.arrow && _e(t.elements.arrow), qe = we ? i === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, je = (R = M?.[i]) != null ? R : 0, ze = V + be - je - qe, Ye = V + ue - je, Le = $e(m ? at(B, ze) : B, V, m ? he(W, Ye) : W);
|
|
698
698
|
d[i] = Le, $[i] = Le - V;
|
|
699
699
|
}
|
|
700
700
|
if (p) {
|
|
701
|
-
var Pe, Xe = i === "x" ? _ : F, Ge = i === "x" ? G : K, oe = d[x], ce = x === "y" ? "height" : "width", Ne = oe +
|
|
701
|
+
var Pe, Xe = i === "x" ? _ : F, Ge = i === "x" ? G : K, oe = d[x], ce = x === "y" ? "height" : "width", Ne = oe + b[Xe], de = oe - b[Ge], Re = [_, F].indexOf(D) !== -1, Ke = (Pe = M?.[x]) != null ? Pe : 0, Je = Re ? Ne : oe - P[ce] - k[ce] - Ke + C.altAxis, Qe = Re ? oe + P[ce] + k[ce] - Ke - C.altAxis : de, Ze = m && Re ? rr(Je, oe, Qe) : $e(m ? Je : Ne, oe, m ? Qe : de);
|
|
702
702
|
d[x] = Ze, $[x] = Ze - oe;
|
|
703
703
|
}
|
|
704
704
|
t.modifiersData[r] = $;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
const
|
|
707
|
+
const Mr = {
|
|
708
708
|
name: "preventOverflow",
|
|
709
709
|
enabled: !0,
|
|
710
710
|
phase: "main",
|
|
711
|
-
fn:
|
|
711
|
+
fn: Rr,
|
|
712
712
|
requiresIfExists: ["offset"]
|
|
713
713
|
};
|
|
714
|
-
function
|
|
714
|
+
function $r(e) {
|
|
715
715
|
return {
|
|
716
716
|
scrollLeft: e.scrollLeft,
|
|
717
717
|
scrollTop: e.scrollTop
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return e === z(e) || !X(e) ? jt(e) :
|
|
720
|
+
function kr(e) {
|
|
721
|
+
return e === z(e) || !X(e) ? jt(e) : $r(e);
|
|
722
722
|
}
|
|
723
723
|
function Br(e) {
|
|
724
724
|
var t = e.getBoundingClientRect(), n = De(t.width) / e.offsetWidth || 1, r = De(t.height) / e.offsetHeight || 1;
|
|
725
725
|
return n !== 1 || r !== 1;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Vr(e, t, n) {
|
|
728
728
|
n === void 0 && (n = !1);
|
|
729
729
|
var r = X(t), o = X(t) && Br(t), a = pe(t), c = Ce(e, o, n), p = {
|
|
730
730
|
scrollLeft: 0,
|
|
@@ -734,14 +734,14 @@ function kr(e, t, n) {
|
|
|
734
734
|
y: 0
|
|
735
735
|
};
|
|
736
736
|
return (r || !r && !n) && ((te(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
737
|
-
|
|
737
|
+
Pt(a)) && (p = kr(t)), X(t) ? (u = Ce(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = Lt(a))), {
|
|
738
738
|
x: c.left + p.scrollLeft - u.x,
|
|
739
739
|
y: c.top + p.scrollTop - u.y,
|
|
740
740
|
width: c.width,
|
|
741
741
|
height: c.height
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ir(e) {
|
|
745
745
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
746
746
|
e.forEach(function(a) {
|
|
747
747
|
t.set(a.name, a);
|
|
@@ -760,15 +760,15 @@ function Vr(e) {
|
|
|
760
760
|
n.has(a.name) || o(a);
|
|
761
761
|
}), r;
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
var t =
|
|
765
|
-
return
|
|
763
|
+
function Hr(e) {
|
|
764
|
+
var t = Ir(e);
|
|
765
|
+
return Qn.reduce(function(n, r) {
|
|
766
766
|
return n.concat(t.filter(function(o) {
|
|
767
767
|
return o.phase === r;
|
|
768
768
|
}));
|
|
769
769
|
}, []);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Wr(e) {
|
|
772
772
|
var t;
|
|
773
773
|
return function() {
|
|
774
774
|
return t || (t = new Promise(function(n) {
|
|
@@ -778,7 +778,7 @@ function Hr(e) {
|
|
|
778
778
|
})), t;
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Ur(e) {
|
|
782
782
|
var t = e.reduce(function(n, r) {
|
|
783
783
|
var o = n[r.name];
|
|
784
784
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -790,27 +790,27 @@ function Wr(e) {
|
|
|
790
790
|
return t[n];
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
|
-
var
|
|
793
|
+
var Ut = {
|
|
794
794
|
placement: "bottom",
|
|
795
795
|
modifiers: [],
|
|
796
796
|
strategy: "absolute"
|
|
797
797
|
};
|
|
798
|
-
function
|
|
798
|
+
function _t() {
|
|
799
799
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
800
800
|
t[n] = arguments[n];
|
|
801
801
|
return !t.some(function(r) {
|
|
802
802
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function _r(e) {
|
|
806
806
|
e === void 0 && (e = {});
|
|
807
|
-
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ?
|
|
807
|
+
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? Ut : o;
|
|
808
808
|
return function(p, u, l) {
|
|
809
809
|
l === void 0 && (l = a);
|
|
810
810
|
var f = {
|
|
811
811
|
placement: "bottom",
|
|
812
812
|
orderedModifiers: [],
|
|
813
|
-
options: Object.assign({},
|
|
813
|
+
options: Object.assign({}, Ut, a),
|
|
814
814
|
modifiersData: {},
|
|
815
815
|
elements: {
|
|
816
816
|
reference: p,
|
|
@@ -818,15 +818,15 @@ function Ur(e) {
|
|
|
818
818
|
},
|
|
819
819
|
attributes: {},
|
|
820
820
|
styles: {}
|
|
821
|
-
},
|
|
821
|
+
}, y = [], E = !1, m = {
|
|
822
822
|
state: f,
|
|
823
823
|
setOptions: function(D) {
|
|
824
|
-
var
|
|
825
|
-
g(), f.options = Object.assign({}, a, f.options,
|
|
826
|
-
reference: ge(p) ?
|
|
827
|
-
popper:
|
|
824
|
+
var j = typeof D == "function" ? D(f.options) : D;
|
|
825
|
+
g(), f.options = Object.assign({}, a, f.options, j), f.scrollParents = {
|
|
826
|
+
reference: ge(p) ? ke(p) : p.contextElement ? ke(p.contextElement) : [],
|
|
827
|
+
popper: ke(u)
|
|
828
828
|
};
|
|
829
|
-
var N =
|
|
829
|
+
var N = Hr(Ur([].concat(r, f.options.modifiers)));
|
|
830
830
|
return f.orderedModifiers = N.filter(function(i) {
|
|
831
831
|
return i.enabled;
|
|
832
832
|
}), w(), m.update();
|
|
@@ -838,11 +838,11 @@ function Ur(e) {
|
|
|
838
838
|
// prefer the async Popper#update method
|
|
839
839
|
forceUpdate: function() {
|
|
840
840
|
if (!E) {
|
|
841
|
-
var D = f.elements,
|
|
842
|
-
if (
|
|
841
|
+
var D = f.elements, j = D.reference, N = D.popper;
|
|
842
|
+
if (_t(j, N)) {
|
|
843
843
|
f.rects = {
|
|
844
|
-
reference:
|
|
845
|
-
popper:
|
|
844
|
+
reference: Vr(j, _e(N), f.options.strategy === "fixed"),
|
|
845
|
+
popper: Ct(N)
|
|
846
846
|
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(C) {
|
|
847
847
|
return f.modifiersData[C.name] = Object.assign({}, C.data);
|
|
848
848
|
});
|
|
@@ -851,10 +851,10 @@ function Ur(e) {
|
|
|
851
851
|
f.reset = !1, i = -1;
|
|
852
852
|
continue;
|
|
853
853
|
}
|
|
854
|
-
var x = f.orderedModifiers[i], d = x.fn, P = x.options,
|
|
854
|
+
var x = f.orderedModifiers[i], d = x.fn, P = x.options, k = P === void 0 ? {} : P, A = x.name;
|
|
855
855
|
typeof d == "function" && (f = d({
|
|
856
856
|
state: f,
|
|
857
|
-
options:
|
|
857
|
+
options: k,
|
|
858
858
|
name: A,
|
|
859
859
|
instance: m
|
|
860
860
|
}) || f);
|
|
@@ -864,23 +864,23 @@ function Ur(e) {
|
|
|
864
864
|
},
|
|
865
865
|
// Async and optimistically optimized update – it will not be executed if
|
|
866
866
|
// not necessary (debounced to run at most once-per-tick)
|
|
867
|
-
update:
|
|
868
|
-
return new Promise(function(
|
|
869
|
-
m.forceUpdate(),
|
|
867
|
+
update: Wr(function() {
|
|
868
|
+
return new Promise(function(b) {
|
|
869
|
+
m.forceUpdate(), b(f);
|
|
870
870
|
});
|
|
871
871
|
}),
|
|
872
872
|
destroy: function() {
|
|
873
873
|
g(), E = !0;
|
|
874
874
|
}
|
|
875
875
|
};
|
|
876
|
-
if (!
|
|
876
|
+
if (!_t(p, u))
|
|
877
877
|
return m;
|
|
878
|
-
m.setOptions(l).then(function(
|
|
879
|
-
!E && l.onFirstUpdate && l.onFirstUpdate(
|
|
878
|
+
m.setOptions(l).then(function(b) {
|
|
879
|
+
!E && l.onFirstUpdate && l.onFirstUpdate(b);
|
|
880
880
|
});
|
|
881
881
|
function w() {
|
|
882
|
-
f.orderedModifiers.forEach(function(
|
|
883
|
-
var D =
|
|
882
|
+
f.orderedModifiers.forEach(function(b) {
|
|
883
|
+
var D = b.name, j = b.options, N = j === void 0 ? {} : j, i = b.effect;
|
|
884
884
|
if (typeof i == "function") {
|
|
885
885
|
var x = i({
|
|
886
886
|
state: f,
|
|
@@ -889,27 +889,27 @@ function Ur(e) {
|
|
|
889
889
|
options: N
|
|
890
890
|
}), d = function() {
|
|
891
891
|
};
|
|
892
|
-
|
|
892
|
+
y.push(x || d);
|
|
893
893
|
}
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
896
|
function g() {
|
|
897
|
-
|
|
898
|
-
return
|
|
899
|
-
}),
|
|
897
|
+
y.forEach(function(b) {
|
|
898
|
+
return b();
|
|
899
|
+
}), y = [];
|
|
900
900
|
}
|
|
901
901
|
return m;
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
var
|
|
905
|
-
defaultModifiers:
|
|
906
|
-
}),
|
|
904
|
+
var Fr = [dr, Pr, fr, sn, jr, Tr, Mr, sr, Dr], qr = /* @__PURE__ */ _r({
|
|
905
|
+
defaultModifiers: Fr
|
|
906
|
+
}), zr = "tippy-box", mn = "tippy-content", Yr = "tippy-backdrop", hn = "tippy-arrow", gn = "tippy-svg-arrow", me = {
|
|
907
907
|
passive: !0,
|
|
908
908
|
capture: !0
|
|
909
|
-
},
|
|
909
|
+
}, yn = function() {
|
|
910
910
|
return document.body;
|
|
911
911
|
};
|
|
912
|
-
function
|
|
912
|
+
function Xr(e, t) {
|
|
913
913
|
return {}.hasOwnProperty.call(e, t);
|
|
914
914
|
}
|
|
915
915
|
function lt(e, t, n) {
|
|
@@ -919,14 +919,14 @@ function lt(e, t, n) {
|
|
|
919
919
|
}
|
|
920
920
|
return e;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Nt(e, t) {
|
|
923
923
|
var n = {}.toString.call(e);
|
|
924
924
|
return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function bn(e, t) {
|
|
927
927
|
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Ft(e, t) {
|
|
930
930
|
if (t === 0)
|
|
931
931
|
return e;
|
|
932
932
|
var n;
|
|
@@ -936,79 +936,79 @@ function _t(e, t) {
|
|
|
936
936
|
}, t);
|
|
937
937
|
};
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function Gr(e, t) {
|
|
940
940
|
var n = Object.assign({}, e);
|
|
941
941
|
return t.forEach(function(r) {
|
|
942
942
|
delete n[r];
|
|
943
943
|
}), n;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Kr(e) {
|
|
946
946
|
return e.split(/\s+/).filter(Boolean);
|
|
947
947
|
}
|
|
948
948
|
function Te(e) {
|
|
949
949
|
return [].concat(e);
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function qt(e, t) {
|
|
952
952
|
e.indexOf(t) === -1 && e.push(t);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Jr(e) {
|
|
955
955
|
return e.filter(function(t, n) {
|
|
956
956
|
return e.indexOf(t) === n;
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Qr(e) {
|
|
960
960
|
return e.split("-")[0];
|
|
961
961
|
}
|
|
962
962
|
function st(e) {
|
|
963
963
|
return [].slice.call(e);
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function zt(e) {
|
|
966
966
|
return Object.keys(e).reduce(function(t, n) {
|
|
967
967
|
return e[n] !== void 0 && (t[n] = e[n]), t;
|
|
968
968
|
}, {});
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Be() {
|
|
971
971
|
return document.createElement("div");
|
|
972
972
|
}
|
|
973
973
|
function He(e) {
|
|
974
974
|
return ["Element", "Fragment"].some(function(t) {
|
|
975
|
-
return
|
|
975
|
+
return Nt(e, t);
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
|
-
function Qr(e) {
|
|
979
|
-
return Pt(e, "NodeList");
|
|
980
|
-
}
|
|
981
978
|
function Zr(e) {
|
|
982
|
-
return
|
|
979
|
+
return Nt(e, "NodeList");
|
|
983
980
|
}
|
|
984
981
|
function ei(e) {
|
|
985
|
-
return
|
|
982
|
+
return Nt(e, "MouseEvent");
|
|
986
983
|
}
|
|
987
984
|
function ti(e) {
|
|
988
|
-
return
|
|
985
|
+
return !!(e && e._tippy && e._tippy.reference === e);
|
|
986
|
+
}
|
|
987
|
+
function ni(e) {
|
|
988
|
+
return He(e) ? [e] : Zr(e) ? st(e) : Array.isArray(e) ? e : st(document.querySelectorAll(e));
|
|
989
989
|
}
|
|
990
990
|
function dt(e, t) {
|
|
991
991
|
e.forEach(function(n) {
|
|
992
992
|
n && (n.style.transitionDuration = t + "ms");
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Yt(e, t) {
|
|
996
996
|
e.forEach(function(n) {
|
|
997
997
|
n && n.setAttribute("data-state", t);
|
|
998
998
|
});
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function ri(e) {
|
|
1001
1001
|
var t, n = Te(e), r = n[0];
|
|
1002
1002
|
return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function ii(e, t) {
|
|
1005
1005
|
var n = t.clientX, r = t.clientY;
|
|
1006
1006
|
return e.every(function(o) {
|
|
1007
|
-
var a = o.popperRect, c = o.popperState, p = o.props, u = p.interactiveBorder, l =
|
|
1007
|
+
var a = o.popperRect, c = o.popperState, p = o.props, u = p.interactiveBorder, l = Qr(c.placement), f = c.modifiersData.offset;
|
|
1008
1008
|
if (!f)
|
|
1009
1009
|
return !0;
|
|
1010
|
-
var
|
|
1011
|
-
return g ||
|
|
1010
|
+
var y = l === "bottom" ? f.top.y : 0, E = l === "top" ? f.bottom.y : 0, m = l === "right" ? f.left.x : 0, w = l === "left" ? f.right.x : 0, g = a.top - r + y > u, b = r - a.bottom - E > u, D = a.left - n + m > u, j = n - a.right - w > u;
|
|
1011
|
+
return g || b || D || j;
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
function vt(e, t, n) {
|
|
@@ -1017,7 +1017,7 @@ function vt(e, t, n) {
|
|
|
1017
1017
|
e[r](o, n);
|
|
1018
1018
|
});
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function Xt(e, t) {
|
|
1021
1021
|
for (var n = t; n; ) {
|
|
1022
1022
|
var r;
|
|
1023
1023
|
if (e.contains(n))
|
|
@@ -1028,25 +1028,25 @@ function Yt(e, t) {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
var Z = {
|
|
1030
1030
|
isTouch: !1
|
|
1031
|
-
},
|
|
1032
|
-
function
|
|
1033
|
-
Z.isTouch || (Z.isTouch = !0, window.performance && document.addEventListener("mousemove",
|
|
1031
|
+
}, Gt = 0;
|
|
1032
|
+
function oi() {
|
|
1033
|
+
Z.isTouch || (Z.isTouch = !0, window.performance && document.addEventListener("mousemove", wn));
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function wn() {
|
|
1036
1036
|
var e = performance.now();
|
|
1037
|
-
e -
|
|
1037
|
+
e - Gt < 20 && (Z.isTouch = !1, document.removeEventListener("mousemove", wn)), Gt = e;
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function ai() {
|
|
1040
1040
|
var e = document.activeElement;
|
|
1041
|
-
if (
|
|
1041
|
+
if (ti(e)) {
|
|
1042
1042
|
var t = e._tippy;
|
|
1043
1043
|
e.blur && !t.state.isVisible && e.blur();
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
document.addEventListener("touchstart",
|
|
1046
|
+
function si() {
|
|
1047
|
+
document.addEventListener("touchstart", oi, me), window.addEventListener("blur", ai);
|
|
1048
1048
|
}
|
|
1049
|
-
var
|
|
1049
|
+
var ui = typeof window < "u" && typeof document < "u", ci = ui ? (
|
|
1050
1050
|
// @ts-ignore
|
|
1051
1051
|
!!window.msCrypto
|
|
1052
1052
|
) : !1;
|
|
@@ -1054,22 +1054,22 @@ function xe(e) {
|
|
|
1054
1054
|
var t = e === "destroy" ? "n already-" : " ";
|
|
1055
1055
|
return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function Kt(e) {
|
|
1058
1058
|
var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
|
|
1059
1059
|
return e.replace(t, " ").replace(n, "").trim();
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
return
|
|
1061
|
+
function pi(e) {
|
|
1062
|
+
return Kt(`
|
|
1063
1063
|
%ctippy.js
|
|
1064
1064
|
|
|
1065
|
-
%c` +
|
|
1065
|
+
%c` + Kt(e) + `
|
|
1066
1066
|
|
|
1067
1067
|
%c👷 This is a development-only message. It will be removed in production.
|
|
1068
1068
|
`);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function On(e) {
|
|
1071
1071
|
return [
|
|
1072
|
-
|
|
1072
|
+
pi(e),
|
|
1073
1073
|
// title
|
|
1074
1074
|
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
1075
1075
|
// message
|
|
@@ -1079,32 +1079,32 @@ function wn(e) {
|
|
|
1079
1079
|
];
|
|
1080
1080
|
}
|
|
1081
1081
|
var We;
|
|
1082
|
-
process.env.NODE_ENV !== "production" &&
|
|
1083
|
-
function
|
|
1082
|
+
process.env.NODE_ENV !== "production" && fi();
|
|
1083
|
+
function fi() {
|
|
1084
1084
|
We = /* @__PURE__ */ new Set();
|
|
1085
1085
|
}
|
|
1086
1086
|
function ae(e, t) {
|
|
1087
1087
|
if (e && !We.has(t)) {
|
|
1088
1088
|
var n;
|
|
1089
|
-
We.add(t), (n = console).warn.apply(n,
|
|
1089
|
+
We.add(t), (n = console).warn.apply(n, On(t));
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function Ot(e, t) {
|
|
1093
1093
|
if (e && !We.has(t)) {
|
|
1094
1094
|
var n;
|
|
1095
|
-
We.add(t), (n = console).error.apply(n,
|
|
1095
|
+
We.add(t), (n = console).error.apply(n, On(t));
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function li(e) {
|
|
1099
1099
|
var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
1100
|
-
|
|
1100
|
+
Ot(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ot(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1101
1101
|
}
|
|
1102
|
-
var
|
|
1102
|
+
var En = {
|
|
1103
1103
|
animateFill: !1,
|
|
1104
1104
|
followCursor: !1,
|
|
1105
1105
|
inlinePositioning: !1,
|
|
1106
1106
|
sticky: !1
|
|
1107
|
-
},
|
|
1107
|
+
}, di = {
|
|
1108
1108
|
allowHTML: !1,
|
|
1109
1109
|
animation: "fade",
|
|
1110
1110
|
arrow: !0,
|
|
@@ -1115,7 +1115,7 @@ var On = {
|
|
|
1115
1115
|
theme: "",
|
|
1116
1116
|
zIndex: 9999
|
|
1117
1117
|
}, q = Object.assign({
|
|
1118
|
-
appendTo:
|
|
1118
|
+
appendTo: yn,
|
|
1119
1119
|
aria: {
|
|
1120
1120
|
content: "auto",
|
|
1121
1121
|
expanded: "auto"
|
|
@@ -1162,14 +1162,14 @@ var On = {
|
|
|
1162
1162
|
touch: !0,
|
|
1163
1163
|
trigger: "mouseenter focus",
|
|
1164
1164
|
triggerTarget: null
|
|
1165
|
-
},
|
|
1166
|
-
process.env.NODE_ENV !== "production" &&
|
|
1165
|
+
}, En, di), vi = Object.keys(q), mi = function(t) {
|
|
1166
|
+
process.env.NODE_ENV !== "production" && Tn(t, []);
|
|
1167
1167
|
var n = Object.keys(t);
|
|
1168
1168
|
n.forEach(function(r) {
|
|
1169
1169
|
q[r] = t[r];
|
|
1170
1170
|
});
|
|
1171
1171
|
};
|
|
1172
|
-
function
|
|
1172
|
+
function xn(e) {
|
|
1173
1173
|
var t = e.plugins || [], n = t.reduce(function(r, o) {
|
|
1174
1174
|
var a = o.name, c = o.defaultValue;
|
|
1175
1175
|
if (a) {
|
|
@@ -1180,10 +1180,10 @@ function En(e) {
|
|
|
1180
1180
|
}, {});
|
|
1181
1181
|
return Object.assign({}, e, n);
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
var n = t ? Object.keys(
|
|
1183
|
+
function hi(e, t) {
|
|
1184
|
+
var n = t ? Object.keys(xn(Object.assign({}, q, {
|
|
1185
1185
|
plugins: t
|
|
1186
|
-
}))) :
|
|
1186
|
+
}))) : vi, r = n.reduce(function(o, a) {
|
|
1187
1187
|
var c = (e.getAttribute("data-tippy-" + a) || "").trim();
|
|
1188
1188
|
if (!c)
|
|
1189
1189
|
return o;
|
|
@@ -1199,20 +1199,20 @@ function mi(e, t) {
|
|
|
1199
1199
|
}, {});
|
|
1200
1200
|
return r;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Jt(e, t) {
|
|
1203
1203
|
var n = Object.assign({}, t, {
|
|
1204
|
-
content:
|
|
1205
|
-
}, t.ignoreAttributes ? {} :
|
|
1204
|
+
content: bn(t.content, [e])
|
|
1205
|
+
}, t.ignoreAttributes ? {} : hi(e, t.plugins));
|
|
1206
1206
|
return n.aria = Object.assign({}, q.aria, n.aria), n.aria = {
|
|
1207
1207
|
expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
|
|
1208
1208
|
content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
|
|
1209
1209
|
}, n;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Tn(e, t) {
|
|
1212
1212
|
e === void 0 && (e = {}), t === void 0 && (t = []);
|
|
1213
1213
|
var n = Object.keys(e);
|
|
1214
1214
|
n.forEach(function(r) {
|
|
1215
|
-
var o =
|
|
1215
|
+
var o = Gr(q, Object.keys(En)), a = !Xr(o, r);
|
|
1216
1216
|
a && (a = t.filter(function(c) {
|
|
1217
1217
|
return c.name === r;
|
|
1218
1218
|
}).length === 0), ae(a, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -1221,52 +1221,52 @@ function xn(e, t) {
|
|
|
1221
1221
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
|
-
var
|
|
1224
|
+
var gi = function() {
|
|
1225
1225
|
return "innerHTML";
|
|
1226
1226
|
};
|
|
1227
|
-
function
|
|
1228
|
-
e[
|
|
1227
|
+
function Et(e, t) {
|
|
1228
|
+
e[gi()] = t;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1231
|
-
var t =
|
|
1232
|
-
return e === !0 ? t.className =
|
|
1230
|
+
function Qt(e) {
|
|
1231
|
+
var t = Be();
|
|
1232
|
+
return e === !0 ? t.className = hn : (t.className = gn, He(e) ? t.appendChild(e) : Et(t, e)), t;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1235
|
-
He(t.content) ? (
|
|
1234
|
+
function Zt(e, t) {
|
|
1235
|
+
He(t.content) ? (Et(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Et(e, t.content) : e.textContent = t.content);
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function xt(e) {
|
|
1238
1238
|
var t = e.firstElementChild, n = st(t.children);
|
|
1239
1239
|
return {
|
|
1240
1240
|
box: t,
|
|
1241
1241
|
content: n.find(function(r) {
|
|
1242
|
-
return r.classList.contains(
|
|
1242
|
+
return r.classList.contains(mn);
|
|
1243
1243
|
}),
|
|
1244
1244
|
arrow: n.find(function(r) {
|
|
1245
|
-
return r.classList.contains(
|
|
1245
|
+
return r.classList.contains(hn) || r.classList.contains(gn);
|
|
1246
1246
|
}),
|
|
1247
1247
|
backdrop: n.find(function(r) {
|
|
1248
|
-
return r.classList.contains(
|
|
1248
|
+
return r.classList.contains(Yr);
|
|
1249
1249
|
})
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1253
|
-
var t =
|
|
1254
|
-
n.className =
|
|
1255
|
-
var r =
|
|
1256
|
-
r.className =
|
|
1252
|
+
function An(e) {
|
|
1253
|
+
var t = Be(), n = Be();
|
|
1254
|
+
n.className = zr, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
1255
|
+
var r = Be();
|
|
1256
|
+
r.className = mn, r.setAttribute("data-state", "hidden"), Zt(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
|
|
1257
1257
|
function o(a, c) {
|
|
1258
|
-
var p =
|
|
1259
|
-
c.theme ? u.setAttribute("data-theme", c.theme) : u.removeAttribute("data-theme"), typeof c.animation == "string" ? u.setAttribute("data-animation", c.animation) : u.removeAttribute("data-animation"), c.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? u.setAttribute("role", c.role) : u.removeAttribute("role"), (a.content !== c.content || a.allowHTML !== c.allowHTML) &&
|
|
1258
|
+
var p = xt(t), u = p.box, l = p.content, f = p.arrow;
|
|
1259
|
+
c.theme ? u.setAttribute("data-theme", c.theme) : u.removeAttribute("data-theme"), typeof c.animation == "string" ? u.setAttribute("data-animation", c.animation) : u.removeAttribute("data-animation"), c.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? u.setAttribute("role", c.role) : u.removeAttribute("role"), (a.content !== c.content || a.allowHTML !== c.allowHTML) && Zt(l, e.props), c.arrow ? f ? a.arrow !== c.arrow && (u.removeChild(f), u.appendChild(Qt(c.arrow))) : u.appendChild(Qt(c.arrow)) : f && u.removeChild(f);
|
|
1260
1260
|
}
|
|
1261
1261
|
return {
|
|
1262
1262
|
popper: t,
|
|
1263
1263
|
onUpdate: o
|
|
1264
1264
|
};
|
|
1265
1265
|
}
|
|
1266
|
-
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1269
|
-
var n =
|
|
1266
|
+
An.$$tippy = !0;
|
|
1267
|
+
var yi = 1, it = [], mt = [];
|
|
1268
|
+
function bi(e, t) {
|
|
1269
|
+
var n = Jt(e, Object.assign({}, q, xn(zt(t)))), r, o, a, c = !1, p = !1, u = !1, l = !1, f, y, E, m = [], w = Ft(ze, n.interactiveDebounce), g, b = yi++, D = null, j = Jr(n.plugins), N = {
|
|
1270
1270
|
// Is the instance currently enabled?
|
|
1271
1271
|
isEnabled: !0,
|
|
1272
1272
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1279,33 +1279,33 @@ function yi(e, t) {
|
|
|
1279
1279
|
isShown: !1
|
|
1280
1280
|
}, i = {
|
|
1281
1281
|
// properties
|
|
1282
|
-
id:
|
|
1282
|
+
id: b,
|
|
1283
1283
|
reference: e,
|
|
1284
|
-
popper:
|
|
1284
|
+
popper: Be(),
|
|
1285
1285
|
popperInstance: D,
|
|
1286
1286
|
props: n,
|
|
1287
1287
|
state: N,
|
|
1288
|
-
plugins:
|
|
1288
|
+
plugins: j,
|
|
1289
1289
|
// methods
|
|
1290
1290
|
clearDelayTimeouts: Je,
|
|
1291
1291
|
setProps: Qe,
|
|
1292
1292
|
setContent: Ze,
|
|
1293
1293
|
show: jn,
|
|
1294
|
-
hide:
|
|
1295
|
-
hideWithInteractivity:
|
|
1294
|
+
hide: Ln,
|
|
1295
|
+
hideWithInteractivity: Pn,
|
|
1296
1296
|
enable: Re,
|
|
1297
1297
|
disable: Ke,
|
|
1298
|
-
unmount:
|
|
1299
|
-
destroy:
|
|
1298
|
+
unmount: Nn,
|
|
1299
|
+
destroy: Rn
|
|
1300
1300
|
};
|
|
1301
1301
|
if (!n.render)
|
|
1302
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1302
|
+
return process.env.NODE_ENV !== "production" && Ot(!0, "render() function has not been supplied."), i;
|
|
1303
1303
|
var x = n.render(i), d = x.popper, P = x.onUpdate;
|
|
1304
1304
|
d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
|
|
1305
|
-
var
|
|
1305
|
+
var k = j.map(function(s) {
|
|
1306
1306
|
return s.fn(i);
|
|
1307
1307
|
}), A = e.hasAttribute("aria-expanded");
|
|
1308
|
-
return we(), H(), V(),
|
|
1308
|
+
return we(), H(), V(), B("onCreate", [i]), n.showOnCreate && Ne(), d.addEventListener("mouseenter", function() {
|
|
1309
1309
|
i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
|
|
1310
1310
|
}), d.addEventListener("mouseleave", function() {
|
|
1311
1311
|
i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && L().addEventListener("mousemove", w);
|
|
@@ -1326,10 +1326,10 @@ function yi(e, t) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
function L() {
|
|
1328
1328
|
var s = R().parentNode;
|
|
1329
|
-
return s ?
|
|
1329
|
+
return s ? ri(s) : document;
|
|
1330
1330
|
}
|
|
1331
1331
|
function O() {
|
|
1332
|
-
return
|
|
1332
|
+
return xt(d);
|
|
1333
1333
|
}
|
|
1334
1334
|
function I(s) {
|
|
1335
1335
|
return i.state.isMounted && !i.state.isVisible || Z.isTouch || f && f.type === "focus" ? 0 : lt(i.props.delay, s ? 0 : 1, q.delay);
|
|
@@ -1337,19 +1337,19 @@ function yi(e, t) {
|
|
|
1337
1337
|
function V(s) {
|
|
1338
1338
|
s === void 0 && (s = !1), d.style.pointerEvents = i.props.interactive && !s ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1341
|
-
if (h === void 0 && (h = !0),
|
|
1340
|
+
function B(s, v, h) {
|
|
1341
|
+
if (h === void 0 && (h = !0), k.forEach(function(T) {
|
|
1342
1342
|
T[s] && T[s].apply(T, v);
|
|
1343
1343
|
}), h) {
|
|
1344
|
-
var
|
|
1345
|
-
(
|
|
1344
|
+
var S;
|
|
1345
|
+
(S = i.props)[s].apply(S, v);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
function W() {
|
|
1349
1349
|
var s = i.props.aria;
|
|
1350
1350
|
if (s.content) {
|
|
1351
|
-
var v = "aria-" + s.content, h = d.id,
|
|
1352
|
-
|
|
1351
|
+
var v = "aria-" + s.content, h = d.id, S = Te(i.props.triggerTarget || e);
|
|
1352
|
+
S.forEach(function(T) {
|
|
1353
1353
|
var U = T.getAttribute(v);
|
|
1354
1354
|
if (i.state.isVisible)
|
|
1355
1355
|
T.setAttribute(v, U ? U + " " + h : h);
|
|
@@ -1376,14 +1376,14 @@ function yi(e, t) {
|
|
|
1376
1376
|
function Q(s) {
|
|
1377
1377
|
if (!(Z.isTouch && (u || s.type === "mousedown"))) {
|
|
1378
1378
|
var v = s.composedPath && s.composedPath()[0] || s.target;
|
|
1379
|
-
if (!(i.props.interactive &&
|
|
1379
|
+
if (!(i.props.interactive && Xt(d, v))) {
|
|
1380
1380
|
if (Te(i.props.triggerTarget || e).some(function(h) {
|
|
1381
|
-
return
|
|
1381
|
+
return Xt(h, v);
|
|
1382
1382
|
})) {
|
|
1383
1383
|
if (Z.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
|
|
1384
1384
|
return;
|
|
1385
1385
|
} else
|
|
1386
|
-
|
|
1386
|
+
B("onClickOutside", [i, s]);
|
|
1387
1387
|
i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), p = !0, setTimeout(function() {
|
|
1388
1388
|
p = !1;
|
|
1389
1389
|
}), i.state.isMounted || re());
|
|
@@ -1414,17 +1414,17 @@ function yi(e, t) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
function be(s, v) {
|
|
1416
1416
|
var h = O().box;
|
|
1417
|
-
function
|
|
1418
|
-
T.target === h && (vt(h, "remove",
|
|
1417
|
+
function S(T) {
|
|
1418
|
+
T.target === h && (vt(h, "remove", S), v());
|
|
1419
1419
|
}
|
|
1420
1420
|
if (s === 0)
|
|
1421
1421
|
return v();
|
|
1422
|
-
vt(h, "remove",
|
|
1422
|
+
vt(h, "remove", y), vt(h, "add", S), y = S;
|
|
1423
1423
|
}
|
|
1424
1424
|
function ue(s, v, h) {
|
|
1425
1425
|
h === void 0 && (h = !1);
|
|
1426
|
-
var
|
|
1427
|
-
|
|
1426
|
+
var S = Te(i.props.triggerTarget || e);
|
|
1427
|
+
S.forEach(function(T) {
|
|
1428
1428
|
T.addEventListener(s, v, h), m.push({
|
|
1429
1429
|
node: T,
|
|
1430
1430
|
eventType: s,
|
|
@@ -1434,18 +1434,18 @@ function yi(e, t) {
|
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
1436
|
function we() {
|
|
1437
|
-
M() && (ue("touchstart",
|
|
1437
|
+
M() && (ue("touchstart", je, {
|
|
1438
1438
|
passive: !0
|
|
1439
1439
|
}), ue("touchend", Ye, {
|
|
1440
1440
|
passive: !0
|
|
1441
|
-
})),
|
|
1441
|
+
})), Kr(i.props.trigger).forEach(function(s) {
|
|
1442
1442
|
if (s !== "manual")
|
|
1443
|
-
switch (ue(s,
|
|
1443
|
+
switch (ue(s, je), s) {
|
|
1444
1444
|
case "mouseenter":
|
|
1445
1445
|
ue("mouseleave", Ye);
|
|
1446
1446
|
break;
|
|
1447
1447
|
case "focus":
|
|
1448
|
-
ue(
|
|
1448
|
+
ue(ci ? "focusout" : "blur", Le);
|
|
1449
1449
|
break;
|
|
1450
1450
|
case "focusin":
|
|
1451
1451
|
ue("focusout", Le);
|
|
@@ -1455,23 +1455,23 @@ function yi(e, t) {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
function qe() {
|
|
1457
1457
|
m.forEach(function(s) {
|
|
1458
|
-
var v = s.node, h = s.eventType,
|
|
1459
|
-
v.removeEventListener(h,
|
|
1458
|
+
var v = s.node, h = s.eventType, S = s.handler, T = s.options;
|
|
1459
|
+
v.removeEventListener(h, S, T);
|
|
1460
1460
|
}), m = [];
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function je(s) {
|
|
1463
1463
|
var v, h = !1;
|
|
1464
1464
|
if (!(!i.state.isEnabled || Pe(s) || p)) {
|
|
1465
|
-
var
|
|
1466
|
-
f = s, g = s.currentTarget, H(), !i.state.isVisible &&
|
|
1465
|
+
var S = ((v = f) == null ? void 0 : v.type) === "focus";
|
|
1466
|
+
f = s, g = s.currentTarget, H(), !i.state.isVisible && ei(s) && it.forEach(function(T) {
|
|
1467
1467
|
return T(s);
|
|
1468
|
-
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Ne(s), s.type === "click" && (c = !h), h && !
|
|
1468
|
+
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Ne(s), s.type === "click" && (c = !h), h && !S && de(s);
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
function ze(s) {
|
|
1472
1472
|
var v = s.target, h = R().contains(v) || d.contains(v);
|
|
1473
1473
|
if (!(s.type === "mousemove" && h)) {
|
|
1474
|
-
var
|
|
1474
|
+
var S = ce().concat(d).map(function(T) {
|
|
1475
1475
|
var U, Y = T._tippy, Oe = (U = Y.popperInstance) == null ? void 0 : U.state;
|
|
1476
1476
|
return Oe ? {
|
|
1477
1477
|
popperRect: T.getBoundingClientRect(),
|
|
@@ -1479,7 +1479,7 @@ function yi(e, t) {
|
|
|
1479
1479
|
props: n
|
|
1480
1480
|
} : null;
|
|
1481
1481
|
}).filter(Boolean);
|
|
1482
|
-
|
|
1482
|
+
ii(S, s) && (fe(), de(s));
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
1485
|
function Ye(s) {
|
|
@@ -1500,10 +1500,10 @@ function yi(e, t) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
function Xe() {
|
|
1502
1502
|
Ge();
|
|
1503
|
-
var s = i.props, v = s.popperOptions, h = s.placement,
|
|
1503
|
+
var s = i.props, v = s.popperOptions, h = s.placement, S = s.offset, T = s.getReferenceClientRect, U = s.moveTransition, Y = $() ? xt(d).arrow : null, Oe = T ? {
|
|
1504
1504
|
getBoundingClientRect: T,
|
|
1505
1505
|
contextElement: T.contextElement || R()
|
|
1506
|
-
} : e,
|
|
1506
|
+
} : e, Rt = {
|
|
1507
1507
|
name: "$$tippy",
|
|
1508
1508
|
enabled: !0,
|
|
1509
1509
|
phase: "beforeWrite",
|
|
@@ -1511,7 +1511,7 @@ function yi(e, t) {
|
|
|
1511
1511
|
fn: function(et) {
|
|
1512
1512
|
var Ee = et.state;
|
|
1513
1513
|
if ($()) {
|
|
1514
|
-
var
|
|
1514
|
+
var Mn = O(), pt = Mn.box;
|
|
1515
1515
|
["placement", "reference-hidden", "escaped"].forEach(function(tt) {
|
|
1516
1516
|
tt === "placement" ? pt.setAttribute("data-placement", Ee.placement) : Ee.attributes.popper["data-popper-" + tt] ? pt.setAttribute("data-" + tt, "") : pt.removeAttribute("data-" + tt);
|
|
1517
1517
|
}), Ee.attributes.popper = {};
|
|
@@ -1520,7 +1520,7 @@ function yi(e, t) {
|
|
|
1520
1520
|
}, ve = [{
|
|
1521
1521
|
name: "offset",
|
|
1522
1522
|
options: {
|
|
1523
|
-
offset:
|
|
1523
|
+
offset: S
|
|
1524
1524
|
}
|
|
1525
1525
|
}, {
|
|
1526
1526
|
name: "preventOverflow",
|
|
@@ -1542,14 +1542,14 @@ function yi(e, t) {
|
|
|
1542
1542
|
options: {
|
|
1543
1543
|
adaptive: !U
|
|
1544
1544
|
}
|
|
1545
|
-
},
|
|
1545
|
+
}, Rt];
|
|
1546
1546
|
$() && Y && ve.push({
|
|
1547
1547
|
name: "arrow",
|
|
1548
1548
|
options: {
|
|
1549
1549
|
element: Y,
|
|
1550
1550
|
padding: 3
|
|
1551
1551
|
}
|
|
1552
|
-
}), ve.push.apply(ve, v?.modifiers || []), i.popperInstance =
|
|
1552
|
+
}), ve.push.apply(ve, v?.modifiers || []), i.popperInstance = qr(Oe, d, Object.assign({}, v, {
|
|
1553
1553
|
placement: h,
|
|
1554
1554
|
onFirstUpdate: E,
|
|
1555
1555
|
modifiers: ve
|
|
@@ -1560,7 +1560,7 @@ function yi(e, t) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
function oe() {
|
|
1562
1562
|
var s = i.props.appendTo, v, h = R();
|
|
1563
|
-
i.props.interactive && s ===
|
|
1563
|
+
i.props.interactive && s === yn || s === "parent" ? v = h.parentNode : v = bn(s, [h]), v.contains(d) || v.appendChild(d), i.state.isMounted = !0, Xe(), process.env.NODE_ENV !== "production" && ae(i.props.interactive && s === q.appendTo && h.nextElementSibling !== d, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
1564
1564
|
|
|
1565
1565
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
1566
1566
|
|
|
@@ -1572,14 +1572,14 @@ function yi(e, t) {
|
|
|
1572
1572
|
return st(d.querySelectorAll("[data-tippy-root]"));
|
|
1573
1573
|
}
|
|
1574
1574
|
function Ne(s) {
|
|
1575
|
-
i.clearDelayTimeouts(), s &&
|
|
1576
|
-
var v = I(!0), h = C(),
|
|
1577
|
-
Z.isTouch &&
|
|
1575
|
+
i.clearDelayTimeouts(), s && B("onTrigger", [i, s]), J();
|
|
1576
|
+
var v = I(!0), h = C(), S = h[0], T = h[1];
|
|
1577
|
+
Z.isTouch && S === "hold" && T && (v = T), v ? r = setTimeout(function() {
|
|
1578
1578
|
i.show();
|
|
1579
1579
|
}, v) : i.show();
|
|
1580
1580
|
}
|
|
1581
1581
|
function de(s) {
|
|
1582
|
-
if (i.clearDelayTimeouts(),
|
|
1582
|
+
if (i.clearDelayTimeouts(), B("onUntrigger", [i, s]), !i.state.isVisible) {
|
|
1583
1583
|
re();
|
|
1584
1584
|
return;
|
|
1585
1585
|
}
|
|
@@ -1603,15 +1603,15 @@ function yi(e, t) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
function Qe(s) {
|
|
1605
1605
|
if (process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("setProps")), !i.state.isDestroyed) {
|
|
1606
|
-
|
|
1607
|
-
var v = i.props, h =
|
|
1606
|
+
B("onBeforeUpdate", [i, s]), qe();
|
|
1607
|
+
var v = i.props, h = Jt(e, Object.assign({}, v, zt(s), {
|
|
1608
1608
|
ignoreAttributes: !0
|
|
1609
1609
|
}));
|
|
1610
|
-
i.props = h, we(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w =
|
|
1611
|
-
|
|
1612
|
-
}) : h.triggerTarget && e.removeAttribute("aria-expanded"), H(), V(), P && P(v, h), i.popperInstance && (Xe(), ce().forEach(function(
|
|
1613
|
-
requestAnimationFrame(
|
|
1614
|
-
})),
|
|
1610
|
+
i.props = h, we(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = Ft(ze, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? Te(v.triggerTarget).forEach(function(S) {
|
|
1611
|
+
S.removeAttribute("aria-expanded");
|
|
1612
|
+
}) : h.triggerTarget && e.removeAttribute("aria-expanded"), H(), V(), P && P(v, h), i.popperInstance && (Xe(), ce().forEach(function(S) {
|
|
1613
|
+
requestAnimationFrame(S._tippy.popperInstance.forceUpdate);
|
|
1614
|
+
})), B("onAfterUpdate", [i, s]);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
function Ze(s) {
|
|
@@ -1621,8 +1621,8 @@ function yi(e, t) {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
function jn() {
|
|
1623
1623
|
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("show"));
|
|
1624
|
-
var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled,
|
|
1625
|
-
if (!(s || v || h ||
|
|
1624
|
+
var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = Z.isTouch && !i.props.touch, T = lt(i.props.duration, 0, q.duration);
|
|
1625
|
+
if (!(s || v || h || S) && !R().hasAttribute("disabled") && (B("onShow", [i], !1), i.props.onShow(i) !== !1)) {
|
|
1626
1626
|
if (i.state.isVisible = !0, $() && (d.style.visibility = "visible"), V(), J(), i.state.isMounted || (d.style.transition = "none"), $()) {
|
|
1627
1627
|
var U = O(), Y = U.box, Oe = U.content;
|
|
1628
1628
|
dt([Y, Oe], 0);
|
|
@@ -1632,47 +1632,47 @@ function yi(e, t) {
|
|
|
1632
1632
|
if (!(!i.state.isVisible || l)) {
|
|
1633
1633
|
if (l = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, $() && i.props.animation) {
|
|
1634
1634
|
var ct = O(), et = ct.box, Ee = ct.content;
|
|
1635
|
-
dt([et, Ee], T),
|
|
1635
|
+
dt([et, Ee], T), Yt([et, Ee], "visible");
|
|
1636
1636
|
}
|
|
1637
|
-
W(), H(),
|
|
1638
|
-
i.state.isShown = !0,
|
|
1637
|
+
W(), H(), qt(mt, i), (ve = i.popperInstance) == null || ve.forceUpdate(), B("onMount", [i]), i.props.animation && $() && ie(T, function() {
|
|
1638
|
+
i.state.isShown = !0, B("onShown", [i]);
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
1641
1641
|
}, oe();
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function Ln() {
|
|
1645
1645
|
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("hide"));
|
|
1646
|
-
var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled,
|
|
1647
|
-
if (!(s || v || h) && (
|
|
1646
|
+
var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = lt(i.props.duration, 1, q.duration);
|
|
1647
|
+
if (!(s || v || h) && (B("onHide", [i], !1), i.props.onHide(i) !== !1)) {
|
|
1648
1648
|
if (i.state.isVisible = !1, i.state.isShown = !1, l = !1, c = !1, $() && (d.style.visibility = "hidden"), fe(), re(), V(!0), $()) {
|
|
1649
1649
|
var T = O(), U = T.box, Y = T.content;
|
|
1650
|
-
i.props.animation && (dt([U, Y],
|
|
1650
|
+
i.props.animation && (dt([U, Y], S), Yt([U, Y], "hidden"));
|
|
1651
1651
|
}
|
|
1652
|
-
W(), H(), i.props.animation ? $() && ye(
|
|
1652
|
+
W(), H(), i.props.animation ? $() && ye(S, i.unmount) : i.unmount();
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1656
|
-
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("hideWithInteractivity")), L().addEventListener("mousemove", w),
|
|
1655
|
+
function Pn(s) {
|
|
1656
|
+
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("hideWithInteractivity")), L().addEventListener("mousemove", w), qt(it, w), w(s);
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function Nn() {
|
|
1659
1659
|
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Ge(), ce().forEach(function(s) {
|
|
1660
1660
|
s._tippy.unmount();
|
|
1661
1661
|
}), d.parentNode && d.parentNode.removeChild(d), mt = mt.filter(function(s) {
|
|
1662
1662
|
return s !== i;
|
|
1663
|
-
}), i.state.isMounted = !1,
|
|
1663
|
+
}), i.state.isMounted = !1, B("onHidden", [i]));
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), qe(), delete e._tippy, i.state.isDestroyed = !0,
|
|
1665
|
+
function Rn() {
|
|
1666
|
+
process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, xe("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), qe(), delete e._tippy, i.state.isDestroyed = !0, B("onDestroy", [i]));
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
1669
|
function Fe(e, t) {
|
|
1670
1670
|
t === void 0 && (t = {});
|
|
1671
1671
|
var n = q.plugins.concat(t.plugins || []);
|
|
1672
|
-
process.env.NODE_ENV !== "production" && (
|
|
1672
|
+
process.env.NODE_ENV !== "production" && (li(e), Tn(t, n)), si();
|
|
1673
1673
|
var r = Object.assign({}, t, {
|
|
1674
1674
|
plugins: n
|
|
1675
|
-
}), o =
|
|
1675
|
+
}), o = ni(e);
|
|
1676
1676
|
if (process.env.NODE_ENV !== "production") {
|
|
1677
1677
|
var a = He(r.content), c = o.length > 1;
|
|
1678
1678
|
ae(a && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
@@ -1683,15 +1683,15 @@ function Fe(e, t) {
|
|
|
1683
1683
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
1684
1684
|
}
|
|
1685
1685
|
var p = o.reduce(function(u, l) {
|
|
1686
|
-
var f = l &&
|
|
1686
|
+
var f = l && bi(l, r);
|
|
1687
1687
|
return f && u.push(f), u;
|
|
1688
1688
|
}, []);
|
|
1689
1689
|
return He(e) ? p[0] : p;
|
|
1690
1690
|
}
|
|
1691
1691
|
Fe.defaultProps = q;
|
|
1692
|
-
Fe.setDefaultProps =
|
|
1692
|
+
Fe.setDefaultProps = mi;
|
|
1693
1693
|
Fe.currentInput = Z;
|
|
1694
|
-
Object.assign({},
|
|
1694
|
+
Object.assign({}, sn, {
|
|
1695
1695
|
effect: function(t) {
|
|
1696
1696
|
var n = t.state, r = {
|
|
1697
1697
|
popper: {
|
|
@@ -1709,29 +1709,29 @@ Object.assign({}, an, {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
Fe.setDefaultProps({
|
|
1712
|
-
render:
|
|
1712
|
+
render: An
|
|
1713
1713
|
});
|
|
1714
|
-
function
|
|
1714
|
+
function Dn(e, t) {
|
|
1715
1715
|
if (e == null) return {};
|
|
1716
1716
|
var n = {}, r = Object.keys(e), o, a;
|
|
1717
1717
|
for (a = 0; a < r.length; a++)
|
|
1718
1718
|
o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1719
1719
|
return n;
|
|
1720
1720
|
}
|
|
1721
|
-
var
|
|
1722
|
-
function
|
|
1721
|
+
var Cn = typeof window < "u" && typeof document < "u";
|
|
1722
|
+
function Tt(e, t) {
|
|
1723
1723
|
e && (typeof e == "function" && e(t), {}.hasOwnProperty.call(e, "current") && (e.current = t));
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1726
|
-
return
|
|
1725
|
+
function en() {
|
|
1726
|
+
return Cn && document.createElement("div");
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function wi(e) {
|
|
1729
1729
|
var t = {
|
|
1730
1730
|
"data-placement": e.placement
|
|
1731
1731
|
};
|
|
1732
1732
|
return e.referenceHidden && (t["data-reference-hidden"] = ""), e.escaped && (t["data-escaped"] = ""), t;
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function Sn(e, t) {
|
|
1735
1735
|
if (e === t)
|
|
1736
1736
|
return !0;
|
|
1737
1737
|
if (typeof e == "object" && e != null && typeof t == "object" && t != null) {
|
|
@@ -1739,7 +1739,7 @@ function Cn(e, t) {
|
|
|
1739
1739
|
return !1;
|
|
1740
1740
|
for (var n in e)
|
|
1741
1741
|
if (t.hasOwnProperty(n)) {
|
|
1742
|
-
if (!
|
|
1742
|
+
if (!Sn(e[n], t[n]))
|
|
1743
1743
|
return !1;
|
|
1744
1744
|
} else
|
|
1745
1745
|
return !1;
|
|
@@ -1747,33 +1747,33 @@ function Cn(e, t) {
|
|
|
1747
1747
|
} else
|
|
1748
1748
|
return !1;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Oi(e) {
|
|
1751
1751
|
var t = [];
|
|
1752
1752
|
return e.forEach(function(n) {
|
|
1753
1753
|
t.find(function(r) {
|
|
1754
|
-
return
|
|
1754
|
+
return Sn(n, r);
|
|
1755
1755
|
}) || t.push(n);
|
|
1756
1756
|
}), t;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Ei(e, t) {
|
|
1759
1759
|
var n, r;
|
|
1760
1760
|
return Object.assign({}, t, {
|
|
1761
1761
|
popperOptions: Object.assign({}, e.popperOptions, t.popperOptions, {
|
|
1762
|
-
modifiers:
|
|
1762
|
+
modifiers: Oi([].concat(((n = e.popperOptions) == null ? void 0 : n.modifiers) || [], ((r = t.popperOptions) == null ? void 0 : r.modifiers) || []))
|
|
1763
1763
|
})
|
|
1764
1764
|
});
|
|
1765
1765
|
}
|
|
1766
|
-
var ht =
|
|
1767
|
-
function
|
|
1768
|
-
var t =
|
|
1766
|
+
var ht = Cn ? kn : Bn;
|
|
1767
|
+
function xi(e) {
|
|
1768
|
+
var t = yt();
|
|
1769
1769
|
return t.current || (t.current = typeof e == "function" ? e() : e), t.current;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function tn(e, t, n) {
|
|
1772
1772
|
n.split(/\s+/).forEach(function(r) {
|
|
1773
1773
|
r && e.classList[t](r);
|
|
1774
1774
|
});
|
|
1775
1775
|
}
|
|
1776
|
-
var
|
|
1776
|
+
var Ti = {
|
|
1777
1777
|
name: "className",
|
|
1778
1778
|
defaultValue: "",
|
|
1779
1779
|
fn: function(t) {
|
|
@@ -1786,10 +1786,10 @@ var xi = {
|
|
|
1786
1786
|
process.env.NODE_ENV !== "production" && console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with", "`render` prop. Place the className on the element you are", "rendering."].join(" "));
|
|
1787
1787
|
return;
|
|
1788
1788
|
}
|
|
1789
|
-
|
|
1789
|
+
tn(n, "add", t.props.className);
|
|
1790
1790
|
}
|
|
1791
1791
|
function a() {
|
|
1792
|
-
r() &&
|
|
1792
|
+
r() && tn(n, "remove", t.props.className);
|
|
1793
1793
|
}
|
|
1794
1794
|
return {
|
|
1795
1795
|
onCreate: o,
|
|
@@ -1798,13 +1798,13 @@ var xi = {
|
|
|
1798
1798
|
};
|
|
1799
1799
|
}
|
|
1800
1800
|
};
|
|
1801
|
-
function
|
|
1801
|
+
function Ai(e) {
|
|
1802
1802
|
function t(n) {
|
|
1803
|
-
var r = n.children, o = n.content, a = n.visible, c = n.singleton, p = n.render, u = n.reference, l = n.disabled, f = l === void 0 ? !1 : l,
|
|
1803
|
+
var r = n.children, o = n.content, a = n.visible, c = n.singleton, p = n.render, u = n.reference, l = n.disabled, f = l === void 0 ? !1 : l, y = n.ignoreAttributes, E = y === void 0 ? !0 : y;
|
|
1804
1804
|
n.__source, n.__self;
|
|
1805
|
-
var m =
|
|
1805
|
+
var m = Dn(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), w = a !== void 0, g = c !== void 0, b = ft(!1), D = b[0], j = b[1], N = ft({}), i = N[0], x = N[1], d = ft(), P = d[0], k = d[1], A = xi(function() {
|
|
1806
1806
|
return {
|
|
1807
|
-
container:
|
|
1807
|
+
container: en(),
|
|
1808
1808
|
renders: 1
|
|
1809
1809
|
};
|
|
1810
1810
|
}), C = Object.assign({
|
|
@@ -1821,11 +1821,11 @@ function Ti(e) {
|
|
|
1821
1821
|
fn: function() {
|
|
1822
1822
|
return {
|
|
1823
1823
|
onTrigger: function(I, V) {
|
|
1824
|
-
var
|
|
1824
|
+
var B = c.data.children.find(function(W) {
|
|
1825
1825
|
var H = W.instance;
|
|
1826
1826
|
return H.reference === V.currentTarget;
|
|
1827
1827
|
});
|
|
1828
|
-
I.state.$$activeSingletonInstance =
|
|
1828
|
+
I.state.$$activeSingletonInstance = B.instance, k(B.content);
|
|
1829
1829
|
}
|
|
1830
1830
|
};
|
|
1831
1831
|
}
|
|
@@ -1840,15 +1840,15 @@ function Ti(e) {
|
|
|
1840
1840
|
return ht(function() {
|
|
1841
1841
|
var L = u;
|
|
1842
1842
|
u && u.hasOwnProperty("current") && (L = u.current);
|
|
1843
|
-
var O = e(L || A.ref ||
|
|
1844
|
-
plugins: [
|
|
1843
|
+
var O = e(L || A.ref || en(), Object.assign({}, M, {
|
|
1844
|
+
plugins: [Ti].concat(C.plugins || [])
|
|
1845
1845
|
}));
|
|
1846
1846
|
return A.instance = O, f && O.disable(), a && O.show(), g && c.hook({
|
|
1847
1847
|
instance: O,
|
|
1848
1848
|
content: o,
|
|
1849
1849
|
props: M,
|
|
1850
|
-
setSingletonContent:
|
|
1851
|
-
}),
|
|
1850
|
+
setSingletonContent: k
|
|
1851
|
+
}), j(!0), function() {
|
|
1852
1852
|
O.destroy(), c?.cleanup(O);
|
|
1853
1853
|
};
|
|
1854
1854
|
}, R), ht(function() {
|
|
@@ -1858,11 +1858,11 @@ function Ti(e) {
|
|
|
1858
1858
|
return;
|
|
1859
1859
|
}
|
|
1860
1860
|
var O = A.instance;
|
|
1861
|
-
O.setProps(
|
|
1861
|
+
O.setProps(Ei(O.props, M)), (L = O.popperInstance) == null || L.forceUpdate(), f ? O.disable() : O.enable(), w && (a ? O.show() : O.hide()), g && c.hook({
|
|
1862
1862
|
instance: O,
|
|
1863
1863
|
content: o,
|
|
1864
1864
|
props: M,
|
|
1865
|
-
setSingletonContent:
|
|
1865
|
+
setSingletonContent: k
|
|
1866
1866
|
});
|
|
1867
1867
|
}), ht(function() {
|
|
1868
1868
|
var L;
|
|
@@ -1879,7 +1879,7 @@ function Ti(e) {
|
|
|
1879
1879
|
phase: "beforeWrite",
|
|
1880
1880
|
requires: ["computeStyles"],
|
|
1881
1881
|
fn: function(V) {
|
|
1882
|
-
var
|
|
1882
|
+
var B, W = V.state, H = (B = W.modifiersData) == null ? void 0 : B.hide;
|
|
1883
1883
|
(i.placement !== W.placement || i.referenceHidden !== H?.isReferenceHidden || i.escaped !== H?.hasPopperEscaped) && x({
|
|
1884
1884
|
placement: W.placement,
|
|
1885
1885
|
referenceHidden: H?.isReferenceHidden,
|
|
@@ -1890,56 +1890,70 @@ function Ti(e) {
|
|
|
1890
1890
|
})
|
|
1891
1891
|
});
|
|
1892
1892
|
}
|
|
1893
|
-
}, [i.placement, i.referenceHidden, i.escaped].concat(R)), /* @__PURE__ */ gt.createElement(gt.Fragment, null, r ? /* @__PURE__ */
|
|
1893
|
+
}, [i.placement, i.referenceHidden, i.escaped].concat(R)), /* @__PURE__ */ gt.createElement(gt.Fragment, null, r ? /* @__PURE__ */ rn(r, {
|
|
1894
1894
|
ref: function(O) {
|
|
1895
|
-
A.ref = O,
|
|
1895
|
+
A.ref = O, Tt(r.ref, O);
|
|
1896
1896
|
}
|
|
1897
|
-
}) : null, D && /* @__PURE__ */
|
|
1897
|
+
}) : null, D && /* @__PURE__ */ In(p ? p(wi(i), P, A.instance) : o, A.container));
|
|
1898
1898
|
}
|
|
1899
1899
|
return t;
|
|
1900
1900
|
}
|
|
1901
|
-
var
|
|
1902
|
-
return /* @__PURE__ */
|
|
1903
|
-
var a = r.children, c =
|
|
1901
|
+
var Di = (function(e, t) {
|
|
1902
|
+
return /* @__PURE__ */ $n(function(r, o) {
|
|
1903
|
+
var a = r.children, c = Dn(r, ["children"]);
|
|
1904
1904
|
return (
|
|
1905
1905
|
// If I spread them separately here, Babel adds the _extends ponyfill for
|
|
1906
1906
|
// some reason
|
|
1907
|
-
/* @__PURE__ */ gt.createElement(e, Object.assign({}, t, c), a ? /* @__PURE__ */
|
|
1907
|
+
/* @__PURE__ */ gt.createElement(e, Object.assign({}, t, c), a ? /* @__PURE__ */ rn(a, {
|
|
1908
1908
|
ref: function(u) {
|
|
1909
|
-
|
|
1909
|
+
Tt(o, u), Tt(a.ref, u);
|
|
1910
1910
|
}
|
|
1911
1911
|
}) : null)
|
|
1912
1912
|
);
|
|
1913
1913
|
});
|
|
1914
|
-
}),
|
|
1915
|
-
const
|
|
1916
|
-
tooltip:
|
|
1914
|
+
}), Ci = /* @__PURE__ */ Di(/* @__PURE__ */ Ai(Fe));
|
|
1915
|
+
const Si = "_tooltip_11o2j_12", ji = "_icon_11o2j_24", nn = {
|
|
1916
|
+
tooltip: Si,
|
|
1917
1917
|
icon: ji
|
|
1918
|
-
},
|
|
1918
|
+
}, $i = ({
|
|
1919
1919
|
text: e,
|
|
1920
1920
|
className: t,
|
|
1921
1921
|
iconClassName: n,
|
|
1922
1922
|
icon: r,
|
|
1923
1923
|
placement: o = "bottom",
|
|
1924
1924
|
offset: a = [0, 8]
|
|
1925
|
-
}) =>
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1925
|
+
}) => {
|
|
1926
|
+
const c = yt(null), p = yt(!1), u = Vn(() => {
|
|
1927
|
+
p.current || c.current?.hide();
|
|
1928
|
+
}, []), l = (y) => {
|
|
1929
|
+
c.current = y, p.current = !0, setTimeout(() => {
|
|
1930
|
+
p.current = !1;
|
|
1931
|
+
}, 100), window.addEventListener("scroll", u, { passive: !0, capture: !0 });
|
|
1932
|
+
}, f = () => {
|
|
1933
|
+
window.removeEventListener("scroll", u, { capture: !0 });
|
|
1934
|
+
};
|
|
1935
|
+
return /* @__PURE__ */ nt(
|
|
1936
|
+
Ci,
|
|
1937
|
+
{
|
|
1938
|
+
content: /* @__PURE__ */ nt("div", { className: Mt(nn.tooltip, t), children: e }),
|
|
1939
|
+
placement: o,
|
|
1940
|
+
offset: a,
|
|
1941
|
+
popperOptions: {
|
|
1942
|
+
modifiers: [
|
|
1943
|
+
{ name: "preventOverflow", options: { boundary: "viewport", padding: 16 } },
|
|
1944
|
+
{ name: "flip", options: { boundary: "viewport", padding: 16 } }
|
|
1945
|
+
]
|
|
1946
|
+
},
|
|
1947
|
+
animation: !1,
|
|
1948
|
+
arrow: !1,
|
|
1949
|
+
zIndex: 3,
|
|
1950
|
+
appendTo: "parent",
|
|
1951
|
+
onShow: l,
|
|
1952
|
+
onHide: f,
|
|
1953
|
+
children: /* @__PURE__ */ nt("div", { className: Mt(nn.icon, n), children: r ?? /* @__PURE__ */ nt(Hn, {}) })
|
|
1954
|
+
}
|
|
1955
|
+
);
|
|
1956
|
+
};
|
|
1943
1957
|
export {
|
|
1944
|
-
|
|
1958
|
+
$i as Tooltip
|
|
1945
1959
|
};
|