react-luminus-components 2.1.8 → 2.1.10

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.
Files changed (48) hide show
  1. package/dist/.vite/manifest.json +191 -50
  2. package/dist/Alert-BApdinGX.cjs +1 -0
  3. package/dist/Alert-D2Bw906t.js +495 -0
  4. package/dist/DelegationContext-B1WXROG2.cjs +201 -0
  5. package/dist/DelegationContext-CCnk58PI.js +3156 -0
  6. package/dist/HelmetContext-ChKPef74.js +49 -0
  7. package/dist/HelmetContext-DDQ-Phg7.cjs +1 -0
  8. package/dist/PrimaryButton-D7r0m8xi.js +742 -0
  9. package/dist/PrimaryButton-D91b3Dmv.cjs +1 -0
  10. package/dist/SimpleTooltip-B00uLuVM.cjs +1 -0
  11. package/dist/SimpleTooltip-dwOOgecT.js +1642 -0
  12. package/dist/Typography-C5KJzU5O.js +1627 -0
  13. package/dist/Typography-Fo21SeyJ.cjs +20 -0
  14. package/dist/UserContext-45ZxeQHB.cjs +1 -0
  15. package/dist/UserContext-ZsTsf5Xe.js +270 -0
  16. package/dist/contexts.cjs.js +1 -1
  17. package/dist/contexts.es.js +1773 -852
  18. package/dist/dateUtils-CXm9PEh6.cjs +1 -0
  19. package/dist/dateUtils-ayErBYbI.js +1488 -0
  20. package/dist/hooks.cjs.js +1 -1
  21. package/dist/hooks.es.js +118 -123
  22. package/dist/index-4IYT9u10.js +95 -0
  23. package/dist/index-jmbq5h95.cjs +25 -0
  24. package/dist/layout.cjs.js +1 -1
  25. package/dist/layout.es.js +97 -98
  26. package/dist/localStorageUtils-BSATUi5m.cjs +1 -0
  27. package/dist/localStorageUtils-DNgjNynk.js +1070 -0
  28. package/dist/main.cjs.js +56 -7
  29. package/dist/main.es.js +36401 -11370
  30. package/dist/models/texts/SubstitutionsTexts.d.ts +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/useIsFormDirty-76y8Dca-.cjs +1 -0
  33. package/dist/useIsFormDirty-Ba5uhPH7.js +3257 -0
  34. package/dist/useWindowSize-7W91GsJQ.js +56 -0
  35. package/dist/useWindowSize-CLoDaEYh.cjs +1 -0
  36. package/dist/utils.cjs.js +1 -1
  37. package/dist/utils.es.js +79 -85
  38. package/package.json +10 -1
  39. package/dist/FormDisabledProvider-D-DRODSt.js +0 -51
  40. package/dist/FormDisabledProvider-Dt39yr7W.cjs +0 -1
  41. package/dist/localStorageUtils-CVwJ9FKd.cjs +0 -1
  42. package/dist/localStorageUtils-TeLq8MHE.js +0 -59
  43. package/dist/nivo-bar-D6NJLYWS.js +0 -39616
  44. package/dist/nivo-bar-SBWBmyeI.cjs +0 -293
  45. package/dist/useIsFormDirty-CZ4jNRFn.js +0 -117
  46. package/dist/useIsFormDirty-Crsu8mjo.cjs +0 -1
  47. package/dist/useLocalStorageState-Ca7olZgH.cjs +0 -1
  48. package/dist/useLocalStorageState-DtBc-C2W.js +0 -25
@@ -0,0 +1,1642 @@
1
+ import { jsx as $, jsxs as $e, Fragment as rr } from "react/jsx-runtime";
2
+ import { a as se, c as Pt } from "./index-4IYT9u10.js";
3
+ import { _ as nr, C as or, v as ir, w as Tt, z as Ne, u as Fe, q as Ct, y as fe, A as ar, n as sr, r as st, x as cr, e as re, l as Dt, B as ct, k as Mt, m as ur, F as ut, H as We, g as lr, P as fr, o as $t } from "./Typography-C5KJzU5O.js";
4
+ import * as z from "react";
5
+ import { useRef as F, useState as ge, useCallback as N, useEffect as Z, useMemo as De, useLayoutEffect as dr, cloneElement as pr } from "react";
6
+ import vr from "react-dom";
7
+ function He() {
8
+ return He = Object.assign ? Object.assign.bind() : function(t) {
9
+ for (var e = 1; e < arguments.length; e++) {
10
+ var r = arguments[e];
11
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
12
+ }
13
+ return t;
14
+ }, He.apply(null, arguments);
15
+ }
16
+ function lt(t) {
17
+ return "default" + t.charAt(0).toUpperCase() + t.substr(1);
18
+ }
19
+ function hr(t) {
20
+ var e = mr(t, "string");
21
+ return typeof e == "symbol" ? e : String(e);
22
+ }
23
+ function mr(t, e) {
24
+ if (typeof t != "object" || t === null) return t;
25
+ var r = t[Symbol.toPrimitive];
26
+ if (r !== void 0) {
27
+ var n = r.call(t, e);
28
+ if (typeof n != "object") return n;
29
+ throw new TypeError("@@toPrimitive must return a primitive value.");
30
+ }
31
+ return String(t);
32
+ }
33
+ function jt(t, e, r) {
34
+ var n = F(t !== void 0), o = ge(e), i = o[0], u = o[1], s = t !== void 0, a = n.current;
35
+ return n.current = s, !s && a && i !== e && u(e), [s ? t : i, N(function(l) {
36
+ for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), h = 1; h < c; h++)
37
+ p[h - 1] = arguments[h];
38
+ r && r.apply(void 0, [l].concat(p)), u(l);
39
+ }, [r])];
40
+ }
41
+ function Qn(t, e) {
42
+ return Object.keys(e).reduce(function(r, n) {
43
+ var o, i = r, u = i[lt(n)], s = i[n], a = nr(i, [lt(n), n].map(hr)), l = e[n], c = jt(s, u, t[l]), p = c[0], h = c[1];
44
+ return He({}, a, (o = {}, o[n] = p, o[l] = h, o));
45
+ }, t);
46
+ }
47
+ function ft() {
48
+ return ge(null);
49
+ }
50
+ function gr() {
51
+ const t = F(!0), e = F(() => t.current);
52
+ return Z(() => (t.current = !0, () => {
53
+ t.current = !1;
54
+ }), []), e.current;
55
+ }
56
+ const Ie = 2 ** 31 - 1;
57
+ function St(t, e, r) {
58
+ const n = r - Date.now();
59
+ t.current = n <= Ie ? setTimeout(e, n) : setTimeout(() => St(t, e, r), Ie);
60
+ }
61
+ function yr() {
62
+ const t = gr(), e = F();
63
+ return or(() => clearTimeout(e.current)), De(() => {
64
+ const r = () => clearTimeout(e.current);
65
+ function n(o, i = 0) {
66
+ t() && (r(), i <= Ie ? e.current = setTimeout(o, i) : St(e, o, Date.now() + i));
67
+ }
68
+ return {
69
+ set: n,
70
+ clear: r,
71
+ handleRef: e
72
+ };
73
+ }, []);
74
+ }
75
+ var dt = Object.prototype.hasOwnProperty;
76
+ function pt(t, e, r) {
77
+ for (r of t.keys())
78
+ if (de(r, e)) return r;
79
+ }
80
+ function de(t, e) {
81
+ var r, n, o;
82
+ if (t === e) return !0;
83
+ if (t && e && (r = t.constructor) === e.constructor) {
84
+ if (r === Date) return t.getTime() === e.getTime();
85
+ if (r === RegExp) return t.toString() === e.toString();
86
+ if (r === Array) {
87
+ if ((n = t.length) === e.length)
88
+ for (; n-- && de(t[n], e[n]); ) ;
89
+ return n === -1;
90
+ }
91
+ if (r === Set) {
92
+ if (t.size !== e.size)
93
+ return !1;
94
+ for (n of t)
95
+ if (o = n, o && typeof o == "object" && (o = pt(e, o), !o) || !e.has(o)) return !1;
96
+ return !0;
97
+ }
98
+ if (r === Map) {
99
+ if (t.size !== e.size)
100
+ return !1;
101
+ for (n of t)
102
+ if (o = n[0], o && typeof o == "object" && (o = pt(e, o), !o) || !de(n[1], e.get(o)))
103
+ return !1;
104
+ return !0;
105
+ }
106
+ if (r === ArrayBuffer)
107
+ t = new Uint8Array(t), e = new Uint8Array(e);
108
+ else if (r === DataView) {
109
+ if ((n = t.byteLength) === e.byteLength)
110
+ for (; n-- && t.getInt8(n) === e.getInt8(n); ) ;
111
+ return n === -1;
112
+ }
113
+ if (ArrayBuffer.isView(t)) {
114
+ if ((n = t.byteLength) === e.byteLength)
115
+ for (; n-- && t[n] === e[n]; ) ;
116
+ return n === -1;
117
+ }
118
+ if (!r || typeof t == "object") {
119
+ n = 0;
120
+ for (r in t)
121
+ if (dt.call(t, r) && ++n && !dt.call(e, r) || !(r in e) || !de(t[r], e[r])) return !1;
122
+ return Object.keys(e).length === n;
123
+ }
124
+ }
125
+ return t !== t && e !== e;
126
+ }
127
+ function wr(t) {
128
+ const e = ir();
129
+ return [t[0], N((r) => {
130
+ if (e())
131
+ return t[1](r);
132
+ }, [e, t[1]])];
133
+ }
134
+ var j = "top", W = "bottom", H = "right", S = "left", _e = "auto", ye = [j, W, H, S], ne = "start", he = "end", br = "clippingParents", Bt = "viewport", le = "popper", Or = "reference", vt = /* @__PURE__ */ ye.reduce(function(t, e) {
135
+ return t.concat([e + "-" + ne, e + "-" + he]);
136
+ }, []), Lt = /* @__PURE__ */ [].concat(ye, [_e]).reduce(function(t, e) {
137
+ return t.concat([e, e + "-" + ne, e + "-" + he]);
138
+ }, []), xr = "beforeRead", Er = "read", Rr = "afterRead", Ar = "beforeMain", Pr = "main", Tr = "afterMain", Cr = "beforeWrite", Dr = "write", Mr = "afterWrite", $r = [xr, Er, Rr, Ar, Pr, Tr, Cr, Dr, Mr];
139
+ function U(t) {
140
+ return t.split("-")[0];
141
+ }
142
+ function k(t) {
143
+ if (t == null)
144
+ return window;
145
+ if (t.toString() !== "[object Window]") {
146
+ var e = t.ownerDocument;
147
+ return e && e.defaultView || window;
148
+ }
149
+ return t;
150
+ }
151
+ function ee(t) {
152
+ var e = k(t).Element;
153
+ return t instanceof e || t instanceof Element;
154
+ }
155
+ function V(t) {
156
+ var e = k(t).HTMLElement;
157
+ return t instanceof e || t instanceof HTMLElement;
158
+ }
159
+ function qe(t) {
160
+ if (typeof ShadowRoot > "u")
161
+ return !1;
162
+ var e = k(t).ShadowRoot;
163
+ return t instanceof e || t instanceof ShadowRoot;
164
+ }
165
+ var Q = Math.max, Me = Math.min, oe = Math.round;
166
+ function Ue() {
167
+ var t = navigator.userAgentData;
168
+ return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
169
+ return e.brand + "/" + e.version;
170
+ }).join(" ") : navigator.userAgent;
171
+ }
172
+ function kt() {
173
+ return !/^((?!chrome|android).)*safari/i.test(Ue());
174
+ }
175
+ function ie(t, e, r) {
176
+ e === void 0 && (e = !1), r === void 0 && (r = !1);
177
+ var n = t.getBoundingClientRect(), o = 1, i = 1;
178
+ e && V(t) && (o = t.offsetWidth > 0 && oe(n.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && oe(n.height) / t.offsetHeight || 1);
179
+ var u = ee(t) ? k(t) : window, s = u.visualViewport, a = !kt() && r, l = (n.left + (a && s ? s.offsetLeft : 0)) / o, c = (n.top + (a && s ? s.offsetTop : 0)) / i, p = n.width / o, h = n.height / i;
180
+ return {
181
+ width: p,
182
+ height: h,
183
+ top: c,
184
+ right: l + p,
185
+ bottom: c + h,
186
+ left: l,
187
+ x: l,
188
+ y: c
189
+ };
190
+ }
191
+ function ze(t) {
192
+ var e = ie(t), r = t.offsetWidth, n = t.offsetHeight;
193
+ return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
194
+ x: t.offsetLeft,
195
+ y: t.offsetTop,
196
+ width: r,
197
+ height: n
198
+ };
199
+ }
200
+ function Nt(t, e) {
201
+ var r = e.getRootNode && e.getRootNode();
202
+ if (t.contains(e))
203
+ return !0;
204
+ if (r && qe(r)) {
205
+ var n = e;
206
+ do {
207
+ if (n && t.isSameNode(n))
208
+ return !0;
209
+ n = n.parentNode || n.host;
210
+ } while (n);
211
+ }
212
+ return !1;
213
+ }
214
+ function X(t) {
215
+ return t ? (t.nodeName || "").toLowerCase() : null;
216
+ }
217
+ function _(t) {
218
+ return k(t).getComputedStyle(t);
219
+ }
220
+ function jr(t) {
221
+ return ["table", "td", "th"].indexOf(X(t)) >= 0;
222
+ }
223
+ function Y(t) {
224
+ return ((ee(t) ? t.ownerDocument : (
225
+ // $FlowFixMe[prop-missing]
226
+ t.document
227
+ )) || window.document).documentElement;
228
+ }
229
+ function je(t) {
230
+ return X(t) === "html" ? t : (
231
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
232
+ // $FlowFixMe[incompatible-return]
233
+ // $FlowFixMe[prop-missing]
234
+ t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
235
+ t.parentNode || // DOM Element detected
236
+ (qe(t) ? t.host : null) || // ShadowRoot detected
237
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
238
+ Y(t)
239
+ );
240
+ }
241
+ function ht(t) {
242
+ return !V(t) || // https://github.com/popperjs/popper-core/issues/837
243
+ _(t).position === "fixed" ? null : t.offsetParent;
244
+ }
245
+ function Sr(t) {
246
+ var e = /firefox/i.test(Ue()), r = /Trident/i.test(Ue());
247
+ if (r && V(t)) {
248
+ var n = _(t);
249
+ if (n.position === "fixed")
250
+ return null;
251
+ }
252
+ var o = je(t);
253
+ for (qe(o) && (o = o.host); V(o) && ["html", "body"].indexOf(X(o)) < 0; ) {
254
+ var i = _(o);
255
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
256
+ return o;
257
+ o = o.parentNode;
258
+ }
259
+ return null;
260
+ }
261
+ function we(t) {
262
+ for (var e = k(t), r = ht(t); r && jr(r) && _(r).position === "static"; )
263
+ r = ht(r);
264
+ return r && (X(r) === "html" || X(r) === "body" && _(r).position === "static") ? e : r || Sr(t) || e;
265
+ }
266
+ function Xe(t) {
267
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
268
+ }
269
+ function pe(t, e, r) {
270
+ return Q(t, Me(e, r));
271
+ }
272
+ function Br(t, e, r) {
273
+ var n = pe(t, e, r);
274
+ return n > r ? r : n;
275
+ }
276
+ function Ft() {
277
+ return {
278
+ top: 0,
279
+ right: 0,
280
+ bottom: 0,
281
+ left: 0
282
+ };
283
+ }
284
+ function Wt(t) {
285
+ return Object.assign({}, Ft(), t);
286
+ }
287
+ function Ht(t, e) {
288
+ return e.reduce(function(r, n) {
289
+ return r[n] = t, r;
290
+ }, {});
291
+ }
292
+ var Lr = function(e, r) {
293
+ return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
294
+ placement: r.placement
295
+ })) : e, Wt(typeof e != "number" ? e : Ht(e, ye));
296
+ };
297
+ function kr(t) {
298
+ var e, r = t.state, n = t.name, o = t.options, i = r.elements.arrow, u = r.modifiersData.popperOffsets, s = U(r.placement), a = Xe(s), l = [S, H].indexOf(s) >= 0, c = l ? "height" : "width";
299
+ if (!(!i || !u)) {
300
+ var p = Lr(o.padding, r), h = ze(i), d = a === "y" ? j : S, v = a === "y" ? W : H, g = r.rects.reference[c] + r.rects.reference[a] - u[a] - r.rects.popper[c], f = u[a] - r.rects.reference[a], w = we(i), m = w ? a === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = g / 2 - f / 2, y = p[d], b = m - h[c] - p[v], x = m / 2 - h[c] / 2 + O, E = pe(y, x, b), P = a;
301
+ r.modifiersData[n] = (e = {}, e[P] = E, e.centerOffset = E - x, e);
302
+ }
303
+ }
304
+ function Nr(t) {
305
+ var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
306
+ o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Nt(e.elements.popper, o) && (e.elements.arrow = o));
307
+ }
308
+ const Fr = {
309
+ name: "arrow",
310
+ enabled: !0,
311
+ phase: "main",
312
+ fn: kr,
313
+ effect: Nr,
314
+ requires: ["popperOffsets"],
315
+ requiresIfExists: ["preventOverflow"]
316
+ };
317
+ function ae(t) {
318
+ return t.split("-")[1];
319
+ }
320
+ var Wr = {
321
+ top: "auto",
322
+ right: "auto",
323
+ bottom: "auto",
324
+ left: "auto"
325
+ };
326
+ function Hr(t, e) {
327
+ var r = t.x, n = t.y, o = e.devicePixelRatio || 1;
328
+ return {
329
+ x: oe(r * o) / o || 0,
330
+ y: oe(n * o) / o || 0
331
+ };
332
+ }
333
+ function mt(t) {
334
+ var e, r = t.popper, n = t.popperRect, o = t.placement, i = t.variation, u = t.offsets, s = t.position, a = t.gpuAcceleration, l = t.adaptive, c = t.roundOffsets, p = t.isFixed, h = u.x, d = h === void 0 ? 0 : h, v = u.y, g = v === void 0 ? 0 : v, f = typeof c == "function" ? c({
335
+ x: d,
336
+ y: g
337
+ }) : {
338
+ x: d,
339
+ y: g
340
+ };
341
+ d = f.x, g = f.y;
342
+ var w = u.hasOwnProperty("x"), m = u.hasOwnProperty("y"), O = S, y = j, b = window;
343
+ if (l) {
344
+ var x = we(r), E = "clientHeight", P = "clientWidth";
345
+ if (x === k(r) && (x = Y(r), _(x).position !== "static" && s === "absolute" && (E = "scrollHeight", P = "scrollWidth")), x = x, o === j || (o === S || o === H) && i === he) {
346
+ y = W;
347
+ var A = p && x === b && b.visualViewport ? b.visualViewport.height : (
348
+ // $FlowFixMe[prop-missing]
349
+ x[E]
350
+ );
351
+ g -= A - n.height, g *= a ? 1 : -1;
352
+ }
353
+ if (o === S || (o === j || o === W) && i === he) {
354
+ O = H;
355
+ var R = p && x === b && b.visualViewport ? b.visualViewport.width : (
356
+ // $FlowFixMe[prop-missing]
357
+ x[P]
358
+ );
359
+ d -= R - n.width, d *= a ? 1 : -1;
360
+ }
361
+ }
362
+ var T = Object.assign({
363
+ position: s
364
+ }, l && Wr), B = c === !0 ? Hr({
365
+ x: d,
366
+ y: g
367
+ }, k(r)) : {
368
+ x: d,
369
+ y: g
370
+ };
371
+ if (d = B.x, g = B.y, a) {
372
+ var C;
373
+ return Object.assign({}, T, (C = {}, C[y] = m ? "0" : "", C[O] = w ? "0" : "", C.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + g + "px)" : "translate3d(" + d + "px, " + g + "px, 0)", C));
374
+ }
375
+ return Object.assign({}, T, (e = {}, e[y] = m ? g + "px" : "", e[O] = w ? d + "px" : "", e.transform = "", e));
376
+ }
377
+ function Ir(t) {
378
+ var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, u = i === void 0 ? !0 : i, s = r.roundOffsets, a = s === void 0 ? !0 : s, l = {
379
+ placement: U(e.placement),
380
+ variation: ae(e.placement),
381
+ popper: e.elements.popper,
382
+ popperRect: e.rects.popper,
383
+ gpuAcceleration: o,
384
+ isFixed: e.options.strategy === "fixed"
385
+ };
386
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, mt(Object.assign({}, l, {
387
+ offsets: e.modifiersData.popperOffsets,
388
+ position: e.options.strategy,
389
+ adaptive: u,
390
+ roundOffsets: a
391
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, mt(Object.assign({}, l, {
392
+ offsets: e.modifiersData.arrow,
393
+ position: "absolute",
394
+ adaptive: !1,
395
+ roundOffsets: a
396
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
397
+ "data-popper-placement": e.placement
398
+ });
399
+ }
400
+ const Ur = {
401
+ name: "computeStyles",
402
+ enabled: !0,
403
+ phase: "beforeWrite",
404
+ fn: Ir,
405
+ data: {}
406
+ };
407
+ var Ae = {
408
+ passive: !0
409
+ };
410
+ function Vr(t) {
411
+ var e = t.state, r = t.instance, n = t.options, o = n.scroll, i = o === void 0 ? !0 : o, u = n.resize, s = u === void 0 ? !0 : u, a = k(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);
412
+ return i && l.forEach(function(c) {
413
+ c.addEventListener("scroll", r.update, Ae);
414
+ }), s && a.addEventListener("resize", r.update, Ae), function() {
415
+ i && l.forEach(function(c) {
416
+ c.removeEventListener("scroll", r.update, Ae);
417
+ }), s && a.removeEventListener("resize", r.update, Ae);
418
+ };
419
+ }
420
+ const _r = {
421
+ name: "eventListeners",
422
+ enabled: !0,
423
+ phase: "write",
424
+ fn: function() {
425
+ },
426
+ effect: Vr,
427
+ data: {}
428
+ };
429
+ var qr = {
430
+ left: "right",
431
+ right: "left",
432
+ bottom: "top",
433
+ top: "bottom"
434
+ };
435
+ function Pe(t) {
436
+ return t.replace(/left|right|bottom|top/g, function(e) {
437
+ return qr[e];
438
+ });
439
+ }
440
+ var zr = {
441
+ start: "end",
442
+ end: "start"
443
+ };
444
+ function gt(t) {
445
+ return t.replace(/start|end/g, function(e) {
446
+ return zr[e];
447
+ });
448
+ }
449
+ function Ye(t) {
450
+ var e = k(t), r = e.pageXOffset, n = e.pageYOffset;
451
+ return {
452
+ scrollLeft: r,
453
+ scrollTop: n
454
+ };
455
+ }
456
+ function Ke(t) {
457
+ return ie(Y(t)).left + Ye(t).scrollLeft;
458
+ }
459
+ function Xr(t, e) {
460
+ var r = k(t), n = Y(t), o = r.visualViewport, i = n.clientWidth, u = n.clientHeight, s = 0, a = 0;
461
+ if (o) {
462
+ i = o.width, u = o.height;
463
+ var l = kt();
464
+ (l || !l && e === "fixed") && (s = o.offsetLeft, a = o.offsetTop);
465
+ }
466
+ return {
467
+ width: i,
468
+ height: u,
469
+ x: s + Ke(t),
470
+ y: a
471
+ };
472
+ }
473
+ function Yr(t) {
474
+ var e, r = Y(t), n = Ye(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = Q(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), u = Q(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Ke(t), a = -n.scrollTop;
475
+ return _(o || r).direction === "rtl" && (s += Q(r.clientWidth, o ? o.clientWidth : 0) - i), {
476
+ width: i,
477
+ height: u,
478
+ x: s,
479
+ y: a
480
+ };
481
+ }
482
+ function Ge(t) {
483
+ var e = _(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
484
+ return /auto|scroll|overlay|hidden/.test(r + o + n);
485
+ }
486
+ function It(t) {
487
+ return ["html", "body", "#document"].indexOf(X(t)) >= 0 ? t.ownerDocument.body : V(t) && Ge(t) ? t : It(je(t));
488
+ }
489
+ function ve(t, e) {
490
+ var r;
491
+ e === void 0 && (e = []);
492
+ var n = It(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i = k(n), u = o ? [i].concat(i.visualViewport || [], Ge(n) ? n : []) : n, s = e.concat(u);
493
+ return o ? s : (
494
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
495
+ s.concat(ve(je(u)))
496
+ );
497
+ }
498
+ function Ve(t) {
499
+ return Object.assign({}, t, {
500
+ left: t.x,
501
+ top: t.y,
502
+ right: t.x + t.width,
503
+ bottom: t.y + t.height
504
+ });
505
+ }
506
+ function Kr(t, e) {
507
+ var r = ie(t, !1, e === "fixed");
508
+ return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
509
+ }
510
+ function yt(t, e, r) {
511
+ return e === Bt ? Ve(Xr(t, r)) : ee(e) ? Kr(e, r) : Ve(Yr(Y(t)));
512
+ }
513
+ function Gr(t) {
514
+ var e = ve(je(t)), r = ["absolute", "fixed"].indexOf(_(t).position) >= 0, n = r && V(t) ? we(t) : t;
515
+ return ee(n) ? e.filter(function(o) {
516
+ return ee(o) && Nt(o, n) && X(o) !== "body";
517
+ }) : [];
518
+ }
519
+ function Jr(t, e, r, n) {
520
+ var o = e === "clippingParents" ? Gr(t) : [].concat(e), i = [].concat(o, [r]), u = i[0], s = i.reduce(function(a, l) {
521
+ var c = yt(t, l, n);
522
+ return a.top = Q(c.top, a.top), a.right = Me(c.right, a.right), a.bottom = Me(c.bottom, a.bottom), a.left = Q(c.left, a.left), a;
523
+ }, yt(t, u, n));
524
+ return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
525
+ }
526
+ function Ut(t) {
527
+ var e = t.reference, r = t.element, n = t.placement, o = n ? U(n) : null, i = n ? ae(n) : null, u = e.x + e.width / 2 - r.width / 2, s = e.y + e.height / 2 - r.height / 2, a;
528
+ switch (o) {
529
+ case j:
530
+ a = {
531
+ x: u,
532
+ y: e.y - r.height
533
+ };
534
+ break;
535
+ case W:
536
+ a = {
537
+ x: u,
538
+ y: e.y + e.height
539
+ };
540
+ break;
541
+ case H:
542
+ a = {
543
+ x: e.x + e.width,
544
+ y: s
545
+ };
546
+ break;
547
+ case S:
548
+ a = {
549
+ x: e.x - r.width,
550
+ y: s
551
+ };
552
+ break;
553
+ default:
554
+ a = {
555
+ x: e.x,
556
+ y: e.y
557
+ };
558
+ }
559
+ var l = o ? Xe(o) : null;
560
+ if (l != null) {
561
+ var c = l === "y" ? "height" : "width";
562
+ switch (i) {
563
+ case ne:
564
+ a[l] = a[l] - (e[c] / 2 - r[c] / 2);
565
+ break;
566
+ case he:
567
+ a[l] = a[l] + (e[c] / 2 - r[c] / 2);
568
+ break;
569
+ }
570
+ }
571
+ return a;
572
+ }
573
+ function me(t, e) {
574
+ e === void 0 && (e = {});
575
+ var r = e, n = r.placement, o = n === void 0 ? t.placement : n, i = r.strategy, u = i === void 0 ? t.strategy : i, s = r.boundary, a = s === void 0 ? br : s, l = r.rootBoundary, c = l === void 0 ? Bt : l, p = r.elementContext, h = p === void 0 ? le : p, d = r.altBoundary, v = d === void 0 ? !1 : d, g = r.padding, f = g === void 0 ? 0 : g, w = Wt(typeof f != "number" ? f : Ht(f, ye)), m = h === le ? Or : le, O = t.rects.popper, y = t.elements[v ? m : h], b = Jr(ee(y) ? y : y.contextElement || Y(t.elements.popper), a, c, u), x = ie(t.elements.reference), E = Ut({
576
+ reference: x,
577
+ element: O,
578
+ placement: o
579
+ }), P = Ve(Object.assign({}, O, E)), A = h === le ? P : x, R = {
580
+ top: b.top - A.top + w.top,
581
+ bottom: A.bottom - b.bottom + w.bottom,
582
+ left: b.left - A.left + w.left,
583
+ right: A.right - b.right + w.right
584
+ }, T = t.modifiersData.offset;
585
+ if (h === le && T) {
586
+ var B = T[o];
587
+ Object.keys(R).forEach(function(C) {
588
+ var M = [H, W].indexOf(C) >= 0 ? 1 : -1, D = [j, W].indexOf(C) >= 0 ? "y" : "x";
589
+ R[C] += B[D] * M;
590
+ });
591
+ }
592
+ return R;
593
+ }
594
+ function Qr(t, e) {
595
+ e === void 0 && (e = {});
596
+ var r = e, n = r.placement, o = r.boundary, i = r.rootBoundary, u = r.padding, s = r.flipVariations, a = r.allowedAutoPlacements, l = a === void 0 ? Lt : a, c = ae(n), p = c ? s ? vt : vt.filter(function(v) {
597
+ return ae(v) === c;
598
+ }) : ye, h = p.filter(function(v) {
599
+ return l.indexOf(v) >= 0;
600
+ });
601
+ h.length === 0 && (h = p);
602
+ var d = h.reduce(function(v, g) {
603
+ return v[g] = me(t, {
604
+ placement: g,
605
+ boundary: o,
606
+ rootBoundary: i,
607
+ padding: u
608
+ })[U(g)], v;
609
+ }, {});
610
+ return Object.keys(d).sort(function(v, g) {
611
+ return d[v] - d[g];
612
+ });
613
+ }
614
+ function Zr(t) {
615
+ if (U(t) === _e)
616
+ return [];
617
+ var e = Pe(t);
618
+ return [gt(t), e, gt(e)];
619
+ }
620
+ function en(t) {
621
+ var e = t.state, r = t.options, n = t.name;
622
+ if (!e.modifiersData[n]._skip) {
623
+ for (var o = r.mainAxis, i = o === void 0 ? !0 : o, u = r.altAxis, s = u === void 0 ? !0 : u, a = r.fallbackPlacements, l = r.padding, c = r.boundary, p = r.rootBoundary, h = r.altBoundary, d = r.flipVariations, v = d === void 0 ? !0 : d, g = r.allowedAutoPlacements, f = e.options.placement, w = U(f), m = w === f, O = a || (m || !v ? [Pe(f)] : Zr(f)), y = [f].concat(O).reduce(function(te, q) {
624
+ return te.concat(U(q) === _e ? Qr(e, {
625
+ placement: q,
626
+ boundary: c,
627
+ rootBoundary: p,
628
+ padding: l,
629
+ flipVariations: v,
630
+ allowedAutoPlacements: g
631
+ }) : q);
632
+ }, []), b = e.rects.reference, x = e.rects.popper, E = /* @__PURE__ */ new Map(), P = !0, A = y[0], R = 0; R < y.length; R++) {
633
+ var T = y[R], B = U(T), C = ae(T) === ne, M = [j, W].indexOf(B) >= 0, D = M ? "width" : "height", L = me(e, {
634
+ placement: T,
635
+ boundary: c,
636
+ rootBoundary: p,
637
+ altBoundary: h,
638
+ padding: l
639
+ }), I = M ? C ? H : S : C ? W : j;
640
+ b[D] > x[D] && (I = Pe(I));
641
+ var be = Pe(I), K = [];
642
+ if (i && K.push(L[B] <= 0), s && K.push(L[I] <= 0, L[be] <= 0), K.every(function(te) {
643
+ return te;
644
+ })) {
645
+ A = T, P = !1;
646
+ break;
647
+ }
648
+ E.set(T, K);
649
+ }
650
+ if (P)
651
+ for (var Oe = v ? 3 : 1, Se = function(q) {
652
+ var ue = y.find(function(Ee) {
653
+ var G = E.get(Ee);
654
+ if (G)
655
+ return G.slice(0, q).every(function(Be) {
656
+ return Be;
657
+ });
658
+ });
659
+ if (ue)
660
+ return A = ue, "break";
661
+ }, ce = Oe; ce > 0; ce--) {
662
+ var xe = Se(ce);
663
+ if (xe === "break") break;
664
+ }
665
+ e.placement !== A && (e.modifiersData[n]._skip = !0, e.placement = A, e.reset = !0);
666
+ }
667
+ }
668
+ const tn = {
669
+ name: "flip",
670
+ enabled: !0,
671
+ phase: "main",
672
+ fn: en,
673
+ requiresIfExists: ["offset"],
674
+ data: {
675
+ _skip: !1
676
+ }
677
+ };
678
+ function wt(t, e, r) {
679
+ return r === void 0 && (r = {
680
+ x: 0,
681
+ y: 0
682
+ }), {
683
+ top: t.top - e.height - r.y,
684
+ right: t.right - e.width + r.x,
685
+ bottom: t.bottom - e.height + r.y,
686
+ left: t.left - e.width - r.x
687
+ };
688
+ }
689
+ function bt(t) {
690
+ return [j, H, W, S].some(function(e) {
691
+ return t[e] >= 0;
692
+ });
693
+ }
694
+ function rn(t) {
695
+ var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, u = me(e, {
696
+ elementContext: "reference"
697
+ }), s = me(e, {
698
+ altBoundary: !0
699
+ }), a = wt(u, n), l = wt(s, o, i), c = bt(a), p = bt(l);
700
+ e.modifiersData[r] = {
701
+ referenceClippingOffsets: a,
702
+ popperEscapeOffsets: l,
703
+ isReferenceHidden: c,
704
+ hasPopperEscaped: p
705
+ }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
706
+ "data-popper-reference-hidden": c,
707
+ "data-popper-escaped": p
708
+ });
709
+ }
710
+ const nn = {
711
+ name: "hide",
712
+ enabled: !0,
713
+ phase: "main",
714
+ requiresIfExists: ["preventOverflow"],
715
+ fn: rn
716
+ };
717
+ function on(t, e, r) {
718
+ var n = U(t), o = [S, j].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
719
+ placement: t
720
+ })) : r, u = i[0], s = i[1];
721
+ return u = u || 0, s = (s || 0) * o, [S, H].indexOf(n) >= 0 ? {
722
+ x: s,
723
+ y: u
724
+ } : {
725
+ x: u,
726
+ y: s
727
+ };
728
+ }
729
+ function an(t) {
730
+ var e = t.state, r = t.options, n = t.name, o = r.offset, i = o === void 0 ? [0, 0] : o, u = Lt.reduce(function(c, p) {
731
+ return c[p] = on(p, e.rects, i), c;
732
+ }, {}), s = u[e.placement], a = s.x, l = s.y;
733
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += l), e.modifiersData[n] = u;
734
+ }
735
+ const sn = {
736
+ name: "offset",
737
+ enabled: !0,
738
+ phase: "main",
739
+ requires: ["popperOffsets"],
740
+ fn: an
741
+ };
742
+ function cn(t) {
743
+ var e = t.state, r = t.name;
744
+ e.modifiersData[r] = Ut({
745
+ reference: e.rects.reference,
746
+ element: e.rects.popper,
747
+ placement: e.placement
748
+ });
749
+ }
750
+ const un = {
751
+ name: "popperOffsets",
752
+ enabled: !0,
753
+ phase: "read",
754
+ fn: cn,
755
+ data: {}
756
+ };
757
+ function ln(t) {
758
+ return t === "x" ? "y" : "x";
759
+ }
760
+ function fn(t) {
761
+ var e = t.state, r = t.options, n = t.name, o = r.mainAxis, i = o === void 0 ? !0 : o, u = r.altAxis, s = u === void 0 ? !1 : u, a = r.boundary, l = r.rootBoundary, c = r.altBoundary, p = r.padding, h = r.tether, d = h === void 0 ? !0 : h, v = r.tetherOffset, g = v === void 0 ? 0 : v, f = me(e, {
762
+ boundary: a,
763
+ rootBoundary: l,
764
+ padding: p,
765
+ altBoundary: c
766
+ }), w = U(e.placement), m = ae(e.placement), O = !m, y = Xe(w), b = ln(y), x = e.modifiersData.popperOffsets, E = e.rects.reference, P = e.rects.popper, A = typeof g == "function" ? g(Object.assign({}, e.rects, {
767
+ placement: e.placement
768
+ })) : g, R = typeof A == "number" ? {
769
+ mainAxis: A,
770
+ altAxis: A
771
+ } : Object.assign({
772
+ mainAxis: 0,
773
+ altAxis: 0
774
+ }, A), T = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, B = {
775
+ x: 0,
776
+ y: 0
777
+ };
778
+ if (x) {
779
+ if (i) {
780
+ var C, M = y === "y" ? j : S, D = y === "y" ? W : H, L = y === "y" ? "height" : "width", I = x[y], be = I + f[M], K = I - f[D], Oe = d ? -P[L] / 2 : 0, Se = m === ne ? E[L] : P[L], ce = m === ne ? -P[L] : -E[L], xe = e.elements.arrow, te = d && xe ? ze(xe) : {
781
+ width: 0,
782
+ height: 0
783
+ }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ft(), ue = q[M], Ee = q[D], G = pe(0, E[L], te[L]), Be = O ? E[L] / 2 - Oe - G - ue - R.mainAxis : Se - G - ue - R.mainAxis, Gt = O ? -E[L] / 2 + Oe + G + Ee + R.mainAxis : ce + G + Ee + R.mainAxis, Le = e.elements.arrow && we(e.elements.arrow), Jt = Le ? y === "y" ? Le.clientTop || 0 : Le.clientLeft || 0 : 0, Qe = (C = T == null ? void 0 : T[y]) != null ? C : 0, Qt = I + Be - Qe - Jt, Zt = I + Gt - Qe, Ze = pe(d ? Me(be, Qt) : be, I, d ? Q(K, Zt) : K);
784
+ x[y] = Ze, B[y] = Ze - I;
785
+ }
786
+ if (s) {
787
+ var et, er = y === "x" ? j : S, tr = y === "x" ? W : H, J = x[b], Re = b === "y" ? "height" : "width", tt = J + f[er], rt = J - f[tr], ke = [j, S].indexOf(w) !== -1, nt = (et = T == null ? void 0 : T[b]) != null ? et : 0, ot = ke ? tt : J - E[Re] - P[Re] - nt + R.altAxis, it = ke ? J + E[Re] + P[Re] - nt - R.altAxis : rt, at = d && ke ? Br(ot, J, it) : pe(d ? ot : tt, J, d ? it : rt);
788
+ x[b] = at, B[b] = at - J;
789
+ }
790
+ e.modifiersData[n] = B;
791
+ }
792
+ }
793
+ const dn = {
794
+ name: "preventOverflow",
795
+ enabled: !0,
796
+ phase: "main",
797
+ fn,
798
+ requiresIfExists: ["offset"]
799
+ };
800
+ function pn(t) {
801
+ return {
802
+ scrollLeft: t.scrollLeft,
803
+ scrollTop: t.scrollTop
804
+ };
805
+ }
806
+ function vn(t) {
807
+ return t === k(t) || !V(t) ? Ye(t) : pn(t);
808
+ }
809
+ function hn(t) {
810
+ var e = t.getBoundingClientRect(), r = oe(e.width) / t.offsetWidth || 1, n = oe(e.height) / t.offsetHeight || 1;
811
+ return r !== 1 || n !== 1;
812
+ }
813
+ function mn(t, e, r) {
814
+ r === void 0 && (r = !1);
815
+ var n = V(e), o = V(e) && hn(e), i = Y(e), u = ie(t, o, r), s = {
816
+ scrollLeft: 0,
817
+ scrollTop: 0
818
+ }, a = {
819
+ x: 0,
820
+ y: 0
821
+ };
822
+ return (n || !n && !r) && ((X(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
823
+ Ge(i)) && (s = vn(e)), V(e) ? (a = ie(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : i && (a.x = Ke(i))), {
824
+ x: u.left + s.scrollLeft - a.x,
825
+ y: u.top + s.scrollTop - a.y,
826
+ width: u.width,
827
+ height: u.height
828
+ };
829
+ }
830
+ function gn(t) {
831
+ var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
832
+ t.forEach(function(i) {
833
+ e.set(i.name, i);
834
+ });
835
+ function o(i) {
836
+ r.add(i.name);
837
+ var u = [].concat(i.requires || [], i.requiresIfExists || []);
838
+ u.forEach(function(s) {
839
+ if (!r.has(s)) {
840
+ var a = e.get(s);
841
+ a && o(a);
842
+ }
843
+ }), n.push(i);
844
+ }
845
+ return t.forEach(function(i) {
846
+ r.has(i.name) || o(i);
847
+ }), n;
848
+ }
849
+ function yn(t) {
850
+ var e = gn(t);
851
+ return $r.reduce(function(r, n) {
852
+ return r.concat(e.filter(function(o) {
853
+ return o.phase === n;
854
+ }));
855
+ }, []);
856
+ }
857
+ function wn(t) {
858
+ var e;
859
+ return function() {
860
+ return e || (e = new Promise(function(r) {
861
+ Promise.resolve().then(function() {
862
+ e = void 0, r(t());
863
+ });
864
+ })), e;
865
+ };
866
+ }
867
+ function bn(t) {
868
+ var e = t.reduce(function(r, n) {
869
+ var o = r[n.name];
870
+ return r[n.name] = o ? Object.assign({}, o, n, {
871
+ options: Object.assign({}, o.options, n.options),
872
+ data: Object.assign({}, o.data, n.data)
873
+ }) : n, r;
874
+ }, {});
875
+ return Object.keys(e).map(function(r) {
876
+ return e[r];
877
+ });
878
+ }
879
+ var Ot = {
880
+ placement: "bottom",
881
+ modifiers: [],
882
+ strategy: "absolute"
883
+ };
884
+ function xt() {
885
+ for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
886
+ e[r] = arguments[r];
887
+ return !e.some(function(n) {
888
+ return !(n && typeof n.getBoundingClientRect == "function");
889
+ });
890
+ }
891
+ function On(t) {
892
+ t === void 0 && (t = {});
893
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, i = o === void 0 ? Ot : o;
894
+ return function(s, a, l) {
895
+ l === void 0 && (l = i);
896
+ var c = {
897
+ placement: "bottom",
898
+ orderedModifiers: [],
899
+ options: Object.assign({}, Ot, i),
900
+ modifiersData: {},
901
+ elements: {
902
+ reference: s,
903
+ popper: a
904
+ },
905
+ attributes: {},
906
+ styles: {}
907
+ }, p = [], h = !1, d = {
908
+ state: c,
909
+ setOptions: function(w) {
910
+ var m = typeof w == "function" ? w(c.options) : w;
911
+ g(), c.options = Object.assign({}, i, c.options, m), c.scrollParents = {
912
+ reference: ee(s) ? ve(s) : s.contextElement ? ve(s.contextElement) : [],
913
+ popper: ve(a)
914
+ };
915
+ var O = yn(bn([].concat(n, c.options.modifiers)));
916
+ return c.orderedModifiers = O.filter(function(y) {
917
+ return y.enabled;
918
+ }), v(), d.update();
919
+ },
920
+ // Sync update – it will always be executed, even if not necessary. This
921
+ // is useful for low frequency updates where sync behavior simplifies the
922
+ // logic.
923
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
924
+ // prefer the async Popper#update method
925
+ forceUpdate: function() {
926
+ if (!h) {
927
+ var w = c.elements, m = w.reference, O = w.popper;
928
+ if (xt(m, O)) {
929
+ c.rects = {
930
+ reference: mn(m, we(O), c.options.strategy === "fixed"),
931
+ popper: ze(O)
932
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(R) {
933
+ return c.modifiersData[R.name] = Object.assign({}, R.data);
934
+ });
935
+ for (var y = 0; y < c.orderedModifiers.length; y++) {
936
+ if (c.reset === !0) {
937
+ c.reset = !1, y = -1;
938
+ continue;
939
+ }
940
+ var b = c.orderedModifiers[y], x = b.fn, E = b.options, P = E === void 0 ? {} : E, A = b.name;
941
+ typeof x == "function" && (c = x({
942
+ state: c,
943
+ options: P,
944
+ name: A,
945
+ instance: d
946
+ }) || c);
947
+ }
948
+ }
949
+ }
950
+ },
951
+ // Async and optimistically optimized update – it will not be executed if
952
+ // not necessary (debounced to run at most once-per-tick)
953
+ update: wn(function() {
954
+ return new Promise(function(f) {
955
+ d.forceUpdate(), f(c);
956
+ });
957
+ }),
958
+ destroy: function() {
959
+ g(), h = !0;
960
+ }
961
+ };
962
+ if (!xt(s, a))
963
+ return d;
964
+ d.setOptions(l).then(function(f) {
965
+ !h && l.onFirstUpdate && l.onFirstUpdate(f);
966
+ });
967
+ function v() {
968
+ c.orderedModifiers.forEach(function(f) {
969
+ var w = f.name, m = f.options, O = m === void 0 ? {} : m, y = f.effect;
970
+ if (typeof y == "function") {
971
+ var b = y({
972
+ state: c,
973
+ name: w,
974
+ instance: d,
975
+ options: O
976
+ }), x = function() {
977
+ };
978
+ p.push(b || x);
979
+ }
980
+ });
981
+ }
982
+ function g() {
983
+ p.forEach(function(f) {
984
+ return f();
985
+ }), p = [];
986
+ }
987
+ return d;
988
+ };
989
+ }
990
+ const xn = On({
991
+ defaultModifiers: [nn, un, Ur, _r, sn, tn, dn, Fr]
992
+ }), En = ["enabled", "placement", "strategy", "modifiers"];
993
+ function Rn(t, e) {
994
+ if (t == null) return {};
995
+ var r = {};
996
+ for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
997
+ if (e.indexOf(n) >= 0) continue;
998
+ r[n] = t[n];
999
+ }
1000
+ return r;
1001
+ }
1002
+ const An = {
1003
+ name: "applyStyles",
1004
+ enabled: !1,
1005
+ phase: "afterWrite",
1006
+ fn: () => {
1007
+ }
1008
+ }, Pn = {
1009
+ name: "ariaDescribedBy",
1010
+ enabled: !0,
1011
+ phase: "afterWrite",
1012
+ effect: ({
1013
+ state: t
1014
+ }) => () => {
1015
+ const {
1016
+ reference: e,
1017
+ popper: r
1018
+ } = t.elements;
1019
+ if ("removeAttribute" in e) {
1020
+ const n = (e.getAttribute("aria-describedby") || "").split(",").filter((o) => o.trim() !== r.id);
1021
+ n.length ? e.setAttribute("aria-describedby", n.join(",")) : e.removeAttribute("aria-describedby");
1022
+ }
1023
+ },
1024
+ fn: ({
1025
+ state: t
1026
+ }) => {
1027
+ var e;
1028
+ const {
1029
+ popper: r,
1030
+ reference: n
1031
+ } = t.elements, o = (e = r.getAttribute("role")) == null ? void 0 : e.toLowerCase();
1032
+ if (r.id && o === "tooltip" && "setAttribute" in n) {
1033
+ const i = n.getAttribute("aria-describedby");
1034
+ if (i && i.split(",").indexOf(r.id) !== -1)
1035
+ return;
1036
+ n.setAttribute("aria-describedby", i ? `${i},${r.id}` : r.id);
1037
+ }
1038
+ }
1039
+ }, Tn = [];
1040
+ function Cn(t, e, r = {}) {
1041
+ let {
1042
+ enabled: n = !0,
1043
+ placement: o = "bottom",
1044
+ strategy: i = "absolute",
1045
+ modifiers: u = Tn
1046
+ } = r, s = Rn(r, En);
1047
+ const a = F(u), l = F(), c = N(() => {
1048
+ var f;
1049
+ (f = l.current) == null || f.update();
1050
+ }, []), p = N(() => {
1051
+ var f;
1052
+ (f = l.current) == null || f.forceUpdate();
1053
+ }, []), [h, d] = wr(ge({
1054
+ placement: o,
1055
+ update: c,
1056
+ forceUpdate: p,
1057
+ attributes: {},
1058
+ styles: {
1059
+ popper: {},
1060
+ arrow: {}
1061
+ }
1062
+ })), v = De(() => ({
1063
+ name: "updateStateModifier",
1064
+ enabled: !0,
1065
+ phase: "write",
1066
+ requires: ["computeStyles"],
1067
+ fn: ({
1068
+ state: f
1069
+ }) => {
1070
+ const w = {}, m = {};
1071
+ Object.keys(f.elements).forEach((O) => {
1072
+ w[O] = f.styles[O], m[O] = f.attributes[O];
1073
+ }), d({
1074
+ state: f,
1075
+ styles: w,
1076
+ attributes: m,
1077
+ update: c,
1078
+ forceUpdate: p,
1079
+ placement: f.placement
1080
+ });
1081
+ }
1082
+ }), [c, p, d]), g = De(() => (de(a.current, u) || (a.current = u), a.current), [u]);
1083
+ return Z(() => {
1084
+ !l.current || !n || l.current.setOptions({
1085
+ placement: o,
1086
+ strategy: i,
1087
+ modifiers: [...g, v, An]
1088
+ });
1089
+ }, [i, o, v, n, g]), Z(() => {
1090
+ if (!(!n || t == null || e == null))
1091
+ return l.current = xn(t, e, Object.assign({}, s, {
1092
+ placement: o,
1093
+ strategy: i,
1094
+ modifiers: [...g, Pn, v]
1095
+ })), () => {
1096
+ l.current != null && (l.current.destroy(), l.current = void 0, d((f) => Object.assign({}, f, {
1097
+ attributes: {},
1098
+ styles: {
1099
+ popper: {}
1100
+ }
1101
+ })));
1102
+ };
1103
+ }, [n, t, e]), h;
1104
+ }
1105
+ const Et = () => {
1106
+ };
1107
+ function Dn(t) {
1108
+ return t.button === 0;
1109
+ }
1110
+ function Mn(t) {
1111
+ return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey);
1112
+ }
1113
+ const Te = (t) => t && ("current" in t ? t.current : t), Rt = {
1114
+ click: "mousedown",
1115
+ mouseup: "mousedown",
1116
+ pointerup: "pointerdown"
1117
+ };
1118
+ function $n(t, e = Et, {
1119
+ disabled: r,
1120
+ clickTrigger: n = "click"
1121
+ } = {}) {
1122
+ const o = F(!1), i = F(!1), u = N((l) => {
1123
+ const c = Te(t);
1124
+ Tt(!!c, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), o.current = !c || Mn(l) || !Dn(l) || !!Ne(c, l.target) || i.current, i.current = !1;
1125
+ }, [t]), s = Fe((l) => {
1126
+ const c = Te(t);
1127
+ c && Ne(c, l.target) ? i.current = !0 : i.current = !1;
1128
+ }), a = Fe((l) => {
1129
+ o.current || e(l);
1130
+ });
1131
+ Z(() => {
1132
+ var l, c;
1133
+ if (r || t == null) return;
1134
+ const p = Ct(Te(t)), h = p.defaultView || window;
1135
+ let d = (l = h.event) != null ? l : (c = h.parent) == null ? void 0 : c.event, v = null;
1136
+ Rt[n] && (v = fe(p, Rt[n], s, !0));
1137
+ const g = fe(p, n, u, !0), f = fe(p, n, (m) => {
1138
+ if (m === d) {
1139
+ d = void 0;
1140
+ return;
1141
+ }
1142
+ a(m);
1143
+ });
1144
+ let w = [];
1145
+ return "ontouchstart" in p.documentElement && (w = [].slice.call(p.body.children).map((m) => fe(m, "mousemove", Et))), () => {
1146
+ v == null || v(), g(), f(), w.forEach((m) => m());
1147
+ };
1148
+ }, [t, r, n, u, s, a]);
1149
+ }
1150
+ function jn(t) {
1151
+ const e = {};
1152
+ return Array.isArray(t) ? (t == null || t.forEach((r) => {
1153
+ e[r.name] = r;
1154
+ }), e) : t || e;
1155
+ }
1156
+ function Sn(t = {}) {
1157
+ return Array.isArray(t) ? t : Object.keys(t).map((e) => (t[e].name = e, t[e]));
1158
+ }
1159
+ function Bn({
1160
+ enabled: t,
1161
+ enableEvents: e,
1162
+ placement: r,
1163
+ flip: n,
1164
+ offset: o,
1165
+ fixed: i,
1166
+ containerPadding: u,
1167
+ arrowElement: s,
1168
+ popperConfig: a = {}
1169
+ }) {
1170
+ var l, c, p, h, d;
1171
+ const v = jn(a.modifiers);
1172
+ return Object.assign({}, a, {
1173
+ placement: r,
1174
+ enabled: t,
1175
+ strategy: i ? "fixed" : a.strategy,
1176
+ modifiers: Sn(Object.assign({}, v, {
1177
+ eventListeners: {
1178
+ enabled: e,
1179
+ options: (l = v.eventListeners) == null ? void 0 : l.options
1180
+ },
1181
+ preventOverflow: Object.assign({}, v.preventOverflow, {
1182
+ options: u ? Object.assign({
1183
+ padding: u
1184
+ }, (c = v.preventOverflow) == null ? void 0 : c.options) : (p = v.preventOverflow) == null ? void 0 : p.options
1185
+ }),
1186
+ offset: {
1187
+ options: Object.assign({
1188
+ offset: o
1189
+ }, (h = v.offset) == null ? void 0 : h.options)
1190
+ },
1191
+ arrow: Object.assign({}, v.arrow, {
1192
+ enabled: !!s,
1193
+ options: Object.assign({}, (d = v.arrow) == null ? void 0 : d.options, {
1194
+ element: s
1195
+ })
1196
+ }),
1197
+ flip: Object.assign({
1198
+ enabled: !!n
1199
+ }, v.flip)
1200
+ }))
1201
+ });
1202
+ }
1203
+ const Ln = typeof global < "u" && // @ts-ignore
1204
+ global.navigator && // @ts-ignore
1205
+ global.navigator.product === "ReactNative", kn = typeof document < "u", Nn = kn || Ln ? dr : Z, Fn = () => {
1206
+ };
1207
+ function Wn(t, e, {
1208
+ disabled: r,
1209
+ clickTrigger: n
1210
+ } = {}) {
1211
+ const o = e || Fn;
1212
+ $n(t, o, {
1213
+ disabled: r,
1214
+ clickTrigger: n
1215
+ });
1216
+ const i = Fe((u) => {
1217
+ ar(u) && o(u);
1218
+ });
1219
+ Z(() => {
1220
+ if (r || t == null) return;
1221
+ const u = Ct(Te(t));
1222
+ let s = (u.defaultView || window).event;
1223
+ const a = fe(u, "keyup", (l) => {
1224
+ if (l === s) {
1225
+ s = void 0;
1226
+ return;
1227
+ }
1228
+ i(l);
1229
+ });
1230
+ return () => {
1231
+ a();
1232
+ };
1233
+ }, [t, r, i]);
1234
+ }
1235
+ const Vt = /* @__PURE__ */ z.forwardRef((t, e) => {
1236
+ const {
1237
+ flip: r,
1238
+ offset: n,
1239
+ placement: o,
1240
+ containerPadding: i,
1241
+ popperConfig: u = {},
1242
+ transition: s,
1243
+ runTransition: a
1244
+ } = t, [l, c] = ft(), [p, h] = ft(), d = sr(c, e), v = st(t.container), g = st(t.target), [f, w] = ge(!t.show), m = Cn(g, l, Bn({
1245
+ placement: o,
1246
+ enableEvents: !!t.show,
1247
+ containerPadding: i || 5,
1248
+ flip: r,
1249
+ offset: n,
1250
+ arrowElement: p,
1251
+ popperConfig: u
1252
+ }));
1253
+ t.show && f && w(!1);
1254
+ const O = (...T) => {
1255
+ w(!0), t.onExited && t.onExited(...T);
1256
+ }, y = t.show || !f;
1257
+ if (Wn(l, t.onHide, {
1258
+ disabled: !t.rootClose || t.rootCloseDisabled,
1259
+ clickTrigger: t.rootCloseEvent
1260
+ }), !y)
1261
+ return null;
1262
+ const {
1263
+ onExit: b,
1264
+ onExiting: x,
1265
+ onEnter: E,
1266
+ onEntering: P,
1267
+ onEntered: A
1268
+ } = t;
1269
+ let R = t.children(Object.assign({}, m.attributes.popper, {
1270
+ style: m.styles.popper,
1271
+ ref: d
1272
+ }), {
1273
+ popper: m,
1274
+ placement: o,
1275
+ show: !!t.show,
1276
+ arrowProps: Object.assign({}, m.attributes.arrow, {
1277
+ style: m.styles.arrow,
1278
+ ref: h
1279
+ })
1280
+ });
1281
+ return R = cr(s, a, {
1282
+ in: !!t.show,
1283
+ appear: !0,
1284
+ mountOnEnter: !0,
1285
+ unmountOnExit: !0,
1286
+ children: R,
1287
+ onExit: b,
1288
+ onExiting: x,
1289
+ onExited: O,
1290
+ onEnter: E,
1291
+ onEntering: P,
1292
+ onEntered: A
1293
+ }), v ? /* @__PURE__ */ vr.createPortal(R, v) : null;
1294
+ });
1295
+ Vt.displayName = "Overlay";
1296
+ const _t = /* @__PURE__ */ z.forwardRef(({
1297
+ className: t,
1298
+ bsPrefix: e,
1299
+ as: r = "div",
1300
+ ...n
1301
+ }, o) => (e = re(e, "popover-header"), /* @__PURE__ */ $(r, {
1302
+ ref: o,
1303
+ className: se(t, e),
1304
+ ...n
1305
+ })));
1306
+ _t.displayName = "PopoverHeader";
1307
+ const Je = /* @__PURE__ */ z.forwardRef(({
1308
+ className: t,
1309
+ bsPrefix: e,
1310
+ as: r = "div",
1311
+ ...n
1312
+ }, o) => (e = re(e, "popover-body"), /* @__PURE__ */ $(r, {
1313
+ ref: o,
1314
+ className: se(t, e),
1315
+ ...n
1316
+ })));
1317
+ Je.displayName = "PopoverBody";
1318
+ function qt(t, e) {
1319
+ let r = t;
1320
+ return t === "left" ? r = e ? "end" : "start" : t === "right" && (r = e ? "start" : "end"), r;
1321
+ }
1322
+ function zt(t = "absolute") {
1323
+ return {
1324
+ position: t,
1325
+ top: "0",
1326
+ left: "0",
1327
+ opacity: "0",
1328
+ pointerEvents: "none"
1329
+ };
1330
+ }
1331
+ const Xt = /* @__PURE__ */ z.forwardRef(({
1332
+ bsPrefix: t,
1333
+ placement: e = "right",
1334
+ className: r,
1335
+ style: n,
1336
+ children: o,
1337
+ body: i,
1338
+ arrowProps: u,
1339
+ hasDoneInitialMeasure: s,
1340
+ popper: a,
1341
+ show: l,
1342
+ ...c
1343
+ }, p) => {
1344
+ const h = re(t, "popover"), d = Dt(), [v] = (e == null ? void 0 : e.split("-")) || [], g = qt(v, d);
1345
+ let f = n;
1346
+ return l && !s && (f = {
1347
+ ...n,
1348
+ ...zt(a == null ? void 0 : a.strategy)
1349
+ }), /* @__PURE__ */ $e("div", {
1350
+ ref: p,
1351
+ role: "tooltip",
1352
+ style: f,
1353
+ "x-placement": v,
1354
+ className: se(r, h, v && `bs-popover-${g}`),
1355
+ ...c,
1356
+ children: [/* @__PURE__ */ $("div", {
1357
+ className: "popover-arrow",
1358
+ ...u
1359
+ }), i ? /* @__PURE__ */ $(Je, {
1360
+ children: o
1361
+ }) : o]
1362
+ });
1363
+ });
1364
+ Xt.displayName = "Popover";
1365
+ const Ce = Object.assign(Xt, {
1366
+ Header: _t,
1367
+ Body: Je,
1368
+ // Default popover offset.
1369
+ // https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/popover.js#L28
1370
+ POPPER_OFFSET: [0, 8]
1371
+ }), Yt = /* @__PURE__ */ z.forwardRef(({
1372
+ bsPrefix: t,
1373
+ placement: e = "right",
1374
+ className: r,
1375
+ style: n,
1376
+ children: o,
1377
+ arrowProps: i,
1378
+ hasDoneInitialMeasure: u,
1379
+ popper: s,
1380
+ show: a,
1381
+ ...l
1382
+ }, c) => {
1383
+ t = re(t, "tooltip");
1384
+ const p = Dt(), [h] = (e == null ? void 0 : e.split("-")) || [], d = qt(h, p);
1385
+ let v = n;
1386
+ return a && !u && (v = {
1387
+ ...n,
1388
+ ...zt(s == null ? void 0 : s.strategy)
1389
+ }), /* @__PURE__ */ $e("div", {
1390
+ ref: c,
1391
+ style: v,
1392
+ role: "tooltip",
1393
+ "x-placement": h,
1394
+ className: se(r, t, `bs-tooltip-${d}`),
1395
+ ...l,
1396
+ children: [/* @__PURE__ */ $("div", {
1397
+ className: "tooltip-arrow",
1398
+ ...i
1399
+ }), /* @__PURE__ */ $("div", {
1400
+ className: `${t}-inner`,
1401
+ children: o
1402
+ })]
1403
+ });
1404
+ });
1405
+ Yt.displayName = "Tooltip";
1406
+ const Hn = Object.assign(Yt, {
1407
+ // Default tooltip offset.
1408
+ // https://github.com/twbs/bootstrap/blob/beca2a6c7f6bc88b6449339fc76edcda832c59e5/js/src/tooltip.js#L65
1409
+ TOOLTIP_OFFSET: [0, 6]
1410
+ });
1411
+ function In(t) {
1412
+ const e = F(null), r = re(void 0, "popover"), n = re(void 0, "tooltip"), o = De(() => ({
1413
+ name: "offset",
1414
+ options: {
1415
+ offset: () => {
1416
+ if (t)
1417
+ return t;
1418
+ if (e.current) {
1419
+ if (ct(e.current, r))
1420
+ return Ce.POPPER_OFFSET;
1421
+ if (ct(e.current, n))
1422
+ return Hn.TOOLTIP_OFFSET;
1423
+ }
1424
+ return [0, 0];
1425
+ }
1426
+ }
1427
+ }), [t, r, n]);
1428
+ return [e, [o]];
1429
+ }
1430
+ function Un(t, e) {
1431
+ const {
1432
+ ref: r
1433
+ } = t, {
1434
+ ref: n
1435
+ } = e;
1436
+ t.ref = r.__wrapped || (r.__wrapped = (o) => r(We(o))), e.ref = n.__wrapped || (n.__wrapped = (o) => n(We(o)));
1437
+ }
1438
+ const Kt = /* @__PURE__ */ z.forwardRef(({
1439
+ children: t,
1440
+ transition: e = ut,
1441
+ popperConfig: r = {},
1442
+ rootClose: n = !1,
1443
+ placement: o = "top",
1444
+ show: i = !1,
1445
+ ...u
1446
+ }, s) => {
1447
+ const a = F({}), [l, c] = ge(null), [p, h] = In(u.offset), d = Mt(s, p), v = e === !0 ? ut : e || void 0, g = ur((f) => {
1448
+ c(f), r == null || r.onFirstUpdate == null || r.onFirstUpdate(f);
1449
+ });
1450
+ return Nn(() => {
1451
+ l && u.target && (a.current.scheduleUpdate == null || a.current.scheduleUpdate());
1452
+ }, [l, u.target]), Z(() => {
1453
+ i || c(null);
1454
+ }, [i]), /* @__PURE__ */ $(Vt, {
1455
+ ...u,
1456
+ ref: d,
1457
+ popperConfig: {
1458
+ ...r,
1459
+ modifiers: h.concat(r.modifiers || []),
1460
+ onFirstUpdate: g
1461
+ },
1462
+ transition: v,
1463
+ rootClose: n,
1464
+ placement: o,
1465
+ show: i,
1466
+ children: (f, {
1467
+ arrowProps: w,
1468
+ popper: m,
1469
+ show: O
1470
+ }) => {
1471
+ var y;
1472
+ Un(f, w);
1473
+ const b = m == null ? void 0 : m.placement, x = Object.assign(a.current, {
1474
+ state: m == null ? void 0 : m.state,
1475
+ scheduleUpdate: m == null ? void 0 : m.update,
1476
+ placement: b,
1477
+ outOfBoundaries: (m == null || (y = m.state) == null || (y = y.modifiersData.hide) == null ? void 0 : y.isReferenceHidden) || !1,
1478
+ strategy: r.strategy
1479
+ }), E = !!l;
1480
+ return typeof t == "function" ? t({
1481
+ ...f,
1482
+ placement: b,
1483
+ show: O,
1484
+ ...!e && O && {
1485
+ className: "show"
1486
+ },
1487
+ popper: x,
1488
+ arrowProps: w,
1489
+ hasDoneInitialMeasure: E
1490
+ }) : /* @__PURE__ */ z.cloneElement(t, {
1491
+ ...f,
1492
+ placement: b,
1493
+ arrowProps: w,
1494
+ popper: x,
1495
+ hasDoneInitialMeasure: E,
1496
+ className: se(t.props.className, !e && O && "show"),
1497
+ style: {
1498
+ ...t.props.style,
1499
+ ...f.style
1500
+ }
1501
+ });
1502
+ }
1503
+ });
1504
+ });
1505
+ Kt.displayName = "Overlay";
1506
+ function Vn(t) {
1507
+ return t && typeof t == "object" ? t : {
1508
+ show: t,
1509
+ hide: t
1510
+ };
1511
+ }
1512
+ function At(t, e, r) {
1513
+ const [n] = e, o = n.currentTarget, i = n.relatedTarget || n.nativeEvent[r];
1514
+ (!i || i !== o) && !Ne(o, i) && t(...e);
1515
+ }
1516
+ fr.oneOf(["click", "hover", "focus"]);
1517
+ const _n = ({
1518
+ trigger: t = ["hover", "focus"],
1519
+ overlay: e,
1520
+ children: r,
1521
+ popperConfig: n = {},
1522
+ show: o,
1523
+ defaultShow: i = !1,
1524
+ onToggle: u,
1525
+ delay: s,
1526
+ placement: a,
1527
+ flip: l = a && a.indexOf("auto") !== -1,
1528
+ ...c
1529
+ }) => {
1530
+ const p = F(null), h = Mt(p, lr(r)), d = yr(), v = F(""), [g, f] = jt(o, i, u), w = Vn(s), {
1531
+ onFocus: m,
1532
+ onBlur: O,
1533
+ onClick: y
1534
+ } = typeof r != "function" ? z.Children.only(r).props : {}, b = (D) => {
1535
+ h(We(D));
1536
+ }, x = N(() => {
1537
+ if (d.clear(), v.current = "show", !w.show) {
1538
+ f(!0);
1539
+ return;
1540
+ }
1541
+ d.set(() => {
1542
+ v.current === "show" && f(!0);
1543
+ }, w.show);
1544
+ }, [w.show, f, d]), E = N(() => {
1545
+ if (d.clear(), v.current = "hide", !w.hide) {
1546
+ f(!1);
1547
+ return;
1548
+ }
1549
+ d.set(() => {
1550
+ v.current === "hide" && f(!1);
1551
+ }, w.hide);
1552
+ }, [w.hide, f, d]), P = N((...D) => {
1553
+ x(), m == null || m(...D);
1554
+ }, [x, m]), A = N((...D) => {
1555
+ E(), O == null || O(...D);
1556
+ }, [E, O]), R = N((...D) => {
1557
+ f(!g), y == null || y(...D);
1558
+ }, [y, f, g]), T = N((...D) => {
1559
+ At(x, D, "fromElement");
1560
+ }, [x]), B = N((...D) => {
1561
+ At(E, D, "toElement");
1562
+ }, [E]), C = t == null ? [] : [].concat(t), M = {
1563
+ ref: b
1564
+ };
1565
+ return C.indexOf("click") !== -1 && (M.onClick = R), C.indexOf("focus") !== -1 && (M.onFocus = P, M.onBlur = A), C.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && Tt(C.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'), M.onMouseOver = T, M.onMouseOut = B), /* @__PURE__ */ $e(rr, {
1566
+ children: [typeof r == "function" ? r(M) : /* @__PURE__ */ pr(r, M), /* @__PURE__ */ $(Kt, {
1567
+ ...c,
1568
+ show: g,
1569
+ onHide: E,
1570
+ flip: l,
1571
+ placement: a,
1572
+ popperConfig: n,
1573
+ target: p.current,
1574
+ children: e
1575
+ })]
1576
+ });
1577
+ }, qn = (t) => {
1578
+ const e = Pt.c(35);
1579
+ let r, n, o, i, u, s, a, l, c;
1580
+ e[0] !== t ? ({
1581
+ heading: i,
1582
+ content: n,
1583
+ placement: u,
1584
+ children: r,
1585
+ trigger: c,
1586
+ popoverClassName: s,
1587
+ small: l,
1588
+ delay: o,
1589
+ ...a
1590
+ } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o, e[4] = i, e[5] = u, e[6] = s, e[7] = a, e[8] = l, e[9] = c) : (r = e[1], n = e[2], o = e[3], i = e[4], u = e[5], s = e[6], a = e[7], l = e[8], c = e[9]);
1591
+ let p;
1592
+ e[10] !== c ? (p = c === void 0 ? ["hover"] : c, e[10] = c, e[11] = p) : p = e[11];
1593
+ const h = p;
1594
+ let d;
1595
+ e[12] !== h ? (d = h.includes("hover") && !h.includes("focus") ? [...h, "focus"] : h, e[12] = h, e[13] = d) : d = e[13];
1596
+ const v = d;
1597
+ let g;
1598
+ e[14] !== s || e[15] !== l ? (g = se("luminus-popover", {
1599
+ "luminus-popover-sm": l
1600
+ }, s), e[14] = s, e[15] = l, e[16] = g) : g = e[16];
1601
+ let f;
1602
+ e[17] !== i ? (f = i && /* @__PURE__ */ $(Ce.Header, { children: typeof i == "string" ? /* @__PURE__ */ $($t, { variant: "h6", className: "text-primary", children: i }) : i }), e[17] = i, e[18] = f) : f = e[18];
1603
+ let w;
1604
+ e[19] !== n ? (w = /* @__PURE__ */ $(Ce.Body, { children: n }), e[19] = n, e[20] = w) : w = e[20];
1605
+ let m;
1606
+ e[21] !== g || e[22] !== f || e[23] !== w ? (m = /* @__PURE__ */ $e(Ce, { className: g, onClick: zn, children: [
1607
+ f,
1608
+ w
1609
+ ] }), e[21] = g, e[22] = f, e[23] = w, e[24] = m) : m = e[24];
1610
+ const O = a.controlled ? a.isOpen : void 0;
1611
+ let y;
1612
+ e[25] !== a ? (y = a.controlled ? (x) => a.setIsOpen(x) : void 0, e[25] = a, e[26] = y) : y = e[26];
1613
+ let b;
1614
+ return e[27] !== r || e[28] !== o || e[29] !== u || e[30] !== m || e[31] !== O || e[32] !== y || e[33] !== v ? (b = /* @__PURE__ */ $(_n, { placement: u, overlay: m, trigger: v, rootClose: !0, show: O, onToggle: y, delay: o, children: r }), e[27] = r, e[28] = o, e[29] = u, e[30] = m, e[31] = O, e[32] = y, e[33] = v, e[34] = b) : b = e[34], b;
1615
+ };
1616
+ function zn(t) {
1617
+ return t.stopPropagation();
1618
+ }
1619
+ const Zn = (t) => {
1620
+ const e = Pt.c(7), {
1621
+ text: r,
1622
+ placement: n,
1623
+ children: o,
1624
+ delay: i
1625
+ } = t;
1626
+ let u;
1627
+ e[0] !== r ? (u = /* @__PURE__ */ $($t, { variant: "body2", className: "text-center", children: r }), e[0] = r, e[1] = u) : u = e[1];
1628
+ let s;
1629
+ return e[2] !== o || e[3] !== i || e[4] !== n || e[5] !== u ? (s = /* @__PURE__ */ $(qn, { content: u, placement: n, delay: i, small: !0, children: o }), e[2] = o, e[3] = i, e[4] = n, e[5] = u, e[6] = s) : s = e[6], s;
1630
+ };
1631
+ export {
1632
+ qn as H,
1633
+ _n as O,
1634
+ Zn as S,
1635
+ Hn as T,
1636
+ Cn as a,
1637
+ $n as b,
1638
+ Nn as c,
1639
+ Qn as d,
1640
+ Bn as m,
1641
+ ft as u
1642
+ };