@dialpad/dialtone-vue 3.92.1 → 3.93.1
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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +28 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +5 -5
- package/dist/dialtone-vue.js +2541 -2247
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +32 -63
- package/dist/emoji-125c2250.cjs +1 -0
- package/dist/{emoji-8734fb7e.js → emoji-ee056efb.js} +237 -228
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +3 -3
- package/dist/{message_input-15d74c9c.cjs → message_input-2f040a4e.cjs} +15 -15
- package/dist/{message_input-42cfff5f.js → message_input-97a05856.js} +181 -163
- package/dist/message_input.cjs +1 -1
- package/dist/message_input.js +3 -3
- package/dist/style.css +1 -1
- package/dist/{tooltip-5fcb8c80.js → tooltip-02b802bc.js} +504 -475
- package/dist/tooltip-3390fc3b.cjs +25 -0
- package/dist/types/common/dates.d.ts +49 -0
- package/dist/types/common/dates.d.ts.map +1 -0
- package/dist/types/common/utils.d.ts +8 -0
- package/dist/types/common/utils.d.ts.map +1 -1
- package/dist/types/components/button/button.vue.d.ts +2 -1
- package/dist/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +23 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/types/components/tooltip/tooltip_variants.vue.d.ts +0 -1
- package/dist/types/directives/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +9 -0
- package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -0
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/package.json +8 -5
- package/dist/emoji-1de73abd.cjs +0 -1
- package/dist/tooltip-a095f59b.cjs +0 -25
|
@@ -3,22 +3,22 @@ const ge = {
|
|
|
3
3
|
ERROR: "error",
|
|
4
4
|
WARNING: "warning",
|
|
5
5
|
SUCCESS: "success"
|
|
6
|
-
},
|
|
6
|
+
}, Vo = {
|
|
7
7
|
LARGE: "lg",
|
|
8
8
|
EXTRA_LARGE: "xl"
|
|
9
|
-
},
|
|
9
|
+
}, _o = {
|
|
10
10
|
xs: "",
|
|
11
11
|
sm: "",
|
|
12
12
|
md: "",
|
|
13
13
|
lg: "d-description--lg",
|
|
14
14
|
xl: "d-description--xl"
|
|
15
|
-
},
|
|
15
|
+
}, Bo = {
|
|
16
16
|
xs: "d-label--xs",
|
|
17
17
|
sm: "d-label--sm",
|
|
18
18
|
md: "",
|
|
19
19
|
lg: "d-label--lg",
|
|
20
20
|
xl: "d-label--xl"
|
|
21
|
-
},
|
|
21
|
+
}, $o = {
|
|
22
22
|
esc: "Esc",
|
|
23
23
|
escape: "Escape",
|
|
24
24
|
tab: "Tab",
|
|
@@ -35,18 +35,18 @@ const ge = {
|
|
|
35
35
|
arrowdown: "ArrowDown",
|
|
36
36
|
home: "Home",
|
|
37
37
|
end: "End"
|
|
38
|
-
}, cr = ge.ERROR,
|
|
39
|
-
let
|
|
38
|
+
}, cr = ge.ERROR, lr = "dt";
|
|
39
|
+
let pr = 0, kt;
|
|
40
40
|
const fr = typeof setImmediate == "function" ? setImmediate : setTimeout;
|
|
41
|
-
function cn(e =
|
|
42
|
-
return `${e}${
|
|
41
|
+
function cn(e = lr) {
|
|
42
|
+
return `${e}${pr++}`;
|
|
43
43
|
}
|
|
44
44
|
function dr(e, t) {
|
|
45
45
|
if (t) {
|
|
46
46
|
const n = vr(t);
|
|
47
47
|
return e[Math.abs(n) % e.length];
|
|
48
48
|
} else
|
|
49
|
-
return e[
|
|
49
|
+
return e[ln(e.length)];
|
|
50
50
|
}
|
|
51
51
|
function vr(e) {
|
|
52
52
|
let t;
|
|
@@ -54,7 +54,7 @@ function vr(e) {
|
|
|
54
54
|
t = Math.imul(31, t) + e.charCodeAt(n) | 0;
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function ln(e) {
|
|
58
58
|
return Math.floor(Math.random() * e);
|
|
59
59
|
}
|
|
60
60
|
function hr(e) {
|
|
@@ -64,10 +64,10 @@ function hr(e) {
|
|
|
64
64
|
} : t) : [];
|
|
65
65
|
}
|
|
66
66
|
function mr(e) {
|
|
67
|
-
const t =
|
|
67
|
+
const t = pn(e);
|
|
68
68
|
return !e || !t ? [] : e.filter((n) => !!n.message && n.type === t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function pn(e) {
|
|
71
71
|
return e ? st(e, ge.ERROR) ? ge.ERROR : st(e, ge.WARNING) ? ge.WARNING : st(e, ge.SUCCESS) ? ge.SUCCESS : null : null;
|
|
72
72
|
}
|
|
73
73
|
function st(e, t) {
|
|
@@ -79,7 +79,7 @@ const gr = (e) => Yn("div", { innerHTML: e.html }), yr = () => new Promise((e) =
|
|
|
79
79
|
function br(e, t = {}) {
|
|
80
80
|
return e ? e(t).some((n) => n.type === Xn || Array.isArray(n.children) && !n.children.length ? !1 : n.type !== Gn || typeof n.children == "string" && n.children.trim() !== "") : !1;
|
|
81
81
|
}
|
|
82
|
-
const wr = (e) => e == null ? void 0 : e.toLowerCase().split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(""),
|
|
82
|
+
const wr = (e) => e == null ? void 0 : e.toLowerCase().split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(""), Uo = (e) => e.replace(/\.?([A-Z0-9]+)/g, (t, n) => "-" + n.toLowerCase()).replace(/^-/, ""), Er = (e) => {
|
|
83
83
|
const t = Object.entries(e).filter(([n]) => n.startsWith("on"));
|
|
84
84
|
return Object.fromEntries(t);
|
|
85
85
|
};
|
|
@@ -95,15 +95,15 @@ function xr(e) {
|
|
|
95
95
|
};
|
|
96
96
|
return n.any = Object.values(n).some((r) => r), n.all = Object.values(n).every((r) => r), n;
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const Ar = /(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/, Tr = new RegExp(
|
|
99
99
|
"(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"
|
|
100
100
|
), Sr = new RegExp(
|
|
101
101
|
"(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"
|
|
102
102
|
), fn = new RegExp(
|
|
103
103
|
"(?:" + [
|
|
104
104
|
[
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
Ar.source,
|
|
106
|
+
Tr.source
|
|
107
107
|
].join("+"),
|
|
108
108
|
Sr.source
|
|
109
109
|
].join("|") + ")"
|
|
@@ -140,29 +140,32 @@ const yn = gn(), Rr = new RegExp(
|
|
|
140
140
|
].join("|"),
|
|
141
141
|
"gi"
|
|
142
142
|
);
|
|
143
|
-
function
|
|
143
|
+
function Lr(e) {
|
|
144
144
|
var t;
|
|
145
145
|
return !e || !["string", "number"].includes(typeof e) ? !1 : (e = e.toString(), ((t = yn.exec(e)) == null ? void 0 : t[0]) === e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Cr(e) {
|
|
148
148
|
var t, n;
|
|
149
149
|
return !e || typeof e != "string" ? !1 : ((t = vn.exec(e)) == null ? void 0 : t[0]) === e || ((n = hn.exec(e)) == null ? void 0 : n[0]) === e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Pr(e) {
|
|
152
152
|
var t;
|
|
153
153
|
return !e || typeof e != "string" ? !1 : ((t = mn.exec(e)) == null ? void 0 : t[0]) === e;
|
|
154
154
|
}
|
|
155
155
|
function Nr(e) {
|
|
156
156
|
return e.filter((t) => !!t).join(" ");
|
|
157
157
|
}
|
|
158
|
+
function Ir(e, t = "en-US") {
|
|
159
|
+
return e.replace(/^\p{CWU}/u, (n) => n.toLocaleUpperCase(t));
|
|
160
|
+
}
|
|
158
161
|
const Ho = {
|
|
159
162
|
getUniqueString: cn,
|
|
160
163
|
getRandomElement: dr,
|
|
161
|
-
getRandomInt:
|
|
164
|
+
getRandomInt: ln,
|
|
162
165
|
formatMessages: hr,
|
|
163
166
|
filterFormattedMessages: mr,
|
|
164
167
|
hasFormattedMessageOfType: st,
|
|
165
|
-
getValidationState:
|
|
168
|
+
getValidationState: pn,
|
|
166
169
|
htmlFragment: gr,
|
|
167
170
|
flushPromises: yr,
|
|
168
171
|
kebabCaseToPascalCase: wr,
|
|
@@ -171,16 +174,17 @@ const Ho = {
|
|
|
171
174
|
isOutOfViewPort: xr,
|
|
172
175
|
getPhoneNumberRegex: gn,
|
|
173
176
|
linkRegex: Rr,
|
|
174
|
-
isEmailAddress:
|
|
175
|
-
isPhoneNumber:
|
|
176
|
-
isURL:
|
|
177
|
-
safeConcatStrings: Nr
|
|
177
|
+
isEmailAddress: Pr,
|
|
178
|
+
isPhoneNumber: Lr,
|
|
179
|
+
isURL: Cr,
|
|
180
|
+
safeConcatStrings: Nr,
|
|
181
|
+
capitalizeFirstLetter: Ir
|
|
178
182
|
}, bn = (e, t) => {
|
|
179
183
|
const n = e.__vccOpts || e;
|
|
180
184
|
for (const [r, o] of t)
|
|
181
185
|
n[r] = o;
|
|
182
186
|
return n;
|
|
183
|
-
},
|
|
187
|
+
}, Mr = {
|
|
184
188
|
name: "DtLazyShow",
|
|
185
189
|
inheritAttrs: !1,
|
|
186
190
|
/******************
|
|
@@ -239,7 +243,7 @@ const Ho = {
|
|
|
239
243
|
}
|
|
240
244
|
}
|
|
241
245
|
};
|
|
242
|
-
function
|
|
246
|
+
function jr(e, t, n, r, o, a) {
|
|
243
247
|
return bt(), Kn(Zn, an({
|
|
244
248
|
name: n.transition,
|
|
245
249
|
appear: n.appear
|
|
@@ -254,12 +258,12 @@ function Mr(e, t, n, r, o, a) {
|
|
|
254
258
|
_: 3
|
|
255
259
|
}, 16, ["name", "appear", "css"]);
|
|
256
260
|
}
|
|
257
|
-
const
|
|
258
|
-
var B = "top", Y = "bottom", X = "right", $ = "left",
|
|
259
|
-
return e.concat([t + "-" + Re, t + "-" +
|
|
260
|
-
}, []), En = /* @__PURE__ */ [].concat(qe, [
|
|
261
|
-
return e.concat([t, t + "-" + Re, t + "-" +
|
|
262
|
-
}, []),
|
|
261
|
+
const kr = /* @__PURE__ */ bn(Mr, [["render", jr]]);
|
|
262
|
+
var B = "top", Y = "bottom", X = "right", $ = "left", pt = "auto", qe = [B, Y, X, $], Re = "start", Ue = "end", Vr = "clippingParents", wn = "viewport", Ve = "popper", _r = "reference", Vt = /* @__PURE__ */ qe.reduce(function(e, t) {
|
|
263
|
+
return e.concat([t + "-" + Re, t + "-" + Ue]);
|
|
264
|
+
}, []), En = /* @__PURE__ */ [].concat(qe, [pt]).reduce(function(e, t) {
|
|
265
|
+
return e.concat([t, t + "-" + Re, t + "-" + Ue]);
|
|
266
|
+
}, []), Br = "beforeRead", $r = "read", Ur = "afterRead", Hr = "beforeMain", Fr = "main", Wr = "afterMain", qr = "beforeWrite", zr = "write", Yr = "afterWrite", Et = [Br, $r, Ur, Hr, Fr, Wr, qr, zr, Yr];
|
|
263
267
|
function ne(e) {
|
|
264
268
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
265
269
|
}
|
|
@@ -286,17 +290,17 @@ function Dt(e) {
|
|
|
286
290
|
var t = q(e).ShadowRoot;
|
|
287
291
|
return e instanceof t || e instanceof ShadowRoot;
|
|
288
292
|
}
|
|
289
|
-
function
|
|
293
|
+
function Xr(e) {
|
|
290
294
|
var t = e.state;
|
|
291
295
|
Object.keys(t.elements).forEach(function(n) {
|
|
292
296
|
var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
|
|
293
|
-
!W(a) || !ne(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(
|
|
294
|
-
var c = o[
|
|
295
|
-
c === !1 ? a.removeAttribute(
|
|
297
|
+
!W(a) || !ne(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(l) {
|
|
298
|
+
var c = o[l];
|
|
299
|
+
c === !1 ? a.removeAttribute(l) : a.setAttribute(l, c === !0 ? "" : c);
|
|
296
300
|
}));
|
|
297
301
|
});
|
|
298
302
|
}
|
|
299
|
-
function
|
|
303
|
+
function Gr(e) {
|
|
300
304
|
var t = e.state, n = {
|
|
301
305
|
popper: {
|
|
302
306
|
position: t.options.strategy,
|
|
@@ -311,7 +315,7 @@ function Xr(e) {
|
|
|
311
315
|
};
|
|
312
316
|
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
313
317
|
Object.keys(t.elements).forEach(function(r) {
|
|
314
|
-
var o = t.elements[r], a = t.attributes[r] || {},
|
|
318
|
+
var o = t.elements[r], a = t.attributes[r] || {}, l = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), c = l.reduce(function(u, f) {
|
|
315
319
|
return u[f] = "", u;
|
|
316
320
|
}, {});
|
|
317
321
|
!W(o) || !ne(o) || (Object.assign(o.style, c), Object.keys(a).forEach(function(u) {
|
|
@@ -324,14 +328,14 @@ const On = {
|
|
|
324
328
|
name: "applyStyles",
|
|
325
329
|
enabled: !0,
|
|
326
330
|
phase: "write",
|
|
327
|
-
fn:
|
|
328
|
-
effect:
|
|
331
|
+
fn: Xr,
|
|
332
|
+
effect: Gr,
|
|
329
333
|
requires: ["computeStyles"]
|
|
330
334
|
};
|
|
331
335
|
function K(e) {
|
|
332
336
|
return e.split("-")[0];
|
|
333
337
|
}
|
|
334
|
-
var be = Math.max, ct = Math.min,
|
|
338
|
+
var be = Math.max, ct = Math.min, Le = Math.round;
|
|
335
339
|
function Ot() {
|
|
336
340
|
var e = navigator.userAgentData;
|
|
337
341
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
@@ -341,24 +345,24 @@ function Ot() {
|
|
|
341
345
|
function xn() {
|
|
342
346
|
return !/^((?!chrome|android).)*safari/i.test(Ot());
|
|
343
347
|
}
|
|
344
|
-
function
|
|
348
|
+
function Ce(e, t, n) {
|
|
345
349
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
346
350
|
var r = e.getBoundingClientRect(), o = 1, a = 1;
|
|
347
|
-
t && W(e) && (o = e.offsetWidth > 0 &&
|
|
348
|
-
var
|
|
351
|
+
t && W(e) && (o = e.offsetWidth > 0 && Le(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Le(r.height) / e.offsetHeight || 1);
|
|
352
|
+
var l = we(e) ? q(e) : window, c = l.visualViewport, u = !xn() && n, f = (r.left + (u && c ? c.offsetLeft : 0)) / o, p = (r.top + (u && c ? c.offsetTop : 0)) / a, g = r.width / o, x = r.height / a;
|
|
349
353
|
return {
|
|
350
354
|
width: g,
|
|
351
355
|
height: x,
|
|
352
|
-
top:
|
|
356
|
+
top: p,
|
|
353
357
|
right: f + g,
|
|
354
|
-
bottom:
|
|
358
|
+
bottom: p + x,
|
|
355
359
|
left: f,
|
|
356
360
|
x: f,
|
|
357
|
-
y:
|
|
361
|
+
y: p
|
|
358
362
|
};
|
|
359
363
|
}
|
|
360
364
|
function Rt(e) {
|
|
361
|
-
var t =
|
|
365
|
+
var t = Ce(e), n = e.offsetWidth, r = e.offsetHeight;
|
|
362
366
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
|
|
363
367
|
x: e.offsetLeft,
|
|
364
368
|
y: e.offsetTop,
|
|
@@ -366,7 +370,7 @@ function Rt(e) {
|
|
|
366
370
|
height: r
|
|
367
371
|
};
|
|
368
372
|
}
|
|
369
|
-
function
|
|
373
|
+
function An(e, t) {
|
|
370
374
|
var n = t.getRootNode && t.getRootNode();
|
|
371
375
|
if (e.contains(t))
|
|
372
376
|
return !0;
|
|
@@ -383,10 +387,10 @@ function Tn(e, t) {
|
|
|
383
387
|
function Z(e) {
|
|
384
388
|
return q(e).getComputedStyle(e);
|
|
385
389
|
}
|
|
386
|
-
function
|
|
390
|
+
function Kr(e) {
|
|
387
391
|
return ["table", "td", "th"].indexOf(ne(e)) >= 0;
|
|
388
392
|
}
|
|
389
|
-
function
|
|
393
|
+
function pe(e) {
|
|
390
394
|
return ((we(e) ? e.ownerDocument : (
|
|
391
395
|
// $FlowFixMe[prop-missing]
|
|
392
396
|
e.document
|
|
@@ -401,14 +405,14 @@ function ft(e) {
|
|
|
401
405
|
e.parentNode || // DOM Element detected
|
|
402
406
|
(Dt(e) ? e.host : null) || // ShadowRoot detected
|
|
403
407
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
404
|
-
|
|
408
|
+
pe(e)
|
|
405
409
|
);
|
|
406
410
|
}
|
|
407
411
|
function _t(e) {
|
|
408
412
|
return !W(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
409
413
|
Z(e).position === "fixed" ? null : e.offsetParent;
|
|
410
414
|
}
|
|
411
|
-
function
|
|
415
|
+
function Zr(e) {
|
|
412
416
|
var t = /firefox/i.test(Ot()), n = /Trident/i.test(Ot());
|
|
413
417
|
if (n && W(e)) {
|
|
414
418
|
var r = Z(e);
|
|
@@ -425,21 +429,21 @@ function Kr(e) {
|
|
|
425
429
|
return null;
|
|
426
430
|
}
|
|
427
431
|
function ze(e) {
|
|
428
|
-
for (var t = q(e), n = _t(e); n &&
|
|
432
|
+
for (var t = q(e), n = _t(e); n && Kr(n) && Z(n).position === "static"; )
|
|
429
433
|
n = _t(n);
|
|
430
|
-
return n && (ne(n) === "html" || ne(n) === "body" && Z(n).position === "static") ? t : n ||
|
|
434
|
+
return n && (ne(n) === "html" || ne(n) === "body" && Z(n).position === "static") ? t : n || Zr(e) || t;
|
|
431
435
|
}
|
|
432
|
-
function
|
|
436
|
+
function Lt(e) {
|
|
433
437
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
434
438
|
}
|
|
435
439
|
function _e(e, t, n) {
|
|
436
440
|
return be(e, ct(t, n));
|
|
437
441
|
}
|
|
438
|
-
function
|
|
442
|
+
function Jr(e, t, n) {
|
|
439
443
|
var r = _e(e, t, n);
|
|
440
444
|
return r > n ? n : r;
|
|
441
445
|
}
|
|
442
|
-
function
|
|
446
|
+
function Tn() {
|
|
443
447
|
return {
|
|
444
448
|
top: 0,
|
|
445
449
|
right: 0,
|
|
@@ -448,62 +452,62 @@ function An() {
|
|
|
448
452
|
};
|
|
449
453
|
}
|
|
450
454
|
function Sn(e) {
|
|
451
|
-
return Object.assign({},
|
|
455
|
+
return Object.assign({}, Tn(), e);
|
|
452
456
|
}
|
|
453
457
|
function Dn(e, t) {
|
|
454
458
|
return t.reduce(function(n, r) {
|
|
455
459
|
return n[r] = e, n;
|
|
456
460
|
}, {});
|
|
457
461
|
}
|
|
458
|
-
var
|
|
462
|
+
var Qr = function(t, n) {
|
|
459
463
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
460
464
|
placement: n.placement
|
|
461
465
|
})) : t, Sn(typeof t != "number" ? t : Dn(t, qe));
|
|
462
466
|
};
|
|
463
|
-
function
|
|
464
|
-
var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow,
|
|
465
|
-
if (!(!a || !
|
|
466
|
-
var g =
|
|
467
|
+
function ei(e) {
|
|
468
|
+
var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, l = n.modifiersData.popperOffsets, c = K(n.placement), u = Lt(c), f = [$, X].indexOf(c) >= 0, p = f ? "height" : "width";
|
|
469
|
+
if (!(!a || !l)) {
|
|
470
|
+
var g = Qr(o.padding, n), x = Rt(a), m = u === "y" ? B : $, w = u === "y" ? Y : X, y = n.rects.reference[p] + n.rects.reference[u] - l[u] - n.rects.popper[p], b = l[u] - n.rects.reference[u], T = ze(a), R = T ? u === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, C = y / 2 - b / 2, i = g[m], E = R - x[p] - g[w], d = R / 2 - x[p] / 2 + C, D = _e(i, d, E), I = u;
|
|
467
471
|
n.modifiersData[r] = (t = {}, t[I] = D, t.centerOffset = D - d, t);
|
|
468
472
|
}
|
|
469
473
|
}
|
|
470
|
-
function
|
|
474
|
+
function ti(e) {
|
|
471
475
|
var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
472
476
|
if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
|
|
473
|
-
if (process.env.NODE_ENV !== "production" && (W(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(" "))), !
|
|
477
|
+
if (process.env.NODE_ENV !== "production" && (W(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(" "))), !An(t.elements.popper, o)) {
|
|
474
478
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
475
479
|
return;
|
|
476
480
|
}
|
|
477
481
|
t.elements.arrow = o;
|
|
478
482
|
}
|
|
479
483
|
}
|
|
480
|
-
const
|
|
484
|
+
const ni = {
|
|
481
485
|
name: "arrow",
|
|
482
486
|
enabled: !0,
|
|
483
487
|
phase: "main",
|
|
484
|
-
fn:
|
|
485
|
-
effect:
|
|
488
|
+
fn: ei,
|
|
489
|
+
effect: ti,
|
|
486
490
|
requires: ["popperOffsets"],
|
|
487
491
|
requiresIfExists: ["preventOverflow"]
|
|
488
492
|
};
|
|
489
|
-
function
|
|
493
|
+
function Pe(e) {
|
|
490
494
|
return e.split("-")[1];
|
|
491
495
|
}
|
|
492
|
-
var
|
|
496
|
+
var ri = {
|
|
493
497
|
top: "auto",
|
|
494
498
|
right: "auto",
|
|
495
499
|
bottom: "auto",
|
|
496
500
|
left: "auto"
|
|
497
501
|
};
|
|
498
|
-
function
|
|
502
|
+
function ii(e, t) {
|
|
499
503
|
var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
|
|
500
504
|
return {
|
|
501
|
-
x:
|
|
502
|
-
y:
|
|
505
|
+
x: Le(n * o) / o || 0,
|
|
506
|
+
y: Le(r * o) / o || 0
|
|
503
507
|
};
|
|
504
508
|
}
|
|
505
509
|
function Bt(e) {
|
|
506
|
-
var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation,
|
|
510
|
+
var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, l = e.offsets, c = e.position, u = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, g = e.isFixed, x = l.x, m = x === void 0 ? 0 : x, w = l.y, y = w === void 0 ? 0 : w, b = typeof p == "function" ? p({
|
|
507
511
|
x: m,
|
|
508
512
|
y
|
|
509
513
|
}) : {
|
|
@@ -511,10 +515,10 @@ function Bt(e) {
|
|
|
511
515
|
y
|
|
512
516
|
};
|
|
513
517
|
m = b.x, y = b.y;
|
|
514
|
-
var
|
|
518
|
+
var T = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), C = $, i = B, E = window;
|
|
515
519
|
if (f) {
|
|
516
520
|
var d = ze(n), D = "clientHeight", I = "clientWidth";
|
|
517
|
-
if (d === q(n) && (d =
|
|
521
|
+
if (d === q(n) && (d = pe(n), Z(d).position !== "static" && c === "absolute" && (D = "scrollHeight", I = "scrollWidth")), d = d, o === B || (o === $ || o === X) && a === Ue) {
|
|
518
522
|
i = Y;
|
|
519
523
|
var M = g && d === E && E.visualViewport ? E.visualViewport.height : (
|
|
520
524
|
// $FlowFixMe[prop-missing]
|
|
@@ -522,35 +526,35 @@ function Bt(e) {
|
|
|
522
526
|
);
|
|
523
527
|
y -= M - r.height, y *= u ? 1 : -1;
|
|
524
528
|
}
|
|
525
|
-
if (o === $ || (o === B || o === Y) && a ===
|
|
526
|
-
|
|
527
|
-
var
|
|
529
|
+
if (o === $ || (o === B || o === Y) && a === Ue) {
|
|
530
|
+
C = X;
|
|
531
|
+
var P = g && d === E && E.visualViewport ? E.visualViewport.width : (
|
|
528
532
|
// $FlowFixMe[prop-missing]
|
|
529
533
|
d[I]
|
|
530
534
|
);
|
|
531
|
-
m -=
|
|
535
|
+
m -= P - r.width, m *= u ? 1 : -1;
|
|
532
536
|
}
|
|
533
537
|
}
|
|
534
|
-
var
|
|
538
|
+
var A = Object.assign({
|
|
535
539
|
position: c
|
|
536
|
-
}, f &&
|
|
540
|
+
}, f && ri), L = p === !0 ? ii({
|
|
537
541
|
x: m,
|
|
538
542
|
y
|
|
539
543
|
}, q(n)) : {
|
|
540
544
|
x: m,
|
|
541
545
|
y
|
|
542
546
|
};
|
|
543
|
-
if (m =
|
|
547
|
+
if (m = L.x, y = L.y, u) {
|
|
544
548
|
var N;
|
|
545
|
-
return Object.assign({},
|
|
549
|
+
return Object.assign({}, A, (N = {}, N[i] = R ? "0" : "", N[C] = T ? "0" : "", N.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", N));
|
|
546
550
|
}
|
|
547
|
-
return Object.assign({},
|
|
551
|
+
return Object.assign({}, A, (t = {}, t[i] = R ? y + "px" : "", t[C] = T ? m + "px" : "", t.transform = "", t));
|
|
548
552
|
}
|
|
549
|
-
function
|
|
550
|
-
var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive,
|
|
553
|
+
function oi(e) {
|
|
554
|
+
var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, l = a === void 0 ? !0 : a, c = n.roundOffsets, u = c === void 0 ? !0 : c;
|
|
551
555
|
if (process.env.NODE_ENV !== "production") {
|
|
552
556
|
var f = Z(t.elements.popper).transitionProperty || "";
|
|
553
|
-
|
|
557
|
+
l && ["transform", "top", "right", "bottom", "left"].some(function(g) {
|
|
554
558
|
return f.indexOf(g) >= 0;
|
|
555
559
|
}) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
|
|
556
560
|
|
|
@@ -558,20 +562,20 @@ function ii(e) {
|
|
|
558
562
|
|
|
559
563
|
`, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
560
564
|
}
|
|
561
|
-
var
|
|
565
|
+
var p = {
|
|
562
566
|
placement: K(t.placement),
|
|
563
|
-
variation:
|
|
567
|
+
variation: Pe(t.placement),
|
|
564
568
|
popper: t.elements.popper,
|
|
565
569
|
popperRect: t.rects.popper,
|
|
566
570
|
gpuAcceleration: o,
|
|
567
571
|
isFixed: t.options.strategy === "fixed"
|
|
568
572
|
};
|
|
569
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Bt(Object.assign({},
|
|
573
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Bt(Object.assign({}, p, {
|
|
570
574
|
offsets: t.modifiersData.popperOffsets,
|
|
571
575
|
position: t.options.strategy,
|
|
572
|
-
adaptive:
|
|
576
|
+
adaptive: l,
|
|
573
577
|
roundOffsets: u
|
|
574
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Bt(Object.assign({},
|
|
578
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Bt(Object.assign({}, p, {
|
|
575
579
|
offsets: t.modifiersData.arrow,
|
|
576
580
|
position: "absolute",
|
|
577
581
|
adaptive: !1,
|
|
@@ -580,36 +584,36 @@ function ii(e) {
|
|
|
580
584
|
"data-popper-placement": t.placement
|
|
581
585
|
});
|
|
582
586
|
}
|
|
583
|
-
const
|
|
587
|
+
const ai = {
|
|
584
588
|
name: "computeStyles",
|
|
585
589
|
enabled: !0,
|
|
586
590
|
phase: "beforeWrite",
|
|
587
|
-
fn:
|
|
591
|
+
fn: oi,
|
|
588
592
|
data: {}
|
|
589
593
|
};
|
|
590
594
|
var ot = {
|
|
591
595
|
passive: !0
|
|
592
596
|
};
|
|
593
|
-
function
|
|
594
|
-
var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o,
|
|
595
|
-
return a && f.forEach(function(
|
|
596
|
-
|
|
597
|
+
function si(e) {
|
|
598
|
+
var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, l = r.resize, c = l === void 0 ? !0 : l, u = q(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
599
|
+
return a && f.forEach(function(p) {
|
|
600
|
+
p.addEventListener("scroll", n.update, ot);
|
|
597
601
|
}), c && u.addEventListener("resize", n.update, ot), function() {
|
|
598
|
-
a && f.forEach(function(
|
|
599
|
-
|
|
602
|
+
a && f.forEach(function(p) {
|
|
603
|
+
p.removeEventListener("scroll", n.update, ot);
|
|
600
604
|
}), c && u.removeEventListener("resize", n.update, ot);
|
|
601
605
|
};
|
|
602
606
|
}
|
|
603
|
-
const
|
|
607
|
+
const ui = {
|
|
604
608
|
name: "eventListeners",
|
|
605
609
|
enabled: !0,
|
|
606
610
|
phase: "write",
|
|
607
611
|
fn: function() {
|
|
608
612
|
},
|
|
609
|
-
effect:
|
|
613
|
+
effect: si,
|
|
610
614
|
data: {}
|
|
611
615
|
};
|
|
612
|
-
var
|
|
616
|
+
var ci = {
|
|
613
617
|
left: "right",
|
|
614
618
|
right: "left",
|
|
615
619
|
bottom: "top",
|
|
@@ -617,47 +621,47 @@ var ui = {
|
|
|
617
621
|
};
|
|
618
622
|
function ut(e) {
|
|
619
623
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
620
|
-
return
|
|
624
|
+
return ci[t];
|
|
621
625
|
});
|
|
622
626
|
}
|
|
623
|
-
var
|
|
627
|
+
var li = {
|
|
624
628
|
start: "end",
|
|
625
629
|
end: "start"
|
|
626
630
|
};
|
|
627
631
|
function $t(e) {
|
|
628
632
|
return e.replace(/start|end/g, function(t) {
|
|
629
|
-
return
|
|
633
|
+
return li[t];
|
|
630
634
|
});
|
|
631
635
|
}
|
|
632
|
-
function
|
|
636
|
+
function Ct(e) {
|
|
633
637
|
var t = q(e), n = t.pageXOffset, r = t.pageYOffset;
|
|
634
638
|
return {
|
|
635
639
|
scrollLeft: n,
|
|
636
640
|
scrollTop: r
|
|
637
641
|
};
|
|
638
642
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
643
|
+
function Pt(e) {
|
|
644
|
+
return Ce(pe(e)).left + Ct(e).scrollLeft;
|
|
641
645
|
}
|
|
642
646
|
function pi(e, t) {
|
|
643
|
-
var n = q(e), r =
|
|
647
|
+
var n = q(e), r = pe(e), o = n.visualViewport, a = r.clientWidth, l = r.clientHeight, c = 0, u = 0;
|
|
644
648
|
if (o) {
|
|
645
|
-
a = o.width,
|
|
649
|
+
a = o.width, l = o.height;
|
|
646
650
|
var f = xn();
|
|
647
651
|
(f || !f && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
|
|
648
652
|
}
|
|
649
653
|
return {
|
|
650
654
|
width: a,
|
|
651
|
-
height:
|
|
652
|
-
x: c +
|
|
655
|
+
height: l,
|
|
656
|
+
x: c + Pt(e),
|
|
653
657
|
y: u
|
|
654
658
|
};
|
|
655
659
|
}
|
|
656
|
-
function
|
|
657
|
-
var t, n =
|
|
660
|
+
function fi(e) {
|
|
661
|
+
var t, n = pe(e), r = Ct(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = be(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = be(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -r.scrollLeft + Pt(e), u = -r.scrollTop;
|
|
658
662
|
return Z(o || n).direction === "rtl" && (c += be(n.clientWidth, o ? o.clientWidth : 0) - a), {
|
|
659
663
|
width: a,
|
|
660
|
-
height:
|
|
664
|
+
height: l,
|
|
661
665
|
x: c,
|
|
662
666
|
y: u
|
|
663
667
|
};
|
|
@@ -672,10 +676,10 @@ function Rn(e) {
|
|
|
672
676
|
function Be(e, t) {
|
|
673
677
|
var n;
|
|
674
678
|
t === void 0 && (t = []);
|
|
675
|
-
var r = Rn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = q(r),
|
|
679
|
+
var r = Rn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = q(r), l = o ? [a].concat(a.visualViewport || [], Nt(r) ? r : []) : r, c = t.concat(l);
|
|
676
680
|
return o ? c : (
|
|
677
681
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
678
|
-
c.concat(Be(ft(
|
|
682
|
+
c.concat(Be(ft(l)))
|
|
679
683
|
);
|
|
680
684
|
}
|
|
681
685
|
function xt(e) {
|
|
@@ -686,38 +690,38 @@ function xt(e) {
|
|
|
686
690
|
bottom: e.y + e.height
|
|
687
691
|
});
|
|
688
692
|
}
|
|
689
|
-
function
|
|
690
|
-
var n =
|
|
693
|
+
function di(e, t) {
|
|
694
|
+
var n = Ce(e, !1, t === "fixed");
|
|
691
695
|
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;
|
|
692
696
|
}
|
|
693
|
-
function
|
|
694
|
-
return t === wn ? xt(pi(e, n)) : we(t) ?
|
|
697
|
+
function Ut(e, t, n) {
|
|
698
|
+
return t === wn ? xt(pi(e, n)) : we(t) ? di(t, n) : xt(fi(pe(e)));
|
|
695
699
|
}
|
|
696
|
-
function
|
|
700
|
+
function vi(e) {
|
|
697
701
|
var t = Be(ft(e)), n = ["absolute", "fixed"].indexOf(Z(e).position) >= 0, r = n && W(e) ? ze(e) : e;
|
|
698
702
|
return we(r) ? t.filter(function(o) {
|
|
699
|
-
return we(o) &&
|
|
703
|
+
return we(o) && An(o, r) && ne(o) !== "body";
|
|
700
704
|
}) : [];
|
|
701
705
|
}
|
|
702
|
-
function
|
|
703
|
-
var o = t === "clippingParents" ?
|
|
704
|
-
var
|
|
705
|
-
return u.top = be(
|
|
706
|
-
},
|
|
706
|
+
function hi(e, t, n, r) {
|
|
707
|
+
var o = t === "clippingParents" ? vi(e) : [].concat(t), a = [].concat(o, [n]), l = a[0], c = a.reduce(function(u, f) {
|
|
708
|
+
var p = Ut(e, f, r);
|
|
709
|
+
return u.top = be(p.top, u.top), u.right = ct(p.right, u.right), u.bottom = ct(p.bottom, u.bottom), u.left = be(p.left, u.left), u;
|
|
710
|
+
}, Ut(e, l, r));
|
|
707
711
|
return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
|
|
708
712
|
}
|
|
709
|
-
function
|
|
710
|
-
var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, a = r ?
|
|
713
|
+
function Ln(e) {
|
|
714
|
+
var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, a = r ? Pe(r) : null, l = t.x + t.width / 2 - n.width / 2, c = t.y + t.height / 2 - n.height / 2, u;
|
|
711
715
|
switch (o) {
|
|
712
716
|
case B:
|
|
713
717
|
u = {
|
|
714
|
-
x:
|
|
718
|
+
x: l,
|
|
715
719
|
y: t.y - n.height
|
|
716
720
|
};
|
|
717
721
|
break;
|
|
718
722
|
case Y:
|
|
719
723
|
u = {
|
|
720
|
-
x:
|
|
724
|
+
x: l,
|
|
721
725
|
y: t.y + t.height
|
|
722
726
|
};
|
|
723
727
|
break;
|
|
@@ -739,97 +743,97 @@ function Cn(e) {
|
|
|
739
743
|
y: t.y
|
|
740
744
|
};
|
|
741
745
|
}
|
|
742
|
-
var f = o ?
|
|
746
|
+
var f = o ? Lt(o) : null;
|
|
743
747
|
if (f != null) {
|
|
744
|
-
var
|
|
748
|
+
var p = f === "y" ? "height" : "width";
|
|
745
749
|
switch (a) {
|
|
746
750
|
case Re:
|
|
747
|
-
u[f] = u[f] - (t[
|
|
751
|
+
u[f] = u[f] - (t[p] / 2 - n[p] / 2);
|
|
748
752
|
break;
|
|
749
|
-
case
|
|
750
|
-
u[f] = u[f] + (t[
|
|
753
|
+
case Ue:
|
|
754
|
+
u[f] = u[f] + (t[p] / 2 - n[p] / 2);
|
|
751
755
|
break;
|
|
752
756
|
}
|
|
753
757
|
}
|
|
754
758
|
return u;
|
|
755
759
|
}
|
|
756
|
-
function
|
|
760
|
+
function He(e, t) {
|
|
757
761
|
t === void 0 && (t = {});
|
|
758
|
-
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy,
|
|
762
|
+
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, l = a === void 0 ? e.strategy : a, c = n.boundary, u = c === void 0 ? Vr : c, f = n.rootBoundary, p = f === void 0 ? wn : f, g = n.elementContext, x = g === void 0 ? Ve : g, m = n.altBoundary, w = m === void 0 ? !1 : m, y = n.padding, b = y === void 0 ? 0 : y, T = Sn(typeof b != "number" ? b : Dn(b, qe)), R = x === Ve ? _r : Ve, C = e.rects.popper, i = e.elements[w ? R : x], E = hi(we(i) ? i : i.contextElement || pe(e.elements.popper), u, p, l), d = Ce(e.elements.reference), D = Ln({
|
|
759
763
|
reference: d,
|
|
760
|
-
element:
|
|
764
|
+
element: C,
|
|
761
765
|
strategy: "absolute",
|
|
762
766
|
placement: o
|
|
763
|
-
}), I = xt(Object.assign({},
|
|
764
|
-
top: E.top - M.top +
|
|
765
|
-
bottom: M.bottom - E.bottom +
|
|
766
|
-
left: E.left - M.left +
|
|
767
|
-
right: M.right - E.right +
|
|
768
|
-
},
|
|
769
|
-
if (x === Ve &&
|
|
770
|
-
var
|
|
771
|
-
Object.keys(
|
|
772
|
-
var
|
|
773
|
-
|
|
767
|
+
}), I = xt(Object.assign({}, C, D)), M = x === Ve ? I : d, P = {
|
|
768
|
+
top: E.top - M.top + T.top,
|
|
769
|
+
bottom: M.bottom - E.bottom + T.bottom,
|
|
770
|
+
left: E.left - M.left + T.left,
|
|
771
|
+
right: M.right - E.right + T.right
|
|
772
|
+
}, A = e.modifiersData.offset;
|
|
773
|
+
if (x === Ve && A) {
|
|
774
|
+
var L = A[o];
|
|
775
|
+
Object.keys(P).forEach(function(N) {
|
|
776
|
+
var U = [X, Y].indexOf(N) >= 0 ? 1 : -1, H = [B, Y].indexOf(N) >= 0 ? "y" : "x";
|
|
777
|
+
P[N] += L[H] * U;
|
|
774
778
|
});
|
|
775
779
|
}
|
|
776
|
-
return
|
|
780
|
+
return P;
|
|
777
781
|
}
|
|
778
|
-
function
|
|
782
|
+
function mi(e, t) {
|
|
779
783
|
t === void 0 && (t = {});
|
|
780
|
-
var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary,
|
|
781
|
-
return
|
|
784
|
+
var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, l = n.padding, c = n.flipVariations, u = n.allowedAutoPlacements, f = u === void 0 ? En : u, p = Pe(r), g = p ? c ? Vt : Vt.filter(function(w) {
|
|
785
|
+
return Pe(w) === p;
|
|
782
786
|
}) : qe, x = g.filter(function(w) {
|
|
783
787
|
return f.indexOf(w) >= 0;
|
|
784
788
|
});
|
|
785
789
|
x.length === 0 && (x = g, 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(" ")));
|
|
786
790
|
var m = x.reduce(function(w, y) {
|
|
787
|
-
return w[y] =
|
|
791
|
+
return w[y] = He(e, {
|
|
788
792
|
placement: y,
|
|
789
793
|
boundary: o,
|
|
790
794
|
rootBoundary: a,
|
|
791
|
-
padding:
|
|
795
|
+
padding: l
|
|
792
796
|
})[K(y)], w;
|
|
793
797
|
}, {});
|
|
794
798
|
return Object.keys(m).sort(function(w, y) {
|
|
795
799
|
return m[w] - m[y];
|
|
796
800
|
});
|
|
797
801
|
}
|
|
798
|
-
function
|
|
799
|
-
if (K(e) ===
|
|
802
|
+
function gi(e) {
|
|
803
|
+
if (K(e) === pt)
|
|
800
804
|
return [];
|
|
801
805
|
var t = ut(e);
|
|
802
806
|
return [$t(e), t, $t(t)];
|
|
803
807
|
}
|
|
804
|
-
function
|
|
808
|
+
function yi(e) {
|
|
805
809
|
var t = e.state, n = e.options, r = e.name;
|
|
806
810
|
if (!t.modifiersData[r]._skip) {
|
|
807
|
-
for (var o = n.mainAxis, a = o === void 0 ? !0 : o,
|
|
808
|
-
return re.concat(K(G) ===
|
|
811
|
+
for (var o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, c = l === void 0 ? !0 : l, u = n.fallbackPlacements, f = n.padding, p = n.boundary, g = n.rootBoundary, x = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, y = n.allowedAutoPlacements, b = t.options.placement, T = K(b), R = T === b, C = u || (R || !w ? [ut(b)] : gi(b)), i = [b].concat(C).reduce(function(re, G) {
|
|
812
|
+
return re.concat(K(G) === pt ? mi(t, {
|
|
809
813
|
placement: G,
|
|
810
|
-
boundary:
|
|
814
|
+
boundary: p,
|
|
811
815
|
rootBoundary: g,
|
|
812
816
|
padding: f,
|
|
813
817
|
flipVariations: w,
|
|
814
818
|
allowedAutoPlacements: y
|
|
815
819
|
}) : G);
|
|
816
|
-
}, []), E = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), I = !0, M = i[0],
|
|
817
|
-
var
|
|
818
|
-
placement:
|
|
819
|
-
boundary:
|
|
820
|
+
}, []), E = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), I = !0, M = i[0], P = 0; P < i.length; P++) {
|
|
821
|
+
var A = i[P], L = K(A), N = Pe(A) === Re, U = [B, Y].indexOf(L) >= 0, H = U ? "width" : "height", k = He(t, {
|
|
822
|
+
placement: A,
|
|
823
|
+
boundary: p,
|
|
820
824
|
rootBoundary: g,
|
|
821
825
|
altBoundary: x,
|
|
822
826
|
padding: f
|
|
823
|
-
}), V =
|
|
824
|
-
E[
|
|
827
|
+
}), V = U ? N ? X : $ : N ? Y : B;
|
|
828
|
+
E[H] > d[H] && (V = ut(V));
|
|
825
829
|
var j = ut(V), J = [];
|
|
826
|
-
if (a && J.push(k[
|
|
830
|
+
if (a && J.push(k[L] <= 0), c && J.push(k[V] <= 0, k[j] <= 0), J.every(function(re) {
|
|
827
831
|
return re;
|
|
828
832
|
})) {
|
|
829
|
-
M =
|
|
833
|
+
M = A, I = !1;
|
|
830
834
|
break;
|
|
831
835
|
}
|
|
832
|
-
D.set(
|
|
836
|
+
D.set(A, J);
|
|
833
837
|
}
|
|
834
838
|
if (I)
|
|
835
839
|
for (var Q = w ? 3 : 1, fe = function(G) {
|
|
@@ -850,17 +854,17 @@ function gi(e) {
|
|
|
850
854
|
t.placement !== M && (t.modifiersData[r]._skip = !0, t.placement = M, t.reset = !0);
|
|
851
855
|
}
|
|
852
856
|
}
|
|
853
|
-
const
|
|
857
|
+
const bi = {
|
|
854
858
|
name: "flip",
|
|
855
859
|
enabled: !0,
|
|
856
860
|
phase: "main",
|
|
857
|
-
fn:
|
|
861
|
+
fn: yi,
|
|
858
862
|
requiresIfExists: ["offset"],
|
|
859
863
|
data: {
|
|
860
864
|
_skip: !1
|
|
861
865
|
}
|
|
862
866
|
};
|
|
863
|
-
function
|
|
867
|
+
function Ht(e, t, n) {
|
|
864
868
|
return n === void 0 && (n = {
|
|
865
869
|
x: 0,
|
|
866
870
|
y: 0
|
|
@@ -876,111 +880,111 @@ function Ft(e) {
|
|
|
876
880
|
return e[t] >= 0;
|
|
877
881
|
});
|
|
878
882
|
}
|
|
879
|
-
function
|
|
880
|
-
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow,
|
|
883
|
+
function wi(e) {
|
|
884
|
+
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, l = He(t, {
|
|
881
885
|
elementContext: "reference"
|
|
882
|
-
}), c =
|
|
886
|
+
}), c = He(t, {
|
|
883
887
|
altBoundary: !0
|
|
884
|
-
}), u =
|
|
888
|
+
}), u = Ht(l, r), f = Ht(c, o, a), p = Ft(u), g = Ft(f);
|
|
885
889
|
t.modifiersData[n] = {
|
|
886
890
|
referenceClippingOffsets: u,
|
|
887
891
|
popperEscapeOffsets: f,
|
|
888
|
-
isReferenceHidden:
|
|
892
|
+
isReferenceHidden: p,
|
|
889
893
|
hasPopperEscaped: g
|
|
890
894
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
891
|
-
"data-popper-reference-hidden":
|
|
895
|
+
"data-popper-reference-hidden": p,
|
|
892
896
|
"data-popper-escaped": g
|
|
893
897
|
});
|
|
894
898
|
}
|
|
895
|
-
const
|
|
899
|
+
const Ei = {
|
|
896
900
|
name: "hide",
|
|
897
901
|
enabled: !0,
|
|
898
902
|
phase: "main",
|
|
899
903
|
requiresIfExists: ["preventOverflow"],
|
|
900
|
-
fn:
|
|
904
|
+
fn: wi
|
|
901
905
|
};
|
|
902
|
-
function
|
|
906
|
+
function Oi(e, t, n) {
|
|
903
907
|
var r = K(e), o = [$, B].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
|
|
904
908
|
placement: e
|
|
905
|
-
})) : n,
|
|
906
|
-
return
|
|
909
|
+
})) : n, l = a[0], c = a[1];
|
|
910
|
+
return l = l || 0, c = (c || 0) * o, [$, X].indexOf(r) >= 0 ? {
|
|
907
911
|
x: c,
|
|
908
|
-
y:
|
|
912
|
+
y: l
|
|
909
913
|
} : {
|
|
910
|
-
x:
|
|
914
|
+
x: l,
|
|
911
915
|
y: c
|
|
912
916
|
};
|
|
913
917
|
}
|
|
914
|
-
function
|
|
915
|
-
var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o,
|
|
916
|
-
return
|
|
917
|
-
}, {}), c =
|
|
918
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] =
|
|
918
|
+
function xi(e) {
|
|
919
|
+
var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, l = En.reduce(function(p, g) {
|
|
920
|
+
return p[g] = Oi(g, t.rects, a), p;
|
|
921
|
+
}, {}), c = l[t.placement], u = c.x, f = c.y;
|
|
922
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = l;
|
|
919
923
|
}
|
|
920
|
-
const
|
|
924
|
+
const Ai = {
|
|
921
925
|
name: "offset",
|
|
922
926
|
enabled: !0,
|
|
923
927
|
phase: "main",
|
|
924
928
|
requires: ["popperOffsets"],
|
|
925
|
-
fn:
|
|
929
|
+
fn: xi
|
|
926
930
|
};
|
|
927
931
|
function Ti(e) {
|
|
928
932
|
var t = e.state, n = e.name;
|
|
929
|
-
t.modifiersData[n] =
|
|
933
|
+
t.modifiersData[n] = Ln({
|
|
930
934
|
reference: t.rects.reference,
|
|
931
935
|
element: t.rects.popper,
|
|
932
936
|
strategy: "absolute",
|
|
933
937
|
placement: t.placement
|
|
934
938
|
});
|
|
935
939
|
}
|
|
936
|
-
const
|
|
940
|
+
const Si = {
|
|
937
941
|
name: "popperOffsets",
|
|
938
942
|
enabled: !0,
|
|
939
943
|
phase: "read",
|
|
940
944
|
fn: Ti,
|
|
941
945
|
data: {}
|
|
942
946
|
};
|
|
943
|
-
function
|
|
947
|
+
function Di(e) {
|
|
944
948
|
return e === "x" ? "y" : "x";
|
|
945
949
|
}
|
|
946
|
-
function
|
|
947
|
-
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o,
|
|
950
|
+
function Ri(e) {
|
|
951
|
+
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, c = l === void 0 ? !1 : l, u = n.boundary, f = n.rootBoundary, p = n.altBoundary, g = n.padding, x = n.tether, m = x === void 0 ? !0 : x, w = n.tetherOffset, y = w === void 0 ? 0 : w, b = He(t, {
|
|
948
952
|
boundary: u,
|
|
949
953
|
rootBoundary: f,
|
|
950
954
|
padding: g,
|
|
951
|
-
altBoundary:
|
|
952
|
-
}),
|
|
955
|
+
altBoundary: p
|
|
956
|
+
}), T = K(t.placement), R = Pe(t.placement), C = !R, i = Lt(T), E = Di(i), d = t.modifiersData.popperOffsets, D = t.rects.reference, I = t.rects.popper, M = typeof y == "function" ? y(Object.assign({}, t.rects, {
|
|
953
957
|
placement: t.placement
|
|
954
|
-
})) : y,
|
|
958
|
+
})) : y, P = typeof M == "number" ? {
|
|
955
959
|
mainAxis: M,
|
|
956
960
|
altAxis: M
|
|
957
961
|
} : Object.assign({
|
|
958
962
|
mainAxis: 0,
|
|
959
963
|
altAxis: 0
|
|
960
|
-
}, M),
|
|
964
|
+
}, M), A = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
|
|
961
965
|
x: 0,
|
|
962
966
|
y: 0
|
|
963
967
|
};
|
|
964
968
|
if (d) {
|
|
965
969
|
if (a) {
|
|
966
|
-
var N,
|
|
970
|
+
var N, U = i === "y" ? B : $, H = i === "y" ? Y : X, k = i === "y" ? "height" : "width", V = d[i], j = V + b[U], J = V - b[H], Q = m ? -I[k] / 2 : 0, fe = R === Re ? D[k] : I[k], ee = R === Re ? -I[k] : -D[k], de = t.elements.arrow, re = m && de ? Rt(de) : {
|
|
967
971
|
width: 0,
|
|
968
972
|
height: 0
|
|
969
|
-
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
970
|
-
d[i] = Ie,
|
|
973
|
+
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Tn(), ie = G[U], Ee = G[H], oe = _e(0, D[k], re[k]), Oe = C ? D[k] / 2 - Q - oe - ie - P.mainAxis : fe - oe - ie - P.mainAxis, ue = C ? -D[k] / 2 + Q + oe + Ee + P.mainAxis : ee + oe + Ee + P.mainAxis, xe = t.elements.arrow && ze(t.elements.arrow), Xe = xe ? i === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Ne = (N = A == null ? void 0 : A[i]) != null ? N : 0, Ge = V + Oe - Ne - Xe, Ke = V + ue - Ne, Ie = _e(m ? ct(j, Ge) : j, V, m ? be(J, Ke) : J);
|
|
974
|
+
d[i] = Ie, L[i] = Ie - V;
|
|
971
975
|
}
|
|
972
976
|
if (c) {
|
|
973
|
-
var Me, Ze = i === "x" ? B : $, Je = i === "x" ? Y : X, ae = d[E], ce = E === "y" ? "height" : "width", je = ae + b[Ze], ve = ae - b[Je], ke = [B, $].indexOf(
|
|
974
|
-
d[E] = nt,
|
|
977
|
+
var Me, Ze = i === "x" ? B : $, Je = i === "x" ? Y : X, ae = d[E], ce = E === "y" ? "height" : "width", je = ae + b[Ze], ve = ae - b[Je], ke = [B, $].indexOf(T) !== -1, Qe = (Me = A == null ? void 0 : A[E]) != null ? Me : 0, et = ke ? je : ae - D[ce] - I[ce] - Qe + P.altAxis, tt = ke ? ae + D[ce] + I[ce] - Qe - P.altAxis : ve, nt = m && ke ? Jr(et, ae, tt) : _e(m ? et : je, ae, m ? tt : ve);
|
|
978
|
+
d[E] = nt, L[E] = nt - ae;
|
|
975
979
|
}
|
|
976
|
-
t.modifiersData[r] =
|
|
980
|
+
t.modifiersData[r] = L;
|
|
977
981
|
}
|
|
978
982
|
}
|
|
979
|
-
const
|
|
983
|
+
const Li = {
|
|
980
984
|
name: "preventOverflow",
|
|
981
985
|
enabled: !0,
|
|
982
986
|
phase: "main",
|
|
983
|
-
fn:
|
|
987
|
+
fn: Ri,
|
|
984
988
|
requiresIfExists: ["offset"]
|
|
985
989
|
};
|
|
986
990
|
function Ci(e) {
|
|
@@ -990,15 +994,15 @@ function Ci(e) {
|
|
|
990
994
|
};
|
|
991
995
|
}
|
|
992
996
|
function Pi(e) {
|
|
993
|
-
return e === q(e) || !W(e) ?
|
|
997
|
+
return e === q(e) || !W(e) ? Ct(e) : Ci(e);
|
|
994
998
|
}
|
|
995
|
-
function
|
|
996
|
-
var t = e.getBoundingClientRect(), n =
|
|
999
|
+
function Ni(e) {
|
|
1000
|
+
var t = e.getBoundingClientRect(), n = Le(t.width) / e.offsetWidth || 1, r = Le(t.height) / e.offsetHeight || 1;
|
|
997
1001
|
return n !== 1 || r !== 1;
|
|
998
1002
|
}
|
|
999
|
-
function
|
|
1003
|
+
function Ii(e, t, n) {
|
|
1000
1004
|
n === void 0 && (n = !1);
|
|
1001
|
-
var r = W(t), o = W(t) &&
|
|
1005
|
+
var r = W(t), o = W(t) && Ni(t), a = pe(t), l = Ce(e, o, n), c = {
|
|
1002
1006
|
scrollLeft: 0,
|
|
1003
1007
|
scrollTop: 0
|
|
1004
1008
|
}, u = {
|
|
@@ -1006,22 +1010,22 @@ function Ni(e, t, n) {
|
|
|
1006
1010
|
y: 0
|
|
1007
1011
|
};
|
|
1008
1012
|
return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1009
|
-
Nt(a)) && (c = Pi(t)), W(t) ? (u =
|
|
1010
|
-
x:
|
|
1011
|
-
y:
|
|
1012
|
-
width:
|
|
1013
|
-
height:
|
|
1013
|
+
Nt(a)) && (c = Pi(t)), W(t) ? (u = Ce(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = Pt(a))), {
|
|
1014
|
+
x: l.left + c.scrollLeft - u.x,
|
|
1015
|
+
y: l.top + c.scrollTop - u.y,
|
|
1016
|
+
width: l.width,
|
|
1017
|
+
height: l.height
|
|
1014
1018
|
};
|
|
1015
1019
|
}
|
|
1016
|
-
function
|
|
1020
|
+
function Mi(e) {
|
|
1017
1021
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
1018
1022
|
e.forEach(function(a) {
|
|
1019
1023
|
t.set(a.name, a);
|
|
1020
1024
|
});
|
|
1021
1025
|
function o(a) {
|
|
1022
1026
|
n.add(a.name);
|
|
1023
|
-
var
|
|
1024
|
-
|
|
1027
|
+
var l = [].concat(a.requires || [], a.requiresIfExists || []);
|
|
1028
|
+
l.forEach(function(c) {
|
|
1025
1029
|
if (!n.has(c)) {
|
|
1026
1030
|
var u = t.get(c);
|
|
1027
1031
|
u && o(u);
|
|
@@ -1032,15 +1036,15 @@ function Ii(e) {
|
|
|
1032
1036
|
n.has(a.name) || o(a);
|
|
1033
1037
|
}), r;
|
|
1034
1038
|
}
|
|
1035
|
-
function
|
|
1036
|
-
var t =
|
|
1039
|
+
function ji(e) {
|
|
1040
|
+
var t = Mi(e);
|
|
1037
1041
|
return Et.reduce(function(n, r) {
|
|
1038
1042
|
return n.concat(t.filter(function(o) {
|
|
1039
1043
|
return o.phase === r;
|
|
1040
1044
|
}));
|
|
1041
1045
|
}, []);
|
|
1042
1046
|
}
|
|
1043
|
-
function
|
|
1047
|
+
function ki(e) {
|
|
1044
1048
|
var t;
|
|
1045
1049
|
return function() {
|
|
1046
1050
|
return t || (t = new Promise(function(n) {
|
|
@@ -1050,40 +1054,40 @@ function ji(e) {
|
|
|
1050
1054
|
})), t;
|
|
1051
1055
|
};
|
|
1052
1056
|
}
|
|
1053
|
-
function
|
|
1057
|
+
function le(e) {
|
|
1054
1058
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
1055
1059
|
n[r - 1] = arguments[r];
|
|
1056
1060
|
return [].concat(n).reduce(function(o, a) {
|
|
1057
1061
|
return o.replace(/%s/, a);
|
|
1058
1062
|
}, e);
|
|
1059
1063
|
}
|
|
1060
|
-
var me = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
1061
|
-
function
|
|
1064
|
+
var me = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Vi = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Wt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
1065
|
+
function _i(e) {
|
|
1062
1066
|
e.forEach(function(t) {
|
|
1063
1067
|
[].concat(Object.keys(t), Wt).filter(function(n, r, o) {
|
|
1064
1068
|
return o.indexOf(n) === r;
|
|
1065
1069
|
}).forEach(function(n) {
|
|
1066
1070
|
switch (n) {
|
|
1067
1071
|
case "name":
|
|
1068
|
-
typeof t.name != "string" && console.error(
|
|
1072
|
+
typeof t.name != "string" && console.error(le(me, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
1069
1073
|
break;
|
|
1070
1074
|
case "enabled":
|
|
1071
|
-
typeof t.enabled != "boolean" && console.error(
|
|
1075
|
+
typeof t.enabled != "boolean" && console.error(le(me, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
1072
1076
|
break;
|
|
1073
1077
|
case "phase":
|
|
1074
|
-
Et.indexOf(t.phase) < 0 && console.error(
|
|
1078
|
+
Et.indexOf(t.phase) < 0 && console.error(le(me, t.name, '"phase"', "either " + Et.join(", "), '"' + String(t.phase) + '"'));
|
|
1075
1079
|
break;
|
|
1076
1080
|
case "fn":
|
|
1077
|
-
typeof t.fn != "function" && console.error(
|
|
1081
|
+
typeof t.fn != "function" && console.error(le(me, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
1078
1082
|
break;
|
|
1079
1083
|
case "effect":
|
|
1080
|
-
t.effect != null && typeof t.effect != "function" && console.error(
|
|
1084
|
+
t.effect != null && typeof t.effect != "function" && console.error(le(me, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
1081
1085
|
break;
|
|
1082
1086
|
case "requires":
|
|
1083
|
-
t.requires != null && !Array.isArray(t.requires) && console.error(
|
|
1087
|
+
t.requires != null && !Array.isArray(t.requires) && console.error(le(me, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
1084
1088
|
break;
|
|
1085
1089
|
case "requiresIfExists":
|
|
1086
|
-
Array.isArray(t.requiresIfExists) || console.error(
|
|
1090
|
+
Array.isArray(t.requiresIfExists) || console.error(le(me, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
|
|
1087
1091
|
break;
|
|
1088
1092
|
case "options":
|
|
1089
1093
|
case "data":
|
|
@@ -1096,12 +1100,12 @@ function Vi(e) {
|
|
|
1096
1100
|
t.requires && t.requires.forEach(function(r) {
|
|
1097
1101
|
e.find(function(o) {
|
|
1098
1102
|
return o.name === r;
|
|
1099
|
-
}) == null && console.error(
|
|
1103
|
+
}) == null && console.error(le(Vi, String(t.name), r, r));
|
|
1100
1104
|
});
|
|
1101
1105
|
});
|
|
1102
1106
|
});
|
|
1103
1107
|
}
|
|
1104
|
-
function
|
|
1108
|
+
function Bi(e, t) {
|
|
1105
1109
|
var n = /* @__PURE__ */ new Set();
|
|
1106
1110
|
return e.filter(function(r) {
|
|
1107
1111
|
var o = t(r);
|
|
@@ -1109,7 +1113,7 @@ function _i(e, t) {
|
|
|
1109
1113
|
return n.add(o), !0;
|
|
1110
1114
|
});
|
|
1111
1115
|
}
|
|
1112
|
-
function
|
|
1116
|
+
function $i(e) {
|
|
1113
1117
|
var t = e.reduce(function(n, r) {
|
|
1114
1118
|
var o = n[r.name];
|
|
1115
1119
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -1121,7 +1125,7 @@ function Bi(e) {
|
|
|
1121
1125
|
return t[n];
|
|
1122
1126
|
});
|
|
1123
1127
|
}
|
|
1124
|
-
var qt = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",
|
|
1128
|
+
var qt = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Ui = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", zt = {
|
|
1125
1129
|
placement: "bottom",
|
|
1126
1130
|
modifiers: [],
|
|
1127
1131
|
strategy: "absolute"
|
|
@@ -1138,7 +1142,7 @@ function Hi(e) {
|
|
|
1138
1142
|
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? zt : o;
|
|
1139
1143
|
return function(c, u, f) {
|
|
1140
1144
|
f === void 0 && (f = a);
|
|
1141
|
-
var
|
|
1145
|
+
var p = {
|
|
1142
1146
|
placement: "bottom",
|
|
1143
1147
|
orderedModifiers: [],
|
|
1144
1148
|
options: Object.assign({}, zt, a),
|
|
@@ -1150,31 +1154,31 @@ function Hi(e) {
|
|
|
1150
1154
|
attributes: {},
|
|
1151
1155
|
styles: {}
|
|
1152
1156
|
}, g = [], x = !1, m = {
|
|
1153
|
-
state:
|
|
1154
|
-
setOptions: function(
|
|
1155
|
-
var R = typeof
|
|
1156
|
-
y(),
|
|
1157
|
+
state: p,
|
|
1158
|
+
setOptions: function(T) {
|
|
1159
|
+
var R = typeof T == "function" ? T(p.options) : T;
|
|
1160
|
+
y(), p.options = Object.assign({}, a, p.options, R), p.scrollParents = {
|
|
1157
1161
|
reference: we(c) ? Be(c) : c.contextElement ? Be(c.contextElement) : [],
|
|
1158
1162
|
popper: Be(u)
|
|
1159
1163
|
};
|
|
1160
|
-
var
|
|
1161
|
-
if (
|
|
1162
|
-
return
|
|
1164
|
+
var C = ji($i([].concat(r, p.options.modifiers)));
|
|
1165
|
+
if (p.orderedModifiers = C.filter(function(A) {
|
|
1166
|
+
return A.enabled;
|
|
1163
1167
|
}), process.env.NODE_ENV !== "production") {
|
|
1164
|
-
var i =
|
|
1165
|
-
var
|
|
1166
|
-
return
|
|
1168
|
+
var i = Bi([].concat(C, p.options.modifiers), function(A) {
|
|
1169
|
+
var L = A.name;
|
|
1170
|
+
return L;
|
|
1167
1171
|
});
|
|
1168
|
-
if (
|
|
1169
|
-
var E =
|
|
1170
|
-
var
|
|
1171
|
-
return
|
|
1172
|
+
if (_i(i), K(p.options.placement) === pt) {
|
|
1173
|
+
var E = p.orderedModifiers.find(function(A) {
|
|
1174
|
+
var L = A.name;
|
|
1175
|
+
return L === "flip";
|
|
1172
1176
|
});
|
|
1173
1177
|
E || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
1174
1178
|
}
|
|
1175
|
-
var d = Z(u), D = d.marginTop, I = d.marginRight, M = d.marginBottom,
|
|
1176
|
-
[D, I, M,
|
|
1177
|
-
return parseFloat(
|
|
1179
|
+
var d = Z(u), D = d.marginTop, I = d.marginRight, M = d.marginBottom, P = d.marginLeft;
|
|
1180
|
+
[D, I, M, P].some(function(A) {
|
|
1181
|
+
return parseFloat(A);
|
|
1178
1182
|
}) && 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(" "));
|
|
1179
1183
|
}
|
|
1180
1184
|
return w(), m.update();
|
|
@@ -1186,41 +1190,41 @@ function Hi(e) {
|
|
|
1186
1190
|
// prefer the async Popper#update method
|
|
1187
1191
|
forceUpdate: function() {
|
|
1188
1192
|
if (!x) {
|
|
1189
|
-
var
|
|
1190
|
-
if (!Yt(R,
|
|
1193
|
+
var T = p.elements, R = T.reference, C = T.popper;
|
|
1194
|
+
if (!Yt(R, C)) {
|
|
1191
1195
|
process.env.NODE_ENV !== "production" && console.error(qt);
|
|
1192
1196
|
return;
|
|
1193
1197
|
}
|
|
1194
|
-
|
|
1195
|
-
reference:
|
|
1196
|
-
popper: Rt(
|
|
1197
|
-
},
|
|
1198
|
-
return
|
|
1198
|
+
p.rects = {
|
|
1199
|
+
reference: Ii(R, ze(C), p.options.strategy === "fixed"),
|
|
1200
|
+
popper: Rt(C)
|
|
1201
|
+
}, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(A) {
|
|
1202
|
+
return p.modifiersData[A.name] = Object.assign({}, A.data);
|
|
1199
1203
|
});
|
|
1200
|
-
for (var i = 0, E = 0; E <
|
|
1204
|
+
for (var i = 0, E = 0; E < p.orderedModifiers.length; E++) {
|
|
1201
1205
|
if (process.env.NODE_ENV !== "production" && (i += 1, i > 100)) {
|
|
1202
|
-
console.error(
|
|
1206
|
+
console.error(Ui);
|
|
1203
1207
|
break;
|
|
1204
1208
|
}
|
|
1205
|
-
if (
|
|
1206
|
-
|
|
1209
|
+
if (p.reset === !0) {
|
|
1210
|
+
p.reset = !1, E = -1;
|
|
1207
1211
|
continue;
|
|
1208
1212
|
}
|
|
1209
|
-
var d =
|
|
1210
|
-
typeof D == "function" && (
|
|
1211
|
-
state:
|
|
1213
|
+
var d = p.orderedModifiers[E], D = d.fn, I = d.options, M = I === void 0 ? {} : I, P = d.name;
|
|
1214
|
+
typeof D == "function" && (p = D({
|
|
1215
|
+
state: p,
|
|
1212
1216
|
options: M,
|
|
1213
|
-
name:
|
|
1217
|
+
name: P,
|
|
1214
1218
|
instance: m
|
|
1215
|
-
}) ||
|
|
1219
|
+
}) || p);
|
|
1216
1220
|
}
|
|
1217
1221
|
}
|
|
1218
1222
|
},
|
|
1219
1223
|
// Async and optimistically optimized update – it will not be executed if
|
|
1220
1224
|
// not necessary (debounced to run at most once-per-tick)
|
|
1221
|
-
update:
|
|
1225
|
+
update: ki(function() {
|
|
1222
1226
|
return new Promise(function(b) {
|
|
1223
|
-
m.forceUpdate(), b(
|
|
1227
|
+
m.forceUpdate(), b(p);
|
|
1224
1228
|
});
|
|
1225
1229
|
}),
|
|
1226
1230
|
destroy: function() {
|
|
@@ -1233,14 +1237,14 @@ function Hi(e) {
|
|
|
1233
1237
|
!x && f.onFirstUpdate && f.onFirstUpdate(b);
|
|
1234
1238
|
});
|
|
1235
1239
|
function w() {
|
|
1236
|
-
|
|
1237
|
-
var
|
|
1240
|
+
p.orderedModifiers.forEach(function(b) {
|
|
1241
|
+
var T = b.name, R = b.options, C = R === void 0 ? {} : R, i = b.effect;
|
|
1238
1242
|
if (typeof i == "function") {
|
|
1239
1243
|
var E = i({
|
|
1240
|
-
state:
|
|
1241
|
-
name:
|
|
1244
|
+
state: p,
|
|
1245
|
+
name: T,
|
|
1242
1246
|
instance: m,
|
|
1243
|
-
options:
|
|
1247
|
+
options: C
|
|
1244
1248
|
}), d = function() {
|
|
1245
1249
|
};
|
|
1246
1250
|
g.push(E || d);
|
|
@@ -1255,15 +1259,15 @@ function Hi(e) {
|
|
|
1255
1259
|
return m;
|
|
1256
1260
|
};
|
|
1257
1261
|
}
|
|
1258
|
-
var
|
|
1259
|
-
defaultModifiers:
|
|
1260
|
-
}),
|
|
1262
|
+
var Fi = [ui, Si, ai, On, Ai, bi, Li, ni, Ei], Wi = /* @__PURE__ */ Hi({
|
|
1263
|
+
defaultModifiers: Fi
|
|
1264
|
+
}), qi = "tippy-box", Cn = "tippy-content", zi = "tippy-backdrop", Pn = "tippy-arrow", Nn = "tippy-svg-arrow", ye = {
|
|
1261
1265
|
passive: !0,
|
|
1262
1266
|
capture: !0
|
|
1263
1267
|
}, In = function() {
|
|
1264
1268
|
return document.body;
|
|
1265
1269
|
};
|
|
1266
|
-
function
|
|
1270
|
+
function Yi(e, t) {
|
|
1267
1271
|
return {}.hasOwnProperty.call(e, t);
|
|
1268
1272
|
}
|
|
1269
1273
|
function ht(e, t, n) {
|
|
@@ -1290,13 +1294,13 @@ function Xt(e, t) {
|
|
|
1290
1294
|
}, t);
|
|
1291
1295
|
};
|
|
1292
1296
|
}
|
|
1293
|
-
function
|
|
1297
|
+
function Xi(e, t) {
|
|
1294
1298
|
var n = Object.assign({}, e);
|
|
1295
1299
|
return t.forEach(function(r) {
|
|
1296
1300
|
delete n[r];
|
|
1297
1301
|
}), n;
|
|
1298
1302
|
}
|
|
1299
|
-
function
|
|
1303
|
+
function Gi(e) {
|
|
1300
1304
|
return e.split(/\s+/).filter(Boolean);
|
|
1301
1305
|
}
|
|
1302
1306
|
function De(e) {
|
|
@@ -1305,15 +1309,15 @@ function De(e) {
|
|
|
1305
1309
|
function Gt(e, t) {
|
|
1306
1310
|
e.indexOf(t) === -1 && e.push(t);
|
|
1307
1311
|
}
|
|
1308
|
-
function
|
|
1312
|
+
function Ki(e) {
|
|
1309
1313
|
return e.filter(function(t, n) {
|
|
1310
1314
|
return e.indexOf(t) === n;
|
|
1311
1315
|
});
|
|
1312
1316
|
}
|
|
1313
|
-
function
|
|
1317
|
+
function Zi(e) {
|
|
1314
1318
|
return e.split("-")[0];
|
|
1315
1319
|
}
|
|
1316
|
-
function
|
|
1320
|
+
function lt(e) {
|
|
1317
1321
|
return [].slice.call(e);
|
|
1318
1322
|
}
|
|
1319
1323
|
function Kt(e) {
|
|
@@ -1329,17 +1333,17 @@ function Fe(e) {
|
|
|
1329
1333
|
return It(e, t);
|
|
1330
1334
|
});
|
|
1331
1335
|
}
|
|
1332
|
-
function
|
|
1336
|
+
function Ji(e) {
|
|
1333
1337
|
return It(e, "NodeList");
|
|
1334
1338
|
}
|
|
1335
|
-
function
|
|
1339
|
+
function Qi(e) {
|
|
1336
1340
|
return It(e, "MouseEvent");
|
|
1337
1341
|
}
|
|
1338
|
-
function
|
|
1342
|
+
function eo(e) {
|
|
1339
1343
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
1340
1344
|
}
|
|
1341
|
-
function
|
|
1342
|
-
return Fe(e) ? [e] :
|
|
1345
|
+
function to(e) {
|
|
1346
|
+
return Fe(e) ? [e] : Ji(e) ? lt(e) : Array.isArray(e) ? e : lt(document.querySelectorAll(e));
|
|
1343
1347
|
}
|
|
1344
1348
|
function mt(e, t) {
|
|
1345
1349
|
e.forEach(function(n) {
|
|
@@ -1351,18 +1355,18 @@ function Zt(e, t) {
|
|
|
1351
1355
|
n && n.setAttribute("data-state", t);
|
|
1352
1356
|
});
|
|
1353
1357
|
}
|
|
1354
|
-
function
|
|
1358
|
+
function no(e) {
|
|
1355
1359
|
var t, n = De(e), r = n[0];
|
|
1356
1360
|
return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
|
|
1357
1361
|
}
|
|
1358
|
-
function
|
|
1362
|
+
function ro(e, t) {
|
|
1359
1363
|
var n = t.clientX, r = t.clientY;
|
|
1360
1364
|
return e.every(function(o) {
|
|
1361
|
-
var a = o.popperRect,
|
|
1362
|
-
if (!
|
|
1365
|
+
var a = o.popperRect, l = o.popperState, c = o.props, u = c.interactiveBorder, f = Zi(l.placement), p = l.modifiersData.offset;
|
|
1366
|
+
if (!p)
|
|
1363
1367
|
return !0;
|
|
1364
|
-
var g = f === "bottom" ?
|
|
1365
|
-
return y || b ||
|
|
1368
|
+
var g = f === "bottom" ? p.top.y : 0, x = f === "top" ? p.bottom.y : 0, m = f === "right" ? p.left.x : 0, w = f === "left" ? p.right.x : 0, y = a.top - r + g > u, b = r - a.bottom - x > u, T = a.left - n + m > u, R = n - a.right - w > u;
|
|
1369
|
+
return y || b || T || R;
|
|
1366
1370
|
});
|
|
1367
1371
|
}
|
|
1368
1372
|
function gt(e, t, n) {
|
|
@@ -1383,24 +1387,24 @@ function Jt(e, t) {
|
|
|
1383
1387
|
var te = {
|
|
1384
1388
|
isTouch: !1
|
|
1385
1389
|
}, Qt = 0;
|
|
1386
|
-
function
|
|
1390
|
+
function io() {
|
|
1387
1391
|
te.isTouch || (te.isTouch = !0, window.performance && document.addEventListener("mousemove", jn));
|
|
1388
1392
|
}
|
|
1389
1393
|
function jn() {
|
|
1390
1394
|
var e = performance.now();
|
|
1391
1395
|
e - Qt < 20 && (te.isTouch = !1, document.removeEventListener("mousemove", jn)), Qt = e;
|
|
1392
1396
|
}
|
|
1393
|
-
function
|
|
1397
|
+
function oo() {
|
|
1394
1398
|
var e = document.activeElement;
|
|
1395
|
-
if (
|
|
1399
|
+
if (eo(e)) {
|
|
1396
1400
|
var t = e._tippy;
|
|
1397
1401
|
e.blur && !t.state.isVisible && e.blur();
|
|
1398
1402
|
}
|
|
1399
1403
|
}
|
|
1400
|
-
function
|
|
1401
|
-
document.addEventListener("touchstart",
|
|
1404
|
+
function ao() {
|
|
1405
|
+
document.addEventListener("touchstart", io, ye), window.addEventListener("blur", oo);
|
|
1402
1406
|
}
|
|
1403
|
-
var
|
|
1407
|
+
var so = typeof window < "u" && typeof document < "u", uo = so ? (
|
|
1404
1408
|
// @ts-ignore
|
|
1405
1409
|
!!window.msCrypto
|
|
1406
1410
|
) : !1;
|
|
@@ -1412,7 +1416,7 @@ function en(e) {
|
|
|
1412
1416
|
var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
|
|
1413
1417
|
return e.replace(t, " ").replace(n, "").trim();
|
|
1414
1418
|
}
|
|
1415
|
-
function
|
|
1419
|
+
function co(e) {
|
|
1416
1420
|
return en(`
|
|
1417
1421
|
%ctippy.js
|
|
1418
1422
|
|
|
@@ -1423,7 +1427,7 @@ function uo(e) {
|
|
|
1423
1427
|
}
|
|
1424
1428
|
function kn(e) {
|
|
1425
1429
|
return [
|
|
1426
|
-
|
|
1430
|
+
co(e),
|
|
1427
1431
|
// title
|
|
1428
1432
|
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
1429
1433
|
// message
|
|
@@ -1433,8 +1437,8 @@ function kn(e) {
|
|
|
1433
1437
|
];
|
|
1434
1438
|
}
|
|
1435
1439
|
var We;
|
|
1436
|
-
process.env.NODE_ENV !== "production" &&
|
|
1437
|
-
function
|
|
1440
|
+
process.env.NODE_ENV !== "production" && lo();
|
|
1441
|
+
function lo() {
|
|
1438
1442
|
We = /* @__PURE__ */ new Set();
|
|
1439
1443
|
}
|
|
1440
1444
|
function se(e, t) {
|
|
@@ -1443,7 +1447,7 @@ function se(e, t) {
|
|
|
1443
1447
|
We.add(t), (n = console).warn.apply(n, kn(t));
|
|
1444
1448
|
}
|
|
1445
1449
|
}
|
|
1446
|
-
function
|
|
1450
|
+
function At(e, t) {
|
|
1447
1451
|
if (e && !We.has(t)) {
|
|
1448
1452
|
var n;
|
|
1449
1453
|
We.add(t), (n = console).error.apply(n, kn(t));
|
|
@@ -1451,14 +1455,14 @@ function Tt(e, t) {
|
|
|
1451
1455
|
}
|
|
1452
1456
|
function po(e) {
|
|
1453
1457
|
var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
1454
|
-
|
|
1458
|
+
At(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), At(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1455
1459
|
}
|
|
1456
1460
|
var Vn = {
|
|
1457
1461
|
animateFill: !1,
|
|
1458
1462
|
followCursor: !1,
|
|
1459
1463
|
inlinePositioning: !1,
|
|
1460
1464
|
sticky: !1
|
|
1461
|
-
},
|
|
1465
|
+
}, fo = {
|
|
1462
1466
|
allowHTML: !1,
|
|
1463
1467
|
animation: "fade",
|
|
1464
1468
|
arrow: !0,
|
|
@@ -1516,7 +1520,7 @@ var Vn = {
|
|
|
1516
1520
|
touch: !0,
|
|
1517
1521
|
trigger: "mouseenter focus",
|
|
1518
1522
|
triggerTarget: null
|
|
1519
|
-
}, Vn,
|
|
1523
|
+
}, Vn, fo), vo = Object.keys(F), ho = function(t) {
|
|
1520
1524
|
process.env.NODE_ENV !== "production" && Bn(t, []);
|
|
1521
1525
|
var n = Object.keys(t);
|
|
1522
1526
|
n.forEach(function(r) {
|
|
@@ -1525,29 +1529,29 @@ var Vn = {
|
|
|
1525
1529
|
};
|
|
1526
1530
|
function _n(e) {
|
|
1527
1531
|
var t = e.plugins || [], n = t.reduce(function(r, o) {
|
|
1528
|
-
var a = o.name,
|
|
1532
|
+
var a = o.name, l = o.defaultValue;
|
|
1529
1533
|
if (a) {
|
|
1530
1534
|
var c;
|
|
1531
|
-
r[a] = e[a] !== void 0 ? e[a] : (c = F[a]) != null ? c :
|
|
1535
|
+
r[a] = e[a] !== void 0 ? e[a] : (c = F[a]) != null ? c : l;
|
|
1532
1536
|
}
|
|
1533
1537
|
return r;
|
|
1534
1538
|
}, {});
|
|
1535
1539
|
return Object.assign({}, e, n);
|
|
1536
1540
|
}
|
|
1537
|
-
function
|
|
1541
|
+
function mo(e, t) {
|
|
1538
1542
|
var n = t ? Object.keys(_n(Object.assign({}, F, {
|
|
1539
1543
|
plugins: t
|
|
1540
|
-
}))) :
|
|
1541
|
-
var
|
|
1542
|
-
if (!
|
|
1544
|
+
}))) : vo, r = n.reduce(function(o, a) {
|
|
1545
|
+
var l = (e.getAttribute("data-tippy-" + a) || "").trim();
|
|
1546
|
+
if (!l)
|
|
1543
1547
|
return o;
|
|
1544
1548
|
if (a === "content")
|
|
1545
|
-
o[a] =
|
|
1549
|
+
o[a] = l;
|
|
1546
1550
|
else
|
|
1547
1551
|
try {
|
|
1548
|
-
o[a] = JSON.parse(
|
|
1552
|
+
o[a] = JSON.parse(l);
|
|
1549
1553
|
} catch {
|
|
1550
|
-
o[a] =
|
|
1554
|
+
o[a] = l;
|
|
1551
1555
|
}
|
|
1552
1556
|
return o;
|
|
1553
1557
|
}, {});
|
|
@@ -1556,7 +1560,7 @@ function ho(e, t) {
|
|
|
1556
1560
|
function tn(e, t) {
|
|
1557
1561
|
var n = Object.assign({}, t, {
|
|
1558
1562
|
content: Mn(t.content, [e])
|
|
1559
|
-
}, t.ignoreAttributes ? {} :
|
|
1563
|
+
}, t.ignoreAttributes ? {} : mo(e, t.plugins));
|
|
1560
1564
|
return n.aria = Object.assign({}, F.aria, n.aria), n.aria = {
|
|
1561
1565
|
expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
|
|
1562
1566
|
content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
|
|
@@ -1566,51 +1570,51 @@ function Bn(e, t) {
|
|
|
1566
1570
|
e === void 0 && (e = {}), t === void 0 && (t = []);
|
|
1567
1571
|
var n = Object.keys(e);
|
|
1568
1572
|
n.forEach(function(r) {
|
|
1569
|
-
var o =
|
|
1570
|
-
a && (a = t.filter(function(
|
|
1571
|
-
return
|
|
1573
|
+
var o = Xi(F, Object.keys(Vn)), a = !Yi(o, r);
|
|
1574
|
+
a && (a = t.filter(function(l) {
|
|
1575
|
+
return l.name === r;
|
|
1572
1576
|
}).length === 0), se(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.", `
|
|
1573
1577
|
|
|
1574
1578
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
1575
1579
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
1576
1580
|
});
|
|
1577
1581
|
}
|
|
1578
|
-
var
|
|
1582
|
+
var go = function() {
|
|
1579
1583
|
return "innerHTML";
|
|
1580
1584
|
};
|
|
1581
|
-
function
|
|
1582
|
-
e[
|
|
1585
|
+
function Tt(e, t) {
|
|
1586
|
+
e[go()] = t;
|
|
1583
1587
|
}
|
|
1584
1588
|
function nn(e) {
|
|
1585
1589
|
var t = $e();
|
|
1586
|
-
return e === !0 ? t.className =
|
|
1590
|
+
return e === !0 ? t.className = Pn : (t.className = Nn, Fe(e) ? t.appendChild(e) : Tt(t, e)), t;
|
|
1587
1591
|
}
|
|
1588
1592
|
function rn(e, t) {
|
|
1589
|
-
Fe(t.content) ? (
|
|
1593
|
+
Fe(t.content) ? (Tt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Tt(e, t.content) : e.textContent = t.content);
|
|
1590
1594
|
}
|
|
1591
1595
|
function St(e) {
|
|
1592
|
-
var t = e.firstElementChild, n =
|
|
1596
|
+
var t = e.firstElementChild, n = lt(t.children);
|
|
1593
1597
|
return {
|
|
1594
1598
|
box: t,
|
|
1595
1599
|
content: n.find(function(r) {
|
|
1596
|
-
return r.classList.contains(
|
|
1600
|
+
return r.classList.contains(Cn);
|
|
1597
1601
|
}),
|
|
1598
1602
|
arrow: n.find(function(r) {
|
|
1599
|
-
return r.classList.contains(
|
|
1603
|
+
return r.classList.contains(Pn) || r.classList.contains(Nn);
|
|
1600
1604
|
}),
|
|
1601
1605
|
backdrop: n.find(function(r) {
|
|
1602
|
-
return r.classList.contains(
|
|
1606
|
+
return r.classList.contains(zi);
|
|
1603
1607
|
})
|
|
1604
1608
|
};
|
|
1605
1609
|
}
|
|
1606
1610
|
function $n(e) {
|
|
1607
1611
|
var t = $e(), n = $e();
|
|
1608
|
-
n.className =
|
|
1612
|
+
n.className = qi, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
1609
1613
|
var r = $e();
|
|
1610
|
-
r.className =
|
|
1611
|
-
function o(a,
|
|
1612
|
-
var c = St(t), u = c.box, f = c.content,
|
|
1613
|
-
|
|
1614
|
+
r.className = Cn, r.setAttribute("data-state", "hidden"), rn(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
|
|
1615
|
+
function o(a, l) {
|
|
1616
|
+
var c = St(t), u = c.box, f = c.content, p = c.arrow;
|
|
1617
|
+
l.theme ? u.setAttribute("data-theme", l.theme) : u.removeAttribute("data-theme"), typeof l.animation == "string" ? u.setAttribute("data-animation", l.animation) : u.removeAttribute("data-animation"), l.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof l.maxWidth == "number" ? l.maxWidth + "px" : l.maxWidth, l.role ? u.setAttribute("role", l.role) : u.removeAttribute("role"), (a.content !== l.content || a.allowHTML !== l.allowHTML) && rn(f, e.props), l.arrow ? p ? a.arrow !== l.arrow && (u.removeChild(p), u.appendChild(nn(l.arrow))) : u.appendChild(nn(l.arrow)) : p && u.removeChild(p);
|
|
1614
1618
|
}
|
|
1615
1619
|
return {
|
|
1616
1620
|
popper: t,
|
|
@@ -1618,9 +1622,9 @@ function $n(e) {
|
|
|
1618
1622
|
};
|
|
1619
1623
|
}
|
|
1620
1624
|
$n.$$tippy = !0;
|
|
1621
|
-
var
|
|
1622
|
-
function
|
|
1623
|
-
var n = tn(e, Object.assign({}, F, _n(Kt(t)))), r, o, a,
|
|
1625
|
+
var yo = 1, at = [], yt = [];
|
|
1626
|
+
function bo(e, t) {
|
|
1627
|
+
var n = tn(e, Object.assign({}, F, _n(Kt(t)))), r, o, a, l = !1, c = !1, u = !1, f = !1, p, g, x, m = [], w = Xt(Ge, n.interactiveDebounce), y, b = yo++, T = null, R = Ki(n.plugins), C = {
|
|
1624
1628
|
// Is the instance currently enabled?
|
|
1625
1629
|
isEnabled: !0,
|
|
1626
1630
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1636,16 +1640,16 @@ function yo(e, t) {
|
|
|
1636
1640
|
id: b,
|
|
1637
1641
|
reference: e,
|
|
1638
1642
|
popper: $e(),
|
|
1639
|
-
popperInstance:
|
|
1643
|
+
popperInstance: T,
|
|
1640
1644
|
props: n,
|
|
1641
|
-
state:
|
|
1645
|
+
state: C,
|
|
1642
1646
|
plugins: R,
|
|
1643
1647
|
// methods
|
|
1644
1648
|
clearDelayTimeouts: et,
|
|
1645
1649
|
setProps: tt,
|
|
1646
1650
|
setContent: nt,
|
|
1647
|
-
show:
|
|
1648
|
-
hide:
|
|
1651
|
+
show: Un,
|
|
1652
|
+
hide: Hn,
|
|
1649
1653
|
hideWithInteractivity: Fn,
|
|
1650
1654
|
enable: ke,
|
|
1651
1655
|
disable: Qe,
|
|
@@ -1653,7 +1657,7 @@ function yo(e, t) {
|
|
|
1653
1657
|
destroy: qn
|
|
1654
1658
|
};
|
|
1655
1659
|
if (!n.render)
|
|
1656
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1660
|
+
return process.env.NODE_ENV !== "production" && At(!0, "render() function has not been supplied."), i;
|
|
1657
1661
|
var E = n.render(i), d = E.popper, D = E.onUpdate;
|
|
1658
1662
|
d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
|
|
1659
1663
|
var I = R.map(function(s) {
|
|
@@ -1662,31 +1666,31 @@ function yo(e, t) {
|
|
|
1662
1666
|
return xe(), Q(), V(), j("onCreate", [i]), n.showOnCreate && je(), d.addEventListener("mouseenter", function() {
|
|
1663
1667
|
i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
|
|
1664
1668
|
}), d.addEventListener("mouseleave", function() {
|
|
1665
|
-
i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
1669
|
+
i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", w);
|
|
1666
1670
|
}), i;
|
|
1667
|
-
function
|
|
1671
|
+
function P() {
|
|
1668
1672
|
var s = i.props.touch;
|
|
1669
1673
|
return Array.isArray(s) ? s : [s, 0];
|
|
1670
1674
|
}
|
|
1671
|
-
function
|
|
1672
|
-
return
|
|
1675
|
+
function A() {
|
|
1676
|
+
return P()[0] === "hold";
|
|
1673
1677
|
}
|
|
1674
|
-
function
|
|
1678
|
+
function L() {
|
|
1675
1679
|
var s;
|
|
1676
1680
|
return !!((s = i.props.render) != null && s.$$tippy);
|
|
1677
1681
|
}
|
|
1678
1682
|
function N() {
|
|
1679
1683
|
return y || e;
|
|
1680
1684
|
}
|
|
1681
|
-
function
|
|
1685
|
+
function U() {
|
|
1682
1686
|
var s = N().parentNode;
|
|
1683
|
-
return s ?
|
|
1687
|
+
return s ? no(s) : document;
|
|
1684
1688
|
}
|
|
1685
|
-
function
|
|
1689
|
+
function H() {
|
|
1686
1690
|
return St(d);
|
|
1687
1691
|
}
|
|
1688
1692
|
function k(s) {
|
|
1689
|
-
return i.state.isMounted && !i.state.isVisible || te.isTouch ||
|
|
1693
|
+
return i.state.isMounted && !i.state.isVisible || te.isTouch || p && p.type === "focus" ? 0 : ht(i.props.delay, s ? 0 : 1, F.delay);
|
|
1690
1694
|
}
|
|
1691
1695
|
function V(s) {
|
|
1692
1696
|
s === void 0 && (s = !1), d.style.pointerEvents = i.props.interactive && !s ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
|
|
@@ -1723,7 +1727,7 @@ function yo(e, t) {
|
|
|
1723
1727
|
}
|
|
1724
1728
|
}
|
|
1725
1729
|
function fe() {
|
|
1726
|
-
|
|
1730
|
+
U().removeEventListener("mousemove", w), at = at.filter(function(s) {
|
|
1727
1731
|
return s !== w;
|
|
1728
1732
|
});
|
|
1729
1733
|
}
|
|
@@ -1751,11 +1755,11 @@ function yo(e, t) {
|
|
|
1751
1755
|
u = !1;
|
|
1752
1756
|
}
|
|
1753
1757
|
function G() {
|
|
1754
|
-
var s =
|
|
1758
|
+
var s = U();
|
|
1755
1759
|
s.addEventListener("mousedown", ee, !0), s.addEventListener("touchend", ee, ye), s.addEventListener("touchstart", re, ye), s.addEventListener("touchmove", de, ye);
|
|
1756
1760
|
}
|
|
1757
1761
|
function ie() {
|
|
1758
|
-
var s =
|
|
1762
|
+
var s = U();
|
|
1759
1763
|
s.removeEventListener("mousedown", ee, !0), s.removeEventListener("touchend", ee, ye), s.removeEventListener("touchstart", re, ye), s.removeEventListener("touchmove", de, ye);
|
|
1760
1764
|
}
|
|
1761
1765
|
function Ee(s, v) {
|
|
@@ -1767,7 +1771,7 @@ function yo(e, t) {
|
|
|
1767
1771
|
Oe(s, v);
|
|
1768
1772
|
}
|
|
1769
1773
|
function Oe(s, v) {
|
|
1770
|
-
var h =
|
|
1774
|
+
var h = H().box;
|
|
1771
1775
|
function S(O) {
|
|
1772
1776
|
O.target === h && (gt(h, "remove", S), v());
|
|
1773
1777
|
}
|
|
@@ -1788,18 +1792,18 @@ function yo(e, t) {
|
|
|
1788
1792
|
});
|
|
1789
1793
|
}
|
|
1790
1794
|
function xe() {
|
|
1791
|
-
|
|
1795
|
+
A() && (ue("touchstart", Ne, {
|
|
1792
1796
|
passive: !0
|
|
1793
1797
|
}), ue("touchend", Ke, {
|
|
1794
1798
|
passive: !0
|
|
1795
|
-
})),
|
|
1799
|
+
})), Gi(i.props.trigger).forEach(function(s) {
|
|
1796
1800
|
if (s !== "manual")
|
|
1797
1801
|
switch (ue(s, Ne), s) {
|
|
1798
1802
|
case "mouseenter":
|
|
1799
1803
|
ue("mouseleave", Ke);
|
|
1800
1804
|
break;
|
|
1801
1805
|
case "focus":
|
|
1802
|
-
ue(
|
|
1806
|
+
ue(uo ? "focusout" : "blur", Ie);
|
|
1803
1807
|
break;
|
|
1804
1808
|
case "focusin":
|
|
1805
1809
|
ue("focusout", Ie);
|
|
@@ -1816,28 +1820,28 @@ function yo(e, t) {
|
|
|
1816
1820
|
function Ne(s) {
|
|
1817
1821
|
var v, h = !1;
|
|
1818
1822
|
if (!(!i.state.isEnabled || Me(s) || c)) {
|
|
1819
|
-
var S = ((v =
|
|
1820
|
-
|
|
1823
|
+
var S = ((v = p) == null ? void 0 : v.type) === "focus";
|
|
1824
|
+
p = s, y = s.currentTarget, Q(), !i.state.isVisible && Qi(s) && at.forEach(function(O) {
|
|
1821
1825
|
return O(s);
|
|
1822
|
-
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 ||
|
|
1826
|
+
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || l) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : je(s), s.type === "click" && (l = !h), h && !S && ve(s);
|
|
1823
1827
|
}
|
|
1824
1828
|
}
|
|
1825
1829
|
function Ge(s) {
|
|
1826
1830
|
var v = s.target, h = N().contains(v) || d.contains(v);
|
|
1827
1831
|
if (!(s.type === "mousemove" && h)) {
|
|
1828
1832
|
var S = ce().concat(d).map(function(O) {
|
|
1829
|
-
var _, z = O._tippy,
|
|
1830
|
-
return
|
|
1833
|
+
var _, z = O._tippy, Ae = (_ = z.popperInstance) == null ? void 0 : _.state;
|
|
1834
|
+
return Ae ? {
|
|
1831
1835
|
popperRect: O.getBoundingClientRect(),
|
|
1832
|
-
popperState:
|
|
1836
|
+
popperState: Ae,
|
|
1833
1837
|
props: n
|
|
1834
1838
|
} : null;
|
|
1835
1839
|
}).filter(Boolean);
|
|
1836
|
-
|
|
1840
|
+
ro(S, s) && (fe(), ve(s));
|
|
1837
1841
|
}
|
|
1838
1842
|
}
|
|
1839
1843
|
function Ke(s) {
|
|
1840
|
-
var v = Me(s) || i.props.trigger.indexOf("click") >= 0 &&
|
|
1844
|
+
var v = Me(s) || i.props.trigger.indexOf("click") >= 0 && l;
|
|
1841
1845
|
if (!v) {
|
|
1842
1846
|
if (i.props.interactive) {
|
|
1843
1847
|
i.hideWithInteractivity(s);
|
|
@@ -1850,11 +1854,11 @@ function yo(e, t) {
|
|
|
1850
1854
|
i.props.trigger.indexOf("focusin") < 0 && s.target !== N() || i.props.interactive && s.relatedTarget && d.contains(s.relatedTarget) || ve(s);
|
|
1851
1855
|
}
|
|
1852
1856
|
function Me(s) {
|
|
1853
|
-
return te.isTouch ?
|
|
1857
|
+
return te.isTouch ? A() !== s.type.indexOf("touch") >= 0 : !1;
|
|
1854
1858
|
}
|
|
1855
1859
|
function Ze() {
|
|
1856
1860
|
Je();
|
|
1857
|
-
var s = i.props, v = s.popperOptions, h = s.placement, S = s.offset, O = s.getReferenceClientRect, _ = s.moveTransition, z =
|
|
1861
|
+
var s = i.props, v = s.popperOptions, h = s.placement, S = s.offset, O = s.getReferenceClientRect, _ = s.moveTransition, z = L() ? St(d).arrow : null, Ae = O ? {
|
|
1858
1862
|
getBoundingClientRect: O,
|
|
1859
1863
|
contextElement: O.contextElement || N()
|
|
1860
1864
|
} : e, Mt = {
|
|
@@ -1863,12 +1867,12 @@ function yo(e, t) {
|
|
|
1863
1867
|
phase: "beforeWrite",
|
|
1864
1868
|
requires: ["computeStyles"],
|
|
1865
1869
|
fn: function(rt) {
|
|
1866
|
-
var
|
|
1867
|
-
if (
|
|
1868
|
-
var zn =
|
|
1870
|
+
var Te = rt.state;
|
|
1871
|
+
if (L()) {
|
|
1872
|
+
var zn = H(), vt = zn.box;
|
|
1869
1873
|
["placement", "reference-hidden", "escaped"].forEach(function(it) {
|
|
1870
|
-
it === "placement" ? vt.setAttribute("data-placement",
|
|
1871
|
-
}),
|
|
1874
|
+
it === "placement" ? vt.setAttribute("data-placement", Te.placement) : Te.attributes.popper["data-popper-" + it] ? vt.setAttribute("data-" + it, "") : vt.removeAttribute("data-" + it);
|
|
1875
|
+
}), Te.attributes.popper = {};
|
|
1872
1876
|
}
|
|
1873
1877
|
}
|
|
1874
1878
|
}, he = [{
|
|
@@ -1897,13 +1901,13 @@ function yo(e, t) {
|
|
|
1897
1901
|
adaptive: !_
|
|
1898
1902
|
}
|
|
1899
1903
|
}, Mt];
|
|
1900
|
-
|
|
1904
|
+
L() && z && he.push({
|
|
1901
1905
|
name: "arrow",
|
|
1902
1906
|
options: {
|
|
1903
1907
|
element: z,
|
|
1904
1908
|
padding: 3
|
|
1905
1909
|
}
|
|
1906
|
-
}), he.push.apply(he, (v == null ? void 0 : v.modifiers) || []), i.popperInstance =
|
|
1910
|
+
}), he.push.apply(he, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = Wi(Ae, d, Object.assign({}, v, {
|
|
1907
1911
|
placement: h,
|
|
1908
1912
|
onFirstUpdate: x,
|
|
1909
1913
|
modifiers: he
|
|
@@ -1923,11 +1927,11 @@ function yo(e, t) {
|
|
|
1923
1927
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
1924
1928
|
}
|
|
1925
1929
|
function ce() {
|
|
1926
|
-
return
|
|
1930
|
+
return lt(d.querySelectorAll("[data-tippy-root]"));
|
|
1927
1931
|
}
|
|
1928
1932
|
function je(s) {
|
|
1929
1933
|
i.clearDelayTimeouts(), s && j("onTrigger", [i, s]), G();
|
|
1930
|
-
var v = k(!0), h =
|
|
1934
|
+
var v = k(!0), h = P(), S = h[0], O = h[1];
|
|
1931
1935
|
te.isTouch && S === "hold" && O && (v = O), v ? r = setTimeout(function() {
|
|
1932
1936
|
i.show();
|
|
1933
1937
|
}, v) : i.show();
|
|
@@ -1937,7 +1941,7 @@ function yo(e, t) {
|
|
|
1937
1941
|
ie();
|
|
1938
1942
|
return;
|
|
1939
1943
|
}
|
|
1940
|
-
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 &&
|
|
1944
|
+
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && l)) {
|
|
1941
1945
|
var v = k(!1);
|
|
1942
1946
|
v ? o = setTimeout(function() {
|
|
1943
1947
|
i.state.isVisible && i.hide();
|
|
@@ -1973,41 +1977,41 @@ function yo(e, t) {
|
|
|
1973
1977
|
content: s
|
|
1974
1978
|
});
|
|
1975
1979
|
}
|
|
1976
|
-
function
|
|
1980
|
+
function Un() {
|
|
1977
1981
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("show"));
|
|
1978
1982
|
var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = te.isTouch && !i.props.touch, O = ht(i.props.duration, 0, F.duration);
|
|
1979
1983
|
if (!(s || v || h || S) && !N().hasAttribute("disabled") && (j("onShow", [i], !1), i.props.onShow(i) !== !1)) {
|
|
1980
|
-
if (i.state.isVisible = !0,
|
|
1981
|
-
var _ =
|
|
1982
|
-
mt([z,
|
|
1984
|
+
if (i.state.isVisible = !0, L() && (d.style.visibility = "visible"), V(), G(), i.state.isMounted || (d.style.transition = "none"), L()) {
|
|
1985
|
+
var _ = H(), z = _.box, Ae = _.content;
|
|
1986
|
+
mt([z, Ae], 0);
|
|
1983
1987
|
}
|
|
1984
1988
|
x = function() {
|
|
1985
1989
|
var he;
|
|
1986
1990
|
if (!(!i.state.isVisible || f)) {
|
|
1987
|
-
if (f = !0, d.offsetHeight, d.style.transition = i.props.moveTransition,
|
|
1988
|
-
var dt =
|
|
1989
|
-
mt([rt,
|
|
1991
|
+
if (f = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, L() && i.props.animation) {
|
|
1992
|
+
var dt = H(), rt = dt.box, Te = dt.content;
|
|
1993
|
+
mt([rt, Te], O), Zt([rt, Te], "visible");
|
|
1990
1994
|
}
|
|
1991
|
-
J(), Q(), Gt(yt, i), (he = i.popperInstance) == null || he.forceUpdate(), j("onMount", [i]), i.props.animation &&
|
|
1995
|
+
J(), Q(), Gt(yt, i), (he = i.popperInstance) == null || he.forceUpdate(), j("onMount", [i]), i.props.animation && L() && oe(O, function() {
|
|
1992
1996
|
i.state.isShown = !0, j("onShown", [i]);
|
|
1993
1997
|
});
|
|
1994
1998
|
}
|
|
1995
1999
|
}, ae();
|
|
1996
2000
|
}
|
|
1997
2001
|
}
|
|
1998
|
-
function
|
|
2002
|
+
function Hn() {
|
|
1999
2003
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hide"));
|
|
2000
2004
|
var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = ht(i.props.duration, 1, F.duration);
|
|
2001
2005
|
if (!(s || v || h) && (j("onHide", [i], !1), i.props.onHide(i) !== !1)) {
|
|
2002
|
-
if (i.state.isVisible = !1, i.state.isShown = !1, f = !1,
|
|
2003
|
-
var O =
|
|
2006
|
+
if (i.state.isVisible = !1, i.state.isShown = !1, f = !1, l = !1, L() && (d.style.visibility = "hidden"), fe(), ie(), V(!0), L()) {
|
|
2007
|
+
var O = H(), _ = O.box, z = O.content;
|
|
2004
2008
|
i.props.animation && (mt([_, z], S), Zt([_, z], "hidden"));
|
|
2005
2009
|
}
|
|
2006
|
-
J(), Q(), i.props.animation ?
|
|
2010
|
+
J(), Q(), i.props.animation ? L() && Ee(S, i.unmount) : i.unmount();
|
|
2007
2011
|
}
|
|
2008
2012
|
}
|
|
2009
2013
|
function Fn(s) {
|
|
2010
|
-
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hideWithInteractivity")),
|
|
2014
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hideWithInteractivity")), U().addEventListener("mousemove", w), Gt(at, w), w(s);
|
|
2011
2015
|
}
|
|
2012
2016
|
function Wn() {
|
|
2013
2017
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Je(), ce().forEach(function(s) {
|
|
@@ -2023,13 +2027,13 @@ function yo(e, t) {
|
|
|
2023
2027
|
function Ye(e, t) {
|
|
2024
2028
|
t === void 0 && (t = {});
|
|
2025
2029
|
var n = F.plugins.concat(t.plugins || []);
|
|
2026
|
-
process.env.NODE_ENV !== "production" && (po(e), Bn(t, n)),
|
|
2030
|
+
process.env.NODE_ENV !== "production" && (po(e), Bn(t, n)), ao();
|
|
2027
2031
|
var r = Object.assign({}, t, {
|
|
2028
2032
|
plugins: n
|
|
2029
|
-
}), o =
|
|
2033
|
+
}), o = to(e);
|
|
2030
2034
|
if (process.env.NODE_ENV !== "production") {
|
|
2031
|
-
var a = Fe(r.content),
|
|
2032
|
-
se(a &&
|
|
2035
|
+
var a = Fe(r.content), l = o.length > 1;
|
|
2036
|
+
se(a && l, ["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.", `
|
|
2033
2037
|
|
|
2034
2038
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
2035
2039
|
|
|
@@ -2037,13 +2041,13 @@ function Ye(e, t) {
|
|
|
2037
2041
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
2038
2042
|
}
|
|
2039
2043
|
var c = o.reduce(function(u, f) {
|
|
2040
|
-
var
|
|
2041
|
-
return
|
|
2044
|
+
var p = f && bo(f, r);
|
|
2045
|
+
return p && u.push(p), u;
|
|
2042
2046
|
}, []);
|
|
2043
2047
|
return Fe(e) ? c[0] : c;
|
|
2044
2048
|
}
|
|
2045
2049
|
Ye.defaultProps = F;
|
|
2046
|
-
Ye.setDefaultProps =
|
|
2050
|
+
Ye.setDefaultProps = ho;
|
|
2047
2051
|
Ye.currentInput = te;
|
|
2048
2052
|
Object.assign({}, On, {
|
|
2049
2053
|
effect: function(t) {
|
|
@@ -2062,7 +2066,7 @@ Object.assign({}, On, {
|
|
|
2062
2066
|
Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
|
|
2063
2067
|
}
|
|
2064
2068
|
});
|
|
2065
|
-
var
|
|
2069
|
+
var wo = {
|
|
2066
2070
|
name: "sticky",
|
|
2067
2071
|
defaultValue: !1,
|
|
2068
2072
|
fn: function(t) {
|
|
@@ -2073,10 +2077,10 @@ var bo = {
|
|
|
2073
2077
|
function a(f) {
|
|
2074
2078
|
return t.props.sticky === !0 || t.props.sticky === f;
|
|
2075
2079
|
}
|
|
2076
|
-
var
|
|
2080
|
+
var l = null, c = null;
|
|
2077
2081
|
function u() {
|
|
2078
|
-
var f = a("reference") ? o().getBoundingClientRect() : null,
|
|
2079
|
-
(f && on(
|
|
2082
|
+
var f = a("reference") ? o().getBoundingClientRect() : null, p = a("popper") ? r.getBoundingClientRect() : null;
|
|
2083
|
+
(f && on(l, f) || p && on(c, p)) && t.popperInstance && t.popperInstance.update(), l = f, c = p, t.state.isMounted && requestAnimationFrame(u);
|
|
2080
2084
|
}
|
|
2081
2085
|
return {
|
|
2082
2086
|
onMount: function() {
|
|
@@ -2091,13 +2095,13 @@ function on(e, t) {
|
|
|
2091
2095
|
Ye.setDefaultProps({
|
|
2092
2096
|
render: $n
|
|
2093
2097
|
});
|
|
2094
|
-
const
|
|
2098
|
+
const Eo = (e) => ({
|
|
2095
2099
|
name: "arrowDetected",
|
|
2096
2100
|
enabled: !0,
|
|
2097
2101
|
phase: "main",
|
|
2098
2102
|
fn: e,
|
|
2099
2103
|
requiresIfExists: ["offset"]
|
|
2100
|
-
}),
|
|
2104
|
+
}), Oo = [
|
|
2101
2105
|
"bottom",
|
|
2102
2106
|
"bottom-start",
|
|
2103
2107
|
"bottom-end",
|
|
@@ -2110,12 +2114,12 @@ const wo = (e) => ({
|
|
|
2110
2114
|
"top",
|
|
2111
2115
|
"top-start",
|
|
2112
2116
|
"top-end"
|
|
2113
|
-
],
|
|
2117
|
+
], xo = [!0, !1, "reference", "popper"], Ao = (e, t) => {
|
|
2114
2118
|
const { contentElement: n } = { ...t };
|
|
2115
2119
|
return delete t.contentElement, Ye(e, {
|
|
2116
2120
|
...t,
|
|
2117
|
-
plugins: [
|
|
2118
|
-
render: () =>
|
|
2121
|
+
plugins: [wo],
|
|
2122
|
+
render: () => Ro(n)
|
|
2119
2123
|
});
|
|
2120
2124
|
}, To = ({
|
|
2121
2125
|
boundary: e = "clippingParents",
|
|
@@ -2146,36 +2150,36 @@ const wo = (e) => ({
|
|
|
2146
2150
|
tether: o
|
|
2147
2151
|
}
|
|
2148
2152
|
},
|
|
2149
|
-
|
|
2153
|
+
Eo(({ state: a }) => {
|
|
2150
2154
|
n(a.placement);
|
|
2151
2155
|
})
|
|
2152
2156
|
]
|
|
2153
|
-
}),
|
|
2157
|
+
}), So = (e) => {
|
|
2154
2158
|
const t = document.createElement("span");
|
|
2155
2159
|
return t.innerText = e.innerText || "", e.innerText = "", e.appendChild(t), t;
|
|
2156
|
-
}, So = (e) => {
|
|
2157
|
-
const t = e == null ? void 0 : e.children[0];
|
|
2158
|
-
return t || Ao(e);
|
|
2159
2160
|
}, Do = (e) => {
|
|
2161
|
+
const t = e == null ? void 0 : e.children[0];
|
|
2162
|
+
return t || So(e);
|
|
2163
|
+
}, Ro = (e) => {
|
|
2160
2164
|
const t = document.createElement("div");
|
|
2161
2165
|
return t.className = "tippy-box d-ps-absolute", t.appendChild(e), {
|
|
2162
2166
|
popper: t
|
|
2163
2167
|
};
|
|
2164
|
-
},
|
|
2165
|
-
...
|
|
2168
|
+
}, Lo = [
|
|
2169
|
+
...Oo
|
|
2166
2170
|
], Co = 300, Po = {
|
|
2167
2171
|
hover: "d-tooltip--hover",
|
|
2168
2172
|
show: "d-tooltip--show",
|
|
2169
2173
|
inverted: "d-tooltip--inverted",
|
|
2170
2174
|
hide: "d-tooltip--hide"
|
|
2171
|
-
},
|
|
2172
|
-
...
|
|
2173
|
-
],
|
|
2174
|
-
const
|
|
2175
|
+
}, No = [
|
|
2176
|
+
...xo
|
|
2177
|
+
], Fo = [!0, !1, "toggle"];
|
|
2178
|
+
const Io = {
|
|
2175
2179
|
// eslint-disable-next-line vue/multi-word-component-names
|
|
2176
2180
|
name: "DtTooltip",
|
|
2177
2181
|
components: {
|
|
2178
|
-
DtLazyShow:
|
|
2182
|
+
DtLazyShow: kr
|
|
2179
2183
|
},
|
|
2180
2184
|
props: {
|
|
2181
2185
|
/**
|
|
@@ -2246,7 +2250,7 @@ const No = {
|
|
|
2246
2250
|
type: String,
|
|
2247
2251
|
default: "top",
|
|
2248
2252
|
validator(e) {
|
|
2249
|
-
return
|
|
2253
|
+
return Lo.includes(e);
|
|
2250
2254
|
}
|
|
2251
2255
|
},
|
|
2252
2256
|
/**
|
|
@@ -2267,7 +2271,7 @@ const No = {
|
|
|
2267
2271
|
sticky: {
|
|
2268
2272
|
type: [Boolean, String],
|
|
2269
2273
|
default: !1,
|
|
2270
|
-
validator: (e) =>
|
|
2274
|
+
validator: (e) => No.includes(e)
|
|
2271
2275
|
},
|
|
2272
2276
|
/**
|
|
2273
2277
|
* Additional css classes for the tooltip content element.
|
|
@@ -2285,6 +2289,15 @@ const No = {
|
|
|
2285
2289
|
type: String,
|
|
2286
2290
|
default: ""
|
|
2287
2291
|
},
|
|
2292
|
+
/**
|
|
2293
|
+
* Controls whether hover/focus causes the tooltip to appear.
|
|
2294
|
+
* Cannot be combined with the show prop. show value will be ignored.
|
|
2295
|
+
* by default this is true, if you override with false, the tooltip will never show up.
|
|
2296
|
+
*/
|
|
2297
|
+
enabled: {
|
|
2298
|
+
type: Boolean,
|
|
2299
|
+
default: !0
|
|
2300
|
+
},
|
|
2288
2301
|
/**
|
|
2289
2302
|
* Controls whether the tooltip is shown. Leaving this null will have the tooltip trigger on mouseover by default.
|
|
2290
2303
|
* If you set this value, the default mouseover behavior will be disabled and you can control it as you need.
|
|
@@ -2358,6 +2371,10 @@ const No = {
|
|
|
2358
2371
|
};
|
|
2359
2372
|
},
|
|
2360
2373
|
computed: {
|
|
2374
|
+
// whether the tooltip is visible or not.
|
|
2375
|
+
isVisible() {
|
|
2376
|
+
return this.isShown && this.enabled && (!!this.message.trim() || !!this.$slots.default);
|
|
2377
|
+
},
|
|
2361
2378
|
tooltipListeners() {
|
|
2362
2379
|
return {
|
|
2363
2380
|
"after-leave": () => {
|
|
@@ -2383,7 +2400,7 @@ const No = {
|
|
|
2383
2400
|
};
|
|
2384
2401
|
},
|
|
2385
2402
|
anchor() {
|
|
2386
|
-
return this.externalAnchor ? document.querySelector(this.externalAnchor) :
|
|
2403
|
+
return this.externalAnchor ? document.body.querySelector(this.externalAnchor) : Do(this.$refs.anchor);
|
|
2387
2404
|
}
|
|
2388
2405
|
},
|
|
2389
2406
|
watch: {
|
|
@@ -2407,11 +2424,11 @@ const No = {
|
|
|
2407
2424
|
}
|
|
2408
2425
|
},
|
|
2409
2426
|
mounted() {
|
|
2410
|
-
this.tip =
|
|
2427
|
+
!this.enabled && this.show != null && (console.warn("Tooltip: You cannot use both the enabled and show props at the same time."), console.warn("The show prop will be ignored.")), this.externalAnchor && this.addExternalAnchorEventListeners(), this.tip = Ao(this.anchor, this.initOptions()), this.isShown && this.tip.show();
|
|
2411
2428
|
},
|
|
2412
2429
|
beforeUnmount() {
|
|
2413
2430
|
var e;
|
|
2414
|
-
this.tip && ((e = this.tip) == null || e.destroy());
|
|
2431
|
+
this.externalAnchor && this.removeExternalAnchorEventListeners(), this.tip && ((e = this.tip) == null || e.destroy());
|
|
2415
2432
|
},
|
|
2416
2433
|
methods: {
|
|
2417
2434
|
calculateAnchorZindex() {
|
|
@@ -2423,18 +2440,15 @@ const No = {
|
|
|
2423
2440
|
return this.anchor.matches(":focus-visible");
|
|
2424
2441
|
},
|
|
2425
2442
|
onEnterAnchor(e) {
|
|
2426
|
-
|
|
2427
|
-
this.
|
|
2428
|
-
|
|
2429
|
-
}).bind(this, e), Co);
|
|
2430
|
-
else
|
|
2431
|
-
return this.triggerShow(e);
|
|
2443
|
+
this.delay ? this.inTimer = setTimeout((function(t) {
|
|
2444
|
+
this.triggerShow(t);
|
|
2445
|
+
}).bind(this, e), Co) : this.triggerShow(e);
|
|
2432
2446
|
},
|
|
2433
2447
|
triggerShow(e) {
|
|
2434
2448
|
e.type === "focusin" ? this.show === null && this.hasVisibleFocus() && (this.isShown = !0) : this.show === null && (this.isShown = !0);
|
|
2435
2449
|
},
|
|
2436
|
-
onLeaveAnchor() {
|
|
2437
|
-
|
|
2450
|
+
onLeaveAnchor(e) {
|
|
2451
|
+
e.type === "keydown" && e.code !== "Escape" || (clearTimeout(this.inTimer), this.triggerHide());
|
|
2438
2452
|
},
|
|
2439
2453
|
triggerHide() {
|
|
2440
2454
|
this.show === null && (this.isShown = !1);
|
|
@@ -2466,12 +2480,26 @@ const No = {
|
|
|
2466
2480
|
onMount: this.onMount,
|
|
2467
2481
|
...this.tippyProps
|
|
2468
2482
|
};
|
|
2483
|
+
},
|
|
2484
|
+
addExternalAnchorEventListeners() {
|
|
2485
|
+
["focusin", "mouseenter"].forEach((e) => {
|
|
2486
|
+
this.anchor.addEventListener(e, (t) => this.onEnterAnchor(t));
|
|
2487
|
+
}), ["focusout", "mouseleave", "keydown"].forEach((e) => {
|
|
2488
|
+
this.anchor.addEventListener(e, (t) => this.onLeaveAnchor(t));
|
|
2489
|
+
});
|
|
2490
|
+
},
|
|
2491
|
+
removeExternalAnchorEventListeners() {
|
|
2492
|
+
["focusin", "mouseenter"].forEach((e) => {
|
|
2493
|
+
this.anchor.removeEventListener(e, (t) => this.onEnterAnchor(t));
|
|
2494
|
+
}), ["focusout", "mouseleave", "keydown"].forEach((e) => {
|
|
2495
|
+
this.anchor.removeEventListener(e, (t) => this.onLeaveAnchor(t));
|
|
2496
|
+
});
|
|
2469
2497
|
}
|
|
2470
2498
|
}
|
|
2471
|
-
},
|
|
2472
|
-
function
|
|
2473
|
-
const
|
|
2474
|
-
return bt(), jt("div",
|
|
2499
|
+
}, Mo = { "data-qa": "dt-tooltip-container" };
|
|
2500
|
+
function jo(e, t, n, r, o, a) {
|
|
2501
|
+
const l = rr("dt-lazy-show");
|
|
2502
|
+
return bt(), jt("div", Mo, [
|
|
2475
2503
|
n.externalAnchor ? un("", !0) : (bt(), jt("span", {
|
|
2476
2504
|
key: 0,
|
|
2477
2505
|
ref: "anchor",
|
|
@@ -2484,10 +2512,10 @@ function Mo(e, t, n, r, o, a) {
|
|
|
2484
2512
|
}, [
|
|
2485
2513
|
wt(e.$slots, "anchor")
|
|
2486
2514
|
], 544)),
|
|
2487
|
-
or(
|
|
2515
|
+
or(l, an({
|
|
2488
2516
|
id: n.id,
|
|
2489
2517
|
ref: "content",
|
|
2490
|
-
show:
|
|
2518
|
+
show: a.isVisible,
|
|
2491
2519
|
role: "tooltip",
|
|
2492
2520
|
"aria-hidden": "false",
|
|
2493
2521
|
"data-qa": "dt-tooltip",
|
|
@@ -2511,38 +2539,39 @@ function Mo(e, t, n, r, o, a) {
|
|
|
2511
2539
|
}, 16, ["id", "show", "appear", "transition", "class"])
|
|
2512
2540
|
]);
|
|
2513
2541
|
}
|
|
2514
|
-
const
|
|
2542
|
+
const Wo = /* @__PURE__ */ bn(Io, [["render", jo]]);
|
|
2515
2543
|
export {
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2544
|
+
Rr as A,
|
|
2545
|
+
Wo as D,
|
|
2546
|
+
$o as E,
|
|
2547
|
+
Bo as L,
|
|
2548
|
+
Lo as T,
|
|
2520
2549
|
ge as V,
|
|
2521
2550
|
bn as _,
|
|
2522
|
-
|
|
2551
|
+
pn as a,
|
|
2523
2552
|
hr as b,
|
|
2524
|
-
|
|
2525
|
-
|
|
2553
|
+
Vo as c,
|
|
2554
|
+
kr as d,
|
|
2526
2555
|
Er as e,
|
|
2527
2556
|
mr as f,
|
|
2528
2557
|
cn as g,
|
|
2529
2558
|
br as h,
|
|
2530
|
-
|
|
2531
|
-
|
|
2559
|
+
_o as i,
|
|
2560
|
+
Ir as j,
|
|
2532
2561
|
wr as k,
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2562
|
+
cr as l,
|
|
2563
|
+
Co as m,
|
|
2564
|
+
Po as n,
|
|
2565
|
+
No as o,
|
|
2566
|
+
Fo as p,
|
|
2567
|
+
Uo as q,
|
|
2568
|
+
dr as r,
|
|
2540
2569
|
Nr as s,
|
|
2541
|
-
|
|
2570
|
+
xo as t,
|
|
2542
2571
|
Ho as u,
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2572
|
+
xr as v,
|
|
2573
|
+
To as w,
|
|
2574
|
+
Ao as x,
|
|
2575
|
+
Ye as y,
|
|
2576
|
+
gn as z
|
|
2548
2577
|
};
|