@dialpad/dialtone-vue 2.102.0 → 2.102.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.
@@ -0,0 +1,2515 @@
1
+ import Hn from "vue";
2
+ import { n as nn } from "./_plugin-vue2_normalizer-71e2aa87.js";
3
+ const ge = {
4
+ ERROR: "error",
5
+ WARNING: "warning",
6
+ SUCCESS: "success"
7
+ }, go = {
8
+ LARGE: "lg",
9
+ EXTRA_LARGE: "xl"
10
+ }, yo = {
11
+ xs: "",
12
+ sm: "",
13
+ md: "",
14
+ lg: "d-description--lg",
15
+ xl: "d-description--xl"
16
+ }, bo = {
17
+ xs: "d-label--xs",
18
+ sm: "d-label--sm",
19
+ md: "",
20
+ lg: "d-label--lg",
21
+ xl: "d-label--xl"
22
+ }, wo = {
23
+ esc: "Esc",
24
+ escape: "Escape",
25
+ tab: "Tab",
26
+ enter: "Enter",
27
+ space: "Space",
28
+ spacebar: "Spacebar",
29
+ up: "Up",
30
+ arrowup: "ArrowUp",
31
+ left: "Left",
32
+ arrowleft: "ArrowLeft",
33
+ right: "Right",
34
+ arrowright: "ArrowRight",
35
+ down: "Down",
36
+ arrowdown: "ArrowDown",
37
+ home: "Home",
38
+ end: "End"
39
+ }, Fn = ge.ERROR, Un = "dt";
40
+ let Wn = 0, Nt;
41
+ const qn = typeof setImmediate == "function" ? setImmediate : setTimeout;
42
+ function rn(e = Un) {
43
+ return `${e}${Wn++}`;
44
+ }
45
+ function zn(e, t) {
46
+ if (t) {
47
+ const n = Yn(t);
48
+ return e[Math.abs(n) % e.length];
49
+ } else
50
+ return e[on(e.length)];
51
+ }
52
+ function Yn(e) {
53
+ let t;
54
+ for (let n = 0; n < e.length; n++)
55
+ t = Math.imul(31, t) + e.charCodeAt(n) | 0;
56
+ return t;
57
+ }
58
+ function on(e) {
59
+ return Math.floor(Math.random() * e);
60
+ }
61
+ function Xn(e) {
62
+ return e ? e.map((t) => typeof t == "string" ? {
63
+ message: t,
64
+ type: Fn
65
+ } : t) : [];
66
+ }
67
+ function Gn(e) {
68
+ const t = an(e);
69
+ return !e || !t ? [] : e.filter((n) => !!n.message && n.type === t);
70
+ }
71
+ function an(e) {
72
+ return e ? st(e, ge.ERROR) ? ge.ERROR : st(e, ge.WARNING) ? ge.WARNING : st(e, ge.SUCCESS) ? ge.SUCCESS : null : null;
73
+ }
74
+ function st(e, t) {
75
+ return !e || !t ? !1 : e.some((n) => (n == null ? void 0 : n.type) === t);
76
+ }
77
+ const Kn = {
78
+ name: "html-fragment",
79
+ functional: !0,
80
+ props: ["html"],
81
+ render(e, t) {
82
+ return new Hn({
83
+ // eslint-disable-next-line vue/multi-word-component-names
84
+ name: "Inner",
85
+ beforeCreate() {
86
+ this.$createElement = e;
87
+ },
88
+ template: `<div>${t.props.html}</div>`
89
+ }).$mount()._vnode.children;
90
+ }
91
+ }, Zn = () => new Promise((e) => {
92
+ qn(e);
93
+ }), Jn = (e) => e == null ? void 0 : e.toLowerCase().split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(""), Eo = (e) => e.replace(/\.?([A-Z0-9]+)/g, (t, n) => "-" + n.toLowerCase()).replace(/^-/, "");
94
+ function Qn(e, t = 300) {
95
+ clearTimeout(Nt), Nt = setTimeout(e, t);
96
+ }
97
+ function er(e) {
98
+ const t = e.getBoundingClientRect(), n = {
99
+ top: t.top < 0,
100
+ left: t.left < 0,
101
+ bottom: t.bottom > (window.innerHeight || document.documentElement.clientHeight),
102
+ right: t.right > (window.innerWidth || document.documentElement.clientWidth)
103
+ };
104
+ return n.any = Object.values(n).some((r) => r), n.all = Object.values(n).every((r) => r), n;
105
+ }
106
+ const tr = /(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/, nr = new RegExp(
107
+ "(?: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)"
108
+ ), rr = new RegExp(
109
+ "(?:(?:[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])"
110
+ ), sn = new RegExp(
111
+ "(?:" + [
112
+ [
113
+ tr.source,
114
+ nr.source
115
+ ].join("+"),
116
+ rr.source
117
+ ].join("|") + ")"
118
+ ), ir = /(?:(?:[;/][^#?<>\s]*)?)/, un = /(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/, cn = new RegExp(
119
+ "\\b" + [
120
+ sn.source,
121
+ ir.source,
122
+ un.source,
123
+ "(?!\\w)"
124
+ ].join("+")
125
+ ), pn = /\b[a-z\d.-]+:\/\/[^<>\s]+/, ln = new RegExp(
126
+ "(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@" + [
127
+ sn.source,
128
+ un.source
129
+ ].join("+") + "(?!\\w)"
130
+ );
131
+ function fn(e = 7, t = 15) {
132
+ let n = !0;
133
+ try {
134
+ RegExp("(?<=\\W)");
135
+ } catch {
136
+ n = !1;
137
+ }
138
+ return new RegExp(
139
+ `${n ? "(?:^|(?<=\\W))" : ""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`
140
+ );
141
+ }
142
+ const dn = fn(), or = new RegExp(
143
+ [
144
+ cn.source,
145
+ pn.source,
146
+ ln.source,
147
+ dn.source
148
+ ].join("|"),
149
+ "gi"
150
+ );
151
+ function ar(e) {
152
+ var t;
153
+ return !e || !["string", "number"].includes(typeof e) ? !1 : (e = e.toString(), ((t = dn.exec(e)) == null ? void 0 : t[0]) === e);
154
+ }
155
+ function sr(e) {
156
+ var t, n;
157
+ return !e || typeof e != "string" ? !1 : ((t = cn.exec(e)) == null ? void 0 : t[0]) === e || ((n = pn.exec(e)) == null ? void 0 : n[0]) === e;
158
+ }
159
+ function ur(e) {
160
+ var t;
161
+ return !e || typeof e != "string" ? !1 : ((t = ln.exec(e)) == null ? void 0 : t[0]) === e;
162
+ }
163
+ function cr(e) {
164
+ return e.filter((t) => !!t).join(" ");
165
+ }
166
+ const Oo = {
167
+ getUniqueString: rn,
168
+ getRandomElement: zn,
169
+ getRandomInt: on,
170
+ formatMessages: Xn,
171
+ filterFormattedMessages: Gn,
172
+ hasFormattedMessageOfType: st,
173
+ getValidationState: an,
174
+ htmlFragment: Kn,
175
+ flushPromises: Zn,
176
+ kebabCaseToPascalCase: Jn,
177
+ debounce: Qn,
178
+ isOutOfViewPort: er,
179
+ getPhoneNumberRegex: fn,
180
+ linkRegex: or,
181
+ isEmailAddress: ur,
182
+ isPhoneNumber: ar,
183
+ isURL: sr,
184
+ safeConcatStrings: cr
185
+ }, pr = {
186
+ name: "DtLazyShow",
187
+ /******************
188
+ * PROPS *
189
+ ******************/
190
+ props: {
191
+ /**
192
+ * Whether the child slot is shown.
193
+ * @values true, false
194
+ */
195
+ show: {
196
+ type: Boolean,
197
+ default: !1
198
+ },
199
+ /**
200
+ * A valid Vue enter/leave CSS transition name.
201
+ */
202
+ transition: {
203
+ type: String,
204
+ default: null
205
+ },
206
+ /**
207
+ * Enable/Disable transition animation
208
+ * @values true, false
209
+ */
210
+ appear: {
211
+ type: Boolean,
212
+ default: !1
213
+ }
214
+ },
215
+ /******************
216
+ * DATA *
217
+ ******************/
218
+ data() {
219
+ return {
220
+ initialized: !!this.show
221
+ };
222
+ },
223
+ computed: {
224
+ /**
225
+ * Set the css property to false when running tests only.
226
+ * Refer to: https://vuejs.org/guide/built-ins/transition.html#javascript-hooks for details about
227
+ * transition `css` property
228
+ * @returns {boolean}
229
+ */
230
+ isCSSEnabled() {
231
+ return process.env.NODE_ENV !== "test";
232
+ }
233
+ },
234
+ /******************
235
+ * WATCH *
236
+ ******************/
237
+ watch: {
238
+ show: function(e) {
239
+ !e || this.initialized || (this.initialized = !0);
240
+ }
241
+ }
242
+ };
243
+ var lr = function() {
244
+ var t = this, n = t._self._c;
245
+ return n("transition", t._g({ attrs: { name: t.transition, appear: t.appear, css: t.isCSSEnabled } }, t.$listeners), [n("div", t._g({ directives: [{ name: "show", rawName: "v-show", value: t.show, expression: "show" }] }, t.$listeners), [t.initialized ? t._t("default") : t._e()], 2)]);
246
+ }, fr = [], dr = /* @__PURE__ */ nn(
247
+ pr,
248
+ lr,
249
+ fr,
250
+ !1,
251
+ null,
252
+ null,
253
+ null,
254
+ null
255
+ );
256
+ const vr = dr.exports;
257
+ var $ = "top", Y = "bottom", X = "right", B = "left", lt = "auto", qe = [$, Y, X, B], Re = "start", He = "end", hr = "clippingParents", vn = "viewport", ke = "popper", mr = "reference", _t = /* @__PURE__ */ qe.reduce(function(e, t) {
258
+ return e.concat([t + "-" + Re, t + "-" + He]);
259
+ }, []), hn = /* @__PURE__ */ [].concat(qe, [lt]).reduce(function(e, t) {
260
+ return e.concat([t, t + "-" + Re, t + "-" + He]);
261
+ }, []), gr = "beforeRead", yr = "read", br = "afterRead", wr = "beforeMain", Er = "main", Or = "afterMain", xr = "beforeWrite", Tr = "write", Ar = "afterWrite", bt = [gr, yr, br, wr, Er, Or, xr, Tr, Ar];
262
+ function ne(e) {
263
+ return e ? (e.nodeName || "").toLowerCase() : null;
264
+ }
265
+ function q(e) {
266
+ if (e == null)
267
+ return window;
268
+ if (e.toString() !== "[object Window]") {
269
+ var t = e.ownerDocument;
270
+ return t && t.defaultView || window;
271
+ }
272
+ return e;
273
+ }
274
+ function we(e) {
275
+ var t = q(e).Element;
276
+ return e instanceof t || e instanceof Element;
277
+ }
278
+ function W(e) {
279
+ var t = q(e).HTMLElement;
280
+ return e instanceof t || e instanceof HTMLElement;
281
+ }
282
+ function At(e) {
283
+ if (typeof ShadowRoot > "u")
284
+ return !1;
285
+ var t = q(e).ShadowRoot;
286
+ return e instanceof t || e instanceof ShadowRoot;
287
+ }
288
+ function Sr(e) {
289
+ var t = e.state;
290
+ Object.keys(t.elements).forEach(function(n) {
291
+ var r = t.styles[n] || {}, o = t.attributes[n] || {}, s = t.elements[n];
292
+ !W(s) || !ne(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(c) {
293
+ var p = o[c];
294
+ p === !1 ? s.removeAttribute(c) : s.setAttribute(c, p === !0 ? "" : p);
295
+ }));
296
+ });
297
+ }
298
+ function Dr(e) {
299
+ var t = e.state, n = {
300
+ popper: {
301
+ position: t.options.strategy,
302
+ left: "0",
303
+ top: "0",
304
+ margin: "0"
305
+ },
306
+ arrow: {
307
+ position: "absolute"
308
+ },
309
+ reference: {}
310
+ };
311
+ return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
312
+ Object.keys(t.elements).forEach(function(r) {
313
+ var o = t.elements[r], s = t.attributes[r] || {}, c = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), p = c.reduce(function(u, f) {
314
+ return u[f] = "", u;
315
+ }, {});
316
+ !W(o) || !ne(o) || (Object.assign(o.style, p), Object.keys(s).forEach(function(u) {
317
+ o.removeAttribute(u);
318
+ }));
319
+ });
320
+ };
321
+ }
322
+ const mn = {
323
+ name: "applyStyles",
324
+ enabled: !0,
325
+ phase: "write",
326
+ fn: Sr,
327
+ effect: Dr,
328
+ requires: ["computeStyles"]
329
+ };
330
+ function K(e) {
331
+ return e.split("-")[0];
332
+ }
333
+ var be = Math.max, ct = Math.min, Ce = Math.round;
334
+ function wt() {
335
+ var e = navigator.userAgentData;
336
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
337
+ return t.brand + "/" + t.version;
338
+ }).join(" ") : navigator.userAgent;
339
+ }
340
+ function gn() {
341
+ return !/^((?!chrome|android).)*safari/i.test(wt());
342
+ }
343
+ function Pe(e, t, n) {
344
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
345
+ var r = e.getBoundingClientRect(), o = 1, s = 1;
346
+ t && W(e) && (o = e.offsetWidth > 0 && Ce(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Ce(r.height) / e.offsetHeight || 1);
347
+ var c = we(e) ? q(e) : window, p = c.visualViewport, u = !gn() && n, f = (r.left + (u && p ? p.offsetLeft : 0)) / o, l = (r.top + (u && p ? p.offsetTop : 0)) / s, g = r.width / o, x = r.height / s;
348
+ return {
349
+ width: g,
350
+ height: x,
351
+ top: l,
352
+ right: f + g,
353
+ bottom: l + x,
354
+ left: f,
355
+ x: f,
356
+ y: l
357
+ };
358
+ }
359
+ function St(e) {
360
+ var t = Pe(e), n = e.offsetWidth, r = e.offsetHeight;
361
+ return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
362
+ x: e.offsetLeft,
363
+ y: e.offsetTop,
364
+ width: n,
365
+ height: r
366
+ };
367
+ }
368
+ function yn(e, t) {
369
+ var n = t.getRootNode && t.getRootNode();
370
+ if (e.contains(t))
371
+ return !0;
372
+ if (n && At(n)) {
373
+ var r = t;
374
+ do {
375
+ if (r && e.isSameNode(r))
376
+ return !0;
377
+ r = r.parentNode || r.host;
378
+ } while (r);
379
+ }
380
+ return !1;
381
+ }
382
+ function Z(e) {
383
+ return q(e).getComputedStyle(e);
384
+ }
385
+ function Rr(e) {
386
+ return ["table", "td", "th"].indexOf(ne(e)) >= 0;
387
+ }
388
+ function le(e) {
389
+ return ((we(e) ? e.ownerDocument : (
390
+ // $FlowFixMe[prop-missing]
391
+ e.document
392
+ )) || window.document).documentElement;
393
+ }
394
+ function ft(e) {
395
+ return ne(e) === "html" ? e : (
396
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
397
+ // $FlowFixMe[incompatible-return]
398
+ // $FlowFixMe[prop-missing]
399
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
400
+ e.parentNode || // DOM Element detected
401
+ (At(e) ? e.host : null) || // ShadowRoot detected
402
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
403
+ le(e)
404
+ );
405
+ }
406
+ function Mt(e) {
407
+ return !W(e) || // https://github.com/popperjs/popper-core/issues/837
408
+ Z(e).position === "fixed" ? null : e.offsetParent;
409
+ }
410
+ function Cr(e) {
411
+ var t = /firefox/i.test(wt()), n = /Trident/i.test(wt());
412
+ if (n && W(e)) {
413
+ var r = Z(e);
414
+ if (r.position === "fixed")
415
+ return null;
416
+ }
417
+ var o = ft(e);
418
+ for (At(o) && (o = o.host); W(o) && ["html", "body"].indexOf(ne(o)) < 0; ) {
419
+ var s = Z(o);
420
+ if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
421
+ return o;
422
+ o = o.parentNode;
423
+ }
424
+ return null;
425
+ }
426
+ function ze(e) {
427
+ for (var t = q(e), n = Mt(e); n && Rr(n) && Z(n).position === "static"; )
428
+ n = Mt(n);
429
+ return n && (ne(n) === "html" || ne(n) === "body" && Z(n).position === "static") ? t : n || Cr(e) || t;
430
+ }
431
+ function Dt(e) {
432
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
433
+ }
434
+ function Ve(e, t, n) {
435
+ return be(e, ct(t, n));
436
+ }
437
+ function Pr(e, t, n) {
438
+ var r = Ve(e, t, n);
439
+ return r > n ? n : r;
440
+ }
441
+ function bn() {
442
+ return {
443
+ top: 0,
444
+ right: 0,
445
+ bottom: 0,
446
+ left: 0
447
+ };
448
+ }
449
+ function wn(e) {
450
+ return Object.assign({}, bn(), e);
451
+ }
452
+ function En(e, t) {
453
+ return t.reduce(function(n, r) {
454
+ return n[r] = e, n;
455
+ }, {});
456
+ }
457
+ var Lr = function(t, n) {
458
+ return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
459
+ placement: n.placement
460
+ })) : t, wn(typeof t != "number" ? t : En(t, qe));
461
+ };
462
+ function Ir(e) {
463
+ var t, n = e.state, r = e.name, o = e.options, s = n.elements.arrow, c = n.modifiersData.popperOffsets, p = K(n.placement), u = Dt(p), f = [B, X].indexOf(p) >= 0, l = f ? "height" : "width";
464
+ if (!(!s || !c)) {
465
+ var g = Lr(o.padding, n), x = St(s), m = u === "y" ? $ : B, w = u === "y" ? Y : X, y = n.rects.reference[l] + n.rects.reference[u] - c[u] - n.rects.popper[l], b = c[u] - n.rects.reference[u], A = ze(s), R = A ? u === "y" ? A.clientHeight || 0 : A.clientWidth || 0 : 0, P = y / 2 - b / 2, i = g[m], E = R - x[l] - g[w], d = R / 2 - x[l] / 2 + P, D = Ve(i, d, E), N = u;
466
+ n.modifiersData[r] = (t = {}, t[N] = D, t.centerOffset = D - d, t);
467
+ }
468
+ }
469
+ function Nr(e) {
470
+ var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
471
+ if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
472
+ 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(" "))), !yn(t.elements.popper, o)) {
473
+ process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
474
+ return;
475
+ }
476
+ t.elements.arrow = o;
477
+ }
478
+ }
479
+ const _r = {
480
+ name: "arrow",
481
+ enabled: !0,
482
+ phase: "main",
483
+ fn: Ir,
484
+ effect: Nr,
485
+ requires: ["popperOffsets"],
486
+ requiresIfExists: ["preventOverflow"]
487
+ };
488
+ function Le(e) {
489
+ return e.split("-")[1];
490
+ }
491
+ var Mr = {
492
+ top: "auto",
493
+ right: "auto",
494
+ bottom: "auto",
495
+ left: "auto"
496
+ };
497
+ function jr(e, t) {
498
+ var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
499
+ return {
500
+ x: Ce(n * o) / o || 0,
501
+ y: Ce(r * o) / o || 0
502
+ };
503
+ }
504
+ function jt(e) {
505
+ var t, n = e.popper, r = e.popperRect, o = e.placement, s = e.variation, c = e.offsets, p = e.position, u = e.gpuAcceleration, f = e.adaptive, l = e.roundOffsets, g = e.isFixed, x = c.x, m = x === void 0 ? 0 : x, w = c.y, y = w === void 0 ? 0 : w, b = typeof l == "function" ? l({
506
+ x: m,
507
+ y
508
+ }) : {
509
+ x: m,
510
+ y
511
+ };
512
+ m = b.x, y = b.y;
513
+ var A = c.hasOwnProperty("x"), R = c.hasOwnProperty("y"), P = B, i = $, E = window;
514
+ if (f) {
515
+ var d = ze(n), D = "clientHeight", N = "clientWidth";
516
+ if (d === q(n) && (d = le(n), Z(d).position !== "static" && p === "absolute" && (D = "scrollHeight", N = "scrollWidth")), d = d, o === $ || (o === B || o === X) && s === He) {
517
+ i = Y;
518
+ var _ = g && d === E && E.visualViewport ? E.visualViewport.height : (
519
+ // $FlowFixMe[prop-missing]
520
+ d[D]
521
+ );
522
+ y -= _ - r.height, y *= u ? 1 : -1;
523
+ }
524
+ if (o === B || (o === $ || o === Y) && s === He) {
525
+ P = X;
526
+ var L = g && d === E && E.visualViewport ? E.visualViewport.width : (
527
+ // $FlowFixMe[prop-missing]
528
+ d[N]
529
+ );
530
+ m -= L - r.width, m *= u ? 1 : -1;
531
+ }
532
+ }
533
+ var T = Object.assign({
534
+ position: p
535
+ }, f && Mr), C = l === !0 ? jr({
536
+ x: m,
537
+ y
538
+ }, q(n)) : {
539
+ x: m,
540
+ y
541
+ };
542
+ if (m = C.x, y = C.y, u) {
543
+ var I;
544
+ return Object.assign({}, T, (I = {}, I[i] = R ? "0" : "", I[P] = A ? "0" : "", I.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", I));
545
+ }
546
+ return Object.assign({}, T, (t = {}, t[i] = R ? y + "px" : "", t[P] = A ? m + "px" : "", t.transform = "", t));
547
+ }
548
+ function kr(e) {
549
+ var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, s = n.adaptive, c = s === void 0 ? !0 : s, p = n.roundOffsets, u = p === void 0 ? !0 : p;
550
+ if (process.env.NODE_ENV !== "production") {
551
+ var f = Z(t.elements.popper).transitionProperty || "";
552
+ c && ["transform", "top", "right", "bottom", "left"].some(function(g) {
553
+ return f.indexOf(g) >= 0;
554
+ }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
555
+
556
+ `, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
557
+
558
+ `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
559
+ }
560
+ var l = {
561
+ placement: K(t.placement),
562
+ variation: Le(t.placement),
563
+ popper: t.elements.popper,
564
+ popperRect: t.rects.popper,
565
+ gpuAcceleration: o,
566
+ isFixed: t.options.strategy === "fixed"
567
+ };
568
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, jt(Object.assign({}, l, {
569
+ offsets: t.modifiersData.popperOffsets,
570
+ position: t.options.strategy,
571
+ adaptive: c,
572
+ roundOffsets: u
573
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, jt(Object.assign({}, l, {
574
+ offsets: t.modifiersData.arrow,
575
+ position: "absolute",
576
+ adaptive: !1,
577
+ roundOffsets: u
578
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
579
+ "data-popper-placement": t.placement
580
+ });
581
+ }
582
+ const Vr = {
583
+ name: "computeStyles",
584
+ enabled: !0,
585
+ phase: "beforeWrite",
586
+ fn: kr,
587
+ data: {}
588
+ };
589
+ var ot = {
590
+ passive: !0
591
+ };
592
+ function $r(e) {
593
+ var t = e.state, n = e.instance, r = e.options, o = r.scroll, s = o === void 0 ? !0 : o, c = r.resize, p = c === void 0 ? !0 : c, u = q(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
594
+ return s && f.forEach(function(l) {
595
+ l.addEventListener("scroll", n.update, ot);
596
+ }), p && u.addEventListener("resize", n.update, ot), function() {
597
+ s && f.forEach(function(l) {
598
+ l.removeEventListener("scroll", n.update, ot);
599
+ }), p && u.removeEventListener("resize", n.update, ot);
600
+ };
601
+ }
602
+ const Br = {
603
+ name: "eventListeners",
604
+ enabled: !0,
605
+ phase: "write",
606
+ fn: function() {
607
+ },
608
+ effect: $r,
609
+ data: {}
610
+ };
611
+ var Hr = {
612
+ left: "right",
613
+ right: "left",
614
+ bottom: "top",
615
+ top: "bottom"
616
+ };
617
+ function ut(e) {
618
+ return e.replace(/left|right|bottom|top/g, function(t) {
619
+ return Hr[t];
620
+ });
621
+ }
622
+ var Fr = {
623
+ start: "end",
624
+ end: "start"
625
+ };
626
+ function kt(e) {
627
+ return e.replace(/start|end/g, function(t) {
628
+ return Fr[t];
629
+ });
630
+ }
631
+ function Rt(e) {
632
+ var t = q(e), n = t.pageXOffset, r = t.pageYOffset;
633
+ return {
634
+ scrollLeft: n,
635
+ scrollTop: r
636
+ };
637
+ }
638
+ function Ct(e) {
639
+ return Pe(le(e)).left + Rt(e).scrollLeft;
640
+ }
641
+ function Ur(e, t) {
642
+ var n = q(e), r = le(e), o = n.visualViewport, s = r.clientWidth, c = r.clientHeight, p = 0, u = 0;
643
+ if (o) {
644
+ s = o.width, c = o.height;
645
+ var f = gn();
646
+ (f || !f && t === "fixed") && (p = o.offsetLeft, u = o.offsetTop);
647
+ }
648
+ return {
649
+ width: s,
650
+ height: c,
651
+ x: p + Ct(e),
652
+ y: u
653
+ };
654
+ }
655
+ function Wr(e) {
656
+ var t, n = le(e), r = Rt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, s = be(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = be(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), p = -r.scrollLeft + Ct(e), u = -r.scrollTop;
657
+ return Z(o || n).direction === "rtl" && (p += be(n.clientWidth, o ? o.clientWidth : 0) - s), {
658
+ width: s,
659
+ height: c,
660
+ x: p,
661
+ y: u
662
+ };
663
+ }
664
+ function Pt(e) {
665
+ var t = Z(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
666
+ return /auto|scroll|overlay|hidden/.test(n + o + r);
667
+ }
668
+ function On(e) {
669
+ return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : W(e) && Pt(e) ? e : On(ft(e));
670
+ }
671
+ function $e(e, t) {
672
+ var n;
673
+ t === void 0 && (t = []);
674
+ var r = On(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), s = q(r), c = o ? [s].concat(s.visualViewport || [], Pt(r) ? r : []) : r, p = t.concat(c);
675
+ return o ? p : (
676
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
677
+ p.concat($e(ft(c)))
678
+ );
679
+ }
680
+ function Et(e) {
681
+ return Object.assign({}, e, {
682
+ left: e.x,
683
+ top: e.y,
684
+ right: e.x + e.width,
685
+ bottom: e.y + e.height
686
+ });
687
+ }
688
+ function qr(e, t) {
689
+ var n = Pe(e, !1, t === "fixed");
690
+ 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;
691
+ }
692
+ function Vt(e, t, n) {
693
+ return t === vn ? Et(Ur(e, n)) : we(t) ? qr(t, n) : Et(Wr(le(e)));
694
+ }
695
+ function zr(e) {
696
+ var t = $e(ft(e)), n = ["absolute", "fixed"].indexOf(Z(e).position) >= 0, r = n && W(e) ? ze(e) : e;
697
+ return we(r) ? t.filter(function(o) {
698
+ return we(o) && yn(o, r) && ne(o) !== "body";
699
+ }) : [];
700
+ }
701
+ function Yr(e, t, n, r) {
702
+ var o = t === "clippingParents" ? zr(e) : [].concat(t), s = [].concat(o, [n]), c = s[0], p = s.reduce(function(u, f) {
703
+ var l = Vt(e, f, r);
704
+ return u.top = be(l.top, u.top), u.right = ct(l.right, u.right), u.bottom = ct(l.bottom, u.bottom), u.left = be(l.left, u.left), u;
705
+ }, Vt(e, c, r));
706
+ return p.width = p.right - p.left, p.height = p.bottom - p.top, p.x = p.left, p.y = p.top, p;
707
+ }
708
+ function xn(e) {
709
+ var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, s = r ? Le(r) : null, c = t.x + t.width / 2 - n.width / 2, p = t.y + t.height / 2 - n.height / 2, u;
710
+ switch (o) {
711
+ case $:
712
+ u = {
713
+ x: c,
714
+ y: t.y - n.height
715
+ };
716
+ break;
717
+ case Y:
718
+ u = {
719
+ x: c,
720
+ y: t.y + t.height
721
+ };
722
+ break;
723
+ case X:
724
+ u = {
725
+ x: t.x + t.width,
726
+ y: p
727
+ };
728
+ break;
729
+ case B:
730
+ u = {
731
+ x: t.x - n.width,
732
+ y: p
733
+ };
734
+ break;
735
+ default:
736
+ u = {
737
+ x: t.x,
738
+ y: t.y
739
+ };
740
+ }
741
+ var f = o ? Dt(o) : null;
742
+ if (f != null) {
743
+ var l = f === "y" ? "height" : "width";
744
+ switch (s) {
745
+ case Re:
746
+ u[f] = u[f] - (t[l] / 2 - n[l] / 2);
747
+ break;
748
+ case He:
749
+ u[f] = u[f] + (t[l] / 2 - n[l] / 2);
750
+ break;
751
+ }
752
+ }
753
+ return u;
754
+ }
755
+ function Fe(e, t) {
756
+ t === void 0 && (t = {});
757
+ var n = t, r = n.placement, o = r === void 0 ? e.placement : r, s = n.strategy, c = s === void 0 ? e.strategy : s, p = n.boundary, u = p === void 0 ? hr : p, f = n.rootBoundary, l = f === void 0 ? vn : f, g = n.elementContext, x = g === void 0 ? ke : g, m = n.altBoundary, w = m === void 0 ? !1 : m, y = n.padding, b = y === void 0 ? 0 : y, A = wn(typeof b != "number" ? b : En(b, qe)), R = x === ke ? mr : ke, P = e.rects.popper, i = e.elements[w ? R : x], E = Yr(we(i) ? i : i.contextElement || le(e.elements.popper), u, l, c), d = Pe(e.elements.reference), D = xn({
758
+ reference: d,
759
+ element: P,
760
+ strategy: "absolute",
761
+ placement: o
762
+ }), N = Et(Object.assign({}, P, D)), _ = x === ke ? N : d, L = {
763
+ top: E.top - _.top + A.top,
764
+ bottom: _.bottom - E.bottom + A.bottom,
765
+ left: E.left - _.left + A.left,
766
+ right: _.right - E.right + A.right
767
+ }, T = e.modifiersData.offset;
768
+ if (x === ke && T) {
769
+ var C = T[o];
770
+ Object.keys(L).forEach(function(I) {
771
+ var H = [X, Y].indexOf(I) >= 0 ? 1 : -1, F = [$, Y].indexOf(I) >= 0 ? "y" : "x";
772
+ L[I] += C[F] * H;
773
+ });
774
+ }
775
+ return L;
776
+ }
777
+ function Xr(e, t) {
778
+ t === void 0 && (t = {});
779
+ var n = t, r = n.placement, o = n.boundary, s = n.rootBoundary, c = n.padding, p = n.flipVariations, u = n.allowedAutoPlacements, f = u === void 0 ? hn : u, l = Le(r), g = l ? p ? _t : _t.filter(function(w) {
780
+ return Le(w) === l;
781
+ }) : qe, x = g.filter(function(w) {
782
+ return f.indexOf(w) >= 0;
783
+ });
784
+ 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(" ")));
785
+ var m = x.reduce(function(w, y) {
786
+ return w[y] = Fe(e, {
787
+ placement: y,
788
+ boundary: o,
789
+ rootBoundary: s,
790
+ padding: c
791
+ })[K(y)], w;
792
+ }, {});
793
+ return Object.keys(m).sort(function(w, y) {
794
+ return m[w] - m[y];
795
+ });
796
+ }
797
+ function Gr(e) {
798
+ if (K(e) === lt)
799
+ return [];
800
+ var t = ut(e);
801
+ return [kt(e), t, kt(t)];
802
+ }
803
+ function Kr(e) {
804
+ var t = e.state, n = e.options, r = e.name;
805
+ if (!t.modifiersData[r]._skip) {
806
+ for (var o = n.mainAxis, s = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !0 : c, u = n.fallbackPlacements, f = n.padding, l = n.boundary, g = n.rootBoundary, x = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, y = n.allowedAutoPlacements, b = t.options.placement, A = K(b), R = A === b, P = u || (R || !w ? [ut(b)] : Gr(b)), i = [b].concat(P).reduce(function(re, G) {
807
+ return re.concat(K(G) === lt ? Xr(t, {
808
+ placement: G,
809
+ boundary: l,
810
+ rootBoundary: g,
811
+ padding: f,
812
+ flipVariations: w,
813
+ allowedAutoPlacements: y
814
+ }) : G);
815
+ }, []), E = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), N = !0, _ = i[0], L = 0; L < i.length; L++) {
816
+ var T = i[L], C = K(T), I = Le(T) === Re, H = [$, Y].indexOf(C) >= 0, F = H ? "width" : "height", j = Fe(t, {
817
+ placement: T,
818
+ boundary: l,
819
+ rootBoundary: g,
820
+ altBoundary: x,
821
+ padding: f
822
+ }), k = H ? I ? X : B : I ? Y : $;
823
+ E[F] > d[F] && (k = ut(k));
824
+ var M = ut(k), J = [];
825
+ if (s && J.push(j[C] <= 0), p && J.push(j[k] <= 0, j[M] <= 0), J.every(function(re) {
826
+ return re;
827
+ })) {
828
+ _ = T, N = !1;
829
+ break;
830
+ }
831
+ D.set(T, J);
832
+ }
833
+ if (N)
834
+ for (var Q = w ? 3 : 1, fe = function(G) {
835
+ var ie = i.find(function(Ee) {
836
+ var oe = D.get(Ee);
837
+ if (oe)
838
+ return oe.slice(0, G).every(function(Oe) {
839
+ return Oe;
840
+ });
841
+ });
842
+ if (ie)
843
+ return _ = ie, "break";
844
+ }, ee = Q; ee > 0; ee--) {
845
+ var de = fe(ee);
846
+ if (de === "break")
847
+ break;
848
+ }
849
+ t.placement !== _ && (t.modifiersData[r]._skip = !0, t.placement = _, t.reset = !0);
850
+ }
851
+ }
852
+ const Zr = {
853
+ name: "flip",
854
+ enabled: !0,
855
+ phase: "main",
856
+ fn: Kr,
857
+ requiresIfExists: ["offset"],
858
+ data: {
859
+ _skip: !1
860
+ }
861
+ };
862
+ function $t(e, t, n) {
863
+ return n === void 0 && (n = {
864
+ x: 0,
865
+ y: 0
866
+ }), {
867
+ top: e.top - t.height - n.y,
868
+ right: e.right - t.width + n.x,
869
+ bottom: e.bottom - t.height + n.y,
870
+ left: e.left - t.width - n.x
871
+ };
872
+ }
873
+ function Bt(e) {
874
+ return [$, X, Y, B].some(function(t) {
875
+ return e[t] >= 0;
876
+ });
877
+ }
878
+ function Jr(e) {
879
+ var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, s = t.modifiersData.preventOverflow, c = Fe(t, {
880
+ elementContext: "reference"
881
+ }), p = Fe(t, {
882
+ altBoundary: !0
883
+ }), u = $t(c, r), f = $t(p, o, s), l = Bt(u), g = Bt(f);
884
+ t.modifiersData[n] = {
885
+ referenceClippingOffsets: u,
886
+ popperEscapeOffsets: f,
887
+ isReferenceHidden: l,
888
+ hasPopperEscaped: g
889
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
890
+ "data-popper-reference-hidden": l,
891
+ "data-popper-escaped": g
892
+ });
893
+ }
894
+ const Qr = {
895
+ name: "hide",
896
+ enabled: !0,
897
+ phase: "main",
898
+ requiresIfExists: ["preventOverflow"],
899
+ fn: Jr
900
+ };
901
+ function ei(e, t, n) {
902
+ var r = K(e), o = [B, $].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, {
903
+ placement: e
904
+ })) : n, c = s[0], p = s[1];
905
+ return c = c || 0, p = (p || 0) * o, [B, X].indexOf(r) >= 0 ? {
906
+ x: p,
907
+ y: c
908
+ } : {
909
+ x: c,
910
+ y: p
911
+ };
912
+ }
913
+ function ti(e) {
914
+ var t = e.state, n = e.options, r = e.name, o = n.offset, s = o === void 0 ? [0, 0] : o, c = hn.reduce(function(l, g) {
915
+ return l[g] = ei(g, t.rects, s), l;
916
+ }, {}), p = c[t.placement], u = p.x, f = p.y;
917
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = c;
918
+ }
919
+ const ni = {
920
+ name: "offset",
921
+ enabled: !0,
922
+ phase: "main",
923
+ requires: ["popperOffsets"],
924
+ fn: ti
925
+ };
926
+ function ri(e) {
927
+ var t = e.state, n = e.name;
928
+ t.modifiersData[n] = xn({
929
+ reference: t.rects.reference,
930
+ element: t.rects.popper,
931
+ strategy: "absolute",
932
+ placement: t.placement
933
+ });
934
+ }
935
+ const ii = {
936
+ name: "popperOffsets",
937
+ enabled: !0,
938
+ phase: "read",
939
+ fn: ri,
940
+ data: {}
941
+ };
942
+ function oi(e) {
943
+ return e === "x" ? "y" : "x";
944
+ }
945
+ function ai(e) {
946
+ var t = e.state, n = e.options, r = e.name, o = n.mainAxis, s = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !1 : c, u = n.boundary, f = n.rootBoundary, l = n.altBoundary, g = n.padding, x = n.tether, m = x === void 0 ? !0 : x, w = n.tetherOffset, y = w === void 0 ? 0 : w, b = Fe(t, {
947
+ boundary: u,
948
+ rootBoundary: f,
949
+ padding: g,
950
+ altBoundary: l
951
+ }), A = K(t.placement), R = Le(t.placement), P = !R, i = Dt(A), E = oi(i), d = t.modifiersData.popperOffsets, D = t.rects.reference, N = t.rects.popper, _ = typeof y == "function" ? y(Object.assign({}, t.rects, {
952
+ placement: t.placement
953
+ })) : y, L = typeof _ == "number" ? {
954
+ mainAxis: _,
955
+ altAxis: _
956
+ } : Object.assign({
957
+ mainAxis: 0,
958
+ altAxis: 0
959
+ }, _), T = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, C = {
960
+ x: 0,
961
+ y: 0
962
+ };
963
+ if (d) {
964
+ if (s) {
965
+ var I, H = i === "y" ? $ : B, F = i === "y" ? Y : X, j = i === "y" ? "height" : "width", k = d[i], M = k + b[H], J = k - b[F], Q = m ? -N[j] / 2 : 0, fe = R === Re ? D[j] : N[j], ee = R === Re ? -N[j] : -D[j], de = t.elements.arrow, re = m && de ? St(de) : {
966
+ width: 0,
967
+ height: 0
968
+ }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : bn(), ie = G[H], Ee = G[F], oe = Ve(0, D[j], re[j]), Oe = P ? D[j] / 2 - Q - oe - ie - L.mainAxis : fe - oe - ie - L.mainAxis, ue = P ? -D[j] / 2 + Q + oe + Ee + L.mainAxis : ee + oe + Ee + L.mainAxis, xe = t.elements.arrow && ze(t.elements.arrow), Xe = xe ? i === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Ie = (I = T == null ? void 0 : T[i]) != null ? I : 0, Ge = k + Oe - Ie - Xe, Ke = k + ue - Ie, Ne = Ve(m ? ct(M, Ge) : M, k, m ? be(J, Ke) : J);
969
+ d[i] = Ne, C[i] = Ne - k;
970
+ }
971
+ if (p) {
972
+ var _e, Ze = i === "x" ? $ : B, Je = i === "x" ? Y : X, ae = d[E], ce = E === "y" ? "height" : "width", Me = ae + b[Ze], ve = ae - b[Je], je = [$, B].indexOf(A) !== -1, Qe = (_e = T == null ? void 0 : T[E]) != null ? _e : 0, et = je ? Me : ae - D[ce] - N[ce] - Qe + L.altAxis, tt = je ? ae + D[ce] + N[ce] - Qe - L.altAxis : ve, nt = m && je ? Pr(et, ae, tt) : Ve(m ? et : Me, ae, m ? tt : ve);
973
+ d[E] = nt, C[E] = nt - ae;
974
+ }
975
+ t.modifiersData[r] = C;
976
+ }
977
+ }
978
+ const si = {
979
+ name: "preventOverflow",
980
+ enabled: !0,
981
+ phase: "main",
982
+ fn: ai,
983
+ requiresIfExists: ["offset"]
984
+ };
985
+ function ui(e) {
986
+ return {
987
+ scrollLeft: e.scrollLeft,
988
+ scrollTop: e.scrollTop
989
+ };
990
+ }
991
+ function ci(e) {
992
+ return e === q(e) || !W(e) ? Rt(e) : ui(e);
993
+ }
994
+ function pi(e) {
995
+ var t = e.getBoundingClientRect(), n = Ce(t.width) / e.offsetWidth || 1, r = Ce(t.height) / e.offsetHeight || 1;
996
+ return n !== 1 || r !== 1;
997
+ }
998
+ function li(e, t, n) {
999
+ n === void 0 && (n = !1);
1000
+ var r = W(t), o = W(t) && pi(t), s = le(t), c = Pe(e, o, n), p = {
1001
+ scrollLeft: 0,
1002
+ scrollTop: 0
1003
+ }, u = {
1004
+ x: 0,
1005
+ y: 0
1006
+ };
1007
+ return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1008
+ Pt(s)) && (p = ci(t)), W(t) ? (u = Pe(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Ct(s))), {
1009
+ x: c.left + p.scrollLeft - u.x,
1010
+ y: c.top + p.scrollTop - u.y,
1011
+ width: c.width,
1012
+ height: c.height
1013
+ };
1014
+ }
1015
+ function fi(e) {
1016
+ var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
1017
+ e.forEach(function(s) {
1018
+ t.set(s.name, s);
1019
+ });
1020
+ function o(s) {
1021
+ n.add(s.name);
1022
+ var c = [].concat(s.requires || [], s.requiresIfExists || []);
1023
+ c.forEach(function(p) {
1024
+ if (!n.has(p)) {
1025
+ var u = t.get(p);
1026
+ u && o(u);
1027
+ }
1028
+ }), r.push(s);
1029
+ }
1030
+ return e.forEach(function(s) {
1031
+ n.has(s.name) || o(s);
1032
+ }), r;
1033
+ }
1034
+ function di(e) {
1035
+ var t = fi(e);
1036
+ return bt.reduce(function(n, r) {
1037
+ return n.concat(t.filter(function(o) {
1038
+ return o.phase === r;
1039
+ }));
1040
+ }, []);
1041
+ }
1042
+ function vi(e) {
1043
+ var t;
1044
+ return function() {
1045
+ return t || (t = new Promise(function(n) {
1046
+ Promise.resolve().then(function() {
1047
+ t = void 0, n(e());
1048
+ });
1049
+ })), t;
1050
+ };
1051
+ }
1052
+ function pe(e) {
1053
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
1054
+ n[r - 1] = arguments[r];
1055
+ return [].concat(n).reduce(function(o, s) {
1056
+ return o.replace(/%s/, s);
1057
+ }, e);
1058
+ }
1059
+ var me = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', hi = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Ht = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
1060
+ function mi(e) {
1061
+ e.forEach(function(t) {
1062
+ [].concat(Object.keys(t), Ht).filter(function(n, r, o) {
1063
+ return o.indexOf(n) === r;
1064
+ }).forEach(function(n) {
1065
+ switch (n) {
1066
+ case "name":
1067
+ typeof t.name != "string" && console.error(pe(me, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
1068
+ break;
1069
+ case "enabled":
1070
+ typeof t.enabled != "boolean" && console.error(pe(me, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
1071
+ break;
1072
+ case "phase":
1073
+ bt.indexOf(t.phase) < 0 && console.error(pe(me, t.name, '"phase"', "either " + bt.join(", "), '"' + String(t.phase) + '"'));
1074
+ break;
1075
+ case "fn":
1076
+ typeof t.fn != "function" && console.error(pe(me, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
1077
+ break;
1078
+ case "effect":
1079
+ t.effect != null && typeof t.effect != "function" && console.error(pe(me, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
1080
+ break;
1081
+ case "requires":
1082
+ t.requires != null && !Array.isArray(t.requires) && console.error(pe(me, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
1083
+ break;
1084
+ case "requiresIfExists":
1085
+ Array.isArray(t.requiresIfExists) || console.error(pe(me, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
1086
+ break;
1087
+ case "options":
1088
+ case "data":
1089
+ break;
1090
+ default:
1091
+ console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + Ht.map(function(r) {
1092
+ return '"' + r + '"';
1093
+ }).join(", ") + '; but "' + n + '" was provided.');
1094
+ }
1095
+ t.requires && t.requires.forEach(function(r) {
1096
+ e.find(function(o) {
1097
+ return o.name === r;
1098
+ }) == null && console.error(pe(hi, String(t.name), r, r));
1099
+ });
1100
+ });
1101
+ });
1102
+ }
1103
+ function gi(e, t) {
1104
+ var n = /* @__PURE__ */ new Set();
1105
+ return e.filter(function(r) {
1106
+ var o = t(r);
1107
+ if (!n.has(o))
1108
+ return n.add(o), !0;
1109
+ });
1110
+ }
1111
+ function yi(e) {
1112
+ var t = e.reduce(function(n, r) {
1113
+ var o = n[r.name];
1114
+ return n[r.name] = o ? Object.assign({}, o, r, {
1115
+ options: Object.assign({}, o.options, r.options),
1116
+ data: Object.assign({}, o.data, r.data)
1117
+ }) : r, n;
1118
+ }, {});
1119
+ return Object.keys(t).map(function(n) {
1120
+ return t[n];
1121
+ });
1122
+ }
1123
+ var Ft = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", bi = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", Ut = {
1124
+ placement: "bottom",
1125
+ modifiers: [],
1126
+ strategy: "absolute"
1127
+ };
1128
+ function Wt() {
1129
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1130
+ t[n] = arguments[n];
1131
+ return !t.some(function(r) {
1132
+ return !(r && typeof r.getBoundingClientRect == "function");
1133
+ });
1134
+ }
1135
+ function wi(e) {
1136
+ e === void 0 && (e = {});
1137
+ var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, s = o === void 0 ? Ut : o;
1138
+ return function(p, u, f) {
1139
+ f === void 0 && (f = s);
1140
+ var l = {
1141
+ placement: "bottom",
1142
+ orderedModifiers: [],
1143
+ options: Object.assign({}, Ut, s),
1144
+ modifiersData: {},
1145
+ elements: {
1146
+ reference: p,
1147
+ popper: u
1148
+ },
1149
+ attributes: {},
1150
+ styles: {}
1151
+ }, g = [], x = !1, m = {
1152
+ state: l,
1153
+ setOptions: function(A) {
1154
+ var R = typeof A == "function" ? A(l.options) : A;
1155
+ y(), l.options = Object.assign({}, s, l.options, R), l.scrollParents = {
1156
+ reference: we(p) ? $e(p) : p.contextElement ? $e(p.contextElement) : [],
1157
+ popper: $e(u)
1158
+ };
1159
+ var P = di(yi([].concat(r, l.options.modifiers)));
1160
+ if (l.orderedModifiers = P.filter(function(T) {
1161
+ return T.enabled;
1162
+ }), process.env.NODE_ENV !== "production") {
1163
+ var i = gi([].concat(P, l.options.modifiers), function(T) {
1164
+ var C = T.name;
1165
+ return C;
1166
+ });
1167
+ if (mi(i), K(l.options.placement) === lt) {
1168
+ var E = l.orderedModifiers.find(function(T) {
1169
+ var C = T.name;
1170
+ return C === "flip";
1171
+ });
1172
+ E || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
1173
+ }
1174
+ var d = Z(u), D = d.marginTop, N = d.marginRight, _ = d.marginBottom, L = d.marginLeft;
1175
+ [D, N, _, L].some(function(T) {
1176
+ return parseFloat(T);
1177
+ }) && 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(" "));
1178
+ }
1179
+ return w(), m.update();
1180
+ },
1181
+ // Sync update – it will always be executed, even if not necessary. This
1182
+ // is useful for low frequency updates where sync behavior simplifies the
1183
+ // logic.
1184
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
1185
+ // prefer the async Popper#update method
1186
+ forceUpdate: function() {
1187
+ if (!x) {
1188
+ var A = l.elements, R = A.reference, P = A.popper;
1189
+ if (!Wt(R, P)) {
1190
+ process.env.NODE_ENV !== "production" && console.error(Ft);
1191
+ return;
1192
+ }
1193
+ l.rects = {
1194
+ reference: li(R, ze(P), l.options.strategy === "fixed"),
1195
+ popper: St(P)
1196
+ }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(T) {
1197
+ return l.modifiersData[T.name] = Object.assign({}, T.data);
1198
+ });
1199
+ for (var i = 0, E = 0; E < l.orderedModifiers.length; E++) {
1200
+ if (process.env.NODE_ENV !== "production" && (i += 1, i > 100)) {
1201
+ console.error(bi);
1202
+ break;
1203
+ }
1204
+ if (l.reset === !0) {
1205
+ l.reset = !1, E = -1;
1206
+ continue;
1207
+ }
1208
+ var d = l.orderedModifiers[E], D = d.fn, N = d.options, _ = N === void 0 ? {} : N, L = d.name;
1209
+ typeof D == "function" && (l = D({
1210
+ state: l,
1211
+ options: _,
1212
+ name: L,
1213
+ instance: m
1214
+ }) || l);
1215
+ }
1216
+ }
1217
+ },
1218
+ // Async and optimistically optimized update – it will not be executed if
1219
+ // not necessary (debounced to run at most once-per-tick)
1220
+ update: vi(function() {
1221
+ return new Promise(function(b) {
1222
+ m.forceUpdate(), b(l);
1223
+ });
1224
+ }),
1225
+ destroy: function() {
1226
+ y(), x = !0;
1227
+ }
1228
+ };
1229
+ if (!Wt(p, u))
1230
+ return process.env.NODE_ENV !== "production" && console.error(Ft), m;
1231
+ m.setOptions(f).then(function(b) {
1232
+ !x && f.onFirstUpdate && f.onFirstUpdate(b);
1233
+ });
1234
+ function w() {
1235
+ l.orderedModifiers.forEach(function(b) {
1236
+ var A = b.name, R = b.options, P = R === void 0 ? {} : R, i = b.effect;
1237
+ if (typeof i == "function") {
1238
+ var E = i({
1239
+ state: l,
1240
+ name: A,
1241
+ instance: m,
1242
+ options: P
1243
+ }), d = function() {
1244
+ };
1245
+ g.push(E || d);
1246
+ }
1247
+ });
1248
+ }
1249
+ function y() {
1250
+ g.forEach(function(b) {
1251
+ return b();
1252
+ }), g = [];
1253
+ }
1254
+ return m;
1255
+ };
1256
+ }
1257
+ var Ei = [Br, ii, Vr, mn, ni, Zr, si, _r, Qr], Oi = /* @__PURE__ */ wi({
1258
+ defaultModifiers: Ei
1259
+ }), xi = "tippy-box", Tn = "tippy-content", Ti = "tippy-backdrop", An = "tippy-arrow", Sn = "tippy-svg-arrow", ye = {
1260
+ passive: !0,
1261
+ capture: !0
1262
+ }, Dn = function() {
1263
+ return document.body;
1264
+ };
1265
+ function Ai(e, t) {
1266
+ return {}.hasOwnProperty.call(e, t);
1267
+ }
1268
+ function ht(e, t, n) {
1269
+ if (Array.isArray(e)) {
1270
+ var r = e[t];
1271
+ return r ?? (Array.isArray(n) ? n[t] : n);
1272
+ }
1273
+ return e;
1274
+ }
1275
+ function Lt(e, t) {
1276
+ var n = {}.toString.call(e);
1277
+ return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
1278
+ }
1279
+ function Rn(e, t) {
1280
+ return typeof e == "function" ? e.apply(void 0, t) : e;
1281
+ }
1282
+ function qt(e, t) {
1283
+ if (t === 0)
1284
+ return e;
1285
+ var n;
1286
+ return function(r) {
1287
+ clearTimeout(n), n = setTimeout(function() {
1288
+ e(r);
1289
+ }, t);
1290
+ };
1291
+ }
1292
+ function Si(e, t) {
1293
+ var n = Object.assign({}, e);
1294
+ return t.forEach(function(r) {
1295
+ delete n[r];
1296
+ }), n;
1297
+ }
1298
+ function Di(e) {
1299
+ return e.split(/\s+/).filter(Boolean);
1300
+ }
1301
+ function De(e) {
1302
+ return [].concat(e);
1303
+ }
1304
+ function zt(e, t) {
1305
+ e.indexOf(t) === -1 && e.push(t);
1306
+ }
1307
+ function Ri(e) {
1308
+ return e.filter(function(t, n) {
1309
+ return e.indexOf(t) === n;
1310
+ });
1311
+ }
1312
+ function Ci(e) {
1313
+ return e.split("-")[0];
1314
+ }
1315
+ function pt(e) {
1316
+ return [].slice.call(e);
1317
+ }
1318
+ function Yt(e) {
1319
+ return Object.keys(e).reduce(function(t, n) {
1320
+ return e[n] !== void 0 && (t[n] = e[n]), t;
1321
+ }, {});
1322
+ }
1323
+ function Be() {
1324
+ return document.createElement("div");
1325
+ }
1326
+ function Ue(e) {
1327
+ return ["Element", "Fragment"].some(function(t) {
1328
+ return Lt(e, t);
1329
+ });
1330
+ }
1331
+ function Pi(e) {
1332
+ return Lt(e, "NodeList");
1333
+ }
1334
+ function Li(e) {
1335
+ return Lt(e, "MouseEvent");
1336
+ }
1337
+ function Ii(e) {
1338
+ return !!(e && e._tippy && e._tippy.reference === e);
1339
+ }
1340
+ function Ni(e) {
1341
+ return Ue(e) ? [e] : Pi(e) ? pt(e) : Array.isArray(e) ? e : pt(document.querySelectorAll(e));
1342
+ }
1343
+ function mt(e, t) {
1344
+ e.forEach(function(n) {
1345
+ n && (n.style.transitionDuration = t + "ms");
1346
+ });
1347
+ }
1348
+ function Xt(e, t) {
1349
+ e.forEach(function(n) {
1350
+ n && n.setAttribute("data-state", t);
1351
+ });
1352
+ }
1353
+ function _i(e) {
1354
+ var t, n = De(e), r = n[0];
1355
+ return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
1356
+ }
1357
+ function Mi(e, t) {
1358
+ var n = t.clientX, r = t.clientY;
1359
+ return e.every(function(o) {
1360
+ var s = o.popperRect, c = o.popperState, p = o.props, u = p.interactiveBorder, f = Ci(c.placement), l = c.modifiersData.offset;
1361
+ if (!l)
1362
+ return !0;
1363
+ var g = f === "bottom" ? l.top.y : 0, x = f === "top" ? l.bottom.y : 0, m = f === "right" ? l.left.x : 0, w = f === "left" ? l.right.x : 0, y = s.top - r + g > u, b = r - s.bottom - x > u, A = s.left - n + m > u, R = n - s.right - w > u;
1364
+ return y || b || A || R;
1365
+ });
1366
+ }
1367
+ function gt(e, t, n) {
1368
+ var r = t + "EventListener";
1369
+ ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1370
+ e[r](o, n);
1371
+ });
1372
+ }
1373
+ function Gt(e, t) {
1374
+ for (var n = t; n; ) {
1375
+ var r;
1376
+ if (e.contains(n))
1377
+ return !0;
1378
+ n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
1379
+ }
1380
+ return !1;
1381
+ }
1382
+ var te = {
1383
+ isTouch: !1
1384
+ }, Kt = 0;
1385
+ function ji() {
1386
+ te.isTouch || (te.isTouch = !0, window.performance && document.addEventListener("mousemove", Cn));
1387
+ }
1388
+ function Cn() {
1389
+ var e = performance.now();
1390
+ e - Kt < 20 && (te.isTouch = !1, document.removeEventListener("mousemove", Cn)), Kt = e;
1391
+ }
1392
+ function ki() {
1393
+ var e = document.activeElement;
1394
+ if (Ii(e)) {
1395
+ var t = e._tippy;
1396
+ e.blur && !t.state.isVisible && e.blur();
1397
+ }
1398
+ }
1399
+ function Vi() {
1400
+ document.addEventListener("touchstart", ji, ye), window.addEventListener("blur", ki);
1401
+ }
1402
+ var $i = typeof window < "u" && typeof document < "u", Bi = $i ? (
1403
+ // @ts-ignore
1404
+ !!window.msCrypto
1405
+ ) : !1;
1406
+ function Se(e) {
1407
+ var t = e === "destroy" ? "n already-" : " ";
1408
+ return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1409
+ }
1410
+ function Zt(e) {
1411
+ var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
1412
+ return e.replace(t, " ").replace(n, "").trim();
1413
+ }
1414
+ function Hi(e) {
1415
+ return Zt(`
1416
+ %ctippy.js
1417
+
1418
+ %c` + Zt(e) + `
1419
+
1420
+ %c👷‍ This is a development-only message. It will be removed in production.
1421
+ `);
1422
+ }
1423
+ function Pn(e) {
1424
+ return [
1425
+ Hi(e),
1426
+ // title
1427
+ "color: #00C584; font-size: 1.3em; font-weight: bold;",
1428
+ // message
1429
+ "line-height: 1.5",
1430
+ // footer
1431
+ "color: #a6a095;"
1432
+ ];
1433
+ }
1434
+ var We;
1435
+ process.env.NODE_ENV !== "production" && Fi();
1436
+ function Fi() {
1437
+ We = /* @__PURE__ */ new Set();
1438
+ }
1439
+ function se(e, t) {
1440
+ if (e && !We.has(t)) {
1441
+ var n;
1442
+ We.add(t), (n = console).warn.apply(n, Pn(t));
1443
+ }
1444
+ }
1445
+ function Ot(e, t) {
1446
+ if (e && !We.has(t)) {
1447
+ var n;
1448
+ We.add(t), (n = console).error.apply(n, Pn(t));
1449
+ }
1450
+ }
1451
+ function Ui(e) {
1452
+ var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
1453
+ Ot(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ot(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1454
+ }
1455
+ var Ln = {
1456
+ animateFill: !1,
1457
+ followCursor: !1,
1458
+ inlinePositioning: !1,
1459
+ sticky: !1
1460
+ }, Wi = {
1461
+ allowHTML: !1,
1462
+ animation: "fade",
1463
+ arrow: !0,
1464
+ content: "",
1465
+ inertia: !1,
1466
+ maxWidth: 350,
1467
+ role: "tooltip",
1468
+ theme: "",
1469
+ zIndex: 9999
1470
+ }, U = Object.assign({
1471
+ appendTo: Dn,
1472
+ aria: {
1473
+ content: "auto",
1474
+ expanded: "auto"
1475
+ },
1476
+ delay: 0,
1477
+ duration: [300, 250],
1478
+ getReferenceClientRect: null,
1479
+ hideOnClick: !0,
1480
+ ignoreAttributes: !1,
1481
+ interactive: !1,
1482
+ interactiveBorder: 2,
1483
+ interactiveDebounce: 0,
1484
+ moveTransition: "",
1485
+ offset: [0, 10],
1486
+ onAfterUpdate: function() {
1487
+ },
1488
+ onBeforeUpdate: function() {
1489
+ },
1490
+ onCreate: function() {
1491
+ },
1492
+ onDestroy: function() {
1493
+ },
1494
+ onHidden: function() {
1495
+ },
1496
+ onHide: function() {
1497
+ },
1498
+ onMount: function() {
1499
+ },
1500
+ onShow: function() {
1501
+ },
1502
+ onShown: function() {
1503
+ },
1504
+ onTrigger: function() {
1505
+ },
1506
+ onUntrigger: function() {
1507
+ },
1508
+ onClickOutside: function() {
1509
+ },
1510
+ placement: "top",
1511
+ plugins: [],
1512
+ popperOptions: {},
1513
+ render: null,
1514
+ showOnCreate: !1,
1515
+ touch: !0,
1516
+ trigger: "mouseenter focus",
1517
+ triggerTarget: null
1518
+ }, Ln, Wi), qi = Object.keys(U), zi = function(t) {
1519
+ process.env.NODE_ENV !== "production" && Nn(t, []);
1520
+ var n = Object.keys(t);
1521
+ n.forEach(function(r) {
1522
+ U[r] = t[r];
1523
+ });
1524
+ };
1525
+ function In(e) {
1526
+ var t = e.plugins || [], n = t.reduce(function(r, o) {
1527
+ var s = o.name, c = o.defaultValue;
1528
+ if (s) {
1529
+ var p;
1530
+ r[s] = e[s] !== void 0 ? e[s] : (p = U[s]) != null ? p : c;
1531
+ }
1532
+ return r;
1533
+ }, {});
1534
+ return Object.assign({}, e, n);
1535
+ }
1536
+ function Yi(e, t) {
1537
+ var n = t ? Object.keys(In(Object.assign({}, U, {
1538
+ plugins: t
1539
+ }))) : qi, r = n.reduce(function(o, s) {
1540
+ var c = (e.getAttribute("data-tippy-" + s) || "").trim();
1541
+ if (!c)
1542
+ return o;
1543
+ if (s === "content")
1544
+ o[s] = c;
1545
+ else
1546
+ try {
1547
+ o[s] = JSON.parse(c);
1548
+ } catch {
1549
+ o[s] = c;
1550
+ }
1551
+ return o;
1552
+ }, {});
1553
+ return r;
1554
+ }
1555
+ function Jt(e, t) {
1556
+ var n = Object.assign({}, t, {
1557
+ content: Rn(t.content, [e])
1558
+ }, t.ignoreAttributes ? {} : Yi(e, t.plugins));
1559
+ return n.aria = Object.assign({}, U.aria, n.aria), n.aria = {
1560
+ expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
1561
+ content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
1562
+ }, n;
1563
+ }
1564
+ function Nn(e, t) {
1565
+ e === void 0 && (e = {}), t === void 0 && (t = []);
1566
+ var n = Object.keys(e);
1567
+ n.forEach(function(r) {
1568
+ var o = Si(U, Object.keys(Ln)), s = !Ai(o, r);
1569
+ s && (s = t.filter(function(c) {
1570
+ return c.name === r;
1571
+ }).length === 0), se(s, ["`" + 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.", `
1572
+
1573
+ `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1574
+ `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1575
+ });
1576
+ }
1577
+ var Xi = function() {
1578
+ return "innerHTML";
1579
+ };
1580
+ function xt(e, t) {
1581
+ e[Xi()] = t;
1582
+ }
1583
+ function Qt(e) {
1584
+ var t = Be();
1585
+ return e === !0 ? t.className = An : (t.className = Sn, Ue(e) ? t.appendChild(e) : xt(t, e)), t;
1586
+ }
1587
+ function en(e, t) {
1588
+ Ue(t.content) ? (xt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? xt(e, t.content) : e.textContent = t.content);
1589
+ }
1590
+ function Tt(e) {
1591
+ var t = e.firstElementChild, n = pt(t.children);
1592
+ return {
1593
+ box: t,
1594
+ content: n.find(function(r) {
1595
+ return r.classList.contains(Tn);
1596
+ }),
1597
+ arrow: n.find(function(r) {
1598
+ return r.classList.contains(An) || r.classList.contains(Sn);
1599
+ }),
1600
+ backdrop: n.find(function(r) {
1601
+ return r.classList.contains(Ti);
1602
+ })
1603
+ };
1604
+ }
1605
+ function _n(e) {
1606
+ var t = Be(), n = Be();
1607
+ n.className = xi, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1608
+ var r = Be();
1609
+ r.className = Tn, r.setAttribute("data-state", "hidden"), en(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1610
+ function o(s, c) {
1611
+ var p = Tt(t), u = p.box, f = p.content, l = p.arrow;
1612
+ c.theme ? u.setAttribute("data-theme", c.theme) : u.removeAttribute("data-theme"), typeof c.animation == "string" ? u.setAttribute("data-animation", c.animation) : u.removeAttribute("data-animation"), c.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? u.setAttribute("role", c.role) : u.removeAttribute("role"), (s.content !== c.content || s.allowHTML !== c.allowHTML) && en(f, e.props), c.arrow ? l ? s.arrow !== c.arrow && (u.removeChild(l), u.appendChild(Qt(c.arrow))) : u.appendChild(Qt(c.arrow)) : l && u.removeChild(l);
1613
+ }
1614
+ return {
1615
+ popper: t,
1616
+ onUpdate: o
1617
+ };
1618
+ }
1619
+ _n.$$tippy = !0;
1620
+ var Gi = 1, at = [], yt = [];
1621
+ function Ki(e, t) {
1622
+ var n = Jt(e, Object.assign({}, U, In(Yt(t)))), r, o, s, c = !1, p = !1, u = !1, f = !1, l, g, x, m = [], w = qt(Ge, n.interactiveDebounce), y, b = Gi++, A = null, R = Ri(n.plugins), P = {
1623
+ // Is the instance currently enabled?
1624
+ isEnabled: !0,
1625
+ // Is the tippy currently showing and not transitioning out?
1626
+ isVisible: !1,
1627
+ // Has the instance been destroyed?
1628
+ isDestroyed: !1,
1629
+ // Is the tippy currently mounted to the DOM?
1630
+ isMounted: !1,
1631
+ // Has the tippy finished transitioning in?
1632
+ isShown: !1
1633
+ }, i = {
1634
+ // properties
1635
+ id: b,
1636
+ reference: e,
1637
+ popper: Be(),
1638
+ popperInstance: A,
1639
+ props: n,
1640
+ state: P,
1641
+ plugins: R,
1642
+ // methods
1643
+ clearDelayTimeouts: et,
1644
+ setProps: tt,
1645
+ setContent: nt,
1646
+ show: Mn,
1647
+ hide: jn,
1648
+ hideWithInteractivity: kn,
1649
+ enable: je,
1650
+ disable: Qe,
1651
+ unmount: Vn,
1652
+ destroy: $n
1653
+ };
1654
+ if (!n.render)
1655
+ return process.env.NODE_ENV !== "production" && Ot(!0, "render() function has not been supplied."), i;
1656
+ var E = n.render(i), d = E.popper, D = E.onUpdate;
1657
+ d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
1658
+ var N = R.map(function(a) {
1659
+ return a.fn(i);
1660
+ }), _ = e.hasAttribute("aria-expanded");
1661
+ return xe(), Q(), k(), M("onCreate", [i]), n.showOnCreate && Me(), d.addEventListener("mouseenter", function() {
1662
+ i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1663
+ }), d.addEventListener("mouseleave", function() {
1664
+ i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && H().addEventListener("mousemove", w);
1665
+ }), i;
1666
+ function L() {
1667
+ var a = i.props.touch;
1668
+ return Array.isArray(a) ? a : [a, 0];
1669
+ }
1670
+ function T() {
1671
+ return L()[0] === "hold";
1672
+ }
1673
+ function C() {
1674
+ var a;
1675
+ return !!((a = i.props.render) != null && a.$$tippy);
1676
+ }
1677
+ function I() {
1678
+ return y || e;
1679
+ }
1680
+ function H() {
1681
+ var a = I().parentNode;
1682
+ return a ? _i(a) : document;
1683
+ }
1684
+ function F() {
1685
+ return Tt(d);
1686
+ }
1687
+ function j(a) {
1688
+ return i.state.isMounted && !i.state.isVisible || te.isTouch || l && l.type === "focus" ? 0 : ht(i.props.delay, a ? 0 : 1, U.delay);
1689
+ }
1690
+ function k(a) {
1691
+ a === void 0 && (a = !1), d.style.pointerEvents = i.props.interactive && !a ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
1692
+ }
1693
+ function M(a, v, h) {
1694
+ if (h === void 0 && (h = !0), N.forEach(function(O) {
1695
+ O[a] && O[a].apply(O, v);
1696
+ }), h) {
1697
+ var S;
1698
+ (S = i.props)[a].apply(S, v);
1699
+ }
1700
+ }
1701
+ function J() {
1702
+ var a = i.props.aria;
1703
+ if (a.content) {
1704
+ var v = "aria-" + a.content, h = d.id, S = De(i.props.triggerTarget || e);
1705
+ S.forEach(function(O) {
1706
+ var V = O.getAttribute(v);
1707
+ if (i.state.isVisible)
1708
+ O.setAttribute(v, V ? V + " " + h : h);
1709
+ else {
1710
+ var z = V && V.replace(h, "").trim();
1711
+ z ? O.setAttribute(v, z) : O.removeAttribute(v);
1712
+ }
1713
+ });
1714
+ }
1715
+ }
1716
+ function Q() {
1717
+ if (!(_ || !i.props.aria.expanded)) {
1718
+ var a = De(i.props.triggerTarget || e);
1719
+ a.forEach(function(v) {
1720
+ i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === I() ? "true" : "false") : v.removeAttribute("aria-expanded");
1721
+ });
1722
+ }
1723
+ }
1724
+ function fe() {
1725
+ H().removeEventListener("mousemove", w), at = at.filter(function(a) {
1726
+ return a !== w;
1727
+ });
1728
+ }
1729
+ function ee(a) {
1730
+ if (!(te.isTouch && (u || a.type === "mousedown"))) {
1731
+ var v = a.composedPath && a.composedPath()[0] || a.target;
1732
+ if (!(i.props.interactive && Gt(d, v))) {
1733
+ if (De(i.props.triggerTarget || e).some(function(h) {
1734
+ return Gt(h, v);
1735
+ })) {
1736
+ if (te.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1737
+ return;
1738
+ } else
1739
+ M("onClickOutside", [i, a]);
1740
+ i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), p = !0, setTimeout(function() {
1741
+ p = !1;
1742
+ }), i.state.isMounted || ie());
1743
+ }
1744
+ }
1745
+ }
1746
+ function de() {
1747
+ u = !0;
1748
+ }
1749
+ function re() {
1750
+ u = !1;
1751
+ }
1752
+ function G() {
1753
+ var a = H();
1754
+ a.addEventListener("mousedown", ee, !0), a.addEventListener("touchend", ee, ye), a.addEventListener("touchstart", re, ye), a.addEventListener("touchmove", de, ye);
1755
+ }
1756
+ function ie() {
1757
+ var a = H();
1758
+ a.removeEventListener("mousedown", ee, !0), a.removeEventListener("touchend", ee, ye), a.removeEventListener("touchstart", re, ye), a.removeEventListener("touchmove", de, ye);
1759
+ }
1760
+ function Ee(a, v) {
1761
+ Oe(a, function() {
1762
+ !i.state.isVisible && d.parentNode && d.parentNode.contains(d) && v();
1763
+ });
1764
+ }
1765
+ function oe(a, v) {
1766
+ Oe(a, v);
1767
+ }
1768
+ function Oe(a, v) {
1769
+ var h = F().box;
1770
+ function S(O) {
1771
+ O.target === h && (gt(h, "remove", S), v());
1772
+ }
1773
+ if (a === 0)
1774
+ return v();
1775
+ gt(h, "remove", g), gt(h, "add", S), g = S;
1776
+ }
1777
+ function ue(a, v, h) {
1778
+ h === void 0 && (h = !1);
1779
+ var S = De(i.props.triggerTarget || e);
1780
+ S.forEach(function(O) {
1781
+ O.addEventListener(a, v, h), m.push({
1782
+ node: O,
1783
+ eventType: a,
1784
+ handler: v,
1785
+ options: h
1786
+ });
1787
+ });
1788
+ }
1789
+ function xe() {
1790
+ T() && (ue("touchstart", Ie, {
1791
+ passive: !0
1792
+ }), ue("touchend", Ke, {
1793
+ passive: !0
1794
+ })), Di(i.props.trigger).forEach(function(a) {
1795
+ if (a !== "manual")
1796
+ switch (ue(a, Ie), a) {
1797
+ case "mouseenter":
1798
+ ue("mouseleave", Ke);
1799
+ break;
1800
+ case "focus":
1801
+ ue(Bi ? "focusout" : "blur", Ne);
1802
+ break;
1803
+ case "focusin":
1804
+ ue("focusout", Ne);
1805
+ break;
1806
+ }
1807
+ });
1808
+ }
1809
+ function Xe() {
1810
+ m.forEach(function(a) {
1811
+ var v = a.node, h = a.eventType, S = a.handler, O = a.options;
1812
+ v.removeEventListener(h, S, O);
1813
+ }), m = [];
1814
+ }
1815
+ function Ie(a) {
1816
+ var v, h = !1;
1817
+ if (!(!i.state.isEnabled || _e(a) || p)) {
1818
+ var S = ((v = l) == null ? void 0 : v.type) === "focus";
1819
+ l = a, y = a.currentTarget, Q(), !i.state.isVisible && Li(a) && at.forEach(function(O) {
1820
+ return O(a);
1821
+ }), a.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Me(a), a.type === "click" && (c = !h), h && !S && ve(a);
1822
+ }
1823
+ }
1824
+ function Ge(a) {
1825
+ var v = a.target, h = I().contains(v) || d.contains(v);
1826
+ if (!(a.type === "mousemove" && h)) {
1827
+ var S = ce().concat(d).map(function(O) {
1828
+ var V, z = O._tippy, Te = (V = z.popperInstance) == null ? void 0 : V.state;
1829
+ return Te ? {
1830
+ popperRect: O.getBoundingClientRect(),
1831
+ popperState: Te,
1832
+ props: n
1833
+ } : null;
1834
+ }).filter(Boolean);
1835
+ Mi(S, a) && (fe(), ve(a));
1836
+ }
1837
+ }
1838
+ function Ke(a) {
1839
+ var v = _e(a) || i.props.trigger.indexOf("click") >= 0 && c;
1840
+ if (!v) {
1841
+ if (i.props.interactive) {
1842
+ i.hideWithInteractivity(a);
1843
+ return;
1844
+ }
1845
+ ve(a);
1846
+ }
1847
+ }
1848
+ function Ne(a) {
1849
+ i.props.trigger.indexOf("focusin") < 0 && a.target !== I() || i.props.interactive && a.relatedTarget && d.contains(a.relatedTarget) || ve(a);
1850
+ }
1851
+ function _e(a) {
1852
+ return te.isTouch ? T() !== a.type.indexOf("touch") >= 0 : !1;
1853
+ }
1854
+ function Ze() {
1855
+ Je();
1856
+ var a = i.props, v = a.popperOptions, h = a.placement, S = a.offset, O = a.getReferenceClientRect, V = a.moveTransition, z = C() ? Tt(d).arrow : null, Te = O ? {
1857
+ getBoundingClientRect: O,
1858
+ contextElement: O.contextElement || I()
1859
+ } : e, It = {
1860
+ name: "$$tippy",
1861
+ enabled: !0,
1862
+ phase: "beforeWrite",
1863
+ requires: ["computeStyles"],
1864
+ fn: function(rt) {
1865
+ var Ae = rt.state;
1866
+ if (C()) {
1867
+ var Bn = F(), vt = Bn.box;
1868
+ ["placement", "reference-hidden", "escaped"].forEach(function(it) {
1869
+ it === "placement" ? vt.setAttribute("data-placement", Ae.placement) : Ae.attributes.popper["data-popper-" + it] ? vt.setAttribute("data-" + it, "") : vt.removeAttribute("data-" + it);
1870
+ }), Ae.attributes.popper = {};
1871
+ }
1872
+ }
1873
+ }, he = [{
1874
+ name: "offset",
1875
+ options: {
1876
+ offset: S
1877
+ }
1878
+ }, {
1879
+ name: "preventOverflow",
1880
+ options: {
1881
+ padding: {
1882
+ top: 2,
1883
+ bottom: 2,
1884
+ left: 5,
1885
+ right: 5
1886
+ }
1887
+ }
1888
+ }, {
1889
+ name: "flip",
1890
+ options: {
1891
+ padding: 5
1892
+ }
1893
+ }, {
1894
+ name: "computeStyles",
1895
+ options: {
1896
+ adaptive: !V
1897
+ }
1898
+ }, It];
1899
+ C() && z && he.push({
1900
+ name: "arrow",
1901
+ options: {
1902
+ element: z,
1903
+ padding: 3
1904
+ }
1905
+ }), he.push.apply(he, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = Oi(Te, d, Object.assign({}, v, {
1906
+ placement: h,
1907
+ onFirstUpdate: x,
1908
+ modifiers: he
1909
+ }));
1910
+ }
1911
+ function Je() {
1912
+ i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1913
+ }
1914
+ function ae() {
1915
+ var a = i.props.appendTo, v, h = I();
1916
+ i.props.interactive && a === Dn || a === "parent" ? v = h.parentNode : v = Rn(a, [h]), v.contains(d) || v.appendChild(d), i.state.isMounted = !0, Ze(), process.env.NODE_ENV !== "production" && se(i.props.interactive && a === U.appendTo && h.nextElementSibling !== d, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1917
+
1918
+ `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1919
+
1920
+ `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1921
+
1922
+ `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1923
+ }
1924
+ function ce() {
1925
+ return pt(d.querySelectorAll("[data-tippy-root]"));
1926
+ }
1927
+ function Me(a) {
1928
+ i.clearDelayTimeouts(), a && M("onTrigger", [i, a]), G();
1929
+ var v = j(!0), h = L(), S = h[0], O = h[1];
1930
+ te.isTouch && S === "hold" && O && (v = O), v ? r = setTimeout(function() {
1931
+ i.show();
1932
+ }, v) : i.show();
1933
+ }
1934
+ function ve(a) {
1935
+ if (i.clearDelayTimeouts(), M("onUntrigger", [i, a]), !i.state.isVisible) {
1936
+ ie();
1937
+ return;
1938
+ }
1939
+ if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(a.type) >= 0 && c)) {
1940
+ var v = j(!1);
1941
+ v ? o = setTimeout(function() {
1942
+ i.state.isVisible && i.hide();
1943
+ }, v) : s = requestAnimationFrame(function() {
1944
+ i.hide();
1945
+ });
1946
+ }
1947
+ }
1948
+ function je() {
1949
+ i.state.isEnabled = !0;
1950
+ }
1951
+ function Qe() {
1952
+ i.hide(), i.state.isEnabled = !1;
1953
+ }
1954
+ function et() {
1955
+ clearTimeout(r), clearTimeout(o), cancelAnimationFrame(s);
1956
+ }
1957
+ function tt(a) {
1958
+ if (process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("setProps")), !i.state.isDestroyed) {
1959
+ M("onBeforeUpdate", [i, a]), Xe();
1960
+ var v = i.props, h = Jt(e, Object.assign({}, v, Yt(a), {
1961
+ ignoreAttributes: !0
1962
+ }));
1963
+ i.props = h, xe(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = qt(Ge, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? De(v.triggerTarget).forEach(function(S) {
1964
+ S.removeAttribute("aria-expanded");
1965
+ }) : h.triggerTarget && e.removeAttribute("aria-expanded"), Q(), k(), D && D(v, h), i.popperInstance && (Ze(), ce().forEach(function(S) {
1966
+ requestAnimationFrame(S._tippy.popperInstance.forceUpdate);
1967
+ })), M("onAfterUpdate", [i, a]);
1968
+ }
1969
+ }
1970
+ function nt(a) {
1971
+ i.setProps({
1972
+ content: a
1973
+ });
1974
+ }
1975
+ function Mn() {
1976
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("show"));
1977
+ var a = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = te.isTouch && !i.props.touch, O = ht(i.props.duration, 0, U.duration);
1978
+ if (!(a || v || h || S) && !I().hasAttribute("disabled") && (M("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1979
+ if (i.state.isVisible = !0, C() && (d.style.visibility = "visible"), k(), G(), i.state.isMounted || (d.style.transition = "none"), C()) {
1980
+ var V = F(), z = V.box, Te = V.content;
1981
+ mt([z, Te], 0);
1982
+ }
1983
+ x = function() {
1984
+ var he;
1985
+ if (!(!i.state.isVisible || f)) {
1986
+ if (f = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, C() && i.props.animation) {
1987
+ var dt = F(), rt = dt.box, Ae = dt.content;
1988
+ mt([rt, Ae], O), Xt([rt, Ae], "visible");
1989
+ }
1990
+ J(), Q(), zt(yt, i), (he = i.popperInstance) == null || he.forceUpdate(), M("onMount", [i]), i.props.animation && C() && oe(O, function() {
1991
+ i.state.isShown = !0, M("onShown", [i]);
1992
+ });
1993
+ }
1994
+ }, ae();
1995
+ }
1996
+ }
1997
+ function jn() {
1998
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hide"));
1999
+ var a = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = ht(i.props.duration, 1, U.duration);
2000
+ if (!(a || v || h) && (M("onHide", [i], !1), i.props.onHide(i) !== !1)) {
2001
+ if (i.state.isVisible = !1, i.state.isShown = !1, f = !1, c = !1, C() && (d.style.visibility = "hidden"), fe(), ie(), k(!0), C()) {
2002
+ var O = F(), V = O.box, z = O.content;
2003
+ i.props.animation && (mt([V, z], S), Xt([V, z], "hidden"));
2004
+ }
2005
+ J(), Q(), i.props.animation ? C() && Ee(S, i.unmount) : i.unmount();
2006
+ }
2007
+ }
2008
+ function kn(a) {
2009
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hideWithInteractivity")), H().addEventListener("mousemove", w), zt(at, w), w(a);
2010
+ }
2011
+ function Vn() {
2012
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Je(), ce().forEach(function(a) {
2013
+ a._tippy.unmount();
2014
+ }), d.parentNode && d.parentNode.removeChild(d), yt = yt.filter(function(a) {
2015
+ return a !== i;
2016
+ }), i.state.isMounted = !1, M("onHidden", [i]));
2017
+ }
2018
+ function $n() {
2019
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), Xe(), delete e._tippy, i.state.isDestroyed = !0, M("onDestroy", [i]));
2020
+ }
2021
+ }
2022
+ function Ye(e, t) {
2023
+ t === void 0 && (t = {});
2024
+ var n = U.plugins.concat(t.plugins || []);
2025
+ process.env.NODE_ENV !== "production" && (Ui(e), Nn(t, n)), Vi();
2026
+ var r = Object.assign({}, t, {
2027
+ plugins: n
2028
+ }), o = Ni(e);
2029
+ if (process.env.NODE_ENV !== "production") {
2030
+ var s = Ue(r.content), c = o.length > 1;
2031
+ se(s && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
2032
+
2033
+ `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
2034
+
2035
+ `, `1) content: element.innerHTML
2036
+ `, "2) content: () => element.cloneNode(true)"].join(" "));
2037
+ }
2038
+ var p = o.reduce(function(u, f) {
2039
+ var l = f && Ki(f, r);
2040
+ return l && u.push(l), u;
2041
+ }, []);
2042
+ return Ue(e) ? p[0] : p;
2043
+ }
2044
+ Ye.defaultProps = U;
2045
+ Ye.setDefaultProps = zi;
2046
+ Ye.currentInput = te;
2047
+ Object.assign({}, mn, {
2048
+ effect: function(t) {
2049
+ var n = t.state, r = {
2050
+ popper: {
2051
+ position: n.options.strategy,
2052
+ left: "0",
2053
+ top: "0",
2054
+ margin: "0"
2055
+ },
2056
+ arrow: {
2057
+ position: "absolute"
2058
+ },
2059
+ reference: {}
2060
+ };
2061
+ Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
2062
+ }
2063
+ });
2064
+ var Zi = {
2065
+ name: "sticky",
2066
+ defaultValue: !1,
2067
+ fn: function(t) {
2068
+ var n = t.reference, r = t.popper;
2069
+ function o() {
2070
+ return t.popperInstance ? t.popperInstance.state.elements.reference : n;
2071
+ }
2072
+ function s(f) {
2073
+ return t.props.sticky === !0 || t.props.sticky === f;
2074
+ }
2075
+ var c = null, p = null;
2076
+ function u() {
2077
+ var f = s("reference") ? o().getBoundingClientRect() : null, l = s("popper") ? r.getBoundingClientRect() : null;
2078
+ (f && tn(c, f) || l && tn(p, l)) && t.popperInstance && t.popperInstance.update(), c = f, p = l, t.state.isMounted && requestAnimationFrame(u);
2079
+ }
2080
+ return {
2081
+ onMount: function() {
2082
+ t.props.sticky && u();
2083
+ }
2084
+ };
2085
+ }
2086
+ };
2087
+ function tn(e, t) {
2088
+ return e && t ? e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom || e.left !== t.left : !0;
2089
+ }
2090
+ Ye.setDefaultProps({
2091
+ render: _n
2092
+ });
2093
+ const Ji = (e) => ({
2094
+ name: "arrowDetected",
2095
+ enabled: !0,
2096
+ phase: "main",
2097
+ fn: e,
2098
+ requiresIfExists: ["offset"]
2099
+ }), Qi = [
2100
+ "bottom",
2101
+ "bottom-start",
2102
+ "bottom-end",
2103
+ "right",
2104
+ "right-start",
2105
+ "right-end",
2106
+ "left",
2107
+ "left-start",
2108
+ "left-end",
2109
+ "top",
2110
+ "top-start",
2111
+ "top-end"
2112
+ ], eo = [!0, !1, "reference", "popper"], to = (e, t) => {
2113
+ const { contentElement: n } = { ...t };
2114
+ return delete t.contentElement, Ye(e, {
2115
+ ...t,
2116
+ plugins: [Zi],
2117
+ render: () => oo(n)
2118
+ });
2119
+ }, no = ({
2120
+ boundary: e = "clippingParents",
2121
+ fallbackPlacements: t = [],
2122
+ onChangePlacement: n = () => {
2123
+ },
2124
+ hasHideModifierEnabled: r = !1,
2125
+ // If set to false the dialog will display over top of the anchor when there is insufficient space.
2126
+ // if set to true it will never move from its position relative to the anchor and will clip instead.
2127
+ tether: o = !0
2128
+ } = {}) => ({
2129
+ modifiers: [
2130
+ {
2131
+ name: "flip",
2132
+ options: {
2133
+ fallbackPlacements: t,
2134
+ boundary: e
2135
+ }
2136
+ },
2137
+ {
2138
+ name: "hide",
2139
+ enabled: r
2140
+ },
2141
+ {
2142
+ name: "preventOverflow",
2143
+ options: {
2144
+ altAxis: !o,
2145
+ tether: o
2146
+ }
2147
+ },
2148
+ Ji(({ state: s }) => {
2149
+ n(s.placement);
2150
+ })
2151
+ ]
2152
+ }), ro = (e) => {
2153
+ const t = document.createElement("span");
2154
+ return t.innerText = e.innerText || "", e.innerText = "", e.appendChild(t), t;
2155
+ }, io = (e) => {
2156
+ const t = e == null ? void 0 : e.children[0];
2157
+ return t || ro(e);
2158
+ }, oo = (e) => {
2159
+ const t = document.createElement("div");
2160
+ return t.className = "tippy-box d-ps-absolute", t.appendChild(e), {
2161
+ popper: t
2162
+ };
2163
+ }, ao = [
2164
+ ...Qi
2165
+ ], so = 300, uo = {
2166
+ hover: "d-tooltip--hover",
2167
+ show: "d-tooltip--show",
2168
+ inverted: "d-tooltip--inverted",
2169
+ hide: "d-tooltip--hide"
2170
+ }, co = [
2171
+ ...eo
2172
+ ], xo = [!0, !1, "toggle"];
2173
+ const po = {
2174
+ name: "DtTooltip",
2175
+ components: {
2176
+ DtLazyShow: vr
2177
+ },
2178
+ props: {
2179
+ /**
2180
+ * The id of the tooltip
2181
+ */
2182
+ id: {
2183
+ type: String,
2184
+ default() {
2185
+ return rn();
2186
+ }
2187
+ },
2188
+ /**
2189
+ * If the popover does not fit in the direction described by "placement",
2190
+ * it will attempt to change its direction to the "fallbackPlacements"
2191
+ * if defined, otherwise it will automatically position to a new location
2192
+ * as it sees best fit. See
2193
+ * <a
2194
+ * class="d-link"
2195
+ * href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
2196
+ * target="_blank"
2197
+ * >
2198
+ * Popper.js docs
2199
+ * </a>
2200
+ * */
2201
+ fallbackPlacements: {
2202
+ type: Array,
2203
+ default: () => ["auto"]
2204
+ },
2205
+ /**
2206
+ * If true, applies inverted styles to the tooltip
2207
+ * @values true, false
2208
+ */
2209
+ inverted: {
2210
+ type: Boolean,
2211
+ default: !1
2212
+ },
2213
+ /**
2214
+ * Displaces the tooltip from its reference element
2215
+ * by the specified number of pixels. See
2216
+ * <a
2217
+ * class="d-link"
2218
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
2219
+ * target="_blank"
2220
+ * >
2221
+ * Tippy.js docs
2222
+ * </a>
2223
+ */
2224
+ offset: {
2225
+ type: Array,
2226
+ default: () => [0, -4]
2227
+ },
2228
+ /**
2229
+ * The direction the popover displays relative to the anchor. See
2230
+ * <a
2231
+ * class="d-link"
2232
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
2233
+ * target="_blank"
2234
+ * >
2235
+ * Tippy.js docs
2236
+ * </a>
2237
+ * @values top, top-start, top-end,
2238
+ * right, right-start, right-end,
2239
+ * left, left-start, left-end,
2240
+ * bottom, bottom-start, bottom-end,
2241
+ * auto, auto-start, auto-end
2242
+ */
2243
+ placement: {
2244
+ type: String,
2245
+ default: "top",
2246
+ validator(e) {
2247
+ return ao.includes(e);
2248
+ }
2249
+ },
2250
+ /**
2251
+ * If the tooltip sticks to the anchor. This is usually not needed, but can be needed
2252
+ * if the reference element's position is animating, or to automatically update the popover
2253
+ * position in those cases the DOM layout changes the reference element's position.
2254
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
2255
+ * checks the "popper" rect for changes. See
2256
+ * <a
2257
+ * class="d-link"
2258
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
2259
+ * target="_blank"
2260
+ * >
2261
+ * Tippy.js docs
2262
+ * </a>
2263
+ * @values true, false, reference, popper
2264
+ */
2265
+ sticky: {
2266
+ type: [Boolean, String],
2267
+ default: !1,
2268
+ validator: (e) => co.includes(e)
2269
+ },
2270
+ /**
2271
+ * Additional css classes for the tooltip content element.
2272
+ * Can accept all of String, Object, and Array, i.e. has the
2273
+ * same api as Vue's built-in handling of the class attribute.
2274
+ */
2275
+ contentClass: {
2276
+ type: [String, Object, Array],
2277
+ default: ""
2278
+ },
2279
+ /**
2280
+ * A provided message for the tooltip content
2281
+ */
2282
+ message: {
2283
+ type: String,
2284
+ default: ""
2285
+ },
2286
+ /**
2287
+ * Controls whether the tooltip is shown. Leaving this null will have the tooltip trigger on mouseover by default.
2288
+ * If you set this value, the default mouseover behavior will be disabled and you can control it as you need.
2289
+ * Supports .sync modifier
2290
+ * @values null, true, false
2291
+ */
2292
+ show: {
2293
+ type: Boolean,
2294
+ default: null
2295
+ },
2296
+ /**
2297
+ * Named transition when the content display is toggled.
2298
+ * @see DtLazyShow
2299
+ */
2300
+ transition: {
2301
+ type: String,
2302
+ default: "fade"
2303
+ },
2304
+ /**
2305
+ * Whether the tooltip will have a delay when being focused or moused over.
2306
+ * @values true, false
2307
+ */
2308
+ delay: {
2309
+ type: Boolean,
2310
+ default: !0
2311
+ },
2312
+ /**
2313
+ * External anchor id to use in those cases the anchor can't be provided via the slot.
2314
+ * For instance, using the combobox's input as the anchor for the popover.
2315
+ */
2316
+ externalAnchor: {
2317
+ type: String,
2318
+ default: null
2319
+ }
2320
+ },
2321
+ emits: [
2322
+ /**
2323
+ * Emitted when tooltip is shown or hidden
2324
+ *
2325
+ * @event shown
2326
+ * @type {Boolean}
2327
+ */
2328
+ "shown",
2329
+ /**
2330
+ * Sync show value
2331
+ *
2332
+ * @event update:show
2333
+ */
2334
+ "update:show"
2335
+ ],
2336
+ data() {
2337
+ return {
2338
+ TOOLTIP_KIND_MODIFIERS: uo,
2339
+ tip: null,
2340
+ inTimer: null,
2341
+ // Internal state for whether the tooltip is shown. Changing the prop
2342
+ // will update this.
2343
+ isShown: !1,
2344
+ // this is where the placement currently is, this can be different than
2345
+ // the placement prop when there is not enough available room for the tip
2346
+ // to display and it uses a fallback placement.
2347
+ currentPlacement: this.placement
2348
+ };
2349
+ },
2350
+ computed: {
2351
+ tooltipListeners() {
2352
+ return {
2353
+ ...this.$listeners,
2354
+ "after-leave": () => {
2355
+ this.onLeaveTransitionComplete();
2356
+ },
2357
+ "after-enter": () => {
2358
+ this.onEnterTransitionComplete();
2359
+ }
2360
+ };
2361
+ },
2362
+ tippyProps() {
2363
+ return {
2364
+ offset: this.offset,
2365
+ interactive: !1,
2366
+ trigger: "manual",
2367
+ placement: this.placement,
2368
+ sticky: this.sticky,
2369
+ popperOptions: no({
2370
+ fallbackPlacements: this.fallbackPlacements,
2371
+ hasHideModifierEnabled: !0,
2372
+ onChangePlacement: this.onChangePlacement
2373
+ })
2374
+ };
2375
+ },
2376
+ anchor() {
2377
+ return this.externalAnchor ? document.querySelector(this.externalAnchor) : io(this.$refs.anchor);
2378
+ }
2379
+ },
2380
+ watch: {
2381
+ tippyProps: {
2382
+ handler: "setProps",
2383
+ deep: !0
2384
+ },
2385
+ show: {
2386
+ handler: function(e) {
2387
+ e !== null && (this.isShown = e);
2388
+ },
2389
+ immediate: !0
2390
+ },
2391
+ isShown(e) {
2392
+ e ? (this.setProps(), this.tip.show()) : this.tip.hide();
2393
+ },
2394
+ sticky(e) {
2395
+ this.tip.setProps({
2396
+ sticky: e
2397
+ });
2398
+ }
2399
+ },
2400
+ mounted() {
2401
+ this.tip = to(this.anchor, this.initOptions()), this.isShown && this.tip.show();
2402
+ },
2403
+ beforeDestroy() {
2404
+ var e;
2405
+ this.tip && ((e = this.tip) == null || e.destroy());
2406
+ },
2407
+ methods: {
2408
+ calculateAnchorZindex() {
2409
+ return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 651 when
2410
+ // anchor of popover is within a drawer.
2411
+ this.$el.closest(".d-zi-drawer") ? 651 : 400;
2412
+ },
2413
+ hasVisibleFocus() {
2414
+ return this.anchor.matches(":focus-visible");
2415
+ },
2416
+ onEnterAnchor(e) {
2417
+ if (this.delay)
2418
+ this.inTimer = setTimeout((function(t) {
2419
+ return this.triggerShow(t);
2420
+ }).bind(this, e), so);
2421
+ else
2422
+ return this.triggerShow(e);
2423
+ },
2424
+ triggerShow(e) {
2425
+ e.type === "focusin" ? this.show === null && this.hasVisibleFocus() && (this.isShown = !0) : this.show === null && (this.isShown = !0);
2426
+ },
2427
+ onLeaveAnchor() {
2428
+ return clearTimeout(this.inTimer), this.triggerHide();
2429
+ },
2430
+ triggerHide() {
2431
+ this.show === null && (this.isShown = !1);
2432
+ },
2433
+ onChangePlacement(e) {
2434
+ this.currentPlacement = e;
2435
+ },
2436
+ onLeaveTransitionComplete() {
2437
+ var e;
2438
+ (e = this.tip) == null || e.unmount(), this.$emit("shown", !1), this.show !== null && this.$emit("update:show", !1);
2439
+ },
2440
+ onEnterTransitionComplete() {
2441
+ this.$emit("shown", !0), this.show !== null && this.$emit("update:show", !0);
2442
+ },
2443
+ setProps() {
2444
+ this.tip && this.tip.setProps && this.tip.setProps({
2445
+ ...this.tippyProps,
2446
+ zIndex: this.calculateAnchorZindex()
2447
+ });
2448
+ },
2449
+ onMount() {
2450
+ this.setProps();
2451
+ },
2452
+ initOptions() {
2453
+ return {
2454
+ contentElement: this.$refs.content.$el,
2455
+ allowHTML: !0,
2456
+ zIndex: this.calculateAnchorZindex(),
2457
+ onMount: this.onMount,
2458
+ ...this.tippyProps
2459
+ };
2460
+ }
2461
+ }
2462
+ };
2463
+ var lo = function() {
2464
+ var t = this, n = t._self._c;
2465
+ return n("div", { attrs: { "data-qa": "dt-tooltip-container" } }, [t.externalAnchor ? t._e() : n("span", { ref: "anchor", attrs: { "data-qa": "dt-tooltip-anchor" }, on: { focusin: t.onEnterAnchor, focusout: t.onLeaveAnchor, mouseenter: t.onEnterAnchor, mouseleave: t.onLeaveAnchor, keydown: function(r) {
2466
+ return !r.type.indexOf("key") && t._k(r.keyCode, "esc", 27, r.key, ["Esc", "Escape"]) ? null : t.onLeaveAnchor.apply(null, arguments);
2467
+ } } }, [t._t("anchor")], 2), n("dt-lazy-show", t._g({ ref: "content", class: [
2468
+ "d-tooltip",
2469
+ `d-tooltip__arrow-tippy--${t.currentPlacement}`,
2470
+ {
2471
+ [t.TOOLTIP_KIND_MODIFIERS.inverted]: t.inverted
2472
+ },
2473
+ t.contentClass
2474
+ ], attrs: { id: t.id, show: t.isShown && (!!t.message.trim() || !!t.$slots.default), role: "tooltip", "aria-hidden": "false", "data-qa": "dt-tooltip", appear: "", transition: t.transition } }, t.tooltipListeners), [t._t("default", function() {
2475
+ return [t._v(" " + t._s(t.message) + " ")];
2476
+ })], 2)], 1);
2477
+ }, fo = [], vo = /* @__PURE__ */ nn(
2478
+ po,
2479
+ lo,
2480
+ fo,
2481
+ !1,
2482
+ null,
2483
+ null,
2484
+ null,
2485
+ null
2486
+ );
2487
+ const To = vo.exports;
2488
+ export {
2489
+ To as D,
2490
+ wo as E,
2491
+ bo as L,
2492
+ ao as T,
2493
+ ge as V,
2494
+ zn as a,
2495
+ vr as b,
2496
+ eo as c,
2497
+ no as d,
2498
+ to as e,
2499
+ Gn as f,
2500
+ rn as g,
2501
+ an as h,
2502
+ er as i,
2503
+ Xn as j,
2504
+ Jn as k,
2505
+ go as l,
2506
+ yo as m,
2507
+ Fn as n,
2508
+ so as o,
2509
+ Eo as p,
2510
+ uo as q,
2511
+ co as r,
2512
+ cr as s,
2513
+ xo as t,
2514
+ Oo as u
2515
+ };