@blofin/blofin-ui 0.7.58 → 0.7.59

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 (293) hide show
  1. package/dist/Badge.es.js +8 -10
  2. package/dist/Button.es.js +125 -127
  3. package/dist/Dialog.es.js +10 -180
  4. package/dist/Divider.es.js +10 -12
  5. package/dist/Drawer.es.js +51 -44
  6. package/dist/Form.d.ts +1 -0
  7. package/dist/Form.es.js +752 -0
  8. package/dist/ProTable-63e2c020.js +3444 -0
  9. package/dist/ProTable.es.js +6 -9
  10. package/dist/Slider.es.js +140 -141
  11. package/dist/Sort.es.js +10 -144
  12. package/dist/blofin.css +1 -1
  13. package/dist/{close-0df24351.js → close-c67ec245.js} +0 -1
  14. package/dist/clsx.m-b14a941b.js +32 -0
  15. package/dist/components/Alert/Alert.d.ts +3 -3
  16. package/dist/components/Alert/styles.d.ts +2 -2
  17. package/dist/components/Badge/Badge.d.ts +2 -2
  18. package/dist/components/Button/Button.d.ts +2 -2
  19. package/dist/components/Button/Loading/index.d.ts +2 -2
  20. package/dist/components/Button/index.d.ts +0 -2
  21. package/dist/components/Button/styles.d.ts +1 -1
  22. package/dist/components/Checkbox/styles.d.ts +1 -1
  23. package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
  24. package/dist/components/DatePickerRange/styles.d.ts +1 -0
  25. package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
  26. package/dist/components/Dialog/Dialog.d.ts +2 -5
  27. package/dist/components/Dialog/index.d.ts +2 -4
  28. package/dist/components/Dialog/styles.d.ts +2 -2
  29. package/dist/components/Drawer/Drawer.d.ts +1 -1
  30. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  31. package/dist/components/Empty/index.d.ts +5 -2
  32. package/dist/components/Form/Control.d.ts +13 -0
  33. package/dist/components/Form/Form.d.ts +4 -0
  34. package/dist/components/Form/FormItem.d.ts +4 -0
  35. package/dist/components/Form/FormLabel.d.ts +4 -0
  36. package/dist/components/Form/context.d.ts +6 -0
  37. package/dist/components/Form/index.d.ts +8 -0
  38. package/dist/components/Form/interface.d.ts +48 -0
  39. package/dist/components/Form/store.d.ts +16 -0
  40. package/dist/components/Form/styles/item.d.ts +5 -0
  41. package/dist/components/Form/useForm.d.ts +3 -0
  42. package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
  43. package/dist/components/MonthPicker/index.d.ts +17 -2
  44. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
  45. package/dist/components/Notification/Notification.d.ts +1 -1
  46. package/dist/components/Pagination/PageOptions.d.ts +1 -1
  47. package/dist/components/Pagination/Pagination.d.ts +2 -2
  48. package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
  49. package/dist/components/Picker/index.d.ts +10 -2
  50. package/dist/components/Popover/Popover.d.ts +1 -1
  51. package/dist/components/Popup/index.d.ts +15 -4
  52. package/dist/components/RadioButton/RadioButton.d.ts +4 -4
  53. package/dist/components/RadioButton/styles.d.ts +1 -1
  54. package/dist/components/Select/Select.d.ts +9 -6
  55. package/dist/components/Slider/Slider.d.ts +2 -2
  56. package/dist/components/Sort/SortButton.d.ts +5 -5
  57. package/dist/components/Sort/SortGroup.d.ts +4 -4
  58. package/dist/components/Sort/index.d.ts +6 -5
  59. package/dist/components/Sortable/SortItem.d.ts +4 -4
  60. package/dist/components/Sortable/index.d.ts +11 -3
  61. package/dist/components/Switch/Switch.d.ts +2 -2
  62. package/dist/components/Switch/styles.d.ts +3 -3
  63. package/dist/components/Tab/Tab.d.ts +2 -2
  64. package/dist/components/Tab/styles.d.ts +1 -1
  65. package/dist/components/Table/Pagination/index.d.ts +2 -2
  66. package/dist/components/Table/Table.d.ts +2 -2
  67. package/dist/components/Table/Tbody/index.d.ts +3 -3
  68. package/dist/components/Table/Thead/index.d.ts +3 -3
  69. package/dist/components/Table/context.d.ts +3 -3
  70. package/dist/components/Table/hooks/useStickyOffset.d.ts +3 -3
  71. package/dist/components/Table/index.d.ts +3 -3
  72. package/dist/components/Table/interface.d.ts +4 -4
  73. package/dist/components/TextField/TextField.d.ts +4 -4
  74. package/dist/components/TextField/index.d.ts +0 -2
  75. package/dist/components/TextSelect/TextSelect.d.ts +8 -8
  76. package/dist/components/Textarea/index.d.ts +15 -2
  77. package/dist/components/Toast/Toast.d.ts +13 -2
  78. package/dist/components/Toast/styles.d.ts +1 -1
  79. package/dist/components/Tooltip/Tooltip.d.ts +5 -4
  80. package/dist/components/Typography/Typography.d.ts +2 -2
  81. package/dist/components/Typography/styles.d.ts +1 -1
  82. package/dist/hooks/useLatest.d.ts +1 -1
  83. package/dist/hooks/useNotification.d.ts +7 -5
  84. package/dist/hooks/useToast.d.ts +1 -1
  85. package/dist/{index-4f94d7fa.js → index-001dd0f7.js} +39 -24
  86. package/dist/{index-29d37c73.js → index-003572ca.js} +67 -52
  87. package/dist/{index-57a163fd.js → index-0330bc93.js} +28 -13
  88. package/dist/{index-d81e15f3.js → index-05bf2879.js} +34 -19
  89. package/dist/{index-b54ef52a.js → index-0773f9b5.js} +31 -16
  90. package/dist/{index-6856be22.js → index-0c50dcda.js} +38 -23
  91. package/dist/{index-7cf9b111.js → index-0e6d56f6.js} +33 -18
  92. package/dist/{index-a89abb42.js → index-0eb53476.js} +19 -4
  93. package/dist/{index-0230b5a9.js → index-0f855a91.js} +4 -5
  94. package/dist/{index-cbc0d36b.js → index-10144af4.js} +30 -15
  95. package/dist/{index-06d0f2f7.js → index-11dc8e91.js} +28 -13
  96. package/dist/{index-c6371af1.js → index-14eba896.js} +25 -10
  97. package/dist/{index-c1381bca.js → index-18869ac6.js} +35 -20
  98. package/dist/{index-1b2a64df.js → index-189196e6.js} +46 -31
  99. package/dist/{index-898678dc.js → index-198ccc85.js} +45 -30
  100. package/dist/{index-e2b960e4.js → index-1b087231.js} +38 -23
  101. package/dist/{index-f40f45fb.js → index-204cbb23.js} +30 -15
  102. package/dist/{index-4df0c3e4.js → index-220ed10a.js} +31 -16
  103. package/dist/{index-67678963.js → index-28a6835c.js} +48 -33
  104. package/dist/{index-e98ef24f.js → index-2d400fe1.js} +32 -17
  105. package/dist/{index-e8fb69e0.js → index-2e0c8d16.js} +37 -22
  106. package/dist/{index-cc1cd309.js → index-2e784550.js} +28 -13
  107. package/dist/index-304d7874.js +64 -0
  108. package/dist/{index-12d32536.js → index-3375e2e3.js} +28 -13
  109. package/dist/{index-954d3973.js → index-36521981.js} +28 -13
  110. package/dist/{index-cfee583b.js → index-377dc190.js} +36 -21
  111. package/dist/{index-4f94900a.js → index-390505ce.js} +34 -19
  112. package/dist/index-40626e62.js +174 -0
  113. package/dist/{index-b0da3dfd.js → index-41bebee7.js} +39 -24
  114. package/dist/{index-5fb7b3bc.js → index-45cfa2f3.js} +27 -12
  115. package/dist/{index-80cc70e4.js → index-47408940.js} +41 -26
  116. package/dist/{index-141cec17.js → index-4b9249fc.js} +29 -14
  117. package/dist/index-543e2f77.js +65 -0
  118. package/dist/index-563cafee.js +64 -0
  119. package/dist/index-5956ed9f.js +11569 -0
  120. package/dist/{index-b103ed31.js → index-59c7d611.js} +27 -12
  121. package/dist/{index-d2f2742e.js → index-5bc791c5.js} +30 -15
  122. package/dist/{index-03513979.js → index-5f3da225.js} +26 -11
  123. package/dist/{index-8aa9b1be.js → index-603f0f2a.js} +39 -24
  124. package/dist/{index-4bc493f0.js → index-636a6216.js} +19 -4
  125. package/dist/{index-2334248a.js → index-640dc4ab.js} +24 -9
  126. package/dist/{index-73bfc020.js → index-64ba8d88.js} +47 -32
  127. package/dist/{index-2ae0474b.js → index-65986673.js} +39 -24
  128. package/dist/{index-6f728206.js → index-65df0a7b.js} +24 -9
  129. package/dist/{index-02f669c4.js → index-6e4d9a19.js} +1 -2
  130. package/dist/{index-360aaaac.js → index-7241c703.js} +46 -31
  131. package/dist/index-7272669e.js +36 -0
  132. package/dist/{index-9c73c442.js → index-73673cf3.js} +60 -45
  133. package/dist/{index-08a64465.js → index-74676234.js} +31 -16
  134. package/dist/{index-7edb6aec.js → index-770fe605.js} +34 -19
  135. package/dist/{index-5beeed26.js → index-772d6529.js} +38 -23
  136. package/dist/{index-6e969585.js → index-797b8f6c.js} +52 -37
  137. package/dist/{index-a6fa33ce.js → index-7c12aa98.js} +28 -13
  138. package/dist/{index-5e6ffc2f.js → index-7e7cdd81.js} +1 -2
  139. package/dist/{index-03169373.js → index-81072b24.js} +37 -22
  140. package/dist/{index-75190b99.js → index-8684e896.js} +22 -7
  141. package/dist/{index-7bb9ffdf.js → index-89f184f3.js} +2 -3
  142. package/dist/{index-40710f09.js → index-8a7c46ae.js} +41 -26
  143. package/dist/{index-117d018c.js → index-8cec0e82.js} +37 -22
  144. package/dist/{index-094d2a65.js → index-91062be2.js} +34 -19
  145. package/dist/{index-d3419554.js → index-9253a5ce.js} +30 -15
  146. package/dist/index-95c68eda.js +152 -0
  147. package/dist/{index-956b36a6.js → index-9eaebb69.js} +45 -30
  148. package/dist/{index-63a66f13.js → index-a4077786.js} +45 -30
  149. package/dist/{index-e9a1ff7f.js → index-ad2acfd2.js} +19 -4
  150. package/dist/{index-fdffd6e6.js → index-af60bed6.js} +29 -14
  151. package/dist/{index-fda88eb4.js → index-b5ff5e93.js} +45 -30
  152. package/dist/{index-11268759.js → index-bba889fc.js} +33 -18
  153. package/dist/{index-b7941b97.js → index-c002eb57.js} +23 -8
  154. package/dist/{index-4c6ad36c.js → index-c73b6cc3.js} +47 -32
  155. package/dist/{index-60fe7f16.js → index-c81a4a2a.js} +32 -17
  156. package/dist/{index-f7c4ae83.js → index-c8690f0a.js} +48 -33
  157. package/dist/{index-79e7317f.js → index-cdaffd70.js} +27 -12
  158. package/dist/{index-4d780cf4.js → index-cf872561.js} +37 -22
  159. package/dist/{index-cb1218d8.js → index-dafac81d.js} +25 -10
  160. package/dist/{index-19d177fe.js → index-db7c7495.js} +31 -16
  161. package/dist/{index-f1726c63.js → index-dbd4bd27.js} +29 -14
  162. package/dist/{index-ceae4147.js → index-dc23eb8b.js} +27 -12
  163. package/dist/{index-9e5efc0a.js → index-dc69cdd8.js} +45 -30
  164. package/dist/{index-c69f6dfc.js → index-e6091315.js} +36 -21
  165. package/dist/{index-06ef2e10.js → index-e869e999.js} +28 -13
  166. package/dist/{index-03d6aef0.js → index-f0c42ec9.js} +33 -18
  167. package/dist/{index-f64eddcc.js → index-f16b36a5.js} +31 -16
  168. package/dist/{index-e1a6a03d.js → index-f4d65525.js} +24 -9
  169. package/dist/index-f53123c7.js +64 -0
  170. package/dist/{index-770e5f53.js → index-f753119c.js} +27 -12
  171. package/dist/{index-8585c2f3.js → index-f83dab77.js} +38 -23
  172. package/dist/{index-6f963c6a.js → index-f852d9b6.js} +35 -20
  173. package/dist/{index-3ee2bafa.js → index-fa51b278.js} +30 -15
  174. package/dist/{index-e169373b.js → index-fc135912.js} +25 -10
  175. package/dist/{index-ef31f5f8.js → index-fcb1ec65.js} +1 -2
  176. package/dist/{index-d86842c8.js → index-ff943066.js} +34 -19
  177. package/dist/index.d.ts +48 -36
  178. package/dist/index.es.js +56 -223
  179. package/dist/isObjectLike-1b8bbac2.js +44 -0
  180. package/dist/jsx-runtime-82a9ddf6.js +646 -0
  181. package/dist/provider/NoticeProvider.d.ts +1 -1
  182. package/dist/provider/ThemeProvider.d.ts +3 -7
  183. package/dist/provider/useTheme.d.ts +1 -1
  184. package/dist/types/component.d.ts +1 -1
  185. package/dist/utils/helper.d.ts +1 -1
  186. package/dist/{utils-071abd68.js → utils-cacf528c.js} +1 -2
  187. package/package.json +3 -2
  188. package/dist/Calendar.d.ts +0 -1
  189. package/dist/Calendar.es.js +0 -210
  190. package/dist/Checkbox.d.ts +0 -1
  191. package/dist/Checkbox.es.js +0 -138
  192. package/dist/CssDropdown.d.ts +0 -1
  193. package/dist/CssDropdown.es.js +0 -38
  194. package/dist/DatePickerRange.d.ts +0 -1
  195. package/dist/DatePickerRange.es.js +0 -410
  196. package/dist/DateTimePicker.d.ts +0 -1
  197. package/dist/DateTimePicker.es.js +0 -519
  198. package/dist/Dropdown.d.ts +0 -1
  199. package/dist/Dropdown.es.js +0 -134
  200. package/dist/Empty.d.ts +0 -1
  201. package/dist/Empty.es.js +0 -11
  202. package/dist/LabelTextField.d.ts +0 -1
  203. package/dist/LabelTextField.es.js +0 -100
  204. package/dist/MonthPicker.d.ts +0 -1
  205. package/dist/MonthPicker.es.js +0 -16
  206. package/dist/MultiSelect.d.ts +0 -1
  207. package/dist/MultiSelect.es.js +0 -425
  208. package/dist/Notification.d.ts +0 -1
  209. package/dist/Notification.es.js +0 -12
  210. package/dist/Pagination.d.ts +0 -1
  211. package/dist/Pagination.es.js +0 -219
  212. package/dist/Picker.d.ts +0 -1
  213. package/dist/Picker.es.js +0 -224
  214. package/dist/Popover.d.ts +0 -1
  215. package/dist/Popover.es.js +0 -107
  216. package/dist/Popup.d.ts +0 -1
  217. package/dist/Popup.es.js +0 -62
  218. package/dist/ProTable-7a07d8b6.js +0 -565
  219. package/dist/RadioButton.d.ts +0 -1
  220. package/dist/RadioButton.es.js +0 -152
  221. package/dist/Select.d.ts +0 -1
  222. package/dist/Select.es.js +0 -316
  223. package/dist/Sortable.d.ts +0 -1
  224. package/dist/Sortable.es.js +0 -39
  225. package/dist/Switch.d.ts +0 -1
  226. package/dist/Switch.es.js +0 -64
  227. package/dist/Tab.d.ts +0 -1
  228. package/dist/Tab.es.js +0 -101
  229. package/dist/Table.d.ts +0 -1
  230. package/dist/Table.es.js +0 -359
  231. package/dist/TextField.d.ts +0 -1
  232. package/dist/TextField.es.js +0 -64
  233. package/dist/TextSelect.d.ts +0 -1
  234. package/dist/TextSelect.es.js +0 -17
  235. package/dist/Textarea.d.ts +0 -1
  236. package/dist/Textarea.es.js +0 -106
  237. package/dist/Toast.d.ts +0 -1
  238. package/dist/Toast.es.js +0 -12
  239. package/dist/Tooltip.d.ts +0 -1
  240. package/dist/Tooltip.es.js +0 -144
  241. package/dist/Typography.d.ts +0 -1
  242. package/dist/Typography.es.js +0 -74
  243. package/dist/_commonjsHelpers-1d52fb73.js +0 -9
  244. package/dist/arrow-down-011b02c7.js +0 -6
  245. package/dist/arrow-down-l-line-97e4fe24.js +0 -6
  246. package/dist/arrow-fill-70becd96.js +0 -6
  247. package/dist/arrow-right-l-line-87881b4d.js +0 -7
  248. package/dist/close-bg-6d2211ef.js +0 -6
  249. package/dist/clsx.m-e965ef18.js +0 -22
  250. package/dist/components/CssDropdown/index.d.ts +0 -2
  251. package/dist/components/DatePickerRange/index.d.ts +0 -4
  252. package/dist/components/DateTimePicker/index.d.ts +0 -4
  253. package/dist/components/Dropdown/index.d.ts +0 -2
  254. package/dist/components/Empty/Empty.d.ts +0 -5
  255. package/dist/components/MonthPicker/MonthPicker.d.ts +0 -17
  256. package/dist/components/MultiSelect/index.d.ts +0 -2
  257. package/dist/components/Notification/index.d.ts +0 -2
  258. package/dist/components/Pagination/index.d.ts +0 -3
  259. package/dist/components/Picker/Picker.d.ts +0 -10
  260. package/dist/components/Popover/index.d.ts +0 -5
  261. package/dist/components/Popup/Popup.d.ts +0 -15
  262. package/dist/components/Sortable/Sortable.d.ts +0 -11
  263. package/dist/components/Switch/index.d.ts +0 -2
  264. package/dist/components/Tab/index.d.ts +0 -4
  265. package/dist/components/TextSelect/index.d.ts +0 -2
  266. package/dist/components/Textarea/Textarea.d.ts +0 -15
  267. package/dist/components/Toast/index.d.ts +0 -2
  268. package/dist/components/Tooltip/index.d.ts +0 -2
  269. package/dist/components/Typography/index.d.ts +0 -4
  270. package/dist/enum-0398044b.js +0 -17
  271. package/dist/helper-221987f8.js +0 -7
  272. package/dist/index-293f8244.js +0 -49
  273. package/dist/index-40023d52.js +0 -5322
  274. package/dist/index-4528ba11.js +0 -49
  275. package/dist/index-596c785d.js +0 -50
  276. package/dist/index-67554651.js +0 -49
  277. package/dist/index-9349bf2d.js +0 -345
  278. package/dist/index-b7027a1d.js +0 -1295
  279. package/dist/index-c57db938.js +0 -37
  280. package/dist/index-eea69add.js +0 -71
  281. package/dist/index.esm-71578db5.js +0 -1198
  282. package/dist/index.module-1d7bbdf8.js +0 -7
  283. package/dist/index.module-86edc823.js +0 -15
  284. package/dist/index.module-b4239ff5.js +0 -9
  285. package/dist/index.module-fb41ba3b.js +0 -39
  286. package/dist/locales-776f0072.js +0 -440
  287. package/dist/search-b79a3be5.js +0 -6
  288. package/dist/sortable.esm-1c13d908.js +0 -2896
  289. package/dist/sortable.esm-8d31c120.js +0 -1275
  290. package/dist/styles-85a9fe64.js +0 -136
  291. package/dist/useAlign-916ed3be.js +0 -44
  292. package/dist/useDelayEvent-f577f6a3.js +0 -1082
  293. package/dist/useTheme-0688f238.js +0 -16
@@ -1,1082 +0,0 @@
1
- "use client";
2
- import * as G from "react";
3
- import { useState as et, useEffect as tt, useRef as yt } from "react";
4
- import * as gt from "react-dom";
5
- import { g as wt } from "./_commonjsHelpers-1d52fb73.js";
6
- const Lr = () => {
7
- const [e, t] = et(!1);
8
- return tt(() => {
9
- t(!0);
10
- }, []), {
11
- isClient: e
12
- };
13
- };
14
- var Ne = function(t) {
15
- return t.reduce(function(r, n) {
16
- var a = n[0], o = n[1];
17
- return r[a] = o, r;
18
- }, {});
19
- }, Ue = typeof window < "u" && window.document && window.document.createElement ? G.useLayoutEffect : G.useEffect, j = "top", T = "bottom", L = "right", B = "left", De = "auto", ue = [j, T, L, B], Z = "start", se = "end", bt = "clippingParents", rt = "viewport", ae = "popper", xt = "reference", ze = /* @__PURE__ */ ue.reduce(function(e, t) {
20
- return e.concat([t + "-" + Z, t + "-" + se]);
21
- }, []), nt = /* @__PURE__ */ [].concat(ue, [De]).reduce(function(e, t) {
22
- return e.concat([t, t + "-" + Z, t + "-" + se]);
23
- }, []), Ot = "beforeRead", Et = "read", At = "afterRead", Pt = "beforeMain", St = "main", Dt = "afterMain", Rt = "beforeWrite", jt = "write", Bt = "afterWrite", Ct = [Ot, Et, At, Pt, St, Dt, Rt, jt, Bt];
24
- function F(e) {
25
- return e ? (e.nodeName || "").toLowerCase() : null;
26
- }
27
- function $(e) {
28
- if (e == null)
29
- return window;
30
- if (e.toString() !== "[object Window]") {
31
- var t = e.ownerDocument;
32
- return t && t.defaultView || window;
33
- }
34
- return e;
35
- }
36
- function K(e) {
37
- var t = $(e).Element;
38
- return e instanceof t || e instanceof Element;
39
- }
40
- function M(e) {
41
- var t = $(e).HTMLElement;
42
- return e instanceof t || e instanceof HTMLElement;
43
- }
44
- function Re(e) {
45
- if (typeof ShadowRoot > "u")
46
- return !1;
47
- var t = $(e).ShadowRoot;
48
- return e instanceof t || e instanceof ShadowRoot;
49
- }
50
- function $t(e) {
51
- var t = e.state;
52
- Object.keys(t.elements).forEach(function(r) {
53
- var n = t.styles[r] || {}, a = t.attributes[r] || {}, o = t.elements[r];
54
- !M(o) || !F(o) || (Object.assign(o.style, n), Object.keys(a).forEach(function(u) {
55
- var s = a[u];
56
- s === !1 ? o.removeAttribute(u) : o.setAttribute(u, s === !0 ? "" : s);
57
- }));
58
- });
59
- }
60
- function Mt(e) {
61
- var t = e.state, r = {
62
- popper: {
63
- position: t.options.strategy,
64
- left: "0",
65
- top: "0",
66
- margin: "0"
67
- },
68
- arrow: {
69
- position: "absolute"
70
- },
71
- reference: {}
72
- };
73
- return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
74
- Object.keys(t.elements).forEach(function(n) {
75
- var a = t.elements[n], o = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = u.reduce(function(i, c) {
76
- return i[c] = "", i;
77
- }, {});
78
- !M(a) || !F(a) || (Object.assign(a.style, s), Object.keys(o).forEach(function(i) {
79
- a.removeAttribute(i);
80
- }));
81
- });
82
- };
83
- }
84
- const Tt = {
85
- name: "applyStyles",
86
- enabled: !0,
87
- phase: "write",
88
- fn: $t,
89
- effect: Mt,
90
- requires: ["computeStyles"]
91
- };
92
- function H(e) {
93
- return e.split("-")[0];
94
- }
95
- var J = Math.max, we = Math.min, _ = Math.round;
96
- function Pe() {
97
- var e = navigator.userAgentData;
98
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
99
- return t.brand + "/" + t.version;
100
- }).join(" ") : navigator.userAgent;
101
- }
102
- function at() {
103
- return !/^((?!chrome|android).)*safari/i.test(Pe());
104
- }
105
- function ee(e, t, r) {
106
- t === void 0 && (t = !1), r === void 0 && (r = !1);
107
- var n = e.getBoundingClientRect(), a = 1, o = 1;
108
- t && M(e) && (a = e.offsetWidth > 0 && _(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && _(n.height) / e.offsetHeight || 1);
109
- var u = K(e) ? $(e) : window, s = u.visualViewport, i = !at() && r, c = (n.left + (i && s ? s.offsetLeft : 0)) / a, f = (n.top + (i && s ? s.offsetTop : 0)) / o, l = n.width / a, m = n.height / o;
110
- return {
111
- width: l,
112
- height: m,
113
- top: f,
114
- right: c + l,
115
- bottom: f + m,
116
- left: c,
117
- x: c,
118
- y: f
119
- };
120
- }
121
- function je(e) {
122
- var t = ee(e), r = e.offsetWidth, n = e.offsetHeight;
123
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
124
- x: e.offsetLeft,
125
- y: e.offsetTop,
126
- width: r,
127
- height: n
128
- };
129
- }
130
- function ot(e, t) {
131
- var r = t.getRootNode && t.getRootNode();
132
- if (e.contains(t))
133
- return !0;
134
- if (r && Re(r)) {
135
- var n = t;
136
- do {
137
- if (n && e.isSameNode(n))
138
- return !0;
139
- n = n.parentNode || n.host;
140
- } while (n);
141
- }
142
- return !1;
143
- }
144
- function V(e) {
145
- return $(e).getComputedStyle(e);
146
- }
147
- function Lt(e) {
148
- return ["table", "td", "th"].indexOf(F(e)) >= 0;
149
- }
150
- function I(e) {
151
- return ((K(e) ? e.ownerDocument : (
152
- // $FlowFixMe[prop-missing]
153
- e.document
154
- )) || window.document).documentElement;
155
- }
156
- function be(e) {
157
- return F(e) === "html" ? e : (
158
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
159
- // $FlowFixMe[incompatible-return]
160
- // $FlowFixMe[prop-missing]
161
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
162
- e.parentNode || // DOM Element detected
163
- (Re(e) ? e.host : null) || // ShadowRoot detected
164
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
165
- I(e)
166
- );
167
- }
168
- function Xe(e) {
169
- return !M(e) || // https://github.com/popperjs/popper-core/issues/837
170
- V(e).position === "fixed" ? null : e.offsetParent;
171
- }
172
- function kt(e) {
173
- var t = /firefox/i.test(Pe()), r = /Trident/i.test(Pe());
174
- if (r && M(e)) {
175
- var n = V(e);
176
- if (n.position === "fixed")
177
- return null;
178
- }
179
- var a = be(e);
180
- for (Re(a) && (a = a.host); M(a) && ["html", "body"].indexOf(F(a)) < 0; ) {
181
- var o = V(a);
182
- if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
183
- return a;
184
- a = a.parentNode;
185
- }
186
- return null;
187
- }
188
- function ce(e) {
189
- for (var t = $(e), r = Xe(e); r && Lt(r) && V(r).position === "static"; )
190
- r = Xe(r);
191
- return r && (F(r) === "html" || F(r) === "body" && V(r).position === "static") ? t : r || kt(e) || t;
192
- }
193
- function Be(e) {
194
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
195
- }
196
- function oe(e, t, r) {
197
- return J(e, we(t, r));
198
- }
199
- function Wt(e, t, r) {
200
- var n = oe(e, t, r);
201
- return n > r ? r : n;
202
- }
203
- function it() {
204
- return {
205
- top: 0,
206
- right: 0,
207
- bottom: 0,
208
- left: 0
209
- };
210
- }
211
- function st(e) {
212
- return Object.assign({}, it(), e);
213
- }
214
- function ft(e, t) {
215
- return t.reduce(function(r, n) {
216
- return r[n] = e, r;
217
- }, {});
218
- }
219
- var Ht = function(t, r) {
220
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
221
- placement: r.placement
222
- })) : t, st(typeof t != "number" ? t : ft(t, ue));
223
- };
224
- function Ft(e) {
225
- var t, r = e.state, n = e.name, a = e.options, o = r.elements.arrow, u = r.modifiersData.popperOffsets, s = H(r.placement), i = Be(s), c = [B, L].indexOf(s) >= 0, f = c ? "height" : "width";
226
- if (!(!o || !u)) {
227
- var l = Ht(a.padding, r), m = je(o), p = i === "y" ? j : B, y = i === "y" ? T : L, h = r.rects.reference[f] + r.rects.reference[i] - u[i] - r.rects.popper[f], v = u[i] - r.rects.reference[i], b = ce(o), O = b ? i === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, E = h / 2 - v / 2, d = l[p], g = O - m[f] - l[y], w = O / 2 - m[f] / 2 + E, x = oe(d, w, g), S = i;
228
- r.modifiersData[n] = (t = {}, t[S] = x, t.centerOffset = x - w, t);
229
- }
230
- }
231
- function Vt(e) {
232
- var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
233
- a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || ot(t.elements.popper, a) && (t.elements.arrow = a));
234
- }
235
- const qt = {
236
- name: "arrow",
237
- enabled: !0,
238
- phase: "main",
239
- fn: Ft,
240
- effect: Vt,
241
- requires: ["popperOffsets"],
242
- requiresIfExists: ["preventOverflow"]
243
- };
244
- function te(e) {
245
- return e.split("-")[1];
246
- }
247
- var It = {
248
- top: "auto",
249
- right: "auto",
250
- bottom: "auto",
251
- left: "auto"
252
- };
253
- function Nt(e, t) {
254
- var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
255
- return {
256
- x: _(r * a) / a || 0,
257
- y: _(n * a) / a || 0
258
- };
259
- }
260
- function Ye(e) {
261
- var t, r = e.popper, n = e.popperRect, a = e.placement, o = e.variation, u = e.offsets, s = e.position, i = e.gpuAcceleration, c = e.adaptive, f = e.roundOffsets, l = e.isFixed, m = u.x, p = m === void 0 ? 0 : m, y = u.y, h = y === void 0 ? 0 : y, v = typeof f == "function" ? f({
262
- x: p,
263
- y: h
264
- }) : {
265
- x: p,
266
- y: h
267
- };
268
- p = v.x, h = v.y;
269
- var b = u.hasOwnProperty("x"), O = u.hasOwnProperty("y"), E = B, d = j, g = window;
270
- if (c) {
271
- var w = ce(r), x = "clientHeight", S = "clientWidth";
272
- if (w === $(r) && (w = I(r), V(w).position !== "static" && s === "absolute" && (x = "scrollHeight", S = "scrollWidth")), w = w, a === j || (a === B || a === L) && o === se) {
273
- d = T;
274
- var P = l && w === g && g.visualViewport ? g.visualViewport.height : (
275
- // $FlowFixMe[prop-missing]
276
- w[x]
277
- );
278
- h -= P - n.height, h *= i ? 1 : -1;
279
- }
280
- if (a === B || (a === j || a === T) && o === se) {
281
- E = L;
282
- var A = l && w === g && g.visualViewport ? g.visualViewport.width : (
283
- // $FlowFixMe[prop-missing]
284
- w[S]
285
- );
286
- p -= A - n.width, p *= i ? 1 : -1;
287
- }
288
- }
289
- var D = Object.assign({
290
- position: s
291
- }, c && It), k = f === !0 ? Nt({
292
- x: p,
293
- y: h
294
- }, $(r)) : {
295
- x: p,
296
- y: h
297
- };
298
- if (p = k.x, h = k.y, i) {
299
- var R;
300
- return Object.assign({}, D, (R = {}, R[d] = O ? "0" : "", R[E] = b ? "0" : "", R.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", R));
301
- }
302
- return Object.assign({}, D, (t = {}, t[d] = O ? h + "px" : "", t[E] = b ? p + "px" : "", t.transform = "", t));
303
- }
304
- function Ut(e) {
305
- var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, o = r.adaptive, u = o === void 0 ? !0 : o, s = r.roundOffsets, i = s === void 0 ? !0 : s, c = {
306
- placement: H(t.placement),
307
- variation: te(t.placement),
308
- popper: t.elements.popper,
309
- popperRect: t.rects.popper,
310
- gpuAcceleration: a,
311
- isFixed: t.options.strategy === "fixed"
312
- };
313
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ye(Object.assign({}, c, {
314
- offsets: t.modifiersData.popperOffsets,
315
- position: t.options.strategy,
316
- adaptive: u,
317
- roundOffsets: i
318
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ye(Object.assign({}, c, {
319
- offsets: t.modifiersData.arrow,
320
- position: "absolute",
321
- adaptive: !1,
322
- roundOffsets: i
323
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
324
- "data-popper-placement": t.placement
325
- });
326
- }
327
- const zt = {
328
- name: "computeStyles",
329
- enabled: !0,
330
- phase: "beforeWrite",
331
- fn: Ut,
332
- data: {}
333
- };
334
- var he = {
335
- passive: !0
336
- };
337
- function Xt(e) {
338
- var t = e.state, r = e.instance, n = e.options, a = n.scroll, o = a === void 0 ? !0 : a, u = n.resize, s = u === void 0 ? !0 : u, i = $(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
339
- return o && c.forEach(function(f) {
340
- f.addEventListener("scroll", r.update, he);
341
- }), s && i.addEventListener("resize", r.update, he), function() {
342
- o && c.forEach(function(f) {
343
- f.removeEventListener("scroll", r.update, he);
344
- }), s && i.removeEventListener("resize", r.update, he);
345
- };
346
- }
347
- const Yt = {
348
- name: "eventListeners",
349
- enabled: !0,
350
- phase: "write",
351
- fn: function() {
352
- },
353
- effect: Xt,
354
- data: {}
355
- };
356
- var Gt = {
357
- left: "right",
358
- right: "left",
359
- bottom: "top",
360
- top: "bottom"
361
- };
362
- function ye(e) {
363
- return e.replace(/left|right|bottom|top/g, function(t) {
364
- return Gt[t];
365
- });
366
- }
367
- var Jt = {
368
- start: "end",
369
- end: "start"
370
- };
371
- function Ge(e) {
372
- return e.replace(/start|end/g, function(t) {
373
- return Jt[t];
374
- });
375
- }
376
- function Ce(e) {
377
- var t = $(e), r = t.pageXOffset, n = t.pageYOffset;
378
- return {
379
- scrollLeft: r,
380
- scrollTop: n
381
- };
382
- }
383
- function $e(e) {
384
- return ee(I(e)).left + Ce(e).scrollLeft;
385
- }
386
- function Kt(e, t) {
387
- var r = $(e), n = I(e), a = r.visualViewport, o = n.clientWidth, u = n.clientHeight, s = 0, i = 0;
388
- if (a) {
389
- o = a.width, u = a.height;
390
- var c = at();
391
- (c || !c && t === "fixed") && (s = a.offsetLeft, i = a.offsetTop);
392
- }
393
- return {
394
- width: o,
395
- height: u,
396
- x: s + $e(e),
397
- y: i
398
- };
399
- }
400
- function Qt(e) {
401
- var t, r = I(e), n = Ce(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, o = J(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = J(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + $e(e), i = -n.scrollTop;
402
- return V(a || r).direction === "rtl" && (s += J(r.clientWidth, a ? a.clientWidth : 0) - o), {
403
- width: o,
404
- height: u,
405
- x: s,
406
- y: i
407
- };
408
- }
409
- function Me(e) {
410
- var t = V(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
411
- return /auto|scroll|overlay|hidden/.test(r + a + n);
412
- }
413
- function ut(e) {
414
- return ["html", "body", "#document"].indexOf(F(e)) >= 0 ? e.ownerDocument.body : M(e) && Me(e) ? e : ut(be(e));
415
- }
416
- function ie(e, t) {
417
- var r;
418
- t === void 0 && (t = []);
419
- var n = ut(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), o = $(n), u = a ? [o].concat(o.visualViewport || [], Me(n) ? n : []) : n, s = t.concat(u);
420
- return a ? s : (
421
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
422
- s.concat(ie(be(u)))
423
- );
424
- }
425
- function Se(e) {
426
- return Object.assign({}, e, {
427
- left: e.x,
428
- top: e.y,
429
- right: e.x + e.width,
430
- bottom: e.y + e.height
431
- });
432
- }
433
- function Zt(e, t) {
434
- var r = ee(e, !1, t === "fixed");
435
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
436
- }
437
- function Je(e, t, r) {
438
- return t === rt ? Se(Kt(e, r)) : K(t) ? Zt(t, r) : Se(Qt(I(e)));
439
- }
440
- function _t(e) {
441
- var t = ie(be(e)), r = ["absolute", "fixed"].indexOf(V(e).position) >= 0, n = r && M(e) ? ce(e) : e;
442
- return K(n) ? t.filter(function(a) {
443
- return K(a) && ot(a, n) && F(a) !== "body";
444
- }) : [];
445
- }
446
- function er(e, t, r, n) {
447
- var a = t === "clippingParents" ? _t(e) : [].concat(t), o = [].concat(a, [r]), u = o[0], s = o.reduce(function(i, c) {
448
- var f = Je(e, c, n);
449
- return i.top = J(f.top, i.top), i.right = we(f.right, i.right), i.bottom = we(f.bottom, i.bottom), i.left = J(f.left, i.left), i;
450
- }, Je(e, u, n));
451
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
452
- }
453
- function ct(e) {
454
- var t = e.reference, r = e.element, n = e.placement, a = n ? H(n) : null, o = n ? te(n) : null, u = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, i;
455
- switch (a) {
456
- case j:
457
- i = {
458
- x: u,
459
- y: t.y - r.height
460
- };
461
- break;
462
- case T:
463
- i = {
464
- x: u,
465
- y: t.y + t.height
466
- };
467
- break;
468
- case L:
469
- i = {
470
- x: t.x + t.width,
471
- y: s
472
- };
473
- break;
474
- case B:
475
- i = {
476
- x: t.x - r.width,
477
- y: s
478
- };
479
- break;
480
- default:
481
- i = {
482
- x: t.x,
483
- y: t.y
484
- };
485
- }
486
- var c = a ? Be(a) : null;
487
- if (c != null) {
488
- var f = c === "y" ? "height" : "width";
489
- switch (o) {
490
- case Z:
491
- i[c] = i[c] - (t[f] / 2 - r[f] / 2);
492
- break;
493
- case se:
494
- i[c] = i[c] + (t[f] / 2 - r[f] / 2);
495
- break;
496
- }
497
- }
498
- return i;
499
- }
500
- function fe(e, t) {
501
- t === void 0 && (t = {});
502
- var r = t, n = r.placement, a = n === void 0 ? e.placement : n, o = r.strategy, u = o === void 0 ? e.strategy : o, s = r.boundary, i = s === void 0 ? bt : s, c = r.rootBoundary, f = c === void 0 ? rt : c, l = r.elementContext, m = l === void 0 ? ae : l, p = r.altBoundary, y = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = st(typeof v != "number" ? v : ft(v, ue)), O = m === ae ? xt : ae, E = e.rects.popper, d = e.elements[y ? O : m], g = er(K(d) ? d : d.contextElement || I(e.elements.popper), i, f, u), w = ee(e.elements.reference), x = ct({
503
- reference: w,
504
- element: E,
505
- strategy: "absolute",
506
- placement: a
507
- }), S = Se(Object.assign({}, E, x)), P = m === ae ? S : w, A = {
508
- top: g.top - P.top + b.top,
509
- bottom: P.bottom - g.bottom + b.bottom,
510
- left: g.left - P.left + b.left,
511
- right: P.right - g.right + b.right
512
- }, D = e.modifiersData.offset;
513
- if (m === ae && D) {
514
- var k = D[a];
515
- Object.keys(A).forEach(function(R) {
516
- var N = [L, T].indexOf(R) >= 0 ? 1 : -1, U = [j, T].indexOf(R) >= 0 ? "y" : "x";
517
- A[R] += k[U] * N;
518
- });
519
- }
520
- return A;
521
- }
522
- function tr(e, t) {
523
- t === void 0 && (t = {});
524
- var r = t, n = r.placement, a = r.boundary, o = r.rootBoundary, u = r.padding, s = r.flipVariations, i = r.allowedAutoPlacements, c = i === void 0 ? nt : i, f = te(n), l = f ? s ? ze : ze.filter(function(y) {
525
- return te(y) === f;
526
- }) : ue, m = l.filter(function(y) {
527
- return c.indexOf(y) >= 0;
528
- });
529
- m.length === 0 && (m = l);
530
- var p = m.reduce(function(y, h) {
531
- return y[h] = fe(e, {
532
- placement: h,
533
- boundary: a,
534
- rootBoundary: o,
535
- padding: u
536
- })[H(h)], y;
537
- }, {});
538
- return Object.keys(p).sort(function(y, h) {
539
- return p[y] - p[h];
540
- });
541
- }
542
- function rr(e) {
543
- if (H(e) === De)
544
- return [];
545
- var t = ye(e);
546
- return [Ge(e), t, Ge(t)];
547
- }
548
- function nr(e) {
549
- var t = e.state, r = e.options, n = e.name;
550
- if (!t.modifiersData[n]._skip) {
551
- for (var a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !0 : u, i = r.fallbackPlacements, c = r.padding, f = r.boundary, l = r.rootBoundary, m = r.altBoundary, p = r.flipVariations, y = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = H(v), O = b === v, E = i || (O || !y ? [ye(v)] : rr(v)), d = [v].concat(E).reduce(function(Q, q) {
552
- return Q.concat(H(q) === De ? tr(t, {
553
- placement: q,
554
- boundary: f,
555
- rootBoundary: l,
556
- padding: c,
557
- flipVariations: y,
558
- allowedAutoPlacements: h
559
- }) : q);
560
- }, []), g = t.rects.reference, w = t.rects.popper, x = /* @__PURE__ */ new Map(), S = !0, P = d[0], A = 0; A < d.length; A++) {
561
- var D = d[A], k = H(D), R = te(D) === Z, N = [j, T].indexOf(k) >= 0, U = N ? "width" : "height", C = fe(t, {
562
- placement: D,
563
- boundary: f,
564
- rootBoundary: l,
565
- altBoundary: m,
566
- padding: c
567
- }), W = N ? R ? L : B : R ? T : j;
568
- g[U] > w[U] && (W = ye(W));
569
- var pe = ye(W), z = [];
570
- if (o && z.push(C[k] <= 0), s && z.push(C[W] <= 0, C[pe] <= 0), z.every(function(Q) {
571
- return Q;
572
- })) {
573
- P = D, S = !1;
574
- break;
575
- }
576
- x.set(D, z);
577
- }
578
- if (S)
579
- for (var le = y ? 3 : 1, xe = function(q) {
580
- var ne = d.find(function(de) {
581
- var X = x.get(de);
582
- if (X)
583
- return X.slice(0, q).every(function(Oe) {
584
- return Oe;
585
- });
586
- });
587
- if (ne)
588
- return P = ne, "break";
589
- }, re = le; re > 0; re--) {
590
- var ve = xe(re);
591
- if (ve === "break")
592
- break;
593
- }
594
- t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
595
- }
596
- }
597
- const ar = {
598
- name: "flip",
599
- enabled: !0,
600
- phase: "main",
601
- fn: nr,
602
- requiresIfExists: ["offset"],
603
- data: {
604
- _skip: !1
605
- }
606
- };
607
- function Ke(e, t, r) {
608
- return r === void 0 && (r = {
609
- x: 0,
610
- y: 0
611
- }), {
612
- top: e.top - t.height - r.y,
613
- right: e.right - t.width + r.x,
614
- bottom: e.bottom - t.height + r.y,
615
- left: e.left - t.width - r.x
616
- };
617
- }
618
- function Qe(e) {
619
- return [j, L, T, B].some(function(t) {
620
- return e[t] >= 0;
621
- });
622
- }
623
- function or(e) {
624
- var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, o = t.modifiersData.preventOverflow, u = fe(t, {
625
- elementContext: "reference"
626
- }), s = fe(t, {
627
- altBoundary: !0
628
- }), i = Ke(u, n), c = Ke(s, a, o), f = Qe(i), l = Qe(c);
629
- t.modifiersData[r] = {
630
- referenceClippingOffsets: i,
631
- popperEscapeOffsets: c,
632
- isReferenceHidden: f,
633
- hasPopperEscaped: l
634
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
635
- "data-popper-reference-hidden": f,
636
- "data-popper-escaped": l
637
- });
638
- }
639
- const ir = {
640
- name: "hide",
641
- enabled: !0,
642
- phase: "main",
643
- requiresIfExists: ["preventOverflow"],
644
- fn: or
645
- };
646
- function sr(e, t, r) {
647
- var n = H(e), a = [B, j].indexOf(n) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
648
- placement: e
649
- })) : r, u = o[0], s = o[1];
650
- return u = u || 0, s = (s || 0) * a, [B, L].indexOf(n) >= 0 ? {
651
- x: s,
652
- y: u
653
- } : {
654
- x: u,
655
- y: s
656
- };
657
- }
658
- function fr(e) {
659
- var t = e.state, r = e.options, n = e.name, a = r.offset, o = a === void 0 ? [0, 0] : a, u = nt.reduce(function(f, l) {
660
- return f[l] = sr(l, t.rects, o), f;
661
- }, {}), s = u[t.placement], i = s.x, c = s.y;
662
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = u;
663
- }
664
- const ur = {
665
- name: "offset",
666
- enabled: !0,
667
- phase: "main",
668
- requires: ["popperOffsets"],
669
- fn: fr
670
- };
671
- function cr(e) {
672
- var t = e.state, r = e.name;
673
- t.modifiersData[r] = ct({
674
- reference: t.rects.reference,
675
- element: t.rects.popper,
676
- strategy: "absolute",
677
- placement: t.placement
678
- });
679
- }
680
- const pr = {
681
- name: "popperOffsets",
682
- enabled: !0,
683
- phase: "read",
684
- fn: cr,
685
- data: {}
686
- };
687
- function lr(e) {
688
- return e === "x" ? "y" : "x";
689
- }
690
- function vr(e) {
691
- var t = e.state, r = e.options, n = e.name, a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !1 : u, i = r.boundary, c = r.rootBoundary, f = r.altBoundary, l = r.padding, m = r.tether, p = m === void 0 ? !0 : m, y = r.tetherOffset, h = y === void 0 ? 0 : y, v = fe(t, {
692
- boundary: i,
693
- rootBoundary: c,
694
- padding: l,
695
- altBoundary: f
696
- }), b = H(t.placement), O = te(t.placement), E = !O, d = Be(b), g = lr(d), w = t.modifiersData.popperOffsets, x = t.rects.reference, S = t.rects.popper, P = typeof h == "function" ? h(Object.assign({}, t.rects, {
697
- placement: t.placement
698
- })) : h, A = typeof P == "number" ? {
699
- mainAxis: P,
700
- altAxis: P
701
- } : Object.assign({
702
- mainAxis: 0,
703
- altAxis: 0
704
- }, P), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, k = {
705
- x: 0,
706
- y: 0
707
- };
708
- if (w) {
709
- if (o) {
710
- var R, N = d === "y" ? j : B, U = d === "y" ? T : L, C = d === "y" ? "height" : "width", W = w[d], pe = W + v[N], z = W - v[U], le = p ? -S[C] / 2 : 0, xe = O === Z ? x[C] : S[C], re = O === Z ? -S[C] : -x[C], ve = t.elements.arrow, Q = p && ve ? je(ve) : {
711
- width: 0,
712
- height: 0
713
- }, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : it(), ne = q[N], de = q[U], X = oe(0, x[C], Q[C]), Oe = E ? x[C] / 2 - le - X - ne - A.mainAxis : xe - X - ne - A.mainAxis, pt = E ? -x[C] / 2 + le + X + de + A.mainAxis : re + X + de + A.mainAxis, Ee = t.elements.arrow && ce(t.elements.arrow), lt = Ee ? d === "y" ? Ee.clientTop || 0 : Ee.clientLeft || 0 : 0, Te = (R = D == null ? void 0 : D[d]) != null ? R : 0, vt = W + Oe - Te - lt, dt = W + pt - Te, Le = oe(p ? we(pe, vt) : pe, W, p ? J(z, dt) : z);
714
- w[d] = Le, k[d] = Le - W;
715
- }
716
- if (s) {
717
- var ke, mt = d === "x" ? j : B, ht = d === "x" ? T : L, Y = w[g], me = g === "y" ? "height" : "width", We = Y + v[mt], He = Y - v[ht], Ae = [j, B].indexOf(b) !== -1, Fe = (ke = D == null ? void 0 : D[g]) != null ? ke : 0, Ve = Ae ? We : Y - x[me] - S[me] - Fe + A.altAxis, qe = Ae ? Y + x[me] + S[me] - Fe - A.altAxis : He, Ie = p && Ae ? Wt(Ve, Y, qe) : oe(p ? Ve : We, Y, p ? qe : He);
718
- w[g] = Ie, k[g] = Ie - Y;
719
- }
720
- t.modifiersData[n] = k;
721
- }
722
- }
723
- const dr = {
724
- name: "preventOverflow",
725
- enabled: !0,
726
- phase: "main",
727
- fn: vr,
728
- requiresIfExists: ["offset"]
729
- };
730
- function mr(e) {
731
- return {
732
- scrollLeft: e.scrollLeft,
733
- scrollTop: e.scrollTop
734
- };
735
- }
736
- function hr(e) {
737
- return e === $(e) || !M(e) ? Ce(e) : mr(e);
738
- }
739
- function yr(e) {
740
- var t = e.getBoundingClientRect(), r = _(t.width) / e.offsetWidth || 1, n = _(t.height) / e.offsetHeight || 1;
741
- return r !== 1 || n !== 1;
742
- }
743
- function gr(e, t, r) {
744
- r === void 0 && (r = !1);
745
- var n = M(t), a = M(t) && yr(t), o = I(t), u = ee(e, a, r), s = {
746
- scrollLeft: 0,
747
- scrollTop: 0
748
- }, i = {
749
- x: 0,
750
- y: 0
751
- };
752
- return (n || !n && !r) && ((F(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
753
- Me(o)) && (s = hr(t)), M(t) ? (i = ee(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : o && (i.x = $e(o))), {
754
- x: u.left + s.scrollLeft - i.x,
755
- y: u.top + s.scrollTop - i.y,
756
- width: u.width,
757
- height: u.height
758
- };
759
- }
760
- function wr(e) {
761
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
762
- e.forEach(function(o) {
763
- t.set(o.name, o);
764
- });
765
- function a(o) {
766
- r.add(o.name);
767
- var u = [].concat(o.requires || [], o.requiresIfExists || []);
768
- u.forEach(function(s) {
769
- if (!r.has(s)) {
770
- var i = t.get(s);
771
- i && a(i);
772
- }
773
- }), n.push(o);
774
- }
775
- return e.forEach(function(o) {
776
- r.has(o.name) || a(o);
777
- }), n;
778
- }
779
- function br(e) {
780
- var t = wr(e);
781
- return Ct.reduce(function(r, n) {
782
- return r.concat(t.filter(function(a) {
783
- return a.phase === n;
784
- }));
785
- }, []);
786
- }
787
- function xr(e) {
788
- var t;
789
- return function() {
790
- return t || (t = new Promise(function(r) {
791
- Promise.resolve().then(function() {
792
- t = void 0, r(e());
793
- });
794
- })), t;
795
- };
796
- }
797
- function Or(e) {
798
- var t = e.reduce(function(r, n) {
799
- var a = r[n.name];
800
- return r[n.name] = a ? Object.assign({}, a, n, {
801
- options: Object.assign({}, a.options, n.options),
802
- data: Object.assign({}, a.data, n.data)
803
- }) : n, r;
804
- }, {});
805
- return Object.keys(t).map(function(r) {
806
- return t[r];
807
- });
808
- }
809
- var Ze = {
810
- placement: "bottom",
811
- modifiers: [],
812
- strategy: "absolute"
813
- };
814
- function _e() {
815
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
816
- t[r] = arguments[r];
817
- return !t.some(function(n) {
818
- return !(n && typeof n.getBoundingClientRect == "function");
819
- });
820
- }
821
- function Er(e) {
822
- e === void 0 && (e = {});
823
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, o = a === void 0 ? Ze : a;
824
- return function(s, i, c) {
825
- c === void 0 && (c = o);
826
- var f = {
827
- placement: "bottom",
828
- orderedModifiers: [],
829
- options: Object.assign({}, Ze, o),
830
- modifiersData: {},
831
- elements: {
832
- reference: s,
833
- popper: i
834
- },
835
- attributes: {},
836
- styles: {}
837
- }, l = [], m = !1, p = {
838
- state: f,
839
- setOptions: function(b) {
840
- var O = typeof b == "function" ? b(f.options) : b;
841
- h(), f.options = Object.assign({}, o, f.options, O), f.scrollParents = {
842
- reference: K(s) ? ie(s) : s.contextElement ? ie(s.contextElement) : [],
843
- popper: ie(i)
844
- };
845
- var E = br(Or([].concat(n, f.options.modifiers)));
846
- return f.orderedModifiers = E.filter(function(d) {
847
- return d.enabled;
848
- }), y(), p.update();
849
- },
850
- // Sync update – it will always be executed, even if not necessary. This
851
- // is useful for low frequency updates where sync behavior simplifies the
852
- // logic.
853
- // For high frequency updates (e.g. `resize` and `scroll` events), always
854
- // prefer the async Popper#update method
855
- forceUpdate: function() {
856
- if (!m) {
857
- var b = f.elements, O = b.reference, E = b.popper;
858
- if (_e(O, E)) {
859
- f.rects = {
860
- reference: gr(O, ce(E), f.options.strategy === "fixed"),
861
- popper: je(E)
862
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(A) {
863
- return f.modifiersData[A.name] = Object.assign({}, A.data);
864
- });
865
- for (var d = 0; d < f.orderedModifiers.length; d++) {
866
- if (f.reset === !0) {
867
- f.reset = !1, d = -1;
868
- continue;
869
- }
870
- var g = f.orderedModifiers[d], w = g.fn, x = g.options, S = x === void 0 ? {} : x, P = g.name;
871
- typeof w == "function" && (f = w({
872
- state: f,
873
- options: S,
874
- name: P,
875
- instance: p
876
- }) || f);
877
- }
878
- }
879
- }
880
- },
881
- // Async and optimistically optimized update – it will not be executed if
882
- // not necessary (debounced to run at most once-per-tick)
883
- update: xr(function() {
884
- return new Promise(function(v) {
885
- p.forceUpdate(), v(f);
886
- });
887
- }),
888
- destroy: function() {
889
- h(), m = !0;
890
- }
891
- };
892
- if (!_e(s, i))
893
- return p;
894
- p.setOptions(c).then(function(v) {
895
- !m && c.onFirstUpdate && c.onFirstUpdate(v);
896
- });
897
- function y() {
898
- f.orderedModifiers.forEach(function(v) {
899
- var b = v.name, O = v.options, E = O === void 0 ? {} : O, d = v.effect;
900
- if (typeof d == "function") {
901
- var g = d({
902
- state: f,
903
- name: b,
904
- instance: p,
905
- options: E
906
- }), w = function() {
907
- };
908
- l.push(g || w);
909
- }
910
- });
911
- }
912
- function h() {
913
- l.forEach(function(v) {
914
- return v();
915
- }), l = [];
916
- }
917
- return p;
918
- };
919
- }
920
- var Ar = [Yt, pr, zt, Tt, ur, ar, dr, qt, ir], Pr = /* @__PURE__ */ Er({
921
- defaultModifiers: Ar
922
- }), Sr = typeof Element < "u", Dr = typeof Map == "function", Rr = typeof Set == "function", jr = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
923
- function ge(e, t) {
924
- if (e === t)
925
- return !0;
926
- if (e && t && typeof e == "object" && typeof t == "object") {
927
- if (e.constructor !== t.constructor)
928
- return !1;
929
- var r, n, a;
930
- if (Array.isArray(e)) {
931
- if (r = e.length, r != t.length)
932
- return !1;
933
- for (n = r; n-- !== 0; )
934
- if (!ge(e[n], t[n]))
935
- return !1;
936
- return !0;
937
- }
938
- var o;
939
- if (Dr && e instanceof Map && t instanceof Map) {
940
- if (e.size !== t.size)
941
- return !1;
942
- for (o = e.entries(); !(n = o.next()).done; )
943
- if (!t.has(n.value[0]))
944
- return !1;
945
- for (o = e.entries(); !(n = o.next()).done; )
946
- if (!ge(n.value[1], t.get(n.value[0])))
947
- return !1;
948
- return !0;
949
- }
950
- if (Rr && e instanceof Set && t instanceof Set) {
951
- if (e.size !== t.size)
952
- return !1;
953
- for (o = e.entries(); !(n = o.next()).done; )
954
- if (!t.has(n.value[0]))
955
- return !1;
956
- return !0;
957
- }
958
- if (jr && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
959
- if (r = e.length, r != t.length)
960
- return !1;
961
- for (n = r; n-- !== 0; )
962
- if (e[n] !== t[n])
963
- return !1;
964
- return !0;
965
- }
966
- if (e.constructor === RegExp)
967
- return e.source === t.source && e.flags === t.flags;
968
- if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function")
969
- return e.valueOf() === t.valueOf();
970
- if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function")
971
- return e.toString() === t.toString();
972
- if (a = Object.keys(e), r = a.length, r !== Object.keys(t).length)
973
- return !1;
974
- for (n = r; n-- !== 0; )
975
- if (!Object.prototype.hasOwnProperty.call(t, a[n]))
976
- return !1;
977
- if (Sr && e instanceof Element)
978
- return !1;
979
- for (n = r; n-- !== 0; )
980
- if (!((a[n] === "_owner" || a[n] === "__v" || a[n] === "__o") && e.$$typeof) && !ge(e[a[n]], t[a[n]]))
981
- return !1;
982
- return !0;
983
- }
984
- return e !== e && t !== t;
985
- }
986
- var Br = function(t, r) {
987
- try {
988
- return ge(t, r);
989
- } catch (n) {
990
- if ((n.message || "").match(/stack|recursion/i))
991
- return console.warn("react-fast-compare cannot handle circular refs"), !1;
992
- throw n;
993
- }
994
- };
995
- const Cr = /* @__PURE__ */ wt(Br);
996
- var $r = [], kr = function(t, r, n) {
997
- n === void 0 && (n = {});
998
- var a = G.useRef(null), o = {
999
- onFirstUpdate: n.onFirstUpdate,
1000
- placement: n.placement || "bottom",
1001
- strategy: n.strategy || "absolute",
1002
- modifiers: n.modifiers || $r
1003
- }, u = G.useState({
1004
- styles: {
1005
- popper: {
1006
- position: o.strategy,
1007
- left: "0",
1008
- top: "0"
1009
- },
1010
- arrow: {
1011
- position: "absolute"
1012
- }
1013
- },
1014
- attributes: {}
1015
- }), s = u[0], i = u[1], c = G.useMemo(function() {
1016
- return {
1017
- name: "updateState",
1018
- enabled: !0,
1019
- phase: "write",
1020
- fn: function(p) {
1021
- var y = p.state, h = Object.keys(y.elements);
1022
- gt.flushSync(function() {
1023
- i({
1024
- styles: Ne(h.map(function(v) {
1025
- return [v, y.styles[v] || {}];
1026
- })),
1027
- attributes: Ne(h.map(function(v) {
1028
- return [v, y.attributes[v]];
1029
- }))
1030
- });
1031
- });
1032
- },
1033
- requires: ["computeStyles"]
1034
- };
1035
- }, []), f = G.useMemo(function() {
1036
- var m = {
1037
- onFirstUpdate: o.onFirstUpdate,
1038
- placement: o.placement,
1039
- strategy: o.strategy,
1040
- modifiers: [].concat(o.modifiers, [c, {
1041
- name: "applyStyles",
1042
- enabled: !1
1043
- }])
1044
- };
1045
- return Cr(a.current, m) ? a.current || m : (a.current = m, m);
1046
- }, [o.onFirstUpdate, o.placement, o.strategy, o.modifiers, c]), l = G.useRef();
1047
- return Ue(function() {
1048
- l.current && l.current.setOptions(f);
1049
- }, [f]), Ue(function() {
1050
- if (!(t == null || r == null)) {
1051
- var m = n.createPopper || Pr, p = m(t, r, f);
1052
- return l.current = p, function() {
1053
- p.destroy(), l.current = null;
1054
- };
1055
- }
1056
- }, [t, r, n.createPopper]), {
1057
- state: l.current ? l.current.state : null,
1058
- styles: s.styles,
1059
- attributes: s.attributes,
1060
- update: l.current ? l.current.update : null,
1061
- forceUpdate: l.current ? l.current.forceUpdate : null
1062
- };
1063
- };
1064
- const Wr = (e, t, r = !0, n = !1) => {
1065
- const [a, o] = et(e), u = yt(null), s = (i) => {
1066
- if (!r) {
1067
- o(i);
1068
- return;
1069
- }
1070
- u.current && clearTimeout(u.current), i && !n || !i && n ? o(i) : u.current = setTimeout(() => {
1071
- o(i);
1072
- }, t);
1073
- };
1074
- return tt(() => () => {
1075
- u.current && clearTimeout(u.current);
1076
- }, []), [a, s];
1077
- };
1078
- export {
1079
- Lr as a,
1080
- kr as b,
1081
- Wr as u
1082
- };