@viasat/beam-web-components 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/Accordion/Accordion.d.ts +56 -0
  2. package/Accordion/Accordion.js +12 -0
  3. package/Accordion/AccordionGroup.context.d.ts +10 -0
  4. package/Accordion/AccordionGroup.context.js +8 -0
  5. package/Accordion/AccordionGroup.d.ts +33 -0
  6. package/Accordion/AccordionGroup.js +79 -0
  7. package/Accordion/index.d.ts +3 -0
  8. package/Accordion/index.js +6 -0
  9. package/Alert/Alert.d.ts +64 -0
  10. package/Alert/Alert.js +300 -0
  11. package/Alert/index.d.ts +2 -0
  12. package/Alert/index.js +4 -0
  13. package/Avatar/Avatar.d.ts +60 -0
  14. package/Avatar/Avatar.js +12 -0
  15. package/Avatar/AvatarGroup.context.d.ts +11 -0
  16. package/Avatar/AvatarGroup.context.js +8 -0
  17. package/Avatar/AvatarGroup.d.ts +43 -0
  18. package/Avatar/AvatarGroup.js +181 -0
  19. package/Avatar/index.d.ts +3 -0
  20. package/Avatar/index.js +6 -0
  21. package/Badge/Badge.d.ts +40 -0
  22. package/Badge/Badge.js +125 -0
  23. package/Badge/index.d.ts +2 -0
  24. package/Badge/index.js +4 -0
  25. package/BadgeDot/BadgeDot.d.ts +38 -0
  26. package/BadgeDot/BadgeDot.js +59 -0
  27. package/BadgeDot/index.d.ts +2 -0
  28. package/BadgeDot/index.js +4 -0
  29. package/Box/Box.d.ts +99 -0
  30. package/Box/Box.js +115 -0
  31. package/Box/index.d.ts +2 -0
  32. package/Box/index.js +4 -0
  33. package/Breadcrumbs/Breadcrumbs.context.d.ts +10 -0
  34. package/Breadcrumbs/Breadcrumbs.context.js +8 -0
  35. package/Breadcrumbs/Breadcrumbs.d.ts +38 -0
  36. package/Breadcrumbs/Breadcrumbs.js +115 -0
  37. package/Breadcrumbs/BreadcrumbsItem.d.ts +39 -0
  38. package/Breadcrumbs/BreadcrumbsItem.js +13 -0
  39. package/Breadcrumbs/index.d.ts +3 -0
  40. package/Breadcrumbs/index.js +6 -0
  41. package/Button/Button.d.ts +73 -0
  42. package/Button/Button.js +125 -0
  43. package/Button/index.d.ts +2 -0
  44. package/Button/index.js +4 -0
  45. package/CloseButton/CloseButton.d.ts +25 -0
  46. package/CloseButton/CloseButton.js +60 -0
  47. package/CloseButton/index.d.ts +2 -0
  48. package/CloseButton/index.js +4 -0
  49. package/Divider/Divider.d.ts +56 -0
  50. package/Divider/Divider.js +111 -0
  51. package/Divider/index.d.ts +2 -0
  52. package/Divider/index.js +4 -0
  53. package/EmptyState/EmptyState.d.ts +36 -0
  54. package/EmptyState/EmptyState.js +56 -0
  55. package/EmptyState/index.d.ts +2 -0
  56. package/EmptyState/index.js +4 -0
  57. package/HelperText/HelperText.d.ts +45 -0
  58. package/HelperText/HelperText.js +11 -0
  59. package/HelperText/index.d.ts +2 -0
  60. package/HelperText/index.js +4 -0
  61. package/Icon/Icon.d.ts +35 -0
  62. package/Icon/Icon.js +62 -0
  63. package/Icon/index.d.ts +2 -0
  64. package/Icon/index.js +4 -0
  65. package/InputChoiceGroup/InputChoiceGroup.context.d.ts +13 -0
  66. package/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  67. package/InputChoiceGroup/InputChoiceGroup.d.ts +87 -0
  68. package/InputChoiceGroup/InputChoiceGroup.js +205 -0
  69. package/InputChoiceGroup/index.d.ts +2 -0
  70. package/InputChoiceGroup/index.js +4 -0
  71. package/Link/Link.d.ts +48 -0
  72. package/Link/Link.js +77 -0
  73. package/Link/index.d.ts +2 -0
  74. package/Link/index.js +4 -0
  75. package/List/List.context.d.ts +15 -0
  76. package/List/List.context.js +8 -0
  77. package/List/List.d.ts +43 -0
  78. package/List/List.js +101 -0
  79. package/List/ListItem.d.ts +23 -0
  80. package/List/ListItem.js +90 -0
  81. package/List/index.d.ts +3 -0
  82. package/List/index.js +6 -0
  83. package/ProgressBar/ProgressBar.d.ts +52 -0
  84. package/ProgressBar/ProgressBar.js +128 -0
  85. package/ProgressBar/index.d.ts +2 -0
  86. package/ProgressBar/index.js +4 -0
  87. package/README.md +360 -0
  88. package/SegmentedControl/SegmentedControl.context.d.ts +16 -0
  89. package/SegmentedControl/SegmentedControl.context.js +8 -0
  90. package/SegmentedControl/SegmentedControl.d.ts +41 -0
  91. package/SegmentedControl/SegmentedControl.js +103 -0
  92. package/SegmentedControl/SegmentedControlItem.d.ts +54 -0
  93. package/SegmentedControl/SegmentedControlItem.js +284 -0
  94. package/SegmentedControl/SegmentedControlList.d.ts +23 -0
  95. package/SegmentedControl/SegmentedControlList.js +61 -0
  96. package/SegmentedControl/SegmentedControlPanel.d.ts +21 -0
  97. package/SegmentedControl/SegmentedControlPanel.js +43 -0
  98. package/SegmentedControl/index.d.ts +5 -0
  99. package/SegmentedControl/index.js +10 -0
  100. package/Spinner/Spinner.d.ts +50 -0
  101. package/Spinner/Spinner.js +186 -0
  102. package/Spinner/index.d.ts +2 -0
  103. package/Spinner/index.js +4 -0
  104. package/StateLayer/StateLayer.d.ts +17 -0
  105. package/StateLayer/StateLayer.js +6 -0
  106. package/StateLayer/index.d.ts +2 -0
  107. package/StateLayer/index.js +5 -0
  108. package/Text/Text.d.ts +85 -0
  109. package/Text/Text.js +103 -0
  110. package/Text/index.d.ts +2 -0
  111. package/Text/index.js +4 -0
  112. package/Tooltip/Tooltip.d.ts +139 -0
  113. package/Tooltip/Tooltip.js +1827 -0
  114. package/Tooltip/index.d.ts +2 -0
  115. package/Tooltip/index.js +5 -0
  116. package/chunks/Accordion.DYD3XcAx.js +161 -0
  117. package/chunks/Avatar.C2rfzUGP.js +174 -0
  118. package/chunks/BreadcrumbsItem.4ZR6wbMz.js +121 -0
  119. package/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  120. package/chunks/HelperText.CcVVOtA3.js +108 -0
  121. package/chunks/Upload.B9YEyp7b.js +12 -0
  122. package/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  123. package/chunks/classNames.Cq_tbDRp.js +94 -0
  124. package/chunks/constants.jOWREYQE.js +30 -0
  125. package/chunks/delegate.baxDQosr.js +63 -0
  126. package/chunks/dom.C98AFbJh.js +22 -0
  127. package/chunks/fileUpload.module.kN6o64aL.js +4 -0
  128. package/chunks/globals.Bz4SVF2g.js +4 -0
  129. package/chunks/helpers.AwJwaZvv.js +53 -0
  130. package/chunks/list.module.CZRPBLzy.js +4 -0
  131. package/chunks/register-custom-element.DHGKOhmA.js +17 -0
  132. package/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  133. package/chunks/tokens.CTW8Tt94.js +9 -0
  134. package/custom-elements.json +11341 -0
  135. package/local/Accordion/Accordion.js +12 -0
  136. package/local/Accordion/AccordionGroup.context.js +8 -0
  137. package/local/Accordion/AccordionGroup.js +78 -0
  138. package/local/Accordion/index.js +6 -0
  139. package/local/Alert/Alert.js +301 -0
  140. package/local/Alert/index.js +4 -0
  141. package/local/Avatar/Avatar.js +11 -0
  142. package/local/Avatar/AvatarGroup.context.js +8 -0
  143. package/local/Avatar/AvatarGroup.js +180 -0
  144. package/local/Avatar/index.js +6 -0
  145. package/local/Badge/Badge.js +123 -0
  146. package/local/Badge/index.js +4 -0
  147. package/local/BadgeDot/BadgeDot.js +57 -0
  148. package/local/BadgeDot/index.js +4 -0
  149. package/local/Box/Box.js +113 -0
  150. package/local/Box/index.js +4 -0
  151. package/local/Breadcrumbs/Breadcrumbs.context.js +8 -0
  152. package/local/Breadcrumbs/Breadcrumbs.js +113 -0
  153. package/local/Breadcrumbs/BreadcrumbsItem.js +13 -0
  154. package/local/Breadcrumbs/index.js +6 -0
  155. package/local/Button/Button.js +154 -0
  156. package/local/Button/index.js +4 -0
  157. package/local/CloseButton/CloseButton.js +58 -0
  158. package/local/CloseButton/index.js +4 -0
  159. package/local/Divider/Divider.js +111 -0
  160. package/local/Divider/index.js +4 -0
  161. package/local/EmptyState/EmptyState.js +54 -0
  162. package/local/EmptyState/index.js +4 -0
  163. package/local/HelperText/HelperText.js +9 -0
  164. package/local/HelperText/index.js +4 -0
  165. package/local/Icon/Icon.js +60 -0
  166. package/local/Icon/index.js +4 -0
  167. package/local/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  168. package/local/InputChoiceGroup/InputChoiceGroup.js +205 -0
  169. package/local/InputChoiceGroup/index.js +4 -0
  170. package/local/Link/Link.js +75 -0
  171. package/local/Link/index.js +4 -0
  172. package/local/List/List.context.js +8 -0
  173. package/local/List/List.js +101 -0
  174. package/local/List/ListItem.js +90 -0
  175. package/local/List/index.js +6 -0
  176. package/local/ProgressBar/ProgressBar.js +126 -0
  177. package/local/ProgressBar/index.js +4 -0
  178. package/local/SegmentedControl/SegmentedControl.context.js +8 -0
  179. package/local/SegmentedControl/SegmentedControl.js +103 -0
  180. package/local/SegmentedControl/SegmentedControlItem.js +284 -0
  181. package/local/SegmentedControl/SegmentedControlList.js +59 -0
  182. package/local/SegmentedControl/SegmentedControlPanel.js +41 -0
  183. package/local/SegmentedControl/index.js +10 -0
  184. package/local/Spinner/Spinner.js +185 -0
  185. package/local/Spinner/index.js +4 -0
  186. package/local/StateLayer/StateLayer.js +6 -0
  187. package/local/StateLayer/index.js +5 -0
  188. package/local/Text/Text.js +121 -0
  189. package/local/Text/index.js +4 -0
  190. package/local/Tooltip/Tooltip.js +1826 -0
  191. package/local/Tooltip/index.js +5 -0
  192. package/local/chunks/Accordion.PGU7OILE.js +161 -0
  193. package/local/chunks/Avatar.CvTOzaRT.js +172 -0
  194. package/local/chunks/BreadcrumbsItem.GM6sBp_o.js +121 -0
  195. package/local/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  196. package/local/chunks/Upload.B9YEyp7b.js +12 -0
  197. package/local/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  198. package/local/chunks/base.D76d76ww.js +9 -0
  199. package/local/chunks/classNames.C6fNrXWF.js +106 -0
  200. package/local/chunks/constants.jOWREYQE.js +30 -0
  201. package/local/chunks/consume.Ce9k1-wN.js +47 -0
  202. package/local/chunks/context-request-event.Bl9Vpkzl.js +13 -0
  203. package/local/chunks/create-context.DS1OG3vJ.js +11 -0
  204. package/local/chunks/delegate.baxDQosr.js +63 -0
  205. package/local/chunks/directive.kLG6oqUu.js +27 -0
  206. package/local/chunks/dom.C98AFbJh.js +22 -0
  207. package/local/chunks/fileUpload.module.kN6o64aL.js +4 -0
  208. package/local/chunks/globals.Bz4SVF2g.js +4 -0
  209. package/local/chunks/helpers.BWcXAteC.js +53 -0
  210. package/local/chunks/index.Bz1Jq4c2.js +106 -0
  211. package/local/chunks/list.module.CZRPBLzy.js +4 -0
  212. package/local/chunks/lit-element.CJtt9wj5.js +557 -0
  213. package/local/chunks/provide.i2FlUkOu.js +110 -0
  214. package/local/chunks/query-assigned-elements.Drkgpk9q.js +19 -0
  215. package/local/chunks/query-assigned-nodes.Dgvsf6BR.js +19 -0
  216. package/local/chunks/query.lbpOn5CD.js +20 -0
  217. package/local/chunks/ref.B7e1Hu4F.js +107 -0
  218. package/local/chunks/register-custom-element.vod7zfGv.js +51 -0
  219. package/local/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  220. package/local/chunks/state.CqiuSzAl.js +12 -0
  221. package/local/chunks/tokens.CTW8Tt94.js +9 -0
  222. package/local/chunks/unsafe-html.BzhXEygn.js +27 -0
  223. package/local/chunks/unsafe-svg.HSGf1NCU.js +14 -0
  224. package/local/wip/Checkbox/Checkbox.js +102 -0
  225. package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  226. package/local/wip/Checkbox/index.js +6 -0
  227. package/local/wip/FileUpload/FileUpload.Button.js +75 -0
  228. package/local/wip/FileUpload/FileUpload.Dropzone.js +149 -0
  229. package/local/wip/FileUpload/FileUpload.List.Item.js +201 -0
  230. package/local/wip/FileUpload/FileUpload.List.js +105 -0
  231. package/local/wip/FileUpload/FileUpload.js +452 -0
  232. package/local/wip/FileUpload/FileUploadContext.js +8 -0
  233. package/local/wip/FileUpload/FileUploadListContext.js +8 -0
  234. package/local/wip/FileUpload/index.js +13 -0
  235. package/local/wip/Form/Form.context.js +20 -0
  236. package/local/wip/Form/Form.decorator.js +145 -0
  237. package/local/wip/Form/Form.js +288 -0
  238. package/local/wip/Form/Form.utils.js +8 -0
  239. package/local/wip/Form/index.js +7 -0
  240. package/local/wip/Label/Label.js +86 -0
  241. package/local/wip/Label/index.js +4 -0
  242. package/local/wip/NativeSelect/NativeSelect.js +162 -0
  243. package/local/wip/NativeSelect/index.js +4 -0
  244. package/local/wip/RadioButton/RadioButton.js +123 -0
  245. package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  246. package/local/wip/RadioButton/index.js +6 -0
  247. package/local/wip/Switch/Switch.js +153 -0
  248. package/local/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  249. package/local/wip/Switch/index.js +6 -0
  250. package/local/wip/TextArea/TextArea.js +192 -0
  251. package/local/wip/TextArea/index.js +4 -0
  252. package/local/wip/TextField/TextField.js +169 -0
  253. package/local/wip/TextField/index.js +4 -0
  254. package/package.json +78 -0
  255. package/vscode.css-custom-data.json +6 -0
  256. package/vscode.html-custom-data.json +2704 -0
  257. package/wip/Checkbox/Checkbox.d.ts +55 -0
  258. package/wip/Checkbox/Checkbox.js +104 -0
  259. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  260. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  261. package/wip/Checkbox/index.d.ts +3 -0
  262. package/wip/Checkbox/index.js +6 -0
  263. package/wip/FileUpload/FileUpload.Button.d.ts +36 -0
  264. package/wip/FileUpload/FileUpload.Button.js +77 -0
  265. package/wip/FileUpload/FileUpload.Dropzone.d.ts +55 -0
  266. package/wip/FileUpload/FileUpload.Dropzone.js +150 -0
  267. package/wip/FileUpload/FileUpload.List.Item.d.ts +62 -0
  268. package/wip/FileUpload/FileUpload.List.Item.js +203 -0
  269. package/wip/FileUpload/FileUpload.List.d.ts +46 -0
  270. package/wip/FileUpload/FileUpload.List.js +106 -0
  271. package/wip/FileUpload/FileUpload.d.ts +101 -0
  272. package/wip/FileUpload/FileUpload.js +451 -0
  273. package/wip/FileUpload/FileUploadContext.d.ts +5 -0
  274. package/wip/FileUpload/FileUploadContext.js +8 -0
  275. package/wip/FileUpload/FileUploadListContext.d.ts +5 -0
  276. package/wip/FileUpload/FileUploadListContext.js +8 -0
  277. package/wip/FileUpload/index.d.ts +6 -0
  278. package/wip/FileUpload/index.js +13 -0
  279. package/wip/Form/Form.context.d.ts +19 -0
  280. package/wip/Form/Form.context.js +20 -0
  281. package/wip/Form/Form.d.ts +50 -0
  282. package/wip/Form/Form.decorator.d.ts +47 -0
  283. package/wip/Form/Form.decorator.js +144 -0
  284. package/wip/Form/Form.js +288 -0
  285. package/wip/Form/Form.utils.d.ts +2 -0
  286. package/wip/Form/Form.utils.js +8 -0
  287. package/wip/Form/index.d.ts +3 -0
  288. package/wip/Form/index.js +7 -0
  289. package/wip/Label/Label.d.ts +43 -0
  290. package/wip/Label/Label.js +87 -0
  291. package/wip/Label/index.d.ts +2 -0
  292. package/wip/Label/index.js +4 -0
  293. package/wip/NativeSelect/NativeSelect.d.ts +69 -0
  294. package/wip/NativeSelect/NativeSelect.js +163 -0
  295. package/wip/NativeSelect/index.d.ts +2 -0
  296. package/wip/NativeSelect/index.js +4 -0
  297. package/wip/RadioButton/RadioButton.d.ts +56 -0
  298. package/wip/RadioButton/RadioButton.js +125 -0
  299. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.d.ts +23 -0
  300. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  301. package/wip/RadioButton/index.d.ts +3 -0
  302. package/wip/RadioButton/index.js +6 -0
  303. package/wip/Switch/Switch.d.ts +62 -0
  304. package/wip/Switch/Switch.js +155 -0
  305. package/wip/Switch/SwitchGroup/SwitchGroup.d.ts +15 -0
  306. package/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  307. package/wip/Switch/index.d.ts +3 -0
  308. package/wip/Switch/index.js +6 -0
  309. package/wip/TextArea/TextArea.d.ts +89 -0
  310. package/wip/TextArea/TextArea.js +193 -0
  311. package/wip/TextArea/index.d.ts +2 -0
  312. package/wip/TextArea/index.js +4 -0
  313. package/wip/TextField/TextField.d.ts +70 -0
  314. package/wip/TextField/TextField.js +169 -0
  315. package/wip/TextField/index.d.ts +2 -0
  316. package/wip/TextField/index.js +4 -0
@@ -0,0 +1,1827 @@
1
+ import { unsafeCSS as xt, css as he, html as Yt, LitElement as qt } from "lit";
2
+ import { property as v, state as ge } from "lit/decorators.js";
3
+ import { createRef as zt, ref as Tt } from "lit/directives/ref.js";
4
+ import bt from "clsx";
5
+ import { h as ve, g as Gt, j as kt, k as be } from "../chunks/classNames.Cq_tbDRp.js";
6
+ import { p as ye, t as we } from "../chunks/constants.jOWREYQE.js";
7
+ import { e as xe, f as Ce } from "../chunks/tokens.CTW8Tt94.js";
8
+ import { c as Zt } from "../chunks/register-custom-element.DHGKOhmA.js";
9
+ import { c as Oe, d as Dt, m as Bt, r as Ae, h as Ee, e as Jt, f as $t } from "../chunks/helpers.AwJwaZvv.js";
10
+ const Qt = `:root,:host,.bm-light,.bm-dark .bm-inverse,[data-bm-theme~=bm-light]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #202e39);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #ffffff );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #576775 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,[data-bm-theme~=bm-dark]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #ffffff);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #141d24 );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #c3cdd5 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}.bm-tooltip__icon-trigger{border:none;background:none;padding:0;margin:0;display:flex;cursor:pointer;color:var(--bm-comp-tooltip-color-icon-trigger)}.bm-tooltip{z-index:999;background-color:var(--bm-comp-tooltip-color-bg);border-radius:var(--bm-comp-tooltip-radius);max-width:var(--bm-comp-tooltip-size-width);padding:var(--bm-comp-tooltip-space-y) var(--bm-comp-tooltip-space-x);color:var(--bm-comp-tooltip-color-text);font:var(--bm-comp-tooltip-typo-body);offset:var(--bm-comp-tooltip-space-offset);transition-property:opacity}.bm-tooltip[data-status=open]{transition-duration:0s}.bm-tooltip[data-status=close]{transition-duration:.2s}.bm-tooltip[data-status=initial],.bm-tooltip[data-status=close]{opacity:0}.bm-tooltip__arrow{offset:var(--bm-comp-tooltip-space-arrow);-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');mask-size:cover;mask-position:center;mask-repeat:no-repeat;scale:1.05;width:var(--bm-comp-tooltip-size-arrow-width);height:var(--bm-comp-tooltip-size-arrow-height);background-color:var(--bm-comp-tooltip-color-bg)}.bm-tooltip__icon-trigger svg{background:none;border:none}.bm-tooltip__icon-trigger:focus-visible{border-radius:var(--bm-sem-radius-round);outline-offset:0px;outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-tooltip__icon-trigger--disabled{opacity:var(--bm-sem-opacity-disabled);cursor:inherit}.bm-tooltip__icon-trigger--xs{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--xs svg{height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--sm{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--sm svg{height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--md{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--md svg{height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--lg{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--lg svg{height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--xl{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}.bm-tooltip__icon-trigger--xl svg{height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}`, te = ["top", "right", "bottom", "left"], Ht = ["start", "end"], Ft = /* @__PURE__ */ te.reduce((t, e) => t.concat(e, e + "-" + Ht[0], e + "-" + Ht[1]), []), tt = Math.min, q = Math.max, ft = Math.round, ct = Math.floor, F = (t) => ({
11
+ x: t,
12
+ y: t
13
+ }), Pe = {
14
+ left: "right",
15
+ right: "left",
16
+ bottom: "top",
17
+ top: "bottom"
18
+ }, Re = {
19
+ start: "end",
20
+ end: "start"
21
+ };
22
+ function yt(t, e, n) {
23
+ return q(t, tt(e, n));
24
+ }
25
+ function J(t, e) {
26
+ return typeof t == "function" ? t(e) : t;
27
+ }
28
+ function z(t) {
29
+ return t.split("-")[0];
30
+ }
31
+ function M(t) {
32
+ return t.split("-")[1];
33
+ }
34
+ function Ct(t) {
35
+ return t === "x" ? "y" : "x";
36
+ }
37
+ function Ot(t) {
38
+ return t === "y" ? "height" : "width";
39
+ }
40
+ function et(t) {
41
+ return ["top", "bottom"].includes(z(t)) ? "y" : "x";
42
+ }
43
+ function At(t) {
44
+ return Ct(et(t));
45
+ }
46
+ function ee(t, e, n) {
47
+ n === void 0 && (n = !1);
48
+ const i = M(t), o = At(t), r = Ot(o);
49
+ let s = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
50
+ return e.reference[r] > e.floating[r] && (s = it(s)), [s, it(s)];
51
+ }
52
+ function Le(t) {
53
+ const e = it(t);
54
+ return [pt(t), e, pt(e)];
55
+ }
56
+ function pt(t) {
57
+ return t.replace(/start|end/g, (e) => Re[e]);
58
+ }
59
+ function Se(t, e, n) {
60
+ const i = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
61
+ switch (t) {
62
+ case "top":
63
+ case "bottom":
64
+ return n ? e ? o : i : e ? i : o;
65
+ case "left":
66
+ case "right":
67
+ return e ? r : s;
68
+ default:
69
+ return [];
70
+ }
71
+ }
72
+ function _e(t, e, n, i) {
73
+ const o = M(t);
74
+ let r = Se(z(t), n === "start", i);
75
+ return o && (r = r.map((s) => s + "-" + o), e && (r = r.concat(r.map(pt)))), r;
76
+ }
77
+ function it(t) {
78
+ return t.replace(/left|right|bottom|top/g, (e) => Pe[e]);
79
+ }
80
+ function ze(t) {
81
+ return {
82
+ top: 0,
83
+ right: 0,
84
+ bottom: 0,
85
+ left: 0,
86
+ ...t
87
+ };
88
+ }
89
+ function oe(t) {
90
+ return typeof t != "number" ? ze(t) : {
91
+ top: t,
92
+ right: t,
93
+ bottom: t,
94
+ left: t
95
+ };
96
+ }
97
+ function mt(t) {
98
+ const {
99
+ x: e,
100
+ y: n,
101
+ width: i,
102
+ height: o
103
+ } = t;
104
+ return {
105
+ width: i,
106
+ height: o,
107
+ top: n,
108
+ left: e,
109
+ right: e + i,
110
+ bottom: n + o,
111
+ x: e,
112
+ y: n
113
+ };
114
+ }
115
+ function Mt(t, e, n) {
116
+ let {
117
+ reference: i,
118
+ floating: o
119
+ } = t;
120
+ const r = et(e), s = At(e), l = Ot(s), c = z(e), a = r === "y", m = i.x + i.width / 2 - o.width / 2, f = i.y + i.height / 2 - o.height / 2, d = i[l] / 2 - o[l] / 2;
121
+ let p;
122
+ switch (c) {
123
+ case "top":
124
+ p = {
125
+ x: m,
126
+ y: i.y - o.height
127
+ };
128
+ break;
129
+ case "bottom":
130
+ p = {
131
+ x: m,
132
+ y: i.y + i.height
133
+ };
134
+ break;
135
+ case "right":
136
+ p = {
137
+ x: i.x + i.width,
138
+ y: f
139
+ };
140
+ break;
141
+ case "left":
142
+ p = {
143
+ x: i.x - o.width,
144
+ y: f
145
+ };
146
+ break;
147
+ default:
148
+ p = {
149
+ x: i.x,
150
+ y: i.y
151
+ };
152
+ }
153
+ switch (M(e)) {
154
+ case "start":
155
+ p[s] -= d * (n && a ? -1 : 1);
156
+ break;
157
+ case "end":
158
+ p[s] += d * (n && a ? -1 : 1);
159
+ break;
160
+ }
161
+ return p;
162
+ }
163
+ const Te = async (t, e, n) => {
164
+ const {
165
+ placement: i = "bottom",
166
+ strategy: o = "absolute",
167
+ middleware: r = [],
168
+ platform: s
169
+ } = n, l = r.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(e));
170
+ let a = await s.getElementRects({
171
+ reference: t,
172
+ floating: e,
173
+ strategy: o
174
+ }), {
175
+ x: m,
176
+ y: f
177
+ } = Mt(a, i, c), d = i, p = {}, b = 0;
178
+ for (let g = 0; g < l.length; g++) {
179
+ const {
180
+ name: h,
181
+ fn: u
182
+ } = l[g], {
183
+ x: y,
184
+ y: w,
185
+ data: A,
186
+ reset: x
187
+ } = await u({
188
+ x: m,
189
+ y: f,
190
+ initialPlacement: i,
191
+ placement: d,
192
+ strategy: o,
193
+ middlewareData: p,
194
+ rects: a,
195
+ platform: s,
196
+ elements: {
197
+ reference: t,
198
+ floating: e
199
+ }
200
+ });
201
+ m = y ?? m, f = w ?? f, p = {
202
+ ...p,
203
+ [h]: {
204
+ ...p[h],
205
+ ...A
206
+ }
207
+ }, x && b <= 50 && (b++, typeof x == "object" && (x.placement && (d = x.placement), x.rects && (a = x.rects === !0 ? await s.getElementRects({
208
+ reference: t,
209
+ floating: e,
210
+ strategy: o
211
+ }) : x.rects), {
212
+ x: m,
213
+ y: f
214
+ } = Mt(a, d, c)), g = -1);
215
+ }
216
+ return {
217
+ x: m,
218
+ y: f,
219
+ placement: d,
220
+ strategy: o,
221
+ middlewareData: p
222
+ };
223
+ };
224
+ async function st(t, e) {
225
+ var n;
226
+ e === void 0 && (e = {});
227
+ const {
228
+ x: i,
229
+ y: o,
230
+ platform: r,
231
+ rects: s,
232
+ elements: l,
233
+ strategy: c
234
+ } = t, {
235
+ boundary: a = "clippingAncestors",
236
+ rootBoundary: m = "viewport",
237
+ elementContext: f = "floating",
238
+ altBoundary: d = !1,
239
+ padding: p = 0
240
+ } = J(e, t), b = oe(p), h = l[d ? f === "floating" ? "reference" : "floating" : f], u = mt(await r.getClippingRect({
241
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(h))) == null || n ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
242
+ boundary: a,
243
+ rootBoundary: m,
244
+ strategy: c
245
+ })), y = f === "floating" ? {
246
+ x: i,
247
+ y: o,
248
+ width: s.floating.width,
249
+ height: s.floating.height
250
+ } : s.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), A = await (r.isElement == null ? void 0 : r.isElement(w)) ? await (r.getScale == null ? void 0 : r.getScale(w)) || {
251
+ x: 1,
252
+ y: 1
253
+ } : {
254
+ x: 1,
255
+ y: 1
256
+ }, x = mt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
257
+ elements: l,
258
+ rect: y,
259
+ offsetParent: w,
260
+ strategy: c
261
+ }) : y);
262
+ return {
263
+ top: (u.top - x.top + b.top) / A.y,
264
+ bottom: (x.bottom - u.bottom + b.bottom) / A.y,
265
+ left: (u.left - x.left + b.left) / A.x,
266
+ right: (x.right - u.right + b.right) / A.x
267
+ };
268
+ }
269
+ function ke(t, e, n) {
270
+ return (t ? [...n.filter((o) => M(o) === t), ...n.filter((o) => M(o) !== t)] : n.filter((o) => z(o) === o)).filter((o) => t ? M(o) === t || (e ? pt(o) !== o : !1) : !0);
271
+ }
272
+ const De = function(t) {
273
+ return t === void 0 && (t = {}), {
274
+ name: "autoPlacement",
275
+ options: t,
276
+ async fn(e) {
277
+ var n, i, o;
278
+ const {
279
+ rects: r,
280
+ middlewareData: s,
281
+ placement: l,
282
+ platform: c,
283
+ elements: a
284
+ } = e, {
285
+ crossAxis: m = !1,
286
+ alignment: f,
287
+ allowedPlacements: d = Ft,
288
+ autoAlignment: p = !0,
289
+ ...b
290
+ } = J(t, e), g = f !== void 0 || d === Ft ? ke(f || null, p, d) : d, h = await st(e, b), u = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, y = g[u];
291
+ if (y == null)
292
+ return {};
293
+ const w = ee(y, r, await (c.isRTL == null ? void 0 : c.isRTL(a.floating)));
294
+ if (l !== y)
295
+ return {
296
+ reset: {
297
+ placement: g[0]
298
+ }
299
+ };
300
+ const A = [h[z(y)], h[w[0]], h[w[1]]], x = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
301
+ placement: y,
302
+ overflows: A
303
+ }], D = g[u + 1];
304
+ if (D)
305
+ return {
306
+ data: {
307
+ index: u + 1,
308
+ overflows: x
309
+ },
310
+ reset: {
311
+ placement: D
312
+ }
313
+ };
314
+ const R = x.map((E) => {
315
+ const S = M(E.placement);
316
+ return [E.placement, S && m ? (
317
+ // Check along the mainAxis and main crossAxis side.
318
+ E.overflows.slice(0, 2).reduce((Y, W) => Y + W, 0)
319
+ ) : (
320
+ // Check only the mainAxis.
321
+ E.overflows[0]
322
+ ), E.overflows];
323
+ }).sort((E, S) => E[1] - S[1]), N = ((o = R.filter((E) => E[2].slice(
324
+ 0,
325
+ // Aligned placements should not check their opposite crossAxis
326
+ // side.
327
+ M(E[0]) ? 2 : 3
328
+ ).every((S) => S <= 0))[0]) == null ? void 0 : o[0]) || R[0][0];
329
+ return N !== l ? {
330
+ data: {
331
+ index: u + 1,
332
+ overflows: x
333
+ },
334
+ reset: {
335
+ placement: N
336
+ }
337
+ } : {};
338
+ }
339
+ };
340
+ }, Be = function(t) {
341
+ return t === void 0 && (t = {}), {
342
+ name: "flip",
343
+ options: t,
344
+ async fn(e) {
345
+ var n, i;
346
+ const {
347
+ placement: o,
348
+ middlewareData: r,
349
+ rects: s,
350
+ initialPlacement: l,
351
+ platform: c,
352
+ elements: a
353
+ } = e, {
354
+ mainAxis: m = !0,
355
+ crossAxis: f = !0,
356
+ fallbackPlacements: d,
357
+ fallbackStrategy: p = "bestFit",
358
+ fallbackAxisSideDirection: b = "none",
359
+ flipAlignment: g = !0,
360
+ ...h
361
+ } = J(t, e);
362
+ if ((n = r.arrow) != null && n.alignmentOffset)
363
+ return {};
364
+ const u = z(o), y = et(l), w = z(l) === l, A = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), x = d || (w || !g ? [it(l)] : Le(l)), D = b !== "none";
365
+ !d && D && x.push(..._e(l, g, b, A));
366
+ const R = [l, ...x], B = await st(e, h), N = [];
367
+ let E = ((i = r.flip) == null ? void 0 : i.overflows) || [];
368
+ if (m && N.push(B[u]), f) {
369
+ const $ = ee(o, s, A);
370
+ N.push(B[$[0]], B[$[1]]);
371
+ }
372
+ if (E = [...E, {
373
+ placement: o,
374
+ overflows: N
375
+ }], !N.every(($) => $ <= 0)) {
376
+ var S, Y;
377
+ const $ = (((S = r.flip) == null ? void 0 : S.index) || 0) + 1, U = R[$];
378
+ if (U)
379
+ return {
380
+ data: {
381
+ index: $,
382
+ overflows: E
383
+ },
384
+ reset: {
385
+ placement: U
386
+ }
387
+ };
388
+ let K = (Y = E.filter((V) => V.overflows[0] <= 0).sort((V, H) => V.overflows[1] - H.overflows[1])[0]) == null ? void 0 : Y.placement;
389
+ if (!K)
390
+ switch (p) {
391
+ case "bestFit": {
392
+ var W;
393
+ const V = (W = E.filter((H) => {
394
+ if (D) {
395
+ const _ = et(H.placement);
396
+ return _ === y || // Create a bias to the `y` side axis due to horizontal
397
+ // reading directions favoring greater width.
398
+ _ === "y";
399
+ }
400
+ return !0;
401
+ }).map((H) => [H.placement, H.overflows.filter((_) => _ > 0).reduce((_, gt) => _ + gt, 0)]).sort((H, _) => H[1] - _[1])[0]) == null ? void 0 : W[0];
402
+ V && (K = V);
403
+ break;
404
+ }
405
+ case "initialPlacement":
406
+ K = l;
407
+ break;
408
+ }
409
+ if (o !== K)
410
+ return {
411
+ reset: {
412
+ placement: K
413
+ }
414
+ };
415
+ }
416
+ return {};
417
+ }
418
+ };
419
+ };
420
+ function jt(t, e) {
421
+ return {
422
+ top: t.top - e.height,
423
+ right: t.right - e.width,
424
+ bottom: t.bottom - e.height,
425
+ left: t.left - e.width
426
+ };
427
+ }
428
+ function It(t) {
429
+ return te.some((e) => t[e] >= 0);
430
+ }
431
+ const $e = function(t) {
432
+ return t === void 0 && (t = {}), {
433
+ name: "hide",
434
+ options: t,
435
+ async fn(e) {
436
+ const {
437
+ rects: n
438
+ } = e, {
439
+ strategy: i = "referenceHidden",
440
+ ...o
441
+ } = J(t, e);
442
+ switch (i) {
443
+ case "referenceHidden": {
444
+ const r = await st(e, {
445
+ ...o,
446
+ elementContext: "reference"
447
+ }), s = jt(r, n.reference);
448
+ return {
449
+ data: {
450
+ referenceHiddenOffsets: s,
451
+ referenceHidden: It(s)
452
+ }
453
+ };
454
+ }
455
+ case "escaped": {
456
+ const r = await st(e, {
457
+ ...o,
458
+ altBoundary: !0
459
+ }), s = jt(r, n.floating);
460
+ return {
461
+ data: {
462
+ escapedOffsets: s,
463
+ escaped: It(s)
464
+ }
465
+ };
466
+ }
467
+ default:
468
+ return {};
469
+ }
470
+ }
471
+ };
472
+ };
473
+ async function He(t, e) {
474
+ const {
475
+ placement: n,
476
+ platform: i,
477
+ elements: o
478
+ } = t, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = z(n), l = M(n), c = et(n) === "y", a = ["left", "top"].includes(s) ? -1 : 1, m = r && c ? -1 : 1, f = J(e, t);
479
+ let {
480
+ mainAxis: d,
481
+ crossAxis: p,
482
+ alignmentAxis: b
483
+ } = typeof f == "number" ? {
484
+ mainAxis: f,
485
+ crossAxis: 0,
486
+ alignmentAxis: null
487
+ } : {
488
+ mainAxis: f.mainAxis || 0,
489
+ crossAxis: f.crossAxis || 0,
490
+ alignmentAxis: f.alignmentAxis
491
+ };
492
+ return l && typeof b == "number" && (p = l === "end" ? b * -1 : b), c ? {
493
+ x: p * m,
494
+ y: d * a
495
+ } : {
496
+ x: d * a,
497
+ y: p * m
498
+ };
499
+ }
500
+ const Fe = function(t) {
501
+ return t === void 0 && (t = 0), {
502
+ name: "offset",
503
+ options: t,
504
+ async fn(e) {
505
+ var n, i;
506
+ const {
507
+ x: o,
508
+ y: r,
509
+ placement: s,
510
+ middlewareData: l
511
+ } = e, c = await He(e, t);
512
+ return s === ((n = l.offset) == null ? void 0 : n.placement) && (i = l.arrow) != null && i.alignmentOffset ? {} : {
513
+ x: o + c.x,
514
+ y: r + c.y,
515
+ data: {
516
+ ...c,
517
+ placement: s
518
+ }
519
+ };
520
+ }
521
+ };
522
+ }, Me = function(t) {
523
+ return t === void 0 && (t = {}), {
524
+ name: "shift",
525
+ options: t,
526
+ async fn(e) {
527
+ const {
528
+ x: n,
529
+ y: i,
530
+ placement: o
531
+ } = e, {
532
+ mainAxis: r = !0,
533
+ crossAxis: s = !1,
534
+ limiter: l = {
535
+ fn: (h) => {
536
+ let {
537
+ x: u,
538
+ y
539
+ } = h;
540
+ return {
541
+ x: u,
542
+ y
543
+ };
544
+ }
545
+ },
546
+ ...c
547
+ } = J(t, e), a = {
548
+ x: n,
549
+ y: i
550
+ }, m = await st(e, c), f = et(z(o)), d = Ct(f);
551
+ let p = a[d], b = a[f];
552
+ if (r) {
553
+ const h = d === "y" ? "top" : "left", u = d === "y" ? "bottom" : "right", y = p + m[h], w = p - m[u];
554
+ p = yt(y, p, w);
555
+ }
556
+ if (s) {
557
+ const h = f === "y" ? "top" : "left", u = f === "y" ? "bottom" : "right", y = b + m[h], w = b - m[u];
558
+ b = yt(y, b, w);
559
+ }
560
+ const g = l.fn({
561
+ ...e,
562
+ [d]: p,
563
+ [f]: b
564
+ });
565
+ return {
566
+ ...g,
567
+ data: {
568
+ x: g.x - n,
569
+ y: g.y - i,
570
+ enabled: {
571
+ [d]: r,
572
+ [f]: s
573
+ }
574
+ }
575
+ };
576
+ }
577
+ };
578
+ };
579
+ function dt() {
580
+ return typeof window < "u";
581
+ }
582
+ function nt(t) {
583
+ return ne(t) ? (t.nodeName || "").toLowerCase() : "#document";
584
+ }
585
+ function L(t) {
586
+ var e;
587
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
588
+ }
589
+ function I(t) {
590
+ var e;
591
+ return (e = (ne(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
592
+ }
593
+ function ne(t) {
594
+ return dt() ? t instanceof Node || t instanceof L(t).Node : !1;
595
+ }
596
+ function T(t) {
597
+ return dt() ? t instanceof Element || t instanceof L(t).Element : !1;
598
+ }
599
+ function j(t) {
600
+ return dt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
601
+ }
602
+ function Nt(t) {
603
+ return !dt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
604
+ }
605
+ function lt(t) {
606
+ const {
607
+ overflow: e,
608
+ overflowX: n,
609
+ overflowY: i,
610
+ display: o
611
+ } = k(t);
612
+ return /auto|scroll|overlay|hidden|clip/.test(e + i + n) && !["inline", "contents"].includes(o);
613
+ }
614
+ function je(t) {
615
+ return ["table", "td", "th"].includes(nt(t));
616
+ }
617
+ function ut(t) {
618
+ return [":popover-open", ":modal"].some((e) => {
619
+ try {
620
+ return t.matches(e);
621
+ } catch {
622
+ return !1;
623
+ }
624
+ });
625
+ }
626
+ function Et(t) {
627
+ const e = Pt(), n = T(t) ? k(t) : t;
628
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((i) => n[i] ? n[i] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
629
+ }
630
+ function Ie(t) {
631
+ let e = X(t);
632
+ for (; j(e) && !ot(e); ) {
633
+ if (Et(e))
634
+ return e;
635
+ if (ut(e))
636
+ return null;
637
+ e = X(e);
638
+ }
639
+ return null;
640
+ }
641
+ function Pt() {
642
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
643
+ }
644
+ function ot(t) {
645
+ return ["html", "body", "#document"].includes(nt(t));
646
+ }
647
+ function k(t) {
648
+ return L(t).getComputedStyle(t);
649
+ }
650
+ function ht(t) {
651
+ return T(t) ? {
652
+ scrollLeft: t.scrollLeft,
653
+ scrollTop: t.scrollTop
654
+ } : {
655
+ scrollLeft: t.scrollX,
656
+ scrollTop: t.scrollY
657
+ };
658
+ }
659
+ function X(t) {
660
+ if (nt(t) === "html")
661
+ return t;
662
+ const e = (
663
+ // Step into the shadow DOM of the parent of a slotted node.
664
+ t.assignedSlot || // DOM Element detected.
665
+ t.parentNode || // ShadowRoot detected.
666
+ Nt(t) && t.host || // Fallback.
667
+ I(t)
668
+ );
669
+ return Nt(e) ? e.host : e;
670
+ }
671
+ function ie(t) {
672
+ const e = X(t);
673
+ return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : j(e) && lt(e) ? e : ie(e);
674
+ }
675
+ function rt(t, e, n) {
676
+ var i;
677
+ e === void 0 && (e = []), n === void 0 && (n = !0);
678
+ const o = ie(t), r = o === ((i = t.ownerDocument) == null ? void 0 : i.body), s = L(o);
679
+ if (r) {
680
+ const l = wt(s);
681
+ return e.concat(s, s.visualViewport || [], lt(o) ? o : [], l && n ? rt(l) : []);
682
+ }
683
+ return e.concat(o, rt(o, [], n));
684
+ }
685
+ function wt(t) {
686
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
687
+ }
688
+ function se(t) {
689
+ const e = k(t);
690
+ let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
691
+ const o = j(t), r = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, l = ft(n) !== r || ft(i) !== s;
692
+ return l && (n = r, i = s), {
693
+ width: n,
694
+ height: i,
695
+ $: l
696
+ };
697
+ }
698
+ function Rt(t) {
699
+ return T(t) ? t : t.contextElement;
700
+ }
701
+ function Q(t) {
702
+ const e = Rt(t);
703
+ if (!j(e))
704
+ return F(1);
705
+ const n = e.getBoundingClientRect(), {
706
+ width: i,
707
+ height: o,
708
+ $: r
709
+ } = se(e);
710
+ let s = (r ? ft(n.width) : n.width) / i, l = (r ? ft(n.height) : n.height) / o;
711
+ return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
712
+ x: s,
713
+ y: l
714
+ };
715
+ }
716
+ const Ne = /* @__PURE__ */ F(0);
717
+ function re(t) {
718
+ const e = L(t);
719
+ return !Pt() || !e.visualViewport ? Ne : {
720
+ x: e.visualViewport.offsetLeft,
721
+ y: e.visualViewport.offsetTop
722
+ };
723
+ }
724
+ function We(t, e, n) {
725
+ return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
726
+ }
727
+ function Z(t, e, n, i) {
728
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
729
+ const o = t.getBoundingClientRect(), r = Rt(t);
730
+ let s = F(1);
731
+ e && (i ? T(i) && (s = Q(i)) : s = Q(t));
732
+ const l = We(r, n, i) ? re(r) : F(0);
733
+ let c = (o.left + l.x) / s.x, a = (o.top + l.y) / s.y, m = o.width / s.x, f = o.height / s.y;
734
+ if (r) {
735
+ const d = L(r), p = i && T(i) ? L(i) : i;
736
+ let b = d, g = wt(b);
737
+ for (; g && i && p !== b; ) {
738
+ const h = Q(g), u = g.getBoundingClientRect(), y = k(g), w = u.left + (g.clientLeft + parseFloat(y.paddingLeft)) * h.x, A = u.top + (g.clientTop + parseFloat(y.paddingTop)) * h.y;
739
+ c *= h.x, a *= h.y, m *= h.x, f *= h.y, c += w, a += A, b = L(g), g = wt(b);
740
+ }
741
+ }
742
+ return mt({
743
+ width: m,
744
+ height: f,
745
+ x: c,
746
+ y: a
747
+ });
748
+ }
749
+ function Lt(t, e) {
750
+ const n = ht(t).scrollLeft;
751
+ return e ? e.left + n : Z(I(t)).left + n;
752
+ }
753
+ function le(t, e, n) {
754
+ n === void 0 && (n = !1);
755
+ const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - (n ? 0 : (
756
+ // RTL <body> scrollbar.
757
+ Lt(t, i)
758
+ )), r = i.top + e.scrollTop;
759
+ return {
760
+ x: o,
761
+ y: r
762
+ };
763
+ }
764
+ function Ue(t) {
765
+ let {
766
+ elements: e,
767
+ rect: n,
768
+ offsetParent: i,
769
+ strategy: o
770
+ } = t;
771
+ const r = o === "fixed", s = I(i), l = e ? ut(e.floating) : !1;
772
+ if (i === s || l && r)
773
+ return n;
774
+ let c = {
775
+ scrollLeft: 0,
776
+ scrollTop: 0
777
+ }, a = F(1);
778
+ const m = F(0), f = j(i);
779
+ if ((f || !f && !r) && ((nt(i) !== "body" || lt(s)) && (c = ht(i)), j(i))) {
780
+ const p = Z(i);
781
+ a = Q(i), m.x = p.x + i.clientLeft, m.y = p.y + i.clientTop;
782
+ }
783
+ const d = s && !f && !r ? le(s, c, !0) : F(0);
784
+ return {
785
+ width: n.width * a.x,
786
+ height: n.height * a.y,
787
+ x: n.x * a.x - c.scrollLeft * a.x + m.x + d.x,
788
+ y: n.y * a.y - c.scrollTop * a.y + m.y + d.y
789
+ };
790
+ }
791
+ function Ve(t) {
792
+ return Array.from(t.getClientRects());
793
+ }
794
+ function Ke(t) {
795
+ const e = I(t), n = ht(t), i = t.ownerDocument.body, o = q(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = q(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
796
+ let s = -n.scrollLeft + Lt(t);
797
+ const l = -n.scrollTop;
798
+ return k(i).direction === "rtl" && (s += q(e.clientWidth, i.clientWidth) - o), {
799
+ width: o,
800
+ height: r,
801
+ x: s,
802
+ y: l
803
+ };
804
+ }
805
+ function Xe(t, e) {
806
+ const n = L(t), i = I(t), o = n.visualViewport;
807
+ let r = i.clientWidth, s = i.clientHeight, l = 0, c = 0;
808
+ if (o) {
809
+ r = o.width, s = o.height;
810
+ const a = Pt();
811
+ (!a || a && e === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
812
+ }
813
+ return {
814
+ width: r,
815
+ height: s,
816
+ x: l,
817
+ y: c
818
+ };
819
+ }
820
+ function Ye(t, e) {
821
+ const n = Z(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, r = j(t) ? Q(t) : F(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = o * r.x, a = i * r.y;
822
+ return {
823
+ width: s,
824
+ height: l,
825
+ x: c,
826
+ y: a
827
+ };
828
+ }
829
+ function Wt(t, e, n) {
830
+ let i;
831
+ if (e === "viewport")
832
+ i = Xe(t, n);
833
+ else if (e === "document")
834
+ i = Ke(I(t));
835
+ else if (T(e))
836
+ i = Ye(e, n);
837
+ else {
838
+ const o = re(t);
839
+ i = {
840
+ x: e.x - o.x,
841
+ y: e.y - o.y,
842
+ width: e.width,
843
+ height: e.height
844
+ };
845
+ }
846
+ return mt(i);
847
+ }
848
+ function ce(t, e) {
849
+ const n = X(t);
850
+ return n === e || !T(n) || ot(n) ? !1 : k(n).position === "fixed" || ce(n, e);
851
+ }
852
+ function qe(t, e) {
853
+ const n = e.get(t);
854
+ if (n)
855
+ return n;
856
+ let i = rt(t, [], !1).filter((l) => T(l) && nt(l) !== "body"), o = null;
857
+ const r = k(t).position === "fixed";
858
+ let s = r ? X(t) : t;
859
+ for (; T(s) && !ot(s); ) {
860
+ const l = k(s), c = Et(s);
861
+ !c && l.position === "fixed" && (o = null), (r ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(s) && !c && ce(t, s)) ? i = i.filter((m) => m !== s) : o = l, s = X(s);
862
+ }
863
+ return e.set(t, i), i;
864
+ }
865
+ function Ge(t) {
866
+ let {
867
+ element: e,
868
+ boundary: n,
869
+ rootBoundary: i,
870
+ strategy: o
871
+ } = t;
872
+ const s = [...n === "clippingAncestors" ? ut(e) ? [] : qe(e, this._c) : [].concat(n), i], l = s[0], c = s.reduce((a, m) => {
873
+ const f = Wt(e, m, o);
874
+ return a.top = q(f.top, a.top), a.right = tt(f.right, a.right), a.bottom = tt(f.bottom, a.bottom), a.left = q(f.left, a.left), a;
875
+ }, Wt(e, l, o));
876
+ return {
877
+ width: c.right - c.left,
878
+ height: c.bottom - c.top,
879
+ x: c.left,
880
+ y: c.top
881
+ };
882
+ }
883
+ function Ze(t) {
884
+ const {
885
+ width: e,
886
+ height: n
887
+ } = se(t);
888
+ return {
889
+ width: e,
890
+ height: n
891
+ };
892
+ }
893
+ function Je(t, e, n) {
894
+ const i = j(e), o = I(e), r = n === "fixed", s = Z(t, !0, r, e);
895
+ let l = {
896
+ scrollLeft: 0,
897
+ scrollTop: 0
898
+ };
899
+ const c = F(0);
900
+ if (i || !i && !r)
901
+ if ((nt(e) !== "body" || lt(o)) && (l = ht(e)), i) {
902
+ const d = Z(e, !0, r, e);
903
+ c.x = d.x + e.clientLeft, c.y = d.y + e.clientTop;
904
+ } else o && (c.x = Lt(o));
905
+ const a = o && !i && !r ? le(o, l) : F(0), m = s.left + l.scrollLeft - c.x - a.x, f = s.top + l.scrollTop - c.y - a.y;
906
+ return {
907
+ x: m,
908
+ y: f,
909
+ width: s.width,
910
+ height: s.height
911
+ };
912
+ }
913
+ function vt(t) {
914
+ return k(t).position === "static";
915
+ }
916
+ function Ut(t, e) {
917
+ if (!j(t) || k(t).position === "fixed")
918
+ return null;
919
+ if (e)
920
+ return e(t);
921
+ let n = t.offsetParent;
922
+ return I(t) === n && (n = n.ownerDocument.body), n;
923
+ }
924
+ function ae(t, e) {
925
+ const n = L(t);
926
+ if (ut(t))
927
+ return n;
928
+ if (!j(t)) {
929
+ let o = X(t);
930
+ for (; o && !ot(o); ) {
931
+ if (T(o) && !vt(o))
932
+ return o;
933
+ o = X(o);
934
+ }
935
+ return n;
936
+ }
937
+ let i = Ut(t, e);
938
+ for (; i && je(i) && vt(i); )
939
+ i = Ut(i, e);
940
+ return i && ot(i) && vt(i) && !Et(i) ? n : i || Ie(t) || n;
941
+ }
942
+ const Qe = async function(t) {
943
+ const e = this.getOffsetParent || ae, n = this.getDimensions, i = await n(t.floating);
944
+ return {
945
+ reference: Je(t.reference, await e(t.floating), t.strategy),
946
+ floating: {
947
+ x: 0,
948
+ y: 0,
949
+ width: i.width,
950
+ height: i.height
951
+ }
952
+ };
953
+ };
954
+ function to(t) {
955
+ return k(t).direction === "rtl";
956
+ }
957
+ const eo = {
958
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ue,
959
+ getDocumentElement: I,
960
+ getClippingRect: Ge,
961
+ getOffsetParent: ae,
962
+ getElementRects: Qe,
963
+ getClientRects: Ve,
964
+ getDimensions: Ze,
965
+ getScale: Q,
966
+ isElement: T,
967
+ isRTL: to
968
+ };
969
+ function fe(t, e) {
970
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
971
+ }
972
+ function oo(t, e) {
973
+ let n = null, i;
974
+ const o = I(t);
975
+ function r() {
976
+ var l;
977
+ clearTimeout(i), (l = n) == null || l.disconnect(), n = null;
978
+ }
979
+ function s(l, c) {
980
+ l === void 0 && (l = !1), c === void 0 && (c = 1), r();
981
+ const a = t.getBoundingClientRect(), {
982
+ left: m,
983
+ top: f,
984
+ width: d,
985
+ height: p
986
+ } = a;
987
+ if (l || e(), !d || !p)
988
+ return;
989
+ const b = ct(f), g = ct(o.clientWidth - (m + d)), h = ct(o.clientHeight - (f + p)), u = ct(m), w = {
990
+ rootMargin: -b + "px " + -g + "px " + -h + "px " + -u + "px",
991
+ threshold: q(0, tt(1, c)) || 1
992
+ };
993
+ let A = !0;
994
+ function x(D) {
995
+ const R = D[0].intersectionRatio;
996
+ if (R !== c) {
997
+ if (!A)
998
+ return s();
999
+ R ? s(!1, R) : i = setTimeout(() => {
1000
+ s(!1, 1e-7);
1001
+ }, 1e3);
1002
+ }
1003
+ R === 1 && !fe(a, t.getBoundingClientRect()) && s(), A = !1;
1004
+ }
1005
+ try {
1006
+ n = new IntersectionObserver(x, {
1007
+ ...w,
1008
+ // Handle <iframe>s
1009
+ root: o.ownerDocument
1010
+ });
1011
+ } catch {
1012
+ n = new IntersectionObserver(x, w);
1013
+ }
1014
+ n.observe(t);
1015
+ }
1016
+ return s(!0), r;
1017
+ }
1018
+ function no(t, e, n, i) {
1019
+ i === void 0 && (i = {});
1020
+ const {
1021
+ ancestorScroll: o = !0,
1022
+ ancestorResize: r = !0,
1023
+ elementResize: s = typeof ResizeObserver == "function",
1024
+ layoutShift: l = typeof IntersectionObserver == "function",
1025
+ animationFrame: c = !1
1026
+ } = i, a = Rt(t), m = o || r ? [...a ? rt(a) : [], ...rt(e)] : [];
1027
+ m.forEach((u) => {
1028
+ o && u.addEventListener("scroll", n, {
1029
+ passive: !0
1030
+ }), r && u.addEventListener("resize", n);
1031
+ });
1032
+ const f = a && l ? oo(a, n) : null;
1033
+ let d = -1, p = null;
1034
+ s && (p = new ResizeObserver((u) => {
1035
+ let [y] = u;
1036
+ y && y.target === a && p && (p.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1037
+ var w;
1038
+ (w = p) == null || w.observe(e);
1039
+ })), n();
1040
+ }), a && !c && p.observe(a), p.observe(e));
1041
+ let b, g = c ? Z(t) : null;
1042
+ c && h();
1043
+ function h() {
1044
+ const u = Z(t);
1045
+ g && !fe(g, u) && n(), g = u, b = requestAnimationFrame(h);
1046
+ }
1047
+ return n(), () => {
1048
+ var u;
1049
+ m.forEach((y) => {
1050
+ o && y.removeEventListener("scroll", n), r && y.removeEventListener("resize", n);
1051
+ }), f == null || f(), (u = p) == null || u.disconnect(), p = null, c && cancelAnimationFrame(b);
1052
+ };
1053
+ }
1054
+ const io = Fe, so = De, ro = Me, lo = Be, co = $e, ao = (t, e, n) => {
1055
+ const i = /* @__PURE__ */ new Map(), o = {
1056
+ platform: eo,
1057
+ ...n
1058
+ }, r = {
1059
+ ...o.platform,
1060
+ _c: i
1061
+ };
1062
+ return Te(t, e, {
1063
+ ...o,
1064
+ platform: r
1065
+ });
1066
+ }, fo = (t) => {
1067
+ var e;
1068
+ return {
1069
+ visibility: (e = t.hide) != null && e.referenceHidden ? "hidden" : "visible"
1070
+ };
1071
+ }, po = (t) => ({
1072
+ name: "arrowStyles",
1073
+ options: t,
1074
+ async fn(e) {
1075
+ var St, _t;
1076
+ const { x: n, y: i, placement: o, rects: r, platform: s, elements: l, middlewareData: c } = e, { element: a, padding: m = 0 } = J(t, e) || {};
1077
+ if (a == null)
1078
+ return {};
1079
+ const f = oe(m), d = { x: n, y: i }, p = At(o), b = Ct(p), g = Ot(p), h = await s.getDimensions(a), u = p === "y", y = u ? "top" : "left", w = u ? "bottom" : "right", A = u ? "clientHeight" : "clientWidth", x = r.reference[g] + r.reference[p] - d[p] - r.floating[g], D = d[p] - r.reference[p], R = await ((St = s.getOffsetParent) == null ? void 0 : St.call(s, a));
1080
+ let B = R ? R[A] : 0;
1081
+ (!B || !await ((_t = s.isElement) == null ? void 0 : _t.call(s, R))) && (B = l.floating[A] || r.floating[g]);
1082
+ const N = x / 2 - D / 2, E = B / 2 - h.width / 2 - 1, S = tt(f[y], E), Y = tt(f[w], E), W = S, $ = B - h.width - Y, U = B / 2 - h.width / 2 + N, K = yt(W, U, $), V = !c.arrow && M(o) != null && U !== K && r.reference[g] / 2 - (U < W ? S : Y) - h.width / 2 < 0, H = V ? U < W ? U - W : U - $ : 0, _ = z(o), gt = ["top", "left"].includes(_) ? -1 : 1, de = h.height * gt, ue = uo({
1083
+ placement: _,
1084
+ arrowHeight: h.height,
1085
+ arrowWidth: h.width,
1086
+ // pass arrow middleware
1087
+ [p]: K
1088
+ // for posterity, this is what the floating-ui arrow middleware returns
1089
+ // centerOffset: center - offset - alignmentOffset,
1090
+ // ...(shouldAddOffset && { alignmentOffset }),
1091
+ });
1092
+ return {
1093
+ [p]: d[p] + H,
1094
+ [b]: d[b] + de,
1095
+ data: ue,
1096
+ reset: V
1097
+ };
1098
+ }
1099
+ }), at = (t, e, n, i) => {
1100
+ if (i) {
1101
+ const o = i === !0 ? n() : n(i);
1102
+ t[e](o);
1103
+ }
1104
+ }, mo = ({
1105
+ baseConfig: t,
1106
+ middleware: e,
1107
+ offset: n,
1108
+ arrow: i,
1109
+ placement: o = "top"
1110
+ }) => {
1111
+ const r = { ...t, placement: o };
1112
+ let s = [];
1113
+ if (typeof e.overrides != "object") {
1114
+ s.push(io(n));
1115
+ let l = e.flip ?? !0;
1116
+ e.autoPlacement && (l = !1), at(
1117
+ s,
1118
+ "unshift",
1119
+ so,
1120
+ e.autoPlacement
1121
+ ), at(s, "push", ro, e.shift ?? !0), at(s, "unshift", lo, l), at(s, "push", co, e.hide ?? !0);
1122
+ } else
1123
+ s.push(...e.overrides);
1124
+ return i.hide || s.push(po(i.options)), typeof e.overrides == "function" && (s = e.overrides(s)), r.middleware = s, r;
1125
+ }, uo = ({
1126
+ placement: t,
1127
+ arrowHeight: e,
1128
+ arrowWidth: n,
1129
+ x: i,
1130
+ y: o
1131
+ }) => {
1132
+ const r = z(t), s = n / 2 - e, l = {
1133
+ /* since the default orientation is pointing down, we don't need to rotate the arrow
1134
+ if the tooltip is on top of the reference element
1135
+ */
1136
+ top: "rotate(0deg)",
1137
+ // since the default orientation is pointing down, we don't need to translate the arrow
1138
+ bottom: "rotate(180deg)",
1139
+ /* For an arrow with non-equal width and height, once we rotate the arrow 90 degrees
1140
+ for left and right positions, the top-left corner of the arrow will not be the same
1141
+ as the top-left corner of the original downward-pointing arrow. Thus, top:0 for
1142
+ example will not place the arrow at the top of the tooltip.
1143
+
1144
+ To fix this, we need to translate the arrow along the x-axis by the difference between
1145
+ the arrow's width and height.
1146
+
1147
+ * Example: note that the transformation origin is always bottom-center
1148
+ *
1149
+ * default, downward pointing position rotated 90 degrees, offset from edge
1150
+ * |________ => | |\ <- the top is slightly higher!
1151
+ * | .. | | *
1152
+ * | | |/
1153
+
1154
+ We use translate X to move it along vertical axis as translations are applied before
1155
+ rotation transformations. In both situations, the overall effect is sliding the
1156
+ arrow downwards.
1157
+ */
1158
+ left: `rotate(-90deg) translateX(${-s}px)`,
1159
+ right: `rotate(90deg) translateX(${s}px)`
1160
+ }[r], c = -n / 2 - e, a = {
1161
+ /*
1162
+ * If the tooltip is at the top of the anchor, place the arrow at the bottom of
1163
+ * the tooltip with bottom: 0. The bottom of the arrow will be flush with the bottom
1164
+ * of the tooltip. Result:
1165
+ * v (arrow)
1166
+ * --- (bottom of tooltip)
1167
+ *
1168
+ * Then, shift it down by its height so the flat, top side of the arrow is
1169
+ * flush with the bottom of the tooltip.
1170
+ *
1171
+ * --- (bottom of tooltip)
1172
+ * v (arrow)
1173
+ */
1174
+ top: `${-e}px`,
1175
+ /*
1176
+ * Place the arrow at the top of the tooltip with top: 0. The arrow will be rotated
1177
+ * to point downwards by default. When it's then rotated by 180 deg with
1178
+ * transform-origin as bottom center, we need to shift the arrow up by its height
1179
+ * so it's still flush with the top.
1180
+ *
1181
+ * Then, we need to shift the arrow up by its height again so its bottom edge is
1182
+ * flush with the top of the tooltip.
1183
+ *
1184
+ * In summary the arrow is shifted up by 2 * arrowHeight, or top: -2 * arrowHeight
1185
+ */
1186
+ bottom: `${-e * 2}px`,
1187
+ /*
1188
+ * Place the arrow at the right of the tooltip with right: 0. When we rotate
1189
+ * the arrow 90 degrees clockwise about the bottom center, there will now be
1190
+ * space between the right edge of the tooltip and the arrow. To fix this, we
1191
+ * need to shift the arrow left by the difference between half of the
1192
+ * arrow's width and the arrow's height (the two lengths on the horizontal axis)
1193
+ *
1194
+ * Example: note that the transformation origin is always bottom-center
1195
+ *
1196
+ * default, downward pointing position rotated 90 degrees, offset from edge
1197
+ * | |
1198
+ * |-------- => | |\
1199
+ * | .. | | *
1200
+ * | | |/
1201
+ */
1202
+ left: `${c}px`,
1203
+ // similarly for the right side
1204
+ right: `${c}px`
1205
+ }[r], m = {
1206
+ transform: l
1207
+ };
1208
+ m.left = i != null ? `${i}px` : "", m.top = o != null ? `${o}px` : "";
1209
+ const f = it(r);
1210
+ return m[f] = a, m;
1211
+ }, ho = ".bm-floatingui{z-index:999;position:absolute;inset:unset;top:0;left:0;width:max-content;overflow:unset;border:unset}.bm-floatingui__arrow{position:absolute;transform-origin:bottom center}.bm-floatingui__overlay{background:var(--bm-comp-dialog-color-overlay);padding:var(--bm-comp-dialog-space-viewport-offset);display:flex;justify-content:center;align-items:center;z-index:1}.bm-floatingui__overlay--transparent{background:transparent}";
1212
+ class go {
1213
+ constructor(e) {
1214
+ this.eventMap = /* @__PURE__ */ new Map(), this.elements = /* @__PURE__ */ new Map(), e.addController(this);
1215
+ }
1216
+ /**
1217
+ * Registers an element to be managed by the controller. Adds previously
1218
+ * registered event listeners if specified by assignListeners
1219
+ *
1220
+ * Removes registered event listeners on previous element with id, if it exists
1221
+ *
1222
+ * @param elementId - element id used as reference to this element controller
1223
+ * @param eventTarget - element to assign to id
1224
+ * @param assignListeners - a map of categories to booleans to dynamically add the
1225
+ * category listeners to the element. Or pass in true to add them all.
1226
+ */
1227
+ registerElement(e, n, i = !1) {
1228
+ if (this.elements.has(e) && this.removeAllEventListeners(), this.elements.set(e, n), i) {
1229
+ const o = typeof i == "object" ? (r) => i[r] : void 0;
1230
+ this.assignEventListeners(e, o);
1231
+ }
1232
+ }
1233
+ /**
1234
+ * Registers event listeners for a singular element under a category name
1235
+ *
1236
+ * @param categoryName - name of category
1237
+ * @param elementId - id representing element. Matches arg in `registerElement`
1238
+ * @param handlers - key/value pair(s) of event listeners and their
1239
+ *
1240
+ * @example
1241
+ * this.registerEventListeners('hover', element, [
1242
+ * {
1243
+ * event: 'mouseenter',
1244
+ * handler: mouseenter,
1245
+ * },
1246
+ * {
1247
+ * event: 'mouseleave',
1248
+ * handler: mouseleave,
1249
+ * },
1250
+ * ]);
1251
+ */
1252
+ registerEventListeners(e, n, i) {
1253
+ this.eventMap.has(e) || this.eventMap.set(e, /* @__PURE__ */ new Map());
1254
+ const o = this.eventMap.get(e);
1255
+ if (typeof i == "function")
1256
+ o && o.set(n, [i]);
1257
+ else {
1258
+ const r = i.filter(
1259
+ (s) => !!s
1260
+ );
1261
+ o && o.set(n, r);
1262
+ }
1263
+ }
1264
+ /**
1265
+ * Registers hover event listeners
1266
+ *
1267
+ * @param elementId
1268
+ * @param mouseenter
1269
+ * @param mouseleave
1270
+ */
1271
+ registerHoverListener(e, n, i) {
1272
+ this.registerEventListeners("hover", e, [
1273
+ {
1274
+ event: "mouseenter",
1275
+ handler: n
1276
+ },
1277
+ i && {
1278
+ event: "mouseleave",
1279
+ handler: i
1280
+ }
1281
+ ]);
1282
+ }
1283
+ /**
1284
+ * Registers click event listeners
1285
+ *
1286
+ * @param elementId
1287
+ * @param click
1288
+ */
1289
+ registerClickListener(e, n) {
1290
+ this.registerEventListeners("click", e, [
1291
+ { event: "click", handler: n }
1292
+ ]);
1293
+ }
1294
+ /**
1295
+ * Registers focus and blur event listeners
1296
+ *
1297
+ * @param elementId
1298
+ * @param focus
1299
+ * @param blur
1300
+ */
1301
+ registerFocusListener(e, n, i) {
1302
+ this.registerEventListeners("focus", e, [
1303
+ { event: "focus", handler: n },
1304
+ i && { event: "blur", handler: i }
1305
+ ]);
1306
+ }
1307
+ /**
1308
+ * Removes all event listeners
1309
+ */
1310
+ removeAllEventListeners() {
1311
+ this.eventMap.forEach((e, n) => {
1312
+ this.removeEventListeners(n);
1313
+ });
1314
+ }
1315
+ hostDisconnected() {
1316
+ this.removeAllEventListeners();
1317
+ }
1318
+ /**
1319
+ * Adds event listeners for a specific category
1320
+ *
1321
+ * @param category
1322
+ */
1323
+ addEventListeners(e) {
1324
+ this.setEventListeners(e, "addEventListener");
1325
+ }
1326
+ /**
1327
+ * Removes event listeners for a specific category
1328
+ *
1329
+ * @param category
1330
+ */
1331
+ removeEventListeners(e) {
1332
+ this.setEventListeners(e, "removeEventListener");
1333
+ }
1334
+ /**
1335
+ * Assigns event listeners to an element based on the category
1336
+ *
1337
+ * @param elementId
1338
+ * @param categoryFilter - Optional filter to only assign event listeners for a specific category
1339
+ * @private
1340
+ */
1341
+ assignEventListeners(e, n) {
1342
+ const i = this.elements.get(e);
1343
+ return i ? (this.eventMap.forEach((o, r) => {
1344
+ (n === void 0 || n(r)) && o.forEach((s, l) => {
1345
+ l === e && s.forEach(({ event: c, handler: a }) => {
1346
+ i.addEventListener(c, a);
1347
+ });
1348
+ });
1349
+ }), !0) : (console.warn(`Element ${e} not found`), !1);
1350
+ }
1351
+ /**
1352
+ * Perform action with handler on all elements in category
1353
+ *
1354
+ * @param category
1355
+ * @param action
1356
+ * @private
1357
+ */
1358
+ setEventListeners(e, n) {
1359
+ var i;
1360
+ if (!this.eventMap.has(e)) {
1361
+ console.warn(`No event listeners registered for ${e}`);
1362
+ return;
1363
+ }
1364
+ (i = this.eventMap.get(e)) == null || i.forEach((o, r) => {
1365
+ const s = this.elements.get(r);
1366
+ if (!s) {
1367
+ console.warn(
1368
+ `Cannot ${n} to ${r} for event category ${e}`
1369
+ );
1370
+ return;
1371
+ }
1372
+ o.forEach(({ event: l, handler: c }) => {
1373
+ s[n](l, c);
1374
+ });
1375
+ });
1376
+ }
1377
+ }
1378
+ class Vt {
1379
+ constructor(e) {
1380
+ e.addController(this);
1381
+ }
1382
+ hostDisconnected() {
1383
+ this.cancelSchedule();
1384
+ }
1385
+ /**
1386
+ * Schedule a function to run after a delay.
1387
+ *
1388
+ * @param callback - The function to run.
1389
+ * @param delay - The delay in milliseconds.
1390
+ */
1391
+ schedule(e, n) {
1392
+ this.timer || (this.timer = setTimeout(e, n));
1393
+ }
1394
+ /**
1395
+ * Cancel the scheduled function.
1396
+ */
1397
+ cancelSchedule() {
1398
+ clearTimeout(this.timer), this.timer = void 0;
1399
+ }
1400
+ }
1401
+ var vo = Object.defineProperty, Kt = (t, e, n, i) => {
1402
+ for (var o = void 0, r = t.length - 1, s; r >= 0; r--)
1403
+ (s = t[r]) && (o = s(e, n, o) || o);
1404
+ return o && vo(e, n, o), o;
1405
+ };
1406
+ const bo = (t) => {
1407
+ class e extends t {
1408
+ shouldToggle(i, o) {
1409
+ i && this.fireChange(o);
1410
+ const r = this._isOpen === o, s = this.open === !o;
1411
+ return !(r || s);
1412
+ }
1413
+ /**
1414
+ * Fire a custom event when the floating event is triggered
1415
+ * with an internal event
1416
+ *
1417
+ * @param change - whether the floating content is open or closed
1418
+ */
1419
+ fireChange(i) {
1420
+ const o = `${ye}toggle`;
1421
+ this.dispatchEvent(
1422
+ new CustomEvent(o, {
1423
+ detail: { open: i },
1424
+ bubbles: !0,
1425
+ composed: !0
1426
+ })
1427
+ );
1428
+ }
1429
+ }
1430
+ return Kt([
1431
+ v({ type: Boolean })
1432
+ ], e.prototype, "open"), Kt([
1433
+ ge()
1434
+ ], e.prototype, "_isOpen"), e;
1435
+ };
1436
+ var yo = Object.defineProperty, P = (t, e, n, i) => {
1437
+ for (var o = void 0, r = t.length - 1, s; r >= 0; r--)
1438
+ (s = t[r]) && (o = s(e, n, o) || o);
1439
+ return o && yo(e, n, o), o;
1440
+ };
1441
+ const {
1442
+ subElementClassPrefix: wo,
1443
+ baseClassNamePrefix: xo
1444
+ } = Gt("floatingui"), Xt = {
1445
+ content: xo,
1446
+ arrow: `${wo}arrow`
1447
+ }, Co = ve("popover"), Oo = (t) => {
1448
+ const n = class n extends bo(t) {
1449
+ constructor() {
1450
+ super(), this.hideArrow = !1, this.shift = !0, this.autoHiding = !0, this.defaultOpen = !1, this.showDelay = 0, this.hideDelay = 0, this.popoverAPI = !0, this.disableAutoAria = !1, this.autoDescribedById = Oe(), this.openOnClick = !1, this.openOnHover = !1, this.openOnFocus = !1, this.initialRender = !0, this.contentRef = zt(), this.edgePadding = 0, this.shouldReturnFocus = !1, this.eventPrefix = "bm-floatingui", this.arrowRef = zt(), this.shouldUsePopoverAPI = !1, this.anchor = null, this.eventController = new go(this), this.autoUpdateCleanup = null, this.closeController = new Vt(this), this.openController = new Vt(this), this.openContent = this.openContent.bind(this), this.mouseEnterHandler = this.mouseEnterHandler.bind(this), this.mouseLeaveHandler = this.mouseLeaveHandler.bind(this), this.closeContent = this.closeContent.bind(this), this.toggleContent = this.toggleContent.bind(this), this.contentSlotHandler = this.contentSlotHandler.bind(this), this.environmentClickListener = this.environmentClickListener.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.eventController.registerClickListener("anchor", this.toggleContent), this.eventController.registerHoverListener(
1451
+ "anchor",
1452
+ this.mouseEnterHandler,
1453
+ this.mouseLeaveHandler
1454
+ ), this.eventController.registerFocusListener(
1455
+ "anchor",
1456
+ this.openContent,
1457
+ this.closeContent
1458
+ ), this.eventController.registerHoverListener(
1459
+ "content",
1460
+ this.openContent,
1461
+ this.closeContent
1462
+ ), this.eventController.registerElement("document", document), this.eventController.registerEventListeners("open", "document", [
1463
+ {
1464
+ event: "mousedown",
1465
+ handler: this.environmentClickListener
1466
+ }
1467
+ ]), this.eventController.registerElement("window", window), this.eventController.registerEventListeners("open", "window", [
1468
+ {
1469
+ event: "keydown",
1470
+ handler: this.handleKeydown
1471
+ }
1472
+ ]);
1473
+ }
1474
+ disconnectedCallback() {
1475
+ var o;
1476
+ (o = this.autoUpdateCleanup) == null || o.call(this), this._isOpen = !1, super.disconnectedCallback();
1477
+ }
1478
+ /**
1479
+ * Close the floating content.
1480
+ *
1481
+ * Focus will be returned to the anchor element if
1482
+ * the open state was triggered by a click or focus event.
1483
+ *
1484
+ * @param internal - whether the close was triggered internally;
1485
+ * if true, the change event will be fired
1486
+ */
1487
+ closeContent(o) {
1488
+ if (!this.shouldToggle(!!o, !1))
1489
+ return;
1490
+ this.contentRef.value.setAttribute("data-status", "close");
1491
+ const s = () => {
1492
+ var l, c;
1493
+ this.shouldUsePopoverAPI && this.contentRef.value.hidePopover(), this._isOpen = !1, (l = this.autoUpdateCleanup) == null || l.call(this), this.eventController.removeEventListeners("open"), this.shouldReturnFocus && ((c = this.anchor) == null || c.focus(), this.shouldReturnFocus = !1);
1494
+ };
1495
+ this.closeController.schedule(s, this.hideDelay);
1496
+ }
1497
+ /**
1498
+ * Open the floating content. `open` attribute overrides this method call.
1499
+ *
1500
+ * @param internal - whether the close was triggered internally;
1501
+ * if true, the change event will be fired
1502
+ */
1503
+ openContent(o) {
1504
+ this.contentRef.value.setAttribute("data-status", "open"), this.closeController.cancelSchedule(), this.shouldUsePopoverAPI && this.contentRef.value.showPopover(), this.shouldToggle(!!o, !0) && (this._isOpen = !0, this.eventController.addEventListeners("open"), this.positionFloatingContent());
1505
+ }
1506
+ /**
1507
+ * Toggle the visibility of the floating content.
1508
+ *
1509
+ * @param internal - whether the close was triggered internally;
1510
+ * if true, the change event will be fired
1511
+ */
1512
+ toggleContent(o) {
1513
+ this._isOpen ? this.closeContent(o) : (this.shouldReturnFocus = !0, this.openContent(o));
1514
+ }
1515
+ positionFloatingContent() {
1516
+ var s;
1517
+ (s = this.autoUpdateCleanup) == null || s.call(this);
1518
+ let o = {};
1519
+ o = mo({
1520
+ baseConfig: o,
1521
+ middleware: {
1522
+ autoPlacement: this.autoPlacement,
1523
+ flip: this.flip,
1524
+ hide: this.autoHiding,
1525
+ shift: this.shift,
1526
+ overrides: this.middleware
1527
+ },
1528
+ offset: this.offset || 0,
1529
+ arrow: {
1530
+ options: {
1531
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1532
+ element: this.arrowRef.value,
1533
+ padding: this.edgePadding
1534
+ },
1535
+ hide: this.hideArrow
1536
+ },
1537
+ placement: this.placement
1538
+ });
1539
+ const r = () => (
1540
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1541
+ ao(this.anchor, this.contentRef.value, o).then(
1542
+ (l) => {
1543
+ const { x: c, y: a, middlewareData: m } = l;
1544
+ Object.assign(this.contentRef.value.style, {
1545
+ ...fo(m),
1546
+ // translation more performant than top left
1547
+ transform: `translate(${c}px, ${a}px)`
1548
+ }), this.arrowRef.value && m.arrowStyles && Object.assign(this.arrowRef.value.style, m.arrowStyles);
1549
+ }
1550
+ )
1551
+ );
1552
+ this.autoUpdateCleanup = no(
1553
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1554
+ this.anchor,
1555
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1556
+ this.contentRef.value,
1557
+ r
1558
+ );
1559
+ }
1560
+ shouldUpdate(o) {
1561
+ if (this.initialRender)
1562
+ return !0;
1563
+ if (o.has("open")) {
1564
+ if (this._isOpen === this.open)
1565
+ return !1;
1566
+ const s = this._isOpen;
1567
+ return this.open ? this.openContent() : this.closeContent(), s !== this._isOpen;
1568
+ }
1569
+ return super.shouldUpdate(o);
1570
+ }
1571
+ /**
1572
+ * Lifecycle method called when the element is first updated
1573
+ *
1574
+ * Sets the initialRender flag to false only if additional operations on the initial render
1575
+ * are not required. For example, if the floating content should be open by default, the
1576
+ * initialRender flag should not be set to false.
1577
+ *
1578
+ * @param changedProperties
1579
+ * @protected
1580
+ */
1581
+ firstUpdated(o) {
1582
+ super.firstUpdated(o), this.defaultOpen || (this.initialRender = !1), this.eventController.registerElement("content", this.contentRef.value, {
1583
+ hover: this.openOnHover
1584
+ });
1585
+ }
1586
+ /**
1587
+ * Handle slotchange event on the body slot. Currently just
1588
+ * sets the id on the light dom ƒor aria purposes
1589
+ *
1590
+ * @param e
1591
+ * @protected
1592
+ */
1593
+ contentSlotHandler(o) {
1594
+ if (this.disableAutoAria)
1595
+ return;
1596
+ const { child: r } = Dt("bm-floatingui", "content", o);
1597
+ r.setAttribute("id", this.autoDescribedById);
1598
+ }
1599
+ environmentClickListener(o) {
1600
+ if (!this._isOpen || this.open)
1601
+ return;
1602
+ const r = kt(o, this.anchor), s = kt(o, this.contentRef.value);
1603
+ r || s || this.closeContent(!0);
1604
+ }
1605
+ willUpdate(o) {
1606
+ super.willUpdate(o), o.has("popoverAPI") && (this.shouldUsePopoverAPI = this.popoverAPI && Co);
1607
+ }
1608
+ updated(o) {
1609
+ if (super.updated(o), this.anchor && ["click", "hover", "focus"].forEach((m) => {
1610
+ const f = `openOn${be(m)}`;
1611
+ o.has(f) && (this[f] ? this.eventController.addEventListeners(m) : this.eventController.removeEventListeners(m));
1612
+ }), o.has("autoDescribedById") && !this.disableAutoAria && this.anchor)
1613
+ if (this.autoDescribedById)
1614
+ Bt(this.anchor, "aria-describedby", this.autoDescribedById);
1615
+ else {
1616
+ const a = o.get("autoDescribedById");
1617
+ if (!a)
1618
+ return;
1619
+ Ae(this.anchor, "aria-describedby", a);
1620
+ }
1621
+ const l = Ee(
1622
+ o,
1623
+ [
1624
+ "placement",
1625
+ "autoPlacement",
1626
+ "flip",
1627
+ "shift",
1628
+ "autoHiding",
1629
+ "middleware"
1630
+ ]
1631
+ ) && this._isOpen, c = o.has("_isOpen");
1632
+ l && !c && this.positionFloatingContent();
1633
+ }
1634
+ mouseEnterHandler() {
1635
+ const o = () => {
1636
+ this.openContent(!0);
1637
+ };
1638
+ this.openController.schedule(o, this.showDelay);
1639
+ }
1640
+ mouseLeaveHandler() {
1641
+ this.openController.cancelSchedule(), this.closeContent(!0);
1642
+ }
1643
+ anchorSlotHandler(o) {
1644
+ const { child: r } = Dt("bm-floatingui", "anchor", o);
1645
+ this.anchor = r, this.eventController.registerElement("anchor", r, {
1646
+ hover: this.openOnHover,
1647
+ click: this.openOnClick,
1648
+ focus: this.openOnFocus
1649
+ }), this.disableAutoAria || Bt(r, "aria-describedby", this.autoDescribedById), this.open ? this.openContent() : this.defaultOpen && this.initialRender && (this.openContent(), this.initialRender = !1);
1650
+ }
1651
+ handleKeydown(o) {
1652
+ o.key === "Escape" && this.closeContent(!0);
1653
+ }
1654
+ };
1655
+ n.styles = [
1656
+ xt(ho),
1657
+ he`
1658
+ :host {
1659
+ display: contents;
1660
+ }
1661
+ `
1662
+ ];
1663
+ let e = n;
1664
+ return P([
1665
+ v({ type: Boolean })
1666
+ ], e.prototype, "hideArrow"), P([
1667
+ v({ type: String })
1668
+ ], e.prototype, "placement"), P([
1669
+ v({ type: Object })
1670
+ ], e.prototype, "autoPlacement"), P([
1671
+ v({ type: Object })
1672
+ ], e.prototype, "flip"), P([
1673
+ v({ type: Object })
1674
+ ], e.prototype, "shift"), P([
1675
+ v({ type: Object })
1676
+ ], e.prototype, "autoHiding"), P([
1677
+ v({ type: Object })
1678
+ ], e.prototype, "middleware"), P([
1679
+ v({ type: Boolean })
1680
+ ], e.prototype, "defaultOpen"), P([
1681
+ v({ type: Number })
1682
+ ], e.prototype, "showDelay"), P([
1683
+ v({ type: Number })
1684
+ ], e.prototype, "hideDelay"), P([
1685
+ v({ type: Boolean, converter: Jt })
1686
+ ], e.prototype, "popoverAPI"), P([
1687
+ v({ type: Boolean })
1688
+ ], e.prototype, "disableAutoAria"), P([
1689
+ v({ type: String })
1690
+ ], e.prototype, "autoDescribedById"), P([
1691
+ v()
1692
+ ], e.prototype, "offset"), P([
1693
+ v({ type: Boolean })
1694
+ ], e.prototype, "openOnClick"), P([
1695
+ v({ type: Boolean })
1696
+ ], e.prototype, "openOnHover"), P([
1697
+ v({ type: Boolean })
1698
+ ], e.prototype, "openOnFocus"), e;
1699
+ };
1700
+ var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, Po = Object.getPrototypeOf, Ro = Reflect.get, O = (t, e, n, i) => {
1701
+ for (var o = i > 1 ? void 0 : i ? Eo(e, n) : e, r = t.length - 1, s; r >= 0; r--)
1702
+ (s = t[r]) && (o = (i ? s(e, n, o) : s(o)) || o);
1703
+ return i && o && Ao(e, n, o), o;
1704
+ }, pe = (t, e, n) => Ro(Po(t), n, e);
1705
+ const { subElementClassPrefix: me, baseClassNamePrefix: Lo } = Gt("tooltip");
1706
+ let C = class extends Oo(qt) {
1707
+ constructor() {
1708
+ super(), this.disabled = !1, this.triggerSize = "md", this.eventPrefix = "tooltip", this.hideDelay = 200, $t(xe, this, "edgePadding"), $t(Ce, this, "offset");
1709
+ }
1710
+ willUpdate(t) {
1711
+ super.willUpdate(t);
1712
+ const e = (n) => {
1713
+ this.openOnHover = n, this.openOnFocus = n;
1714
+ };
1715
+ t.has("disabled") && e(!this.disabled);
1716
+ }
1717
+ render() {
1718
+ return Yt` <slot name="trigger" @slotchange=${this.anchorSlotHandler}></slot>
1719
+ <div
1720
+ role="tooltip"
1721
+ @slotchange=${this.contentSlotHandler}
1722
+ aria-hidden=${!this._isOpen}
1723
+ ${Tt(this.contentRef)}
1724
+ class=${bt(
1725
+ this.theme && we(this.theme),
1726
+ Xt.content,
1727
+ Lo
1728
+ )}
1729
+ popover="manual"
1730
+ style="display: ${this._isOpen ? "block" : "none"}"
1731
+ >
1732
+ <slot name="text"></slot>
1733
+ <span
1734
+ class=${bt(Xt.arrow, `${me}arrow`)}
1735
+ ${Tt(this.arrowRef)}
1736
+ >
1737
+ </span>
1738
+ </div>`;
1739
+ }
1740
+ };
1741
+ C.styles = [
1742
+ xt(Qt),
1743
+ pe(C, C, "styles") ?? []
1744
+ ];
1745
+ O([
1746
+ v({ type: String })
1747
+ ], C.prototype, "theme", 2);
1748
+ O([
1749
+ v({ type: Boolean })
1750
+ ], C.prototype, "open", 2);
1751
+ O([
1752
+ v({ type: Boolean })
1753
+ ], C.prototype, "hideArrow", 2);
1754
+ O([
1755
+ v({ type: String })
1756
+ ], C.prototype, "placement", 2);
1757
+ O([
1758
+ v({ type: Object })
1759
+ ], C.prototype, "autoPlacement", 2);
1760
+ O([
1761
+ v({ type: Object })
1762
+ ], C.prototype, "flip", 2);
1763
+ O([
1764
+ v({ type: Object })
1765
+ ], C.prototype, "shift", 2);
1766
+ O([
1767
+ v({ type: Object })
1768
+ ], C.prototype, "autoHiding", 2);
1769
+ O([
1770
+ v({ type: Object })
1771
+ ], C.prototype, "middleware", 2);
1772
+ O([
1773
+ v({ type: Boolean })
1774
+ ], C.prototype, "defaultOpen", 2);
1775
+ O([
1776
+ v({ type: Number })
1777
+ ], C.prototype, "showDelay", 2);
1778
+ O([
1779
+ v({ type: Boolean, converter: Jt })
1780
+ ], C.prototype, "popoverAPI", 2);
1781
+ O([
1782
+ v({ type: Boolean })
1783
+ ], C.prototype, "disableAutoAria", 2);
1784
+ O([
1785
+ v({ type: String })
1786
+ ], C.prototype, "autoDescribedById", 2);
1787
+ O([
1788
+ v({ type: Boolean })
1789
+ ], C.prototype, "disabled", 2);
1790
+ O([
1791
+ v({ type: String })
1792
+ ], C.prototype, "triggerSize", 2);
1793
+ C = O([
1794
+ Zt("bm-tooltip")
1795
+ ], C);
1796
+ let G = class extends qt {
1797
+ constructor() {
1798
+ super(...arguments), this.size = "md", this.disabled = !1;
1799
+ }
1800
+ render() {
1801
+ const t = `${me}icon-trigger`, e = bt(
1802
+ t,
1803
+ this.size !== "none" && `${t}--${this.size}`,
1804
+ this.disabled && `${t}--disabled`
1805
+ );
1806
+ return Yt`<button class=${e} aria-label="tooltip trigger">
1807
+ <slot></slot>
1808
+ </button>`;
1809
+ }
1810
+ };
1811
+ G.styles = [
1812
+ xt(Qt),
1813
+ pe(G, G, "styles") ?? []
1814
+ ];
1815
+ O([
1816
+ v({ type: String })
1817
+ ], G.prototype, "size", 2);
1818
+ O([
1819
+ v({ type: Boolean })
1820
+ ], G.prototype, "disabled", 2);
1821
+ G = O([
1822
+ Zt("bm-tooltip-icon-trigger")
1823
+ ], G);
1824
+ export {
1825
+ C as BmTooltip,
1826
+ G as BmTooltipIconTrigger
1827
+ };