@govbr-ds/webcomponents 2.0.0-next.42 → 2.0.0-next.43

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 (104) hide show
  1. package/dist/cjs/br-breadcrumb.cjs.entry.js +1 -1
  2. package/dist/cjs/br-breadcrumb.cjs.entry.js.map +1 -1
  3. package/dist/cjs/br-breadcrumb.entry.cjs.js.map +1 -1
  4. package/dist/cjs/br-button.br-icon.entry.cjs.js.map +1 -1
  5. package/dist/cjs/br-button_2.cjs.entry.js +1 -1
  6. package/dist/cjs/br-button_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/br-collapse.br-list.entry.cjs.js.map +1 -1
  8. package/dist/cjs/br-collapse_2.cjs.entry.js +1 -1
  9. package/dist/cjs/br-collapse_2.cjs.entry.js.map +1 -1
  10. package/dist/cjs/br-footer.cjs.entry.js +1 -1
  11. package/dist/cjs/br-footer.cjs.entry.js.map +1 -1
  12. package/dist/cjs/br-footer.entry.cjs.js.map +1 -1
  13. package/dist/cjs/br-tooltip.cjs.entry.js +2187 -0
  14. package/dist/cjs/br-tooltip.cjs.entry.js.map +1 -0
  15. package/dist/cjs/br-tooltip.entry.cjs.js.map +1 -0
  16. package/dist/cjs/br-upload.cjs.entry.js +1 -1
  17. package/dist/cjs/index-DAOr34NM.js +4 -0
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/webcomponents.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
  22. package/dist/collection/components/button/button.js +2 -1
  23. package/dist/collection/components/button/button.js.map +1 -1
  24. package/dist/collection/components/footer/footer.css +1 -1
  25. package/dist/collection/components/list/list.css +1 -1
  26. package/dist/collection/components/step-item/step-item.js +1 -1
  27. package/dist/collection/components/tooltip/tooltip.css +1 -0
  28. package/dist/collection/components/tooltip/tooltip.js +683 -0
  29. package/dist/collection/components/tooltip/tooltip.js.map +1 -0
  30. package/dist/collection/components/upload/upload.js +1 -1
  31. package/dist/collection/pages/components/tooltip/index.js +18 -0
  32. package/dist/collection/pages/scripts/menu.js +13 -0
  33. package/dist/collection/utils/floating-ui.js +119 -0
  34. package/dist/collection/utils/floating-ui.js.map +1 -0
  35. package/dist/components/br-breadcrumb.js +3 -3
  36. package/dist/components/br-button.js +3 -3
  37. package/dist/components/br-footer-category.js +1 -1
  38. package/dist/components/br-footer-social.js +1 -1
  39. package/dist/components/br-footer.js +1 -1
  40. package/dist/components/br-input.js +4 -4
  41. package/dist/components/br-list.js +4 -4
  42. package/dist/components/br-message.js +1 -1
  43. package/dist/components/br-select.js +3 -3
  44. package/dist/components/br-step-item.js +1 -1
  45. package/dist/components/br-tag.js +1 -1
  46. package/dist/components/br-tooltip.d.ts +11 -0
  47. package/dist/components/br-tooltip.js +2144 -0
  48. package/dist/components/br-tooltip.js.map +1 -0
  49. package/dist/components/br-upload.js +10 -10
  50. package/dist/components/index.d.ts +2 -0
  51. package/dist/components/index.js +2 -0
  52. package/dist/components/{p-rHgHl2v-.js → p-DLL8l_-5.js} +3 -3
  53. package/dist/components/{p-BbFx1RUd.js → p-DuPFr2fm.js} +3 -3
  54. package/dist/components/{p-COPEUBKR.js → p-Dxc2AzjS.js} +6 -5
  55. package/dist/components/p-Dxc2AzjS.js.map +1 -0
  56. package/dist/custom-docs/markdown-methods.js +2 -0
  57. package/dist/custom-docs/markdown-methods.js.map +1 -1
  58. package/dist/custom-elements.json +502 -0
  59. package/dist/esm/br-breadcrumb.entry.js +1 -1
  60. package/dist/esm/br-breadcrumb.entry.js.map +1 -1
  61. package/dist/esm/br-button.br-icon.entry.js.map +1 -1
  62. package/dist/esm/br-button_2.entry.js +1 -1
  63. package/dist/esm/br-button_2.entry.js.map +1 -1
  64. package/dist/esm/br-collapse.br-list.entry.js.map +1 -1
  65. package/dist/esm/br-collapse_2.entry.js +1 -1
  66. package/dist/esm/br-collapse_2.entry.js.map +1 -1
  67. package/dist/esm/br-footer.entry.js +1 -1
  68. package/dist/esm/br-footer.entry.js.map +1 -1
  69. package/dist/esm/br-tooltip.entry.js +2185 -0
  70. package/dist/esm/br-tooltip.entry.js.map +1 -0
  71. package/dist/esm/br-upload.entry.js +1 -1
  72. package/dist/esm/index-ClsF4De3.js +4 -0
  73. package/dist/esm/loader.js +1 -1
  74. package/dist/esm/webcomponents.js +1 -1
  75. package/dist/hydrate/index.js +2205 -5
  76. package/dist/hydrate/index.mjs +2205 -5
  77. package/dist/types/components/button/button.d.ts +1 -0
  78. package/dist/types/components/tooltip/tooltip.d.ts +238 -0
  79. package/dist/types/components.d.ts +127 -0
  80. package/dist/types/utils/floating-ui.d.ts +78 -0
  81. package/dist/webcomponents/br-breadcrumb.entry.esm.js.map +1 -1
  82. package/dist/webcomponents/br-button.br-icon.entry.esm.js.map +1 -1
  83. package/dist/webcomponents/br-collapse.br-list.entry.esm.js.map +1 -1
  84. package/dist/webcomponents/br-footer.entry.esm.js.map +1 -1
  85. package/dist/webcomponents/br-tooltip.entry.esm.js.map +1 -0
  86. package/dist/webcomponents/{p-0d6df204.entry.js → p-5c638bff.entry.js} +2 -2
  87. package/dist/webcomponents/{p-5a36e6be.entry.js → p-83fd1103.entry.js} +2 -2
  88. package/dist/webcomponents/{p-e33ca888.entry.js → p-d01d51a9.entry.js} +5 -4
  89. package/dist/webcomponents/p-d01d51a9.entry.js.map +1 -0
  90. package/dist/webcomponents/{p-1cf7cc9c.entry.js → p-d1bc7827.entry.js} +2 -2
  91. package/dist/webcomponents/p-e15ccd94.entry.js +2098 -0
  92. package/dist/webcomponents/p-e15ccd94.entry.js.map +1 -0
  93. package/dist/webcomponents/{p-ad8edd59.entry.js → p-f3ab9e06.entry.js} +10 -10
  94. package/dist/webcomponents/webcomponents.esm.js +17 -5
  95. package/dist/webcomponents.html-custom-data.json +15 -0
  96. package/package.json +1 -1
  97. package/dist/components/p-COPEUBKR.js.map +0 -1
  98. package/dist/webcomponents/p-e33ca888.entry.js.map +0 -1
  99. /package/dist/components/{p-rHgHl2v-.js.map → p-DLL8l_-5.js.map} +0 -0
  100. /package/dist/components/{p-BbFx1RUd.js.map → p-DuPFr2fm.js.map} +0 -0
  101. /package/dist/webcomponents/{p-0d6df204.entry.js.map → p-5c638bff.entry.js.map} +0 -0
  102. /package/dist/webcomponents/{p-5a36e6be.entry.js.map → p-83fd1103.entry.js.map} +0 -0
  103. /package/dist/webcomponents/{p-1cf7cc9c.entry.js.map → p-d1bc7827.entry.js.map} +0 -0
  104. /package/dist/webcomponents/{p-ad8edd59.entry.js.map → p-f3ab9e06.entry.js.map} +0 -0
@@ -0,0 +1,2144 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ import { p as r, H as a, d as o, h as t, c as i } from "./p-BBbnZnbw.js";
6
+
7
+ import { H as n } from "./p-BRKK5nMe.js";
8
+
9
+ import { d as e } from "./p-Dxc2AzjS.js";
10
+
11
+ import { d as g } from "./p-vi3ehOfu.js";
12
+
13
+ /**
14
+ * Custom positioning reference element.
15
+ * @see https://floating-ui.com/docs/virtual-elements
16
+ */ const v = [ "top", "right", "bottom", "left" ];
17
+
18
+ const d = Math.min;
19
+
20
+ const c = Math.max;
21
+
22
+ const b = Math.round;
23
+
24
+ const l = Math.floor;
25
+
26
+ const createCoords = r => ({
27
+ x: r,
28
+ y: r
29
+ });
30
+
31
+ const u = {
32
+ left: "right",
33
+ right: "left",
34
+ bottom: "top",
35
+ top: "bottom"
36
+ };
37
+
38
+ const m = {
39
+ start: "end",
40
+ end: "start"
41
+ };
42
+
43
+ function clamp(r, a, o) {
44
+ return c(r, d(a, o));
45
+ }
46
+
47
+ function evaluate(r, a) {
48
+ return typeof r === "function" ? r(a) : r;
49
+ }
50
+
51
+ function getSide(r) {
52
+ return r.split("-")[0];
53
+ }
54
+
55
+ function getAlignment(r) {
56
+ return r.split("-")[1];
57
+ }
58
+
59
+ function getOppositeAxis(r) {
60
+ return r === "x" ? "y" : "x";
61
+ }
62
+
63
+ function getAxisLength(r) {
64
+ return r === "y" ? "height" : "width";
65
+ }
66
+
67
+ function getSideAxis(r) {
68
+ return [ "top", "bottom" ].includes(getSide(r)) ? "y" : "x";
69
+ }
70
+
71
+ function getAlignmentAxis(r) {
72
+ return getOppositeAxis(getSideAxis(r));
73
+ }
74
+
75
+ function getAlignmentSides(r, a, o) {
76
+ if (o === void 0) {
77
+ o = false;
78
+ }
79
+ const t = getAlignment(r);
80
+ const i = getAlignmentAxis(r);
81
+ const n = getAxisLength(i);
82
+ let e = i === "x" ? t === (o ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
83
+ if (a.reference[n] > a.floating[n]) {
84
+ e = getOppositePlacement(e);
85
+ }
86
+ return [ e, getOppositePlacement(e) ];
87
+ }
88
+
89
+ function getExpandedPlacements(r) {
90
+ const a = getOppositePlacement(r);
91
+ return [ getOppositeAlignmentPlacement(r), a, getOppositeAlignmentPlacement(a) ];
92
+ }
93
+
94
+ function getOppositeAlignmentPlacement(r) {
95
+ return r.replace(/start|end/g, (r => m[r]));
96
+ }
97
+
98
+ function getSideList(r, a, o) {
99
+ const t = [ "left", "right" ];
100
+ const i = [ "right", "left" ];
101
+ const n = [ "top", "bottom" ];
102
+ const e = [ "bottom", "top" ];
103
+ switch (r) {
104
+ case "top":
105
+ case "bottom":
106
+ if (o) return a ? i : t;
107
+ return a ? t : i;
108
+
109
+ case "left":
110
+ case "right":
111
+ return a ? n : e;
112
+
113
+ default:
114
+ return [];
115
+ }
116
+ }
117
+
118
+ function getOppositeAxisPlacements(r, a, o, t) {
119
+ const i = getAlignment(r);
120
+ let n = getSideList(getSide(r), o === "start", t);
121
+ if (i) {
122
+ n = n.map((r => r + "-" + i));
123
+ if (a) {
124
+ n = n.concat(n.map(getOppositeAlignmentPlacement));
125
+ }
126
+ }
127
+ return n;
128
+ }
129
+
130
+ function getOppositePlacement(r) {
131
+ return r.replace(/left|right|bottom|top/g, (r => u[r]));
132
+ }
133
+
134
+ function expandPaddingObject(r) {
135
+ return {
136
+ top: 0,
137
+ right: 0,
138
+ bottom: 0,
139
+ left: 0,
140
+ ...r
141
+ };
142
+ }
143
+
144
+ function getPaddingObject(r) {
145
+ return typeof r !== "number" ? expandPaddingObject(r) : {
146
+ top: r,
147
+ right: r,
148
+ bottom: r,
149
+ left: r
150
+ };
151
+ }
152
+
153
+ function rectToClientRect(r) {
154
+ const {x: a, y: o, width: t, height: i} = r;
155
+ return {
156
+ width: t,
157
+ height: i,
158
+ top: o,
159
+ left: a,
160
+ right: a + t,
161
+ bottom: o + i,
162
+ x: a,
163
+ y: o
164
+ };
165
+ }
166
+
167
+ function computeCoordsFromPlacement(r, a, o) {
168
+ let {reference: t, floating: i} = r;
169
+ const n = getSideAxis(a);
170
+ const e = getAlignmentAxis(a);
171
+ const g = getAxisLength(e);
172
+ const v = getSide(a);
173
+ const d = n === "y";
174
+ const c = t.x + t.width / 2 - i.width / 2;
175
+ const b = t.y + t.height / 2 - i.height / 2;
176
+ const l = t[g] / 2 - i[g] / 2;
177
+ let u;
178
+ switch (v) {
179
+ case "top":
180
+ u = {
181
+ x: c,
182
+ y: t.y - i.height
183
+ };
184
+ break;
185
+
186
+ case "bottom":
187
+ u = {
188
+ x: c,
189
+ y: t.y + t.height
190
+ };
191
+ break;
192
+
193
+ case "right":
194
+ u = {
195
+ x: t.x + t.width,
196
+ y: b
197
+ };
198
+ break;
199
+
200
+ case "left":
201
+ u = {
202
+ x: t.x - i.width,
203
+ y: b
204
+ };
205
+ break;
206
+
207
+ default:
208
+ u = {
209
+ x: t.x,
210
+ y: t.y
211
+ };
212
+ }
213
+ switch (getAlignment(a)) {
214
+ case "start":
215
+ u[e] -= l * (o && d ? -1 : 1);
216
+ break;
217
+
218
+ case "end":
219
+ u[e] += l * (o && d ? -1 : 1);
220
+ break;
221
+ }
222
+ return u;
223
+ }
224
+
225
+ /**
226
+ * Computes the `x` and `y` coordinates that will place the floating element
227
+ * next to a given reference element.
228
+ *
229
+ * This export does not have any `platform` interface logic. You will need to
230
+ * write one for the platform you are using Floating UI with.
231
+ */ const computePosition$1 = async (r, a, o) => {
232
+ const {placement: t = "bottom", strategy: i = "absolute", middleware: n = [], platform: e} = o;
233
+ const g = n.filter(Boolean);
234
+ const v = await (e.isRTL == null ? void 0 : e.isRTL(a));
235
+ let d = await e.getElementRects({
236
+ reference: r,
237
+ floating: a,
238
+ strategy: i
239
+ });
240
+ let {x: c, y: b} = computeCoordsFromPlacement(d, t, v);
241
+ let l = t;
242
+ let u = {};
243
+ let m = 0;
244
+ for (let o = 0; o < g.length; o++) {
245
+ const {name: n, fn: s} = g[o];
246
+ const {x: k, y: p, data: f, reset: w} = await s({
247
+ x: c,
248
+ y: b,
249
+ initialPlacement: t,
250
+ placement: l,
251
+ strategy: i,
252
+ middlewareData: u,
253
+ rects: d,
254
+ platform: e,
255
+ elements: {
256
+ reference: r,
257
+ floating: a
258
+ }
259
+ });
260
+ c = k != null ? k : c;
261
+ b = p != null ? p : b;
262
+ u = {
263
+ ...u,
264
+ [n]: {
265
+ ...u[n],
266
+ ...f
267
+ }
268
+ };
269
+ if (w && m <= 50) {
270
+ m++;
271
+ if (typeof w === "object") {
272
+ if (w.placement) {
273
+ l = w.placement;
274
+ }
275
+ if (w.rects) {
276
+ d = w.rects === true ? await e.getElementRects({
277
+ reference: r,
278
+ floating: a,
279
+ strategy: i
280
+ }) : w.rects;
281
+ }
282
+ ({x: c, y: b} = computeCoordsFromPlacement(d, l, v));
283
+ }
284
+ o = -1;
285
+ }
286
+ }
287
+ return {
288
+ x: c,
289
+ y: b,
290
+ placement: l,
291
+ strategy: i,
292
+ middlewareData: u
293
+ };
294
+ };
295
+
296
+ /**
297
+ * Resolves with an object of overflow side offsets that determine how much the
298
+ * element is overflowing a given clipping boundary on each side.
299
+ * - positive = overflowing the boundary by that number of pixels
300
+ * - negative = how many pixels left before it will overflow
301
+ * - 0 = lies flush with the boundary
302
+ * @see https://floating-ui.com/docs/detectOverflow
303
+ */ async function detectOverflow(r, a) {
304
+ var o;
305
+ if (a === void 0) {
306
+ a = {};
307
+ }
308
+ const {x: t, y: i, platform: n, rects: e, elements: g, strategy: v} = r;
309
+ const {boundary: d = "clippingAncestors", rootBoundary: c = "viewport", elementContext: b = "floating", altBoundary: l = false, padding: u = 0} = evaluate(a, r);
310
+ const m = getPaddingObject(u);
311
+ const s = b === "floating" ? "reference" : "floating";
312
+ const k = g[l ? s : b];
313
+ const p = rectToClientRect(await n.getClippingRect({
314
+ element: ((o = await (n.isElement == null ? void 0 : n.isElement(k))) != null ? o : true) ? k : k.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(g.floating)),
315
+ boundary: d,
316
+ rootBoundary: c,
317
+ strategy: v
318
+ }));
319
+ const f = b === "floating" ? {
320
+ x: t,
321
+ y: i,
322
+ width: e.floating.width,
323
+ height: e.floating.height
324
+ } : e.reference;
325
+ const w = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(g.floating));
326
+ const h = await (n.isElement == null ? void 0 : n.isElement(w)) ? await (n.getScale == null ? void 0 : n.getScale(w)) || {
327
+ x: 1,
328
+ y: 1
329
+ } : {
330
+ x: 1,
331
+ y: 1
332
+ };
333
+ const y = rectToClientRect(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
334
+ elements: g,
335
+ rect: f,
336
+ offsetParent: w,
337
+ strategy: v
338
+ }) : f);
339
+ return {
340
+ top: (p.top - y.top + m.top) / h.y,
341
+ bottom: (y.bottom - p.bottom + m.bottom) / h.y,
342
+ left: (p.left - y.left + m.left) / h.x,
343
+ right: (y.right - p.right + m.right) / h.x
344
+ };
345
+ }
346
+
347
+ /**
348
+ * Provides data to position an inner element of the floating element so that it
349
+ * appears centered to the reference element.
350
+ * @see https://floating-ui.com/docs/arrow
351
+ */ const arrow$1 = r => ({
352
+ name: "arrow",
353
+ options: r,
354
+ async fn(a) {
355
+ const {x: o, y: t, placement: i, rects: n, platform: e, elements: g, middlewareData: v} = a;
356
+ // Since `element` is required, we don't Partial<> the type.
357
+ const {element: c, padding: b = 0} = evaluate(r, a) || {};
358
+ if (c == null) {
359
+ return {};
360
+ }
361
+ const l = getPaddingObject(b);
362
+ const u = {
363
+ x: o,
364
+ y: t
365
+ };
366
+ const m = getAlignmentAxis(i);
367
+ const s = getAxisLength(m);
368
+ const k = await e.getDimensions(c);
369
+ const p = m === "y";
370
+ const f = p ? "top" : "left";
371
+ const w = p ? "bottom" : "right";
372
+ const h = p ? "clientHeight" : "clientWidth";
373
+ const y = n.reference[s] + n.reference[m] - u[m] - n.floating[s];
374
+ const x = u[m] - n.reference[m];
375
+ const A = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(c));
376
+ let O = A ? A[h] : 0;
377
+ // DOM platform can return `window` as the `offsetParent`.
378
+ if (!O || !await (e.isElement == null ? void 0 : e.isElement(A))) {
379
+ O = g.floating[h] || n.floating[s];
380
+ }
381
+ const C = y / 2 - x / 2;
382
+ // If the padding is large enough that it causes the arrow to no longer be
383
+ // centered, modify the padding so that it is centered.
384
+ const S = O / 2 - k[s] / 2 - 1;
385
+ const E = d(l[f], S);
386
+ const T = d(l[w], S);
387
+ // Make sure the arrow doesn't overflow the floating element if the center
388
+ // point is outside the floating element's bounds.
389
+ const z = E;
390
+ const P = O - k[s] - T;
391
+ const R = O / 2 - k[s] / 2 + C;
392
+ const L = clamp(z, R, P);
393
+ // If the reference is small enough that the arrow's padding causes it to
394
+ // to point to nothing for an aligned placement, adjust the offset of the
395
+ // floating element itself. To ensure `shift()` continues to take action,
396
+ // a single reset is performed when this is true.
397
+ const N = !v.arrow && getAlignment(i) != null && R !== L && n.reference[s] / 2 - (R < z ? E : T) - k[s] / 2 < 0;
398
+ const D = N ? R < z ? R - z : R - P : 0;
399
+ return {
400
+ [m]: u[m] + D,
401
+ data: {
402
+ [m]: L,
403
+ centerOffset: R - L - D,
404
+ ...N && {
405
+ alignmentOffset: D
406
+ }
407
+ },
408
+ reset: N
409
+ };
410
+ }
411
+ })
412
+ /**
413
+ * Optimizes the visibility of the floating element by flipping the `placement`
414
+ * in order to keep it in view when the preferred placement(s) will overflow the
415
+ * clipping boundary. Alternative to `autoPlacement`.
416
+ * @see https://floating-ui.com/docs/flip
417
+ */;
418
+
419
+ const flip$1 = function(r) {
420
+ if (r === void 0) {
421
+ r = {};
422
+ }
423
+ return {
424
+ name: "flip",
425
+ options: r,
426
+ async fn(a) {
427
+ var o, t;
428
+ const {placement: i, middlewareData: n, rects: e, initialPlacement: g, platform: v, elements: d} = a;
429
+ const {mainAxis: c = true, crossAxis: b = true, fallbackPlacements: l, fallbackStrategy: u = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: s = true, ...k} = evaluate(r, a);
430
+ // If a reset by the arrow was caused due to an alignment offset being
431
+ // added, we should skip any logic now since `flip()` has already done its
432
+ // work.
433
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
434
+ if ((o = n.arrow) != null && o.alignmentOffset) {
435
+ return {};
436
+ }
437
+ const p = getSide(i);
438
+ const f = getSideAxis(g);
439
+ const w = getSide(g) === g;
440
+ const h = await (v.isRTL == null ? void 0 : v.isRTL(d.floating));
441
+ const y = l || (w || !s ? [ getOppositePlacement(g) ] : getExpandedPlacements(g));
442
+ const x = m !== "none";
443
+ if (!l && x) {
444
+ y.push(...getOppositeAxisPlacements(g, s, m, h));
445
+ }
446
+ const A = [ g, ...y ];
447
+ const O = await detectOverflow(a, k);
448
+ const C = [];
449
+ let S = ((t = n.flip) == null ? void 0 : t.overflows) || [];
450
+ if (c) {
451
+ C.push(O[p]);
452
+ }
453
+ if (b) {
454
+ const r = getAlignmentSides(i, e, h);
455
+ C.push(O[r[0]], O[r[1]]);
456
+ }
457
+ S = [ ...S, {
458
+ placement: i,
459
+ overflows: C
460
+ } ];
461
+ // One or more sides is overflowing.
462
+ if (!C.every((r => r <= 0))) {
463
+ var E, T;
464
+ const r = (((E = n.flip) == null ? void 0 : E.index) || 0) + 1;
465
+ const a = A[r];
466
+ if (a) {
467
+ const o = b === "alignment" ? f !== getSideAxis(a) : false;
468
+ if (!o ||
469
+ // We leave the current main axis only if every placement on that axis
470
+ // overflows the main axis.
471
+ S.every((r => r.overflows[0] > 0 && getSideAxis(r.placement) === f))) {
472
+ // Try next placement and re-run the lifecycle.
473
+ return {
474
+ data: {
475
+ index: r,
476
+ overflows: S
477
+ },
478
+ reset: {
479
+ placement: a
480
+ }
481
+ };
482
+ }
483
+ }
484
+ // First, find the candidates that fit on the mainAxis side of overflow,
485
+ // then find the placement that fits the best on the main crossAxis side.
486
+ let o = (T = S.filter((r => r.overflows[0] <= 0)).sort(((r, a) => r.overflows[1] - a.overflows[1]))[0]) == null ? void 0 : T.placement;
487
+ // Otherwise fallback.
488
+ if (!o) {
489
+ switch (u) {
490
+ case "bestFit":
491
+ {
492
+ var z;
493
+ const r = (z = S.filter((r => {
494
+ if (x) {
495
+ const a = getSideAxis(r.placement);
496
+ return a === f ||
497
+ // Create a bias to the `y` side axis due to horizontal
498
+ // reading directions favoring greater width.
499
+ a === "y";
500
+ }
501
+ return true;
502
+ })).map((r => [ r.placement, r.overflows.filter((r => r > 0)).reduce(((r, a) => r + a), 0) ])).sort(((r, a) => r[1] - a[1]))[0]) == null ? void 0 : z[0];
503
+ if (r) {
504
+ o = r;
505
+ }
506
+ break;
507
+ }
508
+
509
+ case "initialPlacement":
510
+ o = g;
511
+ break;
512
+ }
513
+ }
514
+ if (i !== o) {
515
+ return {
516
+ reset: {
517
+ placement: o
518
+ }
519
+ };
520
+ }
521
+ }
522
+ return {};
523
+ }
524
+ };
525
+ };
526
+
527
+ function getSideOffsets(r, a) {
528
+ return {
529
+ top: r.top - a.height,
530
+ right: r.right - a.width,
531
+ bottom: r.bottom - a.height,
532
+ left: r.left - a.width
533
+ };
534
+ }
535
+
536
+ function isAnySideFullyClipped(r) {
537
+ return v.some((a => r[a] >= 0));
538
+ }
539
+
540
+ /**
541
+ * Provides data to hide the floating element in applicable situations, such as
542
+ * when it is not in the same clipping context as the reference element.
543
+ * @see https://floating-ui.com/docs/hide
544
+ */ const hide$1 = function(r) {
545
+ if (r === void 0) {
546
+ r = {};
547
+ }
548
+ return {
549
+ name: "hide",
550
+ options: r,
551
+ async fn(a) {
552
+ const {rects: o} = a;
553
+ const {strategy: t = "referenceHidden", ...i} = evaluate(r, a);
554
+ switch (t) {
555
+ case "referenceHidden":
556
+ {
557
+ const r = await detectOverflow(a, {
558
+ ...i,
559
+ elementContext: "reference"
560
+ });
561
+ const t = getSideOffsets(r, o.reference);
562
+ return {
563
+ data: {
564
+ referenceHiddenOffsets: t,
565
+ referenceHidden: isAnySideFullyClipped(t)
566
+ }
567
+ };
568
+ }
569
+
570
+ case "escaped":
571
+ {
572
+ const r = await detectOverflow(a, {
573
+ ...i,
574
+ altBoundary: true
575
+ });
576
+ const t = getSideOffsets(r, o.floating);
577
+ return {
578
+ data: {
579
+ escapedOffsets: t,
580
+ escaped: isAnySideFullyClipped(t)
581
+ }
582
+ };
583
+ }
584
+
585
+ default:
586
+ {
587
+ return {};
588
+ }
589
+ }
590
+ }
591
+ };
592
+ };
593
+
594
+ // For type backwards-compatibility, the `OffsetOptions` type was also
595
+ // Derivable.
596
+ async function convertValueToCoords(r, a) {
597
+ const {placement: o, platform: t, elements: i} = r;
598
+ const n = await (t.isRTL == null ? void 0 : t.isRTL(i.floating));
599
+ const e = getSide(o);
600
+ const g = getAlignment(o);
601
+ const v = getSideAxis(o) === "y";
602
+ const d = [ "left", "top" ].includes(e) ? -1 : 1;
603
+ const c = n && v ? -1 : 1;
604
+ const b = evaluate(a, r);
605
+ // eslint-disable-next-line prefer-const
606
+ let {mainAxis: l, crossAxis: u, alignmentAxis: m} = typeof b === "number" ? {
607
+ mainAxis: b,
608
+ crossAxis: 0,
609
+ alignmentAxis: null
610
+ } : {
611
+ mainAxis: b.mainAxis || 0,
612
+ crossAxis: b.crossAxis || 0,
613
+ alignmentAxis: b.alignmentAxis
614
+ };
615
+ if (g && typeof m === "number") {
616
+ u = g === "end" ? m * -1 : m;
617
+ }
618
+ return v ? {
619
+ x: u * c,
620
+ y: l * d
621
+ } : {
622
+ x: l * d,
623
+ y: u * c
624
+ };
625
+ }
626
+
627
+ /**
628
+ * Modifies the placement by translating the floating element along the
629
+ * specified axes.
630
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
631
+ * object may be passed.
632
+ * @see https://floating-ui.com/docs/offset
633
+ */ const offset$1 = function(r) {
634
+ if (r === void 0) {
635
+ r = 0;
636
+ }
637
+ return {
638
+ name: "offset",
639
+ options: r,
640
+ async fn(a) {
641
+ var o, t;
642
+ const {x: i, y: n, placement: e, middlewareData: g} = a;
643
+ const v = await convertValueToCoords(a, r);
644
+ // If the placement is the same and the arrow caused an alignment offset
645
+ // then we don't need to change the positioning coordinates.
646
+ if (e === ((o = g.offset) == null ? void 0 : o.placement) && (t = g.arrow) != null && t.alignmentOffset) {
647
+ return {};
648
+ }
649
+ return {
650
+ x: i + v.x,
651
+ y: n + v.y,
652
+ data: {
653
+ ...v,
654
+ placement: e
655
+ }
656
+ };
657
+ }
658
+ };
659
+ };
660
+
661
+ /**
662
+ * Optimizes the visibility of the floating element by shifting it in order to
663
+ * keep it in view when it will overflow the clipping boundary.
664
+ * @see https://floating-ui.com/docs/shift
665
+ */ const shift$1 = function(r) {
666
+ if (r === void 0) {
667
+ r = {};
668
+ }
669
+ return {
670
+ name: "shift",
671
+ options: r,
672
+ async fn(a) {
673
+ const {x: o, y: t, placement: i} = a;
674
+ const {mainAxis: n = true, crossAxis: e = false, limiter: g = {
675
+ fn: r => {
676
+ let {x: a, y: o} = r;
677
+ return {
678
+ x: a,
679
+ y: o
680
+ };
681
+ }
682
+ }, ...v} = evaluate(r, a);
683
+ const d = {
684
+ x: o,
685
+ y: t
686
+ };
687
+ const c = await detectOverflow(a, v);
688
+ const b = getSideAxis(getSide(i));
689
+ const l = getOppositeAxis(b);
690
+ let u = d[l];
691
+ let m = d[b];
692
+ if (n) {
693
+ const r = l === "y" ? "top" : "left";
694
+ const a = l === "y" ? "bottom" : "right";
695
+ const o = u + c[r];
696
+ const t = u - c[a];
697
+ u = clamp(o, u, t);
698
+ }
699
+ if (e) {
700
+ const r = b === "y" ? "top" : "left";
701
+ const a = b === "y" ? "bottom" : "right";
702
+ const o = m + c[r];
703
+ const t = m - c[a];
704
+ m = clamp(o, m, t);
705
+ }
706
+ const s = g.fn({
707
+ ...a,
708
+ [l]: u,
709
+ [b]: m
710
+ });
711
+ return {
712
+ ...s,
713
+ data: {
714
+ x: s.x - o,
715
+ y: s.y - t,
716
+ enabled: {
717
+ [l]: n,
718
+ [b]: e
719
+ }
720
+ }
721
+ };
722
+ }
723
+ };
724
+ };
725
+
726
+ function hasWindow() {
727
+ return typeof window !== "undefined";
728
+ }
729
+
730
+ function getNodeName(r) {
731
+ if (isNode(r)) {
732
+ return (r.nodeName || "").toLowerCase();
733
+ }
734
+ // Mocked nodes in testing environments may not be instances of Node. By
735
+ // returning `#document` an infinite loop won't occur.
736
+ // https://github.com/floating-ui/floating-ui/issues/2317
737
+ return "#document";
738
+ }
739
+
740
+ function getWindow(r) {
741
+ var a;
742
+ return (r == null || (a = r.ownerDocument) == null ? void 0 : a.defaultView) || window;
743
+ }
744
+
745
+ function getDocumentElement(r) {
746
+ var a;
747
+ return (a = (isNode(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : a.documentElement;
748
+ }
749
+
750
+ function isNode(r) {
751
+ if (!hasWindow()) {
752
+ return false;
753
+ }
754
+ return r instanceof Node || r instanceof getWindow(r).Node;
755
+ }
756
+
757
+ function isElement(r) {
758
+ if (!hasWindow()) {
759
+ return false;
760
+ }
761
+ return r instanceof Element || r instanceof getWindow(r).Element;
762
+ }
763
+
764
+ function isHTMLElement(r) {
765
+ if (!hasWindow()) {
766
+ return false;
767
+ }
768
+ return r instanceof HTMLElement || r instanceof getWindow(r).HTMLElement;
769
+ }
770
+
771
+ function isShadowRoot(r) {
772
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
773
+ return false;
774
+ }
775
+ return r instanceof ShadowRoot || r instanceof getWindow(r).ShadowRoot;
776
+ }
777
+
778
+ function isOverflowElement(r) {
779
+ const {overflow: a, overflowX: o, overflowY: t, display: i} = getComputedStyle(r);
780
+ return /auto|scroll|overlay|hidden|clip/.test(a + t + o) && ![ "inline", "contents" ].includes(i);
781
+ }
782
+
783
+ function isTableElement(r) {
784
+ return [ "table", "td", "th" ].includes(getNodeName(r));
785
+ }
786
+
787
+ function isTopLayer(r) {
788
+ return [ ":popover-open", ":modal" ].some((a => {
789
+ try {
790
+ return r.matches(a);
791
+ } catch (r) {
792
+ return false;
793
+ }
794
+ }));
795
+ }
796
+
797
+ function isContainingBlock(r) {
798
+ const a = isWebKit();
799
+ const o = isElement(r) ? getComputedStyle(r) : r;
800
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
801
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
802
+ return [ "transform", "translate", "scale", "rotate", "perspective" ].some((r => o[r] ? o[r] !== "none" : false)) || (o.containerType ? o.containerType !== "normal" : false) || !a && (o.backdropFilter ? o.backdropFilter !== "none" : false) || !a && (o.filter ? o.filter !== "none" : false) || [ "transform", "translate", "scale", "rotate", "perspective", "filter" ].some((r => (o.willChange || "").includes(r))) || [ "paint", "layout", "strict", "content" ].some((r => (o.contain || "").includes(r)));
803
+ }
804
+
805
+ function getContainingBlock(r) {
806
+ let a = getParentNode(r);
807
+ while (isHTMLElement(a) && !isLastTraversableNode(a)) {
808
+ if (isContainingBlock(a)) {
809
+ return a;
810
+ } else if (isTopLayer(a)) {
811
+ return null;
812
+ }
813
+ a = getParentNode(a);
814
+ }
815
+ return null;
816
+ }
817
+
818
+ function isWebKit() {
819
+ if (typeof CSS === "undefined" || !CSS.supports) return false;
820
+ return CSS.supports("-webkit-backdrop-filter", "none");
821
+ }
822
+
823
+ function isLastTraversableNode(r) {
824
+ return [ "html", "body", "#document" ].includes(getNodeName(r));
825
+ }
826
+
827
+ function getComputedStyle(r) {
828
+ return getWindow(r).getComputedStyle(r);
829
+ }
830
+
831
+ function getNodeScroll(r) {
832
+ if (isElement(r)) {
833
+ return {
834
+ scrollLeft: r.scrollLeft,
835
+ scrollTop: r.scrollTop
836
+ };
837
+ }
838
+ return {
839
+ scrollLeft: r.scrollX,
840
+ scrollTop: r.scrollY
841
+ };
842
+ }
843
+
844
+ function getParentNode(r) {
845
+ if (getNodeName(r) === "html") {
846
+ return r;
847
+ }
848
+ const a =
849
+ // Step into the shadow DOM of the parent of a slotted node.
850
+ r.assignedSlot ||
851
+ // DOM Element detected.
852
+ r.parentNode ||
853
+ // ShadowRoot detected.
854
+ isShadowRoot(r) && r.host ||
855
+ // Fallback.
856
+ getDocumentElement(r);
857
+ return isShadowRoot(a) ? a.host : a;
858
+ }
859
+
860
+ function getNearestOverflowAncestor(r) {
861
+ const a = getParentNode(r);
862
+ if (isLastTraversableNode(a)) {
863
+ return r.ownerDocument ? r.ownerDocument.body : r.body;
864
+ }
865
+ if (isHTMLElement(a) && isOverflowElement(a)) {
866
+ return a;
867
+ }
868
+ return getNearestOverflowAncestor(a);
869
+ }
870
+
871
+ function getOverflowAncestors(r, a, o) {
872
+ var t;
873
+ if (a === void 0) {
874
+ a = [];
875
+ }
876
+ if (o === void 0) {
877
+ o = true;
878
+ }
879
+ const i = getNearestOverflowAncestor(r);
880
+ const n = i === ((t = r.ownerDocument) == null ? void 0 : t.body);
881
+ const e = getWindow(i);
882
+ if (n) {
883
+ const r = getFrameElement(e);
884
+ return a.concat(e, e.visualViewport || [], isOverflowElement(i) ? i : [], r && o ? getOverflowAncestors(r) : []);
885
+ }
886
+ return a.concat(i, getOverflowAncestors(i, [], o));
887
+ }
888
+
889
+ function getFrameElement(r) {
890
+ return r.parent && Object.getPrototypeOf(r.parent) ? r.frameElement : null;
891
+ }
892
+
893
+ function getCssDimensions(r) {
894
+ const a = getComputedStyle(r);
895
+ // In testing environments, the `width` and `height` properties are empty
896
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
897
+ let o = parseFloat(a.width) || 0;
898
+ let t = parseFloat(a.height) || 0;
899
+ const i = isHTMLElement(r);
900
+ const n = i ? r.offsetWidth : o;
901
+ const e = i ? r.offsetHeight : t;
902
+ const g = b(o) !== n || b(t) !== e;
903
+ if (g) {
904
+ o = n;
905
+ t = e;
906
+ }
907
+ return {
908
+ width: o,
909
+ height: t,
910
+ $: g
911
+ };
912
+ }
913
+
914
+ function unwrapElement(r) {
915
+ return !isElement(r) ? r.contextElement : r;
916
+ }
917
+
918
+ function getScale(r) {
919
+ const a = unwrapElement(r);
920
+ if (!isHTMLElement(a)) {
921
+ return createCoords(1);
922
+ }
923
+ const o = a.getBoundingClientRect();
924
+ const {width: t, height: i, $: n} = getCssDimensions(a);
925
+ let e = (n ? b(o.width) : o.width) / t;
926
+ let g = (n ? b(o.height) : o.height) / i;
927
+ // 0, NaN, or Infinity should always fallback to 1.
928
+ if (!e || !Number.isFinite(e)) {
929
+ e = 1;
930
+ }
931
+ if (!g || !Number.isFinite(g)) {
932
+ g = 1;
933
+ }
934
+ return {
935
+ x: e,
936
+ y: g
937
+ };
938
+ }
939
+
940
+ const s = createCoords(0);
941
+
942
+ function getVisualOffsets(r) {
943
+ const a = getWindow(r);
944
+ if (!isWebKit() || !a.visualViewport) {
945
+ return s;
946
+ }
947
+ return {
948
+ x: a.visualViewport.offsetLeft,
949
+ y: a.visualViewport.offsetTop
950
+ };
951
+ }
952
+
953
+ function shouldAddVisualOffsets(r, a, o) {
954
+ if (a === void 0) {
955
+ a = false;
956
+ }
957
+ if (!o || a && o !== getWindow(r)) {
958
+ return false;
959
+ }
960
+ return a;
961
+ }
962
+
963
+ function getBoundingClientRect(r, a, o, t) {
964
+ if (a === void 0) {
965
+ a = false;
966
+ }
967
+ if (o === void 0) {
968
+ o = false;
969
+ }
970
+ const i = r.getBoundingClientRect();
971
+ const n = unwrapElement(r);
972
+ let e = createCoords(1);
973
+ if (a) {
974
+ if (t) {
975
+ if (isElement(t)) {
976
+ e = getScale(t);
977
+ }
978
+ } else {
979
+ e = getScale(r);
980
+ }
981
+ }
982
+ const g = shouldAddVisualOffsets(n, o, t) ? getVisualOffsets(n) : createCoords(0);
983
+ let v = (i.left + g.x) / e.x;
984
+ let d = (i.top + g.y) / e.y;
985
+ let c = i.width / e.x;
986
+ let b = i.height / e.y;
987
+ if (n) {
988
+ const r = getWindow(n);
989
+ const a = t && isElement(t) ? getWindow(t) : t;
990
+ let o = r;
991
+ let i = getFrameElement(o);
992
+ while (i && t && a !== o) {
993
+ const r = getScale(i);
994
+ const a = i.getBoundingClientRect();
995
+ const t = getComputedStyle(i);
996
+ const n = a.left + (i.clientLeft + parseFloat(t.paddingLeft)) * r.x;
997
+ const e = a.top + (i.clientTop + parseFloat(t.paddingTop)) * r.y;
998
+ v *= r.x;
999
+ d *= r.y;
1000
+ c *= r.x;
1001
+ b *= r.y;
1002
+ v += n;
1003
+ d += e;
1004
+ o = getWindow(i);
1005
+ i = getFrameElement(o);
1006
+ }
1007
+ }
1008
+ return rectToClientRect({
1009
+ width: c,
1010
+ height: b,
1011
+ x: v,
1012
+ y: d
1013
+ });
1014
+ }
1015
+
1016
+ // If <html> has a CSS width greater than the viewport, then this will be
1017
+ // incorrect for RTL.
1018
+ function getWindowScrollBarX(r, a) {
1019
+ const o = getNodeScroll(r).scrollLeft;
1020
+ if (!a) {
1021
+ return getBoundingClientRect(getDocumentElement(r)).left + o;
1022
+ }
1023
+ return a.left + o;
1024
+ }
1025
+
1026
+ function getHTMLOffset(r, a, o) {
1027
+ if (o === void 0) {
1028
+ o = false;
1029
+ }
1030
+ const t = r.getBoundingClientRect();
1031
+ const i = t.left + a.scrollLeft - (o ? 0 :
1032
+ // RTL <body> scrollbar.
1033
+ getWindowScrollBarX(r, t));
1034
+ const n = t.top + a.scrollTop;
1035
+ return {
1036
+ x: i,
1037
+ y: n
1038
+ };
1039
+ }
1040
+
1041
+ function convertOffsetParentRelativeRectToViewportRelativeRect(r) {
1042
+ let {elements: a, rect: o, offsetParent: t, strategy: i} = r;
1043
+ const n = i === "fixed";
1044
+ const e = getDocumentElement(t);
1045
+ const g = a ? isTopLayer(a.floating) : false;
1046
+ if (t === e || g && n) {
1047
+ return o;
1048
+ }
1049
+ let v = {
1050
+ scrollLeft: 0,
1051
+ scrollTop: 0
1052
+ };
1053
+ let d = createCoords(1);
1054
+ const c = createCoords(0);
1055
+ const b = isHTMLElement(t);
1056
+ if (b || !b && !n) {
1057
+ if (getNodeName(t) !== "body" || isOverflowElement(e)) {
1058
+ v = getNodeScroll(t);
1059
+ }
1060
+ if (isHTMLElement(t)) {
1061
+ const r = getBoundingClientRect(t);
1062
+ d = getScale(t);
1063
+ c.x = r.x + t.clientLeft;
1064
+ c.y = r.y + t.clientTop;
1065
+ }
1066
+ }
1067
+ const l = e && !b && !n ? getHTMLOffset(e, v, true) : createCoords(0);
1068
+ return {
1069
+ width: o.width * d.x,
1070
+ height: o.height * d.y,
1071
+ x: o.x * d.x - v.scrollLeft * d.x + c.x + l.x,
1072
+ y: o.y * d.y - v.scrollTop * d.y + c.y + l.y
1073
+ };
1074
+ }
1075
+
1076
+ function getClientRects(r) {
1077
+ return Array.from(r.getClientRects());
1078
+ }
1079
+
1080
+ // Gets the entire size of the scrollable document area, even extending outside
1081
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1082
+ function getDocumentRect(r) {
1083
+ const a = getDocumentElement(r);
1084
+ const o = getNodeScroll(r);
1085
+ const t = r.ownerDocument.body;
1086
+ const i = c(a.scrollWidth, a.clientWidth, t.scrollWidth, t.clientWidth);
1087
+ const n = c(a.scrollHeight, a.clientHeight, t.scrollHeight, t.clientHeight);
1088
+ let e = -o.scrollLeft + getWindowScrollBarX(r);
1089
+ const g = -o.scrollTop;
1090
+ if (getComputedStyle(t).direction === "rtl") {
1091
+ e += c(a.clientWidth, t.clientWidth) - i;
1092
+ }
1093
+ return {
1094
+ width: i,
1095
+ height: n,
1096
+ x: e,
1097
+ y: g
1098
+ };
1099
+ }
1100
+
1101
+ function getViewportRect(r, a) {
1102
+ const o = getWindow(r);
1103
+ const t = getDocumentElement(r);
1104
+ const i = o.visualViewport;
1105
+ let n = t.clientWidth;
1106
+ let e = t.clientHeight;
1107
+ let g = 0;
1108
+ let v = 0;
1109
+ if (i) {
1110
+ n = i.width;
1111
+ e = i.height;
1112
+ const r = isWebKit();
1113
+ if (!r || r && a === "fixed") {
1114
+ g = i.offsetLeft;
1115
+ v = i.offsetTop;
1116
+ }
1117
+ }
1118
+ return {
1119
+ width: n,
1120
+ height: e,
1121
+ x: g,
1122
+ y: v
1123
+ };
1124
+ }
1125
+
1126
+ // Returns the inner client rect, subtracting scrollbars if present.
1127
+ function getInnerBoundingClientRect(r, a) {
1128
+ const o = getBoundingClientRect(r, true, a === "fixed");
1129
+ const t = o.top + r.clientTop;
1130
+ const i = o.left + r.clientLeft;
1131
+ const n = isHTMLElement(r) ? getScale(r) : createCoords(1);
1132
+ const e = r.clientWidth * n.x;
1133
+ const g = r.clientHeight * n.y;
1134
+ const v = i * n.x;
1135
+ const d = t * n.y;
1136
+ return {
1137
+ width: e,
1138
+ height: g,
1139
+ x: v,
1140
+ y: d
1141
+ };
1142
+ }
1143
+
1144
+ function getClientRectFromClippingAncestor(r, a, o) {
1145
+ let t;
1146
+ if (a === "viewport") {
1147
+ t = getViewportRect(r, o);
1148
+ } else if (a === "document") {
1149
+ t = getDocumentRect(getDocumentElement(r));
1150
+ } else if (isElement(a)) {
1151
+ t = getInnerBoundingClientRect(a, o);
1152
+ } else {
1153
+ const o = getVisualOffsets(r);
1154
+ t = {
1155
+ x: a.x - o.x,
1156
+ y: a.y - o.y,
1157
+ width: a.width,
1158
+ height: a.height
1159
+ };
1160
+ }
1161
+ return rectToClientRect(t);
1162
+ }
1163
+
1164
+ function hasFixedPositionAncestor(r, a) {
1165
+ const o = getParentNode(r);
1166
+ if (o === a || !isElement(o) || isLastTraversableNode(o)) {
1167
+ return false;
1168
+ }
1169
+ return getComputedStyle(o).position === "fixed" || hasFixedPositionAncestor(o, a);
1170
+ }
1171
+
1172
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
1173
+ // clipping (or hiding) child elements. This returns all clipping ancestors
1174
+ // of the given element up the tree.
1175
+ function getClippingElementAncestors(r, a) {
1176
+ const o = a.get(r);
1177
+ if (o) {
1178
+ return o;
1179
+ }
1180
+ let t = getOverflowAncestors(r, [], false).filter((r => isElement(r) && getNodeName(r) !== "body"));
1181
+ let i = null;
1182
+ const n = getComputedStyle(r).position === "fixed";
1183
+ let e = n ? getParentNode(r) : r;
1184
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1185
+ while (isElement(e) && !isLastTraversableNode(e)) {
1186
+ const a = getComputedStyle(e);
1187
+ const o = isContainingBlock(e);
1188
+ if (!o && a.position === "fixed") {
1189
+ i = null;
1190
+ }
1191
+ const g = n ? !o && !i : !o && a.position === "static" && !!i && [ "absolute", "fixed" ].includes(i.position) || isOverflowElement(e) && !o && hasFixedPositionAncestor(r, e);
1192
+ if (g) {
1193
+ // Drop non-containing blocks.
1194
+ t = t.filter((r => r !== e));
1195
+ } else {
1196
+ // Record last containing block for next iteration.
1197
+ i = a;
1198
+ }
1199
+ e = getParentNode(e);
1200
+ }
1201
+ a.set(r, t);
1202
+ return t;
1203
+ }
1204
+
1205
+ // Gets the maximum area that the element is visible in due to any number of
1206
+ // clipping ancestors.
1207
+ function getClippingRect(r) {
1208
+ let {element: a, boundary: o, rootBoundary: t, strategy: i} = r;
1209
+ const n = o === "clippingAncestors" ? isTopLayer(a) ? [] : getClippingElementAncestors(a, this._c) : [].concat(o);
1210
+ const e = [ ...n, t ];
1211
+ const g = e[0];
1212
+ const v = e.reduce(((r, o) => {
1213
+ const t = getClientRectFromClippingAncestor(a, o, i);
1214
+ r.top = c(t.top, r.top);
1215
+ r.right = d(t.right, r.right);
1216
+ r.bottom = d(t.bottom, r.bottom);
1217
+ r.left = c(t.left, r.left);
1218
+ return r;
1219
+ }), getClientRectFromClippingAncestor(a, g, i));
1220
+ return {
1221
+ width: v.right - v.left,
1222
+ height: v.bottom - v.top,
1223
+ x: v.left,
1224
+ y: v.top
1225
+ };
1226
+ }
1227
+
1228
+ function getDimensions(r) {
1229
+ const {width: a, height: o} = getCssDimensions(r);
1230
+ return {
1231
+ width: a,
1232
+ height: o
1233
+ };
1234
+ }
1235
+
1236
+ function getRectRelativeToOffsetParent(r, a, o) {
1237
+ const t = isHTMLElement(a);
1238
+ const i = getDocumentElement(a);
1239
+ const n = o === "fixed";
1240
+ const e = getBoundingClientRect(r, true, n, a);
1241
+ let g = {
1242
+ scrollLeft: 0,
1243
+ scrollTop: 0
1244
+ };
1245
+ const v = createCoords(0);
1246
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1247
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1248
+ function setLeftRTLScrollbarOffset() {
1249
+ v.x = getWindowScrollBarX(i);
1250
+ }
1251
+ if (t || !t && !n) {
1252
+ if (getNodeName(a) !== "body" || isOverflowElement(i)) {
1253
+ g = getNodeScroll(a);
1254
+ }
1255
+ if (t) {
1256
+ const r = getBoundingClientRect(a, true, n, a);
1257
+ v.x = r.x + a.clientLeft;
1258
+ v.y = r.y + a.clientTop;
1259
+ } else if (i) {
1260
+ setLeftRTLScrollbarOffset();
1261
+ }
1262
+ }
1263
+ if (n && !t && i) {
1264
+ setLeftRTLScrollbarOffset();
1265
+ }
1266
+ const d = i && !t && !n ? getHTMLOffset(i, g) : createCoords(0);
1267
+ const c = e.left + g.scrollLeft - v.x - d.x;
1268
+ const b = e.top + g.scrollTop - v.y - d.y;
1269
+ return {
1270
+ x: c,
1271
+ y: b,
1272
+ width: e.width,
1273
+ height: e.height
1274
+ };
1275
+ }
1276
+
1277
+ function isStaticPositioned(r) {
1278
+ return getComputedStyle(r).position === "static";
1279
+ }
1280
+
1281
+ function getTrueOffsetParent(r, a) {
1282
+ if (!isHTMLElement(r) || getComputedStyle(r).position === "fixed") {
1283
+ return null;
1284
+ }
1285
+ if (a) {
1286
+ return a(r);
1287
+ }
1288
+ let o = r.offsetParent;
1289
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
1290
+ // while Chrome and Safari return the <body> element. The <body> element must
1291
+ // be used to perform the correct calculations even if the <html> element is
1292
+ // non-static.
1293
+ if (getDocumentElement(r) === o) {
1294
+ o = o.ownerDocument.body;
1295
+ }
1296
+ return o;
1297
+ }
1298
+
1299
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1300
+ // such as table ancestors and cross browser bugs.
1301
+ function getOffsetParent(r, a) {
1302
+ const o = getWindow(r);
1303
+ if (isTopLayer(r)) {
1304
+ return o;
1305
+ }
1306
+ if (!isHTMLElement(r)) {
1307
+ let a = getParentNode(r);
1308
+ while (a && !isLastTraversableNode(a)) {
1309
+ if (isElement(a) && !isStaticPositioned(a)) {
1310
+ return a;
1311
+ }
1312
+ a = getParentNode(a);
1313
+ }
1314
+ return o;
1315
+ }
1316
+ let t = getTrueOffsetParent(r, a);
1317
+ while (t && isTableElement(t) && isStaticPositioned(t)) {
1318
+ t = getTrueOffsetParent(t, a);
1319
+ }
1320
+ if (t && isLastTraversableNode(t) && isStaticPositioned(t) && !isContainingBlock(t)) {
1321
+ return o;
1322
+ }
1323
+ return t || getContainingBlock(r) || o;
1324
+ }
1325
+
1326
+ const getElementRects = async function(r) {
1327
+ const a = this.getOffsetParent || getOffsetParent;
1328
+ const o = this.getDimensions;
1329
+ const t = await o(r.floating);
1330
+ return {
1331
+ reference: getRectRelativeToOffsetParent(r.reference, await a(r.floating), r.strategy),
1332
+ floating: {
1333
+ x: 0,
1334
+ y: 0,
1335
+ width: t.width,
1336
+ height: t.height
1337
+ }
1338
+ };
1339
+ };
1340
+
1341
+ function isRTL(r) {
1342
+ return getComputedStyle(r).direction === "rtl";
1343
+ }
1344
+
1345
+ const k = {
1346
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1347
+ getDocumentElement,
1348
+ getClippingRect,
1349
+ getOffsetParent,
1350
+ getElementRects,
1351
+ getClientRects,
1352
+ getDimensions,
1353
+ getScale,
1354
+ isElement,
1355
+ isRTL
1356
+ };
1357
+
1358
+ function rectsAreEqual(r, a) {
1359
+ return r.x === a.x && r.y === a.y && r.width === a.width && r.height === a.height;
1360
+ }
1361
+
1362
+ // https://samthor.au/2021/observing-dom/
1363
+ function observeMove(r, a) {
1364
+ let o = null;
1365
+ let t;
1366
+ const i = getDocumentElement(r);
1367
+ function cleanup() {
1368
+ var r;
1369
+ clearTimeout(t);
1370
+ (r = o) == null || r.disconnect();
1371
+ o = null;
1372
+ }
1373
+ function refresh(n, e) {
1374
+ if (n === void 0) {
1375
+ n = false;
1376
+ }
1377
+ if (e === void 0) {
1378
+ e = 1;
1379
+ }
1380
+ cleanup();
1381
+ const g = r.getBoundingClientRect();
1382
+ const {left: v, top: b, width: u, height: m} = g;
1383
+ if (!n) {
1384
+ a();
1385
+ }
1386
+ if (!u || !m) {
1387
+ return;
1388
+ }
1389
+ const s = l(b);
1390
+ const k = l(i.clientWidth - (v + u));
1391
+ const p = l(i.clientHeight - (b + m));
1392
+ const f = l(v);
1393
+ const w = -s + "px " + -k + "px " + -p + "px " + -f + "px";
1394
+ const h = {
1395
+ rootMargin: w,
1396
+ threshold: c(0, d(1, e)) || 1
1397
+ };
1398
+ let y = true;
1399
+ function handleObserve(a) {
1400
+ const o = a[0].intersectionRatio;
1401
+ if (o !== e) {
1402
+ if (!y) {
1403
+ return refresh();
1404
+ }
1405
+ if (!o) {
1406
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
1407
+ // to prevent an infinite loop of updates.
1408
+ t = setTimeout((() => {
1409
+ refresh(false, 1e-7);
1410
+ }), 1e3);
1411
+ } else {
1412
+ refresh(false, o);
1413
+ }
1414
+ }
1415
+ if (o === 1 && !rectsAreEqual(g, r.getBoundingClientRect())) {
1416
+ // It's possible that even though the ratio is reported as 1, the
1417
+ // element is not actually fully within the IntersectionObserver's root
1418
+ // area anymore. This can happen under performance constraints. This may
1419
+ // be a bug in the browser's IntersectionObserver implementation. To
1420
+ // work around this, we compare the element's bounding rect now with
1421
+ // what it was at the time we created the IntersectionObserver. If they
1422
+ // are not equal then the element moved, so we refresh.
1423
+ refresh();
1424
+ }
1425
+ y = false;
1426
+ }
1427
+ // Older browsers don't support a `document` as the root and will throw an
1428
+ // error.
1429
+ try {
1430
+ o = new IntersectionObserver(handleObserve, {
1431
+ ...h,
1432
+ // Handle <iframe>s
1433
+ root: i.ownerDocument
1434
+ });
1435
+ } catch (r) {
1436
+ o = new IntersectionObserver(handleObserve, h);
1437
+ }
1438
+ o.observe(r);
1439
+ }
1440
+ refresh(true);
1441
+ return cleanup;
1442
+ }
1443
+
1444
+ /**
1445
+ * Automatically updates the position of the floating element when necessary.
1446
+ * Should only be called when the floating element is mounted on the DOM or
1447
+ * visible on the screen.
1448
+ * @returns cleanup function that should be invoked when the floating element is
1449
+ * removed from the DOM or hidden from the screen.
1450
+ * @see https://floating-ui.com/docs/autoUpdate
1451
+ */ function autoUpdate(r, a, o, t) {
1452
+ if (t === void 0) {
1453
+ t = {};
1454
+ }
1455
+ const {ancestorScroll: i = true, ancestorResize: n = true, elementResize: e = typeof ResizeObserver === "function", layoutShift: g = typeof IntersectionObserver === "function", animationFrame: v = false} = t;
1456
+ const d = unwrapElement(r);
1457
+ const c = i || n ? [ ...d ? getOverflowAncestors(d) : [], ...getOverflowAncestors(a) ] : [];
1458
+ c.forEach((r => {
1459
+ i && r.addEventListener("scroll", o, {
1460
+ passive: true
1461
+ });
1462
+ n && r.addEventListener("resize", o);
1463
+ }));
1464
+ const b = d && g ? observeMove(d, o) : null;
1465
+ let l = -1;
1466
+ let u = null;
1467
+ if (e) {
1468
+ u = new ResizeObserver((r => {
1469
+ let [t] = r;
1470
+ if (t && t.target === d && u) {
1471
+ // Prevent update loops when using the `size` middleware.
1472
+ // https://github.com/floating-ui/floating-ui/issues/1740
1473
+ u.unobserve(a);
1474
+ cancelAnimationFrame(l);
1475
+ l = requestAnimationFrame((() => {
1476
+ var r;
1477
+ (r = u) == null || r.observe(a);
1478
+ }));
1479
+ }
1480
+ o();
1481
+ }));
1482
+ if (d && !v) {
1483
+ u.observe(d);
1484
+ }
1485
+ u.observe(a);
1486
+ }
1487
+ let m;
1488
+ let s = v ? getBoundingClientRect(r) : null;
1489
+ if (v) {
1490
+ frameLoop();
1491
+ }
1492
+ function frameLoop() {
1493
+ const a = getBoundingClientRect(r);
1494
+ if (s && !rectsAreEqual(s, a)) {
1495
+ o();
1496
+ }
1497
+ s = a;
1498
+ m = requestAnimationFrame(frameLoop);
1499
+ }
1500
+ o();
1501
+ return () => {
1502
+ var r;
1503
+ c.forEach((r => {
1504
+ i && r.removeEventListener("scroll", o);
1505
+ n && r.removeEventListener("resize", o);
1506
+ }));
1507
+ b == null || b();
1508
+ (r = u) == null || r.disconnect();
1509
+ u = null;
1510
+ if (v) {
1511
+ cancelAnimationFrame(m);
1512
+ }
1513
+ };
1514
+ }
1515
+
1516
+ /**
1517
+ * Modifies the placement by translating the floating element along the
1518
+ * specified axes.
1519
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
1520
+ * object may be passed.
1521
+ * @see https://floating-ui.com/docs/offset
1522
+ */ const p = offset$1;
1523
+
1524
+ /**
1525
+ * Optimizes the visibility of the floating element by shifting it in order to
1526
+ * keep it in view when it will overflow the clipping boundary.
1527
+ * @see https://floating-ui.com/docs/shift
1528
+ */ const f = shift$1;
1529
+
1530
+ /**
1531
+ * Optimizes the visibility of the floating element by flipping the `placement`
1532
+ * in order to keep it in view when the preferred placement(s) will overflow the
1533
+ * clipping boundary. Alternative to `autoPlacement`.
1534
+ * @see https://floating-ui.com/docs/flip
1535
+ */ const w = flip$1;
1536
+
1537
+ /**
1538
+ * Provides data to hide the floating element in applicable situations, such as
1539
+ * when it is not in the same clipping context as the reference element.
1540
+ * @see https://floating-ui.com/docs/hide
1541
+ */ const h = hide$1;
1542
+
1543
+ /**
1544
+ * Provides data to position an inner element of the floating element so that it
1545
+ * appears centered to the reference element.
1546
+ * @see https://floating-ui.com/docs/arrow
1547
+ */ const y = arrow$1;
1548
+
1549
+ /**
1550
+ * Computes the `x` and `y` coordinates that will place the floating element
1551
+ * next to a given reference element.
1552
+ */ const computePosition = (r, a, o) => {
1553
+ // This caches the expensive `getClippingElementAncestors` function so that
1554
+ // multiple lifecycle resets re-use the same result. It only lives for a
1555
+ // single call. If other functions become expensive, we can add them as well.
1556
+ const t = new Map;
1557
+ const i = {
1558
+ platform: k,
1559
+ ...o
1560
+ };
1561
+ const n = {
1562
+ ...i.platform,
1563
+ _c: t
1564
+ };
1565
+ return computePosition$1(r, a, {
1566
+ ...i,
1567
+ platform: n
1568
+ });
1569
+ };
1570
+
1571
+ /**
1572
+ * FloatingUIManager é uma classe utilitária que gerencia o posicionamento de elementos flutuantes
1573
+ * como tooltips ou popovers em relação a um elemento de disparo (trigger).
1574
+ * Ela utiliza a biblioteca Floating UI para calcular posições e lidar com atualizações.
1575
+ */ class x {
1576
+ triggerElement;
1577
+ contentElement;
1578
+ arrowElement;
1579
+ placement;
1580
+ onUpdate;
1581
+ cleanupAutoUpdate;
1582
+ constructor(r) {
1583
+ this.triggerElement = r.triggerElement;
1584
+ this.contentElement = r.contentElement;
1585
+ this.arrowElement = r.arrowElement;
1586
+ this.placement = r.placement ?? "top";
1587
+ this.onUpdate = r.onUpdate;
1588
+ }
1589
+ /**
1590
+ * Inicia o gerenciador Floating UI configurando a atualização automática da posição.
1591
+ */ start() {
1592
+ this.cleanupAutoUpdate = autoUpdate(this.triggerElement, this.contentElement, (() => this.updatePosition()));
1593
+ }
1594
+ /**
1595
+ * Para o gerenciador Floating UI e limpa os recursos utilizados.
1596
+ */ stop() {
1597
+ this.cleanupAutoUpdate?.();
1598
+ }
1599
+ /**
1600
+ * Atualiza a posição do elemento flutuante com base no elemento disparador e no elemento de conteúdo.
1601
+ * Esta função é chamada automaticamente quando o gerenciador está ativo.
1602
+ * Ela calcula a nova posição usando a biblioteca Floating UI e aplica as transformações necessárias.
1603
+ * Também atualiza a posição da seta, se fornecida.
1604
+ * Além disso, define o atributo de dados `data-placement` no elemento de conteúdo para refletir a posição atual.
1605
+ * @returns {Promise<void>} Uma promessa que resolve quando a posição é atualizada.
1606
+ */ async updatePosition() {
1607
+ const r = await computePosition(this.triggerElement, this.contentElement, {
1608
+ placement: this.placement,
1609
+ middleware: this.buildMiddleware()
1610
+ });
1611
+ this.updateTooltipPosition(r);
1612
+ this.updateArrowPosition(r);
1613
+ this.setPlacementDataAttribute(r);
1614
+ this.onUpdate?.(r);
1615
+ }
1616
+ /**
1617
+ * Constrói os middlewares necessários para o Floating UI.
1618
+ * Esses middlewares são usados para ajustar o posicionamento do elemento flutuante,
1619
+ * incluindo offset, flip, shift e hide. Se uma seta for fornecida, o middleware de seta também é adicionado.
1620
+ * @returns {Middleware[]} Retorna um array de middlewares configurados para o Floating UI.
1621
+ */ buildMiddleware() {
1622
+ const r = [ p(8), w(), f({
1623
+ padding: 5
1624
+ }), h() ];
1625
+ if (this.arrowElement != null) {
1626
+ r.push(y({
1627
+ element: this.arrowElement
1628
+ }));
1629
+ }
1630
+ return r;
1631
+ }
1632
+ /**
1633
+ * Adiciona o estilo necessário para posicionar o tooltip com base nas coordenadas fornecidas.
1634
+ * Esta função é chamada após o cálculo da posição do tooltip.
1635
+ * Ela aplica as propriedades CSS `left` e `top` ao elemento de conteúdo do tooltip.
1636
+ * @param data Contém as coordenadas x e y para posicionar o tooltip.
1637
+ */ updateTooltipPosition(r) {
1638
+ const {x: a, y: o} = r;
1639
+ Object.assign(this.contentElement.style, {
1640
+ left: `${a}px`,
1641
+ top: `${o}px`
1642
+ });
1643
+ }
1644
+ /**
1645
+ * Adiciona o estilo necessário para posicionar a seta do tooltip com base nos dados de middleware.
1646
+ * Esta função é chamada após o cálculo da posição do tooltip.
1647
+ * Ela aplica as propriedades CSS `left`, `top`, `right`, `bottom` e a posição estática da seta.
1648
+ * A posição estática é determinada com base na colocação do tooltip (top, right, bottom, left).
1649
+ * Se a seta não estiver presente ou os dados de middleware não contiverem informações sobre a seta, nada será feito.
1650
+ * @param data Contém a posição da seta e os dados de middleware.
1651
+ */ updateArrowPosition(r) {
1652
+ if (this.arrowElement == null || r.middlewareData.arrow == null) return;
1653
+ const {x: a, y: o} = r.middlewareData.arrow;
1654
+ const t = r.placement.split("-")[0];
1655
+ const i = {
1656
+ top: "bottom",
1657
+ right: "left",
1658
+ bottom: "top",
1659
+ left: "right"
1660
+ }[t];
1661
+ Object.assign(this.arrowElement.style, {
1662
+ left: a != null ? `${a}px` : "",
1663
+ top: o != null ? `${o}px` : "",
1664
+ right: "",
1665
+ bottom: "",
1666
+ [i]: "-4px"
1667
+ });
1668
+ }
1669
+ /**
1670
+ * Define o atributo de dados `data-placement` no elemento de conteúdo.
1671
+ * Este atributo é usado para indicar a posição atual do tooltip ou popover.
1672
+ * Ele é útil para fins de acessibilidade e para permitir que estilos CSS sejam aplicados com base na posição.
1673
+ * @param data Objeto contendo a propriedade `placement` que define a posição do tooltip ou popover.
1674
+ * A propriedade `placement` deve ser uma string representando a posição, como 'top', 'bottom', 'left', 'right', etc.
1675
+ */ setPlacementDataAttribute(r) {
1676
+ this.contentElement.setAttribute("data-placement", r.placement);
1677
+ }
1678
+ }
1679
+
1680
+ const A = "*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}body{margin:0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}a{background-color:transparent}strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;-moz-appearance:button;appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden]{display:none}.d-flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.align-items-center{-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{-webkit-box-flex:1;-ms-flex:1 0 0%;flex:1 0 0%;min-width:8.3333333333%}.col-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.col-2{-ms-flex-preferred-size:16.6666666667%;flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-.5);margin-right:calc(var(--grid-gutter)*-.5)}@media (min-width:576px){.container,.container-lg{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}}@media (min-width:992px){.container,.container-lg{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width:1280px){.container,.container-lg{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}}@media (min-width:1600px){.container,.container-lg{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.mt-1{margin-top:var(--spacing-scale-half)!important}.mb-1{margin-bottom:var(--spacing-scale-half)!important}.mr-2{margin-right:var(--spacing-scale-base)!important}.mr-n2{margin-right:calc(var(--spacing-scale-base)*-1)!important}.ml-2{margin-left:var(--spacing-scale-base)!important}.mr-auto{margin-right:auto!important}.pt-half{padding-top:var(--spacing-scale-half)!important}.py-3{padding-bottom:var(--spacing-scale-2x)!important;padding-top:var(--spacing-scale-2x)!important}.py-4{padding-bottom:var(--spacing-scale-3x)!important;padding-top:var(--spacing-scale-3x)!important}body{--bg-color:var(--background);--bg-color-rgb:var(--background-rgb);--bg-color-hsl:var(--background-hsl);--font-size:var(--font-size-scale-base);--font-weight:var(--font-weight-regular);--link-color:var(--interactive);--link-color-rgb:var(--interactive-rgb);--link-color-hsl:var(--interactive-hsl);--line-height:var(--font-line-height-medium);--text-color:var(--color);--text-color-rgb:var(--color-rgb);--text-color-hsl:var(--color-hsl);background:var(--bg-color);color:var(--text-color);font-family:var(--font-family-base);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height)}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width:576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half);color:var(--interactive);text-decoration:none}a:focus{outline:none}a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--interactive-rgb),var(--hover))),to(rgba(var(--interactive-rgb),var(--hover))));background-image:linear-gradient(rgba(var(--interactive-rgb),var(--hover)),rgba(var(--interactive-rgb),var(--hover)))}a:not(:disabled):active{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--interactive-rgb),var(--pressed))),to(rgba(var(--interactive-rgb),var(--pressed))));background-image:linear-gradient(rgba(var(--interactive-rgb),var(--pressed)),rgba(var(--interactive-rgb),var(--pressed)))}button{cursor:pointer}img{max-width:100%;vertical-align:middle}ol,ul{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}.label,label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}::-webkit-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::-moz-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::-ms-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}.placeholder,::placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}.input,input,textarea{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}.bg-blue-90{--background:var(--blue-90);background:var(--blue-90)!important}.bg-blue-80{--background:var(--blue-80);background:var(--blue-80)!important}.bg-blue-70{--background:var(--blue-70);background:var(--blue-70)!important}.bg-blue-60{--background:var(--blue-60);background:var(--blue-60)!important}.bg-blue-50{--background:var(--blue-50);background:var(--blue-50)!important}.bg-blue-40{--background:var(--blue-40);background:var(--blue-40)!important}.bg-blue-30{--background:var(--blue-30);background:var(--blue-30)!important}.bg-blue-20{--background:var(--blue-20);background:var(--blue-20)!important}.bg-blue-10{--background:var(--blue-10);background:var(--blue-10)!important}.bg-blue-5{--background:var(--blue-5);background:var(--blue-5)!important}.bg-blue-cool-90{--background:var(--blue-cool-90);background:var(--blue-cool-90)!important}.bg-blue-cool-80{--background:var(--blue-cool-80);background:var(--blue-cool-80)!important}.bg-blue-cool-70{--background:var(--blue-cool-70);background:var(--blue-cool-70)!important}.bg-blue-cool-60{--background:var(--blue-cool-60);background:var(--blue-cool-60)!important}.bg-blue-cool-50{--background:var(--blue-cool-50);background:var(--blue-cool-50)!important}.bg-blue-cool-40{--background:var(--blue-cool-40);background:var(--blue-cool-40)!important}.bg-blue-cool-30{--background:var(--blue-cool-30);background:var(--blue-cool-30)!important}.bg-blue-cool-20{--background:var(--blue-cool-20);background:var(--blue-cool-20)!important}.bg-blue-cool-10{--background:var(--blue-cool-10);background:var(--blue-cool-10)!important}.bg-blue-cool-5{--background:var(--blue-cool-5);background:var(--blue-cool-5)!important}.bg-blue-warm-90{--background:var(--blue-warm-90);background:var(--blue-warm-90)!important}.bg-blue-warm-80{--background:var(--blue-warm-80);background:var(--blue-warm-80)!important}.bg-blue-warm-70{--background:var(--blue-warm-70);background:var(--blue-warm-70)!important}.bg-blue-warm-60{--background:var(--blue-warm-60);background:var(--blue-warm-60)!important}.bg-blue-warm-50{--background:var(--blue-warm-50);background:var(--blue-warm-50)!important}.bg-blue-warm-40{--background:var(--blue-warm-40);background:var(--blue-warm-40)!important}.bg-blue-warm-30{--background:var(--blue-warm-30);background:var(--blue-warm-30)!important}.bg-blue-warm-20{--background:var(--blue-warm-20);background:var(--blue-warm-20)!important}.bg-blue-warm-10{--background:var(--blue-warm-10);background:var(--blue-warm-10)!important}.bg-blue-warm-5{--background:var(--blue-warm-5);background:var(--blue-warm-5)!important}.bg-blue-vivid-80{--background:var(--blue-vivid-80);background:var(--blue-vivid-80)!important}.bg-blue-vivid-70{--background:var(--blue-vivid-70);background:var(--blue-vivid-70)!important}.bg-blue-vivid-60{--background:var(--blue-vivid-60);background:var(--blue-vivid-60)!important}.bg-blue-vivid-50{--background:var(--blue-vivid-50);background:var(--blue-vivid-50)!important}.bg-blue-vivid-40{--background:var(--blue-vivid-40);background:var(--blue-vivid-40)!important}.bg-blue-vivid-30{--background:var(--blue-vivid-30);background:var(--blue-vivid-30)!important}.bg-blue-vivid-20{--background:var(--blue-vivid-20);background:var(--blue-vivid-20)!important}.bg-blue-vivid-10{--background:var(--blue-vivid-10);background:var(--blue-vivid-10)!important}.bg-blue-vivid-5{--background:var(--blue-vivid-5);background:var(--blue-vivid-5)!important}.bg-blue-cool-vivid-80{--background:var(--blue-cool-vivid-80);background:var(--blue-cool-vivid-80)!important}.bg-blue-cool-vivid-70{--background:var(--blue-cool-vivid-70);background:var(--blue-cool-vivid-70)!important}.bg-blue-cool-vivid-60{--background:var(--blue-cool-vivid-60);background:var(--blue-cool-vivid-60)!important}.bg-blue-cool-vivid-50{--background:var(--blue-cool-vivid-50);background:var(--blue-cool-vivid-50)!important}.bg-blue-cool-vivid-40{--background:var(--blue-cool-vivid-40);background:var(--blue-cool-vivid-40)!important}.bg-blue-cool-vivid-30{--background:var(--blue-cool-vivid-30);background:var(--blue-cool-vivid-30)!important}.bg-blue-cool-vivid-20{--background:var(--blue-cool-vivid-20);background:var(--blue-cool-vivid-20)!important}.bg-blue-cool-vivid-10{--background:var(--blue-cool-vivid-10);background:var(--blue-cool-vivid-10)!important}.bg-blue-cool-vivid-5{--background:var(--blue-cool-vivid-5);background:var(--blue-cool-vivid-5)!important}.bg-blue-warm-vivid-90{--background:var(--blue-warm-vivid-90);background:var(--blue-warm-vivid-90)!important}.bg-blue-warm-vivid-80{--background:var(--blue-warm-vivid-80);background:var(--blue-warm-vivid-80)!important}.bg-blue-warm-vivid-70{--background:var(--blue-warm-vivid-70);background:var(--blue-warm-vivid-70)!important}.bg-blue-warm-vivid-60{--background:var(--blue-warm-vivid-60);background:var(--blue-warm-vivid-60)!important}.bg-blue-warm-vivid-50{--background:var(--blue-warm-vivid-50);background:var(--blue-warm-vivid-50)!important}.bg-blue-warm-vivid-40{--background:var(--blue-warm-vivid-40);background:var(--blue-warm-vivid-40)!important}.bg-blue-warm-vivid-30{--background:var(--blue-warm-vivid-30);background:var(--blue-warm-vivid-30)!important}.bg-blue-warm-vivid-20{--background:var(--blue-warm-vivid-20);background:var(--blue-warm-vivid-20)!important}.bg-blue-warm-vivid-10{--background:var(--blue-warm-vivid-10);background:var(--blue-warm-vivid-10)!important}.bg-blue-warm-vivid-5{--background:var(--blue-warm-vivid-5);background:var(--blue-warm-vivid-5)!important}.bg-cyan-90{--background:var(--cyan-90);background:var(--cyan-90)!important}.bg-cyan-80{--background:var(--cyan-80);background:var(--cyan-80)!important}.bg-cyan-70{--background:var(--cyan-70);background:var(--cyan-70)!important}.bg-cyan-60{--background:var(--cyan-60);background:var(--cyan-60)!important}.bg-cyan-50{--background:var(--cyan-50);background:var(--cyan-50)!important}.bg-cyan-40{--background:var(--cyan-40);background:var(--cyan-40)!important}.bg-cyan-30{--background:var(--cyan-30);background:var(--cyan-30)!important}.bg-cyan-20{--background:var(--cyan-20);background:var(--cyan-20)!important}.bg-cyan-10{--background:var(--cyan-10);background:var(--cyan-10)!important}.bg-cyan-5{--background:var(--cyan-5);background:var(--cyan-5)!important}.bg-cyan-vivid-80{--background:var(--cyan-vivid-80);background:var(--cyan-vivid-80)!important}.bg-cyan-vivid-70{--background:var(--cyan-vivid-70);background:var(--cyan-vivid-70)!important}.bg-cyan-vivid-60{--background:var(--cyan-vivid-60);background:var(--cyan-vivid-60)!important}.bg-cyan-vivid-50{--background:var(--cyan-vivid-50);background:var(--cyan-vivid-50)!important}.bg-cyan-vivid-40{--background:var(--cyan-vivid-40);background:var(--cyan-vivid-40)!important}.bg-cyan-vivid-30{--background:var(--cyan-vivid-30);background:var(--cyan-vivid-30)!important}.bg-cyan-vivid-20{--background:var(--cyan-vivid-20);background:var(--cyan-vivid-20)!important}.bg-cyan-vivid-10{--background:var(--cyan-vivid-10);background:var(--cyan-vivid-10)!important}.bg-cyan-vivid-5{--background:var(--cyan-vivid-5);background:var(--cyan-vivid-5)!important}.bg-gold-90{--background:var(--gold-90);background:var(--gold-90)!important}.bg-gold-80{--background:var(--gold-80);background:var(--gold-80)!important}.bg-gold-70{--background:var(--gold-70);background:var(--gold-70)!important}.bg-gold-60{--background:var(--gold-60);background:var(--gold-60)!important}.bg-gold-50{--background:var(--gold-50);background:var(--gold-50)!important}.bg-gold-40{--background:var(--gold-40);background:var(--gold-40)!important}.bg-gold-30{--background:var(--gold-30);background:var(--gold-30)!important}.bg-gold-20{--background:var(--gold-20);background:var(--gold-20)!important}.bg-gold-10{--background:var(--gold-10);background:var(--gold-10)!important}.bg-gold-5{--background:var(--gold-5);background:var(--gold-5)!important}.bg-gold-vivid-80{--background:var(--gold-vivid-80);background:var(--gold-vivid-80)!important}.bg-gold-vivid-70{--background:var(--gold-vivid-70);background:var(--gold-vivid-70)!important}.bg-gold-vivid-60{--background:var(--gold-vivid-60);background:var(--gold-vivid-60)!important}.bg-gold-vivid-50{--background:var(--gold-vivid-50);background:var(--gold-vivid-50)!important}.bg-gold-vivid-40{--background:var(--gold-vivid-40);background:var(--gold-vivid-40)!important}.bg-gold-vivid-30{--background:var(--gold-vivid-30);background:var(--gold-vivid-30)!important}.bg-gold-vivid-20{--background:var(--gold-vivid-20);background:var(--gold-vivid-20)!important}.bg-gold-vivid-10{--background:var(--gold-vivid-10);background:var(--gold-vivid-10)!important}.bg-gold-vivid-5{--background:var(--gold-vivid-5);background:var(--gold-vivid-5)!important}.bg-gray-90{--background:var(--gray-90);background:var(--gray-90)!important}.bg-gray-80{--background:var(--gray-80);background:var(--gray-80)!important}.bg-gray-70{--background:var(--gray-70);background:var(--gray-70)!important}.bg-gray-60{--background:var(--gray-60);background:var(--gray-60)!important}.bg-gray-50{--background:var(--gray-50);background:var(--gray-50)!important}.bg-gray-40{--background:var(--gray-40);background:var(--gray-40)!important}.bg-gray-30{--background:var(--gray-30);background:var(--gray-30)!important}.bg-gray-20{--background:var(--gray-20);background:var(--gray-20)!important}.bg-gray-10{--background:var(--gray-10);background:var(--gray-10)!important}.bg-gray-5{--background:var(--gray-5);background:var(--gray-5)!important}.bg-gray-4{--background:var(--gray-4);background:var(--gray-4)!important}.bg-gray-3{--background:var(--gray-3);background:var(--gray-3)!important}.bg-gray-2{--background:var(--gray-2);background:var(--gray-2)!important}.bg-gray-1{--background:var(--gray-1);background:var(--gray-1)!important}.bg-gray-cool-90{--background:var(--gray-cool-90);background:var(--gray-cool-90)!important}.bg-gray-cool-80{--background:var(--gray-cool-80);background:var(--gray-cool-80)!important}.bg-gray-cool-70{--background:var(--gray-cool-70);background:var(--gray-cool-70)!important}.bg-gray-cool-60{--background:var(--gray-cool-60);background:var(--gray-cool-60)!important}.bg-gray-cool-50{--background:var(--gray-cool-50);background:var(--gray-cool-50)!important}.bg-gray-cool-40{--background:var(--gray-cool-40);background:var(--gray-cool-40)!important}.bg-gray-cool-30{--background:var(--gray-cool-30);background:var(--gray-cool-30)!important}.bg-gray-cool-20{--background:var(--gray-cool-20);background:var(--gray-cool-20)!important}.bg-gray-cool-10{--background:var(--gray-cool-10);background:var(--gray-cool-10)!important}.bg-gray-cool-5{--background:var(--gray-cool-5);background:var(--gray-cool-5)!important}.bg-gray-cool-4{--background:var(--gray-cool-4);background:var(--gray-cool-4)!important}.bg-gray-cool-3{--background:var(--gray-cool-3);background:var(--gray-cool-3)!important}.bg-gray-cool-2{--background:var(--gray-cool-2);background:var(--gray-cool-2)!important}.bg-gray-cool-1{--background:var(--gray-cool-1);background:var(--gray-cool-1)!important}.bg-gray-warm-90{--background:var(--gray-warm-90);background:var(--gray-warm-90)!important}.bg-gray-warm-80{--background:var(--gray-warm-80);background:var(--gray-warm-80)!important}.bg-gray-warm-70{--background:var(--gray-warm-70);background:var(--gray-warm-70)!important}.bg-gray-warm-60{--background:var(--gray-warm-60);background:var(--gray-warm-60)!important}.bg-gray-warm-50{--background:var(--gray-warm-50);background:var(--gray-warm-50)!important}.bg-gray-warm-40{--background:var(--gray-warm-40);background:var(--gray-warm-40)!important}.bg-gray-warm-30{--background:var(--gray-warm-30);background:var(--gray-warm-30)!important}.bg-gray-warm-20{--background:var(--gray-warm-20);background:var(--gray-warm-20)!important}.bg-gray-warm-10{--background:var(--gray-warm-10);background:var(--gray-warm-10)!important}.bg-gray-warm-5{--background:var(--gray-warm-5);background:var(--gray-warm-5)!important}.bg-gray-warm-4{--background:var(--gray-warm-4);background:var(--gray-warm-4)!important}.bg-gray-warm-3{--background:var(--gray-warm-3);background:var(--gray-warm-3)!important}.bg-gray-warm-2{--background:var(--gray-warm-2);background:var(--gray-warm-2)!important}.bg-gray-warm-1{--background:var(--gray-warm-1);background:var(--gray-warm-1)!important}.bg-green-90{--background:var(--green-90);background:var(--green-90)!important}.bg-green-80{--background:var(--green-80);background:var(--green-80)!important}.bg-green-70{--background:var(--green-70);background:var(--green-70)!important}.bg-green-60{--background:var(--green-60);background:var(--green-60)!important}.bg-green-50{--background:var(--green-50);background:var(--green-50)!important}.bg-green-40{--background:var(--green-40);background:var(--green-40)!important}.bg-green-30{--background:var(--green-30);background:var(--green-30)!important}.bg-green-20{--background:var(--green-20);background:var(--green-20)!important}.bg-green-10{--background:var(--green-10);background:var(--green-10)!important}.bg-green-5{--background:var(--green-5);background:var(--green-5)!important}.bg-green-cool-90{--background:var(--green-cool-90);background:var(--green-cool-90)!important}.bg-green-cool-80{--background:var(--green-cool-80);background:var(--green-cool-80)!important}.bg-green-cool-70{--background:var(--green-cool-70);background:var(--green-cool-70)!important}.bg-green-cool-60{--background:var(--green-cool-60);background:var(--green-cool-60)!important}.bg-green-cool-50{--background:var(--green-cool-50);background:var(--green-cool-50)!important}.bg-green-cool-40{--background:var(--green-cool-40);background:var(--green-cool-40)!important}.bg-green-cool-30{--background:var(--green-cool-30);background:var(--green-cool-30)!important}.bg-green-cool-20{--background:var(--green-cool-20);background:var(--green-cool-20)!important}.bg-green-cool-10{--background:var(--green-cool-10);background:var(--green-cool-10)!important}.bg-green-cool-5{--background:var(--green-cool-5);background:var(--green-cool-5)!important}.bg-green-warm-90{--background:var(--green-warm-90);background:var(--green-warm-90)!important}.bg-green-warm-80{--background:var(--green-warm-80);background:var(--green-warm-80)!important}.bg-green-warm-70{--background:var(--green-warm-70);background:var(--green-warm-70)!important}.bg-green-warm-60{--background:var(--green-warm-60);background:var(--green-warm-60)!important}.bg-green-warm-50{--background:var(--green-warm-50);background:var(--green-warm-50)!important}.bg-green-warm-40{--background:var(--green-warm-40);background:var(--green-warm-40)!important}.bg-green-warm-30{--background:var(--green-warm-30);background:var(--green-warm-30)!important}.bg-green-warm-20{--background:var(--green-warm-20);background:var(--green-warm-20)!important}.bg-green-warm-10{--background:var(--green-warm-10);background:var(--green-warm-10)!important}.bg-green-warm-5{--background:var(--green-warm-5);background:var(--green-warm-5)!important}.bg-green-vivid-80{--background:var(--green-vivid-80);background:var(--green-vivid-80)!important}.bg-green-vivid-70{--background:var(--green-vivid-70);background:var(--green-vivid-70)!important}.bg-green-vivid-60{--background:var(--green-vivid-60);background:var(--green-vivid-60)!important}.bg-green-vivid-50{--background:var(--green-vivid-50);background:var(--green-vivid-50)!important}.bg-green-vivid-40{--background:var(--green-vivid-40);background:var(--green-vivid-40)!important}.bg-green-vivid-30{--background:var(--green-vivid-30);background:var(--green-vivid-30)!important}.bg-green-vivid-20{--background:var(--green-vivid-20);background:var(--green-vivid-20)!important}.bg-green-vivid-10{--background:var(--green-vivid-10);background:var(--green-vivid-10)!important}.bg-green-vivid-5{--background:var(--green-vivid-5);background:var(--green-vivid-5)!important}.bg-green-cool-vivid-80{--background:var(--green-cool-vivid-80);background:var(--green-cool-vivid-80)!important}.bg-green-cool-vivid-70{--background:var(--green-cool-vivid-70);background:var(--green-cool-vivid-70)!important}.bg-green-cool-vivid-60{--background:var(--green-cool-vivid-60);background:var(--green-cool-vivid-60)!important}.bg-green-cool-vivid-50{--background:var(--green-cool-vivid-50);background:var(--green-cool-vivid-50)!important}.bg-green-cool-vivid-40{--background:var(--green-cool-vivid-40);background:var(--green-cool-vivid-40)!important}.bg-green-cool-vivid-30{--background:var(--green-cool-vivid-30);background:var(--green-cool-vivid-30)!important}.bg-green-cool-vivid-20{--background:var(--green-cool-vivid-20);background:var(--green-cool-vivid-20)!important}.bg-green-cool-vivid-10{--background:var(--green-cool-vivid-10);background:var(--green-cool-vivid-10)!important}.bg-green-cool-vivid-5{--background:var(--green-cool-vivid-5);background:var(--green-cool-vivid-5)!important}.bg-green-warm-vivid-80{--background:var(--green-warm-vivid-80);background:var(--green-warm-vivid-80)!important}.bg-green-warm-vivid-70{--background:var(--green-warm-vivid-70);background:var(--green-warm-vivid-70)!important}.bg-green-warm-vivid-60{--background:var(--green-warm-vivid-60);background:var(--green-warm-vivid-60)!important}.bg-green-warm-vivid-50{--background:var(--green-warm-vivid-50);background:var(--green-warm-vivid-50)!important}.bg-green-warm-vivid-40{--background:var(--green-warm-vivid-40);background:var(--green-warm-vivid-40)!important}.bg-green-warm-vivid-30{--background:var(--green-warm-vivid-30);background:var(--green-warm-vivid-30)!important}.bg-green-warm-vivid-20{--background:var(--green-warm-vivid-20);background:var(--green-warm-vivid-20)!important}.bg-green-warm-vivid-10{--background:var(--green-warm-vivid-10);background:var(--green-warm-vivid-10)!important}.bg-green-warm-vivid-5{--background:var(--green-warm-vivid-5);background:var(--green-warm-vivid-5)!important}.bg-indigo-90{--background:var(--indigo-90);background:var(--indigo-90)!important}.bg-indigo-80{--background:var(--indigo-80);background:var(--indigo-80)!important}.bg-indigo-70{--background:var(--indigo-70);background:var(--indigo-70)!important}.bg-indigo-60{--background:var(--indigo-60);background:var(--indigo-60)!important}.bg-indigo-50{--background:var(--indigo-50);background:var(--indigo-50)!important}.bg-indigo-40{--background:var(--indigo-40);background:var(--indigo-40)!important}.bg-indigo-30{--background:var(--indigo-30);background:var(--indigo-30)!important}.bg-indigo-20{--background:var(--indigo-20);background:var(--indigo-20)!important}.bg-indigo-10{--background:var(--indigo-10);background:var(--indigo-10)!important}.bg-indigo-5{--background:var(--indigo-5);background:var(--indigo-5)!important}.bg-indigo-cool-90{--background:var(--indigo-cool-90);background:var(--indigo-cool-90)!important}.bg-indigo-cool-80{--background:var(--indigo-cool-80);background:var(--indigo-cool-80)!important}.bg-indigo-cool-70{--background:var(--indigo-cool-70);background:var(--indigo-cool-70)!important}.bg-indigo-cool-60{--background:var(--indigo-cool-60);background:var(--indigo-cool-60)!important}.bg-indigo-cool-50{--background:var(--indigo-cool-50);background:var(--indigo-cool-50)!important}.bg-indigo-cool-40{--background:var(--indigo-cool-40);background:var(--indigo-cool-40)!important}.bg-indigo-cool-30{--background:var(--indigo-cool-30);background:var(--indigo-cool-30)!important}.bg-indigo-cool-20{--background:var(--indigo-cool-20);background:var(--indigo-cool-20)!important}.bg-indigo-cool-10{--background:var(--indigo-cool-10);background:var(--indigo-cool-10)!important}.bg-indigo-cool-5{--background:var(--indigo-cool-5);background:var(--indigo-cool-5)!important}.bg-indigo-warm-90{--background:var(--indigo-warm-90);background:var(--indigo-warm-90)!important}.bg-indigo-warm-80{--background:var(--indigo-warm-80);background:var(--indigo-warm-80)!important}.bg-indigo-warm-70{--background:var(--indigo-warm-70);background:var(--indigo-warm-70)!important}.bg-indigo-warm-60{--background:var(--indigo-warm-60);background:var(--indigo-warm-60)!important}.bg-indigo-warm-50{--background:var(--indigo-warm-50);background:var(--indigo-warm-50)!important}.bg-indigo-warm-40{--background:var(--indigo-warm-40);background:var(--indigo-warm-40)!important}.bg-indigo-warm-30{--background:var(--indigo-warm-30);background:var(--indigo-warm-30)!important}.bg-indigo-warm-20{--background:var(--indigo-warm-20);background:var(--indigo-warm-20)!important}.bg-indigo-warm-10{--background:var(--indigo-warm-10);background:var(--indigo-warm-10)!important}.bg-indigo-warm-5{--background:var(--indigo-warm-5);background:var(--indigo-warm-5)!important}.bg-indigo-vivid-80{--background:var(--indigo-vivid-80);background:var(--indigo-vivid-80)!important}.bg-indigo-vivid-70{--background:var(--indigo-vivid-70);background:var(--indigo-vivid-70)!important}.bg-indigo-vivid-60{--background:var(--indigo-vivid-60);background:var(--indigo-vivid-60)!important}.bg-indigo-vivid-50{--background:var(--indigo-vivid-50);background:var(--indigo-vivid-50)!important}.bg-indigo-vivid-40{--background:var(--indigo-vivid-40);background:var(--indigo-vivid-40)!important}.bg-indigo-vivid-30{--background:var(--indigo-vivid-30);background:var(--indigo-vivid-30)!important}.bg-indigo-vivid-20{--background:var(--indigo-vivid-20);background:var(--indigo-vivid-20)!important}.bg-indigo-vivid-10{--background:var(--indigo-vivid-10);background:var(--indigo-vivid-10)!important}.bg-indigo-vivid-5{--background:var(--indigo-vivid-5);background:var(--indigo-vivid-5)!important}.bg-indigo-cool-vivid-80{--background:var(--indigo-cool-vivid-80);background:var(--indigo-cool-vivid-80)!important}.bg-indigo-cool-vivid-70{--background:var(--indigo-cool-vivid-70);background:var(--indigo-cool-vivid-70)!important}.bg-indigo-cool-vivid-60{--background:var(--indigo-cool-vivid-60);background:var(--indigo-cool-vivid-60)!important}.bg-indigo-cool-vivid-50{--background:var(--indigo-cool-vivid-50);background:var(--indigo-cool-vivid-50)!important}.bg-indigo-cool-vivid-40{--background:var(--indigo-cool-vivid-40);background:var(--indigo-cool-vivid-40)!important}.bg-indigo-cool-vivid-30{--background:var(--indigo-cool-vivid-30);background:var(--indigo-cool-vivid-30)!important}.bg-indigo-cool-vivid-20{--background:var(--indigo-cool-vivid-20);background:var(--indigo-cool-vivid-20)!important}.bg-indigo-cool-vivid-10{--background:var(--indigo-cool-vivid-10);background:var(--indigo-cool-vivid-10)!important}.bg-indigo-cool-vivid-5{--background:var(--indigo-cool-vivid-5);background:var(--indigo-cool-vivid-5)!important}.bg-indigo-warm-vivid-80{--background:var(--indigo-warm-vivid-80);background:var(--indigo-warm-vivid-80)!important}.bg-indigo-warm-vivid-70{--background:var(--indigo-warm-vivid-70);background:var(--indigo-warm-vivid-70)!important}.bg-indigo-warm-vivid-60{--background:var(--indigo-warm-vivid-60);background:var(--indigo-warm-vivid-60)!important}.bg-indigo-warm-vivid-50{--background:var(--indigo-warm-vivid-50);background:var(--indigo-warm-vivid-50)!important}.bg-indigo-warm-vivid-40{--background:var(--indigo-warm-vivid-40);background:var(--indigo-warm-vivid-40)!important}.bg-indigo-warm-vivid-30{--background:var(--indigo-warm-vivid-30);background:var(--indigo-warm-vivid-30)!important}.bg-indigo-warm-vivid-20{--background:var(--indigo-warm-vivid-20);background:var(--indigo-warm-vivid-20)!important}.bg-indigo-warm-vivid-10{--background:var(--indigo-warm-vivid-10);background:var(--indigo-warm-vivid-10)!important}.bg-indigo-warm-vivid-5{--background:var(--indigo-warm-vivid-5);background:var(--indigo-warm-vivid-5)!important}.bg-magenta-90{--background:var(--magenta-90);background:var(--magenta-90)!important}.bg-magenta-80{--background:var(--magenta-80);background:var(--magenta-80)!important}.bg-magenta-70{--background:var(--magenta-70);background:var(--magenta-70)!important}.bg-magenta-60{--background:var(--magenta-60);background:var(--magenta-60)!important}.bg-magenta-50{--background:var(--magenta-50);background:var(--magenta-50)!important}.bg-magenta-40{--background:var(--magenta-40);background:var(--magenta-40)!important}.bg-magenta-30{--background:var(--magenta-30);background:var(--magenta-30)!important}.bg-magenta-20{--background:var(--magenta-20);background:var(--magenta-20)!important}.bg-magenta-10{--background:var(--magenta-10);background:var(--magenta-10)!important}.bg-magenta-5{--background:var(--magenta-5);background:var(--magenta-5)!important}.bg-magenta-vivid-80{--background:var(--magenta-vivid-80);background:var(--magenta-vivid-80)!important}.bg-magenta-vivid-70{--background:var(--magenta-vivid-70);background:var(--magenta-vivid-70)!important}.bg-magenta-vivid-60{--background:var(--magenta-vivid-60);background:var(--magenta-vivid-60)!important}.bg-magenta-vivid-50{--background:var(--magenta-vivid-50);background:var(--magenta-vivid-50)!important}.bg-magenta-vivid-40{--background:var(--magenta-vivid-40);background:var(--magenta-vivid-40)!important}.bg-magenta-vivid-30{--background:var(--magenta-vivid-30);background:var(--magenta-vivid-30)!important}.bg-magenta-vivid-20{--background:var(--magenta-vivid-20);background:var(--magenta-vivid-20)!important}.bg-magenta-vivid-10{--background:var(--magenta-vivid-10);background:var(--magenta-vivid-10)!important}.bg-magenta-vivid-5{--background:var(--magenta-vivid-5);background:var(--magenta-vivid-5)!important}.bg-mint-90{--background:var(--mint-90);background:var(--mint-90)!important}.bg-mint-80{--background:var(--mint-80);background:var(--mint-80)!important}.bg-mint-70{--background:var(--mint-70);background:var(--mint-70)!important}.bg-mint-60{--background:var(--mint-60);background:var(--mint-60)!important}.bg-mint-50{--background:var(--mint-50);background:var(--mint-50)!important}.bg-mint-40{--background:var(--mint-40);background:var(--mint-40)!important}.bg-mint-30{--background:var(--mint-30);background:var(--mint-30)!important}.bg-mint-20{--background:var(--mint-20);background:var(--mint-20)!important}.bg-mint-10{--background:var(--mint-10);background:var(--mint-10)!important}.bg-mint-5{--background:var(--mint-5);background:var(--mint-5)!important}.bg-mint-cool-90{--background:var(--mint-cool-90);background:var(--mint-cool-90)!important}.bg-mint-cool-80{--background:var(--mint-cool-80);background:var(--mint-cool-80)!important}.bg-mint-cool-70{--background:var(--mint-cool-70);background:var(--mint-cool-70)!important}.bg-mint-cool-60{--background:var(--mint-cool-60);background:var(--mint-cool-60)!important}.bg-mint-cool-50{--background:var(--mint-cool-50);background:var(--mint-cool-50)!important}.bg-mint-cool-40{--background:var(--mint-cool-40);background:var(--mint-cool-40)!important}.bg-mint-cool-30{--background:var(--mint-cool-30);background:var(--mint-cool-30)!important}.bg-mint-cool-20{--background:var(--mint-cool-20);background:var(--mint-cool-20)!important}.bg-mint-cool-10{--background:var(--mint-cool-10);background:var(--mint-cool-10)!important}.bg-mint-cool-5{--background:var(--mint-cool-5);background:var(--mint-cool-5)!important}.bg-mint-vivid-80{--background:var(--mint-vivid-80);background:var(--mint-vivid-80)!important}.bg-mint-vivid-70{--background:var(--mint-vivid-70);background:var(--mint-vivid-70)!important}.bg-mint-vivid-60{--background:var(--mint-vivid-60);background:var(--mint-vivid-60)!important}.bg-mint-vivid-50{--background:var(--mint-vivid-50);background:var(--mint-vivid-50)!important}.bg-mint-vivid-40{--background:var(--mint-vivid-40);background:var(--mint-vivid-40)!important}.bg-mint-vivid-30{--background:var(--mint-vivid-30);background:var(--mint-vivid-30)!important}.bg-mint-vivid-20{--background:var(--mint-vivid-20);background:var(--mint-vivid-20)!important}.bg-mint-vivid-10{--background:var(--mint-vivid-10);background:var(--mint-vivid-10)!important}.bg-mint-vivid-5{--background:var(--mint-vivid-5);background:var(--mint-vivid-5)!important}.bg-mint-cool-vivid-80{--background:var(--mint-cool-vivid-80);background:var(--mint-cool-vivid-80)!important}.bg-mint-cool-vivid-70{--background:var(--mint-cool-vivid-70);background:var(--mint-cool-vivid-70)!important}.bg-mint-cool-vivid-60{--background:var(--mint-cool-vivid-60);background:var(--mint-cool-vivid-60)!important}.bg-mint-cool-vivid-50{--background:var(--mint-cool-vivid-50);background:var(--mint-cool-vivid-50)!important}.bg-mint-cool-vivid-40{--background:var(--mint-cool-vivid-40);background:var(--mint-cool-vivid-40)!important}.bg-mint-cool-vivid-30{--background:var(--mint-cool-vivid-30);background:var(--mint-cool-vivid-30)!important}.bg-mint-cool-vivid-20{--background:var(--mint-cool-vivid-20);background:var(--mint-cool-vivid-20)!important}.bg-mint-cool-vivid-10{--background:var(--mint-cool-vivid-10);background:var(--mint-cool-vivid-10)!important}.bg-mint-cool-vivid-5{--background:var(--mint-cool-vivid-5);background:var(--mint-cool-vivid-5)!important}.bg-orange-90{--background:var(--orange-90);background:var(--orange-90)!important}.bg-orange-80{--background:var(--orange-80);background:var(--orange-80)!important}.bg-orange-70{--background:var(--orange-70);background:var(--orange-70)!important}.bg-orange-60{--background:var(--orange-60);background:var(--orange-60)!important}.bg-orange-50{--background:var(--orange-50);background:var(--orange-50)!important}.bg-orange-40{--background:var(--orange-40);background:var(--orange-40)!important}.bg-orange-30{--background:var(--orange-30);background:var(--orange-30)!important}.bg-orange-20{--background:var(--orange-20);background:var(--orange-20)!important}.bg-orange-10{--background:var(--orange-10);background:var(--orange-10)!important}.bg-orange-5{--background:var(--orange-5);background:var(--orange-5)!important}.bg-orange-warm-90{--background:var(--orange-warm-90);background:var(--orange-warm-90)!important}.bg-orange-warm-80{--background:var(--orange-warm-80);background:var(--orange-warm-80)!important}.bg-orange-warm-70{--background:var(--orange-warm-70);background:var(--orange-warm-70)!important}.bg-orange-warm-60{--background:var(--orange-warm-60);background:var(--orange-warm-60)!important}.bg-orange-warm-50{--background:var(--orange-warm-50);background:var(--orange-warm-50)!important}.bg-orange-warm-40{--background:var(--orange-warm-40);background:var(--orange-warm-40)!important}.bg-orange-warm-30{--background:var(--orange-warm-30);background:var(--orange-warm-30)!important}.bg-orange-warm-20{--background:var(--orange-warm-20);background:var(--orange-warm-20)!important}.bg-orange-warm-10{--background:var(--orange-warm-10);background:var(--orange-warm-10)!important}.bg-orange-warm-5{--background:var(--orange-warm-5);background:var(--orange-warm-5)!important}.bg-orange-vivid-80{--background:var(--orange-vivid-80);background:var(--orange-vivid-80)!important}.bg-orange-vivid-70{--background:var(--orange-vivid-70);background:var(--orange-vivid-70)!important}.bg-orange-vivid-60{--background:var(--orange-vivid-60);background:var(--orange-vivid-60)!important}.bg-orange-vivid-50{--background:var(--orange-vivid-50);background:var(--orange-vivid-50)!important}.bg-orange-vivid-40{--background:var(--orange-vivid-40);background:var(--orange-vivid-40)!important}.bg-orange-vivid-30{--background:var(--orange-vivid-30);background:var(--orange-vivid-30)!important}.bg-orange-vivid-20{--background:var(--orange-vivid-20);background:var(--orange-vivid-20)!important}.bg-orange-vivid-10{--background:var(--orange-vivid-10);background:var(--orange-vivid-10)!important}.bg-orange-vivid-5{--background:var(--orange-vivid-5);background:var(--orange-vivid-5)!important}.bg-orange-warm-vivid-80{--background:var(--orange-warm-vivid-80);background:var(--orange-warm-vivid-80)!important}.bg-orange-warm-vivid-70{--background:var(--orange-warm-vivid-70);background:var(--orange-warm-vivid-70)!important}.bg-orange-warm-vivid-60{--background:var(--orange-warm-vivid-60);background:var(--orange-warm-vivid-60)!important}.bg-orange-warm-vivid-50{--background:var(--orange-warm-vivid-50);background:var(--orange-warm-vivid-50)!important}.bg-orange-warm-vivid-40{--background:var(--orange-warm-vivid-40);background:var(--orange-warm-vivid-40)!important}.bg-orange-warm-vivid-30{--background:var(--orange-warm-vivid-30);background:var(--orange-warm-vivid-30)!important}.bg-orange-warm-vivid-20{--background:var(--orange-warm-vivid-20);background:var(--orange-warm-vivid-20)!important}.bg-orange-warm-vivid-10{--background:var(--orange-warm-vivid-10);background:var(--orange-warm-vivid-10)!important}.bg-orange-warm-vivid-5{--background:var(--orange-warm-vivid-5);background:var(--orange-warm-vivid-5)!important}.bg-pure-100{--background:var(--pure-100);background:var(--pure-100)!important}.bg-pure-0{--background:var(--pure-0);background:var(--pure-0)!important}.text-pure-0{color:var(--pure-0)!important}.bg-red-90{--background:var(--red-90);background:var(--red-90)!important}.bg-red-80{--background:var(--red-80);background:var(--red-80)!important}.bg-red-70{--background:var(--red-70);background:var(--red-70)!important}.bg-red-60{--background:var(--red-60);background:var(--red-60)!important}.bg-red-50{--background:var(--red-50);background:var(--red-50)!important}.bg-red-40{--background:var(--red-40);background:var(--red-40)!important}.bg-red-30{--background:var(--red-30);background:var(--red-30)!important}.bg-red-20{--background:var(--red-20);background:var(--red-20)!important}.bg-red-10{--background:var(--red-10);background:var(--red-10)!important}.bg-red-5{--background:var(--red-5);background:var(--red-5)!important}.bg-red-cool-90{--background:var(--red-cool-90);background:var(--red-cool-90)!important}.bg-red-cool-80{--background:var(--red-cool-80);background:var(--red-cool-80)!important}.bg-red-cool-70{--background:var(--red-cool-70);background:var(--red-cool-70)!important}.bg-red-cool-60{--background:var(--red-cool-60);background:var(--red-cool-60)!important}.bg-red-cool-50{--background:var(--red-cool-50);background:var(--red-cool-50)!important}.bg-red-cool-40{--background:var(--red-cool-40);background:var(--red-cool-40)!important}.bg-red-cool-30{--background:var(--red-cool-30);background:var(--red-cool-30)!important}.bg-red-cool-20{--background:var(--red-cool-20);background:var(--red-cool-20)!important}.bg-red-cool-10{--background:var(--red-cool-10);background:var(--red-cool-10)!important}.bg-red-cool-5{--background:var(--red-cool-5);background:var(--red-cool-5)!important}.bg-red-warm-90{--background:var(--red-warm-90);background:var(--red-warm-90)!important}.bg-red-warm-80{--background:var(--red-warm-80);background:var(--red-warm-80)!important}.bg-red-warm-70{--background:var(--red-warm-70);background:var(--red-warm-70)!important}.bg-red-warm-60{--background:var(--red-warm-60);background:var(--red-warm-60)!important}.bg-red-warm-50{--background:var(--red-warm-50);background:var(--red-warm-50)!important}.bg-red-warm-40{--background:var(--red-warm-40);background:var(--red-warm-40)!important}.bg-red-warm-30{--background:var(--red-warm-30);background:var(--red-warm-30)!important}.bg-red-warm-20{--background:var(--red-warm-20);background:var(--red-warm-20)!important}.bg-red-warm-10{--background:var(--red-warm-10);background:var(--red-warm-10)!important}.bg-red-warm-5{--background:var(--red-warm-5);background:var(--red-warm-5)!important}.bg-red-vivid-80{--background:var(--red-vivid-80);background:var(--red-vivid-80)!important}.bg-red-vivid-70{--background:var(--red-vivid-70);background:var(--red-vivid-70)!important}.bg-red-vivid-60{--background:var(--red-vivid-60);background:var(--red-vivid-60)!important}.bg-red-vivid-50{--background:var(--red-vivid-50);background:var(--red-vivid-50)!important}.bg-red-vivid-40{--background:var(--red-vivid-40);background:var(--red-vivid-40)!important}.bg-red-vivid-30{--background:var(--red-vivid-30);background:var(--red-vivid-30)!important}.bg-red-vivid-20{--background:var(--red-vivid-20);background:var(--red-vivid-20)!important}.bg-red-vivid-10{--background:var(--red-vivid-10);background:var(--red-vivid-10)!important}.bg-red-vivid-5{--background:var(--red-vivid-5);background:var(--red-vivid-5)!important}.bg-red-cool-vivid-80{--background:var(--red-cool-vivid-80);background:var(--red-cool-vivid-80)!important}.bg-red-cool-vivid-70{--background:var(--red-cool-vivid-70);background:var(--red-cool-vivid-70)!important}.bg-red-cool-vivid-60{--background:var(--red-cool-vivid-60);background:var(--red-cool-vivid-60)!important}.bg-red-cool-vivid-50{--background:var(--red-cool-vivid-50);background:var(--red-cool-vivid-50)!important}.bg-red-cool-vivid-40{--background:var(--red-cool-vivid-40);background:var(--red-cool-vivid-40)!important}.bg-red-cool-vivid-30{--background:var(--red-cool-vivid-30);background:var(--red-cool-vivid-30)!important}.bg-red-cool-vivid-20{--background:var(--red-cool-vivid-20);background:var(--red-cool-vivid-20)!important}.bg-red-cool-vivid-10{--background:var(--red-cool-vivid-10);background:var(--red-cool-vivid-10)!important}.bg-red-cool-vivid-5{--background:var(--red-cool-vivid-5);background:var(--red-cool-vivid-5)!important}.bg-red-warm-vivid-80{--background:var(--red-warm-vivid-80);background:var(--red-warm-vivid-80)!important}.bg-red-warm-vivid-70{--background:var(--red-warm-vivid-70);background:var(--red-warm-vivid-70)!important}.bg-red-warm-vivid-60{--background:var(--red-warm-vivid-60);background:var(--red-warm-vivid-60)!important}.bg-red-warm-vivid-50{--background:var(--red-warm-vivid-50);background:var(--red-warm-vivid-50)!important}.bg-red-warm-vivid-40{--background:var(--red-warm-vivid-40);background:var(--red-warm-vivid-40)!important}.bg-red-warm-vivid-30{--background:var(--red-warm-vivid-30);background:var(--red-warm-vivid-30)!important}.bg-red-warm-vivid-20{--background:var(--red-warm-vivid-20);background:var(--red-warm-vivid-20)!important}.bg-red-warm-vivid-10{--background:var(--red-warm-vivid-10);background:var(--red-warm-vivid-10)!important}.bg-red-warm-vivid-5{--background:var(--red-warm-vivid-5);background:var(--red-warm-vivid-5)!important}.bg-violet-90{--background:var(--violet-90);background:var(--violet-90)!important}.bg-violet-80{--background:var(--violet-80);background:var(--violet-80)!important}.bg-violet-70{--background:var(--violet-70);background:var(--violet-70)!important}.bg-violet-60{--background:var(--violet-60);background:var(--violet-60)!important}.bg-violet-50{--background:var(--violet-50);background:var(--violet-50)!important}.bg-violet-40{--background:var(--violet-40);background:var(--violet-40)!important}.bg-violet-30{--background:var(--violet-30);background:var(--violet-30)!important}.bg-violet-20{--background:var(--violet-20);background:var(--violet-20)!important}.bg-violet-10{--background:var(--violet-10);background:var(--violet-10)!important}.bg-violet-5{--background:var(--violet-5);background:var(--violet-5)!important}.bg-violet-warm-90{--background:var(--violet-warm-90);background:var(--violet-warm-90)!important}.bg-violet-warm-80{--background:var(--violet-warm-80);background:var(--violet-warm-80)!important}.bg-violet-warm-70{--background:var(--violet-warm-70);background:var(--violet-warm-70)!important}.bg-violet-warm-60{--background:var(--violet-warm-60);background:var(--violet-warm-60)!important}.bg-violet-warm-50{--background:var(--violet-warm-50);background:var(--violet-warm-50)!important}.bg-violet-warm-40{--background:var(--violet-warm-40);background:var(--violet-warm-40)!important}.bg-violet-warm-30{--background:var(--violet-warm-30);background:var(--violet-warm-30)!important}.bg-violet-warm-20{--background:var(--violet-warm-20);background:var(--violet-warm-20)!important}.bg-violet-warm-10{--background:var(--violet-warm-10);background:var(--violet-warm-10)!important}.bg-violet-warm-5{--background:var(--violet-warm-5);background:var(--violet-warm-5)!important}.bg-violet-vivid-80{--background:var(--violet-vivid-80);background:var(--violet-vivid-80)!important}.bg-violet-vivid-70{--background:var(--violet-vivid-70);background:var(--violet-vivid-70)!important}.bg-violet-vivid-60{--background:var(--violet-vivid-60);background:var(--violet-vivid-60)!important}.bg-violet-vivid-50{--background:var(--violet-vivid-50);background:var(--violet-vivid-50)!important}.bg-violet-vivid-40{--background:var(--violet-vivid-40);background:var(--violet-vivid-40)!important}.bg-violet-vivid-30{--background:var(--violet-vivid-30);background:var(--violet-vivid-30)!important}.bg-violet-vivid-20{--background:var(--violet-vivid-20);background:var(--violet-vivid-20)!important}.bg-violet-vivid-10{--background:var(--violet-vivid-10);background:var(--violet-vivid-10)!important}.bg-violet-vivid-5{--background:var(--violet-vivid-5);background:var(--violet-vivid-5)!important}.bg-violet-warm-vivid-80{--background:var(--violet-warm-vivid-80);background:var(--violet-warm-vivid-80)!important}.bg-violet-warm-vivid-70{--background:var(--violet-warm-vivid-70);background:var(--violet-warm-vivid-70)!important}.bg-violet-warm-vivid-60{--background:var(--violet-warm-vivid-60);background:var(--violet-warm-vivid-60)!important}.bg-violet-warm-vivid-50{--background:var(--violet-warm-vivid-50);background:var(--violet-warm-vivid-50)!important}.bg-violet-warm-vivid-40{--background:var(--violet-warm-vivid-40);background:var(--violet-warm-vivid-40)!important}.bg-violet-warm-vivid-30{--background:var(--violet-warm-vivid-30);background:var(--violet-warm-vivid-30)!important}.bg-violet-warm-vivid-20{--background:var(--violet-warm-vivid-20);background:var(--violet-warm-vivid-20)!important}.bg-violet-warm-vivid-10{--background:var(--violet-warm-vivid-10);background:var(--violet-warm-vivid-10)!important}.bg-violet-warm-vivid-5{--background:var(--violet-warm-vivid-5);background:var(--violet-warm-vivid-5)!important}.bg-yellow-90{--background:var(--yellow-90);background:var(--yellow-90)!important}.bg-yellow-80{--background:var(--yellow-80);background:var(--yellow-80)!important}.bg-yellow-70{--background:var(--yellow-70);background:var(--yellow-70)!important}.bg-yellow-60{--background:var(--yellow-60);background:var(--yellow-60)!important}.bg-yellow-50{--background:var(--yellow-50);background:var(--yellow-50)!important}.bg-yellow-40{--background:var(--yellow-40);background:var(--yellow-40)!important}.bg-yellow-30{--background:var(--yellow-30);background:var(--yellow-30)!important}.bg-yellow-20{--background:var(--yellow-20);background:var(--yellow-20)!important}.bg-yellow-10{--background:var(--yellow-10);background:var(--yellow-10)!important}.bg-yellow-5{--background:var(--yellow-5);background:var(--yellow-5)!important}.bg-yellow-vivid-80{--background:var(--yellow-vivid-80);background:var(--yellow-vivid-80)!important}.bg-yellow-vivid-70{--background:var(--yellow-vivid-70);background:var(--yellow-vivid-70)!important}.bg-yellow-vivid-60{--background:var(--yellow-vivid-60);background:var(--yellow-vivid-60)!important}.bg-yellow-vivid-50{--background:var(--yellow-vivid-50);background:var(--yellow-vivid-50)!important}.bg-yellow-vivid-40{--background:var(--yellow-vivid-40);background:var(--yellow-vivid-40)!important}.bg-yellow-vivid-30{--background:var(--yellow-vivid-30);background:var(--yellow-vivid-30)!important}.bg-yellow-vivid-20{--background:var(--yellow-vivid-20);background:var(--yellow-vivid-20)!important}.bg-yellow-vivid-10{--background:var(--yellow-vivid-10);background:var(--yellow-vivid-10)!important}.bg-yellow-vivid-5{--background:var(--yellow-vivid-5);background:var(--yellow-vivid-5)!important}.bg-interactive{--background:var(--interactive);background:var(--interactive)!important}.bg-interactive-dark{--background:var(--interactive-dark);background:var(--interactive-dark)!important}.bg-danger{--background:var(--danger);background:var(--danger)!important}.bg-warning{--background:var(--warning);background:var(--warning)!important}.bg-success{--background:var(--success);background:var(--success)!important}.bg-info{--background:var(--info);background:var(--info)!important}.bg-primary-pastel-01{background:var(--color-primary-pastel-01)!important}.bg-primary-pastel-02{background:var(--color-primary-pastel-02)!important}.bg-primary-lighten-01{background:var(--color-primary-lighten-01)!important}.bg-primary-lighten-01,.bg-primary-lighten-02{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-primary-lighten-02{background:var(--color-primary-lighten-02)!important}.bg-primary-default{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark);background:var(--color-primary-default)!important}.text-primary-default{color:var(--color-primary-default)!important}.bg-primary-darken-01{background:var(--color-primary-darken-01)!important}.bg-primary-darken-01,.bg-primary-darken-02{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-primary-darken-02{background:var(--color-primary-darken-02)!important}.bg-secondary-01{background:var(--color-secondary-01)!important}.bg-secondary-02{background:var(--color-secondary-02)!important}.bg-secondary-03{background:var(--color-secondary-03)!important}.bg-secondary-04{background:var(--color-secondary-04)!important}.bg-secondary-05{background:var(--color-secondary-05)!important}.bg-secondary-06{background:var(--color-secondary-06)!important}.bg-secondary-06,.bg-secondary-07{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-secondary-07{background:var(--color-secondary-07)!important}.bg-secondary-08{background:var(--color-secondary-08)!important}.bg-secondary-08,.bg-secondary-09{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-secondary-09{background:var(--color-secondary-09)!important}.bg-highlight{background:var(--color-highlight)!important}.bg-highlight,.bg-support-01{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-support-01{background:var(--color-support-01)!important}.bg-support-02{background:var(--color-support-02)!important}.bg-support-03{background:var(--color-support-03)!important}.bg-support-03,.bg-support-04{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-support-04{background:var(--color-support-04)!important}.bg-support-05{background:var(--color-support-05)!important}.bg-support-06{background:var(--color-support-06)!important}.bg-support-07{background:var(--color-support-07)!important}.bg-support-07,.bg-support-08{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.bg-support-08{background:var(--color-support-08)!important}.bg-support-09{background:var(--color-support-09)!important}.bg-support-10{background:var(--color-support-10)!important}.bg-support-11{background:var(--color-support-11)!important}.text-right{text-align:right!important}.text-nowrap{white-space:nowrap!important}.text-medium{font-weight:500!important}.text-base{font-size:var(--font-size-scale-base)!important}.text-down-01{font-size:var(--font-size-scale-down-01)!important}@media (min-width:576px){.text-sm-center{text-align:center!important}.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}}.ease{-webkit-animation-timing-function:ease;animation-timing-function:ease}.ease-in-out{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.highlight{background:var(--status-highlight-background) -webkit-gradient(linear,left top,left bottom,from(var(--status-highlight-overlay)),to(var(--status-highlight-overlay)));background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay),var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}.disabled,[disabled]{cursor:not-allowed;opacity:var(--disabled)}.disabled *,[disabled] *{pointer-events:none}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{-webkit-box-shadow:var(--surface-shadow-sm);box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}[data-toggle=collapse]:not(:disabled):hover{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--interactive-rgb),var(--hover))),to(rgba(var(--interactive-rgb),var(--hover))));background-image:linear-gradient(rgba(var(--interactive-rgb),var(--hover)),rgba(var(--interactive-rgb),var(--hover)))}[data-toggle=collapse]:focus{outline:none}[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host{display:block;position:relative}.br-tooltip .content{border-radius:4px;-webkit-box-shadow:var(--surface-offset-xl) var(--surface-offset-xl) var(--surface-offset-xl) rgba(0,0,0,.16);box-shadow:var(--surface-offset-xl) var(--surface-offset-xl) var(--surface-offset-xl) rgba(0,0,0,.16);color:var(--pure-0);display:none;font-size:var(--font-size-scale-down-01);font-weight:var(--font-weight-regular);left:0;position:absolute;text-align:center;top:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;z-index:4}.br-tooltip .content.small{padding:var(--spacing-scale-base) var(--spacing-scale-base)}.br-tooltip .content.medium{padding:var(--spacing-scale-baseh) var(--spacing-scale-baseh)}.br-tooltip .content.large{padding:var(--spacing-scale-2x) var(--spacing-scale-2x)}.br-tooltip .content.is-visible{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.br-tooltip .content.popover br-button{-ms-flex-item-align:start;align-self:flex-start;margin-left:var(--spacing-scale-half)}.br-tooltip .content:focus-visible{outline:var(--focus) var(--focus-style) var(--focus-width);outline-offset:var(--focus-offset)}.br-tooltip .arrow{height:8px;position:absolute;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:8px}.br-tooltip .arrow.info,.br-tooltip .content.info{background-color:var(--blue-warm-vivid-60)}.br-tooltip .arrow.info br-button::part(button),.br-tooltip .content.info br-button::part(button){color:var(--pure-0)}.br-tooltip .arrow.info br-button::part(button):hover,.br-tooltip .content.info br-button::part(button):hover{background:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--pure-0-rgb),var(--hover))),to(rgba(var(--pure-0-rgb),var(--hover))));background:linear-gradient(rgba(var(--pure-0-rgb),var(--hover)),rgba(var(--pure-0-rgb),var(--hover)))}.br-tooltip .arrow.warning,.br-tooltip .content.warning{background-color:var(--yellow-vivid-20);color:var(--gray-80)}.br-tooltip .arrow.warning br-button::part(button),.br-tooltip .content.warning br-button::part(button){color:var(--gray-80)}.br-tooltip .arrow.warning br-button::part(button):hover,.br-tooltip .content.warning br-button::part(button):hover{background:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--gray-80-rgb),var(--hover))),to(rgba(var(--gray-80-rgb),var(--hover))));background:linear-gradient(rgba(var(--gray-80-rgb),var(--hover)),rgba(var(--gray-80-rgb),var(--hover)))}.br-tooltip .arrow.error,.br-tooltip .content.error{background-color:var(--red-vivid-50)}.br-tooltip .arrow.error br-button::part(button),.br-tooltip .content.error br-button::part(button){color:var(--pure-0)}.br-tooltip .arrow.error br-button::part(button):hover,.br-tooltip .content.error br-button::part(button):hover{background:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--pure-0-rgb),var(--hover))),to(rgba(var(--pure-0-rgb),var(--hover))));background:linear-gradient(rgba(var(--pure-0-rgb),var(--hover)),rgba(var(--pure-0-rgb),var(--hover)))}.br-tooltip .arrow.success,.br-tooltip .content.success{background-color:var(--green-cool-vivid-50)}.br-tooltip .arrow.success br-button::part(button),.br-tooltip .content.success br-button::part(button){color:var(--pure-0)}.br-tooltip .arrow.success br-button::part(button):hover,.br-tooltip .content.success br-button::part(button):hover{background:-webkit-gradient(linear,left top,left bottom,from(rgba(var(--pure-0-rgb),var(--hover))),to(rgba(var(--pure-0-rgb),var(--hover))));background:linear-gradient(rgba(var(--pure-0-rgb),var(--hover)),rgba(var(--pure-0-rgb),var(--hover)))}";
1681
+
1682
+ const O = r(class r extends a {
1683
+ constructor() {
1684
+ super();
1685
+ this.__registerHost();
1686
+ this.__attachShadow();
1687
+ this.brDidOpen = o(this, "brDidOpen");
1688
+ this.brDidClose = o(this, "brDidClose");
1689
+ this.elementInternals = this.attachInternals();
1690
+ }
1691
+ get el() {
1692
+ return this;
1693
+ }
1694
+ /**
1695
+ * Referência ao elemento Internals do componente.
1696
+ * O elemento Internals fornece uma interface para acessar e manipular o estado interno do componente.
1697
+ * Isso é útil para componentes que precisam se integrar com o sistema de formulários nativo do navegador.
1698
+ */ elementInternals;
1699
+ /**
1700
+ * Identificador único.
1701
+ * Caso não seja fornecido, um ID gerado automaticamente será usado.
1702
+ */
1703
+ customId=n.generateUniqueId();
1704
+ /**
1705
+ * Define a posição do tooltip em relação ao elemento acionador.
1706
+ * As opções disponíveis são: 'top', 'bottom', 'left' e 'right'.
1707
+ * @default 'top'
1708
+ */
1709
+ position="top";
1710
+ /**
1711
+ * Define o tipo de tooltip a ser exibido.
1712
+ * As opções disponíveis são: 'standard' e 'popover'.
1713
+ * O tipo 'standard' exibe um tooltip simples, enquanto o tipo 'popover' exibe um tooltip com mais informações e fechamento por interação.
1714
+ * @default 'standard'
1715
+ */
1716
+ type="standard";
1717
+ /**
1718
+ * Define a densidade do tooltip.
1719
+ * As opções disponíveis são: 'large', 'medium' e 'small'.
1720
+ * A densidade 'small' exibe um tooltip mais compacto, enquanto a densidade 'large' exibe um tooltip mais espaçado.
1721
+ * @default 'medium'
1722
+ */
1723
+ density="medium";
1724
+ /**
1725
+ * Define o estado do tooltip.
1726
+ * Os estados disponíveis são: 'info', 'warning', 'error' e 'success'.
1727
+ * @default 'info'
1728
+ */
1729
+ state="info";
1730
+ /**
1731
+ * Define se o tooltip deve ser exibido automaticamente.
1732
+ * Quando definido como true, o tooltip será exibido automaticamente.
1733
+ * Quando definido como false, o tooltip será exibido apenas quando acionado pelo usuário.
1734
+ * @default false
1735
+ */
1736
+ isAutoVisible=false;
1737
+ /**
1738
+ * Define o atraso em milissegundos para exibir o tooltip.
1739
+ * @default null
1740
+ */
1741
+ showDelay=null;
1742
+ /**
1743
+ * Define o atraso em milissegundos para ocultar o tooltip.
1744
+ * @default null
1745
+ */
1746
+ hideDelay=null;
1747
+ /**
1748
+ * Define a visibilidade do tooltip.
1749
+ * Quando definido como true, o tooltip será exibido.
1750
+ * Quando definido como false, o tooltip será ocultado.
1751
+ * @default false
1752
+ */
1753
+ isVisible=false;
1754
+ /**
1755
+ * Watcher para monitorar alterações na propriedade `isVisible`.
1756
+ * @param visible boolean
1757
+ * @returns void
1758
+ */
1759
+ handleVisibilityChange(r) {
1760
+ if (this.contentElement == null) return;
1761
+ if (r) {
1762
+ this.positionTooltip();
1763
+ this.brDidOpen.emit();
1764
+ } else {
1765
+ this.clearAutoUpdate?.();
1766
+ this.clearAutoUpdate = undefined;
1767
+ this.brDidClose.emit();
1768
+ }
1769
+ }
1770
+ /**
1771
+ * Evento emitido quando o tooltip é aberto.
1772
+ */ brDidOpen;
1773
+ /**
1774
+ * Evento emitido quando o tooltip é fechado.
1775
+ */
1776
+ brDidClose;
1777
+ /**
1778
+ * Listener para o evento de foco no elemento acionador.
1779
+ * Este evento é utilizado para exibir o tooltip quando o elemento acionador recebe foco.
1780
+ */
1781
+ handleFocusIn() {
1782
+ if (!this.fromPointerDown) {
1783
+ this.showContent();
1784
+ }
1785
+ this.fromPointerDown = false;
1786
+ }
1787
+ /**
1788
+ * Listener para o evento de desfoque no elemento acionador.
1789
+ * Este evento é utilizado para ocultar o tooltip quando o elemento acionador perde o foco.
1790
+ */ handleFocusOut() {
1791
+ this.hideContent();
1792
+ }
1793
+ /**
1794
+ * Listener para o evento de teclado no documento.
1795
+ * Este evento é utilizado para fechar o tooltip quando a tecla Escape é pressionada.
1796
+ * @param event KeyboardEvent
1797
+ */ handleKeyDown(r) {
1798
+ if (r.key === "Escape") {
1799
+ r.preventDefault();
1800
+ this.hideContent();
1801
+ this.triggerElement?.focus();
1802
+ }
1803
+ }
1804
+ floatingManager;
1805
+ /**
1806
+ * Elemento que aciona a exibição do tooltip.
1807
+ * Este elemento é referenciado para garantir que o tooltip seja posicionado corretamente em relação a ele.
1808
+ */
1809
+ triggerElement;
1810
+ /**
1811
+ * Elemento que contém o conteúdo do tooltip.
1812
+ * Este elemento é referenciado para garantir que o tooltip seja posicionado corretamente em relação a ele.
1813
+ */
1814
+ contentElement;
1815
+ /**
1816
+ * Elemento que representa a seta do tooltip.
1817
+ * Este elemento é utilizado para indicar a direção do tooltip em relação ao elemento acionador.
1818
+ */
1819
+ arrowElement;
1820
+ /**
1821
+ * Função de limpeza para atualizar a posição do tooltip automaticamente.
1822
+ * Esta função é chamada quando o tooltip não está mais visível ou quando o componente é desconectado.
1823
+ * Isso garante que o tooltip não consuma recursos desnecessários quando não estiver em uso.
1824
+ */
1825
+ clearAutoUpdate;
1826
+ /**
1827
+ * Tempo limite para exibir o tooltip automaticamente.
1828
+ */
1829
+ showTimer;
1830
+ /**
1831
+ * Tempo limite para ocultar o tooltip.
1832
+ */
1833
+ hideTimer;
1834
+ /**
1835
+ * Indica se o tooltip foi acionado por um clique do mouse.
1836
+ * Isso é utilizado para evitar conflito com o acionamento por foco.
1837
+ */
1838
+ fromPointerDown=false;
1839
+ /**
1840
+ * Controla a exibição do tooltip.
1841
+ * Quando o tooltip é exibido, ele é posicionado em relação ao elemento acionador.
1842
+ * Isso é feito utilizando a biblioteca Floating UI, que calcula a posição ideal do tooltip com base no espaço disponível na tela.
1843
+ * A função `autoUpdate` é utilizada para atualizar automaticamente a posição do tooltip quando o elemento acionador é movido ou redimensionado.
1844
+ */
1845
+ positionTooltip() {
1846
+ if (this.triggerElement == null || this.contentElement == null) return;
1847
+ this.floatingManager = new x({
1848
+ triggerElement: this.triggerElement,
1849
+ contentElement: this.contentElement,
1850
+ arrowElement: this.arrowElement,
1851
+ placement: this.position
1852
+ });
1853
+ this.floatingManager.start();
1854
+ }
1855
+ cleanupPositioning() {
1856
+ this.floatingManager?.stop();
1857
+ }
1858
+ /**
1859
+ * Define os eventos de interação do tooltip.
1860
+ * Os eventos de interação incluem mouseenter, mouseleave, focus e blur.
1861
+ * @returns void
1862
+ */ setupInteractions() {
1863
+ if (this.triggerElement == null || this.contentElement == null) return;
1864
+ if (this.type === "standard") {
1865
+ this.triggerElement.addEventListener("mouseenter", this.showContent);
1866
+ this.triggerElement.addEventListener("mouseleave", this.hideContent);
1867
+ }
1868
+ if (this.type === "popover") {
1869
+ this.triggerElement.addEventListener("pointerdown", this.toggleContent);
1870
+ }
1871
+ if (this.isAutoVisible) {
1872
+ requestAnimationFrame((() => {
1873
+ this.clearShowTimer();
1874
+ this.setShowTimer();
1875
+ }));
1876
+ }
1877
+ }
1878
+ /**
1879
+ * Alterna a exibição do tooltip.
1880
+ * Se o tooltip estiver visível, ele será ocultado.
1881
+ * Se o tooltip estiver oculto, ele será exibido.
1882
+ */ toggleContent=() => {
1883
+ this.fromPointerDown = true;
1884
+ if (this.isVisible) {
1885
+ this.hideContent();
1886
+ } else {
1887
+ this.showContent();
1888
+ }
1889
+ };
1890
+ /**
1891
+ * Processa as ações relacionadas à exibição do tooltip.
1892
+ * Isso inclui exibir o tooltip e iniciar o tempo limite de ocultação automática.
1893
+ * @returns void
1894
+ */
1895
+ showContent=() => {
1896
+ if (this.contentElement == null) return;
1897
+ this.isVisible = true;
1898
+ if (this.isAutoVisible) {
1899
+ if (this.hideDelay !== null) {
1900
+ this.clearHideTimer();
1901
+ this.setHideTimer();
1902
+ }
1903
+ }
1904
+ if (this.type === "popover") {
1905
+ document.addEventListener("click", this.handleOutsideClick);
1906
+ }
1907
+ };
1908
+ /**
1909
+ * Processa as ações relacionadas ao fechamento do tooltip.
1910
+ * Isso inclui ocultar o tooltip e limpar o tempo limite de ocultação automática.
1911
+ * @returns void
1912
+ */
1913
+ hideContent=() => {
1914
+ if (this.contentElement == null) return;
1915
+ this.isVisible = false;
1916
+ if (this.type === "popover") {
1917
+ document.removeEventListener("click", this.handleOutsideClick);
1918
+ requestAnimationFrame((() => this.contentElement?.focus()));
1919
+ }
1920
+ };
1921
+ /**
1922
+ * Configura o tempo limite para exibir o tooltip automaticamente.
1923
+ * O tempo limite é definido pelo valor da propriedade `showDelay`.
1924
+ */
1925
+ setShowTimer() {
1926
+ this.showTimer = setTimeout((() => {
1927
+ this.showContent();
1928
+ }), this.showDelay || 0);
1929
+ }
1930
+ /**
1931
+ * Limpa o tempo limite de exibição automática do tooltip.
1932
+ */ clearShowTimer() {
1933
+ if (this.showTimer !== undefined) {
1934
+ clearTimeout(this.showTimer);
1935
+ this.showTimer = undefined;
1936
+ }
1937
+ }
1938
+ /**
1939
+ * Configura o tempo limite para ocultar o tooltip automaticamente.
1940
+ * O tempo limite é definido pelo valor da propriedade `hideDelay`.
1941
+ */ setHideTimer() {
1942
+ this.hideTimer = setTimeout((() => {
1943
+ this.hideContent();
1944
+ }), this.hideDelay);
1945
+ }
1946
+ /**
1947
+ * Limpa o tempo limite de ocultação automática do tooltip.
1948
+ */ clearHideTimer() {
1949
+ if (this.hideTimer !== undefined) {
1950
+ clearTimeout(this.hideTimer);
1951
+ this.hideTimer = undefined;
1952
+ }
1953
+ }
1954
+ /**
1955
+ * Lida com cliques fora do tooltip.
1956
+ * É utilizado para o tooltip do tipo 'popover'.
1957
+ * @param event MouseEvent
1958
+ */ handleOutsideClick=r => {
1959
+ const a = r.composedPath();
1960
+ if (this.isVisible && this.type === "popover" && !a.includes(this.contentElement) && !a.includes(this.triggerElement)) {
1961
+ this.hideContent();
1962
+ }
1963
+ };
1964
+ /**
1965
+ * Determina o mapeamento de classes CSS do componente.
1966
+ * @returns Um objeto que representa o mapeamento de classes CSS do componente.
1967
+ */
1968
+ getCssClassMap() {
1969
+ return {
1970
+ "br-tooltip": true
1971
+ };
1972
+ }
1973
+ /**
1974
+ * Determina o mapeamento de classes CSS do trigger.
1975
+ * @returns Um objeto que representa o mapeamento de classes CSS do trigger.
1976
+ */ getTriggerCssClassMap() {
1977
+ return {
1978
+ trigger: true
1979
+ };
1980
+ }
1981
+ /**
1982
+ * Determina o mapeamento de classes CSS do conteúdo.
1983
+ * @returns Um objeto que representa o mapeamento de classes CSS do conteúdo.
1984
+ */ getContentCssClassMap() {
1985
+ return {
1986
+ "is-visible": this.isVisible,
1987
+ content: true,
1988
+ popover: this.type === "popover",
1989
+ large: this.density === "large",
1990
+ medium: this.density === "medium",
1991
+ small: this.density === "small",
1992
+ info: this.state === "info",
1993
+ warning: this.state === "warning",
1994
+ error: this.state === "error",
1995
+ success: this.state === "success"
1996
+ };
1997
+ }
1998
+ /**
1999
+ * Determina o mapeamento de classes CSS da seta.
2000
+ * @returns Um objeto que representa o mapeamento de classes CSS da seta.
2001
+ */ getArrowCssClassMap() {
2002
+ return {
2003
+ arrow: true,
2004
+ large: this.density === "large",
2005
+ medium: this.density === "medium",
2006
+ small: this.density === "small",
2007
+ info: this.state === "info",
2008
+ warning: this.state === "warning",
2009
+ error: this.state === "error",
2010
+ success: this.state === "success"
2011
+ };
2012
+ }
2013
+ /**
2014
+ * Método do ciclo de vida do componente.
2015
+ * Este método é chamado uma única vez após o componente ser montado no DOM.
2016
+ */ componentDidLoad() {
2017
+ if (typeof window === "undefined") return;
2018
+ this.setupInteractions();
2019
+ }
2020
+ /**
2021
+ * Método do ciclo de vida do componente.
2022
+ * Este método é chamado quando o componente é desconectado do DOM.
2023
+ */ disconnectedCallback() {
2024
+ if (this.type === "standard") {
2025
+ this.triggerElement?.removeEventListener("mouseenter", this.showContent);
2026
+ this.triggerElement?.removeEventListener("mouseleave", this.hideContent);
2027
+ } else if (this.type === "popover") {
2028
+ this.triggerElement?.removeEventListener("pointerdown", this.toggleContent);
2029
+ document.removeEventListener("click", this.handleOutsideClick);
2030
+ }
2031
+ this.cleanupPositioning();
2032
+ this.clearShowTimer();
2033
+ this.clearHideTimer();
2034
+ }
2035
+ /**
2036
+ * Renderiza o componente.
2037
+ * Este método é responsável por gerar o conteúdo HTML do componente.
2038
+ * Ele utiliza a função `h` do Stencil para criar elementos JSX.
2039
+ * @returns JSX.Element
2040
+ */ render() {
2041
+ return t(i, {
2042
+ key: "c2ee0c8f2fb36acda135948629412023bce72e2b"
2043
+ }, t("div", {
2044
+ key: "05d87a50f8e33874bf9ecf7eeb0d8ac5cb79df3e",
2045
+ id: this.customId,
2046
+ class: this.getCssClassMap()
2047
+ }, t("div", {
2048
+ key: "71997f8547d509d31cb51f446354ed071ced6e30",
2049
+ class: this.getTriggerCssClassMap(),
2050
+ ref: r => this.triggerElement = r,
2051
+ "aria-describedby": `${this.customId}-content`,
2052
+ "aria-expanded": this.isVisible ? "true" : "false",
2053
+ "aria-controls": `${this.customId}-content`,
2054
+ role: "button",
2055
+ tabindex: "-1 "
2056
+ }, t("slot", {
2057
+ key: "b21d028a56374bc1ade6723b482b36eaf095d61a",
2058
+ name: "trigger"
2059
+ })), t("div", {
2060
+ key: "ad412dcef59491cd56e5dbc7ce74a9e57fdec640",
2061
+ id: `${this.customId}-content`,
2062
+ class: this.getContentCssClassMap(),
2063
+ ref: r => this.contentElement = r,
2064
+ role: this.type === "popover" ? "dialog" : "tooltip",
2065
+ tabindex: "-1"
2066
+ }, t("slot", {
2067
+ key: "6a92b688e02a9a63786fcb999dc7a923c271087a",
2068
+ name: "content"
2069
+ }), this.type === "popover" && t("br-button", {
2070
+ key: "d3cb6806d7b71e6893da692c087f54bce057483e",
2071
+ class: "close",
2072
+ shape: "circle",
2073
+ density: "small",
2074
+ onClick: this.hideContent,
2075
+ "aria-label": "Fechar popover"
2076
+ }, t("br-icon", {
2077
+ key: "0661b70afafe7bd7203cc93cbdf2537ad5dfb389",
2078
+ "icon-name": "fa6-solid:xmark"
2079
+ })), t("div", {
2080
+ key: "852540bd9ef91d874df93785192dba5af023e3d8",
2081
+ class: this.getArrowCssClassMap(),
2082
+ ref: r => this.arrowElement = r
2083
+ }))));
2084
+ }
2085
+ static get formAssociated() {
2086
+ return true;
2087
+ }
2088
+ static get watchers() {
2089
+ return {
2090
+ isVisible: [ "handleVisibilityChange" ]
2091
+ };
2092
+ }
2093
+ static get style() {
2094
+ return A;
2095
+ }
2096
+ }, [ 65, "br-tooltip", {
2097
+ customId: [ 513, "custom-id" ],
2098
+ position: [ 513 ],
2099
+ type: [ 513 ],
2100
+ density: [ 513 ],
2101
+ state: [ 513 ],
2102
+ isAutoVisible: [ 516, "is-auto-visible" ],
2103
+ showDelay: [ 514, "show-delay" ],
2104
+ hideDelay: [ 514, "hide-delay" ],
2105
+ isVisible: [ 32 ]
2106
+ }, [ [ 0, "focusin", "handleFocusIn" ], [ 0, "focusout", "handleFocusOut" ], [ 4, "keydown", "handleKeyDown" ] ], {
2107
+ isVisible: [ "handleVisibilityChange" ]
2108
+ } ]);
2109
+
2110
+ function defineCustomElement$1() {
2111
+ if (typeof customElements === "undefined") {
2112
+ return;
2113
+ }
2114
+ const r = [ "br-tooltip", "br-button", "br-icon" ];
2115
+ r.forEach((r => {
2116
+ switch (r) {
2117
+ case "br-tooltip":
2118
+ if (!customElements.get(r)) {
2119
+ customElements.define(r, O);
2120
+ }
2121
+ break;
2122
+
2123
+ case "br-button":
2124
+ if (!customElements.get(r)) {
2125
+ e();
2126
+ }
2127
+ break;
2128
+
2129
+ case "br-icon":
2130
+ if (!customElements.get(r)) {
2131
+ g();
2132
+ }
2133
+ break;
2134
+ }
2135
+ }));
2136
+ }
2137
+
2138
+ const C = O;
2139
+
2140
+ const S = defineCustomElement$1;
2141
+
2142
+ export { C as BrTooltip, S as defineCustomElement };
2143
+ //# sourceMappingURL=br-tooltip.js.map
2144
+ //# sourceMappingURL=br-tooltip.js.map