@orangelogic/design-system 2.0.0-29DUO2-beta-3 → 2.0.0-29IORR-beta-2

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 (307) hide show
  1. package/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
  21. package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
  22. package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
  23. package/library/chunks/array.DCtvHiLS.js +81 -0
  24. package/library/chunks/asset.D7E0-cUV.js +460 -0
  25. package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
  26. package/library/chunks/button.styles.CKqn956w.js +5 -0
  27. package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
  28. package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
  29. package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
  30. package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
  31. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  32. package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
  33. package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
  34. package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
  35. package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
  36. package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
  37. package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
  38. package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
  39. package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
  40. package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
  41. package/library/chunks/folder-select.BT1drT8C.js +775 -0
  42. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  43. package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
  44. package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
  45. package/library/chunks/header.BePZwMCQ.js +170 -0
  46. package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
  47. package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
  48. package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
  49. package/library/chunks/icon-button.rKe0N4VB.js +149 -0
  50. package/library/chunks/iframe.DznmlYpV.js +73 -0
  51. package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
  52. package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
  53. package/library/chunks/isObjectLike.z36Fu426.js +34 -0
  54. package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
  55. package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
  56. package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
  57. package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
  58. package/library/chunks/option.COnEtd3X.js +123 -0
  59. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  60. package/library/chunks/pagination.DaD9Yul6.js +334 -0
  61. package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
  62. package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
  63. package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
  64. package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
  65. package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
  66. package/library/chunks/string.BigZhczf.js +185 -0
  67. package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
  68. package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
  69. package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
  70. package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
  71. package/library/chunks/toast.B2cJgW5u.js +71 -0
  72. package/library/chunks/transformation.CzBptarI.js +140 -0
  73. package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
  74. package/library/chunks/typography.DJC_UXgs.js +52 -0
  75. package/library/chunks/url.Cj9cIQXJ.js +27 -0
  76. package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
  77. package/library/chunks/watch.BCJD77bD.js +547 -0
  78. package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
  79. package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
  80. package/library/components/alert.js +11 -179
  81. package/library/components/am-chart.js +3 -3
  82. package/library/components/animated-image.js +13 -101
  83. package/library/components/animation.js +3 -3
  84. package/library/components/array-line-clamp.js +8 -89
  85. package/library/components/asset-link-format.js +718 -1380
  86. package/library/components/atoms.js +18 -18
  87. package/library/components/avatar.js +6 -95
  88. package/library/components/badge.js +11 -139
  89. package/library/components/bicolor-picker.js +4 -23
  90. package/library/components/border-input-group.js +5 -26
  91. package/library/components/breadcrumb-item.js +25 -156
  92. package/library/components/breadcrumb.js +4 -22
  93. package/library/components/button-group.js +3 -28
  94. package/library/components/button.js +6 -6
  95. package/library/components/card.js +4 -126
  96. package/library/components/checkbox.js +13 -254
  97. package/library/components/color-picker.js +57 -728
  98. package/library/components/color-swatch-group.js +9 -9
  99. package/library/components/color-swatch.js +5 -5
  100. package/library/components/confirm-popover.js +6 -6
  101. package/library/components/copy-button.js +11 -256
  102. package/library/components/corner-position-input-group.js +5 -58
  103. package/library/components/cropper.js +2 -2
  104. package/library/components/details.js +6 -152
  105. package/library/components/dialog.js +6 -6
  106. package/library/components/divider.js +6 -68
  107. package/library/components/dot-pagination.js +4 -4
  108. package/library/components/dot-status.js +25 -95
  109. package/library/components/drawer.js +11 -242
  110. package/library/components/dropdown.js +49 -151
  111. package/library/components/dynamic-select.js +10 -75
  112. package/library/components/e-chart.js +8 -51
  113. package/library/components/element-clamp.js +7 -80
  114. package/library/components/file-on-demand.js +13 -13
  115. package/library/components/folder-select.js +9 -7
  116. package/library/components/format-bytes.js +1 -1
  117. package/library/components/format-date.js +3 -7
  118. package/library/components/format-number.js +1 -1
  119. package/library/components/format-time.js +4 -14
  120. package/library/components/grid-item.js +5 -172
  121. package/library/components/grid.js +5 -41
  122. package/library/components/header.js +4 -4
  123. package/library/components/hub-connection.js +2 -2
  124. package/library/components/icon-button.js +14 -679
  125. package/library/components/icon.js +9 -2449
  126. package/library/components/iframe.js +4 -4
  127. package/library/components/image-comparer.js +9 -129
  128. package/library/components/image.js +4 -4
  129. package/library/components/include.js +3 -7
  130. package/library/components/input-group.js +4 -29
  131. package/library/components/input.js +358 -966
  132. package/library/components/line-clamp.js +7 -83
  133. package/library/components/list-editor.js +9 -9
  134. package/library/components/markdown.js +2 -4
  135. package/library/components/masonry.js +24 -223
  136. package/library/components/menu-item.js +155 -445
  137. package/library/components/menu-label.js +3 -20
  138. package/library/components/menu-section.js +3 -17
  139. package/library/components/menu.js +5 -113
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +3 -7
  142. package/library/components/option.js +4 -4
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +5 -16
  145. package/library/components/pagination.js +10 -8
  146. package/library/components/popup.js +385 -682
  147. package/library/components/position-picker.js +4 -94
  148. package/library/components/progress-bar.js +19 -136
  149. package/library/components/progress-ring.js +4 -95
  150. package/library/components/qr-code.js +5 -17
  151. package/library/components/radio-button.js +5 -25
  152. package/library/components/radio-card.js +8 -176
  153. package/library/components/radio-group.js +22 -153
  154. package/library/components/radio.js +14 -171
  155. package/library/components/range.js +123 -660
  156. package/library/components/rating.js +58 -238
  157. package/library/components/relative-time.js +3 -13
  158. package/library/components/resize-observer.js +4 -8
  159. package/library/components/select.js +305 -1012
  160. package/library/components/shadow-input-group.js +5 -24
  161. package/library/components/share-option-list.js +21 -313
  162. package/library/components/sidebar.js +15 -221
  163. package/library/components/size-input-group.js +12 -77
  164. package/library/components/skeleton.js +7 -80
  165. package/library/components/space.js +6 -143
  166. package/library/components/spinner.js +7 -76
  167. package/library/components/split-panel.js +18 -125
  168. package/library/components/step.js +21 -272
  169. package/library/components/stepper-wizard.js +9 -43
  170. package/library/components/stepper.js +17 -34
  171. package/library/components/switch.js +13 -276
  172. package/library/components/tab-group.js +7 -7
  173. package/library/components/tab-panel.js +5 -32
  174. package/library/components/tab.js +11 -257
  175. package/library/components/table.js +8 -8
  176. package/library/components/tag.js +15 -166
  177. package/library/components/textarea.js +183 -504
  178. package/library/components/timecode.js +6 -25
  179. package/library/components/tooltip.js +10 -94
  180. package/library/components/tree-item.js +4 -4
  181. package/library/components/tree.js +4 -4
  182. package/library/components/typeface.js +24 -123
  183. package/library/components/types.js +37225 -47339
  184. package/library/components/typography.js +2 -2
  185. package/library/components/video.js +3875 -6263
  186. package/library/components/visually-hidden.js +3 -15
  187. package/library/package.json +4 -1
  188. package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
  189. package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
  190. package/library/packages/atoms/src/components/image/image.d.ts +15 -1
  191. package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
  192. package/library/packages/atoms/src/components/input/input.d.ts +10 -2
  193. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
  194. package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
  195. package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
  196. package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
  197. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  198. package/library/packages/atoms/src/components/table/table.d.ts +49 -8
  199. package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
  200. package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
  201. package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
  202. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  203. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
  204. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
  205. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
  206. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
  207. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
  208. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
  209. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
  210. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
  211. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
  212. package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
  213. package/library/packages/atoms/src/components/video/video.d.ts +3 -1
  214. package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
  215. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
  216. package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
  217. package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
  218. package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
  219. package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
  220. package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
  221. package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
  222. package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
  223. package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
  224. package/library/packages/events/src/events.d.ts +11 -1
  225. package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
  226. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
  227. package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
  228. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
  229. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
  230. package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
  231. package/library/packages/molecules/src/index.d.ts +1 -0
  232. package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
  233. package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
  234. package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
  235. package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
  236. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
  237. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
  238. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
  239. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
  240. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
  241. package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
  242. package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
  243. package/library/packages/organisms/src/comment/comment.d.ts +1 -0
  244. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
  245. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
  246. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
  247. package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
  248. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
  249. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
  250. package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
  251. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
  252. package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
  253. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
  254. package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
  255. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
  256. package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
  257. package/library/packages/organisms/src/index.d.ts +2 -0
  258. package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
  259. package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
  260. package/library/packages/services/src/api/asset/asset.d.ts +3 -2
  261. package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
  262. package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
  263. package/library/packages/services/src/api/endpoints.d.ts +1 -1
  264. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  265. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
  266. package/library/packages/types/src/asset-click-action.d.ts +3 -1
  267. package/library/packages/types/src/bento-grid.d.ts +37 -0
  268. package/library/packages/types/src/content-builder.d.ts +27 -1
  269. package/library/packages/types/src/gallery.d.ts +0 -6
  270. package/library/packages/types/src/icon-button.d.ts +7 -0
  271. package/library/packages/types/src/menu-item.d.ts +33 -0
  272. package/library/packages/types/src/storybook.d.ts +19 -0
  273. package/library/packages/types/src/table.d.ts +37 -1
  274. package/library/packages/types/src/textarea.d.ts +4 -0
  275. package/library/packages/types/src/video-format-picker.d.ts +11 -0
  276. package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
  277. package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
  278. package/library/packages/utils/src/index.d.ts +1 -0
  279. package/library/packages/utils/src/string/string.d.ts +33 -0
  280. package/library/packages/utils/src/transformation/index.d.ts +1 -0
  281. package/library/packages/utils/src/url/url.d.ts +9 -0
  282. package/library/react-web-component.d.ts +293 -29
  283. package/library/utils.js +483 -178
  284. package/package.json +4 -1
  285. package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
  286. package/library/chunks/asset.CG_yXtWK.js +0 -288
  287. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  288. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  289. package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
  290. package/library/chunks/content-builder.D_phDrlo.js +0 -127
  291. package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
  292. package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
  293. package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
  294. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  295. package/library/chunks/header.BduX6KJP.js +0 -777
  296. package/library/chunks/identity.ByMq8VxU.js +0 -6
  297. package/library/chunks/iframe.BPKV2K7z.js +0 -160
  298. package/library/chunks/index.B3wJT3XS.js +0 -373
  299. package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
  300. package/library/chunks/option.DnpkE8Xi.js +0 -296
  301. package/library/chunks/pagination.C30LoTya.js +0 -341
  302. package/library/chunks/string.B_rEG27K.js +0 -160
  303. package/library/chunks/toast.BXNbwZV8.js +0 -25
  304. package/library/chunks/typography.oDzoLbZS.js +0 -149
  305. package/library/chunks/url.LjsR2sB5.js +0 -15
  306. package/library/chunks/watch.q1sEjPWL.js +0 -501
  307. /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
@@ -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";
2
- import { n as v, C as Be } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
- import { r as Ie } from "../chunks/state.CSDxrqLd.js";
4
- import { e as ut } from "../chunks/query.BBf1UFkC.js";
5
- import { e as Me } from "../chunks/base.D76d76ww.js";
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";
4
+ import { e as Ct } from "../chunks/query.BBf1UFkC.js";
5
+ import { e as He } from "../chunks/base.D76d76ww.js";
6
+ import { e as ht } from "../chunks/class-map.BiVq-cVR.js";
6
7
  import { o as Lt } from "../chunks/if-defined.BRoBj_Rp.js";
7
8
  import { o as se } from "../chunks/style-map.llVFPd__.js";
8
- import { i as mt, p as ne, f as He, a as We } from "../chunks/browser.BHOCIF_A.js";
9
- 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";
10
11
  import { c as qe } from "../chunks/custom-element.L4WJXn1j.js";
11
12
  import { d as Ve } from "../chunks/debounce.DaHuiSGU.js";
12
- import { L as Ue } from "../chunks/i18n.C0iakJkV.js";
13
- import { e as Dt } from "../chunks/class-map.BiVq-cVR.js";
14
- import { n as je } from "../chunks/when.Dr1es41R.js";
13
+ import { L as je } from "../chunks/i18n.BFqTRDCA.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,19 +82,19 @@ 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(
89
89
  (r) => !o.find((n) => r === n)
90
90
  ), s.length ? e.setAttribute(t, s.join(" ")) : e.removeAttribute(t);
91
91
  }
92
- function $t(e, t, o) {
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)
@@ -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 ht extends Ge {
233
+ class dt extends Ge {
234
234
  constructor() {
235
235
  super(...arguments), this.dispose = it, this.offset = 0, this.willPreventClose = !1;
236
236
  }
@@ -308,7 +308,7 @@ class ht extends Ge {
308
308
  document.dispatchEvent(t);
309
309
  }
310
310
  static async open(t, o, i, s) {
311
- await Promise.resolve().then(() => Ne);
311
+ await Promise.resolve().then(() => Fe);
312
312
  const r = arguments.length === 2, n = i || t, a = new this();
313
313
  let l = !1;
314
314
  a.dispose = () => {
@@ -329,7 +329,7 @@ class ht extends Ge {
329
329
  });
330
330
  if (!r && n && s) {
331
331
  const u = t, p = o, f = s;
332
- return ht.applyOptions(a, {
332
+ return dt.applyOptions(a, {
333
333
  ...f,
334
334
  delayed: f.delayed || n.hasAttribute("delayed"),
335
335
  trigger: f.virtualTrigger || u,
@@ -337,7 +337,7 @@ class ht extends Ge {
337
337
  }), u.insertAdjacentElement("afterend", a), await a.updateComplete, a.open = !0, a.dispose;
338
338
  }
339
339
  const d = o;
340
- return a.append(n), ht.applyOptions(a, {
340
+ return a.append(n), dt.applyOptions(a, {
341
341
  ...d,
342
342
  delayed: d.delayed || n.hasAttribute("delayed")
343
343
  }), a.updateComplete.then(() => {
@@ -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,
@@ -443,12 +443,12 @@ class _ extends Event {
443
443
  };
444
444
  }
445
445
  }
446
- class Ct {
446
+ class Ot {
447
447
  constructor(t, o) {
448
448
  this.x = 0, this.y = 0, this.x = t, this.y = o;
449
449
  }
450
450
  updateBoundingClientRect(t, o) {
451
- this.x = t, this.y = o, ht.update();
451
+ this.x = t, this.y = o, dt.update();
452
452
  }
453
453
  getBoundingClientRect() {
454
454
  return {
@@ -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) => () => {
@@ -506,7 +506,7 @@ function pi(e) {
506
506
  if (!this.isConnected || i !== this.open)
507
507
  return;
508
508
  const h = async () => {
509
- const d = this.triggerElement instanceof Ct;
509
+ const d = this.triggerElement instanceof Ot;
510
510
  this.dispatchEvent(
511
511
  new _(c, this, {
512
512
  interaction: this.type,
@@ -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));
@@ -583,7 +583,7 @@ function ui(e) {
583
583
  })
584
584
  ), l > 0)
585
585
  return;
586
- const h = this.triggerElement instanceof Ct;
586
+ const h = this.triggerElement instanceof Ot;
587
587
  this.dispatchEvent(
588
588
  new _(c, this, {
589
589
  interaction: this.type,
@@ -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));
@@ -713,7 +713,7 @@ function gi(e) {
713
713
  if (this.open !== i)
714
714
  return;
715
715
  await k();
716
- const u = this.triggerElement instanceof Ct;
716
+ const u = this.triggerElement instanceof Ot;
717
717
  this.dispatchEvent(
718
718
  new _(c, this, {
719
719
  interaction: this.type,
@@ -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,16 +1025,16 @@ 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,
1031
- fn: y
1032
- } = a[g], {
1030
+ name: g,
1031
+ fn: v
1032
+ } = a[m], {
1033
1033
  x,
1034
1034
  y: E,
1035
1035
  data: C,
1036
1036
  reset: P
1037
- } = await y({
1037
+ } = await v({
1038
1038
  x: h,
1039
1039
  y: d,
1040
1040
  initialPlacement: i,
@@ -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,
@@ -1071,7 +1071,7 @@ const Ti = async (e, t, o) => {
1071
1071
  middlewareData: p
1072
1072
  };
1073
1073
  };
1074
- async function dt(e, t) {
1074
+ async function pt(e, t) {
1075
1075
  var o;
1076
1076
  t === void 0 && (t = {});
1077
1077
  const {
@@ -1087,8 +1087,8 @@ async function dt(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], y = 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
@@ -1110,13 +1110,13 @@ async function dt(e, t) {
1110
1110
  strategy: l
1111
1111
  }) : x);
1112
1112
  return {
1113
- top: (y.top - P.top + f.top) / C.y,
1114
- bottom: (P.bottom - y.bottom + f.bottom) / C.y,
1115
- left: (y.left - P.left + f.left) / C.x,
1116
- right: (P.right - y.right + f.right) / C.x
1113
+ top: (v.top - P.top + f.top) / C.y,
1114
+ bottom: (P.bottom - v.bottom + f.bottom) / C.y,
1115
+ left: (v.left - P.left + f.left) / C.x,
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", y = 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], F = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(c));
1141
- let O = F ? F[E] : 0;
1142
- (!O || !await (n.isElement == null ? void 0 : n.isElement(F))) && (O = a.floating[E] || r.floating[f]);
1143
- const V = C / 2 - P / 2, I = O / 2 - g[f] / 2 - 1, D = J(d[y], I), X = J(d[x], I), M = D, G = O - g[f] - X, S = O / 2 - g[f] / 2 + V, et = _t(M, S, G), U = !l.arrow && at(s) != null && S !== et && r.reference[f] / 2 - (S < M ? D : X) - g[f] / 2 < 0, N = U ? S < M ? S - M : S - G : 0;
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
+ let A = $ ? $[E] : 0;
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), 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
- [p]: u[p] + N,
1145
+ [p]: u[p] + F,
1146
1146
  data: {
1147
1147
  [p]: et,
1148
- centerOffset: S - et - N,
1149
- ...U && {
1150
- alignmentOffset: N
1148
+ centerOffset: R - et - F,
1149
+ ...j && {
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 y = 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 = f !== "none";
1181
- !u && F && P.push(...Si(a, g, f, C));
1182
- const O = [a, ...P], V = await dt(t, m), I = [];
1183
- let D = ((i = r.flip) == null ? void 0 : i.overflows) || [];
1184
- if (h && I.push(V[y]), d) {
1185
- const S = Ei(s, n, C);
1186
- I.push(V[S[0]], V[S[1]]);
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
+ const R = Ei(s, n, C);
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((S) => S <= 0)) {
1192
- var X, M;
1193
- const S = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, et = O[S];
1190
+ overflows: M
1191
+ }], !M.every((R) => R <= 0)) {
1192
+ var X, H;
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(($) => Y($.placement) === x ? $.overflows[0] > 0 : !0)))
1196
+ L.every((N) => Y(N.placement) === x ? N.overflows[0] > 0 : !0)))
1197
1197
  return {
1198
1198
  data: {
1199
- index: S,
1200
- overflows: D
1199
+ index: R,
1200
+ overflows: L
1201
1201
  },
1202
1202
  reset: {
1203
1203
  placement: et
1204
1204
  }
1205
1205
  };
1206
- let U = (M = D.filter((N) => N.overflows[0] <= 0).sort((N, $) => N.overflows[1] - $.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 N = (G = D.filter(($) => {
1212
- if (F) {
1213
- const Q = Y($.placement);
1214
- return Q === x || // Create a bias to the `y` side axis due to horizontal
1211
+ const F = (G = L.filter((N) => {
1212
+ if ($) {
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(($) => [$.placement, $.overflows.filter((Q) => Q > 0).reduce((Q, $e) => Q + $e, 0)]).sort(($, Q) => $[1] - Q[1])[0]) == null ? void 0 : G[0];
1220
- N && (U = N);
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
  }
@@ -1259,7 +1259,7 @@ const ki = function(e) {
1259
1259
  } = st(e, t);
1260
1260
  switch (i) {
1261
1261
  case "referenceHidden": {
1262
- const r = await dt(t, {
1262
+ const r = await pt(t, {
1263
1263
  ...s,
1264
1264
  elementContext: "reference"
1265
1265
  }), n = pe(r, o.reference);
@@ -1271,7 +1271,7 @@ const ki = function(e) {
1271
1271
  };
1272
1272
  }
1273
1273
  case "escaped": {
1274
- const r = await dt(t, {
1274
+ const r = await pt(t, {
1275
1275
  ...s,
1276
1276
  altBoundary: !0
1277
1277
  }), n = pe(r, o.floating);
@@ -1287,13 +1287,13 @@ const ki = function(e) {
1287
1287
  }
1288
1288
  }
1289
1289
  };
1290
- }, Fi = /* @__PURE__ */ new Set(["left", "top"]);
1291
- async function Ni(e, t) {
1290
+ }, $i = /* @__PURE__ */ new Set(["left", "top"]);
1291
+ async function Fi(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 = Fi.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 = $i.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 Ni(e, t) {
1315
1315
  y: p * h
1316
1316
  };
1317
1317
  }
1318
- const $i = function(e) {
1318
+ const Ni = function(e) {
1319
1319
  return e === void 0 && (e = 0), {
1320
1320
  name: "offset",
1321
1321
  options: e,
@@ -1326,7 +1326,7 @@ const $i = function(e) {
1326
1326
  y: r,
1327
1327
  placement: n,
1328
1328
  middlewareData: a
1329
- } = t, l = await Ni(t, e);
1329
+ } = t, l = await Fi(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,
@@ -1350,13 +1350,13 @@ const $i = 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
- x: y,
1355
+ x: v,
1356
1356
  y: x
1357
- } = m;
1357
+ } = g;
1358
1358
  return {
1359
- x: y,
1359
+ x: v,
1360
1360
  y: x
1361
1361
  };
1362
1362
  }
@@ -1365,26 +1365,26 @@ const $i = function(e) {
1365
1365
  } = st(e, t), c = {
1366
1366
  x: o,
1367
1367
  y: i
1368
- }, h = await dt(t, l), d = Y(Z(s)), u = be(d);
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", y = u === "y" ? "bottom" : "right", x = p + h[m], E = p - h[y];
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", y = d === "y" ? "bottom" : "right", x = f + h[m], E = f - h[y];
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
@@ -1408,25 +1408,25 @@ const $i = function(e) {
1408
1408
  apply: l = () => {
1409
1409
  },
1410
1410
  ...c
1411
- } = st(e, t), h = await dt(t, c), d = Z(s), u = at(s), p = Y(s) === "y", {
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, y;
1416
- d === "top" || d === "bottom" ? (m = d, y = u === (await (n.isRTL == null ? void 0 : n.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = 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[y], E), F = !t.middlewareData.shift;
1418
- let O = C, V = P;
1419
- if ((o = t.middlewareData.shift) != null && o.enabled.x && (V = E), (i = t.middlewareData.shift) != null && i.enabled.y && (O = x), F && !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)) : O = g - 2 * (M !== 0 || G !== 0 ? M + G : T(h.top, h.bottom));
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
+ let A = C, V = P;
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 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
- availableHeight: O
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
  }
@@ -1434,13 +1434,13 @@ const $i = function(e) {
1434
1434
  }
1435
1435
  };
1436
1436
  };
1437
- function Ot() {
1437
+ function At() {
1438
1438
  return typeof window < "u";
1439
1439
  }
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 Ot() ? 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 Ot() ? 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 Ot() ? 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 !Ot() || 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"];
1478
- function At(e) {
1479
- return Hi.some((t) => {
1477
+ const Ii = [":popover-open", ":modal"];
1478
+ function St(e) {
1479
+ return Ii.some((t) => {
1480
1480
  try {
1481
1481
  return e.matches(t);
1482
1482
  } catch {
@@ -1485,16 +1485,16 @@ function At(e) {
1485
1485
  });
1486
1486
  }
1487
1487
  const Wi = ["transform", "translate", "scale", "rotate", "perspective"], qi = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vi = ["paint", "layout", "strict", "content"];
1488
- function St(e) {
1488
+ 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
- if (St(t))
1495
+ if (Rt(t))
1496
1496
  return t;
1497
- if (At(t))
1497
+ if (St(t))
1498
1498
  return null;
1499
1499
  t = tt(t);
1500
1500
  }
@@ -1503,14 +1503,14 @@ 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
- function Rt(e) {
1513
+ function Tt(e) {
1514
1514
  return z(e) ? {
1515
1515
  scrollLeft: e.scrollLeft,
1516
1516
  scrollTop: e.scrollTop
@@ -1533,17 +1533,17 @@ 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
- function pt(e, t, o) {
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 ? pt(a) : []);
1544
+ return t.concat(n, n.visualViewport || [], mt(s) ? s : [], a && o ? ut(a) : []);
1545
1545
  }
1546
- return t.concat(s, pt(s, [], o));
1546
+ return t.concat(s, ut(s, [], o));
1547
1547
  }
1548
1548
  function Bt(e) {
1549
1549
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -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), y = g.getBoundingClientRect(), x = B(g), E = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, C = y.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({
@@ -1610,7 +1610,7 @@ function ot(e, t, o, i) {
1610
1610
  });
1611
1611
  }
1612
1612
  function ie(e, t) {
1613
- const o = Rt(e).scrollLeft;
1613
+ const o = Tt(e).scrollLeft;
1614
1614
  return t ? t.left + o : ot(q(e)).left + o;
1615
1615
  }
1616
1616
  function Oe(e, t, o) {
@@ -1631,19 +1631,19 @@ function Xi(e) {
1631
1631
  offsetParent: i,
1632
1632
  strategy: s
1633
1633
  } = e;
1634
- const r = s === "fixed", n = q(i), a = t ? At(t.floating) : !1;
1634
+ const r = s === "fixed", n = q(i), a = t ? St(t.floating) : !1;
1635
1635
  if (i === n || a && r)
1636
1636
  return o;
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 = Rt(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,8 +1654,8 @@ function Xi(e) {
1654
1654
  function Gi(e) {
1655
1655
  return Array.from(e.getClientRects());
1656
1656
  }
1657
- function Qi(e) {
1658
- const t = q(e), o = Rt(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);
1657
+ function Ji(e) {
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;
1661
1661
  return B(i).direction === "rtl" && (n += T(t.clientWidth, i.clientWidth) - s), {
@@ -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 {
@@ -1717,12 +1717,12 @@ function eo(e, t) {
1717
1717
  const o = t.get(e);
1718
1718
  if (o)
1719
1719
  return o;
1720
- let i = pt(e, [], !1).filter((a) => z(a) && lt(a) !== "body"), s = null;
1720
+ let i = ut(e, [], !1).filter((a) => z(a) && lt(a) !== "body"), s = null;
1721
1721
  const r = B(e).position === "fixed";
1722
1722
  let n = r ? tt(e) : e;
1723
1723
  for (; z(n) && !rt(n); ) {
1724
- const a = B(n), l = St(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);
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);
1726
1726
  }
1727
1727
  return t.set(e, i), i;
1728
1728
  }
@@ -1733,10 +1733,10 @@ function io(e) {
1733
1733
  rootBoundary: i,
1734
1734
  strategy: s
1735
1735
  } = e;
1736
- const n = [...o === "clippingAncestors" ? At(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));
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);
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 = Rt(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,
@@ -1778,10 +1778,10 @@ function so(e, t, o) {
1778
1778
  height: n.height
1779
1779
  };
1780
1780
  }
1781
- function Ft(e) {
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,22 +1790,22 @@ 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);
1794
- if (At(e))
1793
+ const o = D(e);
1794
+ if (St(e))
1795
1795
  return o;
1796
1796
  if (!W(e)) {
1797
1797
  let s = tt(e);
1798
1798
  for (; s && !rt(s); ) {
1799
- if (z(s) && !Ft(s))
1799
+ if (z(s) && !$t(s))
1800
1800
  return s;
1801
1801
  s = tt(s);
1802
1802
  }
1803
1803
  return o;
1804
1804
  }
1805
- let i = me(e, t);
1806
- for (; i && Mi(i) && Ft(i); )
1807
- i = me(i, t);
1808
- return i && rt(i) && Ft(i) && !St(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,21 +1854,21 @@ 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)), y = yt(h), E = {
1858
- rootMargin: -f + "px " + -g + "px " + -m + "px " + -y + "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
- function P(F) {
1863
- const O = F[0].intersectionRatio;
1864
- if (O !== l) {
1862
+ function P($) {
1863
+ const A = $[0].intersectionRatio;
1864
+ if (A !== l) {
1865
1865
  if (!C)
1866
1866
  return n();
1867
- O ? n(!1, O) : i = setTimeout(() => {
1867
+ A ? n(!1, A) : i = setTimeout(() => {
1868
1868
  n(!1, 1e-7);
1869
1869
  }, 1e3);
1870
1870
  }
1871
- O === 1 && !Re(c, e.getBoundingClientRect()) && n(), C = !1;
1871
+ A === 1 && !Re(c, e.getBoundingClientRect()) && n(), C = !1;
1872
1872
  }
1873
1873
  try {
1874
1874
  o = new IntersectionObserver(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,
@@ -1891,37 +1891,37 @@ function Mt(e, t, o, i) {
1891
1891
  elementResize: n = typeof ResizeObserver == "function",
1892
1892
  layoutShift: a = typeof IntersectionObserver == "function",
1893
1893
  animationFrame: l = !1
1894
- } = i, c = ee(e), h = s || r ? [...c ? pt(c) : [], ...pt(t)] : [];
1895
- h.forEach((y) => {
1896
- s && y.addEventListener("scroll", o, {
1894
+ } = i, c = ee(e), h = s || r ? [...c ? ut(c) : [], ...ut(t)] : [];
1895
+ h.forEach((v) => {
1896
+ s && v.addEventListener("scroll", o, {
1897
1897
  passive: !0
1898
- }), r && y.addEventListener("resize", o);
1898
+ }), r && v.addEventListener("resize", o);
1899
1899
  });
1900
1900
  const d = c && a ? ao(c, o) : null;
1901
1901
  let u = -1, p = null;
1902
- n && (p = new ResizeObserver((y) => {
1903
- let [x] = y;
1902
+ n && (p = new ResizeObserver((v) => {
1903
+ let [x] = v;
1904
1904
  x && x.target === c && p && (p.unobserve(t), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
1905
1905
  var E;
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() {
1912
- const y = ot(e);
1913
- g && !Re(g, y) && o(), g = y, f = requestAnimationFrame(m);
1909
+ let f, m = l ? ot(e) : null;
1910
+ l && g();
1911
+ function g() {
1912
+ const v = ot(e);
1913
+ m && !Re(m, v) && o(), m = v, f = requestAnimationFrame(g);
1914
1914
  }
1915
1915
  return o(), () => {
1916
- var y;
1916
+ var v;
1917
1917
  h.forEach((x) => {
1918
1918
  s && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
1919
- }), d?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(f);
1919
+ }), d?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(f);
1920
1920
  };
1921
1921
  }
1922
- const Ht = $i, 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,26 +2012,26 @@ 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 y = 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
- maxHeight: y,
2022
+ maxHeight: v,
2023
2023
  maxWidth: `${Math.floor(p)}px`
2024
2024
  });
2025
2025
  },
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 Tt = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.LongPress = "longpress", e))(Tt || {});
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;
@@ -2097,7 +2097,7 @@ class oe {
2097
2097
  t && (customElements.whenDefined("cx-overlay").then(async () => {
2098
2098
  const { Overlay: o } = await Promise.resolve().then(() => Oo);
2099
2099
  this.overlay = new o(), this.overlay.open = !0;
2100
- }), Promise.resolve().then(() => Ne));
2100
+ }), Promise.resolve().then(() => Fe));
2101
2101
  }
2102
2102
  }
2103
2103
  get overlay() {
@@ -2136,7 +2136,7 @@ const uo = 300, ke = {
2136
2136
  };
2137
2137
  class fo extends oe {
2138
2138
  constructor() {
2139
- super(...arguments), this.type = Tt.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,12 +2189,12 @@ 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();
2196
2196
  s === r ? this.overlay.append(o) : (o.hidden = !("host" in s), t.insertAdjacentElement("afterend", o));
2197
- const n = $t(
2197
+ const n = Nt(
2198
2198
  t,
2199
2199
  "aria-describedby",
2200
2200
  [o.id]
@@ -2226,185 +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
- /**
2309
- * Offset the transition displacement from the trigger edge by
2310
- * padding the equivelent distance off of the opposite edge.
2311
- *
2312
- * <HACK>
2313
- * Prepare for Context Menus with [popover] by adding margin/border
2314
- * that _should_ still be under the pointer when 'pointerup' is dispatched.
2315
- * </HACK>
2316
- **/
2317
- .dialog:not([actual-placement])[placement*='top'] {
2318
- padding-block: var(--swc-overlay-animation-distance);
2319
- margin-top: var(--swc-overlay-animation-distance);
2320
- }
2321
-
2322
- .dialog:not([actual-placement])[placement*='right'] {
2323
- padding-inline: var(--swc-overlay-animation-distance);
2324
- margin-left: calc(-1 * var(--swc-overlay-animation-distance));
2325
- }
2326
-
2327
- .dialog:not([actual-placement])[placement*='bottom'] {
2328
- padding-block: var(--swc-overlay-animation-distance);
2329
- margin-top: calc(-1 * var(--swc-overlay-animation-distance));
2330
- }
2331
-
2332
- .dialog:not([actual-placement])[placement*='left'] {
2333
- padding-inline: var(--swc-overlay-animation-distance);
2334
- margin-left: var(--swc-overlay-animation-distance);
2335
- }
2336
-
2337
- .dialog[actual-placement*='top'] {
2338
- padding-block: var(--swc-overlay-animation-distance);
2339
- margin-top: var(--swc-overlay-animation-distance);
2340
- }
2341
-
2342
- .dialog[actual-placement*='right'] {
2343
- padding-inline: var(--swc-overlay-animation-distance);
2344
- margin-left: calc(-1 * var(--swc-overlay-animation-distance));
2345
- }
2346
-
2347
- .dialog[actual-placement*='bottom'] {
2348
- padding-block: var(--swc-overlay-animation-distance);
2349
- margin-top: calc(-1 * var(--swc-overlay-animation-distance));
2350
- }
2351
-
2352
- .dialog[actual-placement*='left'] {
2353
- padding-inline: var(--swc-overlay-animation-distance);
2354
- margin-left: var(--swc-overlay-animation-distance);
2355
- }
2356
-
2357
- slot[name='longpress-describedby-descriptor'] {
2358
- display: none;
2359
- }
2360
-
2361
- /* stylelint-disable */
2362
- @supports selector(:open) {
2363
- .dialog {
2364
- opacity: 0;
2365
- }
2366
-
2367
- .dialog:open {
2368
- opacity: 1;
2369
- }
2370
- }
2371
-
2372
- @supports selector(:popover-open) {
2373
- .dialog {
2374
- opacity: 0;
2375
- }
2376
-
2377
- .dialog:popover-open {
2378
- opacity: 1;
2379
- }
2380
- }
2381
-
2382
- @supports (overlay: auto) {
2383
- .dialog {
2384
- transition:
2385
- all var(--cx-transition-fast, 0.13s),
2386
- translate 0s,
2387
- display var(--cx-transition-fast, 0.13s);
2388
- transition-behavior: allow-discrete;
2389
- }
2390
-
2391
- .dialog:popover-open,
2392
- .dialog:modal {
2393
- display: flex;
2394
- }
2395
- }
2396
- .dialog[actual-placement] {
2397
- z-index: calc(
2398
- var(--swc-overlay-z-index-base, 1000) + var(--swc-overlay-open-count)
2399
- );
2400
- }
2401
- @supports (not selector(:open)) and (not selector(:popover-open)) {
2402
- :host:not([open]) .dialog {
2403
- pointer-events: none;
2404
- }
2405
- }
2406
- `;
2407
- 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 {
2408
2231
  constructor(t, o, i) {
2409
2232
  super("slottable-request", {
2410
2233
  bubbles: !1,
@@ -2416,7 +2239,7 @@ class mo extends Event {
2416
2239
  const yo = Symbol("remove-slottable-request");
2417
2240
  class vo extends oe {
2418
2241
  constructor() {
2419
- super(...arguments), this.type = Tt.Click, this.preventNextToggle = !1;
2242
+ super(...arguments), this.type = Dt.Click, this.preventNextToggle = !1;
2420
2243
  }
2421
2244
  handleClick() {
2422
2245
  this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
@@ -2439,7 +2262,7 @@ class vo extends oe {
2439
2262
  const bo = 300;
2440
2263
  class wo extends oe {
2441
2264
  constructor() {
2442
- super(...arguments), this.type = Tt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2265
+ super(...arguments), this.type = Dt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2443
2266
  }
2444
2267
  handleTargetFocusin() {
2445
2268
  this.target.matches(":focus-visible") && (this.open = !0, this.focusedin = !0);
@@ -2468,7 +2291,7 @@ class wo extends oe {
2468
2291
  t === i ? this.prepareOverlayRelativeDescription() : t === o && this.prepareContentRelativeDescription();
2469
2292
  }
2470
2293
  prepareOverlayRelativeDescription() {
2471
- const t = $t(
2294
+ const t = Nt(
2472
2295
  this.target,
2473
2296
  "aria-describedby",
2474
2297
  [this.overlay.id]
@@ -2478,9 +2301,9 @@ class wo extends oe {
2478
2301
  };
2479
2302
  }
2480
2303
  prepareContentRelativeDescription() {
2481
- 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));
2482
2305
  this.elementIds = t;
2483
- const i = $t(
2306
+ const i = Nt(
2484
2307
  this.target,
2485
2308
  "aria-describedby",
2486
2309
  o
@@ -2537,18 +2360,18 @@ const xo = {
2537
2360
  hover: wo,
2538
2361
  longpress: fo
2539
2362
  };
2540
- var Eo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, R = (e, t, o, i) => {
2363
+ var Eo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, S = (e, t, o, i) => {
2541
2364
  for (var s = i > 1 ? void 0 : i ? Po(t, o) : t, r = e.length - 1, n; r >= 0; r--)
2542
2365
  (n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
2543
2366
  return i && s && Eo(t, o, s), s;
2544
2367
  };
2545
2368
  const Co = "showPopover" in document.createElement("div");
2546
- let ct = pi(ht);
2547
- Co ? ct = gi(ct) : ct = ui(ct);
2369
+ let ct = pi(dt);
2370
+ Co ? ct = mi(ct) : ct = ui(ct);
2548
2371
  var K;
2549
- const A = (K = class extends ct {
2372
+ const O = (K = class extends ct {
2550
2373
  constructor() {
2551
- super(), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (t) => {
2374
+ super(), this._delayed = !1, this.deferSlottedVisibility = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (t) => {
2552
2375
  if (!t.relatedTarget)
2553
2376
  return;
2554
2377
  const o = new Event("overlay-relation-query", {
@@ -2573,7 +2396,7 @@ const A = (K = class extends ct {
2573
2396
  this._disabled = t, t ? (this.strategy?.abort(), this.wasOpen = this.open, this.open = !1) : (this.bindEvents(), this.open = this.open || this.wasOpen, this.wasOpen = !1);
2574
2397
  }
2575
2398
  get hasNonVirtualTrigger() {
2576
- return !!this.triggerElement && !(this.triggerElement instanceof Ct);
2399
+ return !!this.triggerElement && !(this.triggerElement instanceof Ot);
2577
2400
  }
2578
2401
  get placementController() {
2579
2402
  return this._placementController || (this._placementController = new po(this)), this._placementController;
@@ -2705,14 +2528,14 @@ const A = (K = class extends ct {
2705
2528
  }
2706
2529
  requestSlottable() {
2707
2530
  this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
2708
- new mo(
2531
+ new go(
2709
2532
  "overlay-content",
2710
2533
  this.open ? {} : yo
2711
2534
  )
2712
2535
  ), this.lastRequestSlottableState = this.open);
2713
2536
  }
2714
2537
  willUpdate(t) {
2715
- 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")) {
2716
2539
  const [i, s] = this.trigger?.split("@") || [];
2717
2540
  this.elementResolver.selector = i ? `#${i}` : "", this.triggerInteraction = s;
2718
2541
  }
@@ -2723,58 +2546,42 @@ const A = (K = class extends ct {
2723
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();
2724
2547
  }
2725
2548
  renderContent() {
2726
- return j` <slot @slotchange=${this.handleSlotchange}></slot> `;
2549
+ return U`<slot @slotchange=${this.handleSlotchange}></slot>`;
2727
2550
  }
2728
2551
  get dialogStyleMap() {
2729
2552
  return {
2730
2553
  "--swc-overlay-open-count": K.openCount.toString()
2731
2554
  };
2732
2555
  }
2556
+ /** Reveal deferred slotted content only after the overlay reaches the opened state. */
2557
+ get deferSlottedOpened() {
2558
+ return this.deferSlottedVisibility && this.state === "opened";
2559
+ }
2733
2560
  handleClose() {
2734
2561
  this.open = !1;
2735
2562
  }
2736
2563
  renderDialog() {
2737
- return j`
2738
- <dialog
2739
- class="dialog"
2740
- part="dialog"
2741
- placement=${Lt(
2564
+ return U`<dialog class=${ht({
2565
+ "defer-slotted-opened": this.deferSlottedOpened,
2566
+ "defer-slotted-visibility": this.deferSlottedVisibility,
2567
+ dialog: !0
2568
+ })} part="dialog" placement=${Lt(
2742
2569
  this.requiresPosition ? this.placement || "right" : void 0
2743
- )}
2744
- style=${se(this.dialogStyleMap)}
2745
- @close=${this.handleBrowserClose}
2746
- @cancel=${this.handleBrowserClose}
2747
- @beforetoggle=${this.handleBeforetoggle}
2748
- ?is-visible=${this.state !== "closed"}
2749
- >
2750
- ${this.renderContent()}
2751
- </dialog>
2752
- `;
2570
+ )} style=${se(this.dialogStyleMap)} @close=${this.handleBrowserClose} @cancel=${this.handleBrowserClose} @beforetoggle=${this.handleBeforetoggle} ?is-visible=${this.state !== "closed"}>${this.renderContent()}</dialog>`;
2753
2571
  }
2754
2572
  renderPopover() {
2755
- return j`
2756
- <div
2757
- class="dialog"
2758
- part="dialog"
2759
- placement=${Lt(
2573
+ return U`<div class=${ht({
2574
+ "defer-slotted-opened": this.deferSlottedOpened,
2575
+ "defer-slotted-visibility": this.deferSlottedVisibility,
2576
+ dialog: !0
2577
+ })} part="dialog" placement=${Lt(
2760
2578
  this.requiresPosition ? this.placement || "right" : void 0
2761
- )}
2762
- popover=${Lt(this.popoverValue)}
2763
- style=${se(this.dialogStyleMap)}
2764
- @beforetoggle=${this.handleBeforetoggle}
2765
- @close=${this.handleBrowserClose}
2766
- ?is-visible=${this.state !== "closed"}
2767
- >
2768
- ${this.renderContent()}
2769
- </div>
2770
- `;
2579
+ )} popover=${Lt(this.popoverValue)} style=${se(this.dialogStyleMap)} @beforetoggle=${this.handleBeforetoggle} @close=${this.handleBrowserClose} ?is-visible=${this.state !== "closed"}>${this.renderContent()}</div>`;
2771
2580
  }
2772
2581
  render() {
2773
2582
  const t = this.type === "modal" || this.type === "page";
2774
- return j`
2775
- ${t ? this.renderDialog() : this.renderPopover()}
2776
- <slot name="longpress-describedby-descriptor"></slot>
2777
- `;
2583
+ return U`
2584
+ ${t ? this.renderDialog() : this.renderPopover()}<slot name="longpress-describedby-descriptor"></slot>`;
2778
2585
  }
2779
2586
  connectedCallback() {
2780
2587
  super.connectedCallback(), this.addEventListener("close", this.handleClose), this.hasUpdated && this.bindEvents();
@@ -2785,166 +2592,94 @@ const A = (K = class extends ct {
2785
2592
  }, K.styles = [
2786
2593
  ye,
2787
2594
  Vt`
2788
- ${ze(go)}
2595
+ ${ze(mo)}
2789
2596
  `
2790
2597
  ], K.openCount = 1, K);
2791
- R([
2792
- v({ type: Boolean })
2793
- ], A.prototype, "delayed", 1);
2794
- R([
2795
- ut(".dialog")
2796
- ], A.prototype, "dialogEl", 2);
2797
- R([
2798
- v({ type: Boolean })
2799
- ], A.prototype, "disabled", 1);
2800
- R([
2598
+ S([
2599
+ y({ type: Boolean })
2600
+ ], O.prototype, "delayed", 1);
2601
+ S([
2602
+ y({ attribute: "defer-slotted-visibility", type: Boolean })
2603
+ ], O.prototype, "deferSlottedVisibility", 2);
2604
+ S([
2605
+ Ct(".dialog")
2606
+ ], O.prototype, "dialogEl", 2);
2607
+ S([
2608
+ y({ type: Boolean })
2609
+ ], O.prototype, "disabled", 1);
2610
+ S([
2801
2611
  Ye({
2802
2612
  flatten: !0,
2803
2613
  selector: ':not([slot="longpress-describedby-descriptor"], slot)'
2804
2614
  // gather only elements slotted into the default slot
2805
2615
  })
2806
- ], A.prototype, "elements", 2);
2807
- R([
2808
- v({ type: Number })
2809
- ], A.prototype, "offset", 2);
2810
- R([
2811
- v({ reflect: !0, type: Boolean })
2812
- ], A.prototype, "open", 1);
2813
- R([
2814
- v()
2815
- ], A.prototype, "placement", 2);
2816
- R([
2817
- v({ attribute: "receives-focus" })
2818
- ], A.prototype, "receivesFocus", 2);
2819
- R([
2820
- ut("slot")
2821
- ], A.prototype, "slotEl", 2);
2822
- R([
2823
- Ie()
2824
- ], A.prototype, "state", 1);
2825
- R([
2826
- v({ attribute: "tip-padding", type: Number })
2827
- ], A.prototype, "tipPadding", 2);
2828
- R([
2829
- v()
2830
- ], A.prototype, "trigger", 2);
2831
- R([
2832
- v({ attribute: "trigger-element" })
2833
- ], A.prototype, "triggerElement", 2);
2834
- R([
2835
- v({ attribute: "trigger-interaction" })
2836
- ], A.prototype, "triggerInteraction", 2);
2837
- R([
2838
- v()
2839
- ], A.prototype, "type", 2);
2840
- let Fe = A;
2616
+ ], O.prototype, "elements", 2);
2617
+ S([
2618
+ y({ type: Number })
2619
+ ], O.prototype, "offset", 2);
2620
+ S([
2621
+ y({ reflect: !0, type: Boolean })
2622
+ ], O.prototype, "open", 1);
2623
+ S([
2624
+ y()
2625
+ ], O.prototype, "placement", 2);
2626
+ S([
2627
+ y({ attribute: "receives-focus" })
2628
+ ], O.prototype, "receivesFocus", 2);
2629
+ S([
2630
+ Ct("slot")
2631
+ ], O.prototype, "slotEl", 2);
2632
+ S([
2633
+ Me()
2634
+ ], O.prototype, "state", 1);
2635
+ S([
2636
+ y({ attribute: "tip-padding", type: Number })
2637
+ ], O.prototype, "tipPadding", 2);
2638
+ S([
2639
+ y()
2640
+ ], O.prototype, "trigger", 2);
2641
+ S([
2642
+ y({ attribute: "trigger-element" })
2643
+ ], O.prototype, "triggerElement", 2);
2644
+ S([
2645
+ y({ attribute: "trigger-interaction" })
2646
+ ], O.prototype, "triggerInteraction", 2);
2647
+ S([
2648
+ y()
2649
+ ], O.prototype, "type", 2);
2650
+ let $e = O;
2841
2651
  const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2842
2652
  __proto__: null,
2843
2653
  LONGPRESS_INSTRUCTIONS: ke,
2844
- Overlay: Fe
2654
+ Overlay: $e
2845
2655
  }, Symbol.toStringTag, { value: "Module" }));
2846
- Je("cx-overlay", Fe);
2847
- const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2656
+ Qe("cx-overlay", $e);
2657
+ const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2848
2658
  __proto__: null
2849
2659
  }, Symbol.toStringTag, { value: "Module" }));
2850
2660
  function Ao(e) {
2851
2661
  return So(e);
2852
2662
  }
2853
- function Nt(e) {
2663
+ function Ft(e) {
2854
2664
  return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
2855
2665
  }
2856
2666
  function So(e) {
2857
- for (let t = e; t; t = Nt(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
2858
- for (let t = Nt(e); t; t = Nt(t)) {
2667
+ for (let t = e; t; t = Ft(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
2668
+ for (let t = Ft(e); t; t = Ft(t)) {
2859
2669
  if (!(t instanceof Element)) continue;
2860
2670
  const o = getComputedStyle(t);
2861
- if (o.display !== "contents" && (o.position !== "static" || St(o) || t.tagName === "BODY"))
2671
+ if (o.display !== "contents" && (o.position !== "static" || Rt(o) || t.tagName === "BODY"))
2862
2672
  return t;
2863
2673
  }
2864
2674
  return null;
2865
2675
  }
2866
- const Ro = Vt`
2867
- :host {
2868
- --arrow-color: var(--cx-color-neutral-1000);
2869
- --arrow-size: 6px;
2870
-
2871
- /*
2872
- * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
2873
- * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
2874
- */
2875
- --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
2876
- --arrow-padding-offset: calc(
2877
- var(--arrow-size-diagonal) - var(--arrow-size)
2878
- );
2879
-
2880
- display: contents;
2881
- /**
2882
- * Reset -webkit-overflow-scrolling style to fix issue with popup being hidden on mobile devices.
2883
- * See https://link.orangelogic.com/Tasks/293FXQ
2884
- */
2885
- -webkit-overflow-scrolling: auto;
2886
- }
2887
-
2888
- .popup {
2889
- position: absolute;
2890
- isolation: isolate;
2891
- max-width: var(--auto-size-available-width, none);
2892
- max-height: var(--auto-size-available-height, none);
2893
- }
2894
-
2895
- .popup--use-size-middleware {
2896
- /*
2897
- * Prevent update loops when using the size middleware.
2898
- * https://github.com/floating-ui/floating-ui/issues/1740#issuecomment-1563544849
2899
- */
2900
- width: max-content;
2901
- }
2902
-
2903
- .popup--fixed, .popup--overlay {
2904
- position: fixed;
2905
- z-index: var(--cx-z-index-dialog);
2906
- }
2907
-
2908
- .popup:not(.popup--active) {
2909
- display: none;
2910
- }
2911
-
2912
- .popup__arrow {
2913
- position: absolute;
2914
- width: calc(var(--arrow-size-diagonal) * 2);
2915
- height: calc(var(--arrow-size-diagonal) * 2);
2916
- rotate: 45deg;
2917
- background: var(--arrow-color);
2918
- z-index: -1;
2919
- }
2920
-
2921
- /* Hover bridge */
2922
- .popup-hover-bridge:not(.popup-hover-bridge--visible) {
2923
- display: none;
2924
- }
2925
-
2926
- .popup-hover-bridge {
2927
- position: fixed;
2928
- z-index: calc(var(--cx-z-index-dropdown) - 1);
2929
- top: 0;
2930
- right: 0;
2931
- bottom: 0;
2932
- left: 0;
2933
- clip-path: polygon(
2934
- var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
2935
- var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
2936
- var(--hover-bridge-bottom-right-x, 0)
2937
- var(--hover-bridge-bottom-right-y, 0),
2938
- var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
2939
- );
2940
- }
2941
- `;
2942
- var To = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, w = (e, t, o, i) => {
2943
- 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--)
2944
2679
  (n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
2945
2680
  return i && s && To(t, o, s), s;
2946
2681
  };
2947
- function Do(e) {
2682
+ function Lo(e) {
2948
2683
  if (e == null || typeof e != "object")
2949
2684
  return !1;
2950
2685
  const t = "contextElement" in e ? e.contextElement.ownerDocument.defaultView : null;
@@ -2952,7 +2687,7 @@ function Do(e) {
2952
2687
  }
2953
2688
  let b = class extends Be {
2954
2689
  constructor() {
2955
- 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 = () => {
2956
2691
  if (this.hoverBridge && this.anchorEl) {
2957
2692
  const e = this.anchorEl.getBoundingClientRect(), t = this.popup.getBoundingClientRect(), o = this.placement.includes("top") || this.placement.includes("bottom") || this.placement === "center";
2958
2693
  let i = 0, s = 0, r = 0, n = 0, a = 0, l = 0, c = 0, h = 0;
@@ -2984,18 +2719,23 @@ let b = class extends Be {
2984
2719
  }
2985
2720
  connectedUpdatedCallback() {
2986
2721
  if (this.strategy === "overlay" && (this.start(), !ne)) {
2987
- const e = He(this);
2722
+ const e = Ie(this);
2988
2723
  e && (this.autoSizeBoundary = e, this.flipBoundary = e, this.shiftBoundary = e);
2989
2724
  }
2990
2725
  }
2991
2726
  async updated(e) {
2992
- super.updated(e), e.has("active") && (this.active ? (this.start(), this.emit("cx-opened")) : this.stop()), e.has("anchor") && this.handleAnchorChange(), this.active && (await this.updateComplete, this.reposition());
2727
+ super.updated(e), e.has("active") && (this.active ? (this.start(), this.strategy !== "overlay" && this.emit("cx-opened")) : this.stop()), e.has("anchor") && this.handleAnchorChange(), this.active && (await this.updateComplete, this.reposition());
2728
+ }
2729
+ async handleOverlayOpened() {
2730
+ await this.updateComplete, await new Promise((e) => {
2731
+ requestAnimationFrame(() => e());
2732
+ }), this.active && this.emit("cx-opened");
2993
2733
  }
2994
2734
  async handleAnchorChange() {
2995
2735
  if (await this.stop(), this.anchor && typeof this.anchor == "string") {
2996
2736
  const e = this.getRootNode();
2997
2737
  this.anchorEl = e.getElementById(this.anchor);
2998
- } 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"]');
2999
2739
  this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({
3000
2740
  flatten: !0
3001
2741
  })[0]), this.anchorEl instanceof Element && this.anchorEl.tagName.toLowerCase() === "cx-dialog" && (this.anchorEl = this.anchorEl?.shadowRoot?.querySelector(
@@ -3003,7 +2743,7 @@ let b = class extends Be {
3003
2743
  )), this.anchorEl && this.start();
3004
2744
  }
3005
2745
  start() {
3006
- !this.anchorEl || !this.isConnected || (this.cleanup = Mt(this.anchorEl, this.popup, () => {
2746
+ !this.anchorEl || !this.isConnected || (this.cleanup = Ht(this.anchorEl, this.popup, () => {
3007
2747
  this.reposition();
3008
2748
  }));
3009
2749
  }
@@ -3018,9 +2758,9 @@ let b = class extends Be {
3018
2758
  return;
3019
2759
  const e = [
3020
2760
  // The offset middleware goes first
3021
- this.placement === "center" ? Ht(
2761
+ this.placement === "center" ? It(
3022
2762
  ({ rects: t }) => -t.reference.height / 2 - t.floating.height / 2
3023
- ) : Ht({ crossAxis: this.skidding, mainAxis: this.distance })
2763
+ ) : It({ crossAxis: this.skidding, mainAxis: this.distance })
3024
2764
  ];
3025
2765
  if (this.sync ? e.push(
3026
2766
  qt({
@@ -3070,7 +2810,7 @@ let b = class extends Be {
3070
2810
  } else
3071
2811
  this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height");
3072
2812
  this.arrow && e.push(
3073
- Le({
2813
+ De({
3074
2814
  element: this.arrowEl,
3075
2815
  padding: this.arrowPadding
3076
2816
  })
@@ -3079,12 +2819,12 @@ let b = class extends Be {
3079
2819
  boundary: this.hideBoundary,
3080
2820
  strategy: this.hideBoundaryStrategy
3081
2821
  })
3082
- ), De(this.anchorEl, this.popup, {
2822
+ ), Le(this.anchorEl, this.popup, {
3083
2823
  middleware: e,
3084
2824
  placement: this.placement === "center" ? "bottom" : this.placement,
3085
2825
  platform: {
3086
- ...It,
3087
- 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
3088
2828
  },
3089
2829
  strategy: ["overlay", "fixed"].includes(this.strategy) ? "fixed" : "absolute"
3090
2830
  }).then(({ middlewareData: t, placement: o, x: i, y: s }) => {
@@ -3132,115 +2872,78 @@ let b = class extends Be {
3132
2872
  });
3133
2873
  }
3134
2874
  render() {
3135
- const e = j`<cx-overlay
3136
- ?open=${this.active}
3137
- placement="bottom"
3138
- type="manual"
3139
- >
3140
- <div
3141
- part="popup"
3142
- class=${Dt({
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({
3143
2876
  popup: !0,
3144
2877
  "popup--active": this.active,
3145
2878
  "popup--has-arrow": this.arrow,
3146
2879
  "popup--overlay": !0,
3147
2880
  "popup--use-size-middleware": this.isSizeMiddleWareUsed
3148
- })}
3149
- >
3150
- <slot></slot>
3151
- ${this.arrow ? j`<div
3152
- part="arrow"
3153
- class="popup__arrow"
3154
- role="presentation"
3155
- ></div>` : ""}
3156
- </div>
3157
- </cx-overlay>`;
3158
- return j`
3159
- <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
3160
-
3161
- <span
3162
- part="hover-bridge"
3163
- class=${Dt({
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({
3164
2883
  "popup-hover-bridge": !0,
3165
2884
  "popup-hover-bridge--visible": this.hoverBridge && this.active
3166
- })}
3167
- ></span>
3168
-
3169
- ${je(
2885
+ })}></span>${Ue(
3170
2886
  this.strategy === "overlay",
3171
2887
  () => e,
3172
- () => j`<div
3173
- part="popup"
3174
- class=${Dt({
2888
+ () => U`<div part="popup" class=${ht({
3175
2889
  popup: !0,
3176
2890
  "popup--active": this.active,
3177
2891
  "popup--fixed": this.strategy === "fixed",
3178
2892
  "popup--has-arrow": this.arrow,
3179
2893
  "popup--use-size-middleware": this.isSizeMiddleWareUsed
3180
- })}
3181
- >
3182
- <slot></slot>
3183
- ${this.arrow ? j`<div
3184
- part="arrow"
3185
- class="popup__arrow"
3186
- role="presentation"
3187
- ></div>` : ""}
3188
- </div>`
2894
+ })}><slot></slot>${this.arrow ? U`<div part="arrow" class="popup__arrow" role="presentation"></div>` : ""}</div>`
3189
2895
  )}
3190
2896
  `;
3191
2897
  }
3192
2898
  };
3193
2899
  b.styles = [ye, Ro];
3194
2900
  w([
3195
- ut(".popup")
2901
+ Ct(".popup")
3196
2902
  ], b.prototype, "popup", 2);
3197
2903
  w([
3198
- ut(".popup__arrow")
2904
+ Ct(".popup__arrow")
3199
2905
  ], b.prototype, "arrowEl", 2);
3200
2906
  w([
3201
- ut("cx-overlay")
3202
- ], b.prototype, "overlay", 2);
3203
- w([
3204
- v()
2907
+ y()
3205
2908
  ], b.prototype, "anchor", 2);
3206
2909
  w([
3207
- v({ reflect: !0, type: Boolean })
2910
+ y({ reflect: !0, type: Boolean })
3208
2911
  ], b.prototype, "active", 2);
3209
2912
  w([
3210
- v({ reflect: !0 })
2913
+ y({ reflect: !0 })
3211
2914
  ], b.prototype, "placement", 2);
3212
2915
  w([
3213
- v({ reflect: !0 })
2916
+ y({ reflect: !0 })
3214
2917
  ], b.prototype, "strategy", 2);
3215
2918
  w([
3216
- v({ type: Number })
2919
+ y({ type: Number })
3217
2920
  ], b.prototype, "distance", 2);
3218
2921
  w([
3219
- v({ type: Number })
2922
+ y({ type: Number })
3220
2923
  ], b.prototype, "skidding", 2);
3221
2924
  w([
3222
- v({ type: Boolean })
2925
+ y({ type: Boolean })
3223
2926
  ], b.prototype, "arrow", 2);
3224
2927
  w([
3225
- v({ attribute: "arrow-placement" })
2928
+ y({ attribute: "arrow-placement" })
3226
2929
  ], b.prototype, "arrowPlacement", 2);
3227
2930
  w([
3228
- v({ attribute: "arrow-padding", type: Number })
2931
+ y({ attribute: "arrow-padding", type: Number })
3229
2932
  ], b.prototype, "arrowPadding", 2);
3230
2933
  w([
3231
- v({ type: Boolean })
2934
+ y({ type: Boolean })
3232
2935
  ], b.prototype, "flip", 2);
3233
2936
  w([
3234
- v({ type: Boolean })
2937
+ y({ type: Boolean })
3235
2938
  ], b.prototype, "hide", 2);
3236
2939
  w([
3237
- v({ attribute: "hide-boundary", type: Object })
2940
+ y({ attribute: "hide-boundary", type: Object })
3238
2941
  ], b.prototype, "hideBoundary", 2);
3239
2942
  w([
3240
- v({ attribute: "hide-boundary-strategy" })
2943
+ y({ attribute: "hide-boundary-strategy" })
3241
2944
  ], b.prototype, "hideBoundaryStrategy", 2);
3242
2945
  w([
3243
- v({
2946
+ y({
3244
2947
  attribute: "flip-fallback-placements",
3245
2948
  converter: {
3246
2949
  fromAttribute: (e) => e.split(" ").map((t) => t.trim()).filter((t) => t !== ""),
@@ -3249,43 +2952,43 @@ w([
3249
2952
  })
3250
2953
  ], b.prototype, "flipFallbackPlacements", 2);
3251
2954
  w([
3252
- v({ attribute: "flip-fallback-strategy" })
2955
+ y({ attribute: "flip-fallback-strategy" })
3253
2956
  ], b.prototype, "flipFallbackStrategy", 2);
3254
2957
  w([
3255
- v({ attribute: "flip-boundary", type: Object })
2958
+ y({ attribute: "flip-boundary", type: Object })
3256
2959
  ], b.prototype, "flipBoundary", 2);
3257
2960
  w([
3258
- v({ attribute: "flip-padding", type: Number })
2961
+ y({ attribute: "flip-padding", type: Number })
3259
2962
  ], b.prototype, "flipPadding", 2);
3260
2963
  w([
3261
- v({ type: Boolean })
2964
+ y({ type: Boolean })
3262
2965
  ], b.prototype, "shift", 2);
3263
2966
  w([
3264
- v({ attribute: "shift-boundary", type: Object })
2967
+ y({ attribute: "shift-boundary", type: Object })
3265
2968
  ], b.prototype, "shiftBoundary", 2);
3266
2969
  w([
3267
- v({ attribute: "shift-padding", type: Number })
2970
+ y({ attribute: "shift-padding", type: Number })
3268
2971
  ], b.prototype, "shiftPadding", 2);
3269
2972
  w([
3270
- v({ attribute: "auto-size" })
2973
+ y({ attribute: "auto-size" })
3271
2974
  ], b.prototype, "autoSize", 2);
3272
2975
  w([
3273
- v()
2976
+ y()
3274
2977
  ], b.prototype, "sync", 2);
3275
2978
  w([
3276
- v({ attribute: "sync-element" })
2979
+ y({ attribute: "sync-element" })
3277
2980
  ], b.prototype, "syncElement", 2);
3278
2981
  w([
3279
- v({ attribute: "auto-size-boundary", type: Object })
2982
+ y({ attribute: "auto-size-boundary", type: Object })
3280
2983
  ], b.prototype, "autoSizeBoundary", 2);
3281
2984
  w([
3282
- v({ attribute: "auto-size-padding", type: Number })
2985
+ y({ attribute: "auto-size-padding", type: Number })
3283
2986
  ], b.prototype, "autoSizePadding", 2);
3284
2987
  w([
3285
- v({ attribute: "hover-bridge", type: Boolean })
2988
+ y({ attribute: "hover-bridge", type: Boolean })
3286
2989
  ], b.prototype, "hoverBridge", 2);
3287
2990
  w([
3288
- v({ attribute: "auto-width-factor" })
2991
+ y({ attribute: "auto-width-factor" })
3289
2992
  ], b.prototype, "autoWidthFactor", 2);
3290
2993
  w([
3291
2994
  Ve(200)