@reni-corp/reni-2c-ui 0.2.9 → 0.2.11

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,2761 @@
1
+ import { pushScopeId as Yt, popScopeId as Ut, defineComponent as Ee, nextTick as Ge, openBlock as q, createBlock as ze, ref as z, createElementBlock as he, normalizeClass as Ye, renderSlot as Se, normalizeProps as Xt, guardReactiveProps as Kt, withScopeId as Jt, resolveComponent as fe, normalizeStyle as ke, withKeys as Qt, createElementVNode as oe, Fragment as Zt, createCommentVNode as et, mergeProps as $t, withCtx as Te, createVNode as _t, createApp as eo, h as to, toDisplayString as oo, unref as no, onMounted as bt, getCurrentScope as io, onScopeDispose as so, isRef as ro, getCurrentInstance as Ue, toRef as lo, readonly as ao, customRef as co, computed as me, reactive as tt, watch as ge, watchEffect as uo } from "vue";
2
+ const po = ["top", "right", "bottom", "left"], ot = ["start", "end"], nt = /* @__PURE__ */ po.reduce((e, t) => e.concat(t, t + "-" + ot[0], t + "-" + ot[1]), []), we = Math.min, te = Math.max, ho = {
3
+ left: "right",
4
+ right: "left",
5
+ bottom: "top",
6
+ top: "bottom"
7
+ }, fo = {
8
+ start: "end",
9
+ end: "start"
10
+ };
11
+ function We(e, t, o) {
12
+ return te(e, we(t, o));
13
+ }
14
+ function se(e, t) {
15
+ return typeof e == "function" ? e(t) : e;
16
+ }
17
+ function V(e) {
18
+ return e.split("-")[0];
19
+ }
20
+ function I(e) {
21
+ return e.split("-")[1];
22
+ }
23
+ function xt(e) {
24
+ return e === "x" ? "y" : "x";
25
+ }
26
+ function Xe(e) {
27
+ return e === "y" ? "height" : "width";
28
+ }
29
+ function ie(e) {
30
+ return ["top", "bottom"].includes(V(e)) ? "y" : "x";
31
+ }
32
+ function Ke(e) {
33
+ return xt(ie(e));
34
+ }
35
+ function St(e, t, o) {
36
+ o === void 0 && (o = !1);
37
+ const n = I(e), i = Ke(e), s = Xe(i);
38
+ let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
39
+ return t.reference[s] > t.floating[s] && (r = Ae(r)), [r, Ae(r)];
40
+ }
41
+ function mo(e) {
42
+ const t = Ae(e);
43
+ return [Pe(e), t, Pe(t)];
44
+ }
45
+ function Pe(e) {
46
+ return e.replace(/start|end/g, (t) => fo[t]);
47
+ }
48
+ function go(e, t, o) {
49
+ const n = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
50
+ switch (e) {
51
+ case "top":
52
+ case "bottom":
53
+ return o ? t ? i : n : t ? n : i;
54
+ case "left":
55
+ case "right":
56
+ return t ? s : r;
57
+ default:
58
+ return [];
59
+ }
60
+ }
61
+ function wo(e, t, o, n) {
62
+ const i = I(e);
63
+ let s = go(V(e), o === "start", n);
64
+ return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Pe)))), s;
65
+ }
66
+ function Ae(e) {
67
+ return e.replace(/left|right|bottom|top/g, (t) => ho[t]);
68
+ }
69
+ function vo(e) {
70
+ return {
71
+ top: 0,
72
+ right: 0,
73
+ bottom: 0,
74
+ left: 0,
75
+ ...e
76
+ };
77
+ }
78
+ function Tt(e) {
79
+ return typeof e != "number" ? vo(e) : {
80
+ top: e,
81
+ right: e,
82
+ bottom: e,
83
+ left: e
84
+ };
85
+ }
86
+ function de(e) {
87
+ const {
88
+ x: t,
89
+ y: o,
90
+ width: n,
91
+ height: i
92
+ } = e;
93
+ return {
94
+ width: n,
95
+ height: i,
96
+ top: o,
97
+ left: t,
98
+ right: t + n,
99
+ bottom: o + i,
100
+ x: t,
101
+ y: o
102
+ };
103
+ }
104
+ function it(e, t, o) {
105
+ let {
106
+ reference: n,
107
+ floating: i
108
+ } = e;
109
+ const s = ie(t), r = Ke(t), l = Xe(r), a = V(t), d = s === "y", h = n.x + n.width / 2 - i.width / 2, p = n.y + n.height / 2 - i.height / 2, u = n[l] / 2 - i[l] / 2;
110
+ let c;
111
+ switch (a) {
112
+ case "top":
113
+ c = {
114
+ x: h,
115
+ y: n.y - i.height
116
+ };
117
+ break;
118
+ case "bottom":
119
+ c = {
120
+ x: h,
121
+ y: n.y + n.height
122
+ };
123
+ break;
124
+ case "right":
125
+ c = {
126
+ x: n.x + n.width,
127
+ y: p
128
+ };
129
+ break;
130
+ case "left":
131
+ c = {
132
+ x: n.x - i.width,
133
+ y: p
134
+ };
135
+ break;
136
+ default:
137
+ c = {
138
+ x: n.x,
139
+ y: n.y
140
+ };
141
+ }
142
+ switch (I(t)) {
143
+ case "start":
144
+ c[r] -= u * (o && d ? -1 : 1);
145
+ break;
146
+ case "end":
147
+ c[r] += u * (o && d ? -1 : 1);
148
+ break;
149
+ }
150
+ return c;
151
+ }
152
+ const yo = async (e, t, o) => {
153
+ const {
154
+ placement: n = "bottom",
155
+ strategy: i = "absolute",
156
+ middleware: s = [],
157
+ platform: r
158
+ } = o, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(t));
159
+ let d = await r.getElementRects({
160
+ reference: e,
161
+ floating: t,
162
+ strategy: i
163
+ }), {
164
+ x: h,
165
+ y: p
166
+ } = it(d, n, a), u = n, c = {}, f = 0;
167
+ for (let m = 0; m < l.length; m++) {
168
+ const {
169
+ name: w,
170
+ fn: g
171
+ } = l[m], {
172
+ x: v,
173
+ y: $,
174
+ data: T,
175
+ reset: b
176
+ } = await g({
177
+ x: h,
178
+ y: p,
179
+ initialPlacement: n,
180
+ placement: u,
181
+ strategy: i,
182
+ middlewareData: c,
183
+ rects: d,
184
+ platform: r,
185
+ elements: {
186
+ reference: e,
187
+ floating: t
188
+ }
189
+ });
190
+ h = v ?? h, p = $ ?? p, c = {
191
+ ...c,
192
+ [w]: {
193
+ ...c[w],
194
+ ...T
195
+ }
196
+ }, b && f <= 50 && (f++, typeof b == "object" && (b.placement && (u = b.placement), b.rects && (d = b.rects === !0 ? await r.getElementRects({
197
+ reference: e,
198
+ floating: t,
199
+ strategy: i
200
+ }) : b.rects), {
201
+ x: h,
202
+ y: p
203
+ } = it(d, u, a)), m = -1);
204
+ }
205
+ return {
206
+ x: h,
207
+ y: p,
208
+ placement: u,
209
+ strategy: i,
210
+ middlewareData: c
211
+ };
212
+ };
213
+ async function Re(e, t) {
214
+ var o;
215
+ t === void 0 && (t = {});
216
+ const {
217
+ x: n,
218
+ y: i,
219
+ platform: s,
220
+ rects: r,
221
+ elements: l,
222
+ strategy: a
223
+ } = e, {
224
+ boundary: d = "clippingAncestors",
225
+ rootBoundary: h = "viewport",
226
+ elementContext: p = "floating",
227
+ altBoundary: u = !1,
228
+ padding: c = 0
229
+ } = se(t, e), f = Tt(c), w = l[u ? p === "floating" ? "reference" : "floating" : p], g = de(await s.getClippingRect({
230
+ element: (o = await (s.isElement == null ? void 0 : s.isElement(w))) == null || o ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
231
+ boundary: d,
232
+ rootBoundary: h,
233
+ strategy: a
234
+ })), v = p === "floating" ? {
235
+ x: n,
236
+ y: i,
237
+ width: r.floating.width,
238
+ height: r.floating.height
239
+ } : r.reference, $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), T = await (s.isElement == null ? void 0 : s.isElement($)) ? await (s.getScale == null ? void 0 : s.getScale($)) || {
240
+ x: 1,
241
+ y: 1
242
+ } : {
243
+ x: 1,
244
+ y: 1
245
+ }, b = de(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
246
+ elements: l,
247
+ rect: v,
248
+ offsetParent: $,
249
+ strategy: a
250
+ }) : v);
251
+ return {
252
+ top: (g.top - b.top + f.top) / T.y,
253
+ bottom: (b.bottom - g.bottom + f.bottom) / T.y,
254
+ left: (g.left - b.left + f.left) / T.x,
255
+ right: (b.right - g.right + f.right) / T.x
256
+ };
257
+ }
258
+ const $o = (e) => ({
259
+ name: "arrow",
260
+ options: e,
261
+ async fn(t) {
262
+ const {
263
+ x: o,
264
+ y: n,
265
+ placement: i,
266
+ rects: s,
267
+ platform: r,
268
+ elements: l,
269
+ middlewareData: a
270
+ } = t, {
271
+ element: d,
272
+ padding: h = 0
273
+ } = se(e, t) || {};
274
+ if (d == null)
275
+ return {};
276
+ const p = Tt(h), u = {
277
+ x: o,
278
+ y: n
279
+ }, c = Ke(i), f = Xe(c), m = await r.getDimensions(d), w = c === "y", g = w ? "top" : "left", v = w ? "bottom" : "right", $ = w ? "clientHeight" : "clientWidth", T = s.reference[f] + s.reference[c] - u[c] - s.floating[f], b = u[c] - s.reference[c], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
280
+ let y = N ? N[$] : 0;
281
+ (!y || !await (r.isElement == null ? void 0 : r.isElement(N))) && (y = l.floating[$] || s.floating[f]);
282
+ const E = T / 2 - b / 2, S = y / 2 - m[f] / 2 - 1, x = we(p[g], S), O = we(p[v], S), A = x, P = y - m[f] - O, C = y / 2 - m[f] / 2 + E, R = We(A, C, P), D = !a.arrow && I(i) != null && C !== R && s.reference[f] / 2 - (C < A ? x : O) - m[f] / 2 < 0, L = D ? C < A ? C - A : C - P : 0;
283
+ return {
284
+ [c]: u[c] + L,
285
+ data: {
286
+ [c]: R,
287
+ centerOffset: C - R - L,
288
+ ...D && {
289
+ alignmentOffset: L
290
+ }
291
+ },
292
+ reset: D
293
+ };
294
+ }
295
+ });
296
+ function _o(e, t, o) {
297
+ return (e ? [...o.filter((i) => I(i) === e), ...o.filter((i) => I(i) !== e)] : o.filter((i) => V(i) === i)).filter((i) => e ? I(i) === e || (t ? Pe(i) !== i : !1) : !0);
298
+ }
299
+ const bo = function(e) {
300
+ return e === void 0 && (e = {}), {
301
+ name: "autoPlacement",
302
+ options: e,
303
+ async fn(t) {
304
+ var o, n, i;
305
+ const {
306
+ rects: s,
307
+ middlewareData: r,
308
+ placement: l,
309
+ platform: a,
310
+ elements: d
311
+ } = t, {
312
+ crossAxis: h = !1,
313
+ alignment: p,
314
+ allowedPlacements: u = nt,
315
+ autoAlignment: c = !0,
316
+ ...f
317
+ } = se(e, t), m = p !== void 0 || u === nt ? _o(p || null, c, u) : u, w = await Re(t, f), g = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, v = m[g];
318
+ if (v == null)
319
+ return {};
320
+ const $ = St(v, s, await (a.isRTL == null ? void 0 : a.isRTL(d.floating)));
321
+ if (l !== v)
322
+ return {
323
+ reset: {
324
+ placement: m[0]
325
+ }
326
+ };
327
+ const T = [w[V(v)], w[$[0]], w[$[1]]], b = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
328
+ placement: v,
329
+ overflows: T
330
+ }], N = m[g + 1];
331
+ if (N)
332
+ return {
333
+ data: {
334
+ index: g + 1,
335
+ overflows: b
336
+ },
337
+ reset: {
338
+ placement: N
339
+ }
340
+ };
341
+ const y = b.map((x) => {
342
+ const O = I(x.placement);
343
+ return [x.placement, O && h ? (
344
+ // Check along the mainAxis and main crossAxis side.
345
+ x.overflows.slice(0, 2).reduce((A, P) => A + P, 0)
346
+ ) : (
347
+ // Check only the mainAxis.
348
+ x.overflows[0]
349
+ ), x.overflows];
350
+ }).sort((x, O) => x[1] - O[1]), S = ((i = y.filter((x) => x[2].slice(
351
+ 0,
352
+ // Aligned placements should not check their opposite crossAxis
353
+ // side.
354
+ I(x[0]) ? 2 : 3
355
+ ).every((O) => O <= 0))[0]) == null ? void 0 : i[0]) || y[0][0];
356
+ return S !== l ? {
357
+ data: {
358
+ index: g + 1,
359
+ overflows: b
360
+ },
361
+ reset: {
362
+ placement: S
363
+ }
364
+ } : {};
365
+ }
366
+ };
367
+ }, xo = function(e) {
368
+ return e === void 0 && (e = {}), {
369
+ name: "flip",
370
+ options: e,
371
+ async fn(t) {
372
+ var o, n;
373
+ const {
374
+ placement: i,
375
+ middlewareData: s,
376
+ rects: r,
377
+ initialPlacement: l,
378
+ platform: a,
379
+ elements: d
380
+ } = t, {
381
+ mainAxis: h = !0,
382
+ crossAxis: p = !0,
383
+ fallbackPlacements: u,
384
+ fallbackStrategy: c = "bestFit",
385
+ fallbackAxisSideDirection: f = "none",
386
+ flipAlignment: m = !0,
387
+ ...w
388
+ } = se(e, t);
389
+ if ((o = s.arrow) != null && o.alignmentOffset)
390
+ return {};
391
+ const g = V(i), v = ie(l), $ = V(l) === l, T = await (a.isRTL == null ? void 0 : a.isRTL(d.floating)), b = u || ($ || !m ? [Ae(l)] : mo(l)), N = f !== "none";
392
+ !u && N && b.push(...wo(l, m, f, T));
393
+ const y = [l, ...b], E = await Re(t, w), S = [];
394
+ let x = ((n = s.flip) == null ? void 0 : n.overflows) || [];
395
+ if (h && S.push(E[g]), p) {
396
+ const C = St(i, r, T);
397
+ S.push(E[C[0]], E[C[1]]);
398
+ }
399
+ if (x = [...x, {
400
+ placement: i,
401
+ overflows: S
402
+ }], !S.every((C) => C <= 0)) {
403
+ var O, A;
404
+ const C = (((O = s.flip) == null ? void 0 : O.index) || 0) + 1, R = y[C];
405
+ if (R)
406
+ return {
407
+ data: {
408
+ index: C,
409
+ overflows: x
410
+ },
411
+ reset: {
412
+ placement: R
413
+ }
414
+ };
415
+ let D = (A = x.filter((L) => L.overflows[0] <= 0).sort((L, G) => L.overflows[1] - G.overflows[1])[0]) == null ? void 0 : A.placement;
416
+ if (!D)
417
+ switch (c) {
418
+ case "bestFit": {
419
+ var P;
420
+ const L = (P = x.filter((G) => {
421
+ if (N) {
422
+ const Y = ie(G.placement);
423
+ return Y === v || // Create a bias to the `y` side axis due to horizontal
424
+ // reading directions favoring greater width.
425
+ Y === "y";
426
+ }
427
+ return !0;
428
+ }).map((G) => [G.placement, G.overflows.filter((Y) => Y > 0).reduce((Y, Gt) => Y + Gt, 0)]).sort((G, Y) => G[1] - Y[1])[0]) == null ? void 0 : P[0];
429
+ L && (D = L);
430
+ break;
431
+ }
432
+ case "initialPlacement":
433
+ D = l;
434
+ break;
435
+ }
436
+ if (i !== D)
437
+ return {
438
+ reset: {
439
+ placement: D
440
+ }
441
+ };
442
+ }
443
+ return {};
444
+ }
445
+ };
446
+ };
447
+ async function So(e, t) {
448
+ const {
449
+ placement: o,
450
+ platform: n,
451
+ elements: i
452
+ } = e, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = V(o), l = I(o), a = ie(o) === "y", d = ["left", "top"].includes(r) ? -1 : 1, h = s && a ? -1 : 1, p = se(t, e);
453
+ let {
454
+ mainAxis: u,
455
+ crossAxis: c,
456
+ alignmentAxis: f
457
+ } = typeof p == "number" ? {
458
+ mainAxis: p,
459
+ crossAxis: 0,
460
+ alignmentAxis: null
461
+ } : {
462
+ mainAxis: p.mainAxis || 0,
463
+ crossAxis: p.crossAxis || 0,
464
+ alignmentAxis: p.alignmentAxis
465
+ };
466
+ return l && typeof f == "number" && (c = l === "end" ? f * -1 : f), a ? {
467
+ x: c * h,
468
+ y: u * d
469
+ } : {
470
+ x: u * d,
471
+ y: c * h
472
+ };
473
+ }
474
+ const To = function(e) {
475
+ return e === void 0 && (e = 0), {
476
+ name: "offset",
477
+ options: e,
478
+ async fn(t) {
479
+ var o, n;
480
+ const {
481
+ x: i,
482
+ y: s,
483
+ placement: r,
484
+ middlewareData: l
485
+ } = t, a = await So(t, e);
486
+ return r === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
487
+ x: i + a.x,
488
+ y: s + a.y,
489
+ data: {
490
+ ...a,
491
+ placement: r
492
+ }
493
+ };
494
+ }
495
+ };
496
+ }, Po = function(e) {
497
+ return e === void 0 && (e = {}), {
498
+ name: "shift",
499
+ options: e,
500
+ async fn(t) {
501
+ const {
502
+ x: o,
503
+ y: n,
504
+ placement: i
505
+ } = t, {
506
+ mainAxis: s = !0,
507
+ crossAxis: r = !1,
508
+ limiter: l = {
509
+ fn: (w) => {
510
+ let {
511
+ x: g,
512
+ y: v
513
+ } = w;
514
+ return {
515
+ x: g,
516
+ y: v
517
+ };
518
+ }
519
+ },
520
+ ...a
521
+ } = se(e, t), d = {
522
+ x: o,
523
+ y: n
524
+ }, h = await Re(t, a), p = ie(V(i)), u = xt(p);
525
+ let c = d[u], f = d[p];
526
+ if (s) {
527
+ const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", v = c + h[w], $ = c - h[g];
528
+ c = We(v, c, $);
529
+ }
530
+ if (r) {
531
+ const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", v = f + h[w], $ = f - h[g];
532
+ f = We(v, f, $);
533
+ }
534
+ const m = l.fn({
535
+ ...t,
536
+ [u]: c,
537
+ [p]: f
538
+ });
539
+ return {
540
+ ...m,
541
+ data: {
542
+ x: m.x - o,
543
+ y: m.y - n,
544
+ enabled: {
545
+ [u]: s,
546
+ [p]: r
547
+ }
548
+ }
549
+ };
550
+ }
551
+ };
552
+ }, Ao = function(e) {
553
+ return e === void 0 && (e = {}), {
554
+ name: "size",
555
+ options: e,
556
+ async fn(t) {
557
+ var o, n;
558
+ const {
559
+ placement: i,
560
+ rects: s,
561
+ platform: r,
562
+ elements: l
563
+ } = t, {
564
+ apply: a = () => {
565
+ },
566
+ ...d
567
+ } = se(e, t), h = await Re(t, d), p = V(i), u = I(i), c = ie(i) === "y", {
568
+ width: f,
569
+ height: m
570
+ } = s.floating;
571
+ let w, g;
572
+ p === "top" || p === "bottom" ? (w = p, g = u === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (g = p, w = u === "end" ? "top" : "bottom");
573
+ const v = m - h.top - h.bottom, $ = f - h.left - h.right, T = we(m - h[w], v), b = we(f - h[g], $), N = !t.middlewareData.shift;
574
+ let y = T, E = b;
575
+ if ((o = t.middlewareData.shift) != null && o.enabled.x && (E = $), (n = t.middlewareData.shift) != null && n.enabled.y && (y = v), N && !u) {
576
+ const x = te(h.left, 0), O = te(h.right, 0), A = te(h.top, 0), P = te(h.bottom, 0);
577
+ c ? E = f - 2 * (x !== 0 || O !== 0 ? x + O : te(h.left, h.right)) : y = m - 2 * (A !== 0 || P !== 0 ? A + P : te(h.top, h.bottom));
578
+ }
579
+ await a({
580
+ ...t,
581
+ availableWidth: E,
582
+ availableHeight: y
583
+ });
584
+ const S = await r.getDimensions(l.floating);
585
+ return f !== S.width || m !== S.height ? {
586
+ reset: {
587
+ rects: !0
588
+ }
589
+ } : {};
590
+ }
591
+ };
592
+ };
593
+ function k(e) {
594
+ var t;
595
+ return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
596
+ }
597
+ function W(e) {
598
+ return k(e).getComputedStyle(e);
599
+ }
600
+ const st = Math.min, ce = Math.max, Ce = Math.round;
601
+ function Pt(e) {
602
+ const t = W(e);
603
+ let o = parseFloat(t.width), n = parseFloat(t.height);
604
+ const i = e.offsetWidth, s = e.offsetHeight, r = Ce(o) !== i || Ce(n) !== s;
605
+ return r && (o = i, n = s), { width: o, height: n, fallback: r };
606
+ }
607
+ function Z(e) {
608
+ return Ct(e) ? (e.nodeName || "").toLowerCase() : "";
609
+ }
610
+ let _e;
611
+ function At() {
612
+ if (_e)
613
+ return _e;
614
+ const e = navigator.userAgentData;
615
+ return e && Array.isArray(e.brands) ? (_e = e.brands.map((t) => t.brand + "/" + t.version).join(" "), _e) : navigator.userAgent;
616
+ }
617
+ function j(e) {
618
+ return e instanceof k(e).HTMLElement;
619
+ }
620
+ function J(e) {
621
+ return e instanceof k(e).Element;
622
+ }
623
+ function Ct(e) {
624
+ return e instanceof k(e).Node;
625
+ }
626
+ function rt(e) {
627
+ return typeof ShadowRoot > "u" ? !1 : e instanceof k(e).ShadowRoot || e instanceof ShadowRoot;
628
+ }
629
+ function Le(e) {
630
+ const { overflow: t, overflowX: o, overflowY: n, display: i } = W(e);
631
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(i);
632
+ }
633
+ function Co(e) {
634
+ return ["table", "td", "th"].includes(Z(e));
635
+ }
636
+ function je(e) {
637
+ const t = /firefox/i.test(At()), o = W(e), n = o.backdropFilter || o.WebkitBackdropFilter;
638
+ return o.transform !== "none" || o.perspective !== "none" || !!n && n !== "none" || t && o.willChange === "filter" || t && !!o.filter && o.filter !== "none" || ["transform", "perspective"].some((i) => o.willChange.includes(i)) || ["paint", "layout", "strict", "content"].some((i) => {
639
+ const s = o.contain;
640
+ return s != null && s.includes(i);
641
+ });
642
+ }
643
+ function Ot() {
644
+ return !/^((?!chrome|android).)*safari/i.test(At());
645
+ }
646
+ function Je(e) {
647
+ return ["html", "body", "#document"].includes(Z(e));
648
+ }
649
+ function Nt(e) {
650
+ return J(e) ? e : e.contextElement;
651
+ }
652
+ const Et = { x: 1, y: 1 };
653
+ function re(e) {
654
+ const t = Nt(e);
655
+ if (!j(t))
656
+ return Et;
657
+ const o = t.getBoundingClientRect(), { width: n, height: i, fallback: s } = Pt(t);
658
+ let r = (s ? Ce(o.width) : o.width) / n, l = (s ? Ce(o.height) : o.height) / i;
659
+ return r && Number.isFinite(r) || (r = 1), l && Number.isFinite(l) || (l = 1), { x: r, y: l };
660
+ }
661
+ function ve(e, t, o, n) {
662
+ var i, s;
663
+ t === void 0 && (t = !1), o === void 0 && (o = !1);
664
+ const r = e.getBoundingClientRect(), l = Nt(e);
665
+ let a = Et;
666
+ t && (n ? J(n) && (a = re(n)) : a = re(e));
667
+ const d = l ? k(l) : window, h = !Ot() && o;
668
+ let p = (r.left + (h && ((i = d.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / a.x, u = (r.top + (h && ((s = d.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / a.y, c = r.width / a.x, f = r.height / a.y;
669
+ if (l) {
670
+ const m = k(l), w = n && J(n) ? k(n) : n;
671
+ let g = m.frameElement;
672
+ for (; g && n && w !== m; ) {
673
+ const v = re(g), $ = g.getBoundingClientRect(), T = getComputedStyle(g);
674
+ $.x += (g.clientLeft + parseFloat(T.paddingLeft)) * v.x, $.y += (g.clientTop + parseFloat(T.paddingTop)) * v.y, p *= v.x, u *= v.y, c *= v.x, f *= v.y, p += $.x, u += $.y, g = k(g).frameElement;
675
+ }
676
+ }
677
+ return { width: c, height: f, top: u, right: p + c, bottom: u + f, left: p, x: p, y: u };
678
+ }
679
+ function Q(e) {
680
+ return ((Ct(e) ? e.ownerDocument : e.document) || window.document).documentElement;
681
+ }
682
+ function He(e) {
683
+ return J(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
684
+ }
685
+ function zt(e) {
686
+ return ve(Q(e)).left + He(e).scrollLeft;
687
+ }
688
+ function ye(e) {
689
+ if (Z(e) === "html")
690
+ return e;
691
+ const t = e.assignedSlot || e.parentNode || rt(e) && e.host || Q(e);
692
+ return rt(t) ? t.host : t;
693
+ }
694
+ function Rt(e) {
695
+ const t = ye(e);
696
+ return Je(t) ? t.ownerDocument.body : j(t) && Le(t) ? t : Rt(t);
697
+ }
698
+ function Oe(e, t) {
699
+ var o;
700
+ t === void 0 && (t = []);
701
+ const n = Rt(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), s = k(n);
702
+ return i ? t.concat(s, s.visualViewport || [], Le(n) ? n : []) : t.concat(n, Oe(n));
703
+ }
704
+ function lt(e, t, o) {
705
+ return t === "viewport" ? de(function(n, i) {
706
+ const s = k(n), r = Q(n), l = s.visualViewport;
707
+ let a = r.clientWidth, d = r.clientHeight, h = 0, p = 0;
708
+ if (l) {
709
+ a = l.width, d = l.height;
710
+ const u = Ot();
711
+ (u || !u && i === "fixed") && (h = l.offsetLeft, p = l.offsetTop);
712
+ }
713
+ return { width: a, height: d, x: h, y: p };
714
+ }(e, o)) : J(t) ? de(function(n, i) {
715
+ const s = ve(n, !0, i === "fixed"), r = s.top + n.clientTop, l = s.left + n.clientLeft, a = j(n) ? re(n) : { x: 1, y: 1 };
716
+ return { width: n.clientWidth * a.x, height: n.clientHeight * a.y, x: l * a.x, y: r * a.y };
717
+ }(t, o)) : de(function(n) {
718
+ const i = Q(n), s = He(n), r = n.ownerDocument.body, l = ce(i.scrollWidth, i.clientWidth, r.scrollWidth, r.clientWidth), a = ce(i.scrollHeight, i.clientHeight, r.scrollHeight, r.clientHeight);
719
+ let d = -s.scrollLeft + zt(n);
720
+ const h = -s.scrollTop;
721
+ return W(r).direction === "rtl" && (d += ce(i.clientWidth, r.clientWidth) - l), { width: l, height: a, x: d, y: h };
722
+ }(Q(e)));
723
+ }
724
+ function at(e) {
725
+ return j(e) && W(e).position !== "fixed" ? e.offsetParent : null;
726
+ }
727
+ function dt(e) {
728
+ const t = k(e);
729
+ let o = at(e);
730
+ for (; o && Co(o) && W(o).position === "static"; )
731
+ o = at(o);
732
+ return o && (Z(o) === "html" || Z(o) === "body" && W(o).position === "static" && !je(o)) ? t : o || function(n) {
733
+ let i = ye(n);
734
+ for (; j(i) && !Je(i); ) {
735
+ if (je(i))
736
+ return i;
737
+ i = ye(i);
738
+ }
739
+ return null;
740
+ }(e) || t;
741
+ }
742
+ function Oo(e, t, o) {
743
+ const n = j(t), i = Q(t), s = ve(e, !0, o === "fixed", t);
744
+ let r = { scrollLeft: 0, scrollTop: 0 };
745
+ const l = { x: 0, y: 0 };
746
+ if (n || !n && o !== "fixed")
747
+ if ((Z(t) !== "body" || Le(i)) && (r = He(t)), j(t)) {
748
+ const a = ve(t, !0);
749
+ l.x = a.x + t.clientLeft, l.y = a.y + t.clientTop;
750
+ } else
751
+ i && (l.x = zt(i));
752
+ return { x: s.left + r.scrollLeft - l.x, y: s.top + r.scrollTop - l.y, width: s.width, height: s.height };
753
+ }
754
+ const No = { getClippingRect: function(e) {
755
+ let { element: t, boundary: o, rootBoundary: n, strategy: i } = e;
756
+ const s = o === "clippingAncestors" ? function(d, h) {
757
+ const p = h.get(d);
758
+ if (p)
759
+ return p;
760
+ let u = Oe(d).filter((w) => J(w) && Z(w) !== "body"), c = null;
761
+ const f = W(d).position === "fixed";
762
+ let m = f ? ye(d) : d;
763
+ for (; J(m) && !Je(m); ) {
764
+ const w = W(m), g = je(m);
765
+ (f ? g || c : g || w.position !== "static" || !c || !["absolute", "fixed"].includes(c.position)) ? c = w : u = u.filter((v) => v !== m), m = ye(m);
766
+ }
767
+ return h.set(d, u), u;
768
+ }(t, this._c) : [].concat(o), r = [...s, n], l = r[0], a = r.reduce((d, h) => {
769
+ const p = lt(t, h, i);
770
+ return d.top = ce(p.top, d.top), d.right = st(p.right, d.right), d.bottom = st(p.bottom, d.bottom), d.left = ce(p.left, d.left), d;
771
+ }, lt(t, l, i));
772
+ return { width: a.right - a.left, height: a.bottom - a.top, x: a.left, y: a.top };
773
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
774
+ let { rect: t, offsetParent: o, strategy: n } = e;
775
+ const i = j(o), s = Q(o);
776
+ if (o === s)
777
+ return t;
778
+ let r = { scrollLeft: 0, scrollTop: 0 }, l = { x: 1, y: 1 };
779
+ const a = { x: 0, y: 0 };
780
+ if ((i || !i && n !== "fixed") && ((Z(o) !== "body" || Le(s)) && (r = He(o)), j(o))) {
781
+ const d = ve(o);
782
+ l = re(o), a.x = d.x + o.clientLeft, a.y = d.y + o.clientTop;
783
+ }
784
+ return { width: t.width * l.x, height: t.height * l.y, x: t.x * l.x - r.scrollLeft * l.x + a.x, y: t.y * l.y - r.scrollTop * l.y + a.y };
785
+ }, isElement: J, getDimensions: function(e) {
786
+ return j(e) ? Pt(e) : e.getBoundingClientRect();
787
+ }, getOffsetParent: dt, getDocumentElement: Q, getScale: re, async getElementRects(e) {
788
+ let { reference: t, floating: o, strategy: n } = e;
789
+ const i = this.getOffsetParent || dt, s = this.getDimensions;
790
+ return { reference: Oo(t, await i(o), n), floating: { x: 0, y: 0, ...await s(o) } };
791
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => W(e).direction === "rtl" }, Eo = (e, t, o) => {
792
+ const n = /* @__PURE__ */ new Map(), i = { platform: No, ...o }, s = { ...i.platform, _c: n };
793
+ return yo(e, t, { ...i, platform: s });
794
+ }, ne = {
795
+ // Disable popper components
796
+ disabled: !1,
797
+ // Default position offset along main axis (px)
798
+ distance: 5,
799
+ // Default position offset along cross axis (px)
800
+ skidding: 0,
801
+ // Default container where the tooltip will be appended
802
+ container: "body",
803
+ // Element used to compute position and size boundaries
804
+ boundary: void 0,
805
+ // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
806
+ instantMove: !1,
807
+ // Auto destroy tooltip DOM nodes (ms)
808
+ disposeTimeout: 0,
809
+ // Triggers on the popper itself
810
+ popperTriggers: [],
811
+ // Positioning strategy
812
+ strategy: "absolute",
813
+ // Prevent overflow
814
+ preventOverflow: !0,
815
+ // Flip to the opposite placement if needed
816
+ flip: !0,
817
+ // Shift on the cross axis to prevent the popper from overflowing
818
+ shift: !0,
819
+ // Overflow padding (px)
820
+ overflowPadding: 0,
821
+ // Arrow padding (px)
822
+ arrowPadding: 0,
823
+ // Compute arrow overflow (useful to hide it)
824
+ arrowOverflow: !0,
825
+ // Themes
826
+ themes: {
827
+ tooltip: {
828
+ // Default tooltip placement relative to target element
829
+ placement: "top",
830
+ // Default events that trigger the tooltip
831
+ triggers: ["hover", "focus", "touch"],
832
+ // Close tooltip on click on tooltip target
833
+ hideTriggers: (e) => [...e, "click"],
834
+ // Delay (ms)
835
+ delay: {
836
+ show: 200,
837
+ hide: 0
838
+ },
839
+ // Update popper on content resize
840
+ handleResize: !1,
841
+ // Enable HTML content in directive
842
+ html: !1,
843
+ // Displayed when tooltip content is loading
844
+ loadingContent: "..."
845
+ },
846
+ dropdown: {
847
+ // Default dropdown placement relative to target element
848
+ placement: "bottom",
849
+ // Default events that trigger the dropdown
850
+ triggers: ["click"],
851
+ // Delay (ms)
852
+ delay: 0,
853
+ // Update popper on content resize
854
+ handleResize: !0,
855
+ // Hide on clock outside
856
+ autoHide: !0
857
+ },
858
+ menu: {
859
+ $extend: "dropdown",
860
+ triggers: ["hover", "focus"],
861
+ popperTriggers: ["hover", "focus"],
862
+ delay: {
863
+ show: 0,
864
+ hide: 400
865
+ }
866
+ }
867
+ }
868
+ };
869
+ function Ne(e, t) {
870
+ let o = ne.themes[e] || {}, n;
871
+ do
872
+ n = o[t], typeof n > "u" ? o.$extend ? o = ne.themes[o.$extend] || {} : (o = null, n = ne[t]) : o = null;
873
+ while (o);
874
+ return n;
875
+ }
876
+ function zo(e) {
877
+ const t = [e];
878
+ let o = ne.themes[e] || {};
879
+ do
880
+ o.$extend && !o.$resetCss ? (t.push(o.$extend), o = ne.themes[o.$extend] || {}) : o = null;
881
+ while (o);
882
+ return t.map((n) => `v-popper--theme-${n}`);
883
+ }
884
+ function ct(e) {
885
+ const t = [e];
886
+ let o = ne.themes[e] || {};
887
+ do
888
+ o.$extend ? (t.push(o.$extend), o = ne.themes[o.$extend] || {}) : o = null;
889
+ while (o);
890
+ return t;
891
+ }
892
+ let le = !1;
893
+ if (typeof window < "u") {
894
+ le = !1;
895
+ try {
896
+ const e = Object.defineProperty({}, "passive", {
897
+ get() {
898
+ le = !0;
899
+ }
900
+ });
901
+ window.addEventListener("test", null, e);
902
+ } catch {
903
+ }
904
+ }
905
+ let Lt = !1;
906
+ typeof window < "u" && typeof navigator < "u" && (Lt = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
907
+ const Ht = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
908
+ t,
909
+ `${t}-start`,
910
+ `${t}-end`
911
+ ]), []), ut = {
912
+ hover: "mouseenter",
913
+ focus: "focus",
914
+ click: "click",
915
+ touch: "touchstart",
916
+ pointer: "pointerdown"
917
+ }, pt = {
918
+ hover: "mouseleave",
919
+ focus: "blur",
920
+ click: "click",
921
+ touch: "touchend",
922
+ pointer: "pointerup"
923
+ };
924
+ function ht(e, t) {
925
+ const o = e.indexOf(t);
926
+ o !== -1 && e.splice(o, 1);
927
+ }
928
+ function Be() {
929
+ return new Promise((e) => requestAnimationFrame(() => {
930
+ requestAnimationFrame(e);
931
+ }));
932
+ }
933
+ const H = [];
934
+ let ee = null;
935
+ const ft = {};
936
+ function mt(e) {
937
+ let t = ft[e];
938
+ return t || (t = ft[e] = []), t;
939
+ }
940
+ let Ve = function() {
941
+ };
942
+ typeof window < "u" && (Ve = window.Element);
943
+ function _(e) {
944
+ return function(t) {
945
+ return Ne(t.theme, e);
946
+ };
947
+ }
948
+ const Ie = "__floating-vue__popper", Dt = () => Ee({
949
+ name: "VPopper",
950
+ provide() {
951
+ return {
952
+ [Ie]: {
953
+ parentPopper: this
954
+ }
955
+ };
956
+ },
957
+ inject: {
958
+ [Ie]: { default: null }
959
+ },
960
+ props: {
961
+ theme: {
962
+ type: String,
963
+ required: !0
964
+ },
965
+ targetNodes: {
966
+ type: Function,
967
+ required: !0
968
+ },
969
+ referenceNode: {
970
+ type: Function,
971
+ default: null
972
+ },
973
+ popperNode: {
974
+ type: Function,
975
+ required: !0
976
+ },
977
+ shown: {
978
+ type: Boolean,
979
+ default: !1
980
+ },
981
+ showGroup: {
982
+ type: String,
983
+ default: null
984
+ },
985
+ // eslint-disable-next-line vue/require-prop-types
986
+ ariaId: {
987
+ default: null
988
+ },
989
+ disabled: {
990
+ type: Boolean,
991
+ default: _("disabled")
992
+ },
993
+ positioningDisabled: {
994
+ type: Boolean,
995
+ default: _("positioningDisabled")
996
+ },
997
+ placement: {
998
+ type: String,
999
+ default: _("placement"),
1000
+ validator: (e) => Ht.includes(e)
1001
+ },
1002
+ delay: {
1003
+ type: [String, Number, Object],
1004
+ default: _("delay")
1005
+ },
1006
+ distance: {
1007
+ type: [Number, String],
1008
+ default: _("distance")
1009
+ },
1010
+ skidding: {
1011
+ type: [Number, String],
1012
+ default: _("skidding")
1013
+ },
1014
+ triggers: {
1015
+ type: Array,
1016
+ default: _("triggers")
1017
+ },
1018
+ showTriggers: {
1019
+ type: [Array, Function],
1020
+ default: _("showTriggers")
1021
+ },
1022
+ hideTriggers: {
1023
+ type: [Array, Function],
1024
+ default: _("hideTriggers")
1025
+ },
1026
+ popperTriggers: {
1027
+ type: Array,
1028
+ default: _("popperTriggers")
1029
+ },
1030
+ popperShowTriggers: {
1031
+ type: [Array, Function],
1032
+ default: _("popperShowTriggers")
1033
+ },
1034
+ popperHideTriggers: {
1035
+ type: [Array, Function],
1036
+ default: _("popperHideTriggers")
1037
+ },
1038
+ container: {
1039
+ type: [String, Object, Ve, Boolean],
1040
+ default: _("container")
1041
+ },
1042
+ boundary: {
1043
+ type: [String, Ve],
1044
+ default: _("boundary")
1045
+ },
1046
+ strategy: {
1047
+ type: String,
1048
+ validator: (e) => ["absolute", "fixed"].includes(e),
1049
+ default: _("strategy")
1050
+ },
1051
+ autoHide: {
1052
+ type: [Boolean, Function],
1053
+ default: _("autoHide")
1054
+ },
1055
+ handleResize: {
1056
+ type: Boolean,
1057
+ default: _("handleResize")
1058
+ },
1059
+ instantMove: {
1060
+ type: Boolean,
1061
+ default: _("instantMove")
1062
+ },
1063
+ eagerMount: {
1064
+ type: Boolean,
1065
+ default: _("eagerMount")
1066
+ },
1067
+ popperClass: {
1068
+ type: [String, Array, Object],
1069
+ default: _("popperClass")
1070
+ },
1071
+ computeTransformOrigin: {
1072
+ type: Boolean,
1073
+ default: _("computeTransformOrigin")
1074
+ },
1075
+ /**
1076
+ * @deprecated
1077
+ */
1078
+ autoMinSize: {
1079
+ type: Boolean,
1080
+ default: _("autoMinSize")
1081
+ },
1082
+ autoSize: {
1083
+ type: [Boolean, String],
1084
+ default: _("autoSize")
1085
+ },
1086
+ /**
1087
+ * @deprecated
1088
+ */
1089
+ autoMaxSize: {
1090
+ type: Boolean,
1091
+ default: _("autoMaxSize")
1092
+ },
1093
+ autoBoundaryMaxSize: {
1094
+ type: Boolean,
1095
+ default: _("autoBoundaryMaxSize")
1096
+ },
1097
+ preventOverflow: {
1098
+ type: Boolean,
1099
+ default: _("preventOverflow")
1100
+ },
1101
+ overflowPadding: {
1102
+ type: [Number, String],
1103
+ default: _("overflowPadding")
1104
+ },
1105
+ arrowPadding: {
1106
+ type: [Number, String],
1107
+ default: _("arrowPadding")
1108
+ },
1109
+ arrowOverflow: {
1110
+ type: Boolean,
1111
+ default: _("arrowOverflow")
1112
+ },
1113
+ flip: {
1114
+ type: Boolean,
1115
+ default: _("flip")
1116
+ },
1117
+ shift: {
1118
+ type: Boolean,
1119
+ default: _("shift")
1120
+ },
1121
+ shiftCrossAxis: {
1122
+ type: Boolean,
1123
+ default: _("shiftCrossAxis")
1124
+ },
1125
+ noAutoFocus: {
1126
+ type: Boolean,
1127
+ default: _("noAutoFocus")
1128
+ },
1129
+ disposeTimeout: {
1130
+ type: Number,
1131
+ default: _("disposeTimeout")
1132
+ }
1133
+ },
1134
+ emits: {
1135
+ show: () => !0,
1136
+ hide: () => !0,
1137
+ "update:shown": (e) => !0,
1138
+ "apply-show": () => !0,
1139
+ "apply-hide": () => !0,
1140
+ "close-group": () => !0,
1141
+ "close-directive": () => !0,
1142
+ "auto-hide": () => !0,
1143
+ resize: () => !0
1144
+ },
1145
+ data() {
1146
+ return {
1147
+ isShown: !1,
1148
+ isMounted: !1,
1149
+ skipTransition: !1,
1150
+ classes: {
1151
+ showFrom: !1,
1152
+ showTo: !1,
1153
+ hideFrom: !1,
1154
+ hideTo: !0
1155
+ },
1156
+ result: {
1157
+ x: 0,
1158
+ y: 0,
1159
+ placement: "",
1160
+ strategy: this.strategy,
1161
+ arrow: {
1162
+ x: 0,
1163
+ y: 0,
1164
+ centerOffset: 0
1165
+ },
1166
+ transformOrigin: null
1167
+ },
1168
+ shownChildren: /* @__PURE__ */ new Set(),
1169
+ lastAutoHide: !0
1170
+ };
1171
+ },
1172
+ computed: {
1173
+ popperId() {
1174
+ return this.ariaId != null ? this.ariaId : this.randomId;
1175
+ },
1176
+ shouldMountContent() {
1177
+ return this.eagerMount || this.isMounted;
1178
+ },
1179
+ slotData() {
1180
+ return {
1181
+ popperId: this.popperId,
1182
+ isShown: this.isShown,
1183
+ shouldMountContent: this.shouldMountContent,
1184
+ skipTransition: this.skipTransition,
1185
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
1186
+ show: this.show,
1187
+ hide: this.hide,
1188
+ handleResize: this.handleResize,
1189
+ onResize: this.onResize,
1190
+ classes: {
1191
+ ...this.classes,
1192
+ popperClass: this.popperClass
1193
+ },
1194
+ result: this.positioningDisabled ? null : this.result,
1195
+ attrs: this.$attrs
1196
+ };
1197
+ },
1198
+ parentPopper() {
1199
+ var e;
1200
+ return (e = this[Ie]) == null ? void 0 : e.parentPopper;
1201
+ },
1202
+ hasPopperShowTriggerHover() {
1203
+ var e, t;
1204
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
1205
+ }
1206
+ },
1207
+ watch: {
1208
+ shown: "$_autoShowHide",
1209
+ disabled(e) {
1210
+ e ? this.dispose() : this.init();
1211
+ },
1212
+ async container() {
1213
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1214
+ },
1215
+ ...[
1216
+ "triggers",
1217
+ "positioningDisabled"
1218
+ ].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
1219
+ ...[
1220
+ "placement",
1221
+ "distance",
1222
+ "skidding",
1223
+ "boundary",
1224
+ "strategy",
1225
+ "overflowPadding",
1226
+ "arrowPadding",
1227
+ "preventOverflow",
1228
+ "shift",
1229
+ "shiftCrossAxis",
1230
+ "flip"
1231
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1232
+ },
1233
+ created() {
1234
+ this.$_isDisposed = !0, this.randomId = `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`, this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
1235
+ },
1236
+ mounted() {
1237
+ this.init(), this.$_detachPopperNode();
1238
+ },
1239
+ activated() {
1240
+ this.$_autoShowHide();
1241
+ },
1242
+ deactivated() {
1243
+ this.hide();
1244
+ },
1245
+ beforeUnmount() {
1246
+ this.dispose();
1247
+ },
1248
+ methods: {
1249
+ show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
1250
+ var n, i;
1251
+ (n = this.parentPopper) != null && n.lockedChild && this.parentPopper.lockedChild !== this || (this.$_pendingHide = !1, (o || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1252
+ this.$_showFrameLocked = !1;
1253
+ })), this.$emit("update:shown", !0));
1254
+ },
1255
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
1256
+ var o;
1257
+ if (!this.$_hideInProgress) {
1258
+ if (this.shownChildren.size > 0) {
1259
+ this.$_pendingHide = !0;
1260
+ return;
1261
+ }
1262
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
1263
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
1264
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
1265
+ }, 1e3));
1266
+ return;
1267
+ }
1268
+ ((o = this.parentPopper) == null ? void 0 : o.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1269
+ }
1270
+ },
1271
+ init() {
1272
+ var e;
1273
+ this.$_isDisposed && (this.$_isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
1274
+ },
1275
+ dispose() {
1276
+ this.$_isDisposed || (this.$_isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
1277
+ },
1278
+ async onResize() {
1279
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1280
+ },
1281
+ async $_computePosition() {
1282
+ if (this.$_isDisposed || this.positioningDisabled)
1283
+ return;
1284
+ const e = {
1285
+ strategy: this.strategy,
1286
+ middleware: []
1287
+ };
1288
+ (this.distance || this.skidding) && e.middleware.push(To({
1289
+ mainAxis: this.distance,
1290
+ crossAxis: this.skidding
1291
+ }));
1292
+ const t = this.placement.startsWith("auto");
1293
+ if (t ? e.middleware.push(bo({
1294
+ alignment: this.placement.split("-")[1] ?? ""
1295
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Po({
1296
+ padding: this.overflowPadding,
1297
+ boundary: this.boundary,
1298
+ crossAxis: this.shiftCrossAxis
1299
+ })), !t && this.flip && e.middleware.push(xo({
1300
+ padding: this.overflowPadding,
1301
+ boundary: this.boundary
1302
+ }))), e.middleware.push($o({
1303
+ element: this.$_arrowNode,
1304
+ padding: this.arrowPadding
1305
+ })), this.arrowOverflow && e.middleware.push({
1306
+ name: "arrowOverflow",
1307
+ fn: ({ placement: n, rects: i, middlewareData: s }) => {
1308
+ let r;
1309
+ const { centerOffset: l } = s.arrow;
1310
+ return n.startsWith("top") || n.startsWith("bottom") ? r = Math.abs(l) > i.reference.width / 2 : r = Math.abs(l) > i.reference.height / 2, {
1311
+ data: {
1312
+ overflow: r
1313
+ }
1314
+ };
1315
+ }
1316
+ }), this.autoMinSize || this.autoSize) {
1317
+ const n = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
1318
+ e.middleware.push({
1319
+ name: "autoSize",
1320
+ fn: ({ rects: i, placement: s, middlewareData: r }) => {
1321
+ var l;
1322
+ if ((l = r.autoSize) != null && l.skip)
1323
+ return {};
1324
+ let a, d;
1325
+ return s.startsWith("top") || s.startsWith("bottom") ? a = i.reference.width : d = i.reference.height, this.$_innerNode.style[n === "min" ? "minWidth" : n === "max" ? "maxWidth" : "width"] = a != null ? `${a}px` : null, this.$_innerNode.style[n === "min" ? "minHeight" : n === "max" ? "maxHeight" : "height"] = d != null ? `${d}px` : null, {
1326
+ data: {
1327
+ skip: !0
1328
+ },
1329
+ reset: {
1330
+ rects: !0
1331
+ }
1332
+ };
1333
+ }
1334
+ });
1335
+ }
1336
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Ao({
1337
+ boundary: this.boundary,
1338
+ padding: this.overflowPadding,
1339
+ apply: ({ availableWidth: n, availableHeight: i }) => {
1340
+ this.$_innerNode.style.maxWidth = n != null ? `${n}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
1341
+ }
1342
+ })));
1343
+ const o = await Eo(this.$_referenceNode, this.$_popperNode, e);
1344
+ Object.assign(this.result, {
1345
+ x: o.x,
1346
+ y: o.y,
1347
+ placement: o.placement,
1348
+ strategy: o.strategy,
1349
+ arrow: {
1350
+ ...o.middlewareData.arrow,
1351
+ ...o.middlewareData.arrowOverflow
1352
+ }
1353
+ });
1354
+ },
1355
+ $_scheduleShow(e = null, t = !1) {
1356
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ee && this.instantMove && ee.instantMove && ee !== this.parentPopper) {
1357
+ ee.$_applyHide(!0), this.$_applyShow(!0);
1358
+ return;
1359
+ }
1360
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
1361
+ },
1362
+ $_scheduleHide(e = null, t = !1) {
1363
+ if (this.shownChildren.size > 0) {
1364
+ this.$_pendingHide = !0;
1365
+ return;
1366
+ }
1367
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ee = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1368
+ },
1369
+ $_computeDelay(e) {
1370
+ const t = this.delay;
1371
+ return parseInt(t && t[e] || t || 0);
1372
+ },
1373
+ async $_applyShow(e = !1) {
1374
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Be(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
1375
+ ...Oe(this.$_referenceNode),
1376
+ ...Oe(this.$_popperNode)
1377
+ ], "scroll", () => {
1378
+ this.$_computePosition();
1379
+ }));
1380
+ },
1381
+ async $_applyShowEffect() {
1382
+ if (this.$_hideInProgress)
1383
+ return;
1384
+ if (this.computeTransformOrigin) {
1385
+ const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), n = o.parentNode.getBoundingClientRect(), i = t.x + t.width / 2 - (n.left + o.offsetLeft), s = t.y + t.height / 2 - (n.top + o.offsetTop);
1386
+ this.result.transformOrigin = `${i}px ${s}px`;
1387
+ }
1388
+ this.isShown = !0, this.$_applyAttrsToTarget({
1389
+ "aria-describedby": this.popperId,
1390
+ "data-popper-shown": ""
1391
+ });
1392
+ const e = this.showGroup;
1393
+ if (e) {
1394
+ let t;
1395
+ for (let o = 0; o < H.length; o++)
1396
+ t = H[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
1397
+ }
1398
+ H.push(this), document.body.classList.add("v-popper--some-open");
1399
+ for (const t of ct(this.theme))
1400
+ mt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
1401
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Be(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1402
+ },
1403
+ async $_applyHide(e = !1) {
1404
+ if (this.shownChildren.size > 0) {
1405
+ this.$_pendingHide = !0, this.$_hideInProgress = !1;
1406
+ return;
1407
+ }
1408
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown)
1409
+ return;
1410
+ this.skipTransition = e, ht(H, this), H.length === 0 && document.body.classList.remove("v-popper--some-open");
1411
+ for (const o of ct(this.theme)) {
1412
+ const n = mt(o);
1413
+ ht(n, this), n.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
1414
+ }
1415
+ ee === this && (ee = null), this.isShown = !1, this.$_applyAttrsToTarget({
1416
+ "aria-describedby": void 0,
1417
+ "data-popper-shown": void 0
1418
+ }), clearTimeout(this.$_disposeTimer);
1419
+ const t = this.disposeTimeout;
1420
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
1421
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
1422
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Be(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1423
+ },
1424
+ $_autoShowHide() {
1425
+ this.shown ? this.show() : this.hide();
1426
+ },
1427
+ $_ensureTeleport() {
1428
+ if (this.$_isDisposed)
1429
+ return;
1430
+ let e = this.container;
1431
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
1432
+ throw new Error("No container for popover: " + this.container);
1433
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
1434
+ },
1435
+ $_addEventListeners() {
1436
+ const e = (o) => {
1437
+ this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
1438
+ };
1439
+ this.$_registerTriggerListeners(this.$_targetNodes, ut, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], ut, this.popperTriggers, this.popperShowTriggers, e);
1440
+ const t = (o) => {
1441
+ o.usedByTooltip || this.hide({ event: o });
1442
+ };
1443
+ this.$_registerTriggerListeners(this.$_targetNodes, pt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], pt, this.popperTriggers, this.popperHideTriggers, t);
1444
+ },
1445
+ $_registerEventListeners(e, t, o) {
1446
+ this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, le ? {
1447
+ passive: !0
1448
+ } : void 0));
1449
+ },
1450
+ $_registerTriggerListeners(e, t, o, n, i) {
1451
+ let s = o;
1452
+ n != null && (s = typeof n == "function" ? n(s) : n), s.forEach((r) => {
1453
+ const l = t[r];
1454
+ l && this.$_registerEventListeners(e, l, i);
1455
+ });
1456
+ },
1457
+ $_removeEventListeners(e) {
1458
+ const t = [];
1459
+ this.$_events.forEach((o) => {
1460
+ const { targetNodes: n, eventType: i, handler: s } = o;
1461
+ !e || e === i ? n.forEach((r) => r.removeEventListener(i, s)) : t.push(o);
1462
+ }), this.$_events = t;
1463
+ },
1464
+ $_refreshListeners() {
1465
+ this.$_isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1466
+ },
1467
+ $_handleGlobalClose(e, t = !1) {
1468
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
1469
+ this.$_preventShow = !1;
1470
+ }, 300)));
1471
+ },
1472
+ $_detachPopperNode() {
1473
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
1474
+ },
1475
+ $_swapTargetAttrs(e, t) {
1476
+ for (const o of this.$_targetNodes) {
1477
+ const n = o.getAttribute(e);
1478
+ n && (o.removeAttribute(e), o.setAttribute(t, n));
1479
+ }
1480
+ },
1481
+ $_applyAttrsToTarget(e) {
1482
+ for (const t of this.$_targetNodes)
1483
+ for (const o in e) {
1484
+ const n = e[o];
1485
+ n == null ? t.removeAttribute(o) : t.setAttribute(o, n);
1486
+ }
1487
+ },
1488
+ $_updateParentShownChildren(e) {
1489
+ let t = this.parentPopper;
1490
+ for (; t; )
1491
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.$_pendingHide && t.hide()), t = t.parentPopper;
1492
+ },
1493
+ $_isAimingPopper() {
1494
+ const e = this.$_referenceNode.getBoundingClientRect();
1495
+ if (ue >= e.left && ue <= e.right && pe >= e.top && pe <= e.bottom) {
1496
+ const t = this.$_popperNode.getBoundingClientRect(), o = ue - U, n = pe - X, i = t.left + t.width / 2 - U + (t.top + t.height / 2) - X + t.width + t.height, s = U + o * i, r = X + n * i;
1497
+ return be(U, X, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
1498
+ be(U, X, s, r, t.left, t.top, t.right, t.top) || // Top edge
1499
+ be(U, X, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
1500
+ be(U, X, s, r, t.left, t.bottom, t.right, t.bottom);
1501
+ }
1502
+ return !1;
1503
+ }
1504
+ },
1505
+ render() {
1506
+ return this.$slots.default(this.slotData);
1507
+ }
1508
+ });
1509
+ typeof document < "u" && typeof window < "u" && (Lt ? (document.addEventListener("touchstart", gt, le ? {
1510
+ passive: !0,
1511
+ capture: !0
1512
+ } : !0), document.addEventListener("touchend", Lo, le ? {
1513
+ passive: !0,
1514
+ capture: !0
1515
+ } : !0)) : (window.addEventListener("mousedown", gt, !0), window.addEventListener("click", Ro, !0)), window.addEventListener("resize", Mo));
1516
+ function gt(e) {
1517
+ for (let t = 0; t < H.length; t++) {
1518
+ const o = H[t];
1519
+ try {
1520
+ const n = o.popperNode();
1521
+ o.$_mouseDownContains = n.contains(e.target);
1522
+ } catch {
1523
+ }
1524
+ }
1525
+ }
1526
+ function Ro(e) {
1527
+ Mt(e);
1528
+ }
1529
+ function Lo(e) {
1530
+ Mt(e, !0);
1531
+ }
1532
+ function Mt(e, t = !1) {
1533
+ const o = {};
1534
+ for (let n = H.length - 1; n >= 0; n--) {
1535
+ const i = H[n];
1536
+ try {
1537
+ const s = i.$_containsGlobalTarget = Ho(i, e);
1538
+ i.$_pendingHide = !1, requestAnimationFrame(() => {
1539
+ if (i.$_pendingHide = !1, !o[i.randomId] && wt(i, s, e)) {
1540
+ if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
1541
+ let l = i.parentPopper;
1542
+ for (; l; )
1543
+ o[l.randomId] = !0, l = l.parentPopper;
1544
+ return;
1545
+ }
1546
+ let r = i.parentPopper;
1547
+ for (; r && wt(r, r.$_containsGlobalTarget, e); )
1548
+ r.$_handleGlobalClose(e, t), r = r.parentPopper;
1549
+ }
1550
+ });
1551
+ } catch {
1552
+ }
1553
+ }
1554
+ }
1555
+ function Ho(e, t) {
1556
+ const o = e.popperNode();
1557
+ return e.$_mouseDownContains || o.contains(t.target);
1558
+ }
1559
+ function wt(e, t, o) {
1560
+ return o.closeAllPopover || o.closePopover && t || Do(e, o) && !t;
1561
+ }
1562
+ function Do(e, t) {
1563
+ if (typeof e.autoHide == "function") {
1564
+ const o = e.autoHide(t);
1565
+ return e.lastAutoHide = o, o;
1566
+ }
1567
+ return e.autoHide;
1568
+ }
1569
+ function Mo(e) {
1570
+ for (let t = 0; t < H.length; t++)
1571
+ H[t].$_computePosition(e);
1572
+ }
1573
+ function ko() {
1574
+ for (let e = 0; e < H.length; e++)
1575
+ H[e].hide();
1576
+ }
1577
+ let U = 0, X = 0, ue = 0, pe = 0;
1578
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
1579
+ U = ue, X = pe, ue = e.clientX, pe = e.clientY;
1580
+ }, le ? {
1581
+ passive: !0
1582
+ } : void 0);
1583
+ function be(e, t, o, n, i, s, r, l) {
1584
+ const a = ((r - i) * (t - s) - (l - s) * (e - i)) / ((l - s) * (o - e) - (r - i) * (n - t)), d = ((o - e) * (t - s) - (n - t) * (e - i)) / ((l - s) * (o - e) - (r - i) * (n - t));
1585
+ return a >= 0 && a <= 1 && d >= 0 && d <= 1;
1586
+ }
1587
+ const Bo = {
1588
+ extends: Dt()
1589
+ }, De = (e, t) => {
1590
+ const o = e.__vccOpts || e;
1591
+ for (const [n, i] of t)
1592
+ o[n] = i;
1593
+ return o;
1594
+ };
1595
+ function Io(e, t, o, n, i, s) {
1596
+ return q(), he("div", {
1597
+ ref: "reference",
1598
+ class: Ye(["v-popper", {
1599
+ "v-popper--shown": e.slotData.isShown
1600
+ }])
1601
+ }, [
1602
+ Se(e.$slots, "default", Xt(Kt(e.slotData)))
1603
+ ], 2);
1604
+ }
1605
+ const Fo = /* @__PURE__ */ De(Bo, [["render", Io]]);
1606
+ function Wo() {
1607
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1608
+ if (t > 0)
1609
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1610
+ var o = e.indexOf("Trident/");
1611
+ if (o > 0) {
1612
+ var n = e.indexOf("rv:");
1613
+ return parseInt(e.substring(n + 3, e.indexOf(".", n)), 10);
1614
+ }
1615
+ var i = e.indexOf("Edge/");
1616
+ return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
1617
+ }
1618
+ let xe;
1619
+ function qe() {
1620
+ qe.init || (qe.init = !0, xe = Wo() !== -1);
1621
+ }
1622
+ var Me = {
1623
+ name: "ResizeObserver",
1624
+ props: {
1625
+ emitOnMount: {
1626
+ type: Boolean,
1627
+ default: !1
1628
+ },
1629
+ ignoreWidth: {
1630
+ type: Boolean,
1631
+ default: !1
1632
+ },
1633
+ ignoreHeight: {
1634
+ type: Boolean,
1635
+ default: !1
1636
+ }
1637
+ },
1638
+ emits: [
1639
+ "notify"
1640
+ ],
1641
+ mounted() {
1642
+ qe(), Ge(() => {
1643
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1644
+ });
1645
+ const e = document.createElement("object");
1646
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", xe && this.$el.appendChild(e), e.data = "about:blank", xe || this.$el.appendChild(e);
1647
+ },
1648
+ beforeUnmount() {
1649
+ this.removeResizeHandlers();
1650
+ },
1651
+ methods: {
1652
+ compareAndNotify() {
1653
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
1654
+ },
1655
+ emitSize() {
1656
+ this.$emit("notify", {
1657
+ width: this._w,
1658
+ height: this._h
1659
+ });
1660
+ },
1661
+ addResizeHandlers() {
1662
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1663
+ },
1664
+ removeResizeHandlers() {
1665
+ this._resizeObject && this._resizeObject.onload && (!xe && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1666
+ }
1667
+ }
1668
+ };
1669
+ const jo = /* @__PURE__ */ Jt("data-v-b329ee4c");
1670
+ Yt("data-v-b329ee4c");
1671
+ const Vo = {
1672
+ class: "resize-observer",
1673
+ tabindex: "-1"
1674
+ };
1675
+ Ut();
1676
+ const qo = /* @__PURE__ */ jo((e, t, o, n, i, s) => (q(), ze("div", Vo)));
1677
+ Me.render = qo;
1678
+ Me.__scopeId = "data-v-b329ee4c";
1679
+ Me.__file = "src/components/ResizeObserver.vue";
1680
+ const kt = (e = "theme") => ({
1681
+ computed: {
1682
+ themeClass() {
1683
+ return zo(this[e]);
1684
+ }
1685
+ }
1686
+ }), Go = Ee({
1687
+ name: "VPopperContent",
1688
+ components: {
1689
+ ResizeObserver: Me
1690
+ },
1691
+ mixins: [
1692
+ kt()
1693
+ ],
1694
+ props: {
1695
+ popperId: String,
1696
+ theme: String,
1697
+ shown: Boolean,
1698
+ mounted: Boolean,
1699
+ skipTransition: Boolean,
1700
+ autoHide: Boolean,
1701
+ handleResize: Boolean,
1702
+ classes: Object,
1703
+ result: Object
1704
+ },
1705
+ emits: [
1706
+ "hide",
1707
+ "resize"
1708
+ ],
1709
+ methods: {
1710
+ toPx(e) {
1711
+ return e != null && !isNaN(e) ? `${e}px` : null;
1712
+ }
1713
+ }
1714
+ }), Yo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Uo = {
1715
+ ref: "inner",
1716
+ class: "v-popper__inner"
1717
+ }, Xo = /* @__PURE__ */ oe("div", { class: "v-popper__arrow-outer" }, null, -1), Ko = /* @__PURE__ */ oe("div", { class: "v-popper__arrow-inner" }, null, -1), Jo = [
1718
+ Xo,
1719
+ Ko
1720
+ ];
1721
+ function Qo(e, t, o, n, i, s) {
1722
+ const r = fe("ResizeObserver");
1723
+ return q(), he("div", {
1724
+ id: e.popperId,
1725
+ ref: "popover",
1726
+ class: Ye(["v-popper__popper", [
1727
+ e.themeClass,
1728
+ e.classes.popperClass,
1729
+ {
1730
+ "v-popper__popper--shown": e.shown,
1731
+ "v-popper__popper--hidden": !e.shown,
1732
+ "v-popper__popper--show-from": e.classes.showFrom,
1733
+ "v-popper__popper--show-to": e.classes.showTo,
1734
+ "v-popper__popper--hide-from": e.classes.hideFrom,
1735
+ "v-popper__popper--hide-to": e.classes.hideTo,
1736
+ "v-popper__popper--skip-transition": e.skipTransition,
1737
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
1738
+ "v-popper__popper--no-positioning": !e.result
1739
+ }
1740
+ ]]),
1741
+ style: ke(e.result ? {
1742
+ position: e.result.strategy,
1743
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
1744
+ } : void 0),
1745
+ "aria-hidden": e.shown ? "false" : "true",
1746
+ tabindex: e.autoHide ? 0 : void 0,
1747
+ "data-popper-placement": e.result ? e.result.placement : void 0,
1748
+ onKeyup: t[2] || (t[2] = Qt((l) => e.autoHide && e.$emit("hide"), ["esc"]))
1749
+ }, [
1750
+ oe("div", {
1751
+ class: "v-popper__backdrop",
1752
+ onClick: t[0] || (t[0] = (l) => e.autoHide && e.$emit("hide"))
1753
+ }),
1754
+ oe("div", {
1755
+ class: "v-popper__wrapper",
1756
+ style: ke(e.result ? {
1757
+ transformOrigin: e.result.transformOrigin
1758
+ } : void 0)
1759
+ }, [
1760
+ oe("div", Uo, [
1761
+ e.mounted ? (q(), he(Zt, { key: 0 }, [
1762
+ oe("div", null, [
1763
+ Se(e.$slots, "default")
1764
+ ]),
1765
+ e.handleResize ? (q(), ze(r, {
1766
+ key: 0,
1767
+ onNotify: t[1] || (t[1] = (l) => e.$emit("resize", l))
1768
+ })) : et("", !0)
1769
+ ], 64)) : et("", !0)
1770
+ ], 512),
1771
+ oe("div", {
1772
+ ref: "arrow",
1773
+ class: "v-popper__arrow-container",
1774
+ style: ke(e.result ? {
1775
+ left: e.toPx(e.result.arrow.x),
1776
+ top: e.toPx(e.result.arrow.y)
1777
+ } : void 0)
1778
+ }, Jo, 4)
1779
+ ], 4)
1780
+ ], 46, Yo);
1781
+ }
1782
+ const Bt = /* @__PURE__ */ De(Go, [["render", Qo]]), It = {
1783
+ methods: {
1784
+ show(...e) {
1785
+ return this.$refs.popper.show(...e);
1786
+ },
1787
+ hide(...e) {
1788
+ return this.$refs.popper.hide(...e);
1789
+ },
1790
+ dispose(...e) {
1791
+ return this.$refs.popper.dispose(...e);
1792
+ },
1793
+ onResize(...e) {
1794
+ return this.$refs.popper.onResize(...e);
1795
+ }
1796
+ }
1797
+ }, Zo = Ee({
1798
+ name: "VPopperWrapper",
1799
+ components: {
1800
+ Popper: Fo,
1801
+ PopperContent: Bt
1802
+ },
1803
+ mixins: [
1804
+ It,
1805
+ kt("finalTheme")
1806
+ ],
1807
+ props: {
1808
+ theme: {
1809
+ type: String,
1810
+ default: null
1811
+ },
1812
+ referenceNode: {
1813
+ type: Function,
1814
+ default: null
1815
+ },
1816
+ shown: {
1817
+ type: Boolean,
1818
+ default: !1
1819
+ },
1820
+ showGroup: {
1821
+ type: String,
1822
+ default: null
1823
+ },
1824
+ // eslint-disable-next-line vue/require-prop-types
1825
+ ariaId: {
1826
+ default: null
1827
+ },
1828
+ disabled: {
1829
+ type: Boolean,
1830
+ default: void 0
1831
+ },
1832
+ positioningDisabled: {
1833
+ type: Boolean,
1834
+ default: void 0
1835
+ },
1836
+ placement: {
1837
+ type: String,
1838
+ default: void 0
1839
+ },
1840
+ delay: {
1841
+ type: [String, Number, Object],
1842
+ default: void 0
1843
+ },
1844
+ distance: {
1845
+ type: [Number, String],
1846
+ default: void 0
1847
+ },
1848
+ skidding: {
1849
+ type: [Number, String],
1850
+ default: void 0
1851
+ },
1852
+ triggers: {
1853
+ type: Array,
1854
+ default: void 0
1855
+ },
1856
+ showTriggers: {
1857
+ type: [Array, Function],
1858
+ default: void 0
1859
+ },
1860
+ hideTriggers: {
1861
+ type: [Array, Function],
1862
+ default: void 0
1863
+ },
1864
+ popperTriggers: {
1865
+ type: Array,
1866
+ default: void 0
1867
+ },
1868
+ popperShowTriggers: {
1869
+ type: [Array, Function],
1870
+ default: void 0
1871
+ },
1872
+ popperHideTriggers: {
1873
+ type: [Array, Function],
1874
+ default: void 0
1875
+ },
1876
+ container: {
1877
+ type: [String, Object, Element, Boolean],
1878
+ default: void 0
1879
+ },
1880
+ boundary: {
1881
+ type: [String, Element],
1882
+ default: void 0
1883
+ },
1884
+ strategy: {
1885
+ type: String,
1886
+ default: void 0
1887
+ },
1888
+ autoHide: {
1889
+ type: [Boolean, Function],
1890
+ default: void 0
1891
+ },
1892
+ handleResize: {
1893
+ type: Boolean,
1894
+ default: void 0
1895
+ },
1896
+ instantMove: {
1897
+ type: Boolean,
1898
+ default: void 0
1899
+ },
1900
+ eagerMount: {
1901
+ type: Boolean,
1902
+ default: void 0
1903
+ },
1904
+ popperClass: {
1905
+ type: [String, Array, Object],
1906
+ default: void 0
1907
+ },
1908
+ computeTransformOrigin: {
1909
+ type: Boolean,
1910
+ default: void 0
1911
+ },
1912
+ /**
1913
+ * @deprecated
1914
+ */
1915
+ autoMinSize: {
1916
+ type: Boolean,
1917
+ default: void 0
1918
+ },
1919
+ autoSize: {
1920
+ type: [Boolean, String],
1921
+ default: void 0
1922
+ },
1923
+ /**
1924
+ * @deprecated
1925
+ */
1926
+ autoMaxSize: {
1927
+ type: Boolean,
1928
+ default: void 0
1929
+ },
1930
+ autoBoundaryMaxSize: {
1931
+ type: Boolean,
1932
+ default: void 0
1933
+ },
1934
+ preventOverflow: {
1935
+ type: Boolean,
1936
+ default: void 0
1937
+ },
1938
+ overflowPadding: {
1939
+ type: [Number, String],
1940
+ default: void 0
1941
+ },
1942
+ arrowPadding: {
1943
+ type: [Number, String],
1944
+ default: void 0
1945
+ },
1946
+ arrowOverflow: {
1947
+ type: Boolean,
1948
+ default: void 0
1949
+ },
1950
+ flip: {
1951
+ type: Boolean,
1952
+ default: void 0
1953
+ },
1954
+ shift: {
1955
+ type: Boolean,
1956
+ default: void 0
1957
+ },
1958
+ shiftCrossAxis: {
1959
+ type: Boolean,
1960
+ default: void 0
1961
+ },
1962
+ noAutoFocus: {
1963
+ type: Boolean,
1964
+ default: void 0
1965
+ },
1966
+ disposeTimeout: {
1967
+ type: Number,
1968
+ default: void 0
1969
+ }
1970
+ },
1971
+ emits: {
1972
+ show: () => !0,
1973
+ hide: () => !0,
1974
+ "update:shown": (e) => !0,
1975
+ "apply-show": () => !0,
1976
+ "apply-hide": () => !0,
1977
+ "close-group": () => !0,
1978
+ "close-directive": () => !0,
1979
+ "auto-hide": () => !0,
1980
+ resize: () => !0
1981
+ },
1982
+ computed: {
1983
+ finalTheme() {
1984
+ return this.theme ?? this.$options.vPopperTheme;
1985
+ }
1986
+ },
1987
+ methods: {
1988
+ getTargetNodes() {
1989
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
1990
+ }
1991
+ }
1992
+ });
1993
+ function en(e, t, o, n, i, s) {
1994
+ const r = fe("PopperContent"), l = fe("Popper");
1995
+ return q(), ze(l, $t({ ref: "popper" }, e.$props, {
1996
+ theme: e.finalTheme,
1997
+ "target-nodes": e.getTargetNodes,
1998
+ "popper-node": () => e.$refs.popperContent.$el,
1999
+ class: [
2000
+ e.themeClass
2001
+ ],
2002
+ onShow: t[0] || (t[0] = () => e.$emit("show")),
2003
+ onHide: t[1] || (t[1] = () => e.$emit("hide")),
2004
+ "onUpdate:shown": t[2] || (t[2] = (a) => e.$emit("update:shown", a)),
2005
+ onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2006
+ onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2007
+ onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
2008
+ onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
2009
+ onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2010
+ onResize: t[8] || (t[8] = () => e.$emit("resize"))
2011
+ }), {
2012
+ default: Te(({
2013
+ popperId: a,
2014
+ isShown: d,
2015
+ shouldMountContent: h,
2016
+ skipTransition: p,
2017
+ autoHide: u,
2018
+ show: c,
2019
+ hide: f,
2020
+ handleResize: m,
2021
+ onResize: w,
2022
+ classes: g,
2023
+ result: v
2024
+ }) => [
2025
+ Se(e.$slots, "default", {
2026
+ shown: d,
2027
+ show: c,
2028
+ hide: f
2029
+ }),
2030
+ _t(r, {
2031
+ ref: "popperContent",
2032
+ "popper-id": a,
2033
+ theme: e.finalTheme,
2034
+ shown: d,
2035
+ mounted: h,
2036
+ "skip-transition": p,
2037
+ "auto-hide": u,
2038
+ "handle-resize": m,
2039
+ classes: g,
2040
+ result: v,
2041
+ onHide: f,
2042
+ onResize: w
2043
+ }, {
2044
+ default: Te(() => [
2045
+ Se(e.$slots, "popper", {
2046
+ shown: d,
2047
+ hide: f
2048
+ })
2049
+ ]),
2050
+ _: 2
2051
+ }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2052
+ ]),
2053
+ _: 3
2054
+ }, 16, ["theme", "target-nodes", "popper-node", "class"]);
2055
+ }
2056
+ const Qe = /* @__PURE__ */ De(Zo, [["render", en]]);
2057
+ ({
2058
+ ...Qe
2059
+ });
2060
+ ({
2061
+ ...Qe
2062
+ });
2063
+ const tn = {
2064
+ ...Qe,
2065
+ name: "VTooltip",
2066
+ vPopperTheme: "tooltip"
2067
+ }, on = Ee({
2068
+ name: "VTooltipDirective",
2069
+ components: {
2070
+ Popper: Dt(),
2071
+ PopperContent: Bt
2072
+ },
2073
+ mixins: [
2074
+ It
2075
+ ],
2076
+ inheritAttrs: !1,
2077
+ props: {
2078
+ theme: {
2079
+ type: String,
2080
+ default: "tooltip"
2081
+ },
2082
+ html: {
2083
+ type: Boolean,
2084
+ default: (e) => Ne(e.theme, "html")
2085
+ },
2086
+ content: {
2087
+ type: [String, Number, Function],
2088
+ default: null
2089
+ },
2090
+ loadingContent: {
2091
+ type: String,
2092
+ default: (e) => Ne(e.theme, "loadingContent")
2093
+ },
2094
+ targetNodes: {
2095
+ type: Function,
2096
+ required: !0
2097
+ }
2098
+ },
2099
+ data() {
2100
+ return {
2101
+ asyncContent: null
2102
+ };
2103
+ },
2104
+ computed: {
2105
+ isContentAsync() {
2106
+ return typeof this.content == "function";
2107
+ },
2108
+ loading() {
2109
+ return this.isContentAsync && this.asyncContent == null;
2110
+ },
2111
+ finalContent() {
2112
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
2113
+ }
2114
+ },
2115
+ watch: {
2116
+ content: {
2117
+ handler() {
2118
+ this.fetchContent(!0);
2119
+ },
2120
+ immediate: !0
2121
+ },
2122
+ async finalContent() {
2123
+ await this.$nextTick(), this.$refs.popper.onResize();
2124
+ }
2125
+ },
2126
+ created() {
2127
+ this.$_fetchId = 0;
2128
+ },
2129
+ methods: {
2130
+ fetchContent(e) {
2131
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
2132
+ this.asyncContent = null, this.$_loading = !0;
2133
+ const t = ++this.$_fetchId, o = this.content(this);
2134
+ o.then ? o.then((n) => this.onResult(t, n)) : this.onResult(t, o);
2135
+ }
2136
+ },
2137
+ onResult(e, t) {
2138
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
2139
+ },
2140
+ onShow() {
2141
+ this.$_isShown = !0, this.fetchContent();
2142
+ },
2143
+ onHide() {
2144
+ this.$_isShown = !1;
2145
+ }
2146
+ }
2147
+ }), nn = ["innerHTML"], sn = ["textContent"];
2148
+ function rn(e, t, o, n, i, s) {
2149
+ const r = fe("PopperContent"), l = fe("Popper");
2150
+ return q(), ze(l, $t({ ref: "popper" }, e.$attrs, {
2151
+ theme: e.theme,
2152
+ "target-nodes": e.targetNodes,
2153
+ "popper-node": () => e.$refs.popperContent.$el,
2154
+ onApplyShow: e.onShow,
2155
+ onApplyHide: e.onHide
2156
+ }), {
2157
+ default: Te(({
2158
+ popperId: a,
2159
+ isShown: d,
2160
+ shouldMountContent: h,
2161
+ skipTransition: p,
2162
+ autoHide: u,
2163
+ hide: c,
2164
+ handleResize: f,
2165
+ onResize: m,
2166
+ classes: w,
2167
+ result: g
2168
+ }) => [
2169
+ _t(r, {
2170
+ ref: "popperContent",
2171
+ class: Ye({
2172
+ "v-popper--tooltip-loading": e.loading
2173
+ }),
2174
+ "popper-id": a,
2175
+ theme: e.theme,
2176
+ shown: d,
2177
+ mounted: h,
2178
+ "skip-transition": p,
2179
+ "auto-hide": u,
2180
+ "handle-resize": f,
2181
+ classes: w,
2182
+ result: g,
2183
+ onHide: c,
2184
+ onResize: m
2185
+ }, {
2186
+ default: Te(() => [
2187
+ e.html ? (q(), he("div", {
2188
+ key: 0,
2189
+ innerHTML: e.finalContent
2190
+ }, null, 8, nn)) : (q(), he("div", {
2191
+ key: 1,
2192
+ textContent: oo(e.finalContent)
2193
+ }, null, 8, sn))
2194
+ ]),
2195
+ _: 2
2196
+ }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2197
+ ]),
2198
+ _: 1
2199
+ }, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
2200
+ }
2201
+ const ln = /* @__PURE__ */ De(on, [["render", rn]]), Ft = "v-popper--has-tooltip";
2202
+ function an(e, t) {
2203
+ let o = e.placement;
2204
+ if (!o && t)
2205
+ for (const n of Ht)
2206
+ t[n] && (o = n);
2207
+ return o || (o = Ne(e.theme || "tooltip", "placement")), o;
2208
+ }
2209
+ function dn(e, t, o) {
2210
+ let n;
2211
+ const i = typeof t;
2212
+ return i === "string" ? n = { content: t } : t && i === "object" ? n = t : n = { content: !1 }, n.placement = an(n, o), n.targetNodes = () => [e], n.referenceNode = () => e, n;
2213
+ }
2214
+ let Fe, $e, cn = 0;
2215
+ function un() {
2216
+ if (Fe)
2217
+ return;
2218
+ $e = z([]), Fe = eo({
2219
+ name: "VTooltipDirectiveApp",
2220
+ setup() {
2221
+ return {
2222
+ directives: $e
2223
+ };
2224
+ },
2225
+ render() {
2226
+ return this.directives.map((t) => to(ln, {
2227
+ ...t.options,
2228
+ shown: t.shown || t.options.shown,
2229
+ key: t.id
2230
+ }));
2231
+ },
2232
+ devtools: {
2233
+ hide: !0
2234
+ }
2235
+ });
2236
+ const e = document.createElement("div");
2237
+ document.body.appendChild(e), Fe.mount(e);
2238
+ }
2239
+ function pn(e, t, o) {
2240
+ un();
2241
+ const n = z(dn(e, t, o)), i = z(!1), s = {
2242
+ id: cn++,
2243
+ options: n,
2244
+ shown: i
2245
+ };
2246
+ return $e.value.push(s), e.classList && e.classList.add(Ft), e.$_popper = {
2247
+ options: n,
2248
+ item: s,
2249
+ show() {
2250
+ i.value = !0;
2251
+ },
2252
+ hide() {
2253
+ i.value = !1;
2254
+ }
2255
+ };
2256
+ }
2257
+ function hn(e) {
2258
+ if (e.$_popper) {
2259
+ const t = $e.value.indexOf(e.$_popper.item);
2260
+ t !== -1 && $e.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
2261
+ }
2262
+ e.classList && e.classList.remove(Ft);
2263
+ }
2264
+ const Cn = tn;
2265
+ function Ze(e) {
2266
+ return io() ? (so(e), !0) : !1;
2267
+ }
2268
+ function M(e) {
2269
+ return typeof e == "function" ? e() : no(e);
2270
+ }
2271
+ const Wt = typeof window < "u" && typeof document < "u";
2272
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2273
+ const fn = (e) => typeof e < "u", mn = Object.prototype.toString, gn = (e) => mn.call(e) === "[object Object]", F = () => {
2274
+ }, wn = /* @__PURE__ */ vn();
2275
+ function vn() {
2276
+ var e, t;
2277
+ return Wt && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
2278
+ }
2279
+ function jt(e, t) {
2280
+ function o(...n) {
2281
+ return new Promise((i, s) => {
2282
+ Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(s);
2283
+ });
2284
+ }
2285
+ return o;
2286
+ }
2287
+ function yn(e, t = {}) {
2288
+ let o, n, i = F;
2289
+ const s = (l) => {
2290
+ clearTimeout(l), i(), i = F;
2291
+ };
2292
+ return (l) => {
2293
+ const a = M(e), d = M(t.maxWait);
2294
+ return o && s(o), a <= 0 || d !== void 0 && d <= 0 ? (n && (s(n), n = null), Promise.resolve(l())) : new Promise((h, p) => {
2295
+ i = t.rejectOnCancel ? p : h, d && !n && (n = setTimeout(() => {
2296
+ o && s(o), n = null, h(l());
2297
+ }, d)), o = setTimeout(() => {
2298
+ n && s(n), n = null, h(l());
2299
+ }, a);
2300
+ });
2301
+ };
2302
+ }
2303
+ function $n(...e) {
2304
+ let t = 0, o, n = !0, i = F, s, r, l, a, d;
2305
+ !ro(e[0]) && typeof e[0] == "object" ? { delay: r, trailing: l = !0, leading: a = !0, rejectOnCancel: d = !1 } = e[0] : [r, l = !0, a = !0, d = !1] = e;
2306
+ const h = () => {
2307
+ o && (clearTimeout(o), o = void 0, i(), i = F);
2308
+ };
2309
+ return (u) => {
2310
+ const c = M(r), f = Date.now() - t, m = () => s = u();
2311
+ return h(), c <= 0 ? (t = Date.now(), m()) : (f > c && (a || !n) ? (t = Date.now(), m()) : l && (s = new Promise((w, g) => {
2312
+ i = d ? g : w, o = setTimeout(() => {
2313
+ t = Date.now(), n = !0, w(m()), h();
2314
+ }, Math.max(0, c - f));
2315
+ })), !a && !o && (o = setTimeout(() => n = !0, c)), n = !1, s);
2316
+ };
2317
+ }
2318
+ const On = {
2319
+ mounted: "mounted",
2320
+ updated: "updated",
2321
+ unmounted: "unmounted"
2322
+ };
2323
+ function _n(e) {
2324
+ return e || Ue();
2325
+ }
2326
+ function Nn(...e) {
2327
+ if (e.length !== 1)
2328
+ return lo(...e);
2329
+ const t = e[0];
2330
+ return typeof t == "function" ? ao(co(() => ({ get: t, set: F }))) : z(t);
2331
+ }
2332
+ function bn(e, t = 200, o = {}) {
2333
+ return jt(
2334
+ yn(t, o),
2335
+ e
2336
+ );
2337
+ }
2338
+ function xn(e, t = 200, o = !1, n = !0, i = !1) {
2339
+ return jt(
2340
+ $n(t, o, n, i),
2341
+ e
2342
+ );
2343
+ }
2344
+ function Vt(e, t = !0, o) {
2345
+ _n() ? bt(e, o) : t ? e() : Ge(e);
2346
+ }
2347
+ function K(e) {
2348
+ var t;
2349
+ const o = M(e);
2350
+ return (t = o == null ? void 0 : o.$el) != null ? t : o;
2351
+ }
2352
+ const ae = Wt ? window : void 0;
2353
+ function B(...e) {
2354
+ let t, o, n, i;
2355
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, n, i] = e, t = ae) : [t, o, n, i] = e, !t)
2356
+ return F;
2357
+ Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
2358
+ const s = [], r = () => {
2359
+ s.forEach((h) => h()), s.length = 0;
2360
+ }, l = (h, p, u, c) => (h.addEventListener(p, u, c), () => h.removeEventListener(p, u, c)), a = ge(
2361
+ () => [K(t), M(i)],
2362
+ ([h, p]) => {
2363
+ if (r(), !h)
2364
+ return;
2365
+ const u = gn(p) ? { ...p } : p;
2366
+ s.push(
2367
+ ...o.flatMap((c) => n.map((f) => l(h, c, f, u)))
2368
+ );
2369
+ },
2370
+ { immediate: !0, flush: "post" }
2371
+ ), d = () => {
2372
+ a(), r();
2373
+ };
2374
+ return Ze(d), d;
2375
+ }
2376
+ let vt = !1;
2377
+ function En(e, t, o = {}) {
2378
+ const { window: n = ae, ignore: i = [], capture: s = !0, detectIframe: r = !1 } = o;
2379
+ if (!n)
2380
+ return F;
2381
+ wn && !vt && (vt = !0, Array.from(n.document.body.children).forEach((u) => u.addEventListener("click", F)), n.document.documentElement.addEventListener("click", F));
2382
+ let l = !0;
2383
+ const a = (u) => i.some((c) => {
2384
+ if (typeof c == "string")
2385
+ return Array.from(n.document.querySelectorAll(c)).some((f) => f === u.target || u.composedPath().includes(f));
2386
+ {
2387
+ const f = K(c);
2388
+ return f && (u.target === f || u.composedPath().includes(f));
2389
+ }
2390
+ }), h = [
2391
+ B(n, "click", (u) => {
2392
+ const c = K(e);
2393
+ if (!(!c || c === u.target || u.composedPath().includes(c))) {
2394
+ if (u.detail === 0 && (l = !a(u)), !l) {
2395
+ l = !0;
2396
+ return;
2397
+ }
2398
+ t(u);
2399
+ }
2400
+ }, { passive: !0, capture: s }),
2401
+ B(n, "pointerdown", (u) => {
2402
+ const c = K(e);
2403
+ l = !a(u) && !!(c && !u.composedPath().includes(c));
2404
+ }, { passive: !0 }),
2405
+ r && B(n, "blur", (u) => {
2406
+ setTimeout(() => {
2407
+ var c;
2408
+ const f = K(e);
2409
+ ((c = n.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(f != null && f.contains(n.document.activeElement)) && t(u);
2410
+ }, 0);
2411
+ })
2412
+ ].filter(Boolean);
2413
+ return () => h.forEach((u) => u());
2414
+ }
2415
+ function Sn() {
2416
+ const e = z(!1), t = Ue();
2417
+ return t && bt(() => {
2418
+ e.value = !0;
2419
+ }, t), e;
2420
+ }
2421
+ function qt(e) {
2422
+ const t = Sn();
2423
+ return me(() => (t.value, !!e()));
2424
+ }
2425
+ function Tn(e, t = {}) {
2426
+ const { window: o = ae } = t, n = qt(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
2427
+ let i;
2428
+ const s = z(!1), r = (d) => {
2429
+ s.value = d.matches;
2430
+ }, l = () => {
2431
+ i && ("removeEventListener" in i ? i.removeEventListener("change", r) : i.removeListener(r));
2432
+ }, a = uo(() => {
2433
+ n.value && (l(), i = o.matchMedia(M(e)), "addEventListener" in i ? i.addEventListener("change", r) : i.addListener(r), s.value = i.matches);
2434
+ });
2435
+ return Ze(() => {
2436
+ a(), l(), i = void 0;
2437
+ }), s;
2438
+ }
2439
+ function Pn(e) {
2440
+ return JSON.parse(JSON.stringify(e));
2441
+ }
2442
+ function zn(e, t, o = {}) {
2443
+ const { window: n = ae, ...i } = o;
2444
+ let s;
2445
+ const r = qt(() => n && "ResizeObserver" in n), l = () => {
2446
+ s && (s.disconnect(), s = void 0);
2447
+ }, a = me(() => Array.isArray(e) ? e.map((p) => K(p)) : [K(e)]), d = ge(
2448
+ a,
2449
+ (p) => {
2450
+ if (l(), r.value && n) {
2451
+ s = new ResizeObserver(t);
2452
+ for (const u of p)
2453
+ u && s.observe(u, i);
2454
+ }
2455
+ },
2456
+ { immediate: !0, flush: "post" }
2457
+ ), h = () => {
2458
+ l(), d();
2459
+ };
2460
+ return Ze(h), {
2461
+ isSupported: r,
2462
+ stop: h
2463
+ };
2464
+ }
2465
+ const yt = 1;
2466
+ function Rn(e, t = {}) {
2467
+ const {
2468
+ throttle: o = 0,
2469
+ idle: n = 200,
2470
+ onStop: i = F,
2471
+ onScroll: s = F,
2472
+ offset: r = {
2473
+ left: 0,
2474
+ right: 0,
2475
+ top: 0,
2476
+ bottom: 0
2477
+ },
2478
+ eventListenerOptions: l = {
2479
+ capture: !1,
2480
+ passive: !0
2481
+ },
2482
+ behavior: a = "auto",
2483
+ window: d = ae,
2484
+ onError: h = (y) => {
2485
+ console.error(y);
2486
+ }
2487
+ } = t, p = z(0), u = z(0), c = me({
2488
+ get() {
2489
+ return p.value;
2490
+ },
2491
+ set(y) {
2492
+ m(y, void 0);
2493
+ }
2494
+ }), f = me({
2495
+ get() {
2496
+ return u.value;
2497
+ },
2498
+ set(y) {
2499
+ m(void 0, y);
2500
+ }
2501
+ });
2502
+ function m(y, E) {
2503
+ var S, x, O, A;
2504
+ if (!d)
2505
+ return;
2506
+ const P = M(e);
2507
+ if (!P)
2508
+ return;
2509
+ (O = P instanceof Document ? d.document.body : P) == null || O.scrollTo({
2510
+ top: (S = M(E)) != null ? S : f.value,
2511
+ left: (x = M(y)) != null ? x : c.value,
2512
+ behavior: M(a)
2513
+ });
2514
+ const C = ((A = P == null ? void 0 : P.document) == null ? void 0 : A.documentElement) || (P == null ? void 0 : P.documentElement) || P;
2515
+ c != null && (p.value = C.scrollLeft), f != null && (u.value = C.scrollTop);
2516
+ }
2517
+ const w = z(!1), g = tt({
2518
+ left: !0,
2519
+ right: !1,
2520
+ top: !0,
2521
+ bottom: !1
2522
+ }), v = tt({
2523
+ left: !1,
2524
+ right: !1,
2525
+ top: !1,
2526
+ bottom: !1
2527
+ }), $ = (y) => {
2528
+ w.value && (w.value = !1, v.left = !1, v.right = !1, v.top = !1, v.bottom = !1, i(y));
2529
+ }, T = bn($, o + n), b = (y) => {
2530
+ var E;
2531
+ if (!d)
2532
+ return;
2533
+ const S = ((E = y == null ? void 0 : y.document) == null ? void 0 : E.documentElement) || (y == null ? void 0 : y.documentElement) || K(y), { display: x, flexDirection: O } = getComputedStyle(S), A = S.scrollLeft;
2534
+ v.left = A < p.value, v.right = A > p.value;
2535
+ const P = Math.abs(A) <= (r.left || 0), C = Math.abs(A) + S.clientWidth >= S.scrollWidth - (r.right || 0) - yt;
2536
+ x === "flex" && O === "row-reverse" ? (g.left = C, g.right = P) : (g.left = P, g.right = C), p.value = A;
2537
+ let R = S.scrollTop;
2538
+ y === d.document && !R && (R = d.document.body.scrollTop), v.top = R < u.value, v.bottom = R > u.value;
2539
+ const D = Math.abs(R) <= (r.top || 0), L = Math.abs(R) + S.clientHeight >= S.scrollHeight - (r.bottom || 0) - yt;
2540
+ x === "flex" && O === "column-reverse" ? (g.top = L, g.bottom = D) : (g.top = D, g.bottom = L), u.value = R;
2541
+ }, N = (y) => {
2542
+ var E;
2543
+ if (!d)
2544
+ return;
2545
+ const S = (E = y.target.documentElement) != null ? E : y.target;
2546
+ b(S), w.value = !0, T(y), s(y);
2547
+ };
2548
+ return B(
2549
+ e,
2550
+ "scroll",
2551
+ o ? xn(N, o, !0, !1) : N,
2552
+ l
2553
+ ), Vt(() => {
2554
+ try {
2555
+ const y = M(e);
2556
+ if (!y)
2557
+ return;
2558
+ b(y);
2559
+ } catch (y) {
2560
+ h(y);
2561
+ }
2562
+ }), B(
2563
+ e,
2564
+ "scrollend",
2565
+ $,
2566
+ l
2567
+ ), {
2568
+ x: c,
2569
+ y: f,
2570
+ isScrolling: w,
2571
+ arrivedState: g,
2572
+ directions: v,
2573
+ measure() {
2574
+ const y = M(e);
2575
+ d && y && b(y);
2576
+ }
2577
+ };
2578
+ }
2579
+ function Ln(e, t, o, n = {}) {
2580
+ var i, s, r;
2581
+ const {
2582
+ clone: l = !1,
2583
+ passive: a = !1,
2584
+ eventName: d,
2585
+ deep: h = !1,
2586
+ defaultValue: p,
2587
+ shouldEmit: u
2588
+ } = n, c = Ue(), f = o || (c == null ? void 0 : c.emit) || ((i = c == null ? void 0 : c.$emit) == null ? void 0 : i.bind(c)) || ((r = (s = c == null ? void 0 : c.proxy) == null ? void 0 : s.$emit) == null ? void 0 : r.bind(c == null ? void 0 : c.proxy));
2589
+ let m = d;
2590
+ t || (t = "modelValue"), m = m || `update:${t.toString()}`;
2591
+ const w = ($) => l ? typeof l == "function" ? l($) : Pn($) : $, g = () => fn(e[t]) ? w(e[t]) : p, v = ($) => {
2592
+ u ? u($) && f(m, $) : f(m, $);
2593
+ };
2594
+ if (a) {
2595
+ const $ = g(), T = z($);
2596
+ let b = !1;
2597
+ return ge(
2598
+ () => e[t],
2599
+ (N) => {
2600
+ b || (b = !0, T.value = w(N), Ge(() => b = !1));
2601
+ }
2602
+ ), ge(
2603
+ T,
2604
+ (N) => {
2605
+ !b && (N !== e[t] || h) && v(N);
2606
+ },
2607
+ { deep: h }
2608
+ ), T;
2609
+ } else
2610
+ return me({
2611
+ get() {
2612
+ return g();
2613
+ },
2614
+ set($) {
2615
+ v($);
2616
+ }
2617
+ });
2618
+ }
2619
+ function Hn(e = {}) {
2620
+ const {
2621
+ window: t = ae,
2622
+ initialWidth: o = Number.POSITIVE_INFINITY,
2623
+ initialHeight: n = Number.POSITIVE_INFINITY,
2624
+ listenOrientation: i = !0,
2625
+ includeScrollbar: s = !0
2626
+ } = e, r = z(o), l = z(n), a = () => {
2627
+ t && (s ? (r.value = t.innerWidth, l.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, l.value = t.document.documentElement.clientHeight));
2628
+ };
2629
+ if (a(), Vt(a), B("resize", a, { passive: !0 }), i) {
2630
+ const d = Tn("(orientation: portrait)");
2631
+ ge(d, () => a());
2632
+ }
2633
+ return { width: r, height: l };
2634
+ }
2635
+ function Dn(e = 5e3) {
2636
+ const t = z([]);
2637
+ let o = 1;
2638
+ return {
2639
+ notifications: t,
2640
+ addNotification: (s) => {
2641
+ const r = { ...s, id: o++ };
2642
+ t.value.push(r), setTimeout(() => {
2643
+ const l = t.value.indexOf(r);
2644
+ l !== -1 && t.value.splice(l, 1);
2645
+ }, e);
2646
+ },
2647
+ removeNotificationById: (s) => {
2648
+ const r = t.value.findIndex(
2649
+ (l) => l.id === s
2650
+ );
2651
+ r !== -1 && t.value.splice(r, 1);
2652
+ }
2653
+ };
2654
+ }
2655
+ function Mn() {
2656
+ const e = z(0);
2657
+ return {
2658
+ tabIndex: e,
2659
+ updateTabIndex: (o) => {
2660
+ e.value = o;
2661
+ }
2662
+ };
2663
+ }
2664
+ function kn() {
2665
+ const e = (i) => new Promise((s) => setTimeout(s, i)), o = "RN-ui-tool-chip";
2666
+ return {
2667
+ hideAllPoppers: ko,
2668
+ showPopper: ({
2669
+ name: i,
2670
+ element: s,
2671
+ message: r,
2672
+ placement: l = "auto",
2673
+ hasDone: a = !0,
2674
+ timeout: d = 5e3,
2675
+ autoHideOnUserInteraction: h = !0,
2676
+ displayOnce: p = !1,
2677
+ strategy: u = "absolute"
2678
+ }) => {
2679
+ const c = pn(
2680
+ s,
2681
+ {
2682
+ triggers: [],
2683
+ theme: "tooltip",
2684
+ placement: l,
2685
+ shiftCrossAxis: !0,
2686
+ strategy: u,
2687
+ content: `
2688
+ <div id="${i}" class="${o}">
2689
+ <div class="${o}-content">
2690
+ <div><span class="${o}-text RN-text--size-body">${r}</span></div>
2691
+ ${a ? `<button class="${o}-done" id="${i}-done">OK</button>` : ""}
2692
+ </div>
2693
+ </div>
2694
+ `,
2695
+ html: !0
2696
+ },
2697
+ null
2698
+ ), f = () => {
2699
+ const w = `tooltip-shown-${i}`;
2700
+ localStorage.getItem(w) || c.show();
2701
+ }, m = async () => {
2702
+ if (p) {
2703
+ const w = `tooltip-shown-${i}`;
2704
+ localStorage.setItem(w, "true");
2705
+ }
2706
+ c.hide(), await e(100), hn(s);
2707
+ };
2708
+ f(), setTimeout(() => {
2709
+ B(
2710
+ document.getElementById(`${i}-done`),
2711
+ "click",
2712
+ m
2713
+ ), h && (B(document, "click", m), B(document, "touchmove", m), B(document, "scroll", m), B(window, "scroll", m));
2714
+ }, 500), d != null && setTimeout(m, d);
2715
+ }
2716
+ };
2717
+ }
2718
+ function Bn() {
2719
+ const e = z(""), t = z(!1), o = z(""), n = z(() => {
2720
+ }), i = ({ _title: l = "", _content: a = "", _confirmHandler: d = () => {
2721
+ } }) => {
2722
+ e.value = l, o.value = a, n.value = d, t.value = !0;
2723
+ }, s = () => {
2724
+ t.value = !1, e.value = "", o.value = "", n.value = () => {
2725
+ };
2726
+ };
2727
+ return {
2728
+ visible: t,
2729
+ title: e,
2730
+ content: o,
2731
+ confirmHandler: n,
2732
+ show: i,
2733
+ hide: s,
2734
+ confirm: () => {
2735
+ n.value(), s();
2736
+ }
2737
+ };
2738
+ }
2739
+ export {
2740
+ Cn as W,
2741
+ xn as a,
2742
+ Vt as b,
2743
+ Ze as c,
2744
+ On as d,
2745
+ Nn as e,
2746
+ Wt as f,
2747
+ wn as g,
2748
+ Ln as h,
2749
+ gn as i,
2750
+ Rn as j,
2751
+ Hn as k,
2752
+ zn as l,
2753
+ Dn as m,
2754
+ F as n,
2755
+ En as o,
2756
+ Mn as p,
2757
+ kn as q,
2758
+ Bn as r,
2759
+ M as t,
2760
+ bn as u
2761
+ };