@fluidattacks/design 3.1.2 → 3.1.4

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 (289) hide show
  1. package/{dist/button.js → button.js} +1 -1
  2. package/{dist/index-BjQJt0dx.js → index-BRxUTT0G.js} +12 -12
  3. package/{dist/index.js → index.js} +1 -1
  4. package/package.json +11 -21
  5. package/dist/button.mjs +0 -5
  6. package/dist/design.css +0 -1
  7. package/dist/gradients.svg +0 -13
  8. package/dist/index-BPVSZmaF.mjs +0 -2055
  9. package/dist/index.mjs +0 -20398
  10. package/dist/types/components/@core/constants.d.ts +0 -2
  11. package/dist/types/components/@core/index.d.ts +0 -5
  12. package/dist/types/components/@core/styles.d.ts +0 -6
  13. package/dist/types/components/@core/types.d.ts +0 -181
  14. package/dist/types/components/@core/utils.d.ts +0 -11
  15. package/dist/types/components/@core/variants/utils.d.ts +0 -59
  16. package/dist/types/components/accordion/accordion-content/index.d.ts +0 -3
  17. package/dist/types/components/accordion/index.d.ts +0 -4
  18. package/dist/types/components/accordion/types.d.ts +0 -36
  19. package/dist/types/components/alert/index.d.ts +0 -4
  20. package/dist/types/components/alert/styles.d.ts +0 -9
  21. package/dist/types/components/alert/types.d.ts +0 -23
  22. package/dist/types/components/button/index.d.ts +0 -4
  23. package/dist/types/components/button/styles.d.ts +0 -9
  24. package/dist/types/components/button/types.d.ts +0 -30
  25. package/dist/types/components/card/card-header/index.d.ts +0 -3
  26. package/dist/types/components/card/card-with-image/index.d.ts +0 -4
  27. package/dist/types/components/card/card-with-input/index.d.ts +0 -3
  28. package/dist/types/components/card/card-with-input/styles.d.ts +0 -8
  29. package/dist/types/components/card/card-with-selector/index.d.ts +0 -3
  30. package/dist/types/components/card/card-with-switch/index.d.ts +0 -3
  31. package/dist/types/components/card/index.d.ts +0 -6
  32. package/dist/types/components/card/types.d.ts +0 -121
  33. package/dist/types/components/carousel/index.d.ts +0 -4
  34. package/dist/types/components/carousel/styles.d.ts +0 -10
  35. package/dist/types/components/carousel/types.d.ts +0 -19
  36. package/dist/types/components/checkbox/index.d.ts +0 -3
  37. package/dist/types/components/checkbox/styles.d.ts +0 -2
  38. package/dist/types/components/checkbox/types.d.ts +0 -17
  39. package/dist/types/components/cloud-image/index.d.ts +0 -5
  40. package/dist/types/components/cloud-image/types.d.ts +0 -18
  41. package/dist/types/components/code-snippet/index.d.ts +0 -3
  42. package/dist/types/components/code-snippet/location-code/index.d.ts +0 -5
  43. package/dist/types/components/code-snippet/styles.d.ts +0 -3
  44. package/dist/types/components/code-snippet/types.d.ts +0 -22
  45. package/dist/types/components/colors/index.d.ts +0 -10
  46. package/dist/types/components/confirm-dialog/index.d.ts +0 -11
  47. package/dist/types/components/confirm-dialog/types.d.ts +0 -13
  48. package/dist/types/components/container/index.d.ts +0 -4
  49. package/dist/types/components/container/styles.d.ts +0 -9
  50. package/dist/types/components/container/types.d.ts +0 -22
  51. package/dist/types/components/content-card/category-tag/index.d.ts +0 -5
  52. package/dist/types/components/content-card/event-date/index.d.ts +0 -4
  53. package/dist/types/components/content-card/index.d.ts +0 -3
  54. package/dist/types/components/content-card/styles.d.ts +0 -2
  55. package/dist/types/components/content-card/types.d.ts +0 -33
  56. package/dist/types/components/content-card-carousel/index.d.ts +0 -3
  57. package/dist/types/components/content-card-carousel/scroll-buttons/index.d.ts +0 -6
  58. package/dist/types/components/content-card-carousel/styles.d.ts +0 -3
  59. package/dist/types/components/content-card-carousel/types.d.ts +0 -16
  60. package/dist/types/components/divider/index.d.ts +0 -3
  61. package/dist/types/components/divider/types.d.ts +0 -11
  62. package/dist/types/components/empty-state/empty-button/index.d.ts +0 -8
  63. package/dist/types/components/empty-state/index.d.ts +0 -3
  64. package/dist/types/components/empty-state/styles.d.ts +0 -8
  65. package/dist/types/components/empty-state/types.d.ts +0 -35
  66. package/dist/types/components/file-preview/index.d.ts +0 -3
  67. package/dist/types/components/file-preview/styles.d.ts +0 -6
  68. package/dist/types/components/file-preview/types.d.ts +0 -20
  69. package/dist/types/components/file-preview/utils.d.ts +0 -5
  70. package/dist/types/components/form/index.d.ts +0 -4
  71. package/dist/types/components/form/styles.d.ts +0 -2
  72. package/dist/types/components/form/types.d.ts +0 -21
  73. package/dist/types/components/grid-container/index.d.ts +0 -4
  74. package/dist/types/components/grid-container/styles.d.ts +0 -12
  75. package/dist/types/components/grid-container/types.d.ts +0 -17
  76. package/dist/types/components/grid-layout/styles.d.ts +0 -12
  77. package/dist/types/components/group-selector/index.d.ts +0 -3
  78. package/dist/types/components/group-selector/option-container/index.d.ts +0 -4
  79. package/dist/types/components/group-selector/styles.d.ts +0 -7
  80. package/dist/types/components/group-selector/types.d.ts +0 -44
  81. package/dist/types/components/icon/index.d.ts +0 -3
  82. package/dist/types/components/icon/styles.d.ts +0 -15
  83. package/dist/types/components/icon/types.d.ts +0 -35
  84. package/dist/types/components/icon-button/index.d.ts +0 -3
  85. package/dist/types/components/icon-button/styles.d.ts +0 -9
  86. package/dist/types/components/icon-button/types.d.ts +0 -22
  87. package/dist/types/components/indicator-card/index.d.ts +0 -5
  88. package/dist/types/components/indicator-card/types.d.ts +0 -30
  89. package/dist/types/components/info-sidebar/index.d.ts +0 -4
  90. package/dist/types/components/info-sidebar/types.d.ts +0 -32
  91. package/dist/types/components/inputs/fields/combobox/index.d.ts +0 -4
  92. package/dist/types/components/inputs/fields/combobox/option/index.d.ts +0 -3
  93. package/dist/types/components/inputs/fields/combobox/styles.d.ts +0 -3
  94. package/dist/types/components/inputs/fields/combobox/types.d.ts +0 -40
  95. package/dist/types/components/inputs/fields/date/calendar/cell/index.d.ts +0 -3
  96. package/dist/types/components/inputs/fields/date/calendar/grid/index.d.ts +0 -3
  97. package/dist/types/components/inputs/fields/date/calendar/header/index.d.ts +0 -3
  98. package/dist/types/components/inputs/fields/date/calendar/index.d.ts +0 -6
  99. package/dist/types/components/inputs/fields/date/calendar/styles.d.ts +0 -13
  100. package/dist/types/components/inputs/fields/date/index.d.ts +0 -3
  101. package/dist/types/components/inputs/fields/date/types.d.ts +0 -32
  102. package/dist/types/components/inputs/fields/date-range/calendar/index.d.ts +0 -6
  103. package/dist/types/components/inputs/fields/date-range/index.d.ts +0 -4
  104. package/dist/types/components/inputs/fields/date-range/styles.d.ts +0 -5
  105. package/dist/types/components/inputs/fields/date-time/calendar/index.d.ts +0 -9
  106. package/dist/types/components/inputs/fields/date-time/calendar/styles.d.ts +0 -3
  107. package/dist/types/components/inputs/fields/date-time/index.d.ts +0 -4
  108. package/dist/types/components/inputs/fields/editable/index.d.ts +0 -5
  109. package/dist/types/components/inputs/fields/editable/types.d.ts +0 -19
  110. package/dist/types/components/inputs/fields/input/index.d.ts +0 -3
  111. package/dist/types/components/inputs/fields/input-file/index.d.ts +0 -3
  112. package/dist/types/components/inputs/fields/input-file/styles.d.ts +0 -6
  113. package/dist/types/components/inputs/fields/input-tags/index.d.ts +0 -3
  114. package/dist/types/components/inputs/fields/input-tags/styles.d.ts +0 -2
  115. package/dist/types/components/inputs/fields/number/index.d.ts +0 -3
  116. package/dist/types/components/inputs/fields/number-range/index.d.ts +0 -3
  117. package/dist/types/components/inputs/fields/phone/index.d.ts +0 -3
  118. package/dist/types/components/inputs/fields/phone/styles.d.ts +0 -6
  119. package/dist/types/components/inputs/fields/text-area/index.d.ts +0 -3
  120. package/dist/types/components/inputs/index.d.ts +0 -14
  121. package/dist/types/components/inputs/label/index.d.ts +0 -3
  122. package/dist/types/components/inputs/outline-container/index.d.ts +0 -4
  123. package/dist/types/components/inputs/styles.d.ts +0 -3
  124. package/dist/types/components/inputs/types.d.ts +0 -108
  125. package/dist/types/components/inputs/utils/action-button/index.d.ts +0 -3
  126. package/dist/types/components/inputs/utils/calendar-button/index.d.ts +0 -8
  127. package/dist/types/components/inputs/utils/date-selector/index.d.ts +0 -3
  128. package/dist/types/components/inputs/utils/date-time-field/index.d.ts +0 -4
  129. package/dist/types/components/inputs/utils/dialog/index.d.ts +0 -4
  130. package/dist/types/components/inputs/utils/number-field/index.d.ts +0 -6
  131. package/dist/types/components/inputs/utils/popover/index.d.ts +0 -4
  132. package/dist/types/components/inputs/utils/styles.d.ts +0 -17
  133. package/dist/types/components/inputs/utils/types.d.ts +0 -77
  134. package/dist/types/components/inputs/utils.d.ts +0 -3
  135. package/dist/types/components/interactive-card/icon/index.d.ts +0 -5
  136. package/dist/types/components/interactive-card/index.d.ts +0 -3
  137. package/dist/types/components/interactive-card/styles.d.ts +0 -3
  138. package/dist/types/components/interactive-card/types.d.ts +0 -20
  139. package/dist/types/components/language-selector/index.d.ts +0 -3
  140. package/dist/types/components/language-selector/item-list/index.d.ts +0 -3
  141. package/dist/types/components/language-selector/styles.d.ts +0 -5
  142. package/dist/types/components/language-selector/types.d.ts +0 -37
  143. package/dist/types/components/link/index.d.ts +0 -5
  144. package/dist/types/components/link/styles.d.ts +0 -8
  145. package/dist/types/components/link/types.d.ts +0 -22
  146. package/dist/types/components/list-item/index.d.ts +0 -4
  147. package/dist/types/components/list-item/styles.d.ts +0 -3
  148. package/dist/types/components/list-item/types.d.ts +0 -28
  149. package/dist/types/components/little-flag/index.d.ts +0 -4
  150. package/dist/types/components/little-flag/styles.d.ts +0 -6
  151. package/dist/types/components/little-flag/types.d.ts +0 -15
  152. package/dist/types/components/loading/index.d.ts +0 -4
  153. package/dist/types/components/loading/styles.d.ts +0 -9
  154. package/dist/types/components/loading/types.d.ts +0 -15
  155. package/dist/types/components/logo/index.d.ts +0 -3
  156. package/dist/types/components/logo/types.d.ts +0 -12
  157. package/dist/types/components/logo-carousel/index.d.ts +0 -3
  158. package/dist/types/components/logo-carousel/styles.d.ts +0 -4
  159. package/dist/types/components/logo-carousel/types.d.ts +0 -11
  160. package/dist/types/components/logo-carousel/utils.d.ts +0 -2
  161. package/dist/types/components/lottie/index.d.ts +0 -3
  162. package/dist/types/components/lottie/styles.d.ts +0 -41
  163. package/dist/types/components/lottie/types.d.ts +0 -11
  164. package/dist/types/components/menu/index.d.ts +0 -4
  165. package/dist/types/components/menu/types.d.ts +0 -31
  166. package/dist/types/components/message-banner/index.d.ts +0 -3
  167. package/dist/types/components/message-banner/styles.d.ts +0 -2
  168. package/dist/types/components/message-banner/types.d.ts +0 -26
  169. package/dist/types/components/message-banner/utils.d.ts +0 -7
  170. package/dist/types/components/modal/index.d.ts +0 -5
  171. package/dist/types/components/modal/modal-confirm/index.d.ts +0 -3
  172. package/dist/types/components/modal/modal-footer/index.d.ts +0 -3
  173. package/dist/types/components/modal/modal-header/index.d.ts +0 -3
  174. package/dist/types/components/modal/styles.d.ts +0 -16
  175. package/dist/types/components/modal/types.d.ts +0 -87
  176. package/dist/types/components/notification/index.d.ts +0 -3
  177. package/dist/types/components/notification/styles.d.ts +0 -7
  178. package/dist/types/components/notification/types.d.ts +0 -16
  179. package/dist/types/components/notification/utils.d.ts +0 -4
  180. package/dist/types/components/notification-sign/index.d.ts +0 -3
  181. package/dist/types/components/notification-sign/styles.d.ts +0 -9
  182. package/dist/types/components/notification-sign/types.d.ts +0 -16
  183. package/dist/types/components/number-input/index.d.ts +0 -5
  184. package/dist/types/components/number-input/styles.d.ts +0 -3
  185. package/dist/types/components/number-input/types.d.ts +0 -17
  186. package/dist/types/components/oauth-selector/index.d.ts +0 -5
  187. package/dist/types/components/oauth-selector/option-container/index.d.ts +0 -3
  188. package/dist/types/components/oauth-selector/types.d.ts +0 -45
  189. package/dist/types/components/plan-card/index.d.ts +0 -3
  190. package/dist/types/components/plan-card/recommended-tag/index.d.ts +0 -2
  191. package/dist/types/components/plan-card/styles.d.ts +0 -3
  192. package/dist/types/components/plan-card/types.d.ts +0 -47
  193. package/dist/types/components/plan-card/utils.d.ts +0 -5
  194. package/dist/types/components/pop-up/description/index.d.ts +0 -5
  195. package/dist/types/components/pop-up/index.d.ts +0 -4
  196. package/dist/types/components/pop-up/types.d.ts +0 -58
  197. package/dist/types/components/premium-feature/index.d.ts +0 -3
  198. package/dist/types/components/premium-feature/styles.d.ts +0 -2
  199. package/dist/types/components/premium-feature/types.d.ts +0 -14
  200. package/dist/types/components/priority-score/index.d.ts +0 -3
  201. package/dist/types/components/priority-score/types.d.ts +0 -9
  202. package/dist/types/components/progress/index.d.ts +0 -4
  203. package/dist/types/components/progress/styles.d.ts +0 -6
  204. package/dist/types/components/progress/types.d.ts +0 -12
  205. package/dist/types/components/progress/utils.d.ts +0 -2
  206. package/dist/types/components/progress-bar/index.d.ts +0 -3
  207. package/dist/types/components/progress-bar/styles.d.ts +0 -13
  208. package/dist/types/components/progress-bar/types.d.ts +0 -24
  209. package/dist/types/components/radio-button/index.d.ts +0 -3
  210. package/dist/types/components/radio-button/styles.d.ts +0 -5
  211. package/dist/types/components/radio-button/types.d.ts +0 -14
  212. package/dist/types/components/scroll-button/index.d.ts +0 -4
  213. package/dist/types/components/scroll-button/styles.d.ts +0 -4
  214. package/dist/types/components/scroll-button/types.d.ts +0 -11
  215. package/dist/types/components/search/index.d.ts +0 -3
  216. package/dist/types/components/search/styles.d.ts +0 -4
  217. package/dist/types/components/search/types.d.ts +0 -10
  218. package/dist/types/components/search-bar/index.d.ts +0 -3
  219. package/dist/types/components/search-bar/item-searching/index.d.ts +0 -3
  220. package/dist/types/components/search-bar/styles.d.ts +0 -15
  221. package/dist/types/components/search-bar/types.d.ts +0 -29
  222. package/dist/types/components/search-bar/utils.d.ts +0 -4
  223. package/dist/types/components/severity-badge/index.d.ts +0 -3
  224. package/dist/types/components/severity-badge/types.d.ts +0 -26
  225. package/dist/types/components/severity-badge/utils.d.ts +0 -3
  226. package/dist/types/components/severity-overview/badge/index.d.ts +0 -3
  227. package/dist/types/components/severity-overview/index.d.ts +0 -3
  228. package/dist/types/components/severity-overview/types.d.ts +0 -40
  229. package/dist/types/components/severity-overview/utils.d.ts +0 -3
  230. package/dist/types/components/show-on-hover/index.d.ts +0 -3
  231. package/dist/types/components/show-on-hover/styles.d.ts +0 -2
  232. package/dist/types/components/show-on-hover/types.d.ts +0 -12
  233. package/dist/types/components/slide-out-menu/index.d.ts +0 -4
  234. package/dist/types/components/slide-out-menu/menu-item/index.d.ts +0 -3
  235. package/dist/types/components/slide-out-menu/styles.d.ts +0 -2
  236. package/dist/types/components/slide-out-menu/types.d.ts +0 -43
  237. package/dist/types/components/slider/index.d.ts +0 -3
  238. package/dist/types/components/slider/styles.d.ts +0 -7
  239. package/dist/types/components/slider/thumb/index.d.ts +0 -3
  240. package/dist/types/components/slider/types.d.ts +0 -13
  241. package/dist/types/components/slider/utils.d.ts +0 -2
  242. package/dist/types/components/step-lapse/index.d.ts +0 -3
  243. package/dist/types/components/step-lapse/styles.d.ts +0 -8
  244. package/dist/types/components/step-lapse/types.d.ts +0 -44
  245. package/dist/types/components/table-button/index.d.ts +0 -3
  246. package/dist/types/components/table-button/styles.d.ts +0 -2
  247. package/dist/types/components/table-button/types.d.ts +0 -16
  248. package/dist/types/components/tabs/fixed-tabs/index.d.ts +0 -3
  249. package/dist/types/components/tabs/index.d.ts +0 -5
  250. package/dist/types/components/tabs/styles.d.ts +0 -4
  251. package/dist/types/components/tabs/tab/index.d.ts +0 -4
  252. package/dist/types/components/tabs/types.d.ts +0 -48
  253. package/dist/types/components/tag/index.d.ts +0 -4
  254. package/dist/types/components/tag/styles.d.ts +0 -7
  255. package/dist/types/components/tag/types.d.ts +0 -32
  256. package/dist/types/components/timeline/card/index.d.ts +0 -3
  257. package/dist/types/components/timeline/index.d.ts +0 -4
  258. package/dist/types/components/timeline/styles.d.ts +0 -3
  259. package/dist/types/components/timeline/types.d.ts +0 -21
  260. package/dist/types/components/toggle/index.d.ts +0 -4
  261. package/dist/types/components/toggle/styles.d.ts +0 -4
  262. package/dist/types/components/toggle/types.d.ts +0 -28
  263. package/dist/types/components/toggle-buttons/index.d.ts +0 -3
  264. package/dist/types/components/toggle-buttons/styles.d.ts +0 -3
  265. package/dist/types/components/toggle-buttons/types.d.ts +0 -13
  266. package/dist/types/components/tooltip/index.d.ts +0 -4
  267. package/dist/types/components/tooltip/styles.d.ts +0 -7
  268. package/dist/types/components/tooltip/types.d.ts +0 -29
  269. package/dist/types/components/tour/index.d.ts +0 -6
  270. package/dist/types/components/tour/types.d.ts +0 -14
  271. package/dist/types/components/typography/heading/index.d.ts +0 -3
  272. package/dist/types/components/typography/index.d.ts +0 -4
  273. package/dist/types/components/typography/span/index.d.ts +0 -3
  274. package/dist/types/components/typography/styles.d.ts +0 -26
  275. package/dist/types/components/typography/text/index.d.ts +0 -3
  276. package/dist/types/components/typography/types.d.ts +0 -27
  277. package/dist/types/components/web-form/index.d.ts +0 -5
  278. package/dist/types/components/web-form/styles.d.ts +0 -4
  279. package/dist/types/components/web-form/types.d.ts +0 -15
  280. package/dist/types/hooks/index.d.ts +0 -8
  281. package/dist/types/hooks/use-carousel.d.ts +0 -6
  282. package/dist/types/hooks/use-click-outside.d.ts +0 -2
  283. package/dist/types/hooks/use-cloudinary-image.d.ts +0 -13
  284. package/dist/types/hooks/use-debounced-callback.d.ts +0 -4
  285. package/dist/types/hooks/use-modal.d.ts +0 -11
  286. package/dist/types/hooks/use-search.d.ts +0 -5
  287. package/dist/types/index.d.ts +0 -67
  288. package/dist/types/utils/date.d.ts +0 -3
  289. package/dist/types/utils/open-url.d.ts +0 -1
@@ -1,2055 +0,0 @@
1
- import * as e from "react";
2
- import t, { forwardRef as n, useLayoutEffect as r, useEffect as o, createContext as i, useState as l, useRef as a, useContext as c, useCallback as s, useImperativeHandle as u, StrictMode as f } from "react";
3
- import { ThemeProvider as d, styled as p, useTheme as y } from "styled-components";
4
- import * as m from "react-dom";
5
- import { createPortal as g } from "react-dom";
6
- const h = (e2) => ({ getVariant: (t2, n2) => e2(t2)[n2] }), v = ["padding", "px", "py", "pl", "pr", "pt", "pb", "margin", "mx", "my", "ml", "mr", "mt", "mb", "zIndex", "position", "top", "right", "bottom", "left", "border", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderColor", "borderRadius", "scroll", "visibility", "display", "height", "width", "maxHeight", "maxWidth", "minHeight", "minWidth", "shadow", "bgColor", "bgGradient", "gap", "flexDirection", "flexGrow", "justify", "justifySelf", "alignItems", "alignSelf", "wrap", "color", "fontFamily", "fontSize", "fontWeight", "textAlign", "whiteSpace", "letterSpacing", "lineSpacing", "textDecoration", "textOverflow", "whiteSpace", "wordBreak", "wordWrap", "cursor", "transition", "borderColorHover", "bgColorHover", "shadowHover"];
7
- var b = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
8
- function w(e2) {
9
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
10
- }
11
- var x, $ = { exports: {} }, S = {};
12
- var _, k, j = {};
13
- /**
14
- * @license React
15
- * react-jsx-runtime.development.js
16
- *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
- function O() {
23
- return _ || (_ = 1, "production" !== process.env.NODE_ENV && function() {
24
- var e2 = t, n2 = Symbol.for("react.element"), r2 = Symbol.for("react.portal"), o2 = Symbol.for("react.fragment"), i2 = Symbol.for("react.strict_mode"), l2 = Symbol.for("react.profiler"), a2 = Symbol.for("react.provider"), c2 = Symbol.for("react.context"), s2 = Symbol.for("react.forward_ref"), u2 = Symbol.for("react.suspense"), f2 = Symbol.for("react.suspense_list"), d2 = Symbol.for("react.memo"), p2 = Symbol.for("react.lazy"), y2 = Symbol.for("react.offscreen"), m2 = Symbol.iterator;
25
- var g2 = e2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
26
- function h2(e3) {
27
- for (var t2 = arguments.length, n3 = new Array(t2 > 1 ? t2 - 1 : 0), r3 = 1; r3 < t2; r3++) n3[r3 - 1] = arguments[r3];
28
- !function(e4, t3, n4) {
29
- var r4 = g2.ReactDebugCurrentFrame, o3 = r4.getStackAddendum();
30
- "" !== o3 && (t3 += "%s", n4 = n4.concat([o3]));
31
- var i3 = n4.map(function(e5) {
32
- return String(e5);
33
- });
34
- i3.unshift("Warning: " + t3), Function.prototype.apply.call(console[e4], console, i3);
35
- }("error", e3, n3);
36
- }
37
- var v2;
38
- function b2(e3) {
39
- return e3.displayName || "Context";
40
- }
41
- function w2(e3) {
42
- if (null == e3) return null;
43
- if ("number" == typeof e3.tag && h2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), "function" == typeof e3) return e3.displayName || e3.name || null;
44
- if ("string" == typeof e3) return e3;
45
- switch (e3) {
46
- case o2:
47
- return "Fragment";
48
- case r2:
49
- return "Portal";
50
- case l2:
51
- return "Profiler";
52
- case i2:
53
- return "StrictMode";
54
- case u2:
55
- return "Suspense";
56
- case f2:
57
- return "SuspenseList";
58
- }
59
- if ("object" == typeof e3) switch (e3.$$typeof) {
60
- case c2:
61
- return b2(e3) + ".Consumer";
62
- case a2:
63
- return b2(e3._context) + ".Provider";
64
- case s2:
65
- return function(e4, t3, n4) {
66
- var r3 = e4.displayName;
67
- if (r3) return r3;
68
- var o3 = t3.displayName || t3.name || "";
69
- return "" !== o3 ? n4 + "(" + o3 + ")" : n4;
70
- }(e3, e3.render, "ForwardRef");
71
- case d2:
72
- var t2 = e3.displayName || null;
73
- return null !== t2 ? t2 : w2(e3.type) || "Memo";
74
- case p2:
75
- var n3 = e3, y3 = n3._payload, m3 = n3._init;
76
- try {
77
- return w2(m3(y3));
78
- } catch (e4) {
79
- return null;
80
- }
81
- }
82
- return null;
83
- }
84
- v2 = Symbol.for("react.module.reference");
85
- var x2, $2, S2, _2, k2, O2, E2, A2 = Object.assign, T2 = 0;
86
- function R2() {
87
- }
88
- R2.__reactDisabledLog = true;
89
- var C2, L2 = g2.ReactCurrentDispatcher;
90
- function z2(e3, t2, n3) {
91
- if (void 0 === C2) try {
92
- throw Error();
93
- } catch (e4) {
94
- var r3 = e4.stack.trim().match(/\n( *(at )?)/);
95
- C2 = r3 && r3[1] || "";
96
- }
97
- return "\n" + C2 + e3;
98
- }
99
- var P2, F2 = false, D2 = "function" == typeof WeakMap ? WeakMap : Map;
100
- function N2(e3, t2) {
101
- if (!e3 || F2) return "";
102
- var n3, r3 = P2.get(e3);
103
- if (void 0 !== r3) return r3;
104
- F2 = true;
105
- var o3, i3 = Error.prepareStackTrace;
106
- Error.prepareStackTrace = void 0, o3 = L2.current, L2.current = null, function() {
107
- if (0 === T2) {
108
- x2 = console.log, $2 = console.info, S2 = console.warn, _2 = console.error, k2 = console.group, O2 = console.groupCollapsed, E2 = console.groupEnd;
109
- var e4 = { configurable: true, enumerable: true, value: R2, writable: true };
110
- Object.defineProperties(console, { info: e4, log: e4, warn: e4, error: e4, group: e4, groupCollapsed: e4, groupEnd: e4 });
111
- }
112
- T2++;
113
- }();
114
- try {
115
- if (t2) {
116
- var l3 = function() {
117
- throw Error();
118
- };
119
- if (Object.defineProperty(l3.prototype, "props", { set: function() {
120
- throw Error();
121
- } }), "object" == typeof Reflect && Reflect.construct) {
122
- try {
123
- Reflect.construct(l3, []);
124
- } catch (e4) {
125
- n3 = e4;
126
- }
127
- Reflect.construct(e3, [], l3);
128
- } else {
129
- try {
130
- l3.call();
131
- } catch (e4) {
132
- n3 = e4;
133
- }
134
- e3.call(l3.prototype);
135
- }
136
- } else {
137
- try {
138
- throw Error();
139
- } catch (e4) {
140
- n3 = e4;
141
- }
142
- e3();
143
- }
144
- } catch (t3) {
145
- if (t3 && n3 && "string" == typeof t3.stack) {
146
- for (var a3 = t3.stack.split("\n"), c3 = n3.stack.split("\n"), s3 = a3.length - 1, u3 = c3.length - 1; s3 >= 1 && u3 >= 0 && a3[s3] !== c3[u3]; ) u3--;
147
- for (; s3 >= 1 && u3 >= 0; s3--, u3--) if (a3[s3] !== c3[u3]) {
148
- if (1 !== s3 || 1 !== u3) do {
149
- if (s3--, --u3 < 0 || a3[s3] !== c3[u3]) {
150
- var f3 = "\n" + a3[s3].replace(" at new ", " at ");
151
- return e3.displayName && f3.includes("<anonymous>") && (f3 = f3.replace("<anonymous>", e3.displayName)), "function" == typeof e3 && P2.set(e3, f3), f3;
152
- }
153
- } while (s3 >= 1 && u3 >= 0);
154
- break;
155
- }
156
- }
157
- } finally {
158
- F2 = false, L2.current = o3, function() {
159
- if (0 == --T2) {
160
- var e4 = { configurable: true, enumerable: true, writable: true };
161
- Object.defineProperties(console, { log: A2({}, e4, { value: x2 }), info: A2({}, e4, { value: $2 }), warn: A2({}, e4, { value: S2 }), error: A2({}, e4, { value: _2 }), group: A2({}, e4, { value: k2 }), groupCollapsed: A2({}, e4, { value: O2 }), groupEnd: A2({}, e4, { value: E2 }) });
162
- }
163
- T2 < 0 && h2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
- }(), Error.prepareStackTrace = i3;
165
- }
166
- var d3 = e3 ? e3.displayName || e3.name : "", p3 = d3 ? z2(d3) : "";
167
- return "function" == typeof e3 && P2.set(e3, p3), p3;
168
- }
169
- function W2(e3, t2, n3) {
170
- if (null == e3) return "";
171
- if ("function" == typeof e3) return N2(e3, !(!(r3 = e3.prototype) || !r3.isReactComponent));
172
- var r3;
173
- if ("string" == typeof e3) return z2(e3);
174
- switch (e3) {
175
- case u2:
176
- return z2("Suspense");
177
- case f2:
178
- return z2("SuspenseList");
179
- }
180
- if ("object" == typeof e3) switch (e3.$$typeof) {
181
- case s2:
182
- return N2(e3.render, false);
183
- case d2:
184
- return W2(e3.type, t2, n3);
185
- case p2:
186
- var o3 = e3, i3 = o3._payload, l3 = o3._init;
187
- try {
188
- return W2(l3(i3), t2, n3);
189
- } catch (e4) {
190
- }
191
- }
192
- return "";
193
- }
194
- P2 = new D2();
195
- var M2 = Object.prototype.hasOwnProperty, I2 = {}, B2 = g2.ReactDebugCurrentFrame;
196
- function H2(e3) {
197
- if (e3) {
198
- var t2 = e3._owner, n3 = W2(e3.type, e3._source, t2 ? t2.type : null);
199
- B2.setExtraStackFrame(n3);
200
- } else B2.setExtraStackFrame(null);
201
- }
202
- var V2 = Array.isArray;
203
- function q2(e3) {
204
- return V2(e3);
205
- }
206
- function U2(e3) {
207
- return "" + e3;
208
- }
209
- function G2(e3) {
210
- if (function(e4) {
211
- try {
212
- return U2(e4), false;
213
- } catch (e5) {
214
- return true;
215
- }
216
- }(e3)) return h2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", function(e4) {
217
- return "function" == typeof Symbol && Symbol.toStringTag && e4[Symbol.toStringTag] || e4.constructor.name || "Object";
218
- }(e3)), U2(e3);
219
- }
220
- var Y2, K2, X2 = g2.ReactCurrentOwner, Z2 = { key: true, ref: true, __self: true, __source: true };
221
- function J2(e3, t2, r3, o3, i3) {
222
- var l3, a3 = {}, c3 = null, s3 = null;
223
- for (l3 in void 0 !== r3 && (G2(r3), c3 = "" + r3), function(e4) {
224
- if (M2.call(e4, "key")) {
225
- var t3 = Object.getOwnPropertyDescriptor(e4, "key").get;
226
- if (t3 && t3.isReactWarning) return false;
227
- }
228
- return void 0 !== e4.key;
229
- }(t2) && (G2(t2.key), c3 = "" + t2.key), function(e4) {
230
- if (M2.call(e4, "ref")) {
231
- var t3 = Object.getOwnPropertyDescriptor(e4, "ref").get;
232
- if (t3 && t3.isReactWarning) return false;
233
- }
234
- return void 0 !== e4.ref;
235
- }(t2) && (s3 = t2.ref, function(e4) {
236
- "string" == typeof e4.ref && X2.current;
237
- }(t2)), t2) M2.call(t2, l3) && !Z2.hasOwnProperty(l3) && (a3[l3] = t2[l3]);
238
- if (e3 && e3.defaultProps) {
239
- var u3 = e3.defaultProps;
240
- for (l3 in u3) void 0 === a3[l3] && (a3[l3] = u3[l3]);
241
- }
242
- if (c3 || s3) {
243
- var f3 = "function" == typeof e3 ? e3.displayName || e3.name || "Unknown" : e3;
244
- c3 && function(e4, t3) {
245
- var n3 = function() {
246
- Y2 || (Y2 = true, h2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t3));
247
- };
248
- n3.isReactWarning = true, Object.defineProperty(e4, "key", { get: n3, configurable: true });
249
- }(a3, f3), s3 && function(e4, t3) {
250
- var n3 = function() {
251
- K2 || (K2 = true, h2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t3));
252
- };
253
- n3.isReactWarning = true, Object.defineProperty(e4, "ref", { get: n3, configurable: true });
254
- }(a3, f3);
255
- }
256
- return function(e4, t3, r4, o4, i4, l4, a4) {
257
- var c4 = { $$typeof: n2, type: e4, key: t3, ref: r4, props: a4, _owner: l4, _store: {} };
258
- return Object.defineProperty(c4._store, "validated", { configurable: false, enumerable: false, writable: true, value: false }), Object.defineProperty(c4, "_self", { configurable: false, enumerable: false, writable: false, value: o4 }), Object.defineProperty(c4, "_source", { configurable: false, enumerable: false, writable: false, value: i4 }), Object.freeze && (Object.freeze(c4.props), Object.freeze(c4)), c4;
259
- }(e3, c3, s3, i3, o3, X2.current, a3);
260
- }
261
- var Q2, ee2 = g2.ReactCurrentOwner, te2 = g2.ReactDebugCurrentFrame;
262
- function ne2(e3) {
263
- if (e3) {
264
- var t2 = e3._owner, n3 = W2(e3.type, e3._source, t2 ? t2.type : null);
265
- te2.setExtraStackFrame(n3);
266
- } else te2.setExtraStackFrame(null);
267
- }
268
- function re2(e3) {
269
- return "object" == typeof e3 && null !== e3 && e3.$$typeof === n2;
270
- }
271
- function oe2() {
272
- if (ee2.current) {
273
- var e3 = w2(ee2.current.type);
274
- if (e3) return "\n\nCheck the render method of `" + e3 + "`.";
275
- }
276
- return "";
277
- }
278
- Q2 = false;
279
- var ie2 = {};
280
- function le2(e3, t2) {
281
- if (e3._store && !e3._store.validated && null == e3.key) {
282
- e3._store.validated = true;
283
- var n3 = function(e4) {
284
- var t3 = oe2();
285
- if (!t3) {
286
- var n4 = "string" == typeof e4 ? e4 : e4.displayName || e4.name;
287
- n4 && (t3 = "\n\nCheck the top-level render call using <" + n4 + ">.");
288
- }
289
- return t3;
290
- }(t2);
291
- if (!ie2[n3]) {
292
- ie2[n3] = true;
293
- var r3 = "";
294
- e3 && e3._owner && e3._owner !== ee2.current && (r3 = " It was passed a child from " + w2(e3._owner.type) + "."), ne2(e3), h2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n3, r3), ne2(null);
295
- }
296
- }
297
- }
298
- function ae2(e3, t2) {
299
- if ("object" == typeof e3) {
300
- if (q2(e3)) for (var n3 = 0; n3 < e3.length; n3++) {
301
- var r3 = e3[n3];
302
- re2(r3) && le2(r3, t2);
303
- }
304
- else if (re2(e3)) e3._store && (e3._store.validated = true);
305
- else if (e3) {
306
- var o3 = function(e4) {
307
- if (null === e4 || "object" != typeof e4) return null;
308
- var t3 = m2 && e4[m2] || e4["@@iterator"];
309
- return "function" == typeof t3 ? t3 : null;
310
- }(e3);
311
- if ("function" == typeof o3 && o3 !== e3.entries) for (var i3, l3 = o3.call(e3); !(i3 = l3.next()).done; ) re2(i3.value) && le2(i3.value, t2);
312
- }
313
- }
314
- }
315
- function ce2(e3) {
316
- var t2, n3 = e3.type;
317
- if (null != n3 && "string" != typeof n3) {
318
- if ("function" == typeof n3) t2 = n3.propTypes;
319
- else {
320
- if ("object" != typeof n3 || n3.$$typeof !== s2 && n3.$$typeof !== d2) return;
321
- t2 = n3.propTypes;
322
- }
323
- if (t2) {
324
- var r3 = w2(n3);
325
- !function(e4, t3, n4, r4, o3) {
326
- var i3 = Function.call.bind(M2);
327
- for (var l3 in e4) if (i3(e4, l3)) {
328
- var a3 = void 0;
329
- try {
330
- if ("function" != typeof e4[l3]) {
331
- var c3 = Error((r4 || "React class") + ": " + n4 + " type `" + l3 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e4[l3] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
332
- throw c3.name = "Invariant Violation", c3;
333
- }
334
- a3 = e4[l3](t3, l3, r4, n4, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
- } catch (e5) {
336
- a3 = e5;
337
- }
338
- !a3 || a3 instanceof Error || (H2(o3), h2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", r4 || "React class", n4, l3, typeof a3), H2(null)), a3 instanceof Error && !(a3.message in I2) && (I2[a3.message] = true, H2(o3), h2("Failed %s type: %s", n4, a3.message), H2(null));
339
- }
340
- }(t2, e3.props, "prop", r3, e3);
341
- } else if (void 0 !== n3.PropTypes && !Q2) {
342
- Q2 = true, h2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w2(n3) || "Unknown");
343
- }
344
- "function" != typeof n3.getDefaultProps || n3.getDefaultProps.isReactClassApproved || h2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
345
- }
346
- }
347
- function se2(e3, t2, r3, m3, g3, b3) {
348
- var x3 = function(e4) {
349
- return "string" == typeof e4 || "function" == typeof e4 || e4 === o2 || e4 === l2 || e4 === i2 || e4 === u2 || e4 === f2 || e4 === y2 || "object" == typeof e4 && null !== e4 && (e4.$$typeof === p2 || e4.$$typeof === d2 || e4.$$typeof === a2 || e4.$$typeof === c2 || e4.$$typeof === s2 || e4.$$typeof === v2 || void 0 !== e4.getModuleId);
350
- }(e3);
351
- if (!x3) {
352
- var $3 = "";
353
- (void 0 === e3 || "object" == typeof e3 && null !== e3 && 0 === Object.keys(e3).length) && ($3 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
354
- var S3;
355
- $3 += oe2(), null === e3 ? S3 = "null" : q2(e3) ? S3 = "array" : void 0 !== e3 && e3.$$typeof === n2 ? (S3 = "<" + (w2(e3.type) || "Unknown") + " />", $3 = " Did you accidentally export a JSX literal instead of a component?") : S3 = typeof e3, h2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S3, $3);
356
- }
357
- var _3 = J2(e3, t2, r3, g3, b3);
358
- if (null == _3) return _3;
359
- if (x3) {
360
- var k3 = t2.children;
361
- if (void 0 !== k3) if (m3) if (q2(k3)) {
362
- for (var j2 = 0; j2 < k3.length; j2++) ae2(k3[j2], e3);
363
- Object.freeze && Object.freeze(k3);
364
- } else h2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
365
- else ae2(k3, e3);
366
- }
367
- return e3 === o2 ? function(e4) {
368
- for (var t3 = Object.keys(e4.props), n3 = 0; n3 < t3.length; n3++) {
369
- var r4 = t3[n3];
370
- if ("children" !== r4 && "key" !== r4) {
371
- ne2(e4), h2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", r4), ne2(null);
372
- break;
373
- }
374
- }
375
- null !== e4.ref && (ne2(e4), h2("Invalid attribute `ref` supplied to `React.Fragment`."), ne2(null));
376
- }(_3) : ce2(_3), _3;
377
- }
378
- var ue2 = function(e3, t2, n3) {
379
- return se2(e3, t2, n3, false);
380
- }, fe2 = function(e3, t2, n3) {
381
- return se2(e3, t2, n3, true);
382
- };
383
- j.Fragment = o2, j.jsx = ue2, j.jsxs = fe2;
384
- }()), j;
385
- }
386
- var E = (k || (k = 1, "production" === process.env.NODE_ENV ? $.exports = function() {
387
- if (x) return S;
388
- x = 1;
389
- var e2 = t, n2 = Symbol.for("react.element"), r2 = Symbol.for("react.fragment"), o2 = Object.prototype.hasOwnProperty, i2 = e2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l2 = { key: true, ref: true, __self: true, __source: true };
390
- function a2(e3, t2, r3) {
391
- var a3, c2 = {}, s2 = null, u2 = null;
392
- for (a3 in void 0 !== r3 && (s2 = "" + r3), void 0 !== t2.key && (s2 = "" + t2.key), void 0 !== t2.ref && (u2 = t2.ref), t2) o2.call(t2, a3) && !l2.hasOwnProperty(a3) && (c2[a3] = t2[a3]);
393
- if (e3 && e3.defaultProps) for (a3 in t2 = e3.defaultProps) void 0 === c2[a3] && (c2[a3] = t2[a3]);
394
- return { $$typeof: n2, type: e3, key: s2, ref: u2, props: c2, _owner: i2.current };
395
- }
396
- return S.Fragment = r2, S.jsx = a2, S.jsxs = a2, S;
397
- }() : $.exports = O()), $.exports);
398
- const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "briefcase", "bug", "buildings", "bullseye-pointer", "calendar-clock", "calendar-xmark", "chart-network", "clipboard-check", "comment", "envelope", "eye", "file", "flag", "globe", "hand-holding-dollar", "hands-clapping", "headset", "hexagon-exclamation", "light-emergency-on", "magnifying-glass", "pen-line", "plane-departure", "screwdriver-wrench", "sensor-triangle-exclamation", "shield-check", "sidebar", "skull", "sliders", "star-christmas", "telescope", "trash", "unlock", "user-group", "user-hoodie", "xmark"], T = [["fal", "arrow-down"], ["fal", "arrow-left"], ["fal", "arrow-right"], ["fal", "arrow-up"], ["fal", "plus"], ["fal", "minus"], ["fas", "check"], ["fas", "circle-question"]], R = { typography: { type: { primary: "Roboto, sans-serif", poppins: "'Poppins', sans-serif", mono: "'Space Mono', monospace" }, heading: { xxl: "64px", xl: "48px", lg: "32px", md: "24px", sm: "20px", xs: "16px" }, text: { xl: "20px", lg: "18px", md: "16px", sm: "14px", xs: "12px" }, weight: { bold: "700", semibold: "600", regular: "400" } }, shadows: { none: "none", sm: "0px 1px 2px 0px rgba(16, 24, 40, 0.15)", md: "0px 4px 6px 0px rgba(16, 24, 40, 0.15)", lg: "0px 8px 24px 0px rgba(16, 24, 40, 0.15)" }, breakpoints: { mobile: "480px", tablet: "960px", sm: "1024px", md: "1440px", lg: "1920px" }, spacing: { 0: "0rem", 0.125: "0.125rem", 0.188: "0.188rem", 0.25: "0.25rem", 0.5: "0.5rem", 0.625: "0.625rem", 0.75: "0.75rem", 1: "1rem", 1.25: "1.25rem", 1.5: "1.5rem", 1.75: "1.75rem", 2: "2rem", 2.25: "2.25rem", 2.5: "2.5rem", 3: "3rem", 3.5: "3.5rem", 4: "4rem", 4.5: "4.5rem", 5: "5rem", 6: "6rem" }, palette: { primary: { 25: "#fef2f3", 50: "#fddfe2", 100: "#fbbac0", 200: "#f9959e", 300: "#f65e6a", 400: "#f32637", 500: "#bf0b1a", 600: "#ac0a17", 700: "#9a0915", 800: "#870812", 900: "#750710" }, complementary: { 25: "", 50: "", 100: "#ffe6ff", 200: "", 300: "#b8075d", 400: "", 500: "#7f0540", 600: "", 700: "#59042d", 800: "", 900: "#460323" }, error: { 25: "", 50: "#fef3f2", 100: "", 200: "#fecdca", 300: "", 400: "", 500: "#f04438", 600: "", 700: "#b42318", 800: "", 900: "" }, info: { 25: "", 50: "#eff8ff", 100: "", 200: "#b2ddff", 300: "", 400: "", 500: "#2e90fa", 600: "", 700: "#175cd3", 800: "", 900: "" }, warning: { 25: "", 50: "#fffaeb", 100: "", 200: "#fef0c7", 300: "", 400: "#ffd562", 500: "#fdb022", 600: "#dc6803", 700: "#b54708", 800: "", 900: "" }, success: { 25: "", 50: "#f6fef9", 100: "", 200: "#a6f4c5", 300: "", 400: "", 500: "#12b76a", 600: "", 700: "#027a48", 800: "", 900: "" }, black: "#0c111d", white: "#ffffff", gray: { 25: "#fcfcfd", 50: "#f9fafb", 100: "#f2f4f7", 200: "#eaecf0", 300: "#d0d5dd", 400: "#98a2b3", 500: "#667085", 600: "#475467", 700: "#2f394b", 800: "#212a36", 900: "#161b25" }, gradients: { "01": "linear-gradient(45deg, #f32637 0%, #b8075d 100%)", "02": "linear-gradient(45deg, #fcfcfd 0%, #667085 100%)" } } }, C = ({ children: e2 }) => E.jsx(d, { theme: R, children: e2 }), L = (e2, t2) => void 0 === t2 ? "" : `${e2}: ${t2};`, z = (e2) => {
399
- const t2 = e2.py ?? e2.pt ?? 0, n2 = e2.px ?? e2.pr ?? 0, r2 = e2.py ?? e2.pb ?? 0, o2 = e2.px ?? e2.pl ?? 0;
400
- if (e2.padding) {
401
- const [t3, n3, r3, o3] = e2.padding;
402
- return `padding: ${R.spacing[t3]} ${R.spacing[n3]} ${R.spacing[r3]} ${R.spacing[o3]};`;
403
- }
404
- return `padding: ${R.spacing[t2]} ${R.spacing[n2]} ${R.spacing[r2]} ${R.spacing[o2]};`;
405
- }, P = (e2) => {
406
- const t2 = e2.my ?? e2.mt ?? 0, n2 = e2.mx ?? e2.mr ?? 0, r2 = e2.my ?? e2.mb ?? 0, o2 = e2.mx ?? e2.ml ?? 0;
407
- if (e2.margin) {
408
- const [t3, n3, r3, o3] = e2.margin;
409
- return `margin: ${R.spacing[t3]} ${R.spacing[n3]} ${R.spacing[r3]} ${R.spacing[o3]};`;
410
- }
411
- return `margin: ${R.spacing[t2]} ${R.spacing[n2]} ${R.spacing[r2]} ${R.spacing[o2]};`;
412
- }, F = (e2) => `
413
- ${L("position", e2.position)}
414
- ${L("top", e2.top)}
415
- ${L("right", e2.right)}
416
- ${L("bottom", e2.bottom)}
417
- ${L("left", e2.left)}
418
- ${L("z-index", e2.zIndex)}
419
- `, D = (e2) => `
420
- ${L("border", e2.border)}
421
- ${L("border-top", e2.borderTop)}
422
- ${L("border-right", e2.borderRight)}
423
- ${L("border-bottom", e2.borderBottom)}
424
- ${L("border-left", e2.borderLeft)}
425
- ${L("border-color", e2.borderColor)}
426
- ${L("border-radius", e2.borderRadius)}
427
- `, N = (e2) => {
428
- const t2 = e2.scroll ? `
429
- ${((e3) => e3.includes("x") ? "overflow-x: auto;" : "")(e2.scroll)}
430
- ${((e3) => e3.includes("y") ? "overflow-y: auto;" : "")(e2.scroll)}
431
- ` : "", n2 = L("visibility", e2.visibility), r2 = L("display", e2.display), o2 = L("height", e2.height), i2 = L("width", e2.width), l2 = L("max-height", e2.maxHeight), a2 = L("max-width", e2.maxWidth), c2 = L("min-height", e2.minHeight), s2 = L("min-width", e2.minWidth), u2 = L("box-shadow", e2.shadow ? R.shadows[e2.shadow] : void 0), f2 = L("gap", void 0 === e2.gap ? void 0 : R.spacing[e2.gap]);
432
- return `
433
- ${t2}
434
- ${n2}
435
- ${r2}
436
- ${o2}
437
- ${i2}
438
- ${l2}
439
- ${a2}
440
- ${c2}
441
- ${s2}
442
- ${u2}
443
- ${L("background-color", e2.bgColor)}
444
- ${L("background", e2.bgGradient)}
445
- ${f2}
446
- ${L("flex-direction", e2.flexDirection)}
447
- ${L("flex-grow", e2.flexGrow)}
448
- ${L("justify-content", e2.justify)}
449
- ${L("justify-self", e2.justifySelf)}
450
- ${L("align-items", e2.alignItems)}
451
- ${L("align-self", e2.alignSelf)}
452
- ${L("flex-wrap", e2.wrap)}
453
- `;
454
- }, W = (e2) => `
455
- ${L("color", e2.color)}
456
- ${L("font-family", e2.fontFamily)}
457
- ${L("font-size", e2.fontSize)}
458
- ${L("font-weight", e2.fontWeight)}
459
- ${L("line-spacing", e2.letterSpacing)}
460
- ${L("line-height", e2.lineSpacing)}
461
- ${L("text-align", e2.textAlign)}
462
- ${L("text-decoration", e2.textDecoration)}
463
- ${L("text-overflow", e2.textOverflow)}
464
- ${L("white-space", e2.whiteSpace)}
465
- ${L("word-break", e2.wordBreak)}
466
- ${L("word-wrap", e2.wordWrap)}
467
- `, M = (e2) => {
468
- const t2 = L("cursor", e2.cursor), n2 = L("border-color", e2.borderColorHover), r2 = L("background-color", e2.bgColorHover), o2 = L("box-shadow", void 0 === e2.shadowHover ? void 0 : R.shadows[e2.shadowHover]);
469
- return `
470
- ${t2}
471
-
472
- &:hover {
473
- ${L("transition", e2.transition) || "transition: all 0.2s;"}
474
- ${n2}
475
- ${r2}
476
- ${o2}
477
- }
478
- `;
479
- }, I = () => ({ shouldForwardProp: (e2) => !v.includes(e2) }), B = p.div.withConfig(I())`
480
- ${z}
481
- ${P}
482
- ${F}
483
- ${N}
484
- ${W}
485
- ${D}
486
- ${M}
487
- `, H = p.button.withConfig(I())`
488
- ${z}
489
- ${P}
490
- ${F}
491
- ${N}
492
- ${W}
493
- ${D}
494
- ${M}
495
- `, V = p.p.withConfig(I())`
496
- ${z}
497
- ${P}
498
- ${F}
499
- ${N}
500
- ${W}
501
- ${D}
502
- ${M}
503
- `, q = p.span.withConfig(I())`
504
- ${z}
505
- ${P}
506
- ${F}
507
- ${N}
508
- ${W}
509
- ${D}
510
- ${M}
511
- `, U = p(V)`
512
- ${({ theme: e2, $bgGradient: t2 = "unset", $color: n2 = e2.palette.gray[800], $display: r2 = "block", $fontFamily: o2 = e2.typography.type.primary, $fontWeight: i2 = "bold", $letterSpacing: l2 = 0, $lineSpacing: a2 = 1.5, $lineSpacingSm: c2, $size: s2, $sizeMd: u2, $sizeSm: f2, $textFill: d2 = "unset", $wordBreak: p2 = "normal" }) => `
513
- background: ${t2};
514
- color: ${n2};
515
- display: ${r2};
516
- font-family: ${o2};
517
- font-size: ${e2.typography.heading[s2]};
518
- font-weight: ${e2.typography.weight[i2]};
519
- letter-spacing: ${l2};
520
- line-height: ${e2.spacing[a2]};
521
- width: ${"block" === r2 ? "100%" : "auto"};
522
- word-break: ${p2};
523
- background-clip: text;
524
- -webkit-background-clip: text;
525
- -webkit-text-fill-color: ${d2};
526
-
527
- @media screen
528
- and (min-width: ${e2.breakpoints.mobile})
529
- and (max-width: ${e2.breakpoints.tablet})
530
- {
531
- font-size: ${e2.typography.heading[u2 ?? s2]};
532
- }
533
-
534
- @media screen and (max-width: ${e2.breakpoints.mobile}) {
535
- font-size: ${e2.typography.heading[f2 ?? s2]};
536
- line-height: ${e2.spacing[c2 ?? a2]};
537
- }
538
- `}
539
- `, G = p(V)`
540
- ${({ theme: e2, $bgGradient: t2 = "unset", $color: n2 = e2.palette.gray[600], $display: r2 = "block", $fontFamily: o2 = e2.typography.type.primary, $fontWeight: i2 = "regular", $letterSpacing: l2 = 0, $lineSpacing: a2 = 1.25, $lineSpacingSm: c2, $size: s2, $sizeMd: u2, $sizeSm: f2, $textFill: d2 = "unset", $wordBreak: p2 = "normal" }) => `
541
- background: ${t2};
542
- color: ${n2};
543
- display: ${r2};
544
- font-family: ${o2};
545
- font-size: ${e2.typography.text[s2]};
546
- font-weight: ${e2.typography.weight[i2]};
547
- letter-spacing: ${l2};
548
- line-height: ${e2.spacing[a2]};
549
- width: ${"block" === r2 ? "100%" : "auto"};
550
- word-break: ${p2};
551
- background-clip: text;
552
- -webkit-background-clip: text;
553
- -webkit-text-fill-color: ${d2};
554
-
555
- @media screen
556
- and (min-width: ${e2.breakpoints.mobile})
557
- and (max-width: ${e2.breakpoints.tablet})
558
- {
559
- font-size: ${e2.typography.text[u2 ?? s2]};
560
- }
561
-
562
- @media screen and (max-width: ${e2.breakpoints.mobile}) {
563
- font-size: ${e2.typography.text[f2 ?? s2]};
564
- line-height: ${e2.spacing[c2 ?? a2]};
565
- }
566
- `}
567
- `, Y = p.span`
568
- ${({ theme: e2, $color: t2 = e2.palette.gray[600], $content: n2, $display: r2 = "inline", $fontWeight: o2 = "regular", $size: i2, $lineSpacing: l2 = 1.25 }) => `
569
- color: ${t2};
570
- display: ${r2};
571
- font-family: ${e2.typography.type.primary};
572
- font-size: ${e2.typography.text[i2]};
573
- font-weight: ${e2.typography.weight[o2]};
574
- line-height: ${e2.spacing[l2]};
575
- width: ${"block" === r2 ? "100%" : "auto"};
576
-
577
- ${void 0 === n2 ? "" : `&::after { content: "${n2}"; }`}
578
- `}
579
- `, K = n(function({ bgGradient: e2, children: t2, className: n2, color: r2, display: o2, fontFamily: i2, fontWeight: l2, letterSpacing: a2, lineSpacing: c2, lineSpacingSm: s2, size: u2, sizeMd: f2, sizeSm: d2, textFill: p2, wordBreak: y2, ...m2 }, g2) {
580
- return E.jsx(U, { $bgGradient: e2, $color: r2, $display: o2, $fontFamily: i2, $fontWeight: l2, $letterSpacing: a2, $lineSpacing: c2, $lineSpacingSm: s2, $size: u2, $sizeMd: f2, $sizeSm: d2, $textFill: p2, $wordBreak: y2, className: n2, ref: g2, ...m2, children: t2 });
581
- }), X = n(function({ children: e2, color: t2, content: n2, display: r2, fontFamily: o2, fontWeight: i2, letterSpacing: l2, lineSpacing: a2, lineSpacingSm: c2, size: s2, sizeMd: u2, sizeSm: f2, ...d2 }, p2) {
582
- return E.jsx(Y, { $color: t2, $content: n2, $display: r2, $fontFamily: o2, $fontWeight: i2, $letterSpacing: l2, $lineSpacing: a2, $lineSpacingSm: c2, $size: s2, $sizeMd: u2, $sizeSm: f2, ref: p2, ...d2, children: e2 });
583
- }), Z = n(function({ bgGradient: e2, children: t2, className: n2, color: r2, display: o2, fontFamily: i2, fontWeight: l2, letterSpacing: a2, lineSpacing: c2, lineSpacingSm: s2, size: u2, sizeMd: f2, sizeSm: d2, textFill: p2, wordBreak: y2, ...m2 }, g2) {
584
- return E.jsx(G, { $bgGradient: e2, $color: r2, $display: o2, $fontFamily: i2, $fontWeight: l2, $letterSpacing: a2, $lineSpacing: c2, $lineSpacingSm: s2, $size: u2, $sizeMd: f2, $sizeSm: d2, $textFill: p2, $wordBreak: y2, className: n2, ref: g2, ...m2, children: t2 });
585
- }), J = { xl: "96px", lg: "64px", md: "32px", sm: "24px", xs: "16px", xxs: "12px", xxss: "10px" }, Q = p(q)`
586
- ${({ $clickable: e2, $color: t2 = "inherit", $disabled: n2 = false, $hoverColor: r2, $rotation: o2, $size: i2, $secondaryColor: l2 }) => `
587
- color: ${t2};
588
- cursor: ${e2 ? "pointer" : "inherit"};
589
- font-size: ${J[i2]};
590
- line-height: 0;
591
- vertical-align: middle;
592
- pointer-events: inherit;
593
- opacity: ${n2 ? "0.5" : "1"};
594
-
595
- > svg {
596
- --fa-secondary-color: ${l2};
597
- transform: ${void 0 === o2 ? "" : `rotate(${o2}deg)`};
598
- }
599
-
600
- .fill-gradient-01 path {
601
- fill: url(/gradients.svg#gradient-01);
602
- fill: url(#gradient-01);
603
- }
604
- .fill-gradient-02 path {
605
- fill: url(/gradients.svg#gradient-02);
606
- fill: url(#gradient-02);
607
- }
608
-
609
- ${e2 ? `&:hover {
610
- filter: ${r2 ? "" : "brightness(50%)"};
611
- color: ${r2 ?? ""};
612
- }` : ""}
613
- `}
614
- `;
615
- p.div`
616
- cursor: pointer;
617
- transition: all 0.2s ease-in-out;
618
-
619
- &:hover:not([disabled]) {
620
- transform: scale(1.2);
621
- }
622
- `;
623
- const ee = n(function({ clickable: e2, disabled: t2, hoverColor: n2, icon: r2, iconClass: o2 = "", iconColor: i2, iconMask: l2, iconSize: a2, iconTransform: c2, iconType: s2 = "fa-solid", onClick: u2, rotation: f2, spanClass: d2, secondaryColor: p2, ...y2 }, m2) {
624
- return E.jsx(Q, { $clickable: e2, $color: i2, $disabled: t2, $hoverColor: n2, $rotation: f2, $secondaryColor: p2, $size: a2, className: d2, "data-testid": `${r2}-icon`, onClick: u2, ref: m2, ...y2, children: E.jsx("i", { className: `${s2} fa-${r2} ${o2}`, ...void 0 !== l2 ? { "data-fa-mask": l2 } : {}, ...void 0 !== c2 ? { "data-fa-transform": c2 } : {} }) }, `${s2}-${r2}`);
625
- }), { getVariant: te } = h((e2) => ({ ghost: `
626
- background: transparent;
627
- border: none;
628
- color: ${e2.palette.gray[800]};
629
- --btn-padding-x: ${e2.spacing[0.5]};
630
- --btn-padding-y: ${e2.spacing[0.625]};
631
- --btn-spacing: ${e2.spacing[0.25]};
632
-
633
- &:disabled {
634
- color: ${e2.palette.gray[400]};
635
- cursor: not-allowed;
636
- }
637
-
638
- &:hover:not([disabled]) {
639
- background-color: ${e2.palette.gray[100]};
640
- color: ${e2.palette.gray[800]};
641
- }
642
- `, link: `
643
- --btn-padding-x: 0;
644
- --btn-padding-y: 0;
645
- color: ${e2.palette.gray[800]};
646
-
647
- &:hover {
648
- color: ${e2.palette.gray[500]};
649
- }
650
- `, primary: `
651
- background: ${e2.palette.primary[500]};
652
- border: none;
653
- color: ${e2.palette.white};
654
- --btn-spacing: ${e2.spacing[0.25]};
655
-
656
- &:disabled {
657
- background: ${e2.palette.gray[200]};
658
- color: ${e2.palette.gray[400]};
659
- cursor: not-allowed;
660
- }
661
-
662
- &:hover:not([disabled]) {
663
- background-color: ${e2.palette.primary[700]};
664
- color: ${e2.palette.white};
665
- }
666
- `, secondary: `
667
- background: ${e2.palette.gray[800]};
668
- border: none;
669
- color: ${e2.palette.white};
670
- --btn-spacing: ${e2.spacing[0.25]};
671
-
672
- &:disabled {
673
- background: ${e2.palette.gray[200]};
674
- color: ${e2.palette.gray[400]};
675
- cursor: not-allowed;
676
- }
677
-
678
- &:hover:not([disabled]) {
679
- background-color: ${e2.palette.gray[600]};
680
- color: ${e2.palette.white};
681
- }
682
- `, tertiary: `
683
- background: transparent;
684
- border: 1px solid ${e2.palette.primary[500]};
685
- color: ${e2.palette.primary[500]};
686
- --btn-spacing: ${e2.spacing[0.25]};
687
-
688
- &:disabled {
689
- background: transparent;
690
- border: 1px solid ${e2.palette.gray[200]};
691
- color: ${e2.palette.gray[300]};
692
- cursor: not-allowed;
693
- }
694
-
695
- &:hover:not([disabled]) {
696
- background-color: ${e2.palette.primary[500]};
697
- color: ${e2.palette.white};
698
- }
699
- ` })), ne = p(H)`
700
- ${({ theme: e2, $variant: t2 }) => `
701
- align-items: center;
702
- border-radius: var(--btn-spacing);
703
- cursor: pointer;
704
- display: inline-flex;
705
- font-family: ${e2.typography.type.primary};
706
- font-size: ${e2.typography.text.sm};
707
- font-weight: ${e2.typography.weight.regular};
708
- gap: var(--btn-spacing);
709
- justify-content: center;
710
- line-height: ${e2.spacing[1.25]};
711
- padding: var(--btn-padding-y) var(--btn-padding-x);
712
- position: relative;
713
- text-align: start;
714
- transition: all 0.5s ease;
715
- white-space: nowrap;
716
-
717
- @media screen and (max-width: ${e2.breakpoints.mobile}) {
718
- ${"link" !== t2 ? `--btn-padding-y: ${e2.spacing[1]}` : ""};
719
- }
720
-
721
- ${te(e2, t2 ?? "primary")}
722
- `}
723
- `, re = Math.min, oe = Math.max, ie = Math.round, le = Math.floor, ae = (e2) => ({ x: e2, y: e2 }), ce = { left: "right", right: "left", bottom: "top", top: "bottom" }, se = { start: "end", end: "start" };
724
- function ue(e2, t2, n2) {
725
- return oe(e2, re(t2, n2));
726
- }
727
- function fe(e2, t2) {
728
- return "function" == typeof e2 ? e2(t2) : e2;
729
- }
730
- function de(e2) {
731
- return e2.split("-")[0];
732
- }
733
- function pe(e2) {
734
- return e2.split("-")[1];
735
- }
736
- function ye(e2) {
737
- return "x" === e2 ? "y" : "x";
738
- }
739
- function me(e2) {
740
- return "y" === e2 ? "height" : "width";
741
- }
742
- function ge(e2) {
743
- return ["top", "bottom"].includes(de(e2)) ? "y" : "x";
744
- }
745
- function he(e2) {
746
- return ye(ge(e2));
747
- }
748
- function ve(e2) {
749
- return e2.replace(/start|end/g, (e3) => se[e3]);
750
- }
751
- function be(e2) {
752
- return e2.replace(/left|right|bottom|top/g, (e3) => ce[e3]);
753
- }
754
- function we(e2) {
755
- return "number" != typeof e2 ? function(e3) {
756
- return { top: 0, right: 0, bottom: 0, left: 0, ...e3 };
757
- }(e2) : { top: e2, right: e2, bottom: e2, left: e2 };
758
- }
759
- function xe(e2) {
760
- const { x: t2, y: n2, width: r2, height: o2 } = e2;
761
- return { width: r2, height: o2, top: n2, left: t2, right: t2 + r2, bottom: n2 + o2, x: t2, y: n2 };
762
- }
763
- function $e(e2, t2, n2) {
764
- let { reference: r2, floating: o2 } = e2;
765
- const i2 = ge(t2), l2 = he(t2), a2 = me(l2), c2 = de(t2), s2 = "y" === i2, u2 = r2.x + r2.width / 2 - o2.width / 2, f2 = r2.y + r2.height / 2 - o2.height / 2, d2 = r2[a2] / 2 - o2[a2] / 2;
766
- let p2;
767
- switch (c2) {
768
- case "top":
769
- p2 = { x: u2, y: r2.y - o2.height };
770
- break;
771
- case "bottom":
772
- p2 = { x: u2, y: r2.y + r2.height };
773
- break;
774
- case "right":
775
- p2 = { x: r2.x + r2.width, y: f2 };
776
- break;
777
- case "left":
778
- p2 = { x: r2.x - o2.width, y: f2 };
779
- break;
780
- default:
781
- p2 = { x: r2.x, y: r2.y };
782
- }
783
- switch (pe(t2)) {
784
- case "start":
785
- p2[l2] -= d2 * (n2 && s2 ? -1 : 1);
786
- break;
787
- case "end":
788
- p2[l2] += d2 * (n2 && s2 ? -1 : 1);
789
- }
790
- return p2;
791
- }
792
- async function Se(e2, t2) {
793
- var n2;
794
- void 0 === t2 && (t2 = {});
795
- const { x: r2, y: o2, platform: i2, rects: l2, elements: a2, strategy: c2 } = e2, { boundary: s2 = "clippingAncestors", rootBoundary: u2 = "viewport", elementContext: f2 = "floating", altBoundary: d2 = false, padding: p2 = 0 } = fe(t2, e2), y2 = we(p2), m2 = a2[d2 ? "floating" === f2 ? "reference" : "floating" : f2], g2 = xe(await i2.getClippingRect({ element: null == (n2 = await (null == i2.isElement ? void 0 : i2.isElement(m2))) || n2 ? m2 : m2.contextElement || await (null == i2.getDocumentElement ? void 0 : i2.getDocumentElement(a2.floating)), boundary: s2, rootBoundary: u2, strategy: c2 })), h2 = "floating" === f2 ? { x: r2, y: o2, width: l2.floating.width, height: l2.floating.height } : l2.reference, v2 = await (null == i2.getOffsetParent ? void 0 : i2.getOffsetParent(a2.floating)), b2 = await (null == i2.isElement ? void 0 : i2.isElement(v2)) && await (null == i2.getScale ? void 0 : i2.getScale(v2)) || { x: 1, y: 1 }, w2 = xe(i2.convertOffsetParentRelativeRectToViewportRelativeRect ? await i2.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: a2, rect: h2, offsetParent: v2, strategy: c2 }) : h2);
796
- return { top: (g2.top - w2.top + y2.top) / b2.y, bottom: (w2.bottom - g2.bottom + y2.bottom) / b2.y, left: (g2.left - w2.left + y2.left) / b2.x, right: (w2.right - g2.right + y2.right) / b2.x };
797
- }
798
- function _e() {
799
- return "undefined" != typeof window;
800
- }
801
- function ke(e2) {
802
- return Ee(e2) ? (e2.nodeName || "").toLowerCase() : "#document";
803
- }
804
- function je(e2) {
805
- var t2;
806
- return (null == e2 || null == (t2 = e2.ownerDocument) ? void 0 : t2.defaultView) || window;
807
- }
808
- function Oe(e2) {
809
- var t2;
810
- return null == (t2 = (Ee(e2) ? e2.ownerDocument : e2.document) || window.document) ? void 0 : t2.documentElement;
811
- }
812
- function Ee(e2) {
813
- return !!_e() && (e2 instanceof Node || e2 instanceof je(e2).Node);
814
- }
815
- function Ae(e2) {
816
- return !!_e() && (e2 instanceof Element || e2 instanceof je(e2).Element);
817
- }
818
- function Te(e2) {
819
- return !!_e() && (e2 instanceof HTMLElement || e2 instanceof je(e2).HTMLElement);
820
- }
821
- function Re(e2) {
822
- return !(!_e() || "undefined" == typeof ShadowRoot) && (e2 instanceof ShadowRoot || e2 instanceof je(e2).ShadowRoot);
823
- }
824
- function Ce(e2) {
825
- const { overflow: t2, overflowX: n2, overflowY: r2, display: o2 } = Ne(e2);
826
- return /auto|scroll|overlay|hidden|clip/.test(t2 + r2 + n2) && !["inline", "contents"].includes(o2);
827
- }
828
- function Le(e2) {
829
- return ["table", "td", "th"].includes(ke(e2));
830
- }
831
- function ze(e2) {
832
- return [":popover-open", ":modal"].some((t2) => {
833
- try {
834
- return e2.matches(t2);
835
- } catch (e3) {
836
- return false;
837
- }
838
- });
839
- }
840
- function Pe(e2) {
841
- const t2 = Fe(), n2 = Ae(e2) ? Ne(e2) : e2;
842
- return ["transform", "translate", "scale", "rotate", "perspective"].some((e3) => !!n2[e3] && "none" !== n2[e3]) || !!n2.containerType && "normal" !== n2.containerType || !t2 && !!n2.backdropFilter && "none" !== n2.backdropFilter || !t2 && !!n2.filter && "none" !== n2.filter || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((e3) => (n2.willChange || "").includes(e3)) || ["paint", "layout", "strict", "content"].some((e3) => (n2.contain || "").includes(e3));
843
- }
844
- function Fe() {
845
- return !("undefined" == typeof CSS || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
846
- }
847
- function De(e2) {
848
- return ["html", "body", "#document"].includes(ke(e2));
849
- }
850
- function Ne(e2) {
851
- return je(e2).getComputedStyle(e2);
852
- }
853
- function We(e2) {
854
- return Ae(e2) ? { scrollLeft: e2.scrollLeft, scrollTop: e2.scrollTop } : { scrollLeft: e2.scrollX, scrollTop: e2.scrollY };
855
- }
856
- function Me(e2) {
857
- if ("html" === ke(e2)) return e2;
858
- const t2 = e2.assignedSlot || e2.parentNode || Re(e2) && e2.host || Oe(e2);
859
- return Re(t2) ? t2.host : t2;
860
- }
861
- function Ie(e2) {
862
- const t2 = Me(e2);
863
- return De(t2) ? e2.ownerDocument ? e2.ownerDocument.body : e2.body : Te(t2) && Ce(t2) ? t2 : Ie(t2);
864
- }
865
- function Be(e2, t2, n2) {
866
- var r2;
867
- void 0 === t2 && (t2 = []), void 0 === n2 && (n2 = true);
868
- const o2 = Ie(e2), i2 = o2 === (null == (r2 = e2.ownerDocument) ? void 0 : r2.body), l2 = je(o2);
869
- if (i2) {
870
- const e3 = He(l2);
871
- return t2.concat(l2, l2.visualViewport || [], Ce(o2) ? o2 : [], e3 && n2 ? Be(e3) : []);
872
- }
873
- return t2.concat(o2, Be(o2, [], n2));
874
- }
875
- function He(e2) {
876
- return e2.parent && Object.getPrototypeOf(e2.parent) ? e2.frameElement : null;
877
- }
878
- function Ve(e2) {
879
- const t2 = Ne(e2);
880
- let n2 = parseFloat(t2.width) || 0, r2 = parseFloat(t2.height) || 0;
881
- const o2 = Te(e2), i2 = o2 ? e2.offsetWidth : n2, l2 = o2 ? e2.offsetHeight : r2, a2 = ie(n2) !== i2 || ie(r2) !== l2;
882
- return a2 && (n2 = i2, r2 = l2), { width: n2, height: r2, $: a2 };
883
- }
884
- function qe(e2) {
885
- return Ae(e2) ? e2 : e2.contextElement;
886
- }
887
- function Ue(e2) {
888
- const t2 = qe(e2);
889
- if (!Te(t2)) return ae(1);
890
- const n2 = t2.getBoundingClientRect(), { width: r2, height: o2, $: i2 } = Ve(t2);
891
- let l2 = (i2 ? ie(n2.width) : n2.width) / r2, a2 = (i2 ? ie(n2.height) : n2.height) / o2;
892
- return l2 && Number.isFinite(l2) || (l2 = 1), a2 && Number.isFinite(a2) || (a2 = 1), { x: l2, y: a2 };
893
- }
894
- const Ge = ae(0);
895
- function Ye(e2) {
896
- const t2 = je(e2);
897
- return Fe() && t2.visualViewport ? { x: t2.visualViewport.offsetLeft, y: t2.visualViewport.offsetTop } : Ge;
898
- }
899
- function Ke(e2, t2, n2, r2) {
900
- void 0 === t2 && (t2 = false), void 0 === n2 && (n2 = false);
901
- const o2 = e2.getBoundingClientRect(), i2 = qe(e2);
902
- let l2 = ae(1);
903
- t2 && (r2 ? Ae(r2) && (l2 = Ue(r2)) : l2 = Ue(e2));
904
- const a2 = function(e3, t3, n3) {
905
- return void 0 === t3 && (t3 = false), !(!n3 || t3 && n3 !== je(e3)) && t3;
906
- }(i2, n2, r2) ? Ye(i2) : ae(0);
907
- let c2 = (o2.left + a2.x) / l2.x, s2 = (o2.top + a2.y) / l2.y, u2 = o2.width / l2.x, f2 = o2.height / l2.y;
908
- if (i2) {
909
- const e3 = je(i2), t3 = r2 && Ae(r2) ? je(r2) : r2;
910
- let n3 = e3, o3 = He(n3);
911
- for (; o3 && r2 && t3 !== n3; ) {
912
- const e4 = Ue(o3), t4 = o3.getBoundingClientRect(), r3 = Ne(o3), i3 = t4.left + (o3.clientLeft + parseFloat(r3.paddingLeft)) * e4.x, l3 = t4.top + (o3.clientTop + parseFloat(r3.paddingTop)) * e4.y;
913
- c2 *= e4.x, s2 *= e4.y, u2 *= e4.x, f2 *= e4.y, c2 += i3, s2 += l3, n3 = je(o3), o3 = He(n3);
914
- }
915
- }
916
- return xe({ width: u2, height: f2, x: c2, y: s2 });
917
- }
918
- function Xe(e2, t2) {
919
- const n2 = We(e2).scrollLeft;
920
- return t2 ? t2.left + n2 : Ke(Oe(e2)).left + n2;
921
- }
922
- function Ze(e2, t2, n2) {
923
- void 0 === n2 && (n2 = false);
924
- const r2 = e2.getBoundingClientRect();
925
- return { x: r2.left + t2.scrollLeft - (n2 ? 0 : Xe(e2, r2)), y: r2.top + t2.scrollTop };
926
- }
927
- function Je(e2, t2, n2) {
928
- let r2;
929
- if ("viewport" === t2) r2 = function(e3, t3) {
930
- const n3 = je(e3), r3 = Oe(e3), o2 = n3.visualViewport;
931
- let i2 = r3.clientWidth, l2 = r3.clientHeight, a2 = 0, c2 = 0;
932
- if (o2) {
933
- i2 = o2.width, l2 = o2.height;
934
- const e4 = Fe();
935
- (!e4 || e4 && "fixed" === t3) && (a2 = o2.offsetLeft, c2 = o2.offsetTop);
936
- }
937
- return { width: i2, height: l2, x: a2, y: c2 };
938
- }(e2, n2);
939
- else if ("document" === t2) r2 = function(e3) {
940
- const t3 = Oe(e3), n3 = We(e3), r3 = e3.ownerDocument.body, o2 = oe(t3.scrollWidth, t3.clientWidth, r3.scrollWidth, r3.clientWidth), i2 = oe(t3.scrollHeight, t3.clientHeight, r3.scrollHeight, r3.clientHeight);
941
- let l2 = -n3.scrollLeft + Xe(e3);
942
- const a2 = -n3.scrollTop;
943
- return "rtl" === Ne(r3).direction && (l2 += oe(t3.clientWidth, r3.clientWidth) - o2), { width: o2, height: i2, x: l2, y: a2 };
944
- }(Oe(e2));
945
- else if (Ae(t2)) r2 = function(e3, t3) {
946
- const n3 = Ke(e3, true, "fixed" === t3), r3 = n3.top + e3.clientTop, o2 = n3.left + e3.clientLeft, i2 = Te(e3) ? Ue(e3) : ae(1);
947
- return { width: e3.clientWidth * i2.x, height: e3.clientHeight * i2.y, x: o2 * i2.x, y: r3 * i2.y };
948
- }(t2, n2);
949
- else {
950
- const n3 = Ye(e2);
951
- r2 = { x: t2.x - n3.x, y: t2.y - n3.y, width: t2.width, height: t2.height };
952
- }
953
- return xe(r2);
954
- }
955
- function Qe(e2, t2) {
956
- const n2 = Me(e2);
957
- return !(n2 === t2 || !Ae(n2) || De(n2)) && ("fixed" === Ne(n2).position || Qe(n2, t2));
958
- }
959
- function et(e2, t2, n2) {
960
- const r2 = Te(t2), o2 = Oe(t2), i2 = "fixed" === n2, l2 = Ke(e2, true, i2, t2);
961
- let a2 = { scrollLeft: 0, scrollTop: 0 };
962
- const c2 = ae(0);
963
- if (r2 || !r2 && !i2) if (("body" !== ke(t2) || Ce(o2)) && (a2 = We(t2)), r2) {
964
- const e3 = Ke(t2, true, i2, t2);
965
- c2.x = e3.x + t2.clientLeft, c2.y = e3.y + t2.clientTop;
966
- } else o2 && (c2.x = Xe(o2));
967
- const s2 = !o2 || r2 || i2 ? ae(0) : Ze(o2, a2);
968
- return { x: l2.left + a2.scrollLeft - c2.x - s2.x, y: l2.top + a2.scrollTop - c2.y - s2.y, width: l2.width, height: l2.height };
969
- }
970
- function tt(e2) {
971
- return "static" === Ne(e2).position;
972
- }
973
- function nt(e2, t2) {
974
- if (!Te(e2) || "fixed" === Ne(e2).position) return null;
975
- if (t2) return t2(e2);
976
- let n2 = e2.offsetParent;
977
- return Oe(e2) === n2 && (n2 = n2.ownerDocument.body), n2;
978
- }
979
- function rt(e2, t2) {
980
- const n2 = je(e2);
981
- if (ze(e2)) return n2;
982
- if (!Te(e2)) {
983
- let t3 = Me(e2);
984
- for (; t3 && !De(t3); ) {
985
- if (Ae(t3) && !tt(t3)) return t3;
986
- t3 = Me(t3);
987
- }
988
- return n2;
989
- }
990
- let r2 = nt(e2, t2);
991
- for (; r2 && Le(r2) && tt(r2); ) r2 = nt(r2, t2);
992
- return r2 && De(r2) && tt(r2) && !Pe(r2) ? n2 : r2 || function(e3) {
993
- let t3 = Me(e3);
994
- for (; Te(t3) && !De(t3); ) {
995
- if (Pe(t3)) return t3;
996
- if (ze(t3)) return null;
997
- t3 = Me(t3);
998
- }
999
- return null;
1000
- }(e2) || n2;
1001
- }
1002
- const ot = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e2) {
1003
- let { elements: t2, rect: n2, offsetParent: r2, strategy: o2 } = e2;
1004
- const i2 = "fixed" === o2, l2 = Oe(r2), a2 = !!t2 && ze(t2.floating);
1005
- if (r2 === l2 || a2 && i2) return n2;
1006
- let c2 = { scrollLeft: 0, scrollTop: 0 }, s2 = ae(1);
1007
- const u2 = ae(0), f2 = Te(r2);
1008
- if ((f2 || !f2 && !i2) && (("body" !== ke(r2) || Ce(l2)) && (c2 = We(r2)), Te(r2))) {
1009
- const e3 = Ke(r2);
1010
- s2 = Ue(r2), u2.x = e3.x + r2.clientLeft, u2.y = e3.y + r2.clientTop;
1011
- }
1012
- const d2 = !l2 || f2 || i2 ? ae(0) : Ze(l2, c2, true);
1013
- return { width: n2.width * s2.x, height: n2.height * s2.y, x: n2.x * s2.x - c2.scrollLeft * s2.x + u2.x + d2.x, y: n2.y * s2.y - c2.scrollTop * s2.y + u2.y + d2.y };
1014
- }, getDocumentElement: Oe, getClippingRect: function(e2) {
1015
- let { element: t2, boundary: n2, rootBoundary: r2, strategy: o2 } = e2;
1016
- const i2 = [..."clippingAncestors" === n2 ? ze(t2) ? [] : function(e3, t3) {
1017
- const n3 = t3.get(e3);
1018
- if (n3) return n3;
1019
- let r3 = Be(e3, [], false).filter((e4) => Ae(e4) && "body" !== ke(e4)), o3 = null;
1020
- const i3 = "fixed" === Ne(e3).position;
1021
- let l3 = i3 ? Me(e3) : e3;
1022
- for (; Ae(l3) && !De(l3); ) {
1023
- const t4 = Ne(l3), n4 = Pe(l3);
1024
- n4 || "fixed" !== t4.position || (o3 = null), (i3 ? !n4 && !o3 : !n4 && "static" === t4.position && o3 && ["absolute", "fixed"].includes(o3.position) || Ce(l3) && !n4 && Qe(e3, l3)) ? r3 = r3.filter((e4) => e4 !== l3) : o3 = t4, l3 = Me(l3);
1025
- }
1026
- return t3.set(e3, r3), r3;
1027
- }(t2, this._c) : [].concat(n2), r2], l2 = i2[0], a2 = i2.reduce((e3, n3) => {
1028
- const r3 = Je(t2, n3, o2);
1029
- return e3.top = oe(r3.top, e3.top), e3.right = re(r3.right, e3.right), e3.bottom = re(r3.bottom, e3.bottom), e3.left = oe(r3.left, e3.left), e3;
1030
- }, Je(t2, l2, o2));
1031
- return { width: a2.right - a2.left, height: a2.bottom - a2.top, x: a2.left, y: a2.top };
1032
- }, getOffsetParent: rt, getElementRects: async function(e2) {
1033
- const t2 = this.getOffsetParent || rt, n2 = this.getDimensions, r2 = await n2(e2.floating);
1034
- return { reference: et(e2.reference, await t2(e2.floating), e2.strategy), floating: { x: 0, y: 0, width: r2.width, height: r2.height } };
1035
- }, getClientRects: function(e2) {
1036
- return Array.from(e2.getClientRects());
1037
- }, getDimensions: function(e2) {
1038
- const { width: t2, height: n2 } = Ve(e2);
1039
- return { width: t2, height: n2 };
1040
- }, getScale: Ue, isElement: Ae, isRTL: function(e2) {
1041
- return "rtl" === Ne(e2).direction;
1042
- } };
1043
- function it(e2, t2) {
1044
- return e2.x === t2.x && e2.y === t2.y && e2.width === t2.width && e2.height === t2.height;
1045
- }
1046
- function lt(e2, t2, n2, r2) {
1047
- void 0 === r2 && (r2 = {});
1048
- const { ancestorScroll: o2 = true, ancestorResize: i2 = true, elementResize: l2 = "function" == typeof ResizeObserver, layoutShift: a2 = "function" == typeof IntersectionObserver, animationFrame: c2 = false } = r2, s2 = qe(e2), u2 = o2 || i2 ? [...s2 ? Be(s2) : [], ...Be(t2)] : [];
1049
- u2.forEach((e3) => {
1050
- o2 && e3.addEventListener("scroll", n2, { passive: true }), i2 && e3.addEventListener("resize", n2);
1051
- });
1052
- const f2 = s2 && a2 ? function(e3, t3) {
1053
- let n3, r3 = null;
1054
- const o3 = Oe(e3);
1055
- function i3() {
1056
- var e4;
1057
- clearTimeout(n3), null == (e4 = r3) || e4.disconnect(), r3 = null;
1058
- }
1059
- return function l3(a3, c3) {
1060
- void 0 === a3 && (a3 = false), void 0 === c3 && (c3 = 1), i3();
1061
- const s3 = e3.getBoundingClientRect(), { left: u3, top: f3, width: d3, height: p3 } = s3;
1062
- if (a3 || t3(), !d3 || !p3) return;
1063
- const y3 = { rootMargin: -le(f3) + "px " + -le(o3.clientWidth - (u3 + d3)) + "px " + -le(o3.clientHeight - (f3 + p3)) + "px " + -le(u3) + "px", threshold: oe(0, re(1, c3)) || 1 };
1064
- let m3 = true;
1065
- function g2(t4) {
1066
- const r4 = t4[0].intersectionRatio;
1067
- if (r4 !== c3) {
1068
- if (!m3) return l3();
1069
- r4 ? l3(false, r4) : n3 = setTimeout(() => {
1070
- l3(false, 1e-7);
1071
- }, 1e3);
1072
- }
1073
- 1 !== r4 || it(s3, e3.getBoundingClientRect()) || l3(), m3 = false;
1074
- }
1075
- try {
1076
- r3 = new IntersectionObserver(g2, { ...y3, root: o3.ownerDocument });
1077
- } catch (e4) {
1078
- r3 = new IntersectionObserver(g2, y3);
1079
- }
1080
- r3.observe(e3);
1081
- }(true), i3;
1082
- }(s2, n2) : null;
1083
- let d2, p2 = -1, y2 = null;
1084
- l2 && (y2 = new ResizeObserver((e3) => {
1085
- let [r3] = e3;
1086
- r3 && r3.target === s2 && y2 && (y2.unobserve(t2), cancelAnimationFrame(p2), p2 = requestAnimationFrame(() => {
1087
- var e4;
1088
- null == (e4 = y2) || e4.observe(t2);
1089
- })), n2();
1090
- }), s2 && !c2 && y2.observe(s2), y2.observe(t2));
1091
- let m2 = c2 ? Ke(e2) : null;
1092
- return c2 && function t3() {
1093
- const r3 = Ke(e2);
1094
- m2 && !it(m2, r3) && n2();
1095
- m2 = r3, d2 = requestAnimationFrame(t3);
1096
- }(), n2(), () => {
1097
- var e3;
1098
- u2.forEach((e4) => {
1099
- o2 && e4.removeEventListener("scroll", n2), i2 && e4.removeEventListener("resize", n2);
1100
- }), null == f2 || f2(), null == (e3 = y2) || e3.disconnect(), y2 = null, c2 && cancelAnimationFrame(d2);
1101
- };
1102
- }
1103
- const at = function(e2) {
1104
- return void 0 === e2 && (e2 = 0), { name: "offset", options: e2, async fn(t2) {
1105
- var n2, r2;
1106
- const { x: o2, y: i2, placement: l2, middlewareData: a2 } = t2, c2 = await async function(e3, t3) {
1107
- const { placement: n3, platform: r3, elements: o3 } = e3, i3 = await (null == r3.isRTL ? void 0 : r3.isRTL(o3.floating)), l3 = de(n3), a3 = pe(n3), c3 = "y" === ge(n3), s2 = ["left", "top"].includes(l3) ? -1 : 1, u2 = i3 && c3 ? -1 : 1, f2 = fe(t3, e3);
1108
- let { mainAxis: d2, crossAxis: p2, alignmentAxis: y2 } = "number" == typeof f2 ? { mainAxis: f2, crossAxis: 0, alignmentAxis: null } : { mainAxis: f2.mainAxis || 0, crossAxis: f2.crossAxis || 0, alignmentAxis: f2.alignmentAxis };
1109
- return a3 && "number" == typeof y2 && (p2 = "end" === a3 ? -1 * y2 : y2), c3 ? { x: p2 * u2, y: d2 * s2 } : { x: d2 * s2, y: p2 * u2 };
1110
- }(t2, e2);
1111
- return l2 === (null == (n2 = a2.offset) ? void 0 : n2.placement) && null != (r2 = a2.arrow) && r2.alignmentOffset ? {} : { x: o2 + c2.x, y: i2 + c2.y, data: { ...c2, placement: l2 } };
1112
- } };
1113
- }, ct = function(e2) {
1114
- return void 0 === e2 && (e2 = {}), { name: "shift", options: e2, async fn(t2) {
1115
- const { x: n2, y: r2, placement: o2 } = t2, { mainAxis: i2 = true, crossAxis: l2 = false, limiter: a2 = { fn: (e3) => {
1116
- let { x: t3, y: n3 } = e3;
1117
- return { x: t3, y: n3 };
1118
- } }, ...c2 } = fe(e2, t2), s2 = { x: n2, y: r2 }, u2 = await Se(t2, c2), f2 = ge(de(o2)), d2 = ye(f2);
1119
- let p2 = s2[d2], y2 = s2[f2];
1120
- if (i2) {
1121
- const e3 = "y" === d2 ? "bottom" : "right";
1122
- p2 = ue(p2 + u2["y" === d2 ? "top" : "left"], p2, p2 - u2[e3]);
1123
- }
1124
- if (l2) {
1125
- const e3 = "y" === f2 ? "bottom" : "right";
1126
- y2 = ue(y2 + u2["y" === f2 ? "top" : "left"], y2, y2 - u2[e3]);
1127
- }
1128
- const m2 = a2.fn({ ...t2, [d2]: p2, [f2]: y2 });
1129
- return { ...m2, data: { x: m2.x - n2, y: m2.y - r2, enabled: { [d2]: i2, [f2]: l2 } } };
1130
- } };
1131
- }, st = function(e2) {
1132
- return void 0 === e2 && (e2 = {}), { name: "flip", options: e2, async fn(t2) {
1133
- var n2, r2;
1134
- const { placement: o2, middlewareData: i2, rects: l2, initialPlacement: a2, platform: c2, elements: s2 } = t2, { mainAxis: u2 = true, crossAxis: f2 = true, fallbackPlacements: d2, fallbackStrategy: p2 = "bestFit", fallbackAxisSideDirection: y2 = "none", flipAlignment: m2 = true, ...g2 } = fe(e2, t2);
1135
- if (null != (n2 = i2.arrow) && n2.alignmentOffset) return {};
1136
- const h2 = de(o2), v2 = ge(a2), b2 = de(a2) === a2, w2 = await (null == c2.isRTL ? void 0 : c2.isRTL(s2.floating)), x2 = d2 || (b2 || !m2 ? [be(a2)] : function(e3) {
1137
- const t3 = be(e3);
1138
- return [ve(e3), t3, ve(t3)];
1139
- }(a2)), $2 = "none" !== y2;
1140
- !d2 && $2 && x2.push(...function(e3, t3, n3, r3) {
1141
- const o3 = pe(e3);
1142
- let i3 = function(e4, t4, n4) {
1143
- const r4 = ["left", "right"], o4 = ["right", "left"], i4 = ["top", "bottom"], l3 = ["bottom", "top"];
1144
- switch (e4) {
1145
- case "top":
1146
- case "bottom":
1147
- return n4 ? t4 ? o4 : r4 : t4 ? r4 : o4;
1148
- case "left":
1149
- case "right":
1150
- return t4 ? i4 : l3;
1151
- default:
1152
- return [];
1153
- }
1154
- }(de(e3), "start" === n3, r3);
1155
- return o3 && (i3 = i3.map((e4) => e4 + "-" + o3), t3 && (i3 = i3.concat(i3.map(ve)))), i3;
1156
- }(a2, m2, y2, w2));
1157
- const S2 = [a2, ...x2], _2 = await Se(t2, g2), k2 = [];
1158
- let j2 = (null == (r2 = i2.flip) ? void 0 : r2.overflows) || [];
1159
- if (u2 && k2.push(_2[h2]), f2) {
1160
- const e3 = function(e4, t3, n3) {
1161
- void 0 === n3 && (n3 = false);
1162
- const r3 = pe(e4), o3 = he(e4), i3 = me(o3);
1163
- let l3 = "x" === o3 ? r3 === (n3 ? "end" : "start") ? "right" : "left" : "start" === r3 ? "bottom" : "top";
1164
- return t3.reference[i3] > t3.floating[i3] && (l3 = be(l3)), [l3, be(l3)];
1165
- }(o2, l2, w2);
1166
- k2.push(_2[e3[0]], _2[e3[1]]);
1167
- }
1168
- if (j2 = [...j2, { placement: o2, overflows: k2 }], !k2.every((e3) => e3 <= 0)) {
1169
- var O2, E2;
1170
- const e3 = ((null == (O2 = i2.flip) ? void 0 : O2.index) || 0) + 1, t3 = S2[e3];
1171
- if (t3) return { data: { index: e3, overflows: j2 }, reset: { placement: t3 } };
1172
- let n3 = null == (E2 = j2.filter((e4) => e4.overflows[0] <= 0).sort((e4, t4) => e4.overflows[1] - t4.overflows[1])[0]) ? void 0 : E2.placement;
1173
- if (!n3) switch (p2) {
1174
- case "bestFit": {
1175
- var A2;
1176
- const e4 = null == (A2 = j2.filter((e5) => {
1177
- if ($2) {
1178
- const t4 = ge(e5.placement);
1179
- return t4 === v2 || "y" === t4;
1180
- }
1181
- return true;
1182
- }).map((e5) => [e5.placement, e5.overflows.filter((e6) => e6 > 0).reduce((e6, t4) => e6 + t4, 0)]).sort((e5, t4) => e5[1] - t4[1])[0]) ? void 0 : A2[0];
1183
- e4 && (n3 = e4);
1184
- break;
1185
- }
1186
- case "initialPlacement":
1187
- n3 = a2;
1188
- }
1189
- if (o2 !== n3) return { reset: { placement: n3 } };
1190
- }
1191
- return {};
1192
- } };
1193
- }, ut = (e2) => ({ name: "arrow", options: e2, async fn(t2) {
1194
- const { x: n2, y: r2, placement: o2, rects: i2, platform: l2, elements: a2, middlewareData: c2 } = t2, { element: s2, padding: u2 = 0 } = fe(e2, t2) || {};
1195
- if (null == s2) return {};
1196
- const f2 = we(u2), d2 = { x: n2, y: r2 }, p2 = he(o2), y2 = me(p2), m2 = await l2.getDimensions(s2), g2 = "y" === p2, h2 = g2 ? "top" : "left", v2 = g2 ? "bottom" : "right", b2 = g2 ? "clientHeight" : "clientWidth", w2 = i2.reference[y2] + i2.reference[p2] - d2[p2] - i2.floating[y2], x2 = d2[p2] - i2.reference[p2], $2 = await (null == l2.getOffsetParent ? void 0 : l2.getOffsetParent(s2));
1197
- let S2 = $2 ? $2[b2] : 0;
1198
- S2 && await (null == l2.isElement ? void 0 : l2.isElement($2)) || (S2 = a2.floating[b2] || i2.floating[y2]);
1199
- const _2 = w2 / 2 - x2 / 2, k2 = S2 / 2 - m2[y2] / 2 - 1, j2 = re(f2[h2], k2), O2 = re(f2[v2], k2), E2 = j2, A2 = S2 - m2[y2] - O2, T2 = S2 / 2 - m2[y2] / 2 + _2, R2 = ue(E2, T2, A2), C2 = !c2.arrow && null != pe(o2) && T2 !== R2 && i2.reference[y2] / 2 - (T2 < E2 ? j2 : O2) - m2[y2] / 2 < 0, L2 = C2 ? T2 < E2 ? T2 - E2 : T2 - A2 : 0;
1200
- return { [p2]: d2[p2] + L2, data: { [p2]: R2, centerOffset: T2 - R2 - L2, ...C2 && { alignmentOffset: L2 } }, reset: C2 };
1201
- } }), ft = (e2, t2, n2) => {
1202
- const r2 = /* @__PURE__ */ new Map(), o2 = { platform: ot, ...n2 }, i2 = { ...o2.platform, _c: r2 };
1203
- return (async (e3, t3, n3) => {
1204
- const { placement: r3 = "bottom", strategy: o3 = "absolute", middleware: i3 = [], platform: l2 } = n3, a2 = i3.filter(Boolean), c2 = await (null == l2.isRTL ? void 0 : l2.isRTL(t3));
1205
- let s2 = await l2.getElementRects({ reference: e3, floating: t3, strategy: o3 }), { x: u2, y: f2 } = $e(s2, r3, c2), d2 = r3, p2 = {}, y2 = 0;
1206
- for (let n4 = 0; n4 < a2.length; n4++) {
1207
- const { name: i4, fn: m2 } = a2[n4], { x: g2, y: h2, data: v2, reset: b2 } = await m2({ x: u2, y: f2, initialPlacement: r3, placement: d2, strategy: o3, middlewareData: p2, rects: s2, platform: l2, elements: { reference: e3, floating: t3 } });
1208
- u2 = null != g2 ? g2 : u2, f2 = null != h2 ? h2 : f2, p2 = { ...p2, [i4]: { ...p2[i4], ...v2 } }, b2 && y2 <= 50 && (y2++, "object" == typeof b2 && (b2.placement && (d2 = b2.placement), b2.rects && (s2 = true === b2.rects ? await l2.getElementRects({ reference: e3, floating: t3, strategy: o3 }) : b2.rects), { x: u2, y: f2 } = $e(s2, d2, c2)), n4 = -1);
1209
- }
1210
- return { x: u2, y: f2, placement: d2, strategy: o3, middlewareData: p2 };
1211
- })(e2, t2, { ...o2, platform: i2 });
1212
- };
1213
- var dt = "undefined" != typeof document ? r : o;
1214
- function pt(e2, t2) {
1215
- if (e2 === t2) return true;
1216
- if (typeof e2 != typeof t2) return false;
1217
- if ("function" == typeof e2 && e2.toString() === t2.toString()) return true;
1218
- let n2, r2, o2;
1219
- if (e2 && t2 && "object" == typeof e2) {
1220
- if (Array.isArray(e2)) {
1221
- if (n2 = e2.length, n2 !== t2.length) return false;
1222
- for (r2 = n2; 0 != r2--; ) if (!pt(e2[r2], t2[r2])) return false;
1223
- return true;
1224
- }
1225
- if (o2 = Object.keys(e2), n2 = o2.length, n2 !== Object.keys(t2).length) return false;
1226
- for (r2 = n2; 0 != r2--; ) if (!{}.hasOwnProperty.call(t2, o2[r2])) return false;
1227
- for (r2 = n2; 0 != r2--; ) {
1228
- const n3 = o2[r2];
1229
- if (("_owner" !== n3 || !e2.$$typeof) && !pt(e2[n3], t2[n3])) return false;
1230
- }
1231
- return true;
1232
- }
1233
- return e2 != e2 && t2 != t2;
1234
- }
1235
- function yt(e2) {
1236
- if ("undefined" == typeof window) return 1;
1237
- return (e2.ownerDocument.defaultView || window).devicePixelRatio || 1;
1238
- }
1239
- function mt(e2, t2) {
1240
- const n2 = yt(e2);
1241
- return Math.round(t2 * n2) / n2;
1242
- }
1243
- function gt(t2) {
1244
- const n2 = e.useRef(t2);
1245
- return dt(() => {
1246
- n2.current = t2;
1247
- }), n2;
1248
- }
1249
- function ht(t2) {
1250
- void 0 === t2 && (t2 = {});
1251
- const { placement: n2 = "bottom", strategy: r2 = "absolute", middleware: o2 = [], platform: i2, elements: { reference: l2, floating: a2 } = {}, transform: c2 = true, whileElementsMounted: s2, open: u2 } = t2, [f2, d2] = e.useState({ x: 0, y: 0, strategy: r2, placement: n2, middlewareData: {}, isPositioned: false }), [p2, y2] = e.useState(o2);
1252
- pt(p2, o2) || y2(o2);
1253
- const [g2, h2] = e.useState(null), [v2, b2] = e.useState(null), w2 = e.useCallback((e2) => {
1254
- e2 !== _2.current && (_2.current = e2, h2(e2));
1255
- }, []), x2 = e.useCallback((e2) => {
1256
- e2 !== k2.current && (k2.current = e2, b2(e2));
1257
- }, []), $2 = l2 || g2, S2 = a2 || v2, _2 = e.useRef(null), k2 = e.useRef(null), j2 = e.useRef(f2), O2 = null != s2, E2 = gt(s2), A2 = gt(i2), T2 = gt(u2), R2 = e.useCallback(() => {
1258
- if (!_2.current || !k2.current) return;
1259
- const e2 = { placement: n2, strategy: r2, middleware: p2 };
1260
- A2.current && (e2.platform = A2.current), ft(_2.current, k2.current, e2).then((e3) => {
1261
- const t3 = { ...e3, isPositioned: false !== T2.current };
1262
- C2.current && !pt(j2.current, t3) && (j2.current = t3, m.flushSync(() => {
1263
- d2(t3);
1264
- }));
1265
- });
1266
- }, [p2, n2, r2, A2, T2]);
1267
- dt(() => {
1268
- false === u2 && j2.current.isPositioned && (j2.current.isPositioned = false, d2((e2) => ({ ...e2, isPositioned: false })));
1269
- }, [u2]);
1270
- const C2 = e.useRef(false);
1271
- dt(() => (C2.current = true, () => {
1272
- C2.current = false;
1273
- }), []), dt(() => {
1274
- if ($2 && (_2.current = $2), S2 && (k2.current = S2), $2 && S2) {
1275
- if (E2.current) return E2.current($2, S2, R2);
1276
- R2();
1277
- }
1278
- }, [$2, S2, R2, E2, O2]);
1279
- const L2 = e.useMemo(() => ({ reference: _2, floating: k2, setReference: w2, setFloating: x2 }), [w2, x2]), z2 = e.useMemo(() => ({ reference: $2, floating: S2 }), [$2, S2]), P2 = e.useMemo(() => {
1280
- const e2 = { position: r2, left: 0, top: 0 };
1281
- if (!z2.floating) return e2;
1282
- const t3 = mt(z2.floating, f2.x), n3 = mt(z2.floating, f2.y);
1283
- return c2 ? { ...e2, transform: "translate(" + t3 + "px, " + n3 + "px)", ...yt(z2.floating) >= 1.5 && { willChange: "transform" } } : { position: r2, left: t3, top: n3 };
1284
- }, [r2, c2, z2.floating, f2.x, f2.y]);
1285
- return e.useMemo(() => ({ ...f2, update: R2, refs: L2, elements: z2, floatingStyles: P2 }), [f2, R2, L2, z2, P2]);
1286
- }
1287
- const vt = (e2, t2) => ({ ...at(e2), options: [e2, t2] });
1288
- var bt, wt, xt, $t, St, _t, kt, jt, Ot, Et, At, Tt, Rt, Ct, Lt, zt, Pt, Ft, Dt, Nt, Wt, Mt, It, Bt, Ht, Vt, qt, Ut, Gt, Yt, Kt, Xt, Zt, Jt, Qt, en, tn, nn, rn, on, ln, an, cn, sn, un, fn, dn, pn, yn, mn, gn, hn, vn, bn, wn, xn, $n, Sn, _n, kn;
1289
- function jn() {
1290
- if (wt) return bt;
1291
- wt = 1;
1292
- var e2 = Object.prototype;
1293
- return bt = function(t2) {
1294
- var n2 = t2 && t2.constructor;
1295
- return t2 === ("function" == typeof n2 && n2.prototype || e2);
1296
- };
1297
- }
1298
- function On() {
1299
- if (_t) return St;
1300
- _t = 1;
1301
- var e2 = ($t ? xt : ($t = 1, xt = function(e3, t2) {
1302
- return function(n2) {
1303
- return e3(t2(n2));
1304
- };
1305
- }))(Object.keys, Object);
1306
- return St = e2;
1307
- }
1308
- function En() {
1309
- if (Et) return Ot;
1310
- Et = 1;
1311
- var e2 = "object" == typeof b && b && b.Object === Object && b;
1312
- return Ot = e2;
1313
- }
1314
- function An() {
1315
- if (Tt) return At;
1316
- Tt = 1;
1317
- var e2 = En(), t2 = "object" == typeof self && self && self.Object === Object && self, n2 = e2 || t2 || Function("return this")();
1318
- return At = n2;
1319
- }
1320
- function Tn() {
1321
- if (Ct) return Rt;
1322
- Ct = 1;
1323
- var e2 = An().Symbol;
1324
- return Rt = e2;
1325
- }
1326
- function Rn() {
1327
- if (Nt) return Dt;
1328
- Nt = 1;
1329
- var e2 = Tn(), t2 = function() {
1330
- if (zt) return Lt;
1331
- zt = 1;
1332
- var e3 = Tn(), t3 = Object.prototype, n3 = t3.hasOwnProperty, r3 = t3.toString, o2 = e3 ? e3.toStringTag : void 0;
1333
- return Lt = function(e4) {
1334
- var t4 = n3.call(e4, o2), i2 = e4[o2];
1335
- try {
1336
- e4[o2] = void 0;
1337
- var l2 = true;
1338
- } catch (e5) {
1339
- }
1340
- var a2 = r3.call(e4);
1341
- return l2 && (t4 ? e4[o2] = i2 : delete e4[o2]), a2;
1342
- };
1343
- }(), n2 = function() {
1344
- if (Ft) return Pt;
1345
- Ft = 1;
1346
- var e3 = Object.prototype.toString;
1347
- return Pt = function(t3) {
1348
- return e3.call(t3);
1349
- };
1350
- }(), r2 = e2 ? e2.toStringTag : void 0;
1351
- return Dt = function(e3) {
1352
- return null == e3 ? void 0 === e3 ? "[object Undefined]" : "[object Null]" : r2 && r2 in Object(e3) ? t2(e3) : n2(e3);
1353
- };
1354
- }
1355
- function Cn() {
1356
- if (Mt) return Wt;
1357
- return Mt = 1, Wt = function(e2) {
1358
- var t2 = typeof e2;
1359
- return null != e2 && ("object" == t2 || "function" == t2);
1360
- };
1361
- }
1362
- function Ln() {
1363
- if (Bt) return It;
1364
- Bt = 1;
1365
- var e2 = Rn(), t2 = Cn();
1366
- return It = function(n2) {
1367
- if (!t2(n2)) return false;
1368
- var r2 = e2(n2);
1369
- return "[object Function]" == r2 || "[object GeneratorFunction]" == r2 || "[object AsyncFunction]" == r2 || "[object Proxy]" == r2;
1370
- };
1371
- }
1372
- function zn() {
1373
- if (Ut) return qt;
1374
- Ut = 1;
1375
- var e2, t2 = function() {
1376
- if (Vt) return Ht;
1377
- Vt = 1;
1378
- var e3 = An()["__core-js_shared__"];
1379
- return Ht = e3;
1380
- }(), n2 = (e2 = /[^.]+$/.exec(t2 && t2.keys && t2.keys.IE_PROTO || "")) ? "Symbol(src)_1." + e2 : "";
1381
- return qt = function(e3) {
1382
- return !!n2 && n2 in e3;
1383
- };
1384
- }
1385
- function Pn() {
1386
- if (Yt) return Gt;
1387
- Yt = 1;
1388
- var e2 = Function.prototype.toString;
1389
- return Gt = function(t2) {
1390
- if (null != t2) {
1391
- try {
1392
- return e2.call(t2);
1393
- } catch (e3) {
1394
- }
1395
- try {
1396
- return t2 + "";
1397
- } catch (e3) {
1398
- }
1399
- }
1400
- return "";
1401
- };
1402
- }
1403
- function Fn() {
1404
- if (en) return Qt;
1405
- en = 1;
1406
- var e2 = function() {
1407
- if (Xt) return Kt;
1408
- Xt = 1;
1409
- var e3 = Ln(), t3 = zn(), n2 = Cn(), r2 = Pn(), o2 = /^\[object .+?Constructor\]$/, i2 = Function.prototype, l2 = Object.prototype, a2 = i2.toString, c2 = l2.hasOwnProperty, s2 = RegExp("^" + a2.call(c2).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1410
- return Kt = function(i3) {
1411
- return !(!n2(i3) || t3(i3)) && (e3(i3) ? s2 : o2).test(r2(i3));
1412
- };
1413
- }(), t2 = Jt ? Zt : (Jt = 1, Zt = function(e3, t3) {
1414
- return null == e3 ? void 0 : e3[t3];
1415
- });
1416
- return Qt = function(n2, r2) {
1417
- var o2 = t2(n2, r2);
1418
- return e2(o2) ? o2 : void 0;
1419
- };
1420
- }
1421
- function Dn() {
1422
- if (pn) return dn;
1423
- pn = 1;
1424
- var e2 = function() {
1425
- if (nn) return tn;
1426
- nn = 1;
1427
- var e3 = Fn()(An(), "DataView");
1428
- return tn = e3;
1429
- }(), t2 = function() {
1430
- if (on) return rn;
1431
- on = 1;
1432
- var e3 = Fn()(An(), "Map");
1433
- return rn = e3;
1434
- }(), n2 = function() {
1435
- if (an) return ln;
1436
- an = 1;
1437
- var e3 = Fn()(An(), "Promise");
1438
- return ln = e3;
1439
- }(), r2 = function() {
1440
- if (sn) return cn;
1441
- sn = 1;
1442
- var e3 = Fn()(An(), "Set");
1443
- return cn = e3;
1444
- }(), o2 = function() {
1445
- if (fn) return un;
1446
- fn = 1;
1447
- var e3 = Fn()(An(), "WeakMap");
1448
- return un = e3;
1449
- }(), i2 = Rn(), l2 = Pn(), a2 = "[object Map]", c2 = "[object Promise]", s2 = "[object Set]", u2 = "[object WeakMap]", f2 = "[object DataView]", d2 = l2(e2), p2 = l2(t2), y2 = l2(n2), m2 = l2(r2), g2 = l2(o2), h2 = i2;
1450
- return (e2 && h2(new e2(new ArrayBuffer(1))) != f2 || t2 && h2(new t2()) != a2 || n2 && h2(n2.resolve()) != c2 || r2 && h2(new r2()) != s2 || o2 && h2(new o2()) != u2) && (h2 = function(e3) {
1451
- var t3 = i2(e3), n3 = "[object Object]" == t3 ? e3.constructor : void 0, r3 = n3 ? l2(n3) : "";
1452
- if (r3) switch (r3) {
1453
- case d2:
1454
- return f2;
1455
- case p2:
1456
- return a2;
1457
- case y2:
1458
- return c2;
1459
- case m2:
1460
- return s2;
1461
- case g2:
1462
- return u2;
1463
- }
1464
- return t3;
1465
- }), dn = h2;
1466
- }
1467
- function Nn() {
1468
- if (mn) return yn;
1469
- return mn = 1, yn = function(e2) {
1470
- return null != e2 && "object" == typeof e2;
1471
- };
1472
- }
1473
- function Wn() {
1474
- if (bn) return vn;
1475
- bn = 1;
1476
- var e2 = function() {
1477
- if (hn) return gn;
1478
- hn = 1;
1479
- var e3 = Rn(), t3 = Nn();
1480
- return gn = function(n3) {
1481
- return t3(n3) && "[object Arguments]" == e3(n3);
1482
- };
1483
- }(), t2 = Nn(), n2 = Object.prototype, r2 = n2.hasOwnProperty, o2 = n2.propertyIsEnumerable, i2 = e2(/* @__PURE__ */ function() {
1484
- return arguments;
1485
- }()) ? e2 : function(e3) {
1486
- return t2(e3) && r2.call(e3, "callee") && !o2.call(e3, "callee");
1487
- };
1488
- return vn = i2;
1489
- }
1490
- function Mn() {
1491
- if (xn) return wn;
1492
- xn = 1;
1493
- var e2 = Array.isArray;
1494
- return wn = e2;
1495
- }
1496
- function In() {
1497
- if (Sn) return $n;
1498
- Sn = 1;
1499
- return $n = function(e2) {
1500
- return "number" == typeof e2 && e2 > -1 && e2 % 1 == 0 && e2 <= 9007199254740991;
1501
- };
1502
- }
1503
- var Bn, Hn, Vn, qn, Un, Gn, Yn, Kn = { exports: {} };
1504
- function Xn() {
1505
- return Vn || (Vn = 1, function(e2, t2) {
1506
- var n2 = An(), r2 = Hn ? Bn : (Hn = 1, Bn = function() {
1507
- return false;
1508
- }), o2 = t2 && !t2.nodeType && t2, i2 = o2 && e2 && !e2.nodeType && e2, l2 = i2 && i2.exports === o2 ? n2.Buffer : void 0, a2 = (l2 ? l2.isBuffer : void 0) || r2;
1509
- e2.exports = a2;
1510
- }(Kn, Kn.exports)), Kn.exports;
1511
- }
1512
- var Zn, Jn, Qn, er, tr, nr = { exports: {} };
1513
- function rr() {
1514
- if (Qn) return Jn;
1515
- Qn = 1;
1516
- var e2 = function() {
1517
- if (Un) return qn;
1518
- Un = 1;
1519
- var e3 = Rn(), t3 = In(), n3 = Nn(), r3 = {};
1520
- return r3["[object Float32Array]"] = r3["[object Float64Array]"] = r3["[object Int8Array]"] = r3["[object Int16Array]"] = r3["[object Int32Array]"] = r3["[object Uint8Array]"] = r3["[object Uint8ClampedArray]"] = r3["[object Uint16Array]"] = r3["[object Uint32Array]"] = true, r3["[object Arguments]"] = r3["[object Array]"] = r3["[object ArrayBuffer]"] = r3["[object Boolean]"] = r3["[object DataView]"] = r3["[object Date]"] = r3["[object Error]"] = r3["[object Function]"] = r3["[object Map]"] = r3["[object Number]"] = r3["[object Object]"] = r3["[object RegExp]"] = r3["[object Set]"] = r3["[object String]"] = r3["[object WeakMap]"] = false, qn = function(o3) {
1521
- return n3(o3) && t3(o3.length) && !!r3[e3(o3)];
1522
- };
1523
- }(), t2 = Yn ? Gn : (Yn = 1, Gn = function(e3) {
1524
- return function(t3) {
1525
- return e3(t3);
1526
- };
1527
- }), n2 = function() {
1528
- return Zn || (Zn = 1, e3 = nr, t3 = nr.exports, n3 = En(), r3 = t3 && !t3.nodeType && t3, o3 = r3 && e3 && !e3.nodeType && e3, i2 = o3 && o3.exports === r3 && n3.process, l2 = function() {
1529
- try {
1530
- return o3 && o3.require && o3.require("util").types || i2 && i2.binding && i2.binding("util");
1531
- } catch (e4) {
1532
- }
1533
- }(), e3.exports = l2), nr.exports;
1534
- var e3, t3, n3, r3, o3, i2, l2;
1535
- }(), r2 = n2 && n2.isTypedArray, o2 = r2 ? t2(r2) : e2;
1536
- return Jn = o2;
1537
- }
1538
- var or = function() {
1539
- if (tr) return er;
1540
- tr = 1;
1541
- var e2 = function() {
1542
- if (jt) return kt;
1543
- jt = 1;
1544
- var e3 = jn(), t3 = On(), n3 = Object.prototype.hasOwnProperty;
1545
- return kt = function(r3) {
1546
- if (!e3(r3)) return t3(r3);
1547
- var o3 = [];
1548
- for (var i3 in Object(r3)) n3.call(r3, i3) && "constructor" != i3 && o3.push(i3);
1549
- return o3;
1550
- };
1551
- }(), t2 = Dn(), n2 = Wn(), r2 = Mn(), o2 = function() {
1552
- if (kn) return _n;
1553
- kn = 1;
1554
- var e3 = Ln(), t3 = In();
1555
- return _n = function(n3) {
1556
- return null != n3 && t3(n3.length) && !e3(n3);
1557
- };
1558
- }(), i2 = Xn(), l2 = jn(), a2 = rr(), c2 = Object.prototype.hasOwnProperty;
1559
- return er = function(s2) {
1560
- if (null == s2) return true;
1561
- if (o2(s2) && (r2(s2) || "string" == typeof s2 || "function" == typeof s2.splice || i2(s2) || a2(s2) || n2(s2))) return !s2.length;
1562
- var u2 = t2(s2);
1563
- if ("[object Map]" == u2 || "[object Set]" == u2) return !s2.size;
1564
- if (l2(s2)) return !e2(s2).length;
1565
- for (var f2 in s2) if (c2.call(s2, f2)) return false;
1566
- return true;
1567
- };
1568
- }();
1569
- const ir = w(or);
1570
- var lr, ar, cr = { exports: {} };
1571
- /*!
1572
- Copyright (c) 2018 Jed Watson.
1573
- Licensed under the MIT License (MIT), see
1574
- http://jedwatson.github.io/classnames
1575
- */
1576
- const sr = w((lr || (lr = 1, ar = cr, function() {
1577
- var e2 = {}.hasOwnProperty;
1578
- function t2() {
1579
- for (var e3 = "", t3 = 0; t3 < arguments.length; t3++) {
1580
- var o2 = arguments[t3];
1581
- o2 && (e3 = r2(e3, n2(o2)));
1582
- }
1583
- return e3;
1584
- }
1585
- function n2(n3) {
1586
- if ("string" == typeof n3 || "number" == typeof n3) return n3;
1587
- if ("object" != typeof n3) return "";
1588
- if (Array.isArray(n3)) return t2.apply(null, n3);
1589
- if (n3.toString !== Object.prototype.toString && !n3.toString.toString().includes("[native code]")) return n3.toString();
1590
- var o2 = "";
1591
- for (var i2 in n3) e2.call(n3, i2) && n3[i2] && (o2 = r2(o2, i2));
1592
- return o2;
1593
- }
1594
- function r2(e3, t3) {
1595
- return t3 ? e3 ? e3 + " " + t3 : e3 + t3 : e3;
1596
- }
1597
- ar.exports ? (t2.default = t2, ar.exports = t2) : window.classNames = t2;
1598
- }()), cr.exports)), ur = { core: false, base: false };
1599
- /*
1600
- * React Tooltip
1601
- * {@link https://github.com/ReactTooltip/react-tooltip}
1602
- * @copyright ReactTooltip Team
1603
- * @license MIT
1604
- */
1605
- function fr({ css: e2, id: t2 = "react-tooltip-base-styles", type: n2 = "base", ref: r2 }) {
1606
- var o2, i2;
1607
- if (!e2 || "undefined" == typeof document || ur[n2]) return;
1608
- if ("core" === n2 && "undefined" != typeof process && (null === (o2 = null === process || void 0 === process ? void 0 : process.env) || void 0 === o2 ? void 0 : o2.REACT_TOOLTIP_DISABLE_CORE_STYLES)) return;
1609
- if ("base" !== n2 && "undefined" != typeof process && (null === (i2 = null === process || void 0 === process ? void 0 : process.env) || void 0 === i2 ? void 0 : i2.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
1610
- "core" === n2 && (t2 = "react-tooltip-core-styles"), r2 || (r2 = {});
1611
- const { insertAt: l2 } = r2;
1612
- if (document.getElementById(t2)) return;
1613
- const a2 = document.head || document.getElementsByTagName("head")[0], c2 = document.createElement("style");
1614
- c2.id = t2, c2.type = "text/css", "top" === l2 && a2.firstChild ? a2.insertBefore(c2, a2.firstChild) : a2.appendChild(c2), c2.styleSheet ? c2.styleSheet.cssText = e2 : c2.appendChild(document.createTextNode(e2)), ur[n2] = true;
1615
- }
1616
- const dr = async ({ elementReference: e2 = null, tooltipReference: t2 = null, tooltipArrowReference: n2 = null, place: r2 = "top", offset: o2 = 10, strategy: i2 = "absolute", middlewares: l2 = [at(Number(o2)), st({ fallbackAxisSideDirection: "start" }), ct({ padding: 5 })], border: a2 }) => {
1617
- if (!e2) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r2 };
1618
- if (null === t2) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r2 };
1619
- const c2 = l2;
1620
- return n2 ? (c2.push(ut({ element: n2, padding: 5 })), ft(e2, t2, { placement: r2, strategy: i2, middleware: c2 }).then(({ x: e3, y: t3, placement: n3, middlewareData: r3 }) => {
1621
- var o3, i3;
1622
- const l3 = { left: `${e3}px`, top: `${t3}px`, border: a2 }, { x: c3, y: s2 } = null !== (o3 = r3.arrow) && void 0 !== o3 ? o3 : { x: 0, y: 0 }, u2 = null !== (i3 = { top: "bottom", right: "left", bottom: "top", left: "right" }[n3.split("-")[0]]) && void 0 !== i3 ? i3 : "bottom", f2 = a2 && { borderBottom: a2, borderRight: a2 };
1623
- let d2 = 0;
1624
- if (a2) {
1625
- const e4 = `${a2}`.match(/(\d+)px/);
1626
- d2 = (null == e4 ? void 0 : e4[1]) ? Number(e4[1]) : 1;
1627
- }
1628
- return { tooltipStyles: l3, tooltipArrowStyles: { left: null != c3 ? `${c3}px` : "", top: null != s2 ? `${s2}px` : "", right: "", bottom: "", ...f2, [u2]: `-${4 + d2}px` }, place: n3 };
1629
- })) : ft(e2, t2, { placement: "bottom", strategy: i2, middleware: c2 }).then(({ x: e3, y: t3, placement: n3 }) => ({ tooltipStyles: { left: `${e3}px`, top: `${t3}px` }, tooltipArrowStyles: {}, place: n3 }));
1630
- }, pr = (e2, t2) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e2, t2), yr = (e2, t2, n2) => {
1631
- let r2 = null;
1632
- const o2 = function(...n3) {
1633
- !r2 && (e2.apply(this, n3), r2 = setTimeout(() => {
1634
- r2 = null;
1635
- }, t2));
1636
- };
1637
- return o2.cancel = () => {
1638
- r2 && (clearTimeout(r2), r2 = null);
1639
- }, o2;
1640
- }, mr = (e2) => null !== e2 && !Array.isArray(e2) && "object" == typeof e2, gr = (e2, t2) => {
1641
- if (e2 === t2) return true;
1642
- if (Array.isArray(e2) && Array.isArray(t2)) return e2.length === t2.length && e2.every((e3, n3) => gr(e3, t2[n3]));
1643
- if (Array.isArray(e2) !== Array.isArray(t2)) return false;
1644
- if (!mr(e2) || !mr(t2)) return e2 === t2;
1645
- const n2 = Object.keys(e2), r2 = Object.keys(t2);
1646
- return n2.length === r2.length && n2.every((n3) => gr(e2[n3], t2[n3]));
1647
- }, hr = (e2) => {
1648
- if (!(e2 instanceof HTMLElement || e2 instanceof SVGElement)) return false;
1649
- const t2 = getComputedStyle(e2);
1650
- return ["overflow", "overflow-x", "overflow-y"].some((e3) => {
1651
- const n2 = t2.getPropertyValue(e3);
1652
- return "auto" === n2 || "scroll" === n2;
1653
- });
1654
- }, vr = (e2) => {
1655
- if (!e2) return null;
1656
- let t2 = e2.parentElement;
1657
- for (; t2; ) {
1658
- if (hr(t2)) return t2;
1659
- t2 = t2.parentElement;
1660
- }
1661
- return document.scrollingElement || document.documentElement;
1662
- }, br = "undefined" != typeof window ? r : o, wr = (e2) => {
1663
- e2.current && (clearTimeout(e2.current), e2.current = null);
1664
- }, xr = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
1665
- }, detach: () => {
1666
- }, setActiveAnchor: () => {
1667
- } }, $r = i({ getTooltipData: () => xr });
1668
- function Sr(e2 = "DEFAULT_TOOLTIP_ID") {
1669
- return c($r).getTooltipData(e2);
1670
- }
1671
- var _r = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, kr = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
1672
- const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant: c2 = "dark", anchorId: f2, anchorSelect: d2, place: p2 = "top", offset: y2 = 10, events: m2 = ["hover"], openOnClick: g2 = false, positionStrategy: h2 = "absolute", middlewares: v2, wrapper: b2, delayShow: w2 = 0, delayHide: x2 = 0, float: $2 = false, hidden: S2 = false, noArrow: _2 = false, clickable: k2 = false, closeOnEsc: j2 = false, closeOnScroll: O2 = false, closeOnResize: E2 = false, openEvents: A2, closeEvents: T2, globalCloseEvents: R2, imperativeModeOnly: C2, style: L2, position: z2, afterShow: P2, afterHide: F2, disableTooltip: D2, content: N2, contentWrapperRef: W2, isOpen: M2, defaultIsOpen: I2 = false, setIsOpen: B2, activeAnchor: H2, setActiveAnchor: V2, border: q2, opacity: U2, arrowColor: G2, role: Y2 = "tooltip" }) => {
1673
- var K2;
1674
- const X2 = a(null), Z2 = a(null), J2 = a(null), Q2 = a(null), ee2 = a(null), [te2, ne2] = l({ tooltipStyles: {}, tooltipArrowStyles: {}, place: p2 }), [re2, oe2] = l(false), [ie2, le2] = l(false), [ae2, ce2] = l(null), se2 = a(false), ue2 = a(null), { anchorRefs: fe2, setActiveAnchor: de2 } = Sr(n2), pe2 = a(false), [ye2, me2] = l([]), ge2 = a(false), he2 = g2 || m2.includes("click"), ve2 = he2 || (null == A2 ? void 0 : A2.click) || (null == A2 ? void 0 : A2.dblclick) || (null == A2 ? void 0 : A2.mousedown), be2 = A2 ? { ...A2 } : { mouseover: true, focus: true, mouseenter: false, click: false, dblclick: false, mousedown: false };
1675
- !A2 && he2 && Object.assign(be2, { mouseenter: false, focus: false, mouseover: false, click: true });
1676
- const we2 = T2 ? { ...T2 } : { mouseout: true, blur: true, mouseleave: false, click: false, dblclick: false, mouseup: false };
1677
- !T2 && he2 && Object.assign(we2, { mouseleave: false, blur: false, mouseout: false });
1678
- const xe2 = R2 ? { ...R2 } : { escape: j2 || false, scroll: O2 || false, resize: E2 || false, clickOutsideAnchor: ve2 || false };
1679
- C2 && (Object.assign(be2, { mouseenter: false, focus: false, click: false, dblclick: false, mousedown: false }), Object.assign(we2, { mouseleave: false, blur: false, click: false, dblclick: false, mouseup: false }), Object.assign(xe2, { escape: false, scroll: false, resize: false, clickOutsideAnchor: false })), br(() => (ge2.current = true, () => {
1680
- ge2.current = false;
1681
- }), []);
1682
- const $e2 = (e3) => {
1683
- ge2.current && (e3 && le2(true), setTimeout(() => {
1684
- ge2.current && (null == B2 || B2(e3), void 0 === M2 && oe2(e3));
1685
- }, 10));
1686
- };
1687
- o(() => {
1688
- if (void 0 === M2) return () => null;
1689
- M2 && le2(true);
1690
- const e3 = setTimeout(() => {
1691
- oe2(M2);
1692
- }, 10);
1693
- return () => {
1694
- clearTimeout(e3);
1695
- };
1696
- }, [M2]), o(() => {
1697
- if (re2 !== se2.current) if (wr(ee2), se2.current = re2, re2) null == P2 || P2();
1698
- else {
1699
- const e3 = (() => {
1700
- const e4 = getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);
1701
- if (!e4) return 0;
1702
- const [, t2, n3] = e4;
1703
- return Number(t2) * ("ms" === n3 ? 1 : 1e3);
1704
- })();
1705
- ee2.current = setTimeout(() => {
1706
- le2(false), ce2(null), null == F2 || F2();
1707
- }, e3 + 25);
1708
- }
1709
- }, [re2]);
1710
- const Se2 = (e3) => {
1711
- ne2((t2) => gr(t2, e3) ? t2 : e3);
1712
- }, _e2 = (e3 = w2) => {
1713
- wr(J2), ie2 ? $e2(true) : J2.current = setTimeout(() => {
1714
- $e2(true);
1715
- }, e3);
1716
- }, ke2 = (e3 = x2) => {
1717
- wr(Q2), Q2.current = setTimeout(() => {
1718
- pe2.current || $e2(false);
1719
- }, e3);
1720
- }, je2 = (e3) => {
1721
- var t2;
1722
- if (!e3) return;
1723
- const n3 = null !== (t2 = e3.currentTarget) && void 0 !== t2 ? t2 : e3.target;
1724
- if (!(null == n3 ? void 0 : n3.isConnected)) return V2(null), void de2({ current: null });
1725
- w2 ? _e2() : $e2(true), V2(n3), de2({ current: n3 }), wr(Q2);
1726
- }, Oe2 = () => {
1727
- k2 ? ke2(x2 || 100) : x2 ? ke2() : $e2(false), wr(J2);
1728
- }, Ee2 = ({ x: e3, y: t2 }) => {
1729
- var n3;
1730
- const r3 = { getBoundingClientRect: () => ({ x: e3, y: t2, width: 0, height: 0, top: t2, left: e3, right: e3, bottom: t2 }) };
1731
- dr({ place: null !== (n3 = null == ae2 ? void 0 : ae2.place) && void 0 !== n3 ? n3 : p2, offset: y2, elementReference: r3, tooltipReference: X2.current, tooltipArrowReference: Z2.current, strategy: h2, middlewares: v2, border: q2 }).then((e4) => {
1732
- Se2(e4);
1733
- });
1734
- }, Ae2 = (e3) => {
1735
- if (!e3) return;
1736
- const t2 = e3, n3 = { x: t2.clientX, y: t2.clientY };
1737
- Ee2(n3), ue2.current = n3;
1738
- }, Te2 = (e3) => {
1739
- var t2;
1740
- if (!re2) return;
1741
- const n3 = e3.target;
1742
- n3.isConnected && ((null === (t2 = X2.current) || void 0 === t2 ? void 0 : t2.contains(n3)) || [document.querySelector(`[id='${f2}']`), ...ye2].some((e4) => null == e4 ? void 0 : e4.contains(n3)) || ($e2(false), wr(J2)));
1743
- }, Re2 = yr(je2, 50), Ce2 = yr(Oe2, 50), Le2 = (e3) => {
1744
- Ce2.cancel(), Re2(e3);
1745
- }, ze2 = () => {
1746
- Re2.cancel(), Ce2();
1747
- }, Pe2 = s(() => {
1748
- var e3, t2;
1749
- const n3 = null !== (e3 = null == ae2 ? void 0 : ae2.position) && void 0 !== e3 ? e3 : z2;
1750
- n3 ? Ee2(n3) : $2 ? ue2.current && Ee2(ue2.current) : (null == H2 ? void 0 : H2.isConnected) && dr({ place: null !== (t2 = null == ae2 ? void 0 : ae2.place) && void 0 !== t2 ? t2 : p2, offset: y2, elementReference: H2, tooltipReference: X2.current, tooltipArrowReference: Z2.current, strategy: h2, middlewares: v2, border: q2 }).then((e4) => {
1751
- ge2.current && Se2(e4);
1752
- });
1753
- }, [re2, H2, N2, L2, p2, null == ae2 ? void 0 : ae2.place, y2, h2, z2, null == ae2 ? void 0 : ae2.position, $2]);
1754
- o(() => {
1755
- var e3, t2;
1756
- const n3 = new Set(fe2);
1757
- ye2.forEach((e4) => {
1758
- (null == D2 ? void 0 : D2(e4)) || n3.add({ current: e4 });
1759
- });
1760
- const r3 = document.querySelector(`[id='${f2}']`);
1761
- r3 && !(null == D2 ? void 0 : D2(r3)) && n3.add({ current: r3 });
1762
- const o2 = () => {
1763
- $e2(false);
1764
- }, i3 = vr(H2), l2 = vr(X2.current);
1765
- xe2.scroll && (window.addEventListener("scroll", o2), null == i3 || i3.addEventListener("scroll", o2), null == l2 || l2.addEventListener("scroll", o2));
1766
- let a2 = null;
1767
- xe2.resize ? window.addEventListener("resize", o2) : H2 && X2.current && (a2 = lt(H2, X2.current, Pe2, { ancestorResize: true, elementResize: true, layoutShift: true }));
1768
- const c3 = (e4) => {
1769
- "Escape" === e4.key && $e2(false);
1770
- };
1771
- xe2.escape && window.addEventListener("keydown", c3), xe2.clickOutsideAnchor && window.addEventListener("click", Te2);
1772
- const s2 = [], u2 = (e4) => {
1773
- re2 && (null == e4 ? void 0 : e4.target) === H2 || je2(e4);
1774
- }, d3 = (e4) => {
1775
- re2 && (null == e4 ? void 0 : e4.target) === H2 && Oe2();
1776
- }, p3 = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], y3 = ["click", "dblclick", "mousedown", "mouseup"];
1777
- Object.entries(be2).forEach(([e4, t3]) => {
1778
- t3 && (p3.includes(e4) ? s2.push({ event: e4, listener: Le2 }) : y3.includes(e4) && s2.push({ event: e4, listener: u2 }));
1779
- }), Object.entries(we2).forEach(([e4, t3]) => {
1780
- t3 && (p3.includes(e4) ? s2.push({ event: e4, listener: ze2 }) : y3.includes(e4) && s2.push({ event: e4, listener: d3 }));
1781
- }), $2 && s2.push({ event: "pointermove", listener: Ae2 });
1782
- const m3 = () => {
1783
- pe2.current = true;
1784
- }, g3 = () => {
1785
- pe2.current = false, Oe2();
1786
- };
1787
- return k2 && !ve2 && (null === (e3 = X2.current) || void 0 === e3 || e3.addEventListener("mouseenter", m3), null === (t2 = X2.current) || void 0 === t2 || t2.addEventListener("mouseleave", g3)), s2.forEach(({ event: e4, listener: t3 }) => {
1788
- n3.forEach((n4) => {
1789
- var r4;
1790
- null === (r4 = n4.current) || void 0 === r4 || r4.addEventListener(e4, t3);
1791
- });
1792
- }), () => {
1793
- var e4, t3;
1794
- xe2.scroll && (window.removeEventListener("scroll", o2), null == i3 || i3.removeEventListener("scroll", o2), null == l2 || l2.removeEventListener("scroll", o2)), xe2.resize ? window.removeEventListener("resize", o2) : null == a2 || a2(), xe2.clickOutsideAnchor && window.removeEventListener("click", Te2), xe2.escape && window.removeEventListener("keydown", c3), k2 && !ve2 && (null === (e4 = X2.current) || void 0 === e4 || e4.removeEventListener("mouseenter", m3), null === (t3 = X2.current) || void 0 === t3 || t3.removeEventListener("mouseleave", g3)), s2.forEach(({ event: e5, listener: t4 }) => {
1795
- n3.forEach((n4) => {
1796
- var r4;
1797
- null === (r4 = n4.current) || void 0 === r4 || r4.removeEventListener(e5, t4);
1798
- });
1799
- });
1800
- };
1801
- }, [H2, Pe2, ie2, fe2, ye2, A2, T2, R2, he2, w2, x2]), o(() => {
1802
- var e3, t2;
1803
- let r3 = null !== (t2 = null !== (e3 = null == ae2 ? void 0 : ae2.anchorSelect) && void 0 !== e3 ? e3 : d2) && void 0 !== t2 ? t2 : "";
1804
- !r3 && n2 && (r3 = `[data-tooltip-id='${n2.replace(/'/g, "\\'")}']`);
1805
- const o2 = new MutationObserver((e4) => {
1806
- const t3 = [], o3 = [];
1807
- e4.forEach((e5) => {
1808
- if ("attributes" === e5.type && "data-tooltip-id" === e5.attributeName && (e5.target.getAttribute("data-tooltip-id") === n2 ? t3.push(e5.target) : e5.oldValue === n2 && o3.push(e5.target)), "childList" === e5.type) {
1809
- if (H2) {
1810
- const t4 = [...e5.removedNodes].filter((e6) => 1 === e6.nodeType);
1811
- if (r3) try {
1812
- o3.push(...t4.filter((e6) => e6.matches(r3))), o3.push(...t4.flatMap((e6) => [...e6.querySelectorAll(r3)]));
1813
- } catch (e6) {
1814
- }
1815
- t4.some((e6) => {
1816
- var t5;
1817
- return !!(null === (t5 = null == e6 ? void 0 : e6.contains) || void 0 === t5 ? void 0 : t5.call(e6, H2)) && (le2(false), $e2(false), V2(null), wr(J2), wr(Q2), true);
1818
- });
1819
- }
1820
- if (r3) try {
1821
- const n3 = [...e5.addedNodes].filter((e6) => 1 === e6.nodeType);
1822
- t3.push(...n3.filter((e6) => e6.matches(r3))), t3.push(...n3.flatMap((e6) => [...e6.querySelectorAll(r3)]));
1823
- } catch (e6) {
1824
- }
1825
- }
1826
- }), (t3.length || o3.length) && me2((e5) => [...e5.filter((e6) => !o3.includes(e6)), ...t3]);
1827
- });
1828
- return o2.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-tooltip-id"], attributeOldValue: true }), () => {
1829
- o2.disconnect();
1830
- };
1831
- }, [n2, d2, null == ae2 ? void 0 : ae2.anchorSelect, H2]), o(() => {
1832
- Pe2();
1833
- }, [Pe2]), o(() => {
1834
- if (!(null == W2 ? void 0 : W2.current)) return () => null;
1835
- const e3 = new ResizeObserver(() => {
1836
- setTimeout(() => Pe2());
1837
- });
1838
- return e3.observe(W2.current), () => {
1839
- e3.disconnect();
1840
- };
1841
- }, [N2, null == W2 ? void 0 : W2.current]), o(() => {
1842
- var e3;
1843
- const t2 = document.querySelector(`[id='${f2}']`), n3 = [...ye2, t2];
1844
- H2 && n3.includes(H2) || V2(null !== (e3 = ye2[0]) && void 0 !== e3 ? e3 : t2);
1845
- }, [f2, ye2, H2]), o(() => (I2 && $e2(true), () => {
1846
- wr(J2), wr(Q2);
1847
- }), []), o(() => {
1848
- var e3;
1849
- let t2 = null !== (e3 = null == ae2 ? void 0 : ae2.anchorSelect) && void 0 !== e3 ? e3 : d2;
1850
- if (!t2 && n2 && (t2 = `[data-tooltip-id='${n2.replace(/'/g, "\\'")}']`), t2) try {
1851
- const e4 = Array.from(document.querySelectorAll(t2));
1852
- me2(e4);
1853
- } catch (e4) {
1854
- me2([]);
1855
- }
1856
- }, [n2, d2, null == ae2 ? void 0 : ae2.anchorSelect]), o(() => {
1857
- J2.current && (wr(J2), _e2(w2));
1858
- }, [w2]);
1859
- const Fe2 = null !== (K2 = null == ae2 ? void 0 : ae2.content) && void 0 !== K2 ? K2 : N2, De2 = re2 && Object.keys(te2.tooltipStyles).length > 0;
1860
- return u(e2, () => ({ open: (e3) => {
1861
- if (null == e3 ? void 0 : e3.anchorSelect) try {
1862
- document.querySelector(e3.anchorSelect);
1863
- } catch (t2) {
1864
- return void console.warn(`[react-tooltip] "${e3.anchorSelect}" is not a valid CSS selector`);
1865
- }
1866
- ce2(null != e3 ? e3 : null), (null == e3 ? void 0 : e3.delay) ? _e2(e3.delay) : $e2(true);
1867
- }, close: (e3) => {
1868
- (null == e3 ? void 0 : e3.delay) ? ke2(e3.delay) : $e2(false);
1869
- }, activeAnchor: H2, place: te2.place, isOpen: Boolean(ie2 && !S2 && Fe2 && De2) })), ie2 && !S2 && Fe2 ? t.createElement(b2, { id: n2, role: Y2, className: sr("react-tooltip", _r.tooltip, kr.tooltip, kr[c2], r2, `react-tooltip__place-${te2.place}`, _r[De2 ? "show" : "closing"], De2 ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === h2 && _r.fixed, k2 && _r.clickable), onTransitionEnd: (e3) => {
1870
- wr(ee2), re2 || "opacity" !== e3.propertyName || (le2(false), ce2(null), null == F2 || F2());
1871
- }, style: { ...L2, ...te2.tooltipStyles, opacity: void 0 !== U2 && De2 ? U2 : void 0 }, ref: X2 }, Fe2, t.createElement(b2, { className: sr("react-tooltip-arrow", _r.arrow, kr.arrow, i2, _2 && _r.noArrow), style: { ...te2.tooltipArrowStyles, background: G2 ? `linear-gradient(to right bottom, transparent 50%, ${G2} 50%)` : void 0 }, ref: Z2 })) : null;
1872
- }, Or = ({ content: e2 }) => t.createElement("span", { dangerouslySetInnerHTML: { __html: e2 } }), Er = t.forwardRef(({ id: e2, anchorId: n2, anchorSelect: r2, content: i2, html: c2, render: s2, className: u2, classNameArrow: f2, variant: d2 = "dark", place: p2 = "top", offset: y2 = 10, wrapper: m2 = "div", children: g2 = null, events: h2 = ["hover"], openOnClick: v2 = false, positionStrategy: b2 = "absolute", middlewares: w2, delayShow: x2 = 0, delayHide: $2 = 0, float: S2 = false, hidden: _2 = false, noArrow: k2 = false, clickable: j2 = false, closeOnEsc: O2 = false, closeOnScroll: E2 = false, closeOnResize: A2 = false, openEvents: T2, closeEvents: R2, globalCloseEvents: C2, imperativeModeOnly: L2 = false, style: z2, position: P2, isOpen: F2, defaultIsOpen: D2 = false, disableStyleInjection: N2 = false, border: W2, opacity: M2, arrowColor: I2, setIsOpen: B2, afterShow: H2, afterHide: V2, disableTooltip: q2, role: U2 = "tooltip" }, G2) => {
1873
- const [Y2, K2] = l(i2), [X2, Z2] = l(c2), [J2, Q2] = l(p2), [ee2, te2] = l(d2), [ne2, re2] = l(y2), [oe2, ie2] = l(x2), [le2, ae2] = l($2), [ce2, se2] = l(S2), [ue2, fe2] = l(_2), [de2, pe2] = l(m2), [ye2, me2] = l(h2), [ge2, he2] = l(b2), [ve2, be2] = l(null), [we2, xe2] = l(null), $e2 = a(N2), { anchorRefs: Se2, activeAnchor: _e2 } = Sr(e2), ke2 = (e3) => null == e3 ? void 0 : e3.getAttributeNames().reduce((t2, n3) => {
1874
- var r3;
1875
- return n3.startsWith("data-tooltip-") && (t2[n3.replace(/^data-tooltip-/, "")] = null !== (r3 = null == e3 ? void 0 : e3.getAttribute(n3)) && void 0 !== r3 ? r3 : null), t2;
1876
- }, {}), je2 = (e3) => {
1877
- const t2 = { place: (e4) => {
1878
- var t3;
1879
- Q2(null !== (t3 = e4) && void 0 !== t3 ? t3 : p2);
1880
- }, content: (e4) => {
1881
- K2(null != e4 ? e4 : i2);
1882
- }, html: (e4) => {
1883
- Z2(null != e4 ? e4 : c2);
1884
- }, variant: (e4) => {
1885
- var t3;
1886
- te2(null !== (t3 = e4) && void 0 !== t3 ? t3 : d2);
1887
- }, offset: (e4) => {
1888
- re2(null === e4 ? y2 : Number(e4));
1889
- }, wrapper: (e4) => {
1890
- var t3;
1891
- pe2(null !== (t3 = e4) && void 0 !== t3 ? t3 : m2);
1892
- }, events: (e4) => {
1893
- const t3 = null == e4 ? void 0 : e4.split(" ");
1894
- me2(null != t3 ? t3 : h2);
1895
- }, "position-strategy": (e4) => {
1896
- var t3;
1897
- he2(null !== (t3 = e4) && void 0 !== t3 ? t3 : b2);
1898
- }, "delay-show": (e4) => {
1899
- ie2(null === e4 ? x2 : Number(e4));
1900
- }, "delay-hide": (e4) => {
1901
- ae2(null === e4 ? $2 : Number(e4));
1902
- }, float: (e4) => {
1903
- se2(null === e4 ? S2 : "true" === e4);
1904
- }, hidden: (e4) => {
1905
- fe2(null === e4 ? _2 : "true" === e4);
1906
- }, "class-name": (e4) => {
1907
- be2(e4);
1908
- } };
1909
- Object.values(t2).forEach((e4) => e4(null)), Object.entries(e3).forEach(([e4, n3]) => {
1910
- var r3;
1911
- null === (r3 = t2[e4]) || void 0 === r3 || r3.call(t2, n3);
1912
- });
1913
- };
1914
- o(() => {
1915
- K2(i2);
1916
- }, [i2]), o(() => {
1917
- Z2(c2);
1918
- }, [c2]), o(() => {
1919
- Q2(p2);
1920
- }, [p2]), o(() => {
1921
- te2(d2);
1922
- }, [d2]), o(() => {
1923
- re2(y2);
1924
- }, [y2]), o(() => {
1925
- ie2(x2);
1926
- }, [x2]), o(() => {
1927
- ae2($2);
1928
- }, [$2]), o(() => {
1929
- se2(S2);
1930
- }, [S2]), o(() => {
1931
- fe2(_2);
1932
- }, [_2]), o(() => {
1933
- he2(b2);
1934
- }, [b2]), o(() => {
1935
- $e2.current !== N2 && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
1936
- }, [N2]), o(() => {
1937
- "undefined" != typeof window && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: "core" === N2, disableBase: N2 } }));
1938
- }, []), o(() => {
1939
- var t2;
1940
- const o2 = new Set(Se2);
1941
- let i3 = r2;
1942
- if (!i3 && e2 && (i3 = `[data-tooltip-id='${e2.replace(/'/g, "\\'")}']`), i3) try {
1943
- document.querySelectorAll(i3).forEach((e3) => {
1944
- o2.add({ current: e3 });
1945
- });
1946
- } catch (t3) {
1947
- console.warn(`[react-tooltip] "${i3}" is not a valid CSS selector`);
1948
- }
1949
- const l2 = document.querySelector(`[id='${n2}']`);
1950
- if (l2 && o2.add({ current: l2 }), !o2.size) return () => null;
1951
- const a2 = null !== (t2 = null != we2 ? we2 : l2) && void 0 !== t2 ? t2 : _e2.current, c3 = new MutationObserver((e3) => {
1952
- e3.forEach((e4) => {
1953
- var t3;
1954
- if (!a2 || "attributes" !== e4.type || !(null === (t3 = e4.attributeName) || void 0 === t3 ? void 0 : t3.startsWith("data-tooltip-"))) return;
1955
- const n3 = ke2(a2);
1956
- je2(n3);
1957
- });
1958
- }), s3 = { attributes: true, childList: false, subtree: false };
1959
- if (a2) {
1960
- const e3 = ke2(a2);
1961
- je2(e3), c3.observe(a2, s3);
1962
- }
1963
- return () => {
1964
- c3.disconnect();
1965
- };
1966
- }, [Se2, _e2, we2, n2, r2]), o(() => {
1967
- (null == z2 ? void 0 : z2.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), W2 && !pr("border", `${W2}`) && console.warn(`[react-tooltip] "${W2}" is not a valid \`border\`.`), (null == z2 ? void 0 : z2.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), M2 && !pr("opacity", `${M2}`) && console.warn(`[react-tooltip] "${M2}" is not a valid \`opacity\`.`);
1968
- }, []);
1969
- let Oe2 = g2;
1970
- const Ee2 = a(null);
1971
- if (s2) {
1972
- const e3 = s2({ content: (null == we2 ? void 0 : we2.getAttribute("data-tooltip-content")) || Y2 || null, activeAnchor: we2 });
1973
- Oe2 = e3 ? t.createElement("div", { ref: Ee2, className: "react-tooltip-content-wrapper" }, e3) : null;
1974
- } else Y2 && (Oe2 = Y2);
1975
- X2 && (Oe2 = t.createElement(Or, { content: X2 }));
1976
- const Ae2 = { forwardRef: G2, id: e2, anchorId: n2, anchorSelect: r2, className: sr(u2, ve2), classNameArrow: f2, content: Oe2, contentWrapperRef: Ee2, place: J2, variant: ee2, offset: ne2, wrapper: de2, events: ye2, openOnClick: v2, positionStrategy: ge2, middlewares: w2, delayShow: oe2, delayHide: le2, float: ce2, hidden: ue2, noArrow: k2, clickable: j2, closeOnEsc: O2, closeOnScroll: E2, closeOnResize: A2, openEvents: T2, closeEvents: R2, globalCloseEvents: C2, imperativeModeOnly: L2, style: z2, position: P2, isOpen: F2, defaultIsOpen: D2, border: W2, opacity: M2, arrowColor: I2, setIsOpen: B2, afterShow: H2, afterHide: V2, disableTooltip: q2, activeAnchor: we2, setActiveAnchor: (e3) => xe2(e3), role: U2 };
1977
- return t.createElement(jr, { ...Ae2 });
1978
- });
1979
- "undefined" != typeof window && window.addEventListener("react-tooltip-inject-styles", (e2) => {
1980
- e2.detail.disableCore || fr({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), e2.detail.disableBase || fr({ css: "\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}", type: "base" });
1981
- });
1982
- const Ar = p(B)``, Tr = p.div`
1983
- ${({ theme: e2, $maxWidth: t2 = "320px" }) => `
1984
- > :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
1985
- background-color: ${e2.palette.gray[700]};
1986
- border-radius: 8px;
1987
- color: ${e2.palette.white};
1988
- font-size: ${e2.typography.text.xs};
1989
- max-width: ${t2};
1990
- padding: ${e2.spacing[0.75]};
1991
- z-index: 999999;
1992
- --rt-opacity: 1;
1993
- }
1994
- `}
1995
- `, Rr = n(function({ children: e2, disabled: t2 = false, display: n2 = "inline-block", effect: r2 = "solid", icon: o2, iconColor: i2, iconSize: c2, id: u2, maxWidth: d2, nodeTip: p2, place: m2 = "bottom", tip: h2 = "", title: v2 = "", hide: b2 = "" === h2 && "" === v2 && void 0 === p2, ...w2 }, x2) {
1996
- const $2 = y(), [S2, _2] = l(false), k2 = a(null), j2 = s(() => {
1997
- null !== k2.current && clearTimeout(k2.current), k2.current = setTimeout(() => {
1998
- _2(true);
1999
- }, 100);
2000
- }, []), O2 = s(() => {
2001
- null !== k2.current && clearTimeout(k2.current), k2.current = setTimeout(() => {
2002
- _2(false);
2003
- }, 100);
2004
- }, []);
2005
- return t2 ? E.jsx(f, { children: e2 }) : E.jsxs(Ar, { "data-tooltip-id": u2, display: n2, onMouseLeave: O2, onMouseMove: j2, ref: x2, role: "tooltip", ...w2, children: [o2 ? E.jsx(ee, { clickable: true, disabled: t2, icon: o2, iconColor: i2, iconSize: c2 ?? "xxs", iconType: S2 ? "fa-solid" : "fa-light" }) : e2, g(E.jsx(Tr, { $maxWidth: d2, children: E.jsxs(Er, { delayShow: 500, float: "float" === r2 || void 0, globalCloseEvents: { resize: true }, hidden: b2 || !S2, id: u2, middlewares: [(A2 = { fallbackAxisSideDirection: "start" }, { ...st(A2), options: [A2, T2] }), vt({ mainAxis: 10 })], noArrow: "float" === r2, place: m2, children: [ir(v2) ? void 0 : E.jsx(Z, { color: $2.palette.white, fontWeight: "bold", lineSpacing: 1.5, size: "xs", textAlign: "start", wordWrap: "break-word", children: v2 }), ir(h2) ? void 0 : E.jsx(Z, { color: $2.palette.gray[100], lineSpacing: 1.5, size: "xs", textAlign: "start", wordWrap: "break-word", children: h2 }), ir(p2) ? void 0 : p2] }) }), document.getElementById("root") ?? document.body)] });
2006
- var A2, T2;
2007
- });
2008
- const Cr = w(Cn()), Lr = n(function({ children: e2, disabled: t2 = false, external: n2 = false, href: r2, id: o2, icon: i2, name: l2, onClick: a2, showArrow: c2 = false, type: u2 = "button", tooltip: f2, tooltipPlace: d2 = "bottom", underline: p2 = false, value: y2, variant: m2 = "primary", ...g2 }, h2) {
2009
- const v2 = void 0 !== f2, b2 = `${o2}-tooltip`, w2 = s(() => {
2010
- r2 && ((e3, t3 = true) => {
2011
- const n3 = window.open(e3, t3 ? void 0 : "_self", "noopener,noreferrer,");
2012
- Cr(n3) && (n3.opener = null);
2013
- })(r2, n2);
2014
- }, [n2, r2]);
2015
- return E.jsx(Rr, { disabled: !v2, id: b2, place: d2, tip: f2, children: E.jsxs(ne, { $variant: m2, "aria-disabled": t2, className: p2 ? "underline" : void 0, disabled: t2, id: o2, name: l2, onClick: "link" === m2 ? w2 : a2, ref: h2, type: u2, value: y2, ...v2 ? { "data-tooltip-id": b2 } : {}, ...g2, children: [void 0 !== i2 && E.jsx(ee, { icon: i2, iconSize: "xs", iconType: "fa-light" }), e2, (c2 || "link" === m2) && E.jsx(ee, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })] }) });
2016
- });
2017
- export {
2018
- N as A,
2019
- B,
2020
- D as C,
2021
- I as D,
2022
- C as E,
2023
- A as F,
2024
- T as G,
2025
- K as H,
2026
- ee as I,
2027
- ne as S,
2028
- Z as T,
2029
- Rr as a,
2030
- X as b,
2031
- H as c,
2032
- Lr as d,
2033
- G as e,
2034
- lt as f,
2035
- w as g,
2036
- Mn as h,
2037
- ir as i,
2038
- E as j,
2039
- Nn as k,
2040
- b as l,
2041
- Cr as m,
2042
- Tn as n,
2043
- v as o,
2044
- V as p,
2045
- q,
2046
- Rn as r,
2047
- z as s,
2048
- R as t,
2049
- ht as u,
2050
- h as v,
2051
- W as w,
2052
- P as x,
2053
- M as y,
2054
- F as z
2055
- };