@viasat/beam-web-components 2.41.0 → 2.43.0

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.
@@ -1,21 +1,21 @@
1
1
  import { unsafeCSS as xt, css as he, html as Xt, LitElement as qt } from "lit";
2
2
  import { property as v, state as ge } from "lit/decorators.js";
3
- import { createRef as zt, ref as Dt } from "lit/directives/ref.js";
3
+ import { createRef as zt, ref as kt } from "lit/directives/ref.js";
4
4
  import vt from "clsx";
5
- import { h as be, j as kt, k as ve, g as Gt } from "../chunks/classNames.BQclmCHG.js";
5
+ import { h as be, j as Dt, k as ve, g as Gt } from "../chunks/classNames.BQclmCHG.js";
6
6
  import { p as ye, t as we } from "../chunks/constants.ZIKMMCJH.js";
7
7
  import { e as xe, f as Ce } from "../chunks/tokens.CTW8Tt94.js";
8
8
  import { c as Zt } from "../chunks/register-custom-element.DHGKOhmA.js";
9
- import { c as Oe, d as Tt, m as $t, r as Ae, h as Ee, e as Jt, f as Bt } from "../chunks/helpers.C43UgSdK.js";
10
- const Qt = `:root,:host,.bm-light,.bm-dark .bm-inverse,.bm-dark.bm-inverse,[data-bm-theme~=bm-dark] .bm-inverse,[data-bm-theme~=bm-dark].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-light]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #202e39);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #ffffff );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #576775 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,.bm-light.bm-inverse,[data-bm-theme~=bm-light] .bm-inverse,[data-bm-theme~=bm-light].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-dark]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #ffffff);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #141d24 );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #c3cdd5 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}.bm-tooltip__icon-trigger{border:none;background:none;padding:0;margin:0;display:flex;cursor:pointer;color:var(--bm-comp-tooltip-color-icon-trigger)}.bm-tooltip{z-index:999;background-color:var(--bm-comp-tooltip-color-bg);border-radius:var(--bm-comp-tooltip-radius);max-width:var(--bm-comp-tooltip-size-width);padding:var(--bm-comp-tooltip-space-y) var(--bm-comp-tooltip-space-x);color:var(--bm-comp-tooltip-color-text);font:var(--bm-comp-tooltip-typo-body);offset:var(--bm-comp-tooltip-space-offset);transition-property:opacity}.bm-tooltip[data-status=open]{transition-duration:0s}.bm-tooltip[data-status=close]{transition-duration:.2s}.bm-tooltip[data-status=initial],.bm-tooltip[data-status=close]{opacity:0}.bm-tooltip__arrow{offset:var(--bm-comp-tooltip-space-arrow);-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');mask-size:cover;mask-position:center;mask-repeat:no-repeat;scale:1.05;width:var(--bm-comp-tooltip-size-arrow-width);height:var(--bm-comp-tooltip-size-arrow-height);background-color:var(--bm-comp-tooltip-color-bg)}.bm-tooltip__icon-trigger svg{background:none;border:none}.bm-tooltip__icon-trigger:focus-visible{border-radius:var(--bm-sem-radius-round);outline-offset:0px;outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-tooltip__icon-trigger--disabled{opacity:var(--bm-sem-opacity-disabled);cursor:inherit}.bm-tooltip__icon-trigger--xs{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--xs svg{height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--sm{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--sm svg{height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--md{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--md svg{height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--lg{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--lg svg{height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--xl{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}.bm-tooltip__icon-trigger--xl svg{height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}`, te = ["top", "right", "bottom", "left"], Ht = ["start", "end"], Ft = /* @__PURE__ */ te.reduce((e, t) => e.concat(t, t + "-" + Ht[0], t + "-" + Ht[1]), []), q = Math.min, L = Math.max, ft = Math.round, ct = Math.floor, W = (e) => ({
9
+ import { c as Oe, d as Tt, m as $t, r as Ae, h as _e, e as Jt, f as Bt } from "../chunks/helpers.C43UgSdK.js";
10
+ const Qt = `:root,:host,.bm-light,.bm-dark .bm-inverse,.bm-dark.bm-inverse,[data-bm-theme~=bm-dark] .bm-inverse,[data-bm-theme~=bm-dark].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-light]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #202e39);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #ffffff );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #576775 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,.bm-light.bm-inverse,[data-bm-theme~=bm-light] .bm-inverse,[data-bm-theme~=bm-light].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-dark]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #ffffff);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #141d24 );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #c3cdd5 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}.bm-tooltip__icon-trigger{border:none;background:none;padding:0;margin:0;display:flex;cursor:pointer;color:var(--bm-comp-tooltip-color-icon-trigger)}.bm-tooltip{z-index:999;background-color:var(--bm-comp-tooltip-color-bg);border-radius:var(--bm-comp-tooltip-radius);max-width:var(--bm-comp-tooltip-size-width);padding:var(--bm-comp-tooltip-space-y) var(--bm-comp-tooltip-space-x);color:var(--bm-comp-tooltip-color-text);font:var(--bm-comp-tooltip-typo-body);offset:var(--bm-comp-tooltip-space-offset);transition-property:opacity}.bm-tooltip[data-status=open]{transition-duration:0s}.bm-tooltip[data-status=close]{transition-duration:.2s}.bm-tooltip[data-status=initial],.bm-tooltip[data-status=close]{opacity:0}.bm-tooltip__arrow{offset:var(--bm-comp-tooltip-space-arrow);-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');mask-size:cover;mask-position:center;mask-repeat:no-repeat;scale:1.05;width:var(--bm-comp-tooltip-size-arrow-width);height:var(--bm-comp-tooltip-size-arrow-height);background-color:var(--bm-comp-tooltip-color-bg)}.bm-tooltip__icon-trigger svg{background:none;border:none}.bm-tooltip__icon-trigger:focus-visible{border-radius:var(--bm-sem-radius-round);outline-offset:0px;outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-tooltip__icon-trigger--disabled{opacity:var(--bm-sem-opacity-disabled);cursor:inherit}.bm-tooltip__icon-trigger--xs{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--xs svg{height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--sm{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--sm svg{height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--md{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--md svg{height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--lg{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--lg svg{height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--xl{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}.bm-tooltip__icon-trigger--xl svg{height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}`, te = ["top", "right", "bottom", "left"], Ht = ["start", "end"], Ft = /* @__PURE__ */ te.reduce((e, t) => e.concat(t, t + "-" + Ht[0], t + "-" + Ht[1]), []), q = Math.min, L = Math.max, ft = Math.round, at = Math.floor, W = (e) => ({
11
11
  x: e,
12
12
  y: e
13
- }), Pe = {
13
+ }), Ee = {
14
14
  left: "right",
15
15
  right: "left",
16
16
  bottom: "top",
17
17
  top: "bottom"
18
- }, _e = {
18
+ }, Pe = {
19
19
  start: "end",
20
20
  end: "start"
21
21
  };
@@ -54,7 +54,7 @@ function Re(e) {
54
54
  return [pt(e), t, pt(t)];
55
55
  }
56
56
  function pt(e) {
57
- return e.replace(/start|end/g, (t) => _e[t]);
57
+ return e.replace(/start|end/g, (t) => Pe[t]);
58
58
  }
59
59
  function Se(e, t, i) {
60
60
  const n = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
@@ -75,7 +75,7 @@ function Le(e, t, i, n) {
75
75
  return o && (r = r.map((s) => s + "-" + o), t && (r = r.concat(r.map(pt)))), r;
76
76
  }
77
77
  function st(e) {
78
- return e.replace(/left|right|bottom|top/g, (t) => Pe[t]);
78
+ return e.replace(/left|right|bottom|top/g, (t) => Ee[t]);
79
79
  }
80
80
  function ze(e) {
81
81
  return {
@@ -117,9 +117,9 @@ function Mt(e, t, i) {
117
117
  reference: n,
118
118
  floating: o
119
119
  } = e;
120
- const r = Q(t), s = At(t), l = Ot(s), c = $(t), a = r === "y", f = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, d = n[l] / 2 - o[l] / 2;
120
+ const r = Q(t), s = At(t), l = Ot(s), a = $(t), c = r === "y", f = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, d = n[l] / 2 - o[l] / 2;
121
121
  let m;
122
- switch (c) {
122
+ switch (a) {
123
123
  case "top":
124
124
  m = {
125
125
  x: f,
@@ -152,29 +152,29 @@ function Mt(e, t, i) {
152
152
  }
153
153
  switch (H(t)) {
154
154
  case "start":
155
- m[s] -= d * (i && a ? -1 : 1);
155
+ m[s] -= d * (i && c ? -1 : 1);
156
156
  break;
157
157
  case "end":
158
- m[s] += d * (i && a ? -1 : 1);
158
+ m[s] += d * (i && c ? -1 : 1);
159
159
  break;
160
160
  }
161
161
  return m;
162
162
  }
163
- const De = async (e, t, i) => {
163
+ const ke = async (e, t, i) => {
164
164
  const {
165
165
  placement: n = "bottom",
166
166
  strategy: o = "absolute",
167
167
  middleware: r = [],
168
168
  platform: s
169
- } = i, l = r.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
170
- let a = await s.getElementRects({
169
+ } = i, l = r.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
170
+ let c = await s.getElementRects({
171
171
  reference: e,
172
172
  floating: t,
173
173
  strategy: o
174
174
  }), {
175
175
  x: f,
176
176
  y: p
177
- } = Mt(a, n, c), d = n, m = {}, b = 0;
177
+ } = Mt(c, n, a), d = n, m = {}, b = 0;
178
178
  for (let g = 0; g < l.length; g++) {
179
179
  const {
180
180
  name: h,
@@ -191,7 +191,7 @@ const De = async (e, t, i) => {
191
191
  placement: d,
192
192
  strategy: o,
193
193
  middlewareData: m,
194
- rects: a,
194
+ rects: c,
195
195
  platform: s,
196
196
  elements: {
197
197
  reference: e,
@@ -204,14 +204,14 @@ const De = async (e, t, i) => {
204
204
  ...m[h],
205
205
  ...O
206
206
  }
207
- }, x && b <= 50 && (b++, typeof x == "object" && (x.placement && (d = x.placement), x.rects && (a = x.rects === !0 ? await s.getElementRects({
207
+ }, x && b <= 50 && (b++, typeof x == "object" && (x.placement && (d = x.placement), x.rects && (c = x.rects === !0 ? await s.getElementRects({
208
208
  reference: e,
209
209
  floating: t,
210
210
  strategy: o
211
211
  }) : x.rects), {
212
212
  x: f,
213
213
  y: p
214
- } = Mt(a, d, c)), g = -1);
214
+ } = Mt(c, d, a)), g = -1);
215
215
  }
216
216
  return {
217
217
  x: f,
@@ -230,18 +230,18 @@ async function ot(e, t) {
230
230
  platform: r,
231
231
  rects: s,
232
232
  elements: l,
233
- strategy: c
233
+ strategy: a
234
234
  } = e, {
235
- boundary: a = "clippingAncestors",
235
+ boundary: c = "clippingAncestors",
236
236
  rootBoundary: f = "viewport",
237
237
  elementContext: p = "floating",
238
238
  altBoundary: d = !1,
239
239
  padding: m = 0
240
240
  } = Z(t, e), b = oe(m), h = l[d ? p === "floating" ? "reference" : "floating" : p], u = mt(await r.getClippingRect({
241
241
  element: (i = await (r.isElement == null ? void 0 : r.isElement(h))) == null || i ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
242
- boundary: a,
242
+ boundary: c,
243
243
  rootBoundary: f,
244
- strategy: c
244
+ strategy: a
245
245
  })), y = p === "floating" ? {
246
246
  x: n,
247
247
  y: o,
@@ -257,7 +257,7 @@ async function ot(e, t) {
257
257
  elements: l,
258
258
  rect: y,
259
259
  offsetParent: w,
260
- strategy: c
260
+ strategy: a
261
261
  }) : y);
262
262
  return {
263
263
  top: (u.top - x.top + b.top) / O.y,
@@ -266,7 +266,7 @@ async function ot(e, t) {
266
266
  right: (x.right - u.right + b.right) / O.x
267
267
  };
268
268
  }
269
- function ke(e, t, i) {
269
+ function De(e, t, i) {
270
270
  return (e ? [...i.filter((o) => H(o) === e), ...i.filter((o) => H(o) !== e)] : i.filter((o) => $(o) === o)).filter((o) => e ? H(o) === e || (t ? pt(o) !== o : !1) : !0);
271
271
  }
272
272
  const Te = function(e) {
@@ -279,18 +279,18 @@ const Te = function(e) {
279
279
  rects: r,
280
280
  middlewareData: s,
281
281
  placement: l,
282
- platform: c,
283
- elements: a
282
+ platform: a,
283
+ elements: c
284
284
  } = t, {
285
285
  crossAxis: f = !1,
286
286
  alignment: p,
287
287
  allowedPlacements: d = Ft,
288
288
  autoAlignment: m = !0,
289
289
  ...b
290
- } = Z(e, t), g = p !== void 0 || d === Ft ? ke(p || null, m, d) : d, h = await ot(t, b), u = ((i = s.autoPlacement) == null ? void 0 : i.index) || 0, y = g[u];
290
+ } = Z(e, t), g = p !== void 0 || d === Ft ? De(p || null, m, d) : d, h = await ot(t, b), u = ((i = s.autoPlacement) == null ? void 0 : i.index) || 0, y = g[u];
291
291
  if (y == null)
292
292
  return {};
293
- const w = ee(y, r, await (c.isRTL == null ? void 0 : c.isRTL(a.floating)));
293
+ const w = ee(y, r, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
294
294
  if (l !== y)
295
295
  return {
296
296
  reset: {
@@ -300,18 +300,18 @@ const Te = function(e) {
300
300
  const O = [h[$(y)], h[w[0]], h[w[1]]], x = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
301
301
  placement: y,
302
302
  overflows: O
303
- }], D = g[u + 1];
304
- if (D)
303
+ }], k = g[u + 1];
304
+ if (k)
305
305
  return {
306
306
  data: {
307
307
  index: u + 1,
308
308
  overflows: x
309
309
  },
310
310
  reset: {
311
- placement: D
311
+ placement: k
312
312
  }
313
313
  };
314
- const P = x.map((C) => {
314
+ const E = x.map((C) => {
315
315
  const S = H(C.placement);
316
316
  return [C.placement, S && f ? (
317
317
  // Check along the mainAxis and main crossAxis side.
@@ -320,19 +320,19 @@ const Te = function(e) {
320
320
  // Check only the mainAxis.
321
321
  C.overflows[0]
322
322
  ), C.overflows];
323
- }).sort((C, S) => C[1] - S[1]), k = ((o = P.filter((C) => C[2].slice(
323
+ }).sort((C, S) => C[1] - S[1]), D = ((o = E.filter((C) => C[2].slice(
324
324
  0,
325
325
  // Aligned placements should not check their opposite crossAxis
326
326
  // side.
327
327
  H(C[0]) ? 2 : 3
328
- ).every((S) => S <= 0))[0]) == null ? void 0 : o[0]) || P[0][0];
329
- return k !== l ? {
328
+ ).every((S) => S <= 0))[0]) == null ? void 0 : o[0]) || E[0][0];
329
+ return D !== l ? {
330
330
  data: {
331
331
  index: u + 1,
332
332
  overflows: x
333
333
  },
334
334
  reset: {
335
- placement: k
335
+ placement: D
336
336
  }
337
337
  } : {};
338
338
  }
@@ -348,8 +348,8 @@ const Te = function(e) {
348
348
  middlewareData: r,
349
349
  rects: s,
350
350
  initialPlacement: l,
351
- platform: c,
352
- elements: a
351
+ platform: a,
352
+ elements: c
353
353
  } = t, {
354
354
  mainAxis: f = !0,
355
355
  crossAxis: p = !0,
@@ -361,20 +361,20 @@ const Te = function(e) {
361
361
  } = Z(e, t);
362
362
  if ((i = r.arrow) != null && i.alignmentOffset)
363
363
  return {};
364
- const u = $(o), y = Q(l), w = $(l) === l, O = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), x = d || (w || !g ? [st(l)] : Re(l)), D = b !== "none";
365
- !d && D && x.push(...Le(l, g, b, O));
366
- const P = [l, ...x], R = await ot(t, h), k = [];
364
+ const u = $(o), y = Q(l), w = $(l) === l, O = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (w || !g ? [st(l)] : Re(l)), k = b !== "none";
365
+ !d && k && x.push(...Le(l, g, b, O));
366
+ const E = [l, ...x], R = await ot(t, h), D = [];
367
367
  let C = ((n = r.flip) == null ? void 0 : n.overflows) || [];
368
- if (f && k.push(R[u]), p) {
368
+ if (f && D.push(R[u]), p) {
369
369
  const I = ee(o, s, O);
370
- k.push(R[I[0]], R[I[1]]);
370
+ D.push(R[I[0]], R[I[1]]);
371
371
  }
372
372
  if (C = [...C, {
373
373
  placement: o,
374
- overflows: k
375
- }], !k.every((I) => I <= 0)) {
374
+ overflows: D
375
+ }], !D.every((I) => I <= 0)) {
376
376
  var S, j;
377
- const I = (((S = r.flip) == null ? void 0 : S.index) || 0) + 1, Y = P[I];
377
+ const I = (((S = r.flip) == null ? void 0 : S.index) || 0) + 1, Y = E[I];
378
378
  if (Y)
379
379
  return {
380
380
  data: {
@@ -391,7 +391,7 @@ const Te = function(e) {
391
391
  case "bestFit": {
392
392
  var T;
393
393
  const K = (T = C.filter((N) => {
394
- if (D) {
394
+ if (k) {
395
395
  const B = Q(N.placement);
396
396
  return B === y || // Create a bias to the `y` side axis due to horizontal
397
397
  // reading directions favoring greater width.
@@ -475,7 +475,7 @@ async function He(e, t) {
475
475
  placement: i,
476
476
  platform: n,
477
477
  elements: o
478
- } = e, r = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = $(i), l = H(i), c = Q(i) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, p = Z(t, e);
478
+ } = e, r = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = $(i), l = H(i), a = Q(i) === "y", c = ["left", "top"].includes(s) ? -1 : 1, f = r && a ? -1 : 1, p = Z(t, e);
479
479
  let {
480
480
  mainAxis: d,
481
481
  crossAxis: m,
@@ -489,11 +489,11 @@ async function He(e, t) {
489
489
  crossAxis: p.crossAxis || 0,
490
490
  alignmentAxis: p.alignmentAxis
491
491
  };
492
- return l && typeof b == "number" && (m = l === "end" ? b * -1 : b), c ? {
492
+ return l && typeof b == "number" && (m = l === "end" ? b * -1 : b), a ? {
493
493
  x: m * f,
494
- y: d * a
494
+ y: d * c
495
495
  } : {
496
- x: d * a,
496
+ x: d * c,
497
497
  y: m * f
498
498
  };
499
499
  }
@@ -508,12 +508,12 @@ const Fe = function(e) {
508
508
  y: r,
509
509
  placement: s,
510
510
  middlewareData: l
511
- } = t, c = await He(t, e);
511
+ } = t, a = await He(t, e);
512
512
  return s === ((i = l.offset) == null ? void 0 : i.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
513
- x: o + c.x,
514
- y: r + c.y,
513
+ x: o + a.x,
514
+ y: r + a.y,
515
515
  data: {
516
- ...c,
516
+ ...a,
517
517
  placement: s
518
518
  }
519
519
  };
@@ -543,12 +543,12 @@ const Fe = function(e) {
543
543
  };
544
544
  }
545
545
  },
546
- ...c
547
- } = Z(e, t), a = {
546
+ ...a
547
+ } = Z(e, t), c = {
548
548
  x: i,
549
549
  y: n
550
- }, f = await ot(t, c), p = Q($(o)), d = Ct(p);
551
- let m = a[d], b = a[p];
550
+ }, f = await ot(t, a), p = Q($(o)), d = Ct(p);
551
+ let m = c[d], b = c[p];
552
552
  if (r) {
553
553
  const h = d === "y" ? "top" : "left", u = d === "y" ? "bottom" : "right", y = m + f[h], w = m - f[u];
554
554
  m = yt(y, m, w);
@@ -587,28 +587,28 @@ const Fe = function(e) {
587
587
  platform: s,
588
588
  elements: l
589
589
  } = t, {
590
- apply: c = () => {
590
+ apply: a = () => {
591
591
  },
592
- ...a
593
- } = Z(e, t), f = await ot(t, a), p = $(o), d = H(o), m = Q(o) === "y", {
592
+ ...c
593
+ } = Z(e, t), f = await ot(t, c), p = $(o), d = H(o), m = Q(o) === "y", {
594
594
  width: b,
595
595
  height: g
596
596
  } = r.floating;
597
597
  let h, u;
598
598
  p === "top" || p === "bottom" ? (h = p, u = d === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (u = p, h = d === "end" ? "top" : "bottom");
599
- const y = g - f.top - f.bottom, w = b - f.left - f.right, O = q(g - f[h], y), x = q(b - f[u], w), D = !t.middlewareData.shift;
600
- let P = O, R = x;
601
- if ((i = t.middlewareData.shift) != null && i.enabled.x && (R = w), (n = t.middlewareData.shift) != null && n.enabled.y && (P = y), D && !d) {
599
+ const y = g - f.top - f.bottom, w = b - f.left - f.right, O = q(g - f[h], y), x = q(b - f[u], w), k = !t.middlewareData.shift;
600
+ let E = O, R = x;
601
+ if ((i = t.middlewareData.shift) != null && i.enabled.x && (R = w), (n = t.middlewareData.shift) != null && n.enabled.y && (E = y), k && !d) {
602
602
  const C = L(f.left, 0), S = L(f.right, 0), j = L(f.top, 0), T = L(f.bottom, 0);
603
- m ? R = b - 2 * (C !== 0 || S !== 0 ? C + S : L(f.left, f.right)) : P = g - 2 * (j !== 0 || T !== 0 ? j + T : L(f.top, f.bottom));
603
+ m ? R = b - 2 * (C !== 0 || S !== 0 ? C + S : L(f.left, f.right)) : E = g - 2 * (j !== 0 || T !== 0 ? j + T : L(f.top, f.bottom));
604
604
  }
605
- await c({
605
+ await a({
606
606
  ...t,
607
607
  availableWidth: R,
608
- availableHeight: P
608
+ availableHeight: E
609
609
  });
610
- const k = await s.getDimensions(l.floating);
611
- return b !== k.width || g !== k.height ? {
610
+ const D = await s.getDimensions(l.floating);
611
+ return b !== D.width || g !== D.height ? {
612
612
  reset: {
613
613
  rects: !0
614
614
  }
@@ -663,14 +663,14 @@ function ut(e) {
663
663
  }
664
664
  });
665
665
  }
666
- function Et(e) {
667
- const t = Pt(), i = F(e) ? M(e) : e;
666
+ function _t(e) {
667
+ const t = Et(), i = F(e) ? M(e) : e;
668
668
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => i[n] ? i[n] !== "none" : !1) || (i.containerType ? i.containerType !== "normal" : !1) || !t && (i.backdropFilter ? i.backdropFilter !== "none" : !1) || !t && (i.filter ? i.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (i.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (i.contain || "").includes(n));
669
669
  }
670
670
  function Ne(e) {
671
671
  let t = G(e);
672
672
  for (; V(t) && !it(t); ) {
673
- if (Et(t))
673
+ if (_t(t))
674
674
  return t;
675
675
  if (ut(t))
676
676
  return null;
@@ -678,7 +678,7 @@ function Ne(e) {
678
678
  }
679
679
  return null;
680
680
  }
681
- function Pt() {
681
+ function Et() {
682
682
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
683
683
  }
684
684
  function it(e) {
@@ -735,11 +735,11 @@ function se(e) {
735
735
  $: l
736
736
  };
737
737
  }
738
- function _t(e) {
738
+ function Pt(e) {
739
739
  return F(e) ? e : e.contextElement;
740
740
  }
741
741
  function et(e) {
742
- const t = _t(e);
742
+ const t = Pt(e);
743
743
  if (!V(t))
744
744
  return W(1);
745
745
  const i = t.getBoundingClientRect(), {
@@ -756,7 +756,7 @@ function et(e) {
756
756
  const We = /* @__PURE__ */ W(0);
757
757
  function re(e) {
758
758
  const t = z(e);
759
- return !Pt() || !t.visualViewport ? We : {
759
+ return !Et() || !t.visualViewport ? We : {
760
760
  x: t.visualViewport.offsetLeft,
761
761
  y: t.visualViewport.offsetTop
762
762
  };
@@ -766,24 +766,24 @@ function Ve(e, t, i) {
766
766
  }
767
767
  function tt(e, t, i, n) {
768
768
  t === void 0 && (t = !1), i === void 0 && (i = !1);
769
- const o = e.getBoundingClientRect(), r = _t(e);
769
+ const o = e.getBoundingClientRect(), r = Pt(e);
770
770
  let s = W(1);
771
771
  t && (n ? F(n) && (s = et(n)) : s = et(e));
772
772
  const l = Ve(r, i, n) ? re(r) : W(0);
773
- let c = (o.left + l.x) / s.x, a = (o.top + l.y) / s.y, f = o.width / s.x, p = o.height / s.y;
773
+ let a = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, f = o.width / s.x, p = o.height / s.y;
774
774
  if (r) {
775
775
  const d = z(r), m = n && F(n) ? z(n) : n;
776
776
  let b = d, g = wt(b);
777
777
  for (; g && n && m !== b; ) {
778
778
  const h = et(g), u = g.getBoundingClientRect(), y = M(g), w = u.left + (g.clientLeft + parseFloat(y.paddingLeft)) * h.x, O = u.top + (g.clientTop + parseFloat(y.paddingTop)) * h.y;
779
- c *= h.x, a *= h.y, f *= h.x, p *= h.y, c += w, a += O, b = z(g), g = wt(b);
779
+ a *= h.x, c *= h.y, f *= h.x, p *= h.y, a += w, c += O, b = z(g), g = wt(b);
780
780
  }
781
781
  }
782
782
  return mt({
783
783
  width: f,
784
784
  height: p,
785
- x: c,
786
- y: a
785
+ x: a,
786
+ y: c
787
787
  });
788
788
  }
789
789
  function Rt(e, t) {
@@ -811,21 +811,21 @@ function Ue(e) {
811
811
  const r = o === "fixed", s = U(n), l = t ? ut(t.floating) : !1;
812
812
  if (n === s || l && r)
813
813
  return i;
814
- let c = {
814
+ let a = {
815
815
  scrollLeft: 0,
816
816
  scrollTop: 0
817
- }, a = W(1);
817
+ }, c = W(1);
818
818
  const f = W(0), p = V(n);
819
- if ((p || !p && !r) && ((nt(n) !== "body" || lt(s)) && (c = ht(n)), V(n))) {
819
+ if ((p || !p && !r) && ((nt(n) !== "body" || lt(s)) && (a = ht(n)), V(n))) {
820
820
  const m = tt(n);
821
- a = et(n), f.x = m.x + n.clientLeft, f.y = m.y + n.clientTop;
821
+ c = et(n), f.x = m.x + n.clientLeft, f.y = m.y + n.clientTop;
822
822
  }
823
- const d = s && !p && !r ? le(s, c, !0) : W(0);
823
+ const d = s && !p && !r ? le(s, a, !0) : W(0);
824
824
  return {
825
- width: i.width * a.x,
826
- height: i.height * a.y,
827
- x: i.x * a.x - c.scrollLeft * a.x + f.x + d.x,
828
- y: i.y * a.y - c.scrollTop * a.y + f.y + d.y
825
+ width: i.width * c.x,
826
+ height: i.height * c.y,
827
+ x: i.x * c.x - a.scrollLeft * c.x + f.x + d.x,
828
+ y: i.y * c.y - a.scrollTop * c.y + f.y + d.y
829
829
  };
830
830
  }
831
831
  function Ye(e) {
@@ -844,26 +844,26 @@ function Ke(e) {
844
844
  }
845
845
  function Xe(e, t) {
846
846
  const i = z(e), n = U(e), o = i.visualViewport;
847
- let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
847
+ let r = n.clientWidth, s = n.clientHeight, l = 0, a = 0;
848
848
  if (o) {
849
849
  r = o.width, s = o.height;
850
- const a = Pt();
851
- (!a || a && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
850
+ const c = Et();
851
+ (!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
852
852
  }
853
853
  return {
854
854
  width: r,
855
855
  height: s,
856
856
  x: l,
857
- y: c
857
+ y: a
858
858
  };
859
859
  }
860
860
  function qe(e, t) {
861
- const i = tt(e, !0, t === "fixed"), n = i.top + e.clientTop, o = i.left + e.clientLeft, r = V(e) ? et(e) : W(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, c = o * r.x, a = n * r.y;
861
+ const i = tt(e, !0, t === "fixed"), n = i.top + e.clientTop, o = i.left + e.clientLeft, r = V(e) ? et(e) : W(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, a = o * r.x, c = n * r.y;
862
862
  return {
863
863
  width: s,
864
864
  height: l,
865
- x: c,
866
- y: a
865
+ x: a,
866
+ y: c
867
867
  };
868
868
  }
869
869
  function Wt(e, t, i) {
@@ -885,9 +885,9 @@ function Wt(e, t, i) {
885
885
  }
886
886
  return mt(n);
887
887
  }
888
- function ce(e, t) {
888
+ function ae(e, t) {
889
889
  const i = G(e);
890
- return i === t || !F(i) || it(i) ? !1 : M(i).position === "fixed" || ce(i, t);
890
+ return i === t || !F(i) || it(i) ? !1 : M(i).position === "fixed" || ae(i, t);
891
891
  }
892
892
  function Ge(e, t) {
893
893
  const i = t.get(e);
@@ -897,8 +897,8 @@ function Ge(e, t) {
897
897
  const r = M(e).position === "fixed";
898
898
  let s = r ? G(e) : e;
899
899
  for (; F(s) && !it(s); ) {
900
- const l = M(s), c = Et(s);
901
- !c && l.position === "fixed" && (o = null), (r ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(s) && !c && ce(e, s)) ? n = n.filter((f) => f !== s) : o = l, s = G(s);
900
+ const l = M(s), a = _t(s);
901
+ !a && l.position === "fixed" && (o = null), (r ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(s) && !a && ae(e, s)) ? n = n.filter((f) => f !== s) : o = l, s = G(s);
902
902
  }
903
903
  return t.set(e, n), n;
904
904
  }
@@ -909,15 +909,15 @@ function Ze(e) {
909
909
  rootBoundary: n,
910
910
  strategy: o
911
911
  } = e;
912
- const s = [...i === "clippingAncestors" ? ut(t) ? [] : Ge(t, this._c) : [].concat(i), n], l = s[0], c = s.reduce((a, f) => {
912
+ const s = [...i === "clippingAncestors" ? ut(t) ? [] : Ge(t, this._c) : [].concat(i), n], l = s[0], a = s.reduce((c, f) => {
913
913
  const p = Wt(t, f, o);
914
- return a.top = L(p.top, a.top), a.right = q(p.right, a.right), a.bottom = q(p.bottom, a.bottom), a.left = L(p.left, a.left), a;
914
+ return c.top = L(p.top, c.top), c.right = q(p.right, c.right), c.bottom = q(p.bottom, c.bottom), c.left = L(p.left, c.left), c;
915
915
  }, Wt(t, l, o));
916
916
  return {
917
- width: c.right - c.left,
918
- height: c.bottom - c.top,
919
- x: c.left,
920
- y: c.top
917
+ width: a.right - a.left,
918
+ height: a.bottom - a.top,
919
+ x: a.left,
920
+ y: a.top
921
921
  };
922
922
  }
923
923
  function Je(e) {
@@ -936,13 +936,13 @@ function Qe(e, t, i) {
936
936
  scrollLeft: 0,
937
937
  scrollTop: 0
938
938
  };
939
- const c = W(0);
939
+ const a = W(0);
940
940
  if (n || !n && !r)
941
941
  if ((nt(t) !== "body" || lt(o)) && (l = ht(t)), n) {
942
942
  const d = tt(t, !0, r, t);
943
- c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
944
- } else o && (c.x = Rt(o));
945
- const a = o && !n && !r ? le(o, l) : W(0), f = s.left + l.scrollLeft - c.x - a.x, p = s.top + l.scrollTop - c.y - a.y;
943
+ a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
944
+ } else o && (a.x = Rt(o));
945
+ const c = o && !n && !r ? le(o, l) : W(0), f = s.left + l.scrollLeft - a.x - c.x, p = s.top + l.scrollTop - a.y - c.y;
946
946
  return {
947
947
  x: f,
948
948
  y: p,
@@ -961,7 +961,7 @@ function Vt(e, t) {
961
961
  let i = e.offsetParent;
962
962
  return U(e) === i && (i = i.ownerDocument.body), i;
963
963
  }
964
- function ae(e, t) {
964
+ function ce(e, t) {
965
965
  const i = z(e);
966
966
  if (ut(e))
967
967
  return i;
@@ -977,10 +977,10 @@ function ae(e, t) {
977
977
  let n = Vt(e, t);
978
978
  for (; n && Ie(n) && bt(n); )
979
979
  n = Vt(n, t);
980
- return n && it(n) && bt(n) && !Et(n) ? i : n || Ne(e) || i;
980
+ return n && it(n) && bt(n) && !_t(n) ? i : n || Ne(e) || i;
981
981
  }
982
982
  const to = async function(e) {
983
- const t = this.getOffsetParent || ae, i = this.getDimensions, n = await i(e.floating);
983
+ const t = this.getOffsetParent || ce, i = this.getDimensions, n = await i(e.floating);
984
984
  return {
985
985
  reference: Qe(e.reference, await t(e.floating), e.strategy),
986
986
  floating: {
@@ -998,7 +998,7 @@ const oo = {
998
998
  convertOffsetParentRelativeRectToViewportRelativeRect: Ue,
999
999
  getDocumentElement: U,
1000
1000
  getClippingRect: Ze,
1001
- getOffsetParent: ae,
1001
+ getOffsetParent: ce,
1002
1002
  getElementRects: to,
1003
1003
  getClientRects: Ye,
1004
1004
  getDimensions: Je,
@@ -1016,31 +1016,31 @@ function io(e, t) {
1016
1016
  var l;
1017
1017
  clearTimeout(n), (l = i) == null || l.disconnect(), i = null;
1018
1018
  }
1019
- function s(l, c) {
1020
- l === void 0 && (l = !1), c === void 0 && (c = 1), r();
1021
- const a = e.getBoundingClientRect(), {
1019
+ function s(l, a) {
1020
+ l === void 0 && (l = !1), a === void 0 && (a = 1), r();
1021
+ const c = e.getBoundingClientRect(), {
1022
1022
  left: f,
1023
1023
  top: p,
1024
1024
  width: d,
1025
1025
  height: m
1026
- } = a;
1026
+ } = c;
1027
1027
  if (l || t(), !d || !m)
1028
1028
  return;
1029
- const b = ct(p), g = ct(o.clientWidth - (f + d)), h = ct(o.clientHeight - (p + m)), u = ct(f), w = {
1029
+ const b = at(p), g = at(o.clientWidth - (f + d)), h = at(o.clientHeight - (p + m)), u = at(f), w = {
1030
1030
  rootMargin: -b + "px " + -g + "px " + -h + "px " + -u + "px",
1031
- threshold: L(0, q(1, c)) || 1
1031
+ threshold: L(0, q(1, a)) || 1
1032
1032
  };
1033
1033
  let O = !0;
1034
- function x(D) {
1035
- const P = D[0].intersectionRatio;
1036
- if (P !== c) {
1034
+ function x(k) {
1035
+ const E = k[0].intersectionRatio;
1036
+ if (E !== a) {
1037
1037
  if (!O)
1038
1038
  return s();
1039
- P ? s(!1, P) : n = setTimeout(() => {
1039
+ E ? s(!1, E) : n = setTimeout(() => {
1040
1040
  s(!1, 1e-7);
1041
1041
  }, 1e3);
1042
1042
  }
1043
- P === 1 && !fe(a, e.getBoundingClientRect()) && s(), O = !1;
1043
+ E === 1 && !fe(c, e.getBoundingClientRect()) && s(), O = !1;
1044
1044
  }
1045
1045
  try {
1046
1046
  i = new IntersectionObserver(x, {
@@ -1062,24 +1062,24 @@ function no(e, t, i, n) {
1062
1062
  ancestorResize: r = !0,
1063
1063
  elementResize: s = typeof ResizeObserver == "function",
1064
1064
  layoutShift: l = typeof IntersectionObserver == "function",
1065
- animationFrame: c = !1
1066
- } = n, a = _t(e), f = o || r ? [...a ? rt(a) : [], ...rt(t)] : [];
1065
+ animationFrame: a = !1
1066
+ } = n, c = Pt(e), f = o || r ? [...c ? rt(c) : [], ...rt(t)] : [];
1067
1067
  f.forEach((u) => {
1068
1068
  o && u.addEventListener("scroll", i, {
1069
1069
  passive: !0
1070
1070
  }), r && u.addEventListener("resize", i);
1071
1071
  });
1072
- const p = a && l ? io(a, i) : null;
1072
+ const p = c && l ? io(c, i) : null;
1073
1073
  let d = -1, m = null;
1074
1074
  s && (m = new ResizeObserver((u) => {
1075
1075
  let [y] = u;
1076
- y && y.target === a && m && (m.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1076
+ y && y.target === c && m && (m.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1077
1077
  var w;
1078
1078
  (w = m) == null || w.observe(t);
1079
1079
  })), i();
1080
- }), a && !c && m.observe(a), m.observe(t));
1081
- let b, g = c ? tt(e) : null;
1082
- c && h();
1080
+ }), c && !a && m.observe(c), m.observe(t));
1081
+ let b, g = a ? tt(e) : null;
1082
+ a && h();
1083
1083
  function h() {
1084
1084
  const u = tt(e);
1085
1085
  g && !fe(g, u) && i(), g = u, b = requestAnimationFrame(h);
@@ -1088,10 +1088,10 @@ function no(e, t, i, n) {
1088
1088
  var u;
1089
1089
  f.forEach((y) => {
1090
1090
  o && y.removeEventListener("scroll", i), r && y.removeEventListener("resize", i);
1091
- }), p == null || p(), (u = m) == null || u.disconnect(), m = null, c && cancelAnimationFrame(b);
1091
+ }), p == null || p(), (u = m) == null || u.disconnect(), m = null, a && cancelAnimationFrame(b);
1092
1092
  };
1093
1093
  }
1094
- const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1094
+ const so = Fe, ro = Te, lo = Me, ao = $e, co = je, fo = Be, po = (e, t, i) => {
1095
1095
  const n = /* @__PURE__ */ new Map(), o = {
1096
1096
  platform: oo,
1097
1097
  ...i
@@ -1099,7 +1099,7 @@ const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1099
1099
  ...o.platform,
1100
1100
  _c: n
1101
1101
  };
1102
- return De(e, t, {
1102
+ return ke(e, t, {
1103
1103
  ...o,
1104
1104
  platform: r
1105
1105
  });
@@ -1113,13 +1113,13 @@ const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1113
1113
  options: e,
1114
1114
  async fn(t) {
1115
1115
  var St, Lt;
1116
- const { x: i, y: n, placement: o, rects: r, platform: s, elements: l, middlewareData: c } = t, { element: a, padding: f = 0 } = Z(e, t) || {};
1117
- if (a == null)
1116
+ const { x: i, y: n, placement: o, rects: r, platform: s, elements: l, middlewareData: a } = t, { element: c, padding: f = 0 } = Z(e, t) || {};
1117
+ if (c == null)
1118
1118
  return {};
1119
- const p = oe(f), d = { x: i, y: n }, m = At(o), b = Ct(m), g = Ot(m), h = await s.getDimensions(a), u = m === "y", y = u ? "top" : "left", w = u ? "bottom" : "right", O = u ? "clientHeight" : "clientWidth", x = r.reference[g] + r.reference[m] - d[m] - r.floating[g], D = d[m] - r.reference[m], P = await ((St = s.getOffsetParent) == null ? void 0 : St.call(s, a));
1120
- let R = P ? P[O] : 0;
1121
- (!R || !await ((Lt = s.isElement) == null ? void 0 : Lt.call(s, P))) && (R = l.floating[O] || r.floating[g]);
1122
- const k = x / 2 - D / 2, C = R / 2 - h.width / 2 - 1, S = q(p[y], C), j = q(p[w], C), T = S, I = R - h.width - j, Y = R / 2 - h.width / 2 + k, X = yt(T, Y, I), K = !c.arrow && H(o) != null && Y !== X && r.reference[g] / 2 - (Y < T ? S : j) - h.width / 2 < 0, N = K ? Y < T ? Y - T : Y - I : 0, B = $(o), gt = ["top", "left"].includes(B) ? -1 : 1, de = h.height * gt, ue = bo({
1119
+ const p = oe(f), d = { x: i, y: n }, m = At(o), b = Ct(m), g = Ot(m), h = await s.getDimensions(c), u = m === "y", y = u ? "top" : "left", w = u ? "bottom" : "right", O = u ? "clientHeight" : "clientWidth", x = r.reference[g] + r.reference[m] - d[m] - r.floating[g], k = d[m] - r.reference[m], E = await ((St = s.getOffsetParent) == null ? void 0 : St.call(s, c));
1120
+ let R = E ? E[O] : 0;
1121
+ (!R || !await ((Lt = s.isElement) == null ? void 0 : Lt.call(s, E))) && (R = l.floating[O] || r.floating[g]);
1122
+ const D = x / 2 - k / 2, C = R / 2 - h.width / 2 - 1, S = q(p[y], C), j = q(p[w], C), T = S, I = R - h.width - j, Y = R / 2 - h.width / 2 + D, X = yt(T, Y, I), K = !a.arrow && H(o) != null && Y !== X && r.reference[g] / 2 - (Y < T ? S : j) - h.width / 2 < 0, N = K ? Y < T ? Y - T : Y - I : 0, B = $(o), gt = ["top", "left"].includes(B) ? -1 : 1, de = h.height * gt, ue = bo({
1123
1123
  placement: B,
1124
1124
  arrowHeight: h.height,
1125
1125
  arrowWidth: h.width,
@@ -1136,7 +1136,7 @@ const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1136
1136
  reset: K
1137
1137
  };
1138
1138
  }
1139
- }), at = (e, t, i, n) => {
1139
+ }), ct = (e, t, i, n) => {
1140
1140
  if (n) {
1141
1141
  const o = n === !0 ? i() : i(n);
1142
1142
  e[t](o);
@@ -1153,23 +1153,23 @@ const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1153
1153
  if (typeof t.overrides != "object") {
1154
1154
  s.push(so(i));
1155
1155
  let l = t.flip ?? !0;
1156
- if (t.autoPlacement && (l = !1), at(
1156
+ if (t.autoPlacement && (l = !1), ct(
1157
1157
  s,
1158
1158
  "unshift",
1159
1159
  ro,
1160
1160
  t.autoPlacement
1161
- ), at(s, "unshift", co, l), t.size) {
1162
- const c = t.size === !0 ? {
1161
+ ), ct(s, "unshift", ao, l), t.size) {
1162
+ const a = t.size === !0 ? {
1163
1163
  padding: mo,
1164
- apply({ availableHeight: a, elements: f }) {
1164
+ apply({ availableHeight: c, elements: f }) {
1165
1165
  Object.assign(f.floating.style, {
1166
- maxHeight: `${a}px`
1166
+ maxHeight: `${c}px`
1167
1167
  });
1168
1168
  }
1169
1169
  } : t.size;
1170
- s.push(ao(c));
1170
+ s.push(co(a));
1171
1171
  }
1172
- at(s, "push", lo, t.shift ?? !0), at(s, "push", fo, t.hide ?? !0);
1172
+ ct(s, "push", lo, t.shift ?? !0), ct(s, "push", fo, t.hide ?? !0);
1173
1173
  } else
1174
1174
  s.push(...t.overrides);
1175
1175
  return n.hide || s.push(ho(n.options)), typeof t.overrides == "function" && (s = t.overrides(s)), r.middleware = s, r;
@@ -1208,7 +1208,7 @@ const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1208
1208
  */
1209
1209
  left: `rotate(-90deg) translateX(${-s}px)`,
1210
1210
  right: `rotate(90deg) translateX(${s}px)`
1211
- }[r], c = -i / 2 - t, a = {
1211
+ }[r], a = -i / 2 - t, c = {
1212
1212
  /*
1213
1213
  * If the tooltip is at the top of the anchor, place the arrow at the bottom of
1214
1214
  * the tooltip with bottom: 0. The bottom of the arrow will be flush with the bottom
@@ -1250,16 +1250,16 @@ const so = Fe, ro = Te, lo = Me, co = $e, ao = je, fo = Be, po = (e, t, i) => {
1250
1250
  * | .. | | *
1251
1251
  * | | |/
1252
1252
  */
1253
- left: `${c}px`,
1253
+ left: `${a}px`,
1254
1254
  // similarly for the right side
1255
- right: `${c}px`
1255
+ right: `${a}px`
1256
1256
  }[r], f = {
1257
1257
  transform: l
1258
1258
  };
1259
1259
  f.left = n != null ? `${n}px` : "", f.top = o != null ? `${o}px` : "";
1260
1260
  const p = st(r);
1261
- return f[p] = a, f;
1262
- }, vo = ".bm-floatingui{z-index:999;position:absolute;inset:unset;top:0;left:0;width:max-content}.bm-floatingui[popover]{overflow:unset;border:unset}.bm-floatingui__arrow{position:absolute;transform-origin:bottom center}.bm-floatingui__overlay{background:var(--bm-comp-dialog-color-overlay);padding:var(--bm-comp-dialog-space-viewport-offset);display:flex;justify-content:center;align-items:center;z-index:1}.bm-floatingui__overlay--transparent{background:transparent}.bm-floatingui__overlay:has(.bm-dialog){background-color:transparent;transition:background-color .25s cubic-bezier(.33,0,.67,1)}@media (prefers-reduced-motion: reduce){.bm-floatingui__overlay:has(.bm-dialog){transition:none}}.bm-floatingui__overlay:has(.bm-dialog[data-status=open]){background-color:var(--bm-comp-dialog-color-overlay)}.bm-floatingui__overlay:has(.bm-panel--contained){position:absolute!important;top:0;right:0;bottom:0;left:0;overflow:clip!important}";
1261
+ return f[p] = c, f;
1262
+ }, vo = ".bm-floatingui{z-index:999;position:absolute;inset:unset;top:0;left:0;width:max-content}.bm-floatingui[popover]{overflow:unset;border:unset}.bm-floatingui__arrow{position:absolute;transform-origin:bottom center}.bm-floatingui__overlay{background:var(--bm-comp-dialog-color-overlay);padding:var(--bm-comp-dialog-space-viewport-offset);display:flex;justify-content:center;align-items:center;z-index:1}.bm-floatingui__overlay--transparent{background:transparent}.bm-floatingui__overlay:has(.bm-dialog){background-color:transparent;transition:background-color .25s cubic-bezier(.33,0,.67,1)}@media (prefers-reduced-motion: reduce){.bm-floatingui__overlay:has(.bm-dialog){transition:none}}.bm-floatingui__overlay:has(.bm-dialog[data-status=open]){background-color:var(--bm-comp-dialog-color-overlay)}.bm-floatingui__overlay:has(.bm-panel--overlay[aria-modal]){background-color:transparent;transition:background-color .25s cubic-bezier(.33,0,.67,1)}@media (prefers-reduced-motion: reduce){.bm-floatingui__overlay:has(.bm-panel--overlay[aria-modal]){transition:none}}.bm-floatingui__overlay:has(.bm-panel--overlay[aria-modal][data-status=open]){background-color:var(--bm-comp-dialog-color-overlay)}.bm-floatingui__overlay:has(.bm-panel--contained){position:absolute!important;top:0;right:0;bottom:0;left:0;overflow:clip!important}.bm-floatingui__overlay:has(.bm-panel--overlay:not([aria-modal])){background:transparent;pointer-events:none;overflow:clip}.bm-floatingui__overlay:has(.bm-panel--overlay:not([aria-modal])) .bm-panel--overlay{pointer-events:auto}";
1263
1263
  class yo {
1264
1264
  constructor(t) {
1265
1265
  this.eventMap = /* @__PURE__ */ new Map(), this.elements = /* @__PURE__ */ new Map(), t.addController(this);
@@ -1393,8 +1393,8 @@ class yo {
1393
1393
  const n = this.elements.get(t);
1394
1394
  return n ? (this.eventMap.forEach((o, r) => {
1395
1395
  (i === void 0 || i(r)) && o.forEach((s, l) => {
1396
- l === t && s.forEach(({ event: c, handler: a }) => {
1397
- n.addEventListener(c, a);
1396
+ l === t && s.forEach(({ event: a, handler: c }) => {
1397
+ n.addEventListener(a, c);
1398
1398
  });
1399
1399
  });
1400
1400
  }), !0) : (console.warn(`Element ${t} not found`), !1);
@@ -1420,8 +1420,8 @@ class yo {
1420
1420
  );
1421
1421
  return;
1422
1422
  }
1423
- o.forEach(({ event: l, handler: c }) => {
1424
- s[i](l, c);
1423
+ o.forEach(({ event: l, handler: a }) => {
1424
+ s[i](l, a);
1425
1425
  });
1426
1426
  });
1427
1427
  }
@@ -1484,7 +1484,7 @@ const xo = (e) => {
1484
1484
  ge()
1485
1485
  ], t.prototype, "_isOpen"), t;
1486
1486
  };
1487
- var Co = Object.defineProperty, _ = (e, t, i, n) => {
1487
+ var Co = Object.defineProperty, P = (e, t, i, n) => {
1488
1488
  for (var o = void 0, r = e.length - 1, s; r >= 0; r--)
1489
1489
  (s = e[r]) && (o = s(t, i, o) || o);
1490
1490
  return o && Co(t, i, o), o;
@@ -1495,7 +1495,7 @@ const {
1495
1495
  } = Gt("floatingui"), Kt = {
1496
1496
  content: Ao,
1497
1497
  arrow: `${Oo}arrow`
1498
- }, Eo = be("popover"), Po = (e) => {
1498
+ }, _o = be("popover"), Eo = (e) => {
1499
1499
  const i = class i extends xo(e) {
1500
1500
  constructor() {
1501
1501
  super(), this.hideArrow = !1, this.shift = !0, this.autoHiding = !0, this.defaultOpen = !1, this.showDelay = 0, this.hideDelay = 0, this.popoverAPI = !0, this.disableAutoAria = !1, this.autoDescribedById = Oe(), this.openOnClick = !1, this.openOnHover = !1, this.openOnFocus = !1, this.initialRender = !0, this.contentRef = zt(), this.edgePadding = 0, this.shouldReturnFocus = !1, this.eventPrefix = "bm-floatingui", this.arrowRef = zt(), this.shouldUsePopoverAPI = !1, this.anchor = null, this.eventController = new yo(this), this.autoUpdateCleanup = null, this.closeController = new Ut(this), this.openController = new Ut(this), this.openContent = this.openContent.bind(this), this.mouseEnterHandler = this.mouseEnterHandler.bind(this), this.mouseLeaveHandler = this.mouseLeaveHandler.bind(this), this.closeContent = this.closeContent.bind(this), this.toggleContent = this.toggleContent.bind(this), this.contentSlotHandler = this.contentSlotHandler.bind(this), this.environmentClickListener = this.environmentClickListener.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.eventController.registerClickListener("anchor", this.toggleContent), this.eventController.registerHoverListener(
@@ -1540,8 +1540,8 @@ const {
1540
1540
  return;
1541
1541
  this.contentRef.value.setAttribute("data-status", "close");
1542
1542
  const s = () => {
1543
- var l, c;
1544
- this.shouldUsePopoverAPI && this.contentRef.value.hidePopover(), this._isOpen = !1, (l = this.autoUpdateCleanup) == null || l.call(this), this.eventController.removeEventListeners("open"), this.shouldReturnFocus && ((c = this.anchor) == null || c.focus(), this.shouldReturnFocus = !1);
1543
+ var l, a;
1544
+ this.shouldUsePopoverAPI && this.contentRef.value.hidePopover(), this._isOpen = !1, (l = this.autoUpdateCleanup) == null || l.call(this), this.eventController.removeEventListeners("open"), this.shouldReturnFocus && ((a = this.anchor) == null || a.focus(), this.shouldReturnFocus = !1);
1545
1545
  };
1546
1546
  this.closeController.schedule(s, this.hideDelay);
1547
1547
  }
@@ -1591,11 +1591,11 @@ const {
1591
1591
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1592
1592
  po(this.anchor, this.contentRef.value, o).then(
1593
1593
  (l) => {
1594
- const { x: c, y: a, middlewareData: f } = l;
1594
+ const { x: a, y: c, middlewareData: f } = l;
1595
1595
  Object.assign(this.contentRef.value.style, {
1596
1596
  ...uo(f),
1597
1597
  // translation more performant than top left
1598
- transform: `translate(${c}px, ${a}px)`
1598
+ transform: `translate(${a}px, ${c}px)`
1599
1599
  }), this.arrowRef.value && f.arrowStyles && Object.assign(this.arrowRef.value.style, f.arrowStyles);
1600
1600
  }
1601
1601
  )
@@ -1650,11 +1650,11 @@ const {
1650
1650
  environmentClickListener(o) {
1651
1651
  if (!this._isOpen || this.open)
1652
1652
  return;
1653
- const r = kt(o, this.anchor), s = kt(o, this.contentRef.value);
1653
+ const r = Dt(o, this.anchor), s = Dt(o, this.contentRef.value);
1654
1654
  r || s || this.closeContent(!0);
1655
1655
  }
1656
1656
  willUpdate(o) {
1657
- super.willUpdate(o), o.has("popoverAPI") && (this.shouldUsePopoverAPI = this.popoverAPI && Eo);
1657
+ super.willUpdate(o), o.has("popoverAPI") && (this.shouldUsePopoverAPI = this.popoverAPI && _o);
1658
1658
  }
1659
1659
  updated(o) {
1660
1660
  if (super.updated(o), this.anchor && ["click", "hover", "focus"].forEach((f) => {
@@ -1664,12 +1664,12 @@ const {
1664
1664
  if (this.autoDescribedById)
1665
1665
  $t(this.anchor, "aria-describedby", this.autoDescribedById);
1666
1666
  else {
1667
- const a = o.get("autoDescribedById");
1668
- if (!a)
1667
+ const c = o.get("autoDescribedById");
1668
+ if (!c)
1669
1669
  return;
1670
- Ae(this.anchor, "aria-describedby", a);
1670
+ Ae(this.anchor, "aria-describedby", c);
1671
1671
  }
1672
- const l = Ee(
1672
+ const l = _e(
1673
1673
  o,
1674
1674
  [
1675
1675
  "placement",
@@ -1679,8 +1679,8 @@ const {
1679
1679
  "autoHiding",
1680
1680
  "middleware"
1681
1681
  ]
1682
- ) && this._isOpen, c = o.has("_isOpen");
1683
- l && !c && this.positionFloatingContent();
1682
+ ) && this._isOpen, a = o.has("_isOpen");
1683
+ l && !a && this.positionFloatingContent();
1684
1684
  }
1685
1685
  mouseEnterHandler() {
1686
1686
  const o = () => {
@@ -1712,49 +1712,49 @@ const {
1712
1712
  `
1713
1713
  ];
1714
1714
  let t = i;
1715
- return _([
1715
+ return P([
1716
1716
  v({ type: Boolean })
1717
- ], t.prototype, "hideArrow"), _([
1717
+ ], t.prototype, "hideArrow"), P([
1718
1718
  v({ type: String })
1719
- ], t.prototype, "placement"), _([
1719
+ ], t.prototype, "placement"), P([
1720
1720
  v({ type: Object })
1721
- ], t.prototype, "autoPlacement"), _([
1721
+ ], t.prototype, "autoPlacement"), P([
1722
1722
  v({ type: Object })
1723
- ], t.prototype, "flip"), _([
1723
+ ], t.prototype, "flip"), P([
1724
1724
  v({ type: Object })
1725
- ], t.prototype, "shift"), _([
1725
+ ], t.prototype, "shift"), P([
1726
1726
  v({ type: Object })
1727
- ], t.prototype, "autoHiding"), _([
1727
+ ], t.prototype, "autoHiding"), P([
1728
1728
  v({ type: Object })
1729
- ], t.prototype, "middleware"), _([
1729
+ ], t.prototype, "middleware"), P([
1730
1730
  v({ type: Boolean })
1731
- ], t.prototype, "defaultOpen"), _([
1731
+ ], t.prototype, "defaultOpen"), P([
1732
1732
  v({ type: Number })
1733
- ], t.prototype, "showDelay"), _([
1733
+ ], t.prototype, "showDelay"), P([
1734
1734
  v({ type: Number })
1735
- ], t.prototype, "hideDelay"), _([
1735
+ ], t.prototype, "hideDelay"), P([
1736
1736
  v({ type: Boolean, converter: Jt })
1737
- ], t.prototype, "popoverAPI"), _([
1737
+ ], t.prototype, "popoverAPI"), P([
1738
1738
  v({ type: Boolean })
1739
- ], t.prototype, "disableAutoAria"), _([
1739
+ ], t.prototype, "disableAutoAria"), P([
1740
1740
  v({ type: String })
1741
- ], t.prototype, "autoDescribedById"), _([
1741
+ ], t.prototype, "autoDescribedById"), P([
1742
1742
  v()
1743
- ], t.prototype, "offset"), _([
1743
+ ], t.prototype, "offset"), P([
1744
1744
  v({ type: Boolean })
1745
- ], t.prototype, "openOnClick"), _([
1745
+ ], t.prototype, "openOnClick"), P([
1746
1746
  v({ type: Boolean })
1747
- ], t.prototype, "openOnHover"), _([
1747
+ ], t.prototype, "openOnHover"), P([
1748
1748
  v({ type: Boolean })
1749
1749
  ], t.prototype, "openOnFocus"), t;
1750
1750
  };
1751
- var _o = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, So = Object.getPrototypeOf, Lo = Reflect.get, E = (e, t, i, n) => {
1751
+ var Po = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, So = Object.getPrototypeOf, Lo = Reflect.get, _ = (e, t, i, n) => {
1752
1752
  for (var o = n > 1 ? void 0 : n ? Ro(t, i) : t, r = e.length - 1, s; r >= 0; r--)
1753
1753
  (s = e[r]) && (o = (n ? s(t, i, o) : s(o)) || o);
1754
- return n && o && _o(t, i, o), o;
1754
+ return n && o && Po(t, i, o), o;
1755
1755
  }, pe = (e, t, i) => Lo(So(e), i, t);
1756
1756
  const { subElementClassPrefix: me, baseClassNamePrefix: zo } = Gt("tooltip");
1757
- let A = class extends Po(qt) {
1757
+ let A = class extends Eo(qt) {
1758
1758
  constructor() {
1759
1759
  super(), this.disabled = !1, this.triggerSize = "md", this.eventPrefix = "tooltip", this.hideDelay = 200, Bt(xe, this, "edgePadding"), Bt(Ce, this, "offset");
1760
1760
  }
@@ -1771,7 +1771,7 @@ let A = class extends Po(qt) {
1771
1771
  role="tooltip"
1772
1772
  @slotchange=${this.contentSlotHandler}
1773
1773
  aria-hidden=${!this._isOpen}
1774
- ${Dt(this.contentRef)}
1774
+ ${kt(this.contentRef)}
1775
1775
  class=${vt(
1776
1776
  this.theme && we(this.theme),
1777
1777
  Kt.content,
@@ -1783,7 +1783,7 @@ let A = class extends Po(qt) {
1783
1783
  <slot name="text"></slot>
1784
1784
  <span
1785
1785
  class=${vt(Kt.arrow, `${me}arrow`)}
1786
- ${Dt(this.arrowRef)}
1786
+ ${kt(this.arrowRef)}
1787
1787
  >
1788
1788
  </span>
1789
1789
  </div>`;
@@ -1793,55 +1793,55 @@ A.styles = [
1793
1793
  xt(Qt),
1794
1794
  pe(A, A, "styles") ?? []
1795
1795
  ];
1796
- E([
1796
+ _([
1797
1797
  v({ type: String })
1798
1798
  ], A.prototype, "theme", 2);
1799
- E([
1799
+ _([
1800
1800
  v({ type: Boolean })
1801
1801
  ], A.prototype, "open", 2);
1802
- E([
1802
+ _([
1803
1803
  v({ type: Boolean })
1804
1804
  ], A.prototype, "hideArrow", 2);
1805
- E([
1805
+ _([
1806
1806
  v({ type: String })
1807
1807
  ], A.prototype, "placement", 2);
1808
- E([
1808
+ _([
1809
1809
  v({ type: Object })
1810
1810
  ], A.prototype, "autoPlacement", 2);
1811
- E([
1811
+ _([
1812
1812
  v({ type: Object })
1813
1813
  ], A.prototype, "flip", 2);
1814
- E([
1814
+ _([
1815
1815
  v({ type: Object })
1816
1816
  ], A.prototype, "shift", 2);
1817
- E([
1817
+ _([
1818
1818
  v({ type: Object })
1819
1819
  ], A.prototype, "autoHiding", 2);
1820
- E([
1820
+ _([
1821
1821
  v({ type: Object })
1822
1822
  ], A.prototype, "middleware", 2);
1823
- E([
1823
+ _([
1824
1824
  v({ type: Boolean })
1825
1825
  ], A.prototype, "defaultOpen", 2);
1826
- E([
1826
+ _([
1827
1827
  v({ type: Number })
1828
1828
  ], A.prototype, "showDelay", 2);
1829
- E([
1829
+ _([
1830
1830
  v({ type: Boolean, converter: Jt })
1831
1831
  ], A.prototype, "popoverAPI", 2);
1832
- E([
1832
+ _([
1833
1833
  v({ type: Boolean })
1834
1834
  ], A.prototype, "disableAutoAria", 2);
1835
- E([
1835
+ _([
1836
1836
  v({ type: String })
1837
1837
  ], A.prototype, "autoDescribedById", 2);
1838
- E([
1838
+ _([
1839
1839
  v({ type: Boolean })
1840
1840
  ], A.prototype, "disabled", 2);
1841
- E([
1841
+ _([
1842
1842
  v({ type: String })
1843
1843
  ], A.prototype, "triggerSize", 2);
1844
- A = E([
1844
+ A = _([
1845
1845
  Zt("bm-tooltip")
1846
1846
  ], A);
1847
1847
  let J = class extends qt {
@@ -1863,13 +1863,13 @@ J.styles = [
1863
1863
  xt(Qt),
1864
1864
  pe(J, J, "styles") ?? []
1865
1865
  ];
1866
- E([
1866
+ _([
1867
1867
  v({ type: String })
1868
1868
  ], J.prototype, "size", 2);
1869
- E([
1869
+ _([
1870
1870
  v({ type: Boolean })
1871
1871
  ], J.prototype, "disabled", 2);
1872
- J = E([
1872
+ J = _([
1873
1873
  Zt("bm-tooltip-icon-trigger")
1874
1874
  ], J);
1875
1875
  export {