@orangelogic/design-system 2.78.0 → 2.79.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.
Files changed (184) hide show
  1. package/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
  21. package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
  22. package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
  23. package/library/chunks/button.styles.CKqn956w.js +5 -0
  24. package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
  25. package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
  26. package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
  27. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  28. package/library/chunks/confirm-popover.BbHneK19.js +121 -0
  29. package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
  30. package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
  31. package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
  32. package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
  33. package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
  34. package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
  35. package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
  36. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  37. package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
  38. package/library/chunks/header.D68fIfe2.js +170 -0
  39. package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
  40. package/library/chunks/icon-button.BuhCp--_.js +149 -0
  41. package/library/chunks/iframe.BQFZQMTe.js +73 -0
  42. package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
  43. package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
  44. package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
  45. package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
  46. package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
  47. package/library/chunks/option.DljDoFx4.js +123 -0
  48. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  49. package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
  50. package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
  51. package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
  52. package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
  53. package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
  54. package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
  55. package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
  56. package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
  57. package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
  58. package/library/chunks/typography.DJC_UXgs.js +52 -0
  59. package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
  60. package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
  61. package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
  62. package/library/components/alert.js +9 -177
  63. package/library/components/am-chart.js +2 -2
  64. package/library/components/animated-image.js +12 -100
  65. package/library/components/animation.js +2 -2
  66. package/library/components/array-line-clamp.js +7 -88
  67. package/library/components/asset-link-format.js +48 -626
  68. package/library/components/atoms.js +17 -17
  69. package/library/components/avatar.js +5 -94
  70. package/library/components/badge.js +11 -139
  71. package/library/components/bicolor-picker.js +4 -23
  72. package/library/components/border-input-group.js +4 -25
  73. package/library/components/breadcrumb-item.js +24 -155
  74. package/library/components/breadcrumb.js +3 -21
  75. package/library/components/button-group.js +3 -28
  76. package/library/components/button.js +3 -3
  77. package/library/components/card.js +4 -126
  78. package/library/components/checkbox.js +11 -252
  79. package/library/components/color-picker.js +54 -725
  80. package/library/components/color-swatch-group.js +5 -5
  81. package/library/components/color-swatch.js +3 -3
  82. package/library/components/confirm-popover.js +5 -5
  83. package/library/components/copy-button.js +9 -254
  84. package/library/components/corner-position-input-group.js +4 -57
  85. package/library/components/cropper.js +2 -2
  86. package/library/components/details.js +6 -152
  87. package/library/components/dialog.js +4 -4
  88. package/library/components/divider.js +5 -67
  89. package/library/components/dot-pagination.js +2 -2
  90. package/library/components/dot-status.js +25 -95
  91. package/library/components/drawer.js +8 -239
  92. package/library/components/dropdown.js +47 -149
  93. package/library/components/dynamic-select.js +7 -72
  94. package/library/components/e-chart.js +6 -49
  95. package/library/components/element-clamp.js +5 -78
  96. package/library/components/file-on-demand.js +9 -9
  97. package/library/components/folder-select.js +3 -3
  98. package/library/components/format-date.js +2 -6
  99. package/library/components/format-time.js +2 -12
  100. package/library/components/grid-item.js +4 -171
  101. package/library/components/grid.js +5 -41
  102. package/library/components/header.js +2 -2
  103. package/library/components/icon-button.js +2 -2
  104. package/library/components/icon.js +8 -2448
  105. package/library/components/iframe.js +2 -2
  106. package/library/components/image-comparer.js +7 -127
  107. package/library/components/image.js +2 -2
  108. package/library/components/include.js +2 -6
  109. package/library/components/input-group.js +4 -29
  110. package/library/components/input.js +21 -715
  111. package/library/components/line-clamp.js +7 -83
  112. package/library/components/list-editor.js +7 -7
  113. package/library/components/markdown.js +1 -3
  114. package/library/components/masonry.js +22 -221
  115. package/library/components/menu-item.js +9 -309
  116. package/library/components/menu-label.js +3 -20
  117. package/library/components/menu-section.js +3 -17
  118. package/library/components/menu.js +4 -112
  119. package/library/components/molecules.js +5 -5
  120. package/library/components/mutation-observer.js +2 -6
  121. package/library/components/option.js +2 -2
  122. package/library/components/organisms.js +2 -2
  123. package/library/components/padding-input-group.js +5 -16
  124. package/library/components/pagination.js +5 -5
  125. package/library/components/popup.js +204 -538
  126. package/library/components/position-picker.js +3 -93
  127. package/library/components/progress-bar.js +18 -135
  128. package/library/components/progress-ring.js +3 -94
  129. package/library/components/qr-code.js +4 -16
  130. package/library/components/radio-button.js +4 -24
  131. package/library/components/radio-card.js +7 -175
  132. package/library/components/radio-group.js +20 -151
  133. package/library/components/radio.js +13 -170
  134. package/library/components/range.js +120 -657
  135. package/library/components/rating.js +56 -236
  136. package/library/components/relative-time.js +2 -12
  137. package/library/components/resize-observer.js +3 -7
  138. package/library/components/select.js +225 -933
  139. package/library/components/shadow-input-group.js +5 -24
  140. package/library/components/share-option-list.js +18 -310
  141. package/library/components/sidebar.js +14 -220
  142. package/library/components/size-input-group.js +10 -75
  143. package/library/components/skeleton.js +7 -80
  144. package/library/components/space.js +6 -143
  145. package/library/components/spinner.js +6 -75
  146. package/library/components/split-panel.js +16 -123
  147. package/library/components/step.js +21 -272
  148. package/library/components/stepper-wizard.js +9 -43
  149. package/library/components/stepper.js +16 -33
  150. package/library/components/switch.js +11 -274
  151. package/library/components/tab-group.js +4 -4
  152. package/library/components/tab-panel.js +4 -31
  153. package/library/components/tab.js +9 -255
  154. package/library/components/table.js +6 -6
  155. package/library/components/tag.js +14 -165
  156. package/library/components/textarea.js +14 -363
  157. package/library/components/timecode.js +4 -23
  158. package/library/components/tooltip.js +8 -92
  159. package/library/components/tree-item.js +2 -2
  160. package/library/components/tree.js +2 -2
  161. package/library/components/typeface.js +18 -117
  162. package/library/components/types.js +777 -12001
  163. package/library/components/typography.js +2 -2
  164. package/library/components/video.js +3522 -5919
  165. package/library/components/visually-hidden.js +3 -15
  166. package/library/package.json +4 -1
  167. package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
  168. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  169. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  170. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
  171. package/library/packages/types/src/table.d.ts +2 -0
  172. package/library/react-web-component.d.ts +7 -3
  173. package/package.json +4 -1
  174. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  175. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  176. package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
  177. package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
  178. package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
  179. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  180. package/library/chunks/header.m7v3M94Z.js +0 -777
  181. package/library/chunks/icon-button.C3eqeQl9.js +0 -683
  182. package/library/chunks/iframe.CNEyWhcM.js +0 -160
  183. package/library/chunks/option.Csqefux_.js +0 -296
  184. package/library/chunks/typography.oDzoLbZS.js +0 -149
@@ -1,17 +1,17 @@
1
- import { a as _e, i as Vt, r as ze, x as j } from "../chunks/lit-element.jLBm65_O.js";
1
+ import { a as _e, i as Vt, r as ze, x as U } from "../chunks/lit-element.jLBm65_O.js";
2
2
  import { n as y, C as Be } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
- import { r as Ie } from "../chunks/state.CSDxrqLd.js";
3
+ import { r as Me } from "../chunks/state.CSDxrqLd.js";
4
4
  import { e as Ct } from "../chunks/query.BBf1UFkC.js";
5
- import { e as Me } 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
- import { o as Dt } from "../chunks/if-defined.BRoBj_Rp.js";
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 mt, p as ne, f as He, a as We } from "../chunks/browser.BHOCIF_A.js";
10
- import { c as ye } from "../chunks/component.styles.DMSLciL5.js";
9
+ import { i as gt, p as ne, f as Ie, a as We } from "../chunks/browser.BHOCIF_A.js";
10
+ import { c as ye } from "../chunks/component.styles.CRO4Odto.js";
11
11
  import { c as qe } from "../chunks/custom-element.L4WJXn1j.js";
12
12
  import { d as Ve } from "../chunks/debounce.DaHuiSGU.js";
13
- import { L as Ue } from "../chunks/i18n.BUW7B9hr.js";
14
- import { n as je } from "../chunks/when.Dr1es41R.js";
13
+ import { L as je } from "../chunks/i18n.BUW7B9hr.js";
14
+ import { n as Ue } from "../chunks/when.Dr1es41R.js";
15
15
  /**
16
16
  * @license
17
17
  * Copyright 2021 Google LLC
@@ -20,7 +20,7 @@ import { n as je } from "../chunks/when.Dr1es41R.js";
20
20
  function Ye(e) {
21
21
  return (t, o) => {
22
22
  const { slot: i, selector: s } = e ?? {}, r = "slot" + (i ? `[name=${i}]` : ":not([name])");
23
- return Me(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
  } });
@@ -82,7 +82,7 @@ function Xe(e) {
82
82
  }
83
83
  class Ge extends Xe(_e) {
84
84
  }
85
- function Qe(e, t, o) {
85
+ function Je(e, t, o) {
86
86
  const i = e.getAttribute(t);
87
87
  let s = i ? i.split(/\s+/) : [];
88
88
  s = s.filter(
@@ -92,9 +92,9 @@ function Qe(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(" ")), () => Qe(e, t, i));
95
+ } : (r.push(...i), e.setAttribute(t, r.join(" ")), () => Je(e, t, i));
96
96
  }
97
- function Je(e, t) {
97
+ function Qe(e, t) {
98
98
  customElements.get(e) || customElements.define(e, t);
99
99
  }
100
100
  function Ze(e, t, o = []) {
@@ -126,7 +126,7 @@ const ti = (e, t, {
126
126
  return Ze(a, e, l);
127
127
  };
128
128
  };
129
- function Ut() {
129
+ function jt() {
130
130
  return Array.from(
131
131
  crypto.getRandomValues(new Uint8Array(4)),
132
132
  (e) => `0${(e & 255).toString(16)}`.slice(-2)
@@ -141,7 +141,7 @@ const ei = [
141
141
  "select",
142
142
  "textarea",
143
143
  "[tabindex]"
144
- ], ae = ':not([tabindex="-1"])', ft = ei.join(`${ae}, `) + ae, jt = (e) => e.querySelector(
144
+ ], ae = ':not([tabindex="-1"])', ft = ei.join(`${ae}, `) + ae, Ut = (e) => e.querySelector(
145
145
  ft
146
146
  ), Yt = (e) => e.assignedElements().find(
147
147
  (o) => o.matches(ft)
@@ -420,7 +420,7 @@ class Gt extends Event {
420
420
  }), this.currentState = "open", this.newState = "closed";
421
421
  }
422
422
  }
423
- class Qt extends Event {
423
+ class Jt extends Event {
424
424
  constructor() {
425
425
  super("beforetoggle", {
426
426
  bubbles: !1,
@@ -486,8 +486,8 @@ function pi(e) {
486
486
  }
487
487
  if (l > 0)
488
488
  return;
489
- const c = i ? Qt : Gt;
490
- this.dispatchEvent(new c()), i && (a.matches(ft) && (s = a), s = s || jt(a), s || a.querySelectorAll("slot").forEach((d) => {
489
+ const c = i ? Jt : Gt;
490
+ this.dispatchEvent(new c()), i && (a.matches(ft) && (s = a), s = s || Ut(a), s || a.querySelectorAll("slot").forEach((d) => {
491
491
  s || (s = Yt(d));
492
492
  }), !(!this.isConnected || this.dialogEl.open) && this.dialogEl.showModal());
493
493
  }, n = (a, l) => () => {
@@ -565,10 +565,10 @@ function ui(e) {
565
565
  if (i !== this.open)
566
566
  return;
567
567
  if (a.open = i, l === 0) {
568
- const h = i ? Qt : Gt;
568
+ const h = i ? Jt : Gt;
569
569
  this.dispatchEvent(new h());
570
570
  }
571
- if (i !== !0 || (a.matches(ft) && (s = a), s = s || jt(a), s))
571
+ if (i !== !0 || (a.matches(ft) && (s = a), s = s || Ut(a), s))
572
572
  return;
573
573
  a.querySelectorAll("slot").forEach((h) => {
574
574
  s || (s = Yt(h));
@@ -617,7 +617,7 @@ function kt(e) {
617
617
  }
618
618
  return t || o;
619
619
  }
620
- function gi(e) {
620
+ function mi(e) {
621
621
  class t extends e {
622
622
  constructor(...i) {
623
623
  super(...i), this.handleFullscreenChange = this.handleFullscreenChange.bind(this);
@@ -666,15 +666,15 @@ function gi(e) {
666
666
  kt(this.dialogEl) && (this.dialogEl.hidePopover(), this.dialogEl.showPopover());
667
667
  }
668
668
  firstUpdated(i) {
669
- super.firstUpdated(i), mt() && k().then(() => {
669
+ super.firstUpdated(i), gt() && k().then(() => {
670
670
  this.dialogEl.showPopover();
671
671
  });
672
672
  }
673
673
  runConnectedCallback() {
674
- mt() && document.addEventListener("fullscreenchange", this.handleFullscreenChange);
674
+ gt() && document.addEventListener("fullscreenchange", this.handleFullscreenChange);
675
675
  }
676
676
  disconnectedCallback() {
677
- super.disconnectedCallback(), mt() && document.removeEventListener(
677
+ super.disconnectedCallback(), gt() && document.removeEventListener(
678
678
  "fullscreenchange",
679
679
  this.handleFullscreenChange
680
680
  );
@@ -688,10 +688,10 @@ function gi(e) {
688
688
  let s = null;
689
689
  const r = (a, l) => () => {
690
690
  if (a.open = i, l === 0) {
691
- const h = i ? Qt : Gt;
691
+ const h = i ? Jt : Gt;
692
692
  this.dispatchEvent(new h());
693
693
  }
694
- if (!i || (a.matches(ft) && (s = a), s = s || jt(a), s))
694
+ if (!i || (a.matches(ft) && (s = a), s = s || Ut(a), s))
695
695
  return;
696
696
  a.querySelectorAll("slot").forEach((h) => {
697
697
  s || (s = Yt(h));
@@ -740,7 +740,7 @@ function gi(e) {
740
740
  h();
741
741
  },
742
742
  { once: !0 }
743
- ), mt() || this.dialogEl.hidePopover()) : h();
743
+ ), gt() || 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,7 +749,7 @@ function gi(e) {
749
749
  }
750
750
  return t;
751
751
  }
752
- const mi = "showPopover" in document.createElement("div");
752
+ const gi = "showPopover" in document.createElement("div");
753
753
  class yi {
754
754
  constructor() {
755
755
  this.root = document.body, this.stack = [], this.handlePointerdown = (t) => {
@@ -784,7 +784,7 @@ class yi {
784
784
  t.preventDefault();
785
785
  return;
786
786
  }
787
- mi || o?.type !== "manual" && o && this.closeOverlay(o);
787
+ gi || o?.type !== "manual" && o && this.closeOverlay(o);
788
788
  }, this.bindEvents();
789
789
  }
790
790
  get document() {
@@ -856,7 +856,7 @@ class yi {
856
856
  this.closeOverlay(t);
857
857
  }
858
858
  }
859
- const le = new yi(), vi = ["top", "right", "bottom", "left"], J = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, H = (e) => ({
859
+ const le = new yi(), vi = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, I = (e) => ({
860
860
  x: e,
861
861
  y: e
862
862
  }), bi = {
@@ -869,7 +869,7 @@ const le = new yi(), vi = ["top", "right", "bottom", "left"], J = Math.min, T =
869
869
  end: "start"
870
870
  };
871
871
  function _t(e, t, o) {
872
- return T(e, J(t, o));
872
+ return T(e, Q(t, o));
873
873
  }
874
874
  function st(e, t) {
875
875
  return typeof e == "function" ? e(t) : e;
@@ -883,7 +883,7 @@ function at(e) {
883
883
  function be(e) {
884
884
  return e === "x" ? "y" : "x";
885
885
  }
886
- function Jt(e) {
886
+ function Qt(e) {
887
887
  return e === "y" ? "height" : "width";
888
888
  }
889
889
  const xi = /* @__PURE__ */ new Set(["top", "bottom"]);
@@ -895,7 +895,7 @@ function Zt(e) {
895
895
  }
896
896
  function Ei(e, t, o) {
897
897
  o === void 0 && (o = !1);
898
- const i = at(e), s = Zt(e), r = Jt(s);
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
  }
@@ -967,7 +967,7 @@ function de(e, t, o) {
967
967
  reference: i,
968
968
  floating: s
969
969
  } = e;
970
- const r = Y(t), n = Zt(t), a = Jt(n), l = Z(t), c = r === "y", h = i.x + i.width / 2 - s.width / 2, d = i.y + i.height / 2 - s.height / 2, u = i[a] / 2 - s[a] / 2;
970
+ const r = Y(t), n = Zt(t), a = Qt(n), l = Z(t), c = r === "y", h = i.x + i.width / 2 - s.width / 2, d = i.y + i.height / 2 - s.height / 2, u = i[a] / 2 - s[a] / 2;
971
971
  let p;
972
972
  switch (l) {
973
973
  case "top":
@@ -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 g = 0; g < a.length; g++) {
1028
+ for (let m = 0; m < a.length; m++) {
1029
1029
  const {
1030
- name: m,
1030
+ name: g,
1031
1031
  fn: v
1032
- } = a[g], {
1032
+ } = a[m], {
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
- [m]: {
1054
- ...p[m],
1053
+ [g]: {
1054
+ ...p[g],
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)), g = -1);
1064
+ } = de(c, u, l)), m = -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), m = a[u ? d === "floating" ? "reference" : "floating" : d], v = Pt(await r.getClippingRect({
1091
- element: (o = await (r.isElement == null ? void 0 : r.isElement(m))) == null || o ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
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)),
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 Li = (e) => ({
1119
+ const Di = (e) => ({
1120
1120
  name: "arrow",
1121
1121
  options: e,
1122
1122
  async fn(t) {
@@ -1137,23 +1137,23 @@ const Li = (e) => ({
1137
1137
  const d = we(h), u = {
1138
1138
  x: o,
1139
1139
  y: i
1140
- }, p = Zt(s), f = Jt(p), g = await n.getDimensions(c), m = p === "y", v = m ? "top" : "left", x = m ? "bottom" : "right", E = m ? "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), 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));
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, I = A / 2 - g[f] / 2 - 1, D = J(d[v], I), X = J(d[x], I), M = D, G = A - g[f] - X, R = A / 2 - g[f] / 2 + V, et = _t(M, R, G), U = !l.arrow && at(s) != null && R !== et && r.reference[f] / 2 - (R < M ? D : X) - g[f] / 2 < 0, F = U ? R < M ? R - M : R - G : 0;
1143
+ const V = C / 2 - P / 2, M = A / 2 - m[f] / 2 - 1, L = Q(d[v], M), X = Q(d[x], M), H = L, G = A - m[f] - X, R = A / 2 - m[f] / 2 + V, et = _t(H, R, G), j = !l.arrow && at(s) != null && R !== et && r.reference[f] / 2 - (R < H ? L : X) - m[f] / 2 < 0, F = j ? R < H ? R - H : R - G : 0;
1144
1144
  return {
1145
1145
  [p]: u[p] + F,
1146
1146
  data: {
1147
1147
  [p]: et,
1148
1148
  centerOffset: R - et - F,
1149
- ...U && {
1149
+ ...j && {
1150
1150
  alignmentOffset: F
1151
1151
  }
1152
1152
  },
1153
- reset: U
1153
+ reset: j
1154
1154
  };
1155
1155
  }
1156
- }), Di = function(e) {
1156
+ }), Li = function(e) {
1157
1157
  return e === void 0 && (e = {}), {
1158
1158
  name: "flip",
1159
1159
  options: e,
@@ -1172,62 +1172,62 @@ const Li = (e) => ({
1172
1172
  fallbackPlacements: u,
1173
1173
  fallbackStrategy: p = "bestFit",
1174
1174
  fallbackAxisSideDirection: f = "none",
1175
- flipAlignment: g = !0,
1176
- ...m
1175
+ flipAlignment: m = !0,
1176
+ ...g
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 || !g ? [Et(a)] : Pi(a)), $ = f !== "none";
1181
- !u && $ && P.push(...Si(a, g, f, C));
1182
- const A = [a, ...P], V = await pt(t, m), I = [];
1183
- let D = ((i = r.flip) == null ? void 0 : i.overflows) || [];
1184
- if (h && I.push(V[v]), d) {
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 = [];
1183
+ let L = ((i = r.flip) == null ? void 0 : i.overflows) || [];
1184
+ if (h && M.push(V[v]), d) {
1185
1185
  const R = Ei(s, n, C);
1186
- I.push(V[R[0]], V[R[1]]);
1186
+ M.push(V[R[0]], V[R[1]]);
1187
1187
  }
1188
- if (D = [...D, {
1188
+ if (L = [...L, {
1189
1189
  placement: s,
1190
- overflows: I
1191
- }], !I.every((R) => R <= 0)) {
1192
- var X, M;
1190
+ overflows: M
1191
+ }], !M.every((R) => R <= 0)) {
1192
+ var X, H;
1193
1193
  const R = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, et = A[R];
1194
1194
  if (et && (!(d === "alignment" ? x !== Y(et) : !1) || // We leave the current main axis only if every placement on that axis
1195
1195
  // overflows the main axis.
1196
- D.every((N) => Y(N.placement) === x ? N.overflows[0] > 0 : !0)))
1196
+ L.every((N) => Y(N.placement) === x ? N.overflows[0] > 0 : !0)))
1197
1197
  return {
1198
1198
  data: {
1199
1199
  index: R,
1200
- overflows: D
1200
+ overflows: L
1201
1201
  },
1202
1202
  reset: {
1203
1203
  placement: et
1204
1204
  }
1205
1205
  };
1206
- let U = (M = D.filter((F) => F.overflows[0] <= 0).sort((F, N) => F.overflows[1] - N.overflows[1])[0]) == null ? void 0 : M.placement;
1207
- if (!U)
1206
+ let j = (H = L.filter((F) => F.overflows[0] <= 0).sort((F, N) => F.overflows[1] - N.overflows[1])[0]) == null ? void 0 : H.placement;
1207
+ if (!j)
1208
1208
  switch (p) {
1209
1209
  case "bestFit": {
1210
1210
  var G;
1211
- const F = (G = D.filter((N) => {
1211
+ const F = (G = L.filter((N) => {
1212
1212
  if ($) {
1213
- const Q = Y(N.placement);
1214
- return Q === x || // Create a bias to the `y` side axis due to horizontal
1213
+ const J = Y(N.placement);
1214
+ return J === x || // Create a bias to the `y` side axis due to horizontal
1215
1215
  // reading directions favoring greater width.
1216
- Q === "y";
1216
+ J === "y";
1217
1217
  }
1218
1218
  return !0;
1219
- }).map((N) => [N.placement, N.overflows.filter((Q) => Q > 0).reduce((Q, Ne) => Q + Ne, 0)]).sort((N, Q) => N[1] - Q[1])[0]) == null ? void 0 : G[0];
1220
- F && (U = F);
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];
1220
+ F && (j = F);
1221
1221
  break;
1222
1222
  }
1223
1223
  case "initialPlacement":
1224
- U = a;
1224
+ j = a;
1225
1225
  break;
1226
1226
  }
1227
- if (s !== U)
1227
+ if (s !== j)
1228
1228
  return {
1229
1229
  reset: {
1230
- placement: U
1230
+ placement: j
1231
1231
  }
1232
1232
  };
1233
1233
  }
@@ -1350,11 +1350,11 @@ const Ni = function(e) {
1350
1350
  mainAxis: r = !0,
1351
1351
  crossAxis: n = !1,
1352
1352
  limiter: a = {
1353
- fn: (m) => {
1353
+ fn: (g) => {
1354
1354
  let {
1355
1355
  x: v,
1356
1356
  y: x
1357
- } = m;
1357
+ } = g;
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 m = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", x = p + h[m], E = p - h[v];
1371
+ const g = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", x = p + h[g], E = p - h[v];
1372
1372
  p = _t(x, p, E);
1373
1373
  }
1374
1374
  if (n) {
1375
- const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = f + h[m], E = f - h[v];
1375
+ const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = f + h[g], E = f - h[v];
1376
1376
  f = _t(x, f, E);
1377
1377
  }
1378
- const g = a.fn({
1378
+ const m = a.fn({
1379
1379
  ...t,
1380
1380
  [u]: p,
1381
1381
  [d]: f
1382
1382
  });
1383
1383
  return {
1384
- ...g,
1384
+ ...m,
1385
1385
  data: {
1386
- x: g.x - o,
1387
- y: g.y - i,
1386
+ x: m.x - o,
1387
+ y: m.y - i,
1388
1388
  enabled: {
1389
1389
  [u]: r,
1390
1390
  [d]: n
@@ -1410,23 +1410,23 @@ 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: g
1413
+ height: m
1414
1414
  } = r.floating;
1415
- let m, v;
1416
- d === "top" || d === "bottom" ? (m = d, v = u === (await (n.isRTL == null ? void 0 : n.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = d, m = u === "end" ? "top" : "bottom");
1417
- const x = g - h.top - h.bottom, E = f - h.left - h.right, C = J(g - h[m], x), P = J(f - h[v], E), $ = !t.middlewareData.shift;
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;
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
- const D = T(h.left, 0), X = T(h.right, 0), M = T(h.top, 0), G = T(h.bottom, 0);
1421
- p ? V = f - 2 * (D !== 0 || X !== 0 ? D + X : T(h.left, h.right)) : A = g - 2 * (M !== 0 || G !== 0 ? M + G : T(h.top, h.bottom));
1420
+ const L = T(h.left, 0), X = T(h.right, 0), H = 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 * (H !== 0 || G !== 0 ? H + G : T(h.top, h.bottom));
1422
1422
  }
1423
1423
  await l({
1424
1424
  ...t,
1425
1425
  availableWidth: V,
1426
1426
  availableHeight: A
1427
1427
  });
1428
- const I = await n.getDimensions(a.floating);
1429
- return f !== I.width || g !== I.height ? {
1428
+ const M = await n.getDimensions(a.floating);
1429
+ return f !== M.width || m !== M.height ? {
1430
1430
  reset: {
1431
1431
  rects: !0
1432
1432
  }
@@ -1440,7 +1440,7 @@ function At() {
1440
1440
  function lt(e) {
1441
1441
  return xe(e) ? (e.nodeName || "").toLowerCase() : "#document";
1442
1442
  }
1443
- function L(e) {
1443
+ function D(e) {
1444
1444
  var t;
1445
1445
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1446
1446
  }
@@ -1449,19 +1449,19 @@ function q(e) {
1449
1449
  return (t = (xe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1450
1450
  }
1451
1451
  function xe(e) {
1452
- return At() ? e instanceof Node || e instanceof L(e).Node : !1;
1452
+ return At() ? e instanceof Node || e instanceof D(e).Node : !1;
1453
1453
  }
1454
1454
  function z(e) {
1455
- return At() ? e instanceof Element || e instanceof L(e).Element : !1;
1455
+ return At() ? e instanceof Element || e instanceof D(e).Element : !1;
1456
1456
  }
1457
1457
  function W(e) {
1458
- return At() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
1458
+ return At() ? e instanceof HTMLElement || e instanceof D(e).HTMLElement : !1;
1459
1459
  }
1460
1460
  function fe(e) {
1461
- return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
1461
+ return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof D(e).ShadowRoot;
1462
1462
  }
1463
1463
  const Bi = /* @__PURE__ */ new Set(["inline", "contents"]);
1464
- function gt(e) {
1464
+ function mt(e) {
1465
1465
  const {
1466
1466
  overflow: t,
1467
1467
  overflowX: o,
@@ -1470,13 +1470,13 @@ function gt(e) {
1470
1470
  } = B(e);
1471
1471
  return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !Bi.has(s);
1472
1472
  }
1473
- const Ii = /* @__PURE__ */ new Set(["table", "td", "th"]);
1474
- function Mi(e) {
1475
- return Ii.has(lt(e));
1473
+ const Mi = /* @__PURE__ */ new Set(["table", "td", "th"]);
1474
+ function Hi(e) {
1475
+ return Mi.has(lt(e));
1476
1476
  }
1477
- const Hi = [":popover-open", ":modal"];
1477
+ const Ii = [":popover-open", ":modal"];
1478
1478
  function St(e) {
1479
- return Hi.some((t) => {
1479
+ return Ii.some((t) => {
1480
1480
  try {
1481
1481
  return e.matches(t);
1482
1482
  } catch {
@@ -1489,7 +1489,7 @@ function Rt(e) {
1489
1489
  const t = te(), o = z(e) ? B(e) : e;
1490
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));
1491
1491
  }
1492
- function Ui(e) {
1492
+ function ji(e) {
1493
1493
  let t = tt(e);
1494
1494
  for (; W(t) && !rt(t); ) {
1495
1495
  if (Rt(t))
@@ -1503,12 +1503,12 @@ function Ui(e) {
1503
1503
  function te() {
1504
1504
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1505
1505
  }
1506
- const ji = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1506
+ const Ui = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1507
1507
  function rt(e) {
1508
- return ji.has(lt(e));
1508
+ return Ui.has(lt(e));
1509
1509
  }
1510
1510
  function B(e) {
1511
- return L(e).getComputedStyle(e);
1511
+ return D(e).getComputedStyle(e);
1512
1512
  }
1513
1513
  function Tt(e) {
1514
1514
  return z(e) ? {
@@ -1533,15 +1533,15 @@ 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) && gt(t) ? t : Ee(t);
1536
+ return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && mt(t) ? t : Ee(t);
1537
1537
  }
1538
1538
  function ut(e, t, o) {
1539
1539
  var i;
1540
1540
  t === void 0 && (t = []), o === void 0 && (o = !0);
1541
- const s = Ee(e), r = s === ((i = e.ownerDocument) == null ? void 0 : i.body), n = L(s);
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 || [], gt(s) ? s : [], a && o ? ut(a) : []);
1544
+ return t.concat(n, n.visualViewport || [], mt(s) ? s : [], a && o ? ut(a) : []);
1545
1545
  }
1546
1546
  return t.concat(s, ut(s, [], o));
1547
1547
  }
@@ -1564,7 +1564,7 @@ function ee(e) {
1564
1564
  function nt(e) {
1565
1565
  const t = ee(e);
1566
1566
  if (!W(t))
1567
- return H(1);
1567
+ return I(1);
1568
1568
  const o = t.getBoundingClientRect(), {
1569
1569
  width: i,
1570
1570
  height: s,
@@ -1576,30 +1576,30 @@ function nt(e) {
1576
1576
  y: a
1577
1577
  };
1578
1578
  }
1579
- const Yi = /* @__PURE__ */ H(0);
1579
+ const Yi = /* @__PURE__ */ I(0);
1580
1580
  function Ce(e) {
1581
- const t = L(e);
1581
+ const t = D(e);
1582
1582
  return !te() || !t.visualViewport ? Yi : {
1583
1583
  x: t.visualViewport.offsetLeft,
1584
1584
  y: t.visualViewport.offsetTop
1585
1585
  };
1586
1586
  }
1587
1587
  function Ki(e, t, o) {
1588
- return t === void 0 && (t = !1), !o || t && o !== L(e) ? !1 : t;
1588
+ return t === void 0 && (t = !1), !o || t && o !== D(e) ? !1 : t;
1589
1589
  }
1590
1590
  function ot(e, t, o, i) {
1591
1591
  t === void 0 && (t = !1), o === void 0 && (o = !1);
1592
1592
  const s = e.getBoundingClientRect(), r = ee(e);
1593
- let n = H(1);
1593
+ let n = I(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 = Ki(r, o, i) ? Ce(r) : I(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
- const u = L(r), p = i && z(i) ? L(i) : i;
1599
- let f = u, g = Bt(f);
1600
- for (; g && i && p !== f; ) {
1601
- const m = nt(g), v = g.getBoundingClientRect(), x = B(g), E = v.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, C = v.top + (g.clientTop + parseFloat(x.paddingTop)) * m.y;
1602
- l *= m.x, c *= m.y, h *= m.x, d *= m.y, l += E, c += C, f = L(g), g = Bt(f);
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);
1603
1603
  }
1604
1604
  }
1605
1605
  return Pt({
@@ -1637,13 +1637,13 @@ function Xi(e) {
1637
1637
  let l = {
1638
1638
  scrollLeft: 0,
1639
1639
  scrollTop: 0
1640
- }, c = H(1);
1641
- const h = H(0), d = W(i);
1642
- if ((d || !d && !r) && ((lt(i) !== "body" || gt(n)) && (l = Tt(i)), W(i))) {
1640
+ }, c = I(1);
1641
+ const h = I(0), d = W(i);
1642
+ if ((d || !d && !r) && ((lt(i) !== "body" || mt(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
  }
1646
- const u = n && !d && !r ? Oe(n, l, !0) : H(0);
1646
+ const u = n && !d && !r ? Oe(n, l, !0) : I(0);
1647
1647
  return {
1648
1648
  width: o.width * c.x,
1649
1649
  height: o.height * c.y,
@@ -1654,7 +1654,7 @@ function Xi(e) {
1654
1654
  function Gi(e) {
1655
1655
  return Array.from(e.getClientRects());
1656
1656
  }
1657
- function Qi(e) {
1657
+ function Ji(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,8 +1665,8 @@ function Qi(e) {
1665
1665
  y: a
1666
1666
  };
1667
1667
  }
1668
- function Ji(e, t) {
1669
- const o = L(e), i = q(e), s = o.visualViewport;
1668
+ function Qi(e, t) {
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) {
1672
1672
  r = s.width, n = s.height;
@@ -1682,7 +1682,7 @@ function Ji(e, t) {
1682
1682
  }
1683
1683
  const Zi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1684
1684
  function to(e, t) {
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;
1685
+ const o = ot(e, !0, t === "fixed"), i = o.top + e.clientTop, s = o.left + e.clientLeft, r = W(e) ? nt(e) : I(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,
1688
1688
  height: a,
@@ -1690,12 +1690,12 @@ function to(e, t) {
1690
1690
  y: c
1691
1691
  };
1692
1692
  }
1693
- function ge(e, t, o) {
1693
+ function me(e, t, o) {
1694
1694
  let i;
1695
1695
  if (t === "viewport")
1696
- i = Ji(e, o);
1696
+ i = Qi(e, o);
1697
1697
  else if (t === "document")
1698
- i = Qi(q(e));
1698
+ i = Ji(q(e));
1699
1699
  else if (z(t))
1700
1700
  i = to(t, o);
1701
1701
  else {
@@ -1722,7 +1722,7 @@ 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) || gt(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 && Zi.has(s.position) || mt(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
  }
@@ -1734,9 +1734,9 @@ function io(e) {
1734
1734
  strategy: s
1735
1735
  } = e;
1736
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 = ge(t, h, s);
1738
- return c.top = T(d.top, c.top), c.right = J(d.right, c.right), c.bottom = J(d.bottom, c.bottom), c.left = T(d.left, c.left), c;
1739
- }, ge(t, a, s));
1737
+ const d = me(t, h, s);
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));
1740
1740
  return {
1741
1741
  width: l.right - l.left,
1742
1742
  height: l.bottom - l.top,
@@ -1760,17 +1760,17 @@ function so(e, t, o) {
1760
1760
  scrollLeft: 0,
1761
1761
  scrollTop: 0
1762
1762
  };
1763
- const l = H(0);
1763
+ const l = I(0);
1764
1764
  function c() {
1765
1765
  l.x = ie(s);
1766
1766
  }
1767
1767
  if (i || !i && !r)
1768
- if ((lt(t) !== "body" || gt(s)) && (a = Tt(t)), i) {
1768
+ if ((lt(t) !== "body" || mt(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();
1772
1772
  r && !i && s && c();
1773
- const h = s && !i && !r ? Oe(s, a) : H(0), d = n.left + a.scrollLeft - l.x - h.x, u = n.top + a.scrollTop - l.y - h.y;
1773
+ const h = s && !i && !r ? Oe(s, a) : I(0), d = n.left + a.scrollLeft - l.x - h.x, u = n.top + a.scrollTop - l.y - h.y;
1774
1774
  return {
1775
1775
  x: d,
1776
1776
  y: u,
@@ -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 me(e, t) {
1784
+ function ge(e, t) {
1785
1785
  if (!W(e) || B(e).position === "fixed")
1786
1786
  return null;
1787
1787
  if (t)
@@ -1790,7 +1790,7 @@ function me(e, t) {
1790
1790
  return q(e) === o && (o = o.ownerDocument.body), o;
1791
1791
  }
1792
1792
  function Se(e, t) {
1793
- const o = L(e);
1793
+ const o = D(e);
1794
1794
  if (St(e))
1795
1795
  return o;
1796
1796
  if (!W(e)) {
@@ -1802,10 +1802,10 @@ function Se(e, t) {
1802
1802
  }
1803
1803
  return o;
1804
1804
  }
1805
- let i = me(e, t);
1806
- for (; i && Mi(i) && $t(i); )
1807
- i = me(i, t);
1808
- return i && rt(i) && $t(i) && !Rt(i) ? o : i || Ui(e) || o;
1805
+ let i = ge(e, t);
1806
+ for (; i && Hi(i) && $t(i); )
1807
+ i = ge(i, t);
1808
+ return i && rt(i) && $t(i) && !Rt(i) ? o : i || ji(e) || o;
1809
1809
  }
1810
1810
  const no = async function(e) {
1811
1811
  const t = this.getOffsetParent || Se, o = this.getDimensions, i = await o(e.floating);
@@ -1822,7 +1822,7 @@ const no = async function(e) {
1822
1822
  function ro(e) {
1823
1823
  return B(e).direction === "rtl";
1824
1824
  }
1825
- const It = {
1825
+ const Mt = {
1826
1826
  convertOffsetParentRelativeRectToViewportRelativeRect: Xi,
1827
1827
  getDocumentElement: q,
1828
1828
  getClippingRect: io,
@@ -1854,9 +1854,9 @@ function ao(e, t) {
1854
1854
  } = c;
1855
1855
  if (a || t(), !u || !p)
1856
1856
  return;
1857
- const f = yt(d), g = yt(s.clientWidth - (h + u)), m = yt(s.clientHeight - (d + p)), v = yt(h), E = {
1858
- rootMargin: -f + "px " + -g + "px " + -m + "px " + -v + "px",
1859
- threshold: T(0, J(1, l)) || 1
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",
1859
+ threshold: T(0, Q(1, l)) || 1
1860
1860
  };
1861
1861
  let C = !0;
1862
1862
  function P($) {
@@ -1883,7 +1883,7 @@ function ao(e, t) {
1883
1883
  }
1884
1884
  return n(!0), r;
1885
1885
  }
1886
- function Mt(e, t, o, i) {
1886
+ function Ht(e, t, o, i) {
1887
1887
  i === void 0 && (i = {});
1888
1888
  const {
1889
1889
  ancestorScroll: s = !0,
@@ -1906,11 +1906,11 @@ function Mt(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, g = l ? ot(e) : null;
1910
- l && m();
1911
- function m() {
1909
+ let f, m = l ? ot(e) : null;
1910
+ l && g();
1911
+ function g() {
1912
1912
  const v = ot(e);
1913
- g && !Re(g, v) && o(), g = v, f = requestAnimationFrame(m);
1913
+ m && !Re(m, v) && o(), m = v, f = requestAnimationFrame(g);
1914
1914
  }
1915
1915
  return o(), () => {
1916
1916
  var v;
@@ -1919,9 +1919,9 @@ function Mt(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 = Di, qt = zi, lo = ki, Le = Li, De = (e, t, o) => {
1922
+ const It = Ni, Te = _i, Wt = Li, qt = zi, lo = ki, De = Di, Le = (e, t, o) => {
1923
1923
  const i = /* @__PURE__ */ new Map(), s = {
1924
- platform: It,
1924
+ platform: Mt,
1925
1925
  ...o
1926
1926
  }, r = {
1927
1927
  ...s.platform,
@@ -1965,7 +1965,7 @@ class po {
1965
1965
  async placeOverlay(t = this.target, o = this.options) {
1966
1966
  if (this.target = t, this.options = o, !t || !o)
1967
1967
  return;
1968
- const i = Mt(
1968
+ const i = Ht(
1969
1969
  o.trigger,
1970
1970
  t,
1971
1971
  this.closeForAncestorUpdate,
@@ -1974,7 +1974,7 @@ class po {
1974
1974
  elementResize: !1,
1975
1975
  layoutShift: !1
1976
1976
  }
1977
- ), s = Mt(
1977
+ ), s = Ht(
1978
1978
  o.trigger,
1979
1979
  t,
1980
1980
  this.updatePlacement,
@@ -2004,7 +2004,7 @@ class po {
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
2006
2006
  )?.tipElement, a = [
2007
- Ht({
2007
+ It({
2008
2008
  crossAxis: r,
2009
2009
  mainAxis: s
2010
2010
  }),
@@ -2012,12 +2012,12 @@ class po {
2012
2012
  i,
2013
2013
  qt({
2014
2014
  apply: ({ availableHeight: u, availableWidth: p, rects: { floating: f } }) => {
2015
- const g = Math.max(
2015
+ const m = Math.max(
2016
2016
  co,
2017
2017
  Math.floor(u)
2018
- ), m = f.height;
2019
- this.initialHeight = this.isConstrained && this.initialHeight || m, this.isConstrained = m < this.initialHeight || g <= m;
2020
- const v = this.isConstrained ? `${g}px` : "";
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` : "";
2021
2021
  Object.assign(o.style, {
2022
2022
  maxHeight: v,
2023
2023
  maxWidth: `${Math.floor(p)}px`
@@ -2026,12 +2026,12 @@ class po {
2026
2026
  padding: bt
2027
2027
  }),
2028
2028
  ...n ? [
2029
- Le({
2029
+ De({
2030
2030
  element: n,
2031
2031
  padding: t.tipPadding || bt
2032
2032
  })
2033
2033
  ] : []
2034
- ], { middlewareData: l, placement: c, x: h, y: d } = await De(
2034
+ ], { middlewareData: l, placement: c, x: h, y: d } = await Le(
2035
2035
  t.trigger,
2036
2036
  o,
2037
2037
  {
@@ -2074,7 +2074,7 @@ class po {
2074
2074
  );
2075
2075
  }
2076
2076
  }
2077
- var Lt = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.LongPress = "longpress", e))(Lt || {});
2077
+ var Dt = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.LongPress = "longpress", e))(Dt || {});
2078
2078
  class oe {
2079
2079
  constructor(t, { handleOverlayReady: o, isPersistent: i, overlay: s }) {
2080
2080
  this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!i, this.handleOverlayReady = o, this.isPersistent && this.init(), this.overlay = s;
@@ -2136,7 +2136,7 @@ const uo = 300, ke = {
2136
2136
  };
2137
2137
  class fo extends oe {
2138
2138
  constructor() {
2139
- super(...arguments), this.type = Lt.LongPress, this.longpressState = null, this.releaseDescription = it, this.handlePointerup = () => {
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));
2141
2141
  };
2142
2142
  }
@@ -2189,7 +2189,7 @@ class fo extends oe {
2189
2189
  )
2190
2190
  return;
2191
2191
  const o = document.createElement("div");
2192
- o.id = `longpress-describedby-descriptor-${Ut()}`;
2192
+ o.id = `longpress-describedby-descriptor-${jt()}`;
2193
2193
  const i = ri() || ai() ? "touch" : "keyboard";
2194
2194
  o.textContent = ke[i], o.slot = "longpress-describedby-descriptor";
2195
2195
  const s = t.getRootNode(), r = this.overlay.getRootNode();
@@ -2226,203 +2226,8 @@ class fo extends oe {
2226
2226
  ));
2227
2227
  }
2228
2228
  }
2229
- const go = Vt`
2230
- /*
2231
- Copyright 2022 Adobe. All rights reserved.
2232
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
2233
- you may not use this file except in compliance with the License. You may obtain a copy
2234
- of the License at http://www.apache.org/licenses/LICENSE-2.0
2235
-
2236
- Unless required by applicable law or agreed to in writing, software distributed under
2237
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2238
- OF ANY KIND, either express or implied. See the License for the specific language
2239
- governing permissions and limitations under the License.
2240
- */
2241
-
2242
- :host {
2243
- display: contents;
2244
- pointer-events: none;
2245
-
2246
- /**
2247
- * Duplicate --spectrum-overlay-animation-distance, which is out of scope.
2248
- * Currently is is statically '--cx-spacing-medium' across a number of places
2249
- * so that is leveraged here as the default.
2250
- **/
2251
-
2252
- --swc-overlay-animation-distance: var(--cx-spacing-medium);
2253
- }
2254
-
2255
- .dialog {
2256
- margin: 0;
2257
- border: 0;
2258
- background: none;
2259
- padding: 0;
2260
- display: flex;
2261
- position: fixed;
2262
- overflow: visible;
2263
- opacity: 1 !important;
2264
- box-sizing: border-box;
2265
- max-height: calc(100vh - 16px);
2266
- max-height: calc(100dvh - 16px);
2267
- max-width: calc(100vw - 16px);
2268
- height: auto;
2269
- inset: auto;
2270
- top: 0;
2271
- left: 0;
2272
-
2273
- --cx-overlay-open: true;
2274
- }
2275
-
2276
- .dialog:focus {
2277
- outline: none;
2278
- }
2279
-
2280
- :host(:not([open])) .dialog {
2281
- --cx-overlay-open: false;
2282
- }
2283
-
2284
- .dialog::backdrop {
2285
- display: none;
2286
- }
2287
-
2288
- .dialog::before {
2289
- position: absolute;
2290
- inset: -999em;
2291
- content: '';
2292
- pointer-events: auto !important;
2293
- }
2294
-
2295
- .dialog:not(.not-immediately-closable)::before {
2296
- display: none;
2297
- }
2298
-
2299
- .dialog > div {
2300
- width: 100%;
2301
- }
2302
-
2303
- ::slotted(*) {
2304
- pointer-events: auto;
2305
- visibility: visible !important;
2306
- }
2307
-
2308
- .dialog.defer-slotted-visibility > slot::slotted(*) {
2309
- /**
2310
- * filter:opacity(0) paints the whole subtree as one group — descendants cannot opt out
2311
- * with visibility:visible (unlike visibility:hidden on an ancestor).
2312
- */
2313
- filter: opacity(0);
2314
- pointer-events: none;
2315
- visibility: hidden !important;
2316
- translate: -200vw -200vh;
2317
- }
2318
-
2319
- .dialog.defer-slotted-visibility.defer-slotted-opened > slot::slotted(*) {
2320
- filter: none;
2321
- pointer-events: auto;
2322
- visibility: visible !important;
2323
- translate: none;
2324
- }
2325
-
2326
- /**
2327
- * Offset the transition displacement from the trigger edge by
2328
- * padding the equivelent distance off of the opposite edge.
2329
- *
2330
- * <HACK>
2331
- * Prepare for Context Menus with [popover] by adding margin/border
2332
- * that _should_ still be under the pointer when 'pointerup' is dispatched.
2333
- * </HACK>
2334
- **/
2335
- .dialog:not([actual-placement])[placement*='top'] {
2336
- padding-block: var(--swc-overlay-animation-distance);
2337
- margin-top: var(--swc-overlay-animation-distance);
2338
- }
2339
-
2340
- .dialog:not([actual-placement])[placement*='right'] {
2341
- padding-inline: var(--swc-overlay-animation-distance);
2342
- margin-left: calc(-1 * var(--swc-overlay-animation-distance));
2343
- }
2344
-
2345
- .dialog:not([actual-placement])[placement*='bottom'] {
2346
- padding-block: var(--swc-overlay-animation-distance);
2347
- margin-top: calc(-1 * var(--swc-overlay-animation-distance));
2348
- }
2349
-
2350
- .dialog:not([actual-placement])[placement*='left'] {
2351
- padding-inline: var(--swc-overlay-animation-distance);
2352
- margin-left: var(--swc-overlay-animation-distance);
2353
- }
2354
-
2355
- .dialog[actual-placement*='top'] {
2356
- padding-block: var(--swc-overlay-animation-distance);
2357
- margin-top: var(--swc-overlay-animation-distance);
2358
- }
2359
-
2360
- .dialog[actual-placement*='right'] {
2361
- padding-inline: var(--swc-overlay-animation-distance);
2362
- margin-left: calc(-1 * var(--swc-overlay-animation-distance));
2363
- }
2364
-
2365
- .dialog[actual-placement*='bottom'] {
2366
- padding-block: var(--swc-overlay-animation-distance);
2367
- margin-top: calc(-1 * var(--swc-overlay-animation-distance));
2368
- }
2369
-
2370
- .dialog[actual-placement*='left'] {
2371
- padding-inline: var(--swc-overlay-animation-distance);
2372
- margin-left: var(--swc-overlay-animation-distance);
2373
- }
2374
-
2375
- slot[name='longpress-describedby-descriptor'] {
2376
- display: none;
2377
- }
2378
-
2379
- /* stylelint-disable */
2380
- @supports selector(:open) {
2381
- .dialog {
2382
- opacity: 0;
2383
- }
2384
-
2385
- .dialog:open {
2386
- opacity: 1;
2387
- }
2388
- }
2389
-
2390
- @supports selector(:popover-open) {
2391
- .dialog {
2392
- opacity: 0;
2393
- }
2394
-
2395
- .dialog:popover-open {
2396
- opacity: 1;
2397
- }
2398
- }
2399
-
2400
- @supports (overlay: auto) {
2401
- .dialog {
2402
- transition:
2403
- all var(--cx-transition-fast, 0.13s),
2404
- translate 0s,
2405
- display var(--cx-transition-fast, 0.13s);
2406
- transition-behavior: allow-discrete;
2407
- }
2408
-
2409
- .dialog:popover-open,
2410
- .dialog:modal {
2411
- display: flex;
2412
- }
2413
- }
2414
- .dialog[actual-placement] {
2415
- z-index: calc(
2416
- var(--swc-overlay-z-index-base, 1000) + var(--swc-overlay-open-count)
2417
- );
2418
- }
2419
- @supports (not selector(:open)) and (not selector(:popover-open)) {
2420
- :host:not([open]) .dialog {
2421
- pointer-events: none;
2422
- }
2423
- }
2424
- `;
2425
- class mo extends Event {
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 {
2426
2231
  constructor(t, o, i) {
2427
2232
  super("slottable-request", {
2428
2233
  bubbles: !1,
@@ -2434,7 +2239,7 @@ class mo extends Event {
2434
2239
  const yo = Symbol("remove-slottable-request");
2435
2240
  class vo extends oe {
2436
2241
  constructor() {
2437
- super(...arguments), this.type = Lt.Click, this.preventNextToggle = !1;
2242
+ super(...arguments), this.type = Dt.Click, this.preventNextToggle = !1;
2438
2243
  }
2439
2244
  handleClick() {
2440
2245
  this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
@@ -2457,7 +2262,7 @@ class vo extends oe {
2457
2262
  const bo = 300;
2458
2263
  class wo extends oe {
2459
2264
  constructor() {
2460
- super(...arguments), this.type = Lt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2265
+ super(...arguments), this.type = Dt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2461
2266
  }
2462
2267
  handleTargetFocusin() {
2463
2268
  this.target.matches(":focus-visible") && (this.open = !0, this.focusedin = !0);
@@ -2496,7 +2301,7 @@ class wo extends oe {
2496
2301
  };
2497
2302
  }
2498
2303
  prepareContentRelativeDescription() {
2499
- const t = [], o = this.overlay.elements.map((s) => (t.push(s.id), s.id || (s.id = `${this.overlay.tagName.toLowerCase()}-helper-${Ut()}`), s.id));
2304
+ const t = [], o = this.overlay.elements.map((s) => (t.push(s.id), s.id || (s.id = `${this.overlay.tagName.toLowerCase()}-helper-${jt()}`), s.id));
2500
2305
  this.elementIds = t;
2501
2306
  const i = Nt(
2502
2307
  this.target,
@@ -2562,7 +2367,7 @@ var Eo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, S = (e, t,
2562
2367
  };
2563
2368
  const Co = "showPopover" in document.createElement("div");
2564
2369
  let ct = pi(dt);
2565
- Co ? ct = gi(ct) : ct = ui(ct);
2370
+ Co ? ct = mi(ct) : ct = ui(ct);
2566
2371
  var K;
2567
2372
  const O = (K = class extends ct {
2568
2373
  constructor() {
@@ -2723,14 +2528,14 @@ const O = (K = class extends ct {
2723
2528
  }
2724
2529
  requestSlottable() {
2725
2530
  this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
2726
- new mo(
2531
+ new go(
2727
2532
  "overlay-content",
2728
2533
  this.open ? {} : yo
2729
2534
  )
2730
2535
  ), this.lastRequestSlottableState = this.open);
2731
2536
  }
2732
2537
  willUpdate(t) {
2733
- if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${Ut()}`), t.has("open") && (this.hasUpdated || this.open) && this.manageOpen(t.get("open")), t.has("trigger")) {
2538
+ if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${jt()}`), t.has("open") && (this.hasUpdated || this.open) && this.manageOpen(t.get("open")), t.has("trigger")) {
2734
2539
  const [i, s] = this.trigger?.split("@") || [];
2735
2540
  this.elementResolver.selector = i ? `#${i}` : "", this.triggerInteraction = s;
2736
2541
  }
@@ -2741,7 +2546,7 @@ const O = (K = class extends ct {
2741
2546
  super.updated(t), t.has("placement") && (this.placement ? this.dialogEl.setAttribute("actual-placement", this.placement) : this.dialogEl.removeAttribute("actual-placement"), this.open && typeof t.get("placement") < "u" && this.placementController.resetOverlayPosition()), t.has("state") && this.state === "closed" && typeof t.get("state") < "u" && this.placementController.clearOverlayPosition();
2742
2547
  }
2743
2548
  renderContent() {
2744
- return j` <slot @slotchange=${this.handleSlotchange}></slot> `;
2549
+ return U`<slot @slotchange=${this.handleSlotchange}></slot>`;
2745
2550
  }
2746
2551
  get dialogStyleMap() {
2747
2552
  return {
@@ -2756,55 +2561,27 @@ const O = (K = class extends ct {
2756
2561
  this.open = !1;
2757
2562
  }
2758
2563
  renderDialog() {
2759
- return j`
2760
- <dialog
2761
- class=${ht({
2564
+ return U`<dialog class=${ht({
2762
2565
  "defer-slotted-opened": this.deferSlottedOpened,
2763
2566
  "defer-slotted-visibility": this.deferSlottedVisibility,
2764
2567
  dialog: !0
2765
- })}
2766
- part="dialog"
2767
- placement=${Dt(
2568
+ })} part="dialog" placement=${Lt(
2768
2569
  this.requiresPosition ? this.placement || "right" : void 0
2769
- )}
2770
- style=${se(this.dialogStyleMap)}
2771
- @close=${this.handleBrowserClose}
2772
- @cancel=${this.handleBrowserClose}
2773
- @beforetoggle=${this.handleBeforetoggle}
2774
- ?is-visible=${this.state !== "closed"}
2775
- >
2776
- ${this.renderContent()}
2777
- </dialog>
2778
- `;
2570
+ )} style=${se(this.dialogStyleMap)} @close=${this.handleBrowserClose} @cancel=${this.handleBrowserClose} @beforetoggle=${this.handleBeforetoggle} ?is-visible=${this.state !== "closed"}>${this.renderContent()}</dialog>`;
2779
2571
  }
2780
2572
  renderPopover() {
2781
- return j`
2782
- <div
2783
- class=${ht({
2573
+ return U`<div class=${ht({
2784
2574
  "defer-slotted-opened": this.deferSlottedOpened,
2785
2575
  "defer-slotted-visibility": this.deferSlottedVisibility,
2786
2576
  dialog: !0
2787
- })}
2788
- part="dialog"
2789
- placement=${Dt(
2577
+ })} part="dialog" placement=${Lt(
2790
2578
  this.requiresPosition ? this.placement || "right" : void 0
2791
- )}
2792
- popover=${Dt(this.popoverValue)}
2793
- style=${se(this.dialogStyleMap)}
2794
- @beforetoggle=${this.handleBeforetoggle}
2795
- @close=${this.handleBrowserClose}
2796
- ?is-visible=${this.state !== "closed"}
2797
- >
2798
- ${this.renderContent()}
2799
- </div>
2800
- `;
2579
+ )} popover=${Lt(this.popoverValue)} style=${se(this.dialogStyleMap)} @beforetoggle=${this.handleBeforetoggle} @close=${this.handleBrowserClose} ?is-visible=${this.state !== "closed"}>${this.renderContent()}</div>`;
2801
2580
  }
2802
2581
  render() {
2803
2582
  const t = this.type === "modal" || this.type === "page";
2804
- return j`
2805
- ${t ? this.renderDialog() : this.renderPopover()}
2806
- <slot name="longpress-describedby-descriptor"></slot>
2807
- `;
2583
+ return U`
2584
+ ${t ? this.renderDialog() : this.renderPopover()}<slot name="longpress-describedby-descriptor"></slot>`;
2808
2585
  }
2809
2586
  connectedCallback() {
2810
2587
  super.connectedCallback(), this.addEventListener("close", this.handleClose), this.hasUpdated && this.bindEvents();
@@ -2815,7 +2592,7 @@ const O = (K = class extends ct {
2815
2592
  }, K.styles = [
2816
2593
  ye,
2817
2594
  Vt`
2818
- ${ze(go)}
2595
+ ${ze(mo)}
2819
2596
  `
2820
2597
  ], K.openCount = 1, K);
2821
2598
  S([
@@ -2853,7 +2630,7 @@ S([
2853
2630
  Ct("slot")
2854
2631
  ], O.prototype, "slotEl", 2);
2855
2632
  S([
2856
- Ie()
2633
+ Me()
2857
2634
  ], O.prototype, "state", 1);
2858
2635
  S([
2859
2636
  y({ attribute: "tip-padding", type: Number })
@@ -2876,7 +2653,7 @@ const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2876
2653
  LONGPRESS_INSTRUCTIONS: ke,
2877
2654
  Overlay: $e
2878
2655
  }, Symbol.toStringTag, { value: "Module" }));
2879
- Je("cx-overlay", $e);
2656
+ Qe("cx-overlay", $e);
2880
2657
  const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2881
2658
  __proto__: null
2882
2659
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2896,88 +2673,13 @@ function So(e) {
2896
2673
  }
2897
2674
  return null;
2898
2675
  }
2899
- const Ro = Vt`
2900
- :host {
2901
- --arrow-color: var(--cx-color-neutral-1000);
2902
- --arrow-size: 6px;
2903
-
2904
- /*
2905
- * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
2906
- * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
2907
- */
2908
- --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
2909
- --arrow-padding-offset: calc(
2910
- var(--arrow-size-diagonal) - var(--arrow-size)
2911
- );
2912
-
2913
- display: contents;
2914
- /**
2915
- * Reset -webkit-overflow-scrolling style to fix issue with popup being hidden on mobile devices.
2916
- * See https://link.orangelogic.com/Tasks/293FXQ
2917
- */
2918
- -webkit-overflow-scrolling: auto;
2919
- }
2920
-
2921
- .popup {
2922
- position: absolute;
2923
- isolation: isolate;
2924
- max-width: var(--auto-size-available-width, none);
2925
- max-height: var(--auto-size-available-height, none);
2926
- }
2927
-
2928
- .popup--use-size-middleware {
2929
- /*
2930
- * Prevent update loops when using the size middleware.
2931
- * https://github.com/floating-ui/floating-ui/issues/1740#issuecomment-1563544849
2932
- */
2933
- width: max-content;
2934
- }
2935
-
2936
- .popup--fixed, .popup--overlay {
2937
- position: fixed;
2938
- z-index: var(--cx-z-index-dialog);
2939
- }
2940
-
2941
- .popup:not(.popup--active) {
2942
- display: none;
2943
- }
2944
-
2945
- .popup__arrow {
2946
- position: absolute;
2947
- width: calc(var(--arrow-size-diagonal) * 2);
2948
- height: calc(var(--arrow-size-diagonal) * 2);
2949
- rotate: 45deg;
2950
- background: var(--arrow-color);
2951
- z-index: -1;
2952
- }
2953
-
2954
- /* Hover bridge */
2955
- .popup-hover-bridge:not(.popup-hover-bridge--visible) {
2956
- display: none;
2957
- }
2958
-
2959
- .popup-hover-bridge {
2960
- position: fixed;
2961
- z-index: calc(var(--cx-z-index-dropdown) - 1);
2962
- top: 0;
2963
- right: 0;
2964
- bottom: 0;
2965
- left: 0;
2966
- clip-path: polygon(
2967
- var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
2968
- var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
2969
- var(--hover-bridge-bottom-right-x, 0)
2970
- var(--hover-bridge-bottom-right-y, 0),
2971
- var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
2972
- );
2973
- }
2974
- `;
2975
- var To = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, w = (e, t, o, i) => {
2976
- for (var s = i > 1 ? void 0 : i ? Lo(t, o) : t, r = e.length - 1, n; r >= 0; r--)
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){display:none}.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){display:none}.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--)
2977
2679
  (n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
2978
2680
  return i && s && To(t, o, s), s;
2979
2681
  };
2980
- function Do(e) {
2682
+ function Lo(e) {
2981
2683
  if (e == null || typeof e != "object")
2982
2684
  return !1;
2983
2685
  const t = "contextElement" in e ? e.contextElement.ownerDocument.defaultView : null;
@@ -2985,7 +2687,7 @@ function Do(e) {
2985
2687
  }
2986
2688
  let b = class extends Be {
2987
2689
  constructor() {
2988
- super(...arguments), this.localize = new Ue(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 = () => {
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 = () => {
2989
2691
  if (this.hoverBridge && this.anchorEl) {
2990
2692
  const e = this.anchorEl.getBoundingClientRect(), t = this.popup.getBoundingClientRect(), o = this.placement.includes("top") || this.placement.includes("bottom") || this.placement === "center";
2991
2693
  let i = 0, s = 0, r = 0, n = 0, a = 0, l = 0, c = 0, h = 0;
@@ -3017,7 +2719,7 @@ let b = class extends Be {
3017
2719
  }
3018
2720
  connectedUpdatedCallback() {
3019
2721
  if (this.strategy === "overlay" && (this.start(), !ne)) {
3020
- const e = He(this);
2722
+ const e = Ie(this);
3021
2723
  e && (this.autoSizeBoundary = e, this.flipBoundary = e, this.shiftBoundary = e);
3022
2724
  }
3023
2725
  }
@@ -3033,7 +2735,7 @@ let b = class extends Be {
3033
2735
  if (await this.stop(), this.anchor && typeof this.anchor == "string") {
3034
2736
  const e = this.getRootNode();
3035
2737
  this.anchorEl = e.getElementById(this.anchor);
3036
- } else this.anchor instanceof Element || Do(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector('[slot="anchor"]');
2738
+ } else this.anchor instanceof Element || Lo(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector('[slot="anchor"]');
3037
2739
  this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({
3038
2740
  flatten: !0
3039
2741
  })[0]), this.anchorEl instanceof Element && this.anchorEl.tagName.toLowerCase() === "cx-dialog" && (this.anchorEl = this.anchorEl?.shadowRoot?.querySelector(
@@ -3041,7 +2743,7 @@ let b = class extends Be {
3041
2743
  )), this.anchorEl && this.start();
3042
2744
  }
3043
2745
  start() {
3044
- !this.anchorEl || !this.isConnected || (this.cleanup = Mt(this.anchorEl, this.popup, () => {
2746
+ !this.anchorEl || !this.isConnected || (this.cleanup = Ht(this.anchorEl, this.popup, () => {
3045
2747
  this.reposition();
3046
2748
  }));
3047
2749
  }
@@ -3056,9 +2758,9 @@ let b = class extends Be {
3056
2758
  return;
3057
2759
  const e = [
3058
2760
  // The offset middleware goes first
3059
- this.placement === "center" ? Ht(
2761
+ this.placement === "center" ? It(
3060
2762
  ({ rects: t }) => -t.reference.height / 2 - t.floating.height / 2
3061
- ) : Ht({ crossAxis: this.skidding, mainAxis: this.distance })
2763
+ ) : It({ crossAxis: this.skidding, mainAxis: this.distance })
3062
2764
  ];
3063
2765
  if (this.sync ? e.push(
3064
2766
  qt({
@@ -3108,7 +2810,7 @@ let b = class extends Be {
3108
2810
  } else
3109
2811
  this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height");
3110
2812
  this.arrow && e.push(
3111
- Le({
2813
+ De({
3112
2814
  element: this.arrowEl,
3113
2815
  padding: this.arrowPadding
3114
2816
  })
@@ -3117,12 +2819,12 @@ let b = class extends Be {
3117
2819
  boundary: this.hideBoundary,
3118
2820
  strategy: this.hideBoundaryStrategy
3119
2821
  })
3120
- ), De(this.anchorEl, this.popup, {
2822
+ ), Le(this.anchorEl, this.popup, {
3121
2823
  middleware: e,
3122
2824
  placement: this.placement === "center" ? "bottom" : this.placement,
3123
2825
  platform: {
3124
- ...It,
3125
- getOffsetParent: (t) => this.strategy === "absolute" ? It.getOffsetParent(t, Ao) : this.strategy === "overlay" && ne ? window : We(t) || window
2826
+ ...Mt,
2827
+ getOffsetParent: (t) => this.strategy === "absolute" ? Mt.getOffsetParent(t, Ao) : this.strategy === "overlay" && ne ? window : We(t) || window
3126
2828
  },
3127
2829
  strategy: ["overlay", "fixed"].includes(this.strategy) ? "fixed" : "absolute"
3128
2830
  }).then(({ middlewareData: t, placement: o, x: i, y: s }) => {
@@ -3170,62 +2872,26 @@ let b = class extends Be {
3170
2872
  });
3171
2873
  }
3172
2874
  render() {
3173
- const e = j`<cx-overlay
3174
- ?open=${this.active}
3175
- defer-slotted-visibility
3176
- placement="bottom"
3177
- type="manual"
3178
- @cx-opened=${this.handleOverlayOpened}
3179
- >
3180
- <div
3181
- part="popup"
3182
- class=${ht({
2875
+ const e = U`<cx-overlay ?open=${this.active} defer-slotted-visibility placement="bottom" type="manual" @cx-opened=${this.handleOverlayOpened}><div part="popup" class=${ht({
3183
2876
  popup: !0,
3184
2877
  "popup--active": this.active,
3185
2878
  "popup--has-arrow": this.arrow,
3186
2879
  "popup--overlay": !0,
3187
2880
  "popup--use-size-middleware": this.isSizeMiddleWareUsed
3188
- })}
3189
- >
3190
- <slot></slot>
3191
- ${this.arrow ? j`<div
3192
- part="arrow"
3193
- class="popup__arrow"
3194
- role="presentation"
3195
- ></div>` : ""}
3196
- </div>
3197
- </cx-overlay>`;
3198
- return j`
3199
- <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
3200
-
3201
- <span
3202
- part="hover-bridge"
3203
- class=${ht({
2881
+ })}><slot></slot>${this.arrow ? U`<div part="arrow" class="popup__arrow" role="presentation"></div>` : ""}</div></cx-overlay>`;
2882
+ return U`<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot><span part="hover-bridge" class=${ht({
3204
2883
  "popup-hover-bridge": !0,
3205
2884
  "popup-hover-bridge--visible": this.hoverBridge && this.active
3206
- })}
3207
- ></span>
3208
-
3209
- ${je(
2885
+ })}></span>${Ue(
3210
2886
  this.strategy === "overlay",
3211
2887
  () => e,
3212
- () => j`<div
3213
- part="popup"
3214
- class=${ht({
2888
+ () => U`<div part="popup" class=${ht({
3215
2889
  popup: !0,
3216
2890
  "popup--active": this.active,
3217
2891
  "popup--fixed": this.strategy === "fixed",
3218
2892
  "popup--has-arrow": this.arrow,
3219
2893
  "popup--use-size-middleware": this.isSizeMiddleWareUsed
3220
- })}
3221
- >
3222
- <slot></slot>
3223
- ${this.arrow ? j`<div
3224
- part="arrow"
3225
- class="popup__arrow"
3226
- role="presentation"
3227
- ></div>` : ""}
3228
- </div>`
2894
+ })}><slot></slot>${this.arrow ? U`<div part="arrow" class="popup__arrow" role="presentation"></div>` : ""}</div>`
3229
2895
  )}
3230
2896
  `;
3231
2897
  }