@orangelogic/design-system 2.187.0 → 2.188.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,33 +1,33 @@
1
- import { a as _e, i as Vt, r as ze, x as U } from "../chunks/lit-element.jLBm65_O.js";
2
- import { n as y, C as Be } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
- import { r as Me } from "../chunks/state.CSDxrqLd.js";
1
+ import { a as ze, i as Vt, r as Be, x as U } from "../chunks/lit-element.jLBm65_O.js";
2
+ import { n as m, C as Me } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
+ import { r as Ie } from "../chunks/state.CSDxrqLd.js";
4
4
  import { e as Ct } from "../chunks/query.BBf1UFkC.js";
5
- import { e as Ie } from "../chunks/base.D76d76ww.js";
5
+ import { e as He } from "../chunks/base.D76d76ww.js";
6
6
  import { e as ht } from "../chunks/class-map.BiVq-cVR.js";
7
7
  import { o as Lt } from "../chunks/if-defined.BRoBj_Rp.js";
8
8
  import { o as se } from "../chunks/style-map.llVFPd__.js";
9
- import { i as gt, p as ne, f as He, a as We } from "../chunks/browser.BHOCIF_A.js";
9
+ import { i as mt, p as ne, f as We, a as qe } from "../chunks/browser.BHOCIF_A.js";
10
10
  import { c as ye } from "../chunks/component.styles.CRO4Odto.js";
11
- import { c as qe } from "../chunks/custom-element.L4WJXn1j.js";
12
- import { d as Ve } from "../chunks/debounce.DaHuiSGU.js";
13
- import { L as je } from "../chunks/i18n.DbXTTLXx.js";
14
- import { n as Ue } from "../chunks/when.Dr1es41R.js";
11
+ import { c as Ve } from "../chunks/custom-element.L4WJXn1j.js";
12
+ import { d as je } from "../chunks/debounce.DaHuiSGU.js";
13
+ import { L as Ue } from "../chunks/i18n.DbXTTLXx.js";
14
+ import { n as Ye } from "../chunks/when.Dr1es41R.js";
15
15
  /**
16
16
  * @license
17
17
  * Copyright 2021 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
19
  */
20
- function Ye(e) {
20
+ function Ke(e) {
21
21
  return (t, o) => {
22
22
  const { slot: i, selector: s } = e ?? {}, r = "slot" + (i ? `[name=${i}]` : ":not([name])");
23
- return Ie(t, o, { get() {
23
+ return He(t, o, { get() {
24
24
  const n = this.renderRoot?.querySelector(r), a = n?.assignedElements(e) ?? [];
25
25
  return s === void 0 ? a : a.filter((l) => l.matches(s));
26
26
  } });
27
27
  };
28
28
  }
29
- const re = /* @__PURE__ */ new Set(), Ke = (e) => e?.startManagingContentDirection !== void 0 || e?.tagName === "SP-THEME";
30
- function Xe(e) {
29
+ const re = /* @__PURE__ */ new Set(), Xe = (e) => e?.startManagingContentDirection !== void 0 || e?.tagName === "SP-THEME";
30
+ function Ge(e) {
31
31
  class t extends e {
32
32
  /**
33
33
  * @private
@@ -58,7 +58,7 @@ function Xe(e) {
58
58
  connectedCallback() {
59
59
  if (!this.hasAttribute("dir")) {
60
60
  let i = this.assignedSlot || this.parentNode;
61
- for (; i && i !== document.documentElement && !Ke(i); )
61
+ for (; i && i !== document.documentElement && !Xe(i); )
62
62
  i = i.assignedSlot || // step into the shadow DOM of the parent of a slotted node
63
63
  i.parentNode || // DOM Element detected
64
64
  i.host;
@@ -80,9 +80,9 @@ function Xe(e) {
80
80
  }
81
81
  return t;
82
82
  }
83
- class Ge extends Xe(_e) {
83
+ class Je extends Ge(ze) {
84
84
  }
85
- function Je(e, t, o) {
85
+ function Qe(e, t, o) {
86
86
  const i = e.getAttribute(t);
87
87
  let s = i ? i.split(/\s+/) : [];
88
88
  s = s.filter(
@@ -92,19 +92,19 @@ function Je(e, t, o) {
92
92
  function Nt(e, t, o) {
93
93
  const i = Array.isArray(o) ? o : [o], s = e.getAttribute(t), r = s ? s.split(/\s+/) : [];
94
94
  return i.every((a) => r.indexOf(a) > -1) ? () => {
95
- } : (r.push(...i), e.setAttribute(t, r.join(" ")), () => Je(e, t, i));
95
+ } : (r.push(...i), e.setAttribute(t, r.join(" ")), () => Qe(e, t, i));
96
96
  }
97
- function Qe(e, t) {
97
+ function Ze(e, t) {
98
98
  customElements.get(e) || customElements.define(e, t);
99
99
  }
100
- function Ze(e, t, o = []) {
100
+ function ti(e, t, o = []) {
101
101
  for (let i = 0; i < t.length; ++i) {
102
102
  const s = t[i], r = e[i], n = r.parentElement || r.getRootNode();
103
103
  o[i] && o[i](s), n && n !== r && n.replaceChild(s, r), delete e[i];
104
104
  }
105
105
  return t;
106
106
  }
107
- const ti = (e, t, {
107
+ const ei = (e, t, {
108
108
  position: o,
109
109
  prepareCallback: i
110
110
  } = { position: "beforeend" }) => {
@@ -123,7 +123,7 @@ const ti = (e, t, {
123
123
  d && d !== h && d.replaceChild(a[n], h), t.insertAdjacentElement(o, h), n += r;
124
124
  } while (--s > 0);
125
125
  return function() {
126
- return Ze(a, e, l);
126
+ return ti(a, e, l);
127
127
  };
128
128
  };
129
129
  function jt() {
@@ -132,7 +132,7 @@ function jt() {
132
132
  (e) => `0${(e & 255).toString(16)}`.slice(-2)
133
133
  ).join("");
134
134
  }
135
- const ei = [
135
+ const ii = [
136
136
  "button",
137
137
  "[focusable]",
138
138
  "[href]",
@@ -141,37 +141,37 @@ const ei = [
141
141
  "select",
142
142
  "textarea",
143
143
  "[tabindex]"
144
- ], ae = ':not([tabindex="-1"])', ft = ei.join(`${ae}, `) + ae, Ut = (e) => e.querySelector(
144
+ ], ae = ':not([tabindex="-1"])', ft = ii.join(`${ae}, `) + ae, Ut = (e) => e.querySelector(
145
145
  ft
146
146
  ), Yt = (e) => e.assignedElements().find(
147
147
  (o) => o.matches(ft)
148
148
  );
149
- function ii(e) {
149
+ function oi(e) {
150
150
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.userAgent) : !1;
151
151
  }
152
152
  function Kt(e) {
153
153
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : !1;
154
154
  }
155
- function oi() {
156
- return Kt(/^Mac/);
157
- }
158
155
  function si() {
159
- return Kt(/^iPhone/);
156
+ return Kt(/^Mac/);
160
157
  }
161
158
  function ni() {
162
- return Kt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
163
- oi() && navigator.maxTouchPoints > 1;
159
+ return Kt(/^iPhone/);
164
160
  }
165
161
  function ri() {
166
- return si() || ni();
162
+ return Kt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
163
+ si() && navigator.maxTouchPoints > 1;
167
164
  }
168
165
  function ai() {
169
- return ii(/Android/);
166
+ return ni() || ri();
170
167
  }
171
- const li = 1e3, ci = 1e3;
172
- class hi {
168
+ function li() {
169
+ return oi(/Android/);
170
+ }
171
+ const ci = 1e3, hi = 1e3;
172
+ class di {
173
173
  constructor(t = {}) {
174
- this.warmUpDelay = li, this.coolDownDelay = ci, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
174
+ this.warmUpDelay = ci, this.coolDownDelay = hi, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
175
175
  }
176
176
  async openTimer(t) {
177
177
  if (this.cancelCooldownTimer(), !this.component || t !== this.component)
@@ -196,7 +196,7 @@ class hi {
196
196
  this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
197
197
  }
198
198
  }
199
- const wt = new hi(), it = () => {
199
+ const wt = new di(), it = () => {
200
200
  }, Xt = (e, t, o) => {
201
201
  const i = new AbortController(), s = /* @__PURE__ */ new Map(), r = () => {
202
202
  i.abort(), o();
@@ -230,7 +230,7 @@ const wt = new hi(), it = () => {
230
230
  function k() {
231
231
  return new Promise((e) => requestAnimationFrame(() => e()));
232
232
  }
233
- class dt extends Ge {
233
+ class dt extends Je {
234
234
  constructor() {
235
235
  super(...arguments), this.dispose = it, this.offset = 0, this.willPreventClose = !1;
236
236
  }
@@ -318,7 +318,7 @@ class dt extends Ge {
318
318
  });
319
319
  }), a.open = !1, a.dispose = it;
320
320
  };
321
- const c = ti([n], a, {
321
+ const c = ei([n], a, {
322
322
  position: "beforeend",
323
323
  prepareCallback: (u) => {
324
324
  const p = u.slot;
@@ -349,7 +349,7 @@ class dt extends Ge {
349
349
  }
350
350
  }
351
351
  const ve = Symbol("element resolver updated");
352
- class di {
352
+ class pi {
353
353
  constructor(t, { selector: o } = { selector: "" }) {
354
354
  this._element = null, this._selector = "", this.mutationCallback = (i) => {
355
355
  let s = !1;
@@ -466,7 +466,7 @@ class Ot {
466
466
  };
467
467
  }
468
468
  }
469
- function pi(e) {
469
+ function ui(e) {
470
470
  class t extends e {
471
471
  async manageDialogOpen() {
472
472
  const i = this.open;
@@ -542,7 +542,7 @@ function pi(e) {
542
542
  }
543
543
  return t;
544
544
  }
545
- function ui(e) {
545
+ function fi(e) {
546
546
  class t extends e {
547
547
  async managePopoverOpen() {
548
548
  await this.managePosition();
@@ -603,7 +603,7 @@ function ui(e) {
603
603
  }
604
604
  return t;
605
605
  }
606
- const fi = CSS.supports("(overlay: auto)");
606
+ const gi = CSS.supports("(overlay: auto)");
607
607
  function kt(e) {
608
608
  let t = !1;
609
609
  try {
@@ -666,21 +666,21 @@ function mi(e) {
666
666
  kt(this.dialogEl) && (this.dialogEl.hidePopover(), this.dialogEl.showPopover());
667
667
  }
668
668
  firstUpdated(i) {
669
- super.firstUpdated(i), gt() && k().then(() => {
669
+ super.firstUpdated(i), mt() && k().then(() => {
670
670
  this.dialogEl.showPopover();
671
671
  });
672
672
  }
673
673
  runConnectedCallback() {
674
- gt() && document.addEventListener("fullscreenchange", this.handleFullscreenChange);
674
+ mt() && document.addEventListener("fullscreenchange", this.handleFullscreenChange);
675
675
  }
676
676
  disconnectedCallback() {
677
- super.disconnectedCallback(), gt() && document.removeEventListener(
677
+ super.disconnectedCallback(), mt() && document.removeEventListener(
678
678
  "fullscreenchange",
679
679
  this.handleFullscreenChange
680
680
  );
681
681
  }
682
682
  async ensureOnDOM(i) {
683
- await k(), fi || await this.shouldHidePopover(i), await this.shouldShowPopover(i), await k();
683
+ await k(), gi || await this.shouldHidePopover(i), await this.shouldShowPopover(i), await k();
684
684
  }
685
685
  async makeTransition(i) {
686
686
  if (this.open !== i)
@@ -740,7 +740,7 @@ function mi(e) {
740
740
  h();
741
741
  },
742
742
  { once: !0 }
743
- ), gt() || this.dialogEl.hidePopover()) : h();
743
+ ), mt() || this.dialogEl.hidePopover()) : h();
744
744
  };
745
745
  return this.elements.forEach((a, l) => {
746
746
  Xt(a, r(a, l), n(a, l));
@@ -749,8 +749,8 @@ function mi(e) {
749
749
  }
750
750
  return t;
751
751
  }
752
- const gi = "showPopover" in document.createElement("div");
753
- class yi {
752
+ const yi = "showPopover" in document.createElement("div");
753
+ class vi {
754
754
  constructor() {
755
755
  this.root = document.body, this.stack = [], this.handlePointerdown = (t) => {
756
756
  this.pointerdownPath = t.composedPath(), this.lastOverlay = this.stack[this.stack.length - 1];
@@ -784,7 +784,7 @@ class yi {
784
784
  t.preventDefault();
785
785
  return;
786
786
  }
787
- gi || o?.type !== "manual" && o && this.closeOverlay(o);
787
+ yi || o?.type !== "manual" && o && this.closeOverlay(o);
788
788
  }, this.bindEvents();
789
789
  }
790
790
  get document() {
@@ -856,15 +856,15 @@ class yi {
856
856
  this.closeOverlay(t);
857
857
  }
858
858
  }
859
- const le = new yi(), vi = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, H = (e) => ({
859
+ const le = new vi(), bi = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, H = (e) => ({
860
860
  x: e,
861
861
  y: e
862
- }), bi = {
862
+ }), wi = {
863
863
  left: "right",
864
864
  right: "left",
865
865
  bottom: "top",
866
866
  top: "bottom"
867
- }, wi = {
867
+ }, xi = {
868
868
  start: "end",
869
869
  end: "start"
870
870
  };
@@ -886,48 +886,48 @@ function be(e) {
886
886
  function Qt(e) {
887
887
  return e === "y" ? "height" : "width";
888
888
  }
889
- const xi = /* @__PURE__ */ new Set(["top", "bottom"]);
889
+ const Ei = /* @__PURE__ */ new Set(["top", "bottom"]);
890
890
  function Y(e) {
891
- return xi.has(Z(e)) ? "y" : "x";
891
+ return Ei.has(Z(e)) ? "y" : "x";
892
892
  }
893
893
  function Zt(e) {
894
894
  return be(Y(e));
895
895
  }
896
- function Ei(e, t, o) {
896
+ function Pi(e, t, o) {
897
897
  o === void 0 && (o = !1);
898
898
  const i = at(e), s = Zt(e), r = Qt(s);
899
899
  let n = s === "x" ? i === (o ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
900
900
  return t.reference[r] > t.floating[r] && (n = Et(n)), [n, Et(n)];
901
901
  }
902
- function Pi(e) {
902
+ function Ci(e) {
903
903
  const t = Et(e);
904
904
  return [zt(e), t, zt(t)];
905
905
  }
906
906
  function zt(e) {
907
- return e.replace(/start|end/g, (t) => wi[t]);
907
+ return e.replace(/start|end/g, (t) => xi[t]);
908
908
  }
909
- const ce = ["left", "right"], he = ["right", "left"], Ci = ["top", "bottom"], Oi = ["bottom", "top"];
910
- function Ai(e, t, o) {
909
+ const ce = ["left", "right"], he = ["right", "left"], Oi = ["top", "bottom"], Ai = ["bottom", "top"];
910
+ function Si(e, t, o) {
911
911
  switch (e) {
912
912
  case "top":
913
913
  case "bottom":
914
914
  return o ? t ? he : ce : t ? ce : he;
915
915
  case "left":
916
916
  case "right":
917
- return t ? Ci : Oi;
917
+ return t ? Oi : Ai;
918
918
  default:
919
919
  return [];
920
920
  }
921
921
  }
922
- function Si(e, t, o, i) {
922
+ function Ri(e, t, o, i) {
923
923
  const s = at(e);
924
- let r = Ai(Z(e), o === "start", i);
924
+ let r = Si(Z(e), o === "start", i);
925
925
  return s && (r = r.map((n) => n + "-" + s), t && (r = r.concat(r.map(zt)))), r;
926
926
  }
927
927
  function Et(e) {
928
- return e.replace(/left|right|bottom|top/g, (t) => bi[t]);
928
+ return e.replace(/left|right|bottom|top/g, (t) => wi[t]);
929
929
  }
930
- function Ri(e) {
930
+ function Ti(e) {
931
931
  return {
932
932
  top: 0,
933
933
  right: 0,
@@ -937,7 +937,7 @@ function Ri(e) {
937
937
  };
938
938
  }
939
939
  function we(e) {
940
- return typeof e != "number" ? Ri(e) : {
940
+ return typeof e != "number" ? Ti(e) : {
941
941
  top: e,
942
942
  right: e,
943
943
  bottom: e,
@@ -1010,7 +1010,7 @@ function de(e, t, o) {
1010
1010
  }
1011
1011
  return p;
1012
1012
  }
1013
- const Ti = async (e, t, o) => {
1013
+ const Di = async (e, t, o) => {
1014
1014
  const {
1015
1015
  placement: i = "bottom",
1016
1016
  strategy: s = "absolute",
@@ -1025,11 +1025,11 @@ const Ti = async (e, t, o) => {
1025
1025
  x: h,
1026
1026
  y: d
1027
1027
  } = de(c, i, l), u = i, p = {}, f = 0;
1028
- for (let m = 0; m < a.length; m++) {
1028
+ for (let g = 0; g < a.length; g++) {
1029
1029
  const {
1030
- name: g,
1030
+ name: y,
1031
1031
  fn: v
1032
- } = a[m], {
1032
+ } = a[g], {
1033
1033
  x,
1034
1034
  y: E,
1035
1035
  data: C,
@@ -1050,8 +1050,8 @@ const Ti = async (e, t, o) => {
1050
1050
  });
1051
1051
  h = x ?? h, d = E ?? d, p = {
1052
1052
  ...p,
1053
- [g]: {
1054
- ...p[g],
1053
+ [y]: {
1054
+ ...p[y],
1055
1055
  ...C
1056
1056
  }
1057
1057
  }, P && f <= 50 && (f++, typeof P == "object" && (P.placement && (u = P.placement), P.rects && (c = P.rects === !0 ? await n.getElementRects({
@@ -1061,7 +1061,7 @@ const Ti = async (e, t, o) => {
1061
1061
  }) : P.rects), {
1062
1062
  x: h,
1063
1063
  y: d
1064
- } = de(c, u, l)), m = -1);
1064
+ } = de(c, u, l)), g = -1);
1065
1065
  }
1066
1066
  return {
1067
1067
  x: h,
@@ -1087,8 +1087,8 @@ async function pt(e, t) {
1087
1087
  elementContext: d = "floating",
1088
1088
  altBoundary: u = !1,
1089
1089
  padding: p = 0
1090
- } = st(t, e), f = we(p), g = a[u ? d === "floating" ? "reference" : "floating" : d], v = Pt(await r.getClippingRect({
1091
- element: (o = await (r.isElement == null ? void 0 : r.isElement(g))) == null || o ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
1090
+ } = st(t, e), f = we(p), y = a[u ? d === "floating" ? "reference" : "floating" : d], v = Pt(await r.getClippingRect({
1091
+ element: (o = await (r.isElement == null ? void 0 : r.isElement(y))) == null || o ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
1092
1092
  boundary: c,
1093
1093
  rootBoundary: h,
1094
1094
  strategy: l
@@ -1116,7 +1116,7 @@ async function pt(e, t) {
1116
1116
  right: (P.right - v.right + f.right) / C.x
1117
1117
  };
1118
1118
  }
1119
- const Di = (e) => ({
1119
+ const Li = (e) => ({
1120
1120
  name: "arrow",
1121
1121
  options: e,
1122
1122
  async fn(t) {
@@ -1137,10 +1137,10 @@ const Di = (e) => ({
1137
1137
  const d = we(h), u = {
1138
1138
  x: o,
1139
1139
  y: i
1140
- }, p = Zt(s), f = Qt(p), m = await n.getDimensions(c), g = p === "y", v = g ? "top" : "left", x = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", C = r.reference[f] + r.reference[p] - u[p] - r.floating[f], P = u[p] - r.reference[p], $ = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(c));
1140
+ }, p = Zt(s), f = Qt(p), g = await n.getDimensions(c), y = p === "y", v = y ? "top" : "left", x = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", C = r.reference[f] + r.reference[p] - u[p] - r.floating[f], P = u[p] - r.reference[p], $ = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(c));
1141
1141
  let A = $ ? $[E] : 0;
1142
1142
  (!A || !await (n.isElement == null ? void 0 : n.isElement($))) && (A = a.floating[E] || r.floating[f]);
1143
- const V = C / 2 - P / 2, M = A / 2 - m[f] / 2 - 1, L = Q(d[v], M), X = Q(d[x], M), I = L, G = A - m[f] - X, R = A / 2 - m[f] / 2 + V, et = _t(I, R, G), j = !l.arrow && at(s) != null && R !== et && r.reference[f] / 2 - (R < I ? L : X) - m[f] / 2 < 0, F = j ? R < I ? R - I : R - G : 0;
1143
+ const V = C / 2 - P / 2, M = A / 2 - g[f] / 2 - 1, L = Q(d[v], M), X = Q(d[x], M), I = L, G = A - g[f] - X, R = A / 2 - g[f] / 2 + V, et = _t(I, R, G), j = !l.arrow && at(s) != null && R !== et && r.reference[f] / 2 - (R < I ? L : X) - g[f] / 2 < 0, F = j ? R < I ? R - I : R - G : 0;
1144
1144
  return {
1145
1145
  [p]: u[p] + F,
1146
1146
  data: {
@@ -1153,7 +1153,7 @@ const Di = (e) => ({
1153
1153
  reset: j
1154
1154
  };
1155
1155
  }
1156
- }), Li = function(e) {
1156
+ }), ki = function(e) {
1157
1157
  return e === void 0 && (e = {}), {
1158
1158
  name: "flip",
1159
1159
  options: e,
@@ -1172,17 +1172,17 @@ const Di = (e) => ({
1172
1172
  fallbackPlacements: u,
1173
1173
  fallbackStrategy: p = "bestFit",
1174
1174
  fallbackAxisSideDirection: f = "none",
1175
- flipAlignment: m = !0,
1176
- ...g
1175
+ flipAlignment: g = !0,
1176
+ ...y
1177
1177
  } = st(e, t);
1178
1178
  if ((o = r.arrow) != null && o.alignmentOffset)
1179
1179
  return {};
1180
- const v = Z(s), x = Y(a), E = Z(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), P = u || (E || !m ? [Et(a)] : Pi(a)), $ = f !== "none";
1181
- !u && $ && P.push(...Si(a, m, f, C));
1182
- const A = [a, ...P], V = await pt(t, g), M = [];
1180
+ const v = Z(s), x = Y(a), E = Z(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), P = u || (E || !g ? [Et(a)] : Ci(a)), $ = f !== "none";
1181
+ !u && $ && P.push(...Ri(a, g, f, C));
1182
+ const A = [a, ...P], V = await pt(t, y), M = [];
1183
1183
  let L = ((i = r.flip) == null ? void 0 : i.overflows) || [];
1184
1184
  if (h && M.push(V[v]), d) {
1185
- const R = Ei(s, n, C);
1185
+ const R = Pi(s, n, C);
1186
1186
  M.push(V[R[0]], V[R[1]]);
1187
1187
  }
1188
1188
  if (L = [...L, {
@@ -1216,7 +1216,7 @@ const Di = (e) => ({
1216
1216
  J === "y";
1217
1217
  }
1218
1218
  return !0;
1219
- }).map((N) => [N.placement, N.overflows.filter((J) => J > 0).reduce((J, Ne) => J + Ne, 0)]).sort((N, J) => N[1] - J[1])[0]) == null ? void 0 : G[0];
1219
+ }).map((N) => [N.placement, N.overflows.filter((J) => J > 0).reduce((J, _e) => J + _e, 0)]).sort((N, J) => N[1] - J[1])[0]) == null ? void 0 : G[0];
1220
1220
  F && (j = F);
1221
1221
  break;
1222
1222
  }
@@ -1244,9 +1244,9 @@ function pe(e, t) {
1244
1244
  };
1245
1245
  }
1246
1246
  function ue(e) {
1247
- return vi.some((t) => e[t] >= 0);
1247
+ return bi.some((t) => e[t] >= 0);
1248
1248
  }
1249
- const ki = function(e) {
1249
+ const $i = function(e) {
1250
1250
  return e === void 0 && (e = {}), {
1251
1251
  name: "hide",
1252
1252
  options: e,
@@ -1287,13 +1287,13 @@ const ki = function(e) {
1287
1287
  }
1288
1288
  }
1289
1289
  };
1290
- }, $i = /* @__PURE__ */ new Set(["left", "top"]);
1291
- async function Fi(e, t) {
1290
+ }, Fi = /* @__PURE__ */ new Set(["left", "top"]);
1291
+ async function Ni(e, t) {
1292
1292
  const {
1293
1293
  placement: o,
1294
1294
  platform: i,
1295
1295
  elements: s
1296
- } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), n = Z(o), a = at(o), l = Y(o) === "y", c = $i.has(n) ? -1 : 1, h = r && l ? -1 : 1, d = st(t, e);
1296
+ } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), n = Z(o), a = at(o), l = Y(o) === "y", c = Fi.has(n) ? -1 : 1, h = r && l ? -1 : 1, d = st(t, e);
1297
1297
  let {
1298
1298
  mainAxis: u,
1299
1299
  crossAxis: p,
@@ -1315,7 +1315,7 @@ async function Fi(e, t) {
1315
1315
  y: p * h
1316
1316
  };
1317
1317
  }
1318
- const Ni = function(e) {
1318
+ const _i = function(e) {
1319
1319
  return e === void 0 && (e = 0), {
1320
1320
  name: "offset",
1321
1321
  options: e,
@@ -1326,7 +1326,7 @@ const Ni = function(e) {
1326
1326
  y: r,
1327
1327
  placement: n,
1328
1328
  middlewareData: a
1329
- } = t, l = await Fi(t, e);
1329
+ } = t, l = await Ni(t, e);
1330
1330
  return n === ((o = a.offset) == null ? void 0 : o.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
1331
1331
  x: s + l.x,
1332
1332
  y: r + l.y,
@@ -1337,7 +1337,7 @@ const Ni = function(e) {
1337
1337
  };
1338
1338
  }
1339
1339
  };
1340
- }, _i = function(e) {
1340
+ }, zi = function(e) {
1341
1341
  return e === void 0 && (e = {}), {
1342
1342
  name: "shift",
1343
1343
  options: e,
@@ -1350,11 +1350,11 @@ const Ni = function(e) {
1350
1350
  mainAxis: r = !0,
1351
1351
  crossAxis: n = !1,
1352
1352
  limiter: a = {
1353
- fn: (g) => {
1353
+ fn: (y) => {
1354
1354
  let {
1355
1355
  x: v,
1356
1356
  y: x
1357
- } = g;
1357
+ } = y;
1358
1358
  return {
1359
1359
  x: v,
1360
1360
  y: x
@@ -1368,23 +1368,23 @@ const Ni = function(e) {
1368
1368
  }, h = await pt(t, l), d = Y(Z(s)), u = be(d);
1369
1369
  let p = c[u], f = c[d];
1370
1370
  if (r) {
1371
- const g = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", x = p + h[g], E = p - h[v];
1371
+ const y = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", x = p + h[y], E = p - h[v];
1372
1372
  p = _t(x, p, E);
1373
1373
  }
1374
1374
  if (n) {
1375
- const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = f + h[g], E = f - h[v];
1375
+ const y = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = f + h[y], E = f - h[v];
1376
1376
  f = _t(x, f, E);
1377
1377
  }
1378
- const m = a.fn({
1378
+ const g = a.fn({
1379
1379
  ...t,
1380
1380
  [u]: p,
1381
1381
  [d]: f
1382
1382
  });
1383
1383
  return {
1384
- ...m,
1384
+ ...g,
1385
1385
  data: {
1386
- x: m.x - o,
1387
- y: m.y - i,
1386
+ x: g.x - o,
1387
+ y: g.y - i,
1388
1388
  enabled: {
1389
1389
  [u]: r,
1390
1390
  [d]: n
@@ -1393,7 +1393,7 @@ const Ni = function(e) {
1393
1393
  };
1394
1394
  }
1395
1395
  };
1396
- }, zi = function(e) {
1396
+ }, Bi = function(e) {
1397
1397
  return e === void 0 && (e = {}), {
1398
1398
  name: "size",
1399
1399
  options: e,
@@ -1410,15 +1410,15 @@ const Ni = function(e) {
1410
1410
  ...c
1411
1411
  } = st(e, t), h = await pt(t, c), d = Z(s), u = at(s), p = Y(s) === "y", {
1412
1412
  width: f,
1413
- height: m
1413
+ height: g
1414
1414
  } = r.floating;
1415
- let g, v;
1416
- d === "top" || d === "bottom" ? (g = d, v = u === (await (n.isRTL == null ? void 0 : n.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = d, g = u === "end" ? "top" : "bottom");
1417
- const x = m - h.top - h.bottom, E = f - h.left - h.right, C = Q(m - h[g], x), P = Q(f - h[v], E), $ = !t.middlewareData.shift;
1415
+ let y, v;
1416
+ d === "top" || d === "bottom" ? (y = d, v = u === (await (n.isRTL == null ? void 0 : n.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = d, y = u === "end" ? "top" : "bottom");
1417
+ const x = g - h.top - h.bottom, E = f - h.left - h.right, C = Q(g - h[y], x), P = Q(f - h[v], E), $ = !t.middlewareData.shift;
1418
1418
  let A = C, V = P;
1419
1419
  if ((o = t.middlewareData.shift) != null && o.enabled.x && (V = E), (i = t.middlewareData.shift) != null && i.enabled.y && (A = x), $ && !u) {
1420
1420
  const L = T(h.left, 0), X = T(h.right, 0), I = T(h.top, 0), G = T(h.bottom, 0);
1421
- p ? V = f - 2 * (L !== 0 || X !== 0 ? L + X : T(h.left, h.right)) : A = m - 2 * (I !== 0 || G !== 0 ? I + G : T(h.top, h.bottom));
1421
+ p ? V = f - 2 * (L !== 0 || X !== 0 ? L + X : T(h.left, h.right)) : A = g - 2 * (I !== 0 || G !== 0 ? I + G : T(h.top, h.bottom));
1422
1422
  }
1423
1423
  await l({
1424
1424
  ...t,
@@ -1426,7 +1426,7 @@ const Ni = function(e) {
1426
1426
  availableHeight: A
1427
1427
  });
1428
1428
  const M = await n.getDimensions(a.floating);
1429
- return f !== M.width || m !== M.height ? {
1429
+ return f !== M.width || g !== M.height ? {
1430
1430
  reset: {
1431
1431
  rects: !0
1432
1432
  }
@@ -1460,23 +1460,23 @@ function W(e) {
1460
1460
  function fe(e) {
1461
1461
  return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof D(e).ShadowRoot;
1462
1462
  }
1463
- const Bi = /* @__PURE__ */ new Set(["inline", "contents"]);
1464
- function mt(e) {
1463
+ const Mi = /* @__PURE__ */ new Set(["inline", "contents"]);
1464
+ function gt(e) {
1465
1465
  const {
1466
1466
  overflow: t,
1467
1467
  overflowX: o,
1468
1468
  overflowY: i,
1469
1469
  display: s
1470
1470
  } = B(e);
1471
- return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !Bi.has(s);
1471
+ return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !Mi.has(s);
1472
1472
  }
1473
- const Mi = /* @__PURE__ */ new Set(["table", "td", "th"]);
1474
- function Ii(e) {
1475
- return Mi.has(lt(e));
1473
+ const Ii = /* @__PURE__ */ new Set(["table", "td", "th"]);
1474
+ function Hi(e) {
1475
+ return Ii.has(lt(e));
1476
1476
  }
1477
- const Hi = [":popover-open", ":modal"];
1477
+ const Wi = [":popover-open", ":modal"];
1478
1478
  function St(e) {
1479
- return Hi.some((t) => {
1479
+ return Wi.some((t) => {
1480
1480
  try {
1481
1481
  return e.matches(t);
1482
1482
  } catch {
@@ -1484,12 +1484,12 @@ function St(e) {
1484
1484
  }
1485
1485
  });
1486
1486
  }
1487
- const Wi = ["transform", "translate", "scale", "rotate", "perspective"], qi = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vi = ["paint", "layout", "strict", "content"];
1487
+ const qi = ["transform", "translate", "scale", "rotate", "perspective"], Vi = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ji = ["paint", "layout", "strict", "content"];
1488
1488
  function Rt(e) {
1489
1489
  const t = te(), o = z(e) ? B(e) : e;
1490
- return Wi.some((i) => o[i] ? o[i] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || qi.some((i) => (o.willChange || "").includes(i)) || Vi.some((i) => (o.contain || "").includes(i));
1490
+ return qi.some((i) => o[i] ? o[i] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || Vi.some((i) => (o.willChange || "").includes(i)) || ji.some((i) => (o.contain || "").includes(i));
1491
1491
  }
1492
- function ji(e) {
1492
+ function Ui(e) {
1493
1493
  let t = tt(e);
1494
1494
  for (; W(t) && !rt(t); ) {
1495
1495
  if (Rt(t))
@@ -1503,9 +1503,9 @@ function ji(e) {
1503
1503
  function te() {
1504
1504
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1505
1505
  }
1506
- const Ui = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1506
+ const Yi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1507
1507
  function rt(e) {
1508
- return Ui.has(lt(e));
1508
+ return Yi.has(lt(e));
1509
1509
  }
1510
1510
  function B(e) {
1511
1511
  return D(e).getComputedStyle(e);
@@ -1533,7 +1533,7 @@ function tt(e) {
1533
1533
  }
1534
1534
  function Ee(e) {
1535
1535
  const t = tt(e);
1536
- return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && mt(t) ? t : Ee(t);
1536
+ return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && gt(t) ? t : Ee(t);
1537
1537
  }
1538
1538
  function ut(e, t, o) {
1539
1539
  var i;
@@ -1541,7 +1541,7 @@ function ut(e, t, o) {
1541
1541
  const s = Ee(e), r = s === ((i = e.ownerDocument) == null ? void 0 : i.body), n = D(s);
1542
1542
  if (r) {
1543
1543
  const a = Bt(n);
1544
- return t.concat(n, n.visualViewport || [], mt(s) ? s : [], a && o ? ut(a) : []);
1544
+ return t.concat(n, n.visualViewport || [], gt(s) ? s : [], a && o ? ut(a) : []);
1545
1545
  }
1546
1546
  return t.concat(s, ut(s, [], o));
1547
1547
  }
@@ -1576,15 +1576,15 @@ function nt(e) {
1576
1576
  y: a
1577
1577
  };
1578
1578
  }
1579
- const Yi = /* @__PURE__ */ H(0);
1579
+ const Ki = /* @__PURE__ */ H(0);
1580
1580
  function Ce(e) {
1581
1581
  const t = D(e);
1582
- return !te() || !t.visualViewport ? Yi : {
1582
+ return !te() || !t.visualViewport ? Ki : {
1583
1583
  x: t.visualViewport.offsetLeft,
1584
1584
  y: t.visualViewport.offsetTop
1585
1585
  };
1586
1586
  }
1587
- function Ki(e, t, o) {
1587
+ function Xi(e, t, o) {
1588
1588
  return t === void 0 && (t = !1), !o || t && o !== D(e) ? !1 : t;
1589
1589
  }
1590
1590
  function ot(e, t, o, i) {
@@ -1592,14 +1592,14 @@ function ot(e, t, o, i) {
1592
1592
  const s = e.getBoundingClientRect(), r = ee(e);
1593
1593
  let n = H(1);
1594
1594
  t && (i ? z(i) && (n = nt(i)) : n = nt(e));
1595
- const a = Ki(r, o, i) ? Ce(r) : H(0);
1595
+ const a = Xi(r, o, i) ? Ce(r) : H(0);
1596
1596
  let l = (s.left + a.x) / n.x, c = (s.top + a.y) / n.y, h = s.width / n.x, d = s.height / n.y;
1597
1597
  if (r) {
1598
1598
  const u = D(r), p = i && z(i) ? D(i) : i;
1599
- let f = u, m = Bt(f);
1600
- for (; m && i && p !== f; ) {
1601
- const g = nt(m), v = m.getBoundingClientRect(), x = B(m), E = v.left + (m.clientLeft + parseFloat(x.paddingLeft)) * g.x, C = v.top + (m.clientTop + parseFloat(x.paddingTop)) * g.y;
1602
- l *= g.x, c *= g.y, h *= g.x, d *= g.y, l += E, c += C, f = D(m), m = Bt(f);
1599
+ let f = u, g = Bt(f);
1600
+ for (; g && i && p !== f; ) {
1601
+ const y = nt(g), v = g.getBoundingClientRect(), x = B(g), E = v.left + (g.clientLeft + parseFloat(x.paddingLeft)) * y.x, C = v.top + (g.clientTop + parseFloat(x.paddingTop)) * y.y;
1602
+ l *= y.x, c *= y.y, h *= y.x, d *= y.y, l += E, c += C, f = D(g), g = Bt(f);
1603
1603
  }
1604
1604
  }
1605
1605
  return Pt({
@@ -1624,7 +1624,7 @@ function Oe(e, t, o) {
1624
1624
  y: r
1625
1625
  };
1626
1626
  }
1627
- function Xi(e) {
1627
+ function Gi(e) {
1628
1628
  let {
1629
1629
  elements: t,
1630
1630
  rect: o,
@@ -1639,7 +1639,7 @@ function Xi(e) {
1639
1639
  scrollTop: 0
1640
1640
  }, c = H(1);
1641
1641
  const h = H(0), d = W(i);
1642
- if ((d || !d && !r) && ((lt(i) !== "body" || mt(n)) && (l = Tt(i)), W(i))) {
1642
+ if ((d || !d && !r) && ((lt(i) !== "body" || gt(n)) && (l = Tt(i)), W(i))) {
1643
1643
  const p = ot(i);
1644
1644
  c = nt(i), h.x = p.x + i.clientLeft, h.y = p.y + i.clientTop;
1645
1645
  }
@@ -1651,10 +1651,10 @@ function Xi(e) {
1651
1651
  y: o.y * c.y - l.scrollTop * c.y + h.y + u.y
1652
1652
  };
1653
1653
  }
1654
- function Gi(e) {
1654
+ function Ji(e) {
1655
1655
  return Array.from(e.getClientRects());
1656
1656
  }
1657
- function Ji(e) {
1657
+ function Qi(e) {
1658
1658
  const t = q(e), o = Tt(e), i = e.ownerDocument.body, s = T(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = T(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
1659
1659
  let n = -o.scrollLeft + ie(e);
1660
1660
  const a = -o.scrollTop;
@@ -1665,7 +1665,7 @@ function Ji(e) {
1665
1665
  y: a
1666
1666
  };
1667
1667
  }
1668
- function Qi(e, t) {
1668
+ function Zi(e, t) {
1669
1669
  const o = D(e), i = q(e), s = o.visualViewport;
1670
1670
  let r = i.clientWidth, n = i.clientHeight, a = 0, l = 0;
1671
1671
  if (s) {
@@ -1680,8 +1680,8 @@ function Qi(e, t) {
1680
1680
  y: l
1681
1681
  };
1682
1682
  }
1683
- const Zi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1684
- function to(e, t) {
1683
+ const to = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1684
+ function eo(e, t) {
1685
1685
  const o = ot(e, !0, t === "fixed"), i = o.top + e.clientTop, s = o.left + e.clientLeft, r = W(e) ? nt(e) : H(1), n = e.clientWidth * r.x, a = e.clientHeight * r.y, l = s * r.x, c = i * r.y;
1686
1686
  return {
1687
1687
  width: n,
@@ -1690,14 +1690,14 @@ function to(e, t) {
1690
1690
  y: c
1691
1691
  };
1692
1692
  }
1693
- function me(e, t, o) {
1693
+ function ge(e, t, o) {
1694
1694
  let i;
1695
1695
  if (t === "viewport")
1696
- i = Qi(e, o);
1696
+ i = Zi(e, o);
1697
1697
  else if (t === "document")
1698
- i = Ji(q(e));
1698
+ i = Qi(q(e));
1699
1699
  else if (z(t))
1700
- i = to(t, o);
1700
+ i = eo(t, o);
1701
1701
  else {
1702
1702
  const s = Ce(e);
1703
1703
  i = {
@@ -1713,7 +1713,7 @@ function Ae(e, t) {
1713
1713
  const o = tt(e);
1714
1714
  return o === t || !z(o) || rt(o) ? !1 : B(o).position === "fixed" || Ae(o, t);
1715
1715
  }
1716
- function eo(e, t) {
1716
+ function io(e, t) {
1717
1717
  const o = t.get(e);
1718
1718
  if (o)
1719
1719
  return o;
@@ -1722,21 +1722,21 @@ function eo(e, t) {
1722
1722
  let n = r ? tt(e) : e;
1723
1723
  for (; z(n) && !rt(n); ) {
1724
1724
  const a = B(n), l = Rt(n);
1725
- !l && a.position === "fixed" && (s = null), (r ? !l && !s : !l && a.position === "static" && !!s && Zi.has(s.position) || mt(n) && !l && Ae(e, n)) ? i = i.filter((h) => h !== n) : s = a, n = tt(n);
1725
+ !l && a.position === "fixed" && (s = null), (r ? !l && !s : !l && a.position === "static" && !!s && to.has(s.position) || gt(n) && !l && Ae(e, n)) ? i = i.filter((h) => h !== n) : s = a, n = tt(n);
1726
1726
  }
1727
1727
  return t.set(e, i), i;
1728
1728
  }
1729
- function io(e) {
1729
+ function oo(e) {
1730
1730
  let {
1731
1731
  element: t,
1732
1732
  boundary: o,
1733
1733
  rootBoundary: i,
1734
1734
  strategy: s
1735
1735
  } = e;
1736
- const n = [...o === "clippingAncestors" ? St(t) ? [] : eo(t, this._c) : [].concat(o), i], a = n[0], l = n.reduce((c, h) => {
1737
- const d = me(t, h, s);
1736
+ const n = [...o === "clippingAncestors" ? St(t) ? [] : io(t, this._c) : [].concat(o), i], a = n[0], l = n.reduce((c, h) => {
1737
+ const d = ge(t, h, s);
1738
1738
  return c.top = T(d.top, c.top), c.right = Q(d.right, c.right), c.bottom = Q(d.bottom, c.bottom), c.left = T(d.left, c.left), c;
1739
- }, me(t, a, s));
1739
+ }, ge(t, a, s));
1740
1740
  return {
1741
1741
  width: l.right - l.left,
1742
1742
  height: l.bottom - l.top,
@@ -1744,7 +1744,7 @@ function io(e) {
1744
1744
  y: l.top
1745
1745
  };
1746
1746
  }
1747
- function oo(e) {
1747
+ function so(e) {
1748
1748
  const {
1749
1749
  width: t,
1750
1750
  height: o
@@ -1754,7 +1754,7 @@ function oo(e) {
1754
1754
  height: o
1755
1755
  };
1756
1756
  }
1757
- function so(e, t, o) {
1757
+ function no(e, t, o) {
1758
1758
  const i = W(t), s = q(t), r = o === "fixed", n = ot(e, !0, r, t);
1759
1759
  let a = {
1760
1760
  scrollLeft: 0,
@@ -1765,7 +1765,7 @@ function so(e, t, o) {
1765
1765
  l.x = ie(s);
1766
1766
  }
1767
1767
  if (i || !i && !r)
1768
- if ((lt(t) !== "body" || mt(s)) && (a = Tt(t)), i) {
1768
+ if ((lt(t) !== "body" || gt(s)) && (a = Tt(t)), i) {
1769
1769
  const p = ot(t, !0, r, t);
1770
1770
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
1771
1771
  } else s && c();
@@ -1781,7 +1781,7 @@ function so(e, t, o) {
1781
1781
  function $t(e) {
1782
1782
  return B(e).position === "static";
1783
1783
  }
1784
- function ge(e, t) {
1784
+ function me(e, t) {
1785
1785
  if (!W(e) || B(e).position === "fixed")
1786
1786
  return null;
1787
1787
  if (t)
@@ -1802,15 +1802,15 @@ function Se(e, t) {
1802
1802
  }
1803
1803
  return o;
1804
1804
  }
1805
- let i = ge(e, t);
1806
- for (; i && Ii(i) && $t(i); )
1807
- i = ge(i, t);
1808
- return i && rt(i) && $t(i) && !Rt(i) ? o : i || ji(e) || o;
1805
+ let i = me(e, t);
1806
+ for (; i && Hi(i) && $t(i); )
1807
+ i = me(i, t);
1808
+ return i && rt(i) && $t(i) && !Rt(i) ? o : i || Ui(e) || o;
1809
1809
  }
1810
- const no = async function(e) {
1810
+ const ro = async function(e) {
1811
1811
  const t = this.getOffsetParent || Se, o = this.getDimensions, i = await o(e.floating);
1812
1812
  return {
1813
- reference: so(e.reference, await t(e.floating), e.strategy),
1813
+ reference: no(e.reference, await t(e.floating), e.strategy),
1814
1814
  floating: {
1815
1815
  x: 0,
1816
1816
  y: 0,
@@ -1819,25 +1819,25 @@ const no = async function(e) {
1819
1819
  }
1820
1820
  };
1821
1821
  };
1822
- function ro(e) {
1822
+ function ao(e) {
1823
1823
  return B(e).direction === "rtl";
1824
1824
  }
1825
1825
  const Mt = {
1826
- convertOffsetParentRelativeRectToViewportRelativeRect: Xi,
1826
+ convertOffsetParentRelativeRectToViewportRelativeRect: Gi,
1827
1827
  getDocumentElement: q,
1828
- getClippingRect: io,
1828
+ getClippingRect: oo,
1829
1829
  getOffsetParent: Se,
1830
- getElementRects: no,
1831
- getClientRects: Gi,
1832
- getDimensions: oo,
1830
+ getElementRects: ro,
1831
+ getClientRects: Ji,
1832
+ getDimensions: so,
1833
1833
  getScale: nt,
1834
1834
  isElement: z,
1835
- isRTL: ro
1835
+ isRTL: ao
1836
1836
  };
1837
1837
  function Re(e, t) {
1838
1838
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1839
1839
  }
1840
- function ao(e, t) {
1840
+ function lo(e, t) {
1841
1841
  let o = null, i;
1842
1842
  const s = q(e);
1843
1843
  function r() {
@@ -1854,8 +1854,8 @@ function ao(e, t) {
1854
1854
  } = c;
1855
1855
  if (a || t(), !u || !p)
1856
1856
  return;
1857
- const f = yt(d), m = yt(s.clientWidth - (h + u)), g = yt(s.clientHeight - (d + p)), v = yt(h), E = {
1858
- rootMargin: -f + "px " + -m + "px " + -g + "px " + -v + "px",
1857
+ const f = yt(d), g = yt(s.clientWidth - (h + u)), y = yt(s.clientHeight - (d + p)), v = yt(h), E = {
1858
+ rootMargin: -f + "px " + -g + "px " + -y + "px " + -v + "px",
1859
1859
  threshold: T(0, Q(1, l)) || 1
1860
1860
  };
1861
1861
  let C = !0;
@@ -1897,7 +1897,7 @@ function It(e, t, o, i) {
1897
1897
  passive: !0
1898
1898
  }), r && v.addEventListener("resize", o);
1899
1899
  });
1900
- const d = c && a ? ao(c, o) : null;
1900
+ const d = c && a ? lo(c, o) : null;
1901
1901
  let u = -1, p = null;
1902
1902
  n && (p = new ResizeObserver((v) => {
1903
1903
  let [x] = v;
@@ -1906,11 +1906,11 @@ function It(e, t, o, i) {
1906
1906
  (E = p) == null || E.observe(t);
1907
1907
  })), o();
1908
1908
  }), c && !l && p.observe(c), p.observe(t));
1909
- let f, m = l ? ot(e) : null;
1910
- l && g();
1911
- function g() {
1909
+ let f, g = l ? ot(e) : null;
1910
+ l && y();
1911
+ function y() {
1912
1912
  const v = ot(e);
1913
- m && !Re(m, v) && o(), m = v, f = requestAnimationFrame(g);
1913
+ g && !Re(g, v) && o(), g = v, f = requestAnimationFrame(y);
1914
1914
  }
1915
1915
  return o(), () => {
1916
1916
  var v;
@@ -1919,7 +1919,7 @@ function It(e, t, o, i) {
1919
1919
  }), d?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(f);
1920
1920
  };
1921
1921
  }
1922
- const Ht = Ni, Te = _i, Wt = Li, qt = zi, lo = ki, De = Di, Le = (e, t, o) => {
1922
+ const Ht = _i, Te = zi, Wt = ki, qt = Bi, co = $i, De = Li, Le = (e, t, o) => {
1923
1923
  const i = /* @__PURE__ */ new Map(), s = {
1924
1924
  platform: Mt,
1925
1925
  ...o
@@ -1927,7 +1927,7 @@ const Ht = Ni, Te = _i, Wt = Li, qt = zi, lo = ki, De = Di, Le = (e, t, o) => {
1927
1927
  ...s.platform,
1928
1928
  _c: i
1929
1929
  };
1930
- return Ti(e, t, {
1930
+ return Di(e, t, {
1931
1931
  ...s,
1932
1932
  platform: r
1933
1933
  });
@@ -1938,7 +1938,7 @@ function vt(e) {
1938
1938
  const t = window.devicePixelRatio || 1;
1939
1939
  return Math.round(e * t) / t || -1e4;
1940
1940
  }
1941
- const bt = 8, co = 100, ho = (e) => ({
1941
+ const bt = 8, ho = 100, po = (e) => ({
1942
1942
  bottom: ["top", "left", "right"],
1943
1943
  "bottom-end": ["top-end", "left", "right"],
1944
1944
  "bottom-start": ["top-start", "left", "right"],
@@ -1952,7 +1952,7 @@ const bt = 8, co = 100, ho = (e) => ({
1952
1952
  "top-end": ["bottom-end", "left", "right"],
1953
1953
  "top-start": ["bottom-start", "left", "right"]
1954
1954
  })[e] ?? [e];
1955
- class po {
1955
+ class uo {
1956
1956
  constructor(t) {
1957
1957
  this.originalPlacements = /* @__PURE__ */ new WeakMap(), this.allowPlacementUpdate = !1, this.closeForAncestorUpdate = () => {
1958
1958
  !this.allowPlacementUpdate && this.options.type !== "modal" && this.cleanup && this.target.dispatchEvent(new Event("close", { bubbles: !0 })), this.allowPlacementUpdate = !1;
@@ -1999,7 +1999,7 @@ class po {
1999
1999
  const { options: t, target: o } = this;
2000
2000
  await (document.fonts ? document.fonts.ready : Promise.resolve());
2001
2001
  const i = t.trigger instanceof HTMLElement ? Wt() : Wt({
2002
- fallbackPlacements: ho(t.placement),
2002
+ fallbackPlacements: po(t.placement),
2003
2003
  padding: bt
2004
2004
  }), [s = 0, r = 0] = Array.isArray(t?.offset) ? t.offset : [t.offset, 0], n = this.host.elements.find(
2005
2005
  (u) => u.tipElement
@@ -2012,12 +2012,12 @@ class po {
2012
2012
  i,
2013
2013
  qt({
2014
2014
  apply: ({ availableHeight: u, availableWidth: p, rects: { floating: f } }) => {
2015
- const m = Math.max(
2016
- co,
2015
+ const g = Math.max(
2016
+ ho,
2017
2017
  Math.floor(u)
2018
- ), g = f.height;
2019
- this.initialHeight = this.isConstrained && this.initialHeight || g, this.isConstrained = g < this.initialHeight || m <= g;
2020
- const v = this.isConstrained ? `${m}px` : "";
2018
+ ), y = f.height;
2019
+ this.initialHeight = this.isConstrained && this.initialHeight || y, this.isConstrained = y < this.initialHeight || g <= y;
2020
+ const v = this.isConstrained ? `${g}px` : "";
2021
2021
  Object.assign(o.style, {
2022
2022
  maxHeight: v,
2023
2023
  maxWidth: `${Math.floor(p)}px`
@@ -2095,7 +2095,7 @@ class oe {
2095
2095
  return;
2096
2096
  }
2097
2097
  t && (customElements.whenDefined("cx-overlay").then(async () => {
2098
- const { Overlay: o } = await Promise.resolve().then(() => Oo);
2098
+ const { Overlay: o } = await Promise.resolve().then(() => Ao);
2099
2099
  this.overlay = new o(), this.overlay.open = !0;
2100
2100
  }), Promise.resolve().then(() => Fe));
2101
2101
  }
@@ -2129,12 +2129,12 @@ class oe {
2129
2129
  this.isPersistent || this.abort();
2130
2130
  }
2131
2131
  }
2132
- const uo = 300, ke = {
2132
+ const fo = 300, ke = {
2133
2133
  keyboard: "Press Space or Alt+Down Arrow for additional options",
2134
2134
  mouse: "Click and hold for additional options",
2135
2135
  touch: "Double tap and long press for additional options"
2136
2136
  };
2137
- class fo extends oe {
2137
+ class go extends oe {
2138
2138
  constructor() {
2139
2139
  super(...arguments), this.type = Dt.LongPress, this.longpressState = null, this.releaseDescription = it, this.handlePointerup = () => {
2140
2140
  clearTimeout(this.timeout), this.target && (this.longpressState = this.overlay?.state === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
@@ -2157,7 +2157,7 @@ class fo extends oe {
2157
2157
  }
2158
2158
  })
2159
2159
  );
2160
- }, uo));
2160
+ }, fo));
2161
2161
  }
2162
2162
  handleKeydown(t) {
2163
2163
  const { altKey: o, code: i } = t;
@@ -2190,7 +2190,7 @@ class fo extends oe {
2190
2190
  return;
2191
2191
  const o = document.createElement("div");
2192
2192
  o.id = `longpress-describedby-descriptor-${jt()}`;
2193
- const i = ri() || ai() ? "touch" : "keyboard";
2193
+ const i = ai() || li() ? "touch" : "keyboard";
2194
2194
  o.textContent = ke[i], o.slot = "longpress-describedby-descriptor";
2195
2195
  const s = t.getRootNode(), r = this.overlay.getRootNode();
2196
2196
  s === r ? this.overlay.append(o) : (o.hidden = !("host" in s), t.insertAdjacentElement("afterend", o));
@@ -2227,7 +2227,7 @@ class fo extends oe {
2227
2227
  }
2228
2228
  }
2229
2229
  const mo = Vt`:host{pointer-events:none;--swc-overlay-animation-distance:var(--cx-spacing-medium);display:contents}.dialog{box-sizing:border-box;--cx-overlay-open:true;background:0 0;border:0;max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);margin:0;padding:0;display:flex;position:fixed;inset:0 auto auto 0;overflow:visible;opacity:1!important}.dialog:focus{outline:none}:host(:not([open])) .dialog{--cx-overlay-open:false}.dialog::backdrop{display:none}.dialog:before{content:"";position:absolute;inset:-999em;pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}.dialog.defer-slotted-visibility>slot::slotted(*){filter:opacity(0);pointer-events:none;translate:-200vw -200vh;visibility:hidden!important}.dialog.defer-slotted-visibility.defer-slotted-opened>slot::slotted(*){filter:none;pointer-events:auto;translate:none;visibility:visible!important}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--swc-overlay-animation-distance);margin-top:var(--swc-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--swc-overlay-animation-distance);margin-left:calc(-1 * var(--swc-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--swc-overlay-animation-distance);margin-top:calc(-1 * var(--swc-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--swc-overlay-animation-distance);margin-left:var(--swc-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--swc-overlay-animation-distance);margin-top:var(--swc-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--swc-overlay-animation-distance);margin-left:calc(-1 * var(--swc-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--swc-overlay-animation-distance);margin-top:calc(-1 * var(--swc-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--swc-overlay-animation-distance);margin-left:var(--swc-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1}}@supports (overlay:auto){.dialog{transition:all var(--cx-transition-fast,.13s), translate 0s, display var(--cx-transition-fast,.13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}.dialog[actual-placement]{z-index:calc(var(--swc-overlay-z-index-base,1000) + var(--swc-overlay-open-count))}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}}`;
2230
- class go extends Event {
2230
+ class yo extends Event {
2231
2231
  constructor(t, o, i) {
2232
2232
  super("slottable-request", {
2233
2233
  bubbles: !1,
@@ -2236,8 +2236,8 @@ class go extends Event {
2236
2236
  }), this.name = t, this.data = o, this.slotName = i !== void 0 ? `${t}.${i}` : t;
2237
2237
  }
2238
2238
  }
2239
- const yo = Symbol("remove-slottable-request");
2240
- class vo extends oe {
2239
+ const vo = Symbol("remove-slottable-request");
2240
+ class bo extends oe {
2241
2241
  constructor() {
2242
2242
  super(...arguments), this.type = Dt.Click, this.preventNextToggle = !1;
2243
2243
  }
@@ -2259,8 +2259,8 @@ class vo extends oe {
2259
2259
  );
2260
2260
  }
2261
2261
  }
2262
- const bo = 300;
2263
- class wo extends oe {
2262
+ const wo = 300;
2263
+ class xo extends oe {
2264
2264
  constructor() {
2265
2265
  super(...arguments), this.type = Dt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2266
2266
  }
@@ -2319,7 +2319,7 @@ class wo extends oe {
2319
2319
  const t = this.target;
2320
2320
  this.focusedin && t.matches(":focus-visible") || (this.hoverTimeout = setTimeout(() => {
2321
2321
  this.open = !1;
2322
- }, bo));
2322
+ }, wo));
2323
2323
  }
2324
2324
  init() {
2325
2325
  this.abortController?.abort(), this.abortController = new AbortController();
@@ -2355,19 +2355,19 @@ class wo extends oe {
2355
2355
  );
2356
2356
  }
2357
2357
  }
2358
- const xo = {
2359
- click: vo,
2360
- hover: wo,
2361
- longpress: fo
2358
+ const Eo = {
2359
+ click: bo,
2360
+ hover: xo,
2361
+ longpress: go
2362
2362
  };
2363
- var Eo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, S = (e, t, o, i) => {
2364
- for (var s = i > 1 ? void 0 : i ? Po(t, o) : t, r = e.length - 1, n; r >= 0; r--)
2363
+ var Po = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, S = (e, t, o, i) => {
2364
+ for (var s = i > 1 ? void 0 : i ? Co(t, o) : t, r = e.length - 1, n; r >= 0; r--)
2365
2365
  (n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
2366
- return i && s && Eo(t, o, s), s;
2366
+ return i && s && Po(t, o, s), s;
2367
2367
  };
2368
- const Co = "showPopover" in document.createElement("div");
2369
- let ct = pi(dt);
2370
- Co ? ct = mi(ct) : ct = ui(ct);
2368
+ const Oo = "showPopover" in document.createElement("div");
2369
+ let ct = ui(dt);
2370
+ Oo ? ct = mi(ct) : ct = fi(ct);
2371
2371
  var K;
2372
2372
  const O = (K = class extends ct {
2373
2373
  constructor() {
@@ -2399,7 +2399,7 @@ const O = (K = class extends ct {
2399
2399
  return !!this.triggerElement && !(this.triggerElement instanceof Ot);
2400
2400
  }
2401
2401
  get placementController() {
2402
- return this._placementController || (this._placementController = new po(this)), this._placementController;
2402
+ return this._placementController || (this._placementController = new uo(this)), this._placementController;
2403
2403
  }
2404
2404
  get open() {
2405
2405
  return this._open;
@@ -2417,7 +2417,7 @@ const O = (K = class extends ct {
2417
2417
  this._state = t, (this.state === "opened" || this.state === "closed") && this.strategy?.shouldCompleteOpen(), this.requestUpdate("state", o);
2418
2418
  }
2419
2419
  get elementResolver() {
2420
- return this._elementResolver || (this._elementResolver = new di(this)), this._elementResolver;
2420
+ return this._elementResolver || (this._elementResolver = new pi(this)), this._elementResolver;
2421
2421
  }
2422
2422
  get usesDialog() {
2423
2423
  return this.type === "modal" || this.type === "page";
@@ -2499,7 +2499,7 @@ const O = (K = class extends ct {
2499
2499
  }
2500
2500
  }
2501
2501
  bindEvents() {
2502
- this.strategy?.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new xo[this.triggerInteraction](
2502
+ this.strategy?.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new Eo[this.triggerInteraction](
2503
2503
  this.triggerElement,
2504
2504
  {
2505
2505
  overlay: this
@@ -2528,9 +2528,9 @@ const O = (K = class extends ct {
2528
2528
  }
2529
2529
  requestSlottable() {
2530
2530
  this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
2531
- new go(
2531
+ new yo(
2532
2532
  "overlay-content",
2533
- this.open ? {} : yo
2533
+ this.open ? {} : vo
2534
2534
  )
2535
2535
  ), this.lastRequestSlottableState = this.open);
2536
2536
  }
@@ -2592,78 +2592,79 @@ const O = (K = class extends ct {
2592
2592
  }, K.styles = [
2593
2593
  ye,
2594
2594
  Vt`
2595
- ${ze(mo)}
2595
+ ${Be(mo)}
2596
2596
  `
2597
2597
  ], K.openCount = 1, K);
2598
2598
  S([
2599
- y({ type: Boolean })
2599
+ m({ type: Boolean })
2600
2600
  ], O.prototype, "delayed", 1);
2601
2601
  S([
2602
- y({ attribute: "defer-slotted-visibility", type: Boolean })
2602
+ m({ attribute: "defer-slotted-visibility", type: Boolean })
2603
2603
  ], O.prototype, "deferSlottedVisibility", 2);
2604
2604
  S([
2605
2605
  Ct(".dialog")
2606
2606
  ], O.prototype, "dialogEl", 2);
2607
2607
  S([
2608
- y({ type: Boolean })
2608
+ m({ type: Boolean })
2609
2609
  ], O.prototype, "disabled", 1);
2610
2610
  S([
2611
- Ye({
2611
+ Ke({
2612
2612
  flatten: !0,
2613
2613
  selector: ':not([slot="longpress-describedby-descriptor"], slot)'
2614
2614
  // gather only elements slotted into the default slot
2615
2615
  })
2616
2616
  ], O.prototype, "elements", 2);
2617
2617
  S([
2618
- y({ type: Number })
2618
+ m({ type: Number })
2619
2619
  ], O.prototype, "offset", 2);
2620
2620
  S([
2621
- y({ reflect: !0, type: Boolean })
2621
+ m({ reflect: !0, type: Boolean })
2622
2622
  ], O.prototype, "open", 1);
2623
2623
  S([
2624
- y()
2624
+ m()
2625
2625
  ], O.prototype, "placement", 2);
2626
2626
  S([
2627
- y({ attribute: "receives-focus" })
2627
+ m({ attribute: "receives-focus" })
2628
2628
  ], O.prototype, "receivesFocus", 2);
2629
2629
  S([
2630
2630
  Ct("slot")
2631
2631
  ], O.prototype, "slotEl", 2);
2632
2632
  S([
2633
- Me()
2633
+ Ie()
2634
2634
  ], O.prototype, "state", 1);
2635
2635
  S([
2636
- y({ attribute: "tip-padding", type: Number })
2636
+ m({ attribute: "tip-padding", type: Number })
2637
2637
  ], O.prototype, "tipPadding", 2);
2638
2638
  S([
2639
- y()
2639
+ m()
2640
2640
  ], O.prototype, "trigger", 2);
2641
2641
  S([
2642
- y({ attribute: "trigger-element" })
2642
+ m({ attribute: "trigger-element" })
2643
2643
  ], O.prototype, "triggerElement", 2);
2644
2644
  S([
2645
- y({ attribute: "trigger-interaction" })
2645
+ m({ attribute: "trigger-interaction" })
2646
2646
  ], O.prototype, "triggerInteraction", 2);
2647
2647
  S([
2648
- y()
2648
+ m()
2649
2649
  ], O.prototype, "type", 2);
2650
2650
  let $e = O;
2651
- const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2651
+ const Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2652
2652
  __proto__: null,
2653
2653
  LONGPRESS_INSTRUCTIONS: ke,
2654
2654
  Overlay: $e
2655
2655
  }, Symbol.toStringTag, { value: "Module" }));
2656
- Qe("cx-overlay", $e);
2656
+ Ze("cx-overlay", $e);
2657
2657
  const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2658
2658
  __proto__: null
2659
2659
  }, Symbol.toStringTag, { value: "Module" }));
2660
- function Ao(e) {
2661
- return So(e);
2660
+ var Ne = /* @__PURE__ */ ((e) => (e.Display = "display", e.Visibility = "visibility", e))(Ne || {});
2661
+ function So(e) {
2662
+ return Ro(e);
2662
2663
  }
2663
2664
  function Ft(e) {
2664
2665
  return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
2665
2666
  }
2666
- function So(e) {
2667
+ function Ro(e) {
2667
2668
  for (let t = e; t; t = Ft(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
2668
2669
  for (let t = Ft(e); t; t = Ft(t)) {
2669
2670
  if (!(t instanceof Element)) continue;
@@ -2673,21 +2674,21 @@ function So(e) {
2673
2674
  }
2674
2675
  return null;
2675
2676
  }
2676
- const Ro = Vt`:host{--arrow-color:var(--cx-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * .7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));-webkit-overflow-scrolling:auto;display:contents}.popup{isolation:isolate;max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none);position:absolute}.popup--use-size-middleware{width:max-content}.popup--fixed,.popup--overlay{z-index:var(--cx-z-index-dialog);position:fixed}.popup:not(.popup--active){visibility:hidden}.popup__arrow{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color);z-index:-1;position:absolute;rotate:45deg}.popup-hover-bridge:not(.popup-hover-bridge--visible){visibility:hidden}.popup-hover-bridge{z-index:calc(var(--cx-z-index-dropdown) - 1);clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0), var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0), var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0), var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0));position:fixed;inset:0}`;
2677
- var To = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, w = (e, t, o, i) => {
2678
- for (var s = i > 1 ? void 0 : i ? Do(t, o) : t, r = e.length - 1, n; r >= 0; r--)
2677
+ const To = Vt`:host{--arrow-color:var(--cx-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * .7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));-webkit-overflow-scrolling:auto;display:contents}.popup{isolation:isolate;max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none);position:absolute}.popup--use-size-middleware{width:max-content}.popup--fixed,.popup--overlay{z-index:var(--cx-z-index-dialog);position:fixed}:host(:not([toggle=visibility])) .popup:not(.popup--active){display:none}:host([toggle=visibility]) .popup:not(.popup--active){visibility:hidden}.popup__arrow{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color);z-index:-1;position:absolute;rotate:45deg}.popup-hover-bridge:not(.popup-hover-bridge--visible){visibility:hidden}.popup-hover-bridge{z-index:calc(var(--cx-z-index-dropdown) - 1);clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0), var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0), var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0), var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0));position:fixed;inset:0}`;
2678
+ var Do = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, w = (e, t, o, i) => {
2679
+ for (var s = i > 1 ? void 0 : i ? Lo(t, o) : t, r = e.length - 1, n; r >= 0; r--)
2679
2680
  (n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
2680
- return i && s && To(t, o, s), s;
2681
+ return i && s && Do(t, o, s), s;
2681
2682
  };
2682
- function Lo(e) {
2683
+ function ko(e) {
2683
2684
  if (e == null || typeof e != "object")
2684
2685
  return !1;
2685
2686
  const t = "contextElement" in e ? e.contextElement.ownerDocument.defaultView : null;
2686
2687
  return "getBoundingClientRect" in e && ("contextElement" in e ? e.contextElement instanceof (t?.Element ?? Element) : !0);
2687
2688
  }
2688
- let b = class extends Be {
2689
+ let b = class extends Me {
2689
2690
  constructor() {
2690
- super(...arguments), this.localize = new je(this), this.active = !1, this.placement = "top", this.strategy = "absolute", this.distance = 0, this.skidding = 0, this.arrow = !1, this.arrowPlacement = "anchor", this.arrowPadding = 10, this.flip = !1, this.hide = !1, this.hideBoundaryStrategy = "escaped", this.flipFallbackPlacements = "", this.flipFallbackStrategy = "best-fit", this.flipPadding = 0, this.shift = !1, this.shiftPadding = 0, this.autoSizePadding = 0, this.hoverBridge = !1, this.autoWidthFactor = 1, this.updateHoverBridge = () => {
2691
+ super(...arguments), this.localize = new Ue(this), this.active = !1, this.placement = "top", this.strategy = "absolute", this.toggle = Ne.Display, this.distance = 0, this.skidding = 0, this.arrow = !1, this.arrowPlacement = "anchor", this.arrowPadding = 10, this.flip = !1, this.hide = !1, this.hideBoundaryStrategy = "escaped", this.flipFallbackPlacements = "", this.flipFallbackStrategy = "best-fit", this.flipPadding = 0, this.shift = !1, this.shiftPadding = 0, this.autoSizePadding = 0, this.hoverBridge = !1, this.autoWidthFactor = 1, this.updateHoverBridge = () => {
2691
2692
  if (this.hoverBridge && this.anchorEl) {
2692
2693
  const e = this.anchorEl.getBoundingClientRect(), t = this.popup.getBoundingClientRect(), o = this.placement.includes("top") || this.placement.includes("bottom") || this.placement === "center";
2693
2694
  let i = 0, s = 0, r = 0, n = 0, a = 0, l = 0, c = 0, h = 0;
@@ -2719,7 +2720,7 @@ let b = class extends Be {
2719
2720
  }
2720
2721
  connectedUpdatedCallback() {
2721
2722
  if (this.strategy === "overlay" && (this.start(), !ne)) {
2722
- const e = He(this);
2723
+ const e = We(this);
2723
2724
  e && (this.autoSizeBoundary = e, this.flipBoundary = e, this.shiftBoundary = e);
2724
2725
  }
2725
2726
  }
@@ -2735,7 +2736,7 @@ let b = class extends Be {
2735
2736
  if (await this.stop(), this.anchor && typeof this.anchor == "string") {
2736
2737
  const e = this.getRootNode();
2737
2738
  this.anchorEl = e.getElementById(this.anchor);
2738
- } else this.anchor instanceof Element || Lo(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector('[slot="anchor"]');
2739
+ } else this.anchor instanceof Element || ko(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector('[slot="anchor"]');
2739
2740
  this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({
2740
2741
  flatten: !0
2741
2742
  })[0]), this.anchorEl instanceof Element && this.anchorEl.tagName.toLowerCase() === "cx-dialog" && (this.anchorEl = this.anchorEl?.shadowRoot?.querySelector(
@@ -2805,7 +2806,7 @@ let b = class extends Be {
2805
2806
  padding: this.arrowPadding
2806
2807
  })
2807
2808
  ), this.hide && e.push(
2808
- lo({
2809
+ co({
2809
2810
  boundary: this.hideBoundary,
2810
2811
  strategy: this.hideBoundaryStrategy
2811
2812
  })
@@ -2814,7 +2815,7 @@ let b = class extends Be {
2814
2815
  placement: this.placement === "center" ? "bottom" : this.placement,
2815
2816
  platform: {
2816
2817
  ...Mt,
2817
- getOffsetParent: (t) => this.strategy === "absolute" ? Mt.getOffsetParent(t, Ao) : this.strategy === "overlay" && ne ? window : We(t) || window
2818
+ getOffsetParent: (t) => this.strategy === "absolute" ? Mt.getOffsetParent(t, So) : this.strategy === "overlay" && ne ? window : qe(t) || window
2818
2819
  },
2819
2820
  strategy: ["overlay", "fixed"].includes(this.strategy) ? "fixed" : "absolute"
2820
2821
  }).then(({ middlewareData: t, placement: o, x: i, y: s }) => {
@@ -2872,7 +2873,7 @@ let b = class extends Be {
2872
2873
  return U`<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot><span part="hover-bridge" class=${ht({
2873
2874
  "popup-hover-bridge": !0,
2874
2875
  "popup-hover-bridge--visible": this.hoverBridge && this.active
2875
- })}></span>${Ue(
2876
+ })}></span>${Ye(
2876
2877
  this.strategy === "overlay",
2877
2878
  () => e,
2878
2879
  () => U`<div part="popup" class=${ht({
@@ -2886,7 +2887,7 @@ let b = class extends Be {
2886
2887
  `;
2887
2888
  }
2888
2889
  };
2889
- b.styles = [ye, Ro];
2890
+ b.styles = [ye, To];
2890
2891
  w([
2891
2892
  Ct(".popup")
2892
2893
  ], b.prototype, "popup", 2);
@@ -2894,46 +2895,49 @@ w([
2894
2895
  Ct(".popup__arrow")
2895
2896
  ], b.prototype, "arrowEl", 2);
2896
2897
  w([
2897
- y()
2898
+ m()
2898
2899
  ], b.prototype, "anchor", 2);
2899
2900
  w([
2900
- y({ reflect: !0, type: Boolean })
2901
+ m({ reflect: !0, type: Boolean })
2901
2902
  ], b.prototype, "active", 2);
2902
2903
  w([
2903
- y({ reflect: !0 })
2904
+ m({ reflect: !0 })
2904
2905
  ], b.prototype, "placement", 2);
2905
2906
  w([
2906
- y({ reflect: !0 })
2907
+ m({ reflect: !0 })
2907
2908
  ], b.prototype, "strategy", 2);
2908
2909
  w([
2909
- y({ type: Number })
2910
+ m({ reflect: !0, type: String })
2911
+ ], b.prototype, "toggle", 2);
2912
+ w([
2913
+ m({ type: Number })
2910
2914
  ], b.prototype, "distance", 2);
2911
2915
  w([
2912
- y({ type: Number })
2916
+ m({ type: Number })
2913
2917
  ], b.prototype, "skidding", 2);
2914
2918
  w([
2915
- y({ type: Boolean })
2919
+ m({ type: Boolean })
2916
2920
  ], b.prototype, "arrow", 2);
2917
2921
  w([
2918
- y({ attribute: "arrow-placement" })
2922
+ m({ attribute: "arrow-placement" })
2919
2923
  ], b.prototype, "arrowPlacement", 2);
2920
2924
  w([
2921
- y({ attribute: "arrow-padding", type: Number })
2925
+ m({ attribute: "arrow-padding", type: Number })
2922
2926
  ], b.prototype, "arrowPadding", 2);
2923
2927
  w([
2924
- y({ type: Boolean })
2928
+ m({ type: Boolean })
2925
2929
  ], b.prototype, "flip", 2);
2926
2930
  w([
2927
- y({ type: Boolean })
2931
+ m({ type: Boolean })
2928
2932
  ], b.prototype, "hide", 2);
2929
2933
  w([
2930
- y({ attribute: "hide-boundary", type: Object })
2934
+ m({ attribute: "hide-boundary", type: Object })
2931
2935
  ], b.prototype, "hideBoundary", 2);
2932
2936
  w([
2933
- y({ attribute: "hide-boundary-strategy" })
2937
+ m({ attribute: "hide-boundary-strategy" })
2934
2938
  ], b.prototype, "hideBoundaryStrategy", 2);
2935
2939
  w([
2936
- y({
2940
+ m({
2937
2941
  attribute: "flip-fallback-placements",
2938
2942
  converter: {
2939
2943
  fromAttribute: (e) => e.split(" ").map((t) => t.trim()).filter((t) => t !== ""),
@@ -2942,49 +2946,49 @@ w([
2942
2946
  })
2943
2947
  ], b.prototype, "flipFallbackPlacements", 2);
2944
2948
  w([
2945
- y({ attribute: "flip-fallback-strategy" })
2949
+ m({ attribute: "flip-fallback-strategy" })
2946
2950
  ], b.prototype, "flipFallbackStrategy", 2);
2947
2951
  w([
2948
- y({ attribute: "flip-boundary", type: Object })
2952
+ m({ attribute: "flip-boundary", type: Object })
2949
2953
  ], b.prototype, "flipBoundary", 2);
2950
2954
  w([
2951
- y({ attribute: "flip-padding", type: Number })
2955
+ m({ attribute: "flip-padding", type: Number })
2952
2956
  ], b.prototype, "flipPadding", 2);
2953
2957
  w([
2954
- y({ type: Boolean })
2958
+ m({ type: Boolean })
2955
2959
  ], b.prototype, "shift", 2);
2956
2960
  w([
2957
- y({ attribute: "shift-boundary", type: Object })
2961
+ m({ attribute: "shift-boundary", type: Object })
2958
2962
  ], b.prototype, "shiftBoundary", 2);
2959
2963
  w([
2960
- y({ attribute: "shift-padding", type: Number })
2964
+ m({ attribute: "shift-padding", type: Number })
2961
2965
  ], b.prototype, "shiftPadding", 2);
2962
2966
  w([
2963
- y({ attribute: "auto-size" })
2967
+ m({ attribute: "auto-size" })
2964
2968
  ], b.prototype, "autoSize", 2);
2965
2969
  w([
2966
- y()
2970
+ m()
2967
2971
  ], b.prototype, "sync", 2);
2968
2972
  w([
2969
- y({ attribute: "sync-element" })
2973
+ m({ attribute: "sync-element" })
2970
2974
  ], b.prototype, "syncElement", 2);
2971
2975
  w([
2972
- y({ attribute: "auto-size-boundary", type: Object })
2976
+ m({ attribute: "auto-size-boundary", type: Object })
2973
2977
  ], b.prototype, "autoSizeBoundary", 2);
2974
2978
  w([
2975
- y({ attribute: "auto-size-padding", type: Number })
2979
+ m({ attribute: "auto-size-padding", type: Number })
2976
2980
  ], b.prototype, "autoSizePadding", 2);
2977
2981
  w([
2978
- y({ attribute: "hover-bridge", type: Boolean })
2982
+ m({ attribute: "hover-bridge", type: Boolean })
2979
2983
  ], b.prototype, "hoverBridge", 2);
2980
2984
  w([
2981
- y({ attribute: "auto-width-factor" })
2985
+ m({ attribute: "auto-width-factor" })
2982
2986
  ], b.prototype, "autoWidthFactor", 2);
2983
2987
  w([
2984
- Ve(200)
2988
+ je(200)
2985
2989
  ], b.prototype, "start", 1);
2986
2990
  b = w([
2987
- qe("cx-popup")
2991
+ Ve("cx-popup")
2988
2992
  ], b);
2989
2993
  export {
2990
2994
  b as default