@unicom-cloud/ui 0.8.111 → 0.8.112

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 (318) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/ColorPicker.js +1 -1
  14. package/Comment.js +1 -1
  15. package/ConfigProvider.js +1 -1
  16. package/Copy.js +2 -2
  17. package/Countdown.js +17 -17
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +19 -19
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +1 -1
  25. package/Empty.js +1 -1
  26. package/Flex.js +18 -18
  27. package/Form.js +1 -1
  28. package/Icon.js +1 -1
  29. package/IconHover.js +1 -1
  30. package/Image.js +1 -1
  31. package/InputNumber.js +1 -1
  32. package/Layout.js +1 -1
  33. package/Link.js +1 -1
  34. package/LiquidFill.js +19 -19
  35. package/List.js +1 -1
  36. package/Loading.js +18 -18
  37. package/Marquee.js +19 -19
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +1 -1
  41. package/Modal.js +1 -1
  42. package/Notice.js +18 -18
  43. package/Notification.js +1 -1
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Popconfirm.js +1 -1
  47. package/Popover.js +1 -1
  48. package/Progress.js +1 -1
  49. package/QrCode.js +18 -18
  50. package/Radio.js +1 -1
  51. package/Rate.js +1 -1
  52. package/ResizeBox.js +1 -1
  53. package/Result.js +1 -1
  54. package/RichText.js +2 -2
  55. package/Segmented.js +20 -20
  56. package/Skeleton.js +1 -1
  57. package/Slider.js +1 -1
  58. package/Space.js +18 -18
  59. package/Spin.js +1 -1
  60. package/Statistic.js +1 -1
  61. package/Steps.js +1 -1
  62. package/Switch.js +1 -1
  63. package/Table.js +1 -1
  64. package/Tabs.js +1 -1
  65. package/Tag.js +1 -1
  66. package/Tooltip.js +1 -1
  67. package/Tour.js +19 -19
  68. package/Transfer.js +1 -1
  69. package/Tree.js +1 -1
  70. package/TreeSelect.js +1 -1
  71. package/Trigger.js +2 -2
  72. package/affix/index.js +3 -3
  73. package/alert/index.js +1 -1
  74. package/anchor/Anchor.js +1 -1
  75. package/anchor/Link.js +1 -1
  76. package/app/App.js +2 -2
  77. package/auto-complete/index.js +1 -1
  78. package/avatar/Avatar.js +1 -1
  79. package/avatar/Group.js +1 -1
  80. package/back-top/index.js +1 -1
  81. package/badge/index.js +1 -1
  82. package/breadcrumb/index.js +2 -2
  83. package/button/Group.js +1 -1
  84. package/button/index.js +1 -1
  85. package/calendar/index.js +2 -2
  86. package/card/Grid.js +1 -1
  87. package/card/Meta.js +1 -1
  88. package/card/index.js +1 -1
  89. package/carousel/Arrow.js +1 -1
  90. package/carousel/Indicator.js +1 -1
  91. package/carousel/index.js +2 -2
  92. package/cascader/Cascader.js +3 -3
  93. package/cascader/index.js +1 -1
  94. package/cascader/util.js +1 -1
  95. package/checkbox/Checkbox.js +2 -2
  96. package/checkbox/Group.js +2 -2
  97. package/checkbox/GroupBlock.js +2 -2
  98. package/checkbox/index.js +2 -2
  99. package/chunk/{Y_GQsZUt.js → 0BhDjhcd.js} +1 -1
  100. package/chunk/{BDMqvmVH.js → BCmfDFV4.js} +28 -30
  101. package/chunk/{n1tirBXA.js → BfVlSL8A.js} +3 -3
  102. package/chunk/BiZSULcr.js +1872 -0
  103. package/chunk/{BcEZk8pT.js → C1vY8016.js} +14 -14
  104. package/chunk/{qsVvkBLU.js → C3kH2ES3.js} +1 -1
  105. package/chunk/{BGJspFG9.js → C5CbL5ku.js} +1 -1
  106. package/chunk/CAA93JLq.js +6 -0
  107. package/chunk/{B8W1N4er.js → CHQ8c547.js} +11 -10
  108. package/chunk/{Dbw0YUY1.js → CYssV-zz.js} +36 -36
  109. package/chunk/CrOzsnI0.js +51 -0
  110. package/chunk/{CFyN9Eio.js → CtCFA4ht.js} +4 -4
  111. package/chunk/{BnUWOu3_.js → Cx92e1S8.js} +3 -3
  112. package/chunk/{BeHcDey_.js → CylbdYce.js} +1 -1
  113. package/chunk/{BUNoUPLs.js → DMv8Hn4u.js} +1 -1
  114. package/chunk/{BlflTd2i.js → DfUcAhyT.js} +433 -470
  115. package/chunk/{DSqW_efI.js → DfbO4QTS.js} +152 -156
  116. package/chunk/{CgN4U7Ou.js → DhAvt6tJ.js} +2 -2
  117. package/chunk/DsuIQH0F.js +200 -0
  118. package/chunk/{Lyh0cz3R.js → KPBMJlOB.js} +1 -1
  119. package/chunk/{B_c0gPsX.js → vP3qfmKM.js} +24 -23
  120. package/collapse/Collapse.js +1 -1
  121. package/collapse/Item.js +1 -1
  122. package/color-picker/ControlBar.js +1 -1
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +2 -2
  128. package/color-picker/index.js +1 -1
  129. package/comment/index.js +1 -1
  130. package/config-provider/ConfigProvider.js +1 -1
  131. package/config-provider/context.js +1 -1
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +2 -2
  134. package/countdown/index.js +17 -17
  135. package/date-picker/Picker.js +1 -1
  136. package/date-picker/RangePicker.js +2 -2
  137. package/date-picker/index.js +1 -1
  138. package/descriptions/index.js +1 -1
  139. package/details/index.js +19 -19
  140. package/development/index.js +1 -1
  141. package/divider/index.js +1 -1
  142. package/draggable/index.js +1 -1
  143. package/drawer/Drawer.js +1 -1
  144. package/dropdown/Button.js +1 -1
  145. package/dropdown/index.js +1 -1
  146. package/empty/index.js +1 -1
  147. package/flex/index.js +18 -18
  148. package/form/Form.js +2 -2
  149. package/form/FormItem.js +1 -1
  150. package/form/index.js +1 -1
  151. package/grid/Grid.js +1 -1
  152. package/grid/Item.js +1 -1
  153. package/hooks/index.js +80 -80
  154. package/hooks/useId.js +1 -1
  155. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  156. package/hooks/useResizeObserver.js +58 -2
  157. package/hooks/useWindowSize.js +1 -1
  158. package/icon/index.js +1 -1
  159. package/icon-hover/index.js +1 -1
  160. package/icons/file.js +1 -1
  161. package/image/Image.js +2 -2
  162. package/image/ImagePreview.js +22 -22
  163. package/image/ImagePreviewArrow.js +1 -1
  164. package/image/ImagePreviewGroup.js +1 -1
  165. package/image/index.js +1 -1
  166. package/index.js +347 -348
  167. package/input/Button.js +1 -1
  168. package/input/Group.js +1 -1
  169. package/input/Input.js +2 -2
  170. package/input/InputElement.js +2 -2
  171. package/input/Password.js +1 -1
  172. package/input/Search.js +1 -1
  173. package/input/Textarea.js +2 -2
  174. package/input-number/index.js +1 -1
  175. package/input-number/useSelectionRange.js +1 -1
  176. package/input-tag/InputTag.js +1 -1
  177. package/layout/Content.js +1 -1
  178. package/layout/Footer.js +1 -1
  179. package/layout/Header.js +1 -1
  180. package/layout/Sider.js +1 -1
  181. package/layout/index.js +1 -1
  182. package/link/index.js +1 -1
  183. package/liquid-fill/index.js +24 -24
  184. package/list/Item.js +1 -1
  185. package/list/Meta.js +1 -1
  186. package/list/index.js +1 -1
  187. package/loading/index.js +18 -18
  188. package/marquee/index.js +22 -22
  189. package/marquee-/index.js +22 -22
  190. package/mentions/index.js +1 -1
  191. package/menu/Menu.js +3 -3
  192. package/menu/OverflowWrap.js +2 -2
  193. package/menu/index.js +2 -2
  194. package/message/index.js +1 -1
  195. package/message/useMessage.js +1 -1
  196. package/modal/Confirm.js +2 -2
  197. package/modal/Modal.js +2 -2
  198. package/modal/index.js +2 -2
  199. package/notice/index.js +18 -18
  200. package/notification/index.js +1 -1
  201. package/notification/useNotification.js +1 -1
  202. package/overflow-ellipsis/OverflowItem.js +2 -2
  203. package/overflow-ellipsis/index.js +2 -2
  204. package/package.json +1 -1
  205. package/page-header/index.js +2 -2
  206. package/pagination/PageItem.js +1 -1
  207. package/pagination/PageJumper.js +1 -1
  208. package/pagination/PageOption.js +1 -1
  209. package/pagination/Pagination.js +1 -1
  210. package/picker/Input.js +1 -1
  211. package/picker/InputRange.js +1 -1
  212. package/popconfirm/index.js +1 -1
  213. package/popover/index.js +1 -1
  214. package/progress/CircleProgress.js +1 -1
  215. package/progress/index.js +1 -1
  216. package/qr-code/index.js +18 -18
  217. package/radio/Group.js +2 -2
  218. package/radio/GroupBlock.js +2 -2
  219. package/radio/Radio.js +2 -2
  220. package/radio/index.js +2 -2
  221. package/rate/index.js +1 -1
  222. package/resize-box/ResizeTrigger.js +2 -2
  223. package/resize-box/Split.js +2 -2
  224. package/resize-box/SplitGroup.js +1 -1
  225. package/resize-box/index.js +1 -1
  226. package/result/index.js +1 -1
  227. package/rich-text/core.js +1 -1
  228. package/rich-text/index.js +14 -14
  229. package/rich-text/rich.js +406 -936
  230. package/row-col/Col-.js +1 -1
  231. package/row-col/Col.js +71 -74
  232. package/row-col/Row.js +1 -1
  233. package/segmented/index.js +23 -23
  234. package/select/Option.js +1 -1
  235. package/select/Select.js +4 -4
  236. package/select-view/Core.js +1 -1
  237. package/skeleton/index.js +1 -1
  238. package/slider/Button.js +1 -1
  239. package/slider/index.js +1 -1
  240. package/space/index.js +18 -18
  241. package/spin/DotLoading.js +1 -1
  242. package/spin/index.js +1 -1
  243. package/splitter/Panel.js +1 -1
  244. package/splitter/SplitBar.js +2 -2
  245. package/splitter/Splitter.js +3 -3
  246. package/statistic/index.js +1 -1
  247. package/steps/index.js +1 -1
  248. package/style.css +1 -1
  249. package/switch/index.js +1 -1
  250. package/table/Table.js +61 -11
  251. package/table/index.js +4 -4
  252. package/tabs/Tab.js +3 -3
  253. package/tabs/TabContent.js +2 -2
  254. package/tabs/TabPane.js +1 -1
  255. package/tabs/index.js +2 -2
  256. package/tag/index.js +1 -1
  257. package/time-picker/Picker.js +1 -1
  258. package/time-picker/TimePicker.js +1 -1
  259. package/timeline/Item.js +1 -1
  260. package/timeline/Timeline.js +1 -1
  261. package/tooltip/index.js +1 -1
  262. package/tour/index.js +27 -27
  263. package/transfer/Item.js +2 -2
  264. package/transfer/List.js +2 -2
  265. package/transfer/index.js +1 -1
  266. package/tree/Animation.js +2 -2
  267. package/tree/Node.js +3 -3
  268. package/tree/NodeList.js +1 -1
  269. package/tree/Tree.js +2 -2
  270. package/tree/index.js +1 -1
  271. package/tree-select/Select.js +3 -3
  272. package/tree-select/index.js +1 -1
  273. package/trigger/index.js +2 -2
  274. package/types/common/hooks/src/use-size/index.d.ts +1 -1
  275. package/types/common/hooks/src/use-theme/index.d.ts +2 -2
  276. package/types/common/hooks/src/utils/isBrowser.d.ts +1 -1
  277. package/types/common/hooks/useResizeObserver.d.ts +1 -5
  278. package/types/common/hooks/useWindowSize.d.ts +1 -1
  279. package/types/common/utils/emitter.d.ts +1 -0
  280. package/types/common/utils/index.d.ts +1 -1
  281. package/types/pc/index.d.ts +1 -1
  282. package/types/pc/menu/context.d.ts +1 -1
  283. package/types/pc/rich-text/blots/scroll.d.ts +2 -8
  284. package/types/pc/rich-text/core/emitter.d.ts +2 -3
  285. package/types/pc/rich-text/core/rich.d.ts +11 -44
  286. package/types/pc/rich-text/core/selection.d.ts +1 -8
  287. package/types/pc/rich-text/core/theme.d.ts +3 -0
  288. package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +2 -4
  289. package/types/pc/rich-text/themes/base.d.ts +3 -0
  290. package/types/pc/rich-text/themes/{snow.d.ts → pqb.d.ts} +2 -2
  291. package/types/pc/rich-text/ui/tooltip.d.ts +2 -0
  292. package/types/pc/utils/emitter.d.ts +1 -0
  293. package/types/pc/utils/index.d.ts +1 -1
  294. package/typography/Base.js +2 -2
  295. package/typography/Ellipsis.js +3 -3
  296. package/typography/Operations.js +2 -2
  297. package/typography/Paragraph.js +1 -1
  298. package/typography/Typography.js +1 -1
  299. package/typography/useEllipsis.js +1 -1
  300. package/upload/TriggerNode.js +1 -1
  301. package/upload/Upload.js +1 -1
  302. package/utils/contextHolder.js +1 -1
  303. package/utils/emitter.js +5 -0
  304. package/utils/index.js +3 -3
  305. package/utils/resizeObserver.js +1 -1
  306. package/verification-code/VerificationCode.js +1 -1
  307. package/version/index.js +1 -1
  308. package/virtual-list/VirtualList.js +2 -2
  309. package/watermark/Watermark.js +1 -1
  310. package/chunk/BDgzrqDN.js +0 -154
  311. package/chunk/COsRZOz1.js +0 -1813
  312. package/chunk/CylJZkp8.js +0 -6
  313. package/chunk/Di5KBCVQ.js +0 -4
  314. package/chunk/cW_5U6dL.js +0 -28
  315. package/types/common/utils/mitt.d.ts +0 -1
  316. package/types/pc/rich-text/themes/bubble.d.ts +0 -18
  317. package/types/pc/utils/mitt.d.ts +0 -1
  318. package/utils/mitt.js +0 -5
@@ -1,17 +1,17 @@
1
- import { useEffect as C, useState as b, useMemo as x, useRef as y, useLayoutEffect as he, useCallback as B } from "react";
1
+ import { useEffect as C, useState as b, useMemo as x, useRef as E, useLayoutEffect as Pe, useCallback as q } from "react";
2
2
  import "./DsaQZE4X.js";
3
3
  import { isFunction as k, isString as te, isNumber as F, isEqual as qe, isBoolean as Ve, isUndefined as Ue, isObject as $e } from "@unicom-cloud/utils/is";
4
- import { g as D, u as L, c as V, b as $, i as We, s as Ge, d as Ke, e as Je, f as Qe } from "./BDgzrqDN.js";
5
- import { a as E } from "./D1iEYgh3.js";
4
+ import { g as D, u as L, d as U, b as W, i as We, s as Ge, e as Ke, f as Je } from "./DsuIQH0F.js";
5
+ import { a as y } from "./D1iEYgh3.js";
6
6
  import { u as ne } from "./BJeTDXdz.js";
7
7
  import ce from "@unicom-cloud/utils/js-cookie";
8
- import Ze from "dayjs";
9
- import De from "lodash/debounce";
8
+ import Qe from "dayjs";
9
+ import Ce from "lodash/debounce";
10
10
  import { i as re } from "./CdXR6dj7.js";
11
- import { u as K, c as et } from "./DfChiMIE.js";
12
- import { i as q } from "./Di5KBCVQ.js";
13
- import z from "@unicom-cloud/utils/screenfull";
14
- import { isAppleDevice as tt } from "@unicom-cloud/utils/constant/platform";
11
+ import { u as K, c as Ze } from "./DfChiMIE.js";
12
+ import { isBrowser as V, isAppleDevice as et } from "@unicom-cloud/utils/constant/platform";
13
+ import X from "@unicom-cloud/utils/screenfull";
14
+ import { a as De, u as tt } from "./CrOzsnI0.js";
15
15
  import { u as se } from "./BO_5qdS_.js";
16
16
  import Me from "lodash/throttle";
17
17
  import de from "lodash/isPlainObject";
@@ -20,7 +20,7 @@ import * as nt from "react-router";
20
20
  function rt(e) {
21
21
  return k(e[Symbol.asyncIterator]);
22
22
  }
23
- function hn(e, t) {
23
+ function dn(e, t) {
24
24
  C(() => {
25
25
  const n = e();
26
26
  let r = !1;
@@ -66,9 +66,9 @@ const ct = (e) => e.every((t) => {
66
66
  const t = Array.isArray(e) ? e : [e];
67
67
  return ct(t) ? at(D(t[0])) : document;
68
68
  };
69
- function pn(e, t, n = "click") {
69
+ function mn(e, t, n = "click") {
70
70
  const r = L(e);
71
- V(
71
+ U(
72
72
  () => {
73
73
  const s = (c) => {
74
74
  (Array.isArray(t) ? t : [t]).some((i) => {
@@ -88,32 +88,32 @@ function pn(e, t, n = "click") {
88
88
  t
89
89
  );
90
90
  }
91
- function vn(e, t = {}) {
91
+ function gn(e, t = {}) {
92
92
  const n = e ?? {}, {
93
93
  defaultValue: r,
94
94
  defaultValuePropName: s = "defaultValue",
95
95
  valuePropName: o = "value",
96
96
  trigger: a = "onChange"
97
- } = t, c = n[o], f = Object.prototype.hasOwnProperty.call(
97
+ } = t, c = n[o], d = Object.prototype.hasOwnProperty.call(
98
98
  n,
99
99
  o
100
- ), i = x(() => f ? c : Object.prototype.hasOwnProperty.call(n, s) ? n[s] : r, []), l = y(i);
101
- f && (l.current = c);
100
+ ), i = x(() => d ? c : Object.prototype.hasOwnProperty.call(n, s) ? n[s] : r, []), l = E(i);
101
+ d && (l.current = c);
102
102
  const u = ne();
103
103
  function m(h, ...p) {
104
- const d = k(h) ? h(l.current) : h;
105
- f || (l.current = d, u()), n[a] && n[a](d, ...p);
104
+ const f = k(h) ? h(l.current) : h;
105
+ d || (l.current = f, u()), n[a] && n[a](f, ...p);
106
106
  }
107
- return [l.current, E(m)];
107
+ return [l.current, y(m)];
108
108
  }
109
- function yn(e, t = {}) {
109
+ function hn(e, t = {}) {
110
110
  const [n, r] = b(() => {
111
111
  const o = ce.get(e);
112
112
  return te(o) ? o : k(t.defaultValue) ? t.defaultValue() : t.defaultValue;
113
- }), s = E(
113
+ }), s = y(
114
114
  (o, a = {}) => {
115
- const { defaultValue: c, ...f } = { ...t, ...a }, i = k(o) ? o(n) : o;
116
- r(i), i === void 0 ? ce.remove(e) : ce.set(e, i, f);
115
+ const { defaultValue: c, ...d } = { ...t, ...a }, i = k(o) ? o(n) : o;
116
+ r(i), i === void 0 ? ce.remove(e) : ce.set(e, i, d);
117
117
  }
118
118
  );
119
119
  return [n, s];
@@ -121,7 +121,7 @@ function yn(e, t = {}) {
121
121
  const ue = (e) => {
122
122
  if (!e)
123
123
  return 0;
124
- const t = Ze(e).valueOf() - Date.now();
124
+ const t = Qe(e).valueOf() - Date.now();
125
125
  return t < 0 ? 0 : t;
126
126
  }, it = (e) => ({
127
127
  days: Math.floor(e / 864e5),
@@ -129,43 +129,43 @@ const ue = (e) => {
129
129
  minutes: Math.floor(e / 6e4) % 60,
130
130
  seconds: Math.floor(e / 1e3) % 60,
131
131
  milliseconds: Math.floor(e) % 1e3
132
- }), En = (e = {}) => {
133
- const { leftTime: t, targetDate: n, interval: r = 1e3, onEnd: s } = e || {}, o = x(() => F(t) && t > 0 ? Date.now() + t : void 0, [t]), a = "leftTime" in e ? o : n, [c, f] = b(() => ue(a)), i = L(s);
132
+ }), pn = (e = {}) => {
133
+ const { leftTime: t, targetDate: n, interval: r = 1e3, onEnd: s } = e || {}, o = x(() => F(t) && t > 0 ? Date.now() + t : void 0, [t]), a = "leftTime" in e ? o : n, [c, d] = b(() => ue(a)), i = L(s);
134
134
  C(() => {
135
135
  if (!a) {
136
- f(0);
136
+ d(0);
137
137
  return;
138
138
  }
139
- f(ue(a));
139
+ d(ue(a));
140
140
  const u = setInterval(() => {
141
141
  const m = ue(a);
142
- f(m), m === 0 && (clearInterval(u), i.current?.());
142
+ d(m), m === 0 && (clearInterval(u), i.current?.());
143
143
  }, r);
144
144
  return () => clearInterval(u);
145
145
  }, [a, r]);
146
146
  const l = x(() => it(c), [c]);
147
147
  return [c, l];
148
148
  };
149
- function Se(e, t = {}) {
149
+ function ye(e, t = {}) {
150
150
  const { min: n, max: r } = t;
151
151
  let s = e;
152
152
  return F(r) && (s = Math.min(r, s)), F(n) && (s = Math.max(n, s)), s;
153
153
  }
154
- function Sn(e = 0, t = {}) {
155
- const { min: n, max: r } = t, [s, o] = b(() => Se(e, {
154
+ function vn(e = 0, t = {}) {
155
+ const { min: n, max: r } = t, [s, o] = b(() => ye(e, {
156
156
  min: n,
157
157
  max: r
158
158
  })), a = (u) => {
159
159
  o((m) => {
160
160
  const h = F(u) ? u : u(m);
161
- return Se(h, {
161
+ return ye(h, {
162
162
  max: r,
163
163
  min: n
164
164
  });
165
165
  });
166
166
  }, c = (u = 1) => {
167
167
  a((m) => m + u);
168
- }, f = (u = 1) => {
168
+ }, d = (u = 1) => {
169
169
  a((m) => m - u);
170
170
  }, i = (u) => {
171
171
  a(u);
@@ -175,10 +175,10 @@ function Sn(e = 0, t = {}) {
175
175
  return [
176
176
  s,
177
177
  {
178
- inc: E(c),
179
- dec: E(f),
180
- set: E(i),
181
- reset: E(l)
178
+ inc: y(c),
179
+ dec: y(d),
180
+ set: y(i),
181
+ reset: y(l)
182
182
  }
183
183
  ];
184
184
  }
@@ -187,14 +187,14 @@ function Ne(e, t) {
187
187
  `useDebounceFn expected parameter is a function, got ${typeof e}`
188
188
  ));
189
189
  const n = L(e), r = t?.wait ?? 1e3, s = x(
190
- () => De(
190
+ () => Ce(
191
191
  (...o) => n.current(...o),
192
192
  r,
193
193
  t
194
194
  ),
195
195
  []
196
196
  );
197
- return $(() => {
197
+ return W(() => {
198
198
  s.cancel();
199
199
  }), {
200
200
  run: s,
@@ -202,7 +202,7 @@ function Ne(e, t) {
202
202
  flush: s.flush
203
203
  };
204
204
  }
205
- function wn(e, t) {
205
+ function yn(e, t) {
206
206
  const [n, r] = b(e), { run: s } = Ne(() => {
207
207
  r(e);
208
208
  }, t);
@@ -210,35 +210,35 @@ function wn(e, t) {
210
210
  s();
211
211
  }, [e]), n;
212
212
  }
213
- function bn(e, t, n) {
213
+ function En(e, t, n) {
214
214
  const [r, s] = b({}), { run: o } = Ne(() => {
215
215
  s({});
216
216
  }, n);
217
217
  C(() => o(), t), K(e, [r]);
218
218
  }
219
219
  const Oe = (e = [], t = []) => qe(e, t), xe = (e) => (t, n) => {
220
- const r = y(void 0), s = y(0);
220
+ const r = E(void 0), s = E(0);
221
221
  (n === void 0 || !Oe(n, r.current)) && (s.current += 1), r.current = n, e(t, [s.current]);
222
- }, Rn = xe(C), Tn = xe(he);
223
- function X(e, t, n = {}) {
222
+ }, Sn = xe(C), wn = xe(Pe);
223
+ function j(e, t, n = {}) {
224
224
  const { enable: r = !0 } = n, s = L(t);
225
- V(
225
+ U(
226
226
  () => {
227
227
  if (!r)
228
228
  return;
229
229
  const o = D(n.target, window);
230
230
  if (!o?.addEventListener)
231
231
  return;
232
- const a = (f) => s.current(f), c = Array.isArray(e) ? e : [e];
233
- return c.forEach((f) => {
234
- o.addEventListener(f, a, {
232
+ const a = (d) => s.current(d), c = Array.isArray(e) ? e : [e];
233
+ return c.forEach((d) => {
234
+ o.addEventListener(d, a, {
235
235
  capture: n.capture,
236
236
  once: n.once,
237
237
  passive: n.passive
238
238
  });
239
239
  }), () => {
240
- c.forEach((f) => {
241
- o.removeEventListener(f, a, {
240
+ c.forEach((d) => {
241
+ o.removeEventListener(d, a, {
242
242
  capture: n.capture
243
243
  });
244
244
  });
@@ -248,13 +248,13 @@ function X(e, t, n = {}) {
248
248
  n.target
249
249
  );
250
250
  }
251
- const we = () => q ? document.visibilityState : "visible";
252
- function Ln() {
253
- const [e, t] = b(we);
254
- return X(
251
+ const Ee = () => V ? document.visibilityState : "visible";
252
+ function bn() {
253
+ const [e, t] = b(Ee);
254
+ return j(
255
255
  "visibilitychange",
256
256
  () => {
257
- t(we());
257
+ t(Ee());
258
258
  },
259
259
  {
260
260
  target: () => document
@@ -265,23 +265,23 @@ const Fe = (e) => {
265
265
  re && (k(e) || console.error(
266
266
  `useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`
267
267
  )), C(() => e?.(), []);
268
- }, An = (e, t, n = {}) => {
269
- const r = L(n), s = L(e), o = y(void 0), { dragImage: a } = r.current;
268
+ }, Rn = (e, t, n = {}) => {
269
+ const r = L(n), s = L(e), o = E(void 0), { dragImage: a } = r.current;
270
270
  Fe(() => {
271
271
  if (a?.image) {
272
272
  const { image: c } = a;
273
273
  if (te(c)) {
274
- const f = new Image();
275
- f.src = c, o.current = f;
274
+ const d = new Image();
275
+ d.src = c, o.current = d;
276
276
  } else
277
277
  o.current = c;
278
278
  }
279
- }), V(
279
+ }), U(
280
280
  () => {
281
281
  const c = D(t);
282
282
  if (!c?.addEventListener)
283
283
  return;
284
- const f = (l) => {
284
+ const d = (l) => {
285
285
  if (r.current.onDragStart?.(l), l.dataTransfer.setData("custom", JSON.stringify(s.current)), a?.image && o.current) {
286
286
  const { offsetX: u = 0, offsetY: m = 0 } = a;
287
287
  l.dataTransfer.setDragImage(
@@ -293,16 +293,16 @@ const Fe = (e) => {
293
293
  }, i = (l) => {
294
294
  r.current.onDragEnd?.(l);
295
295
  };
296
- return c.setAttribute("draggable", "true"), c.addEventListener("dragstart", f), c.addEventListener("dragend", i), () => {
297
- c.removeEventListener("dragstart", f), c.removeEventListener("dragend", i);
296
+ return c.setAttribute("draggable", "true"), c.addEventListener("dragstart", d), c.addEventListener("dragend", i), () => {
297
+ c.removeEventListener("dragstart", d), c.removeEventListener("dragend", i);
298
298
  };
299
299
  },
300
300
  [],
301
301
  t
302
302
  );
303
- }, Pn = (e, t = {}) => {
304
- const n = L(t), r = y(void 0);
305
- V(
303
+ }, Tn = (e, t = {}) => {
304
+ const n = L(t), r = E(void 0);
305
+ U(
306
306
  () => {
307
307
  const s = D(e);
308
308
  if (!s?.addEventListener)
@@ -310,13 +310,13 @@ const Fe = (e) => {
310
310
  const o = (u, m) => {
311
311
  const h = u.getData("text/uri-list"), p = u.getData("custom");
312
312
  if (p && n.current.onDom) {
313
- let d = p;
313
+ let f = p;
314
314
  try {
315
- d = JSON.parse(p);
315
+ f = JSON.parse(p);
316
316
  } catch {
317
- d = p;
317
+ f = p;
318
318
  }
319
- n.current.onDom(d, m);
319
+ n.current.onDom(f, m);
320
320
  return;
321
321
  }
322
322
  if (h && n.current.onUri) {
@@ -330,31 +330,31 @@ const Fe = (e) => {
330
330
  );
331
331
  return;
332
332
  }
333
- u.items && u.items.length && n.current.onText && u.items[0].getAsString((d) => {
334
- n.current.onText(d, m);
333
+ u.items && u.items.length && n.current.onText && u.items[0].getAsString((f) => {
334
+ n.current.onText(f, m);
335
335
  });
336
336
  }, a = (u) => {
337
337
  u.preventDefault(), u.stopPropagation(), r.current = u.target, n.current.onDragEnter?.(u);
338
338
  }, c = (u) => {
339
339
  u.preventDefault(), n.current.onDragOver?.(u);
340
- }, f = (u) => {
340
+ }, d = (u) => {
341
341
  u.target === r.current && n.current.onDragLeave?.(u);
342
342
  }, i = (u) => {
343
343
  u.preventDefault(), o(u.dataTransfer, u), n.current.onDrop?.(u);
344
344
  }, l = (u) => {
345
345
  o(u.clipboardData, u), n.current.onPaste?.(u);
346
346
  };
347
- return s.addEventListener("dragenter", a), s.addEventListener("dragover", c), s.addEventListener("dragleave", f), s.addEventListener("drop", i), s.addEventListener("paste", l), () => {
348
- s.removeEventListener("dragenter", a), s.removeEventListener("dragover", c), s.removeEventListener("dragleave", f), s.removeEventListener("drop", i), s.removeEventListener("paste", l);
347
+ return s.addEventListener("dragenter", a), s.addEventListener("dragover", c), s.addEventListener("dragleave", d), s.addEventListener("drop", i), s.addEventListener("paste", l), () => {
348
+ s.removeEventListener("dragenter", a), s.removeEventListener("dragover", c), s.removeEventListener("dragleave", d), s.removeEventListener("drop", i), s.removeEventListener("paste", l);
349
349
  };
350
350
  },
351
351
  [],
352
352
  e
353
353
  );
354
354
  };
355
- function Cn(e) {
356
- const { initialValue: t, transformer: n } = e || {}, [r, s] = b(t), o = L(n), a = B(() => s(t), []), c = B((f) => {
357
- const i = f.target.value;
355
+ function Ln(e) {
356
+ const { initialValue: t, transformer: n } = e || {}, [r, s] = b(t), o = L(n), a = q(() => s(t), []), c = q((d) => {
357
+ const i = d.target.value;
358
358
  return k(o.current) ? s(o.current(i)) : s(i);
359
359
  }, []);
360
360
  return [
@@ -395,8 +395,8 @@ const J = {}, lt = (e, t = {}) => {
395
395
  ref: n,
396
396
  status: n.getAttribute("data-status") || "ready"
397
397
  };
398
- }, Dn = (e, t) => {
399
- const [n, r] = b(e ? "loading" : "unset"), s = y(void 0);
398
+ }, An = (e, t) => {
399
+ const [n, r] = b(e ? "loading" : "unset"), s = E(void 0);
400
400
  return C(() => {
401
401
  if (!e) {
402
402
  r("unset");
@@ -417,8 +417,8 @@ const J = {}, lt = (e, t = {}) => {
417
417
  return;
418
418
  J[e] === void 0 ? J[e] = 1 : J[e] += 1;
419
419
  const a = (c) => {
420
- const f = c.type === "load" ? "ready" : "error";
421
- s.current?.setAttribute("data-status", f), r(f);
420
+ const d = c.type === "load" ? "ready" : "error";
421
+ s.current?.setAttribute("data-status", d), r(d);
422
422
  };
423
423
  return s.current.addEventListener("load", a), s.current.addEventListener("error", a), () => {
424
424
  s.current?.removeEventListener("load", a), s.current?.removeEventListener("error", a), J[e] -= 1, J[e] === 0 && !t?.keepWhenUnused && s.current?.remove(), s.current = void 0;
@@ -429,7 +429,7 @@ const J = {}, lt = (e, t = {}) => {
429
429
  ICO: "image/x-icon",
430
430
  GIF: "image/gif",
431
431
  PNG: "image/png"
432
- }, Mn = (e) => {
432
+ }, Pn = (e) => {
433
433
  C(() => {
434
434
  if (!e)
435
435
  return;
@@ -437,9 +437,9 @@ const J = {}, lt = (e, t = {}) => {
437
437
  r.type = dt[n], r.href = e, r.rel = "shortcut icon", document.getElementsByTagName("head")[0].appendChild(r);
438
438
  }, [e]);
439
439
  };
440
- function Nn(e, t) {
440
+ function Cn(e, t) {
441
441
  const [n, r] = b(!1), { onFocus: s, onBlur: o, onChange: a } = t || {};
442
- return X(
442
+ return j(
443
443
  "focusin",
444
444
  (c) => {
445
445
  n || (s?.(c), a?.(!0), r(!0));
@@ -447,7 +447,7 @@ function Nn(e, t) {
447
447
  {
448
448
  target: e
449
449
  }
450
- ), X(
450
+ ), j(
451
451
  "focusout",
452
452
  (c) => {
453
453
  n && !c.currentTarget?.contains?.(c.relatedTarget) && (o?.(c), a?.(!1), r(!1));
@@ -457,16 +457,16 @@ function Nn(e, t) {
457
457
  }
458
458
  ), n;
459
459
  }
460
- const On = (e, t) => {
461
- const { onExit: n, onEnter: r, pageFullscreen: s = !1 } = t || {}, { className: o = "@unicom-cloud-ui-hooks-page-fullscreen", zIndex: a = 999999 } = Ve(s) || !s ? {} : s, c = L(n), f = L(r), [i, l] = b(m), u = y(m());
460
+ const Dn = (e, t) => {
461
+ const { onExit: n, onEnter: r, pageFullscreen: s = !1 } = t || {}, { className: o = "@unicom-cloud-ui-hooks-page-fullscreen", zIndex: a = 999999 } = Ve(s) || !s ? {} : s, c = L(n), d = L(r), [i, l] = b(m), u = E(m());
462
462
  function m() {
463
- return z.isEnabled && !!z.element && z.element === D(e);
463
+ return X.isEnabled && !!X.element && X.element === D(e);
464
464
  }
465
465
  const h = (v) => {
466
- v ? f.current?.() : c.current?.();
466
+ v ? d.current?.() : c.current?.();
467
467
  }, p = (v) => {
468
468
  u.current !== v && (h(v), l(v), u.current = v);
469
- }, d = () => {
469
+ }, f = () => {
470
470
  const v = m();
471
471
  p(v);
472
472
  }, T = (v) => {
@@ -487,9 +487,9 @@ const On = (e, t) => {
487
487
  T(!0);
488
488
  return;
489
489
  }
490
- if (z.isEnabled)
490
+ if (X.isEnabled)
491
491
  try {
492
- z.request(v);
492
+ X.request(v);
493
493
  } catch (S) {
494
494
  console.error(S);
495
495
  }
@@ -501,34 +501,34 @@ const On = (e, t) => {
501
501
  T(!1);
502
502
  return;
503
503
  }
504
- z.isEnabled && z.element === v && z.exit();
504
+ X.isEnabled && X.element === v && X.exit();
505
505
  }
506
506
  }, g = () => {
507
507
  i ? O() : A();
508
508
  };
509
509
  return C(() => {
510
- if (!(!z.isEnabled || s))
511
- return z.on("change", d), () => {
512
- z.off("change", d);
510
+ if (!(!X.isEnabled || s))
511
+ return X.on("change", f), () => {
512
+ X.off("change", f);
513
513
  };
514
514
  }, []), [
515
515
  i,
516
516
  {
517
- enterFullscreen: E(A),
518
- exitFullscreen: E(O),
519
- toggleFullscreen: E(g),
520
- isEnabled: z.isEnabled
517
+ enterFullscreen: y(A),
518
+ exitFullscreen: y(O),
519
+ toggleFullscreen: y(g),
520
+ isEnabled: X.isEnabled
521
521
  }
522
522
  ];
523
523
  };
524
- function xn(e) {
525
- const [t, n] = b(e), r = L(t), s = B(() => r.current, []);
524
+ function Mn(e) {
525
+ const [t, n] = b(e), r = L(t), s = q(() => r.current, []);
526
526
  return [t, n, s];
527
527
  }
528
528
  const mt = (e, t) => {
529
529
  let n = e > 0 ? e - 1 : t.length + e;
530
530
  return n >= t.length - 1 && (n = t.length - 1), n < 0 && (n = 0), n;
531
- }, be = (e, t) => {
531
+ }, Se = (e, t) => {
532
532
  const n = mt(e, t);
533
533
  return {
534
534
  _current: t[n],
@@ -536,12 +536,12 @@ const mt = (e, t) => {
536
536
  _after: t.slice(n + 1)
537
537
  };
538
538
  };
539
- function Fn(e, t = 0) {
539
+ function Nn(e, t = 0) {
540
540
  const [n, r] = b({
541
541
  present: e,
542
542
  past: [],
543
543
  future: []
544
- }), { present: s, past: o, future: a } = n, c = y(e), f = (...h) => {
544
+ }), { present: s, past: o, future: a } = n, c = E(e), d = (...h) => {
545
545
  const p = h.length > 0 ? h[0] : c.current;
546
546
  c.current = p, r({
547
547
  present: p,
@@ -549,8 +549,8 @@ function Fn(e, t = 0) {
549
549
  past: []
550
550
  });
551
551
  }, i = (h) => {
552
- const p = [...o, s], d = F(t) ? t : Number(t);
553
- d > 0 && p.length > d && p.splice(0, 1), r({
552
+ const p = [...o, s], f = F(t) ? t : Number(t);
553
+ f > 0 && p.length > f && p.splice(0, 1), r({
554
554
  present: h,
555
555
  future: [],
556
556
  past: p
@@ -558,19 +558,19 @@ function Fn(e, t = 0) {
558
558
  }, l = (h = 1) => {
559
559
  if (a.length === 0)
560
560
  return;
561
- const { _before: p, _current: d, _after: T } = be(h, a);
561
+ const { _before: p, _current: f, _after: T } = Se(h, a);
562
562
  r({
563
563
  past: [...o, s, ...p],
564
- present: d,
564
+ present: f,
565
565
  future: T
566
566
  });
567
567
  }, u = (h = -1) => {
568
568
  if (o.length === 0)
569
569
  return;
570
- const { _before: p, _current: d, _after: T } = be(h, o);
570
+ const { _before: p, _current: f, _after: T } = Se(h, o);
571
571
  r({
572
572
  past: p,
573
- present: d,
573
+ present: f,
574
574
  future: [...T, s, ...a]
575
575
  });
576
576
  }, m = (h) => {
@@ -585,20 +585,20 @@ function Fn(e, t = 0) {
585
585
  value: s,
586
586
  backLength: o.length,
587
587
  forwardLength: a.length,
588
- setValue: E(i),
589
- go: E(m),
590
- back: E(() => {
588
+ setValue: y(i),
589
+ go: y(m),
590
+ back: y(() => {
591
591
  m(-1);
592
592
  }),
593
- forward: E(() => {
593
+ forward: y(() => {
594
594
  m(1);
595
595
  }),
596
- reset: E(f)
596
+ reset: y(d)
597
597
  };
598
598
  }
599
- const kn = (e, t) => {
599
+ const On = (e, t) => {
600
600
  const { onEnter: n, onLeave: r, onChange: s } = t || {}, [o, { setTrue: a, setFalse: c }] = ot(!1);
601
- return X(
601
+ return j(
602
602
  "mouseenter",
603
603
  () => {
604
604
  n?.(), a(), s?.(!0);
@@ -606,7 +606,7 @@ const kn = (e, t) => {
606
606
  {
607
607
  target: e
608
608
  }
609
- ), X(
609
+ ), j(
610
610
  "mouseleave",
611
611
  () => {
612
612
  r?.(), c(), s?.(!1);
@@ -616,9 +616,9 @@ const kn = (e, t) => {
616
616
  }
617
617
  ), o;
618
618
  };
619
- function Hn(e, t) {
619
+ function xn(e, t) {
620
620
  const { callback: n, ...r } = t || {}, [s, o] = b(), [a, c] = b();
621
- return V(
621
+ return U(
622
622
  () => {
623
623
  const i = (Array.isArray(e) ? e : [e]).map((u) => D(u)).filter(Boolean);
624
624
  if (!i.length)
@@ -651,17 +651,17 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
651
651
  ...n,
652
652
  timer: s
653
653
  });
654
- }, ht = (e) => G.get(e), _n = (e) => {
654
+ }, ht = (e) => G.get(e), Fn = (e) => {
655
655
  e ? (Array.isArray(e) ? e : [e]).forEach((n) => G.delete(n)) : G.clear();
656
656
  }, Z = /* @__PURE__ */ new Map(), pt = (e) => Z.get(e), vt = (e, t) => {
657
657
  Z.set(e, t), t.then((n) => (Z.delete(e), n)).catch(() => {
658
658
  Z.delete(e);
659
659
  });
660
- }, W = {}, yt = (e, t) => {
661
- W[e] && W[e].forEach((n) => n(t));
662
- }, ie = (e, t) => (W[e] || (W[e] = []), W[e].push(t), function() {
663
- const r = W[e].indexOf(t);
664
- W[e].splice(r, 1);
660
+ }, $ = {}, yt = (e, t) => {
661
+ $[e] && $[e].forEach((n) => n(t));
662
+ }, ie = (e, t) => ($[e] || ($[e] = []), $[e].push(t), function() {
663
+ const r = $[e].indexOf(t);
664
+ $[e].splice(r, 1);
665
665
  }), Et = (e, {
666
666
  cacheKey: t,
667
667
  cacheTime: n = 300 * 1e3,
@@ -669,7 +669,7 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
669
669
  setCache: s,
670
670
  getCache: o
671
671
  }) => {
672
- const a = y(void 0), c = y(void 0), f = (l, u) => {
672
+ const a = E(void 0), c = E(void 0), d = (l, u) => {
673
673
  s ? s(u) : gt(l, n, u), yt(l, u.data);
674
674
  }, i = (l, u = []) => o ? o(u) : ht(l);
675
675
  return se(() => {
@@ -679,7 +679,7 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
679
679
  l && Object.hasOwnProperty.call(l, "data") && (e.state.data = l.data, e.state.params = l.params, (r === -1 || Date.now() - l.time <= r) && (e.state.loading = !1)), a.current = ie(t, (u) => {
680
680
  e.setState({ data: u });
681
681
  });
682
- }, []), $(() => {
682
+ }, []), W(() => {
683
683
  a.current?.();
684
684
  }), t ? {
685
685
  onBefore: (l) => {
@@ -699,7 +699,7 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
699
699
  return m && m !== c.current ? { servicePromise: m } : (m = l(...u), c.current = m, vt(t, m), { servicePromise: m });
700
700
  },
701
701
  onSuccess: (l, u) => {
702
- t && (a.current?.(), f(t, {
702
+ t && (a.current?.(), d(t, {
703
703
  data: l,
704
704
  params: u,
705
705
  time: Date.now()
@@ -708,7 +708,7 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
708
708
  }));
709
709
  },
710
710
  onMutate: (l) => {
711
- t && (a.current?.(), f(t, {
711
+ t && (a.current?.(), d(t, {
712
712
  data: l,
713
713
  params: e.state.params,
714
714
  time: Date.now()
@@ -718,22 +718,22 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
718
718
  }
719
719
  } : {};
720
720
  }, St = (e, { debounceWait: t, debounceLeading: n, debounceTrailing: r, debounceMaxWait: s }) => {
721
- const o = y(void 0), a = x(() => {
721
+ const o = E(void 0), a = x(() => {
722
722
  const c = {};
723
723
  return n !== void 0 && (c.leading = n), r !== void 0 && (c.trailing = r), s !== void 0 && (c.maxWait = s), c;
724
724
  }, [n, r, s]);
725
725
  return C(() => {
726
726
  if (t) {
727
727
  const c = e.runAsync.bind(e);
728
- return o.current = De(
729
- (f) => {
730
- f();
728
+ return o.current = Ce(
729
+ (d) => {
730
+ d();
731
731
  },
732
732
  t,
733
733
  a
734
- ), e.runAsync = (...f) => new Promise((i, l) => {
734
+ ), e.runAsync = (...d) => new Promise((i, l) => {
735
735
  o.current?.(() => {
736
- c(...f).then(i).catch(l);
736
+ c(...d).then(i).catch(l);
737
737
  });
738
738
  }), () => {
739
739
  o.current?.cancel(), e.runAsync = c;
@@ -745,7 +745,7 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
745
745
  }
746
746
  } : {};
747
747
  }, wt = (e, { loadingDelay: t, ready: n }) => {
748
- const r = y(void 0);
748
+ const r = E(void 0);
749
749
  if (!t)
750
750
  return {};
751
751
  const s = () => {
@@ -767,7 +767,7 @@ const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
767
767
  }
768
768
  };
769
769
  }, bt = (e, { pollingInterval: t, pollingWhenHidden: n = !0, pollingErrorRetryCount: r = -1 }) => {
770
- const s = y(void 0), o = y(void 0), a = y(0), c = () => {
770
+ const s = E(void 0), o = E(void 0), a = E(0), c = () => {
771
771
  s.current && clearTimeout(s.current), o.current?.();
772
772
  };
773
773
  return K(() => {
@@ -804,7 +804,7 @@ function Rt(e, t) {
804
804
  };
805
805
  }
806
806
  const Tt = (e, { refreshOnWindowFocus: t, focusTimespan: n = 5e3 }) => {
807
- const r = y(void 0), s = () => {
807
+ const r = E(void 0), s = () => {
808
808
  r.current?.();
809
809
  };
810
810
  return C(() => {
@@ -820,11 +820,11 @@ const Tt = (e, { refreshOnWindowFocus: t, focusTimespan: n = 5e3 }) => {
820
820
  return () => {
821
821
  s();
822
822
  };
823
- }, [t, n]), $(() => {
823
+ }, [t, n]), W(() => {
824
824
  s();
825
825
  }), {};
826
826
  }, Lt = (e, { retryInterval: t, retryCount: n }) => {
827
- const r = y(void 0), s = y(0), o = y(!1);
827
+ const r = E(void 0), s = E(0), o = E(!1);
828
828
  return n ? {
829
829
  onBefore: () => {
830
830
  o.current || (s.current = 0), o.current = !1, r.current && clearTimeout(r.current);
@@ -846,7 +846,7 @@ const Tt = (e, { refreshOnWindowFocus: t, focusTimespan: n = 5e3 }) => {
846
846
  }
847
847
  } : {};
848
848
  }, At = (e, { throttleWait: t, throttleLeading: n, throttleTrailing: r }) => {
849
- const s = y(void 0), o = {};
849
+ const s = E(void 0), o = {};
850
850
  return n !== void 0 && (o.leading = n), r !== void 0 && (o.trailing = r), C(() => {
851
851
  if (t) {
852
852
  const a = e.runAsync.bind(e);
@@ -856,9 +856,9 @@ const Tt = (e, { refreshOnWindowFocus: t, focusTimespan: n = 5e3 }) => {
856
856
  },
857
857
  t,
858
858
  o
859
- ), e.runAsync = (...c) => new Promise((f, i) => {
859
+ ), e.runAsync = (...c) => new Promise((d, i) => {
860
860
  s.current?.(() => {
861
- a(...c).then(f).catch(i);
861
+ a(...c).then(d).catch(i);
862
862
  });
863
863
  }), () => {
864
864
  e.runAsync = a, s.current?.cancel();
@@ -966,12 +966,12 @@ function Ct(e, t = {}, n = []) {
966
966
  manual: r,
967
967
  ready: s,
968
968
  ...o
969
- }, c = L(e), f = ne(), i = se(() => {
969
+ }, c = L(e), d = ne(), i = se(() => {
970
970
  const l = n.map((u) => u?.onInit?.(a)).filter(Boolean);
971
971
  return new Pt(
972
972
  c,
973
973
  a,
974
- f,
974
+ d,
975
975
  Object.assign({}, ...l)
976
976
  );
977
977
  }, []);
@@ -982,19 +982,19 @@ function Ct(e, t = {}, n = []) {
982
982
  const l = i.state.params || t.defaultParams || [];
983
983
  i.run(...l);
984
984
  }
985
- }), $(() => {
985
+ }), W(() => {
986
986
  i.cancel();
987
987
  }), {
988
988
  loading: i.state.loading,
989
989
  data: i.state.data,
990
990
  error: i.state.error,
991
991
  params: i.state.params || [],
992
- cancel: E(i.cancel.bind(i)),
993
- refresh: E(i.refresh.bind(i)),
994
- refreshAsync: E(i.refreshAsync.bind(i)),
995
- run: E(i.run.bind(i)),
996
- runAsync: E(i.runAsync.bind(i)),
997
- mutate: E(i.mutate.bind(i))
992
+ cancel: y(i.cancel.bind(i)),
993
+ refresh: y(i.refresh.bind(i)),
994
+ refreshAsync: y(i.refreshAsync.bind(i)),
995
+ run: y(i.run.bind(i)),
996
+ runAsync: y(i.runAsync.bind(i)),
997
+ mutate: y(i.mutate.bind(i))
998
998
  };
999
999
  }
1000
1000
  function ke(e, t, n) {
@@ -1014,7 +1014,7 @@ const Dt = (e) => e === document || e === document.documentElement || e === docu
1014
1014
  window.pageYOffset,
1015
1015
  document.documentElement.scrollTop,
1016
1016
  document.body.scrollTop
1017
- ) : e.scrollTop, Re = (e) => e.scrollHeight || Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), Mt = (e) => e.clientHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight), In = (e, t = {}) => {
1017
+ ) : e.scrollTop, we = (e) => e.scrollHeight || Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), Mt = (e) => e.clientHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight), kn = (e, t = {}) => {
1018
1018
  const {
1019
1019
  target: n,
1020
1020
  isNoMore: r,
@@ -1022,18 +1022,18 @@ const Dt = (e) => e === document || e === document.documentElement || e === docu
1022
1022
  direction: o = "bottom",
1023
1023
  reloadDeps: a = [],
1024
1024
  manual: c,
1025
- onBefore: f,
1025
+ onBefore: d,
1026
1026
  onSuccess: i,
1027
1027
  onError: l,
1028
1028
  onFinally: u
1029
- } = t, [m, h] = b(), [p, d] = b(!1), T = o === "top", A = y(void 0), O = y(0), g = x(() => r ? r(m) : !1, [m]), { loading: v, error: S, run: R, runAsync: N, cancel: I } = ke(
1029
+ } = t, [m, h] = b(), [p, f] = b(!1), T = o === "top", A = E(void 0), O = E(0), g = x(() => r ? r(m) : !1, [m]), { loading: v, error: S, run: R, runAsync: N, cancel: I } = ke(
1030
1030
  async (M) => ({ currentData: await e(M), lastData: M }),
1031
1031
  {
1032
1032
  manual: c,
1033
- onFinally: (M, _, j) => {
1034
- d(!1), u?.(_?.currentData, j);
1033
+ onFinally: (M, H, z) => {
1034
+ f(!1), u?.(H?.currentData, z);
1035
1035
  },
1036
- onBefore: () => f?.(),
1036
+ onBefore: () => d?.(),
1037
1037
  onSuccess: (M) => {
1038
1038
  M.lastData ? h({
1039
1039
  ...M.currentData,
@@ -1043,30 +1043,30 @@ const Dt = (e) => e === document || e === document.documentElement || e === docu
1043
1043
  list: [...M.currentData.list ?? []]
1044
1044
  }), setTimeout(() => {
1045
1045
  if (T) {
1046
- let _ = D(n);
1047
- if (_ = _ === document ? document.documentElement : _, _) {
1048
- const j = Re(_);
1049
- _.scrollTo(0, j - O.current);
1046
+ let H = D(n);
1047
+ if (H = H === document ? document.documentElement : H, H) {
1048
+ const z = we(H);
1049
+ H.scrollTo(0, z - O.current);
1050
1050
  }
1051
1051
  } else
1052
- ye();
1052
+ pe();
1053
1053
  }), i?.(M.currentData);
1054
1054
  },
1055
1055
  onError: (M) => l?.(M)
1056
1056
  }
1057
- ), w = E(() => {
1058
- g || (d(!0), R(m));
1059
- }), Y = async (M) => (await N(M)).currentData, P = E(() => g ? Promise.reject() : (d(!0), Y(m))), H = () => (d(!1), R()), oe = () => (d(!1), Y()), ye = () => {
1057
+ ), w = y(() => {
1058
+ g || (f(!0), R(m));
1059
+ }), Y = async (M) => (await N(M)).currentData, P = y(() => g ? Promise.reject() : (f(!0), Y(m))), _ = () => (f(!1), R()), oe = () => (f(!1), Y()), pe = () => {
1060
1060
  const M = D(n);
1061
1061
  if (!M)
1062
1062
  return;
1063
- const _ = M === document ? document.documentElement : M, j = Dt(_), Ee = Re(_), Be = Mt(_);
1064
- T ? (A.current !== void 0 && A.current > j && j <= s && w(), A.current = j, O.current = Ee - j) : Ee - j <= Be + s && w();
1063
+ const H = M === document ? document.documentElement : M, z = Dt(H), ve = we(H), Be = Mt(H);
1064
+ T ? (A.current !== void 0 && A.current > z && z <= s && w(), A.current = z, O.current = ve - z) : ve - z <= Be + s && w();
1065
1065
  };
1066
- return X(
1066
+ return j(
1067
1067
  "scroll",
1068
1068
  () => {
1069
- v || p || ye();
1069
+ v || p || pe();
1070
1070
  },
1071
1071
  { target: n }
1072
1072
  ), K(() => {
@@ -1079,15 +1079,15 @@ const Dt = (e) => e === document || e === document.documentElement || e === docu
1079
1079
  noMore: g,
1080
1080
  loadMore: w,
1081
1081
  loadMoreAsync: P,
1082
- reload: E(H),
1083
- reloadAsync: E(oe),
1082
+ reload: y(_),
1083
+ reloadAsync: y(oe),
1084
1084
  mutate: h,
1085
1085
  cancel: I
1086
1086
  };
1087
- }, He = (e, t, n) => {
1088
- const r = y(void 0), s = y(0);
1089
- Oe(t, r.current) || (s.current += 1), r.current = t, V(e, [s.current], n);
1090
- }, _e = {
1087
+ }, _e = (e, t, n) => {
1088
+ const r = E(void 0), s = E(0);
1089
+ Oe(t, r.current) || (s.current += 1), r.current = t, U(e, [s.current], n);
1090
+ }, He = {
1091
1091
  0: 48,
1092
1092
  1: 49,
1093
1093
  2: 50,
@@ -1146,7 +1146,7 @@ const Dt = (e) => e === document || e === document.documentElement || e === docu
1146
1146
  z: 90,
1147
1147
  leftwindowkey: 91,
1148
1148
  rightwindowkey: 92,
1149
- meta: tt ? [91, 93] : [91, 92],
1149
+ meta: et ? [91, 93] : [91, 92],
1150
1150
  selectkey: 93,
1151
1151
  numpad0: 96,
1152
1152
  numpad1: 97,
@@ -1192,7 +1192,7 @@ const Dt = (e) => e === document || e === document.documentElement || e === docu
1192
1192
  ctrl: (e) => e.ctrlKey,
1193
1193
  shift: (e) => e.shiftKey,
1194
1194
  alt: (e) => e.altKey,
1195
- meta: (e) => e.type === "keyup" ? _e.meta.includes(e.keyCode) : e.metaKey
1195
+ meta: (e) => e.type === "keyup" ? He.meta.includes(e.keyCode) : e.metaKey
1196
1196
  };
1197
1197
  function Ie(e) {
1198
1198
  return te(e) || F(e);
@@ -1201,7 +1201,7 @@ function Nt(e) {
1201
1201
  const t = Object.keys(me).reduce((n, r) => me[r](e) ? n + 1 : n, 0);
1202
1202
  return [16, 17, 18, 91, 92].includes(e.keyCode) ? t : t + 1;
1203
1203
  }
1204
- function Te(e, t, n) {
1204
+ function be(e, t, n) {
1205
1205
  if (!e.key)
1206
1206
  return !1;
1207
1207
  if (F(t))
@@ -1209,29 +1209,29 @@ function Te(e, t, n) {
1209
1209
  const r = t.split(".");
1210
1210
  let s = 0;
1211
1211
  for (const o of r) {
1212
- const a = me[o], c = _e[o.toLowerCase()];
1212
+ const a = me[o], c = He[o.toLowerCase()];
1213
1213
  (a && a(e) || c && c === e.keyCode) && s++;
1214
1214
  }
1215
1215
  return n ? s === r.length && Nt(e) === r.length ? t : !1 : s === r.length ? t : !1;
1216
1216
  }
1217
1217
  function Ot(e, t) {
1218
- return k(e) ? e : Ie(e) ? (n) => Te(n, e, t) : Array.isArray(e) ? (n) => e.find((r) => Te(n, r, t)) : () => !!e;
1218
+ return k(e) ? e : Ie(e) ? (n) => be(n, e, t) : Array.isArray(e) ? (n) => e.find((r) => be(n, r, t)) : () => !!e;
1219
1219
  }
1220
1220
  const xt = ["keydown"];
1221
- function Yn(e, t, n) {
1221
+ function _n(e, t, n) {
1222
1222
  const {
1223
1223
  events: r = xt,
1224
1224
  target: s,
1225
1225
  exactMatch: o = !1,
1226
1226
  useCapture: a = !1
1227
- } = n || {}, c = L(t), f = L(e);
1228
- He(
1227
+ } = n || {}, c = L(t), d = L(e);
1228
+ _e(
1229
1229
  () => {
1230
1230
  const i = D(s, window);
1231
1231
  if (!i)
1232
1232
  return;
1233
1233
  const l = (u) => {
1234
- const h = Ot(f.current, o)(u), p = Ie(h) ? h : u.key;
1234
+ const h = Ot(d.current, o)(u), p = Ie(h) ? h : u.key;
1235
1235
  if (h)
1236
1236
  return c.current?.(u, p);
1237
1237
  };
@@ -1246,29 +1246,29 @@ function Yn(e, t, n) {
1246
1246
  s
1247
1247
  );
1248
1248
  }
1249
- const Le = "HOOKS_SYNC_STORAGE_EVENT_NAME";
1249
+ const Re = "HOOKS_SYNC_STORAGE_EVENT_NAME";
1250
1250
  function Ye(e) {
1251
1251
  function t(n, r = {}) {
1252
1252
  let s;
1253
1253
  const {
1254
1254
  listenStorageChange: o = !1,
1255
- onError: a = (d) => {
1256
- console.error(d);
1255
+ onError: a = (f) => {
1256
+ console.error(f);
1257
1257
  }
1258
1258
  } = r;
1259
1259
  try {
1260
1260
  s = e();
1261
- } catch (d) {
1262
- a(d);
1261
+ } catch (f) {
1262
+ a(f);
1263
1263
  }
1264
- const c = (d) => r.serializer ? r.serializer(d) : JSON.stringify(d), f = (d) => r.deserializer ? r.deserializer(d) : JSON.parse(d);
1264
+ const c = (f) => r.serializer ? r.serializer(f) : JSON.stringify(f), d = (f) => r.deserializer ? r.deserializer(f) : JSON.parse(f);
1265
1265
  function i() {
1266
1266
  try {
1267
- const d = s?.getItem(n);
1268
- if (d)
1269
- return f(d);
1270
- } catch (d) {
1271
- a(d);
1267
+ const f = s?.getItem(n);
1268
+ if (f)
1269
+ return d(f);
1270
+ } catch (f) {
1271
+ a(f);
1272
1272
  }
1273
1273
  return k(r.defaultValue) ? r.defaultValue() : r.defaultValue;
1274
1274
  }
@@ -1276,8 +1276,8 @@ function Ye(e) {
1276
1276
  K(() => {
1277
1277
  u(i());
1278
1278
  }, [n]);
1279
- const m = (d) => {
1280
- const T = k(d) ? d(l) : d;
1279
+ const m = (f) => {
1280
+ const T = k(f) ? f(l) : f;
1281
1281
  o || u(T);
1282
1282
  try {
1283
1283
  let A;
@@ -1286,7 +1286,7 @@ function Ye(e) {
1286
1286
  // send custom event to communicate within same page
1287
1287
  // importantly this should not be a StorageEvent since those cannot
1288
1288
  // be constructed with a non-built-in storage area
1289
- new CustomEvent(Le, {
1289
+ new CustomEvent(Re, {
1290
1290
  detail: {
1291
1291
  key: n,
1292
1292
  newValue: A,
@@ -1298,28 +1298,28 @@ function Ye(e) {
1298
1298
  } catch (A) {
1299
1299
  a(A);
1300
1300
  }
1301
- }, h = (d) => {
1302
- d.key !== n || d.storageArea !== s || u(i());
1303
- }, p = (d) => {
1304
- h(d.detail);
1301
+ }, h = (f) => {
1302
+ f.key !== n || f.storageArea !== s || u(i());
1303
+ }, p = (f) => {
1304
+ h(f.detail);
1305
1305
  };
1306
- return X("storage", h, {
1306
+ return j("storage", h, {
1307
1307
  enable: o
1308
- }), X(Le, p, {
1308
+ }), j(Re, p, {
1309
1309
  enable: o
1310
1310
  }), [
1311
1311
  l,
1312
- E(m)
1312
+ y(m)
1313
1313
  ];
1314
1314
  }
1315
1315
  return t;
1316
1316
  }
1317
- const zn = Ye(
1318
- () => q ? localStorage : void 0
1317
+ const Hn = Ye(
1318
+ () => V ? localStorage : void 0
1319
1319
  );
1320
- function Xn(e) {
1321
- const t = y(!1);
1322
- return B(
1320
+ function In(e) {
1321
+ const t = E(!1);
1322
+ return q(
1323
1323
  async (...n) => {
1324
1324
  if (!t.current) {
1325
1325
  t.current = !0;
@@ -1335,16 +1335,16 @@ function Xn(e) {
1335
1335
  [e]
1336
1336
  );
1337
1337
  }
1338
- function jn(e, t, { delay: n = 300, moveThreshold: r, onClick: s, onLongPressEnd: o } = {}) {
1339
- const a = L(e), c = L(s), f = L(o), i = y(void 0), l = y(!1), u = y({ x: 0, y: 0 }), m = y(!1), h = y(!1), p = !!(r?.x && r.x > 0 || r?.y && r.y > 0);
1340
- V(
1338
+ function Yn(e, t, { delay: n = 300, moveThreshold: r, onClick: s, onLongPressEnd: o } = {}) {
1339
+ const a = L(e), c = L(s), d = L(o), i = E(void 0), l = E(!1), u = E({ x: 0, y: 0 }), m = E(!1), h = E(!1), p = !!(r?.x && r.x > 0 || r?.y && r.y > 0);
1340
+ U(
1341
1341
  () => {
1342
- const d = D(t);
1343
- if (!d?.addEventListener)
1342
+ const f = D(t);
1343
+ if (!f?.addEventListener)
1344
1344
  return;
1345
1345
  const T = (w) => {
1346
- const { clientX: Y, clientY: P } = A(w), H = Math.abs(Y - u.current.x), oe = Math.abs(P - u.current.y);
1347
- return !!(r?.x && H > r.x || r?.y && oe > r.y);
1346
+ const { clientX: Y, clientY: P } = A(w), _ = Math.abs(Y - u.current.x), oe = Math.abs(P - u.current.y);
1347
+ return !!(r?.x && _ > r.x || r?.y && oe > r.y);
1348
1348
  };
1349
1349
  function A(w) {
1350
1350
  return "TouchEvent" in window && w instanceof TouchEvent ? {
@@ -1372,30 +1372,20 @@ function jn(e, t, { delay: n = 300, moveThreshold: r, onClick: s, onLongPressEnd
1372
1372
  }, S = (w) => {
1373
1373
  i.current && T(w) && (clearTimeout(i.current), i.current = void 0);
1374
1374
  }, R = (w) => {
1375
- h.current && (h.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current ? f.current?.(w) : c.current && c.current(w), l.current = !1);
1375
+ h.current && (h.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current ? d.current?.(w) : c.current && c.current(w), l.current = !1);
1376
1376
  }, N = (w) => {
1377
- w?.sourceCapabilities?.firesTouchEvents || m.current && (m.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current ? f.current?.(w) : c.current && c.current(w), l.current = !1);
1377
+ w?.sourceCapabilities?.firesTouchEvents || m.current && (m.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current ? d.current?.(w) : c.current && c.current(w), l.current = !1);
1378
1378
  }, I = (w) => {
1379
- m.current && (m.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current && (f.current?.(w), l.current = !1));
1379
+ m.current && (m.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current && (d.current?.(w), l.current = !1));
1380
1380
  };
1381
- return d.addEventListener("mousedown", v), d.addEventListener("mouseup", N), d.addEventListener("mouseleave", I), d.addEventListener("touchstart", g), d.addEventListener("touchend", R), p && (d.addEventListener("mousemove", S), d.addEventListener("touchmove", S)), () => {
1382
- i.current && (clearTimeout(i.current), l.current = !1), d.removeEventListener("mousedown", v), d.removeEventListener("mouseup", N), d.removeEventListener("mouseleave", I), d.removeEventListener("touchstart", g), d.removeEventListener("touchend", R), p && (d.removeEventListener("mousemove", S), d.removeEventListener("touchmove", S));
1381
+ return f.addEventListener("mousedown", v), f.addEventListener("mouseup", N), f.addEventListener("mouseleave", I), f.addEventListener("touchstart", g), f.addEventListener("touchend", R), p && (f.addEventListener("mousemove", S), f.addEventListener("touchmove", S)), () => {
1382
+ i.current && (clearTimeout(i.current), l.current = !1), f.removeEventListener("mousedown", v), f.removeEventListener("mouseup", N), f.removeEventListener("mouseleave", I), f.removeEventListener("touchstart", g), f.removeEventListener("touchend", R), p && (f.removeEventListener("mousemove", S), f.removeEventListener("touchmove", S));
1383
1383
  };
1384
1384
  },
1385
1385
  [],
1386
1386
  t
1387
1387
  );
1388
1388
  }
1389
- function pe(e) {
1390
- const t = y(0), [n, r] = b(e), s = B((o) => {
1391
- cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
1392
- r(o);
1393
- });
1394
- }, []);
1395
- return $(() => {
1396
- cancelAnimationFrame(t.current);
1397
- }), [n, s];
1398
- }
1399
1389
  const Ft = {
1400
1390
  screenX: NaN,
1401
1391
  screenY: NaN,
@@ -1409,17 +1399,17 @@ const Ft = {
1409
1399
  elementW: NaN,
1410
1400
  elementPosX: NaN,
1411
1401
  elementPosY: NaN
1412
- }, Bn = (e) => {
1413
- const [t, n] = pe(Ft);
1414
- return X(
1402
+ }, Xn = (e) => {
1403
+ const [t, n] = De(Ft);
1404
+ return j(
1415
1405
  "mousemove",
1416
1406
  (r) => {
1417
- const { screenX: s, screenY: o, clientX: a, clientY: c, pageX: f, pageY: i } = r, l = {
1407
+ const { screenX: s, screenY: o, clientX: a, clientY: c, pageX: d, pageY: i } = r, l = {
1418
1408
  screenX: s,
1419
1409
  screenY: o,
1420
1410
  clientX: a,
1421
1411
  clientY: c,
1422
- pageX: f,
1412
+ pageX: d,
1423
1413
  pageY: i,
1424
1414
  elementX: NaN,
1425
1415
  elementY: NaN,
@@ -1429,8 +1419,8 @@ const Ft = {
1429
1419
  elementPosY: NaN
1430
1420
  }, u = D(e);
1431
1421
  if (u) {
1432
- const { left: m, top: h, width: p, height: d } = u.getBoundingClientRect();
1433
- l.elementPosX = m + window.pageXOffset, l.elementPosY = h + window.pageYOffset, l.elementX = f - l.elementPosX, l.elementY = i - l.elementPosY, l.elementW = p, l.elementH = d;
1422
+ const { left: m, top: h, width: p, height: f } = u.getBoundingClientRect();
1423
+ l.elementPosX = m + window.pageXOffset, l.elementPosY = h + window.pageYOffset, l.elementX = d - l.elementPosX, l.elementY = i - l.elementPosY, l.elementW = p, l.elementH = f;
1434
1424
  }
1435
1425
  n(l);
1436
1426
  },
@@ -1438,9 +1428,9 @@ const Ft = {
1438
1428
  target: () => document
1439
1429
  }
1440
1430
  ), t;
1441
- }, qn = (e, t, n = {}) => {
1431
+ }, jn = (e, t, n = {}) => {
1442
1432
  const r = L(e);
1443
- He(
1433
+ _e(
1444
1434
  () => {
1445
1435
  const s = D(t);
1446
1436
  if (!s)
@@ -1454,12 +1444,12 @@ const Ft = {
1454
1444
  t
1455
1445
  );
1456
1446
  };
1457
- function ze() {
1447
+ function Xe() {
1458
1448
  const e = navigator;
1459
1449
  return $e(e) ? e.connection || e.mozConnection || e.webkitConnection : null;
1460
1450
  }
1461
- function Ae() {
1462
- const e = ze();
1451
+ function Te() {
1452
+ const e = Xe();
1463
1453
  return e ? {
1464
1454
  rtt: e.rtt,
1465
1455
  type: e.type,
@@ -1469,11 +1459,11 @@ function Ae() {
1469
1459
  effectiveType: e.effectiveType
1470
1460
  } : {};
1471
1461
  }
1472
- function Vn() {
1462
+ function zn() {
1473
1463
  const [e, t] = b(() => ({
1474
1464
  since: void 0,
1475
1465
  online: navigator?.onLine,
1476
- ...Ae()
1466
+ ...Te()
1477
1467
  }));
1478
1468
  return C(() => {
1479
1469
  const n = () => {
@@ -1491,11 +1481,11 @@ function Vn() {
1491
1481
  }, s = () => {
1492
1482
  t((a) => ({
1493
1483
  ...a,
1494
- ...Ae()
1484
+ ...Te()
1495
1485
  }));
1496
1486
  };
1497
1487
  window.addEventListener("online", n), window.addEventListener("offline", r);
1498
- const o = ze();
1488
+ const o = Xe();
1499
1489
  return o?.addEventListener("change", s), () => {
1500
1490
  window.removeEventListener("online", n), window.removeEventListener("offline", r), o?.removeEventListener(
1501
1491
  "change",
@@ -1504,25 +1494,25 @@ function Vn() {
1504
1494
  };
1505
1495
  }, []), e;
1506
1496
  }
1507
- const Un = (e, t = {}) => {
1497
+ const Bn = (e, t = {}) => {
1508
1498
  const { defaultPageSize: n = 10, defaultCurrent: r = 1, ...s } = t, o = ke(e, {
1509
1499
  defaultParams: [{ current: r, pageSize: n }],
1510
1500
  refreshDepsAction: () => {
1511
1501
  u(1);
1512
1502
  },
1513
1503
  ...s
1514
- }), { current: a = 1, pageSize: c = n } = o.params[0] || {}, f = o.data?.total || 0, i = x(
1515
- () => Math.ceil(f / c),
1516
- [c, f]
1504
+ }), { current: a = 1, pageSize: c = n } = o.params[0] || {}, d = o.data?.total || 0, i = x(
1505
+ () => Math.ceil(d / c),
1506
+ [c, d]
1517
1507
  ), l = (h, p) => {
1518
- let d = h <= 0 ? 1 : h;
1519
- const T = p <= 0 ? 1 : p, A = Math.ceil(f / T);
1520
- d > A && (d = Math.max(1, A));
1508
+ let f = h <= 0 ? 1 : h;
1509
+ const T = p <= 0 ? 1 : p, A = Math.ceil(d / T);
1510
+ f > A && (f = Math.max(1, A));
1521
1511
  const [O = {}, ...g] = o.params || [];
1522
1512
  o.run(
1523
1513
  {
1524
1514
  ...O,
1525
- current: d,
1515
+ current: f,
1526
1516
  pageSize: T
1527
1517
  },
1528
1518
  ...g
@@ -1537,11 +1527,11 @@ const Un = (e, t = {}) => {
1537
1527
  pagination: {
1538
1528
  current: a,
1539
1529
  pageSize: c,
1540
- total: f,
1530
+ total: d,
1541
1531
  totalPage: i,
1542
- onChange: E(l),
1543
- changeCurrent: E(u),
1544
- changePageSize: E(m)
1532
+ onChange: y(l),
1533
+ changeCurrent: y(u),
1534
+ changePageSize: y(m)
1545
1535
  }
1546
1536
  };
1547
1537
  }, kt = (e, t = 0) => {
@@ -1556,14 +1546,14 @@ const Un = (e, t = {}) => {
1556
1546
  Date.now() - n >= t && (e(), n = Date.now()), r.id = requestAnimationFrame(s);
1557
1547
  };
1558
1548
  return r.id = requestAnimationFrame(s), r;
1559
- }, Ht = (e) => typeof cancelAnimationFrame > "u", _t = (e) => {
1560
- if (Ht(e.id))
1549
+ }, _t = (e) => typeof cancelAnimationFrame > "u", Ht = (e) => {
1550
+ if (_t(e.id))
1561
1551
  return clearInterval(e.id);
1562
1552
  cancelAnimationFrame(e.id);
1563
1553
  };
1564
- function $n(e, t, n) {
1565
- const r = n?.immediate, s = L(e), o = y(void 0), a = B(() => {
1566
- o.current && _t(o.current);
1554
+ function qn(e, t, n) {
1555
+ const r = n?.immediate, s = L(e), o = E(void 0), a = q(() => {
1556
+ o.current && Ht(o.current);
1567
1557
  }, []);
1568
1558
  return C(() => {
1569
1559
  if (!(!F(t) || t < 0))
@@ -1583,14 +1573,14 @@ const It = (e, t = 0) => {
1583
1573
  Date.now() - r >= t ? e() : n.id = requestAnimationFrame(s);
1584
1574
  };
1585
1575
  return n.id = requestAnimationFrame(s), n;
1586
- }, Yt = (e) => typeof cancelAnimationFrame > "u", zt = (e) => {
1576
+ }, Yt = (e) => typeof cancelAnimationFrame > "u", Xt = (e) => {
1587
1577
  if (Yt(e.id))
1588
1578
  return clearTimeout(e.id);
1589
1579
  cancelAnimationFrame(e.id);
1590
1580
  };
1591
- function Wn(e, t) {
1592
- const n = L(e), r = y(void 0), s = B(() => {
1593
- r.current && zt(r.current);
1581
+ function Vn(e, t) {
1582
+ const n = L(e), r = E(void 0), s = q(() => {
1583
+ r.current && Xt(r.current);
1594
1584
  }, []);
1595
1585
  return C(() => {
1596
1586
  if (!(!F(t) || t < 0))
@@ -1599,17 +1589,17 @@ function Wn(e, t) {
1599
1589
  }, t), s;
1600
1590
  }, [t]), s;
1601
1591
  }
1602
- const Pe = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap();
1603
- function Xe(e, t) {
1604
- const n = Pe.get(e);
1592
+ const Le = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap();
1593
+ function je(e, t) {
1594
+ const n = Le.get(e);
1605
1595
  if (n)
1606
1596
  return n;
1607
- if (Ce.has(e))
1597
+ if (Ae.has(e))
1608
1598
  return e;
1609
1599
  const r = new Proxy(e, {
1610
1600
  get(s, o, a) {
1611
- const c = Reflect.get(s, o, a), f = Reflect.getOwnPropertyDescriptor(s, o);
1612
- return !f?.configurable && !f?.writable ? c : de(c) || Array.isArray(c) ? Xe(c, t) : c;
1601
+ const c = Reflect.get(s, o, a), d = Reflect.getOwnPropertyDescriptor(s, o);
1602
+ return !d?.configurable && !d?.writable ? c : de(c) || Array.isArray(c) ? je(c, t) : c;
1613
1603
  },
1614
1604
  set(s, o, a) {
1615
1605
  const c = Reflect.set(s, o, a);
@@ -1620,24 +1610,24 @@ function Xe(e, t) {
1620
1610
  return t(), a;
1621
1611
  }
1622
1612
  });
1623
- return Pe.set(e, r), Ce.set(r, e), r;
1613
+ return Le.set(e, r), Ae.set(r, e), r;
1624
1614
  }
1625
- function Gn(e) {
1626
- const t = ne(), n = y(e);
1627
- return se(() => Xe(n.current, () => {
1615
+ function Un(e) {
1616
+ const t = ne(), n = E(e);
1617
+ return se(() => je(n.current, () => {
1628
1618
  t();
1629
1619
  }), []);
1630
1620
  }
1631
- const Kn = (e) => {
1632
- const t = y(e), n = se(
1621
+ const $n = (e) => {
1622
+ const t = E(e), n = se(
1633
1623
  () => k(t.current) ? t.current() : t.current,
1634
1624
  []
1635
- ), [r, s] = b(n), o = E(() => {
1625
+ ), [r, s] = b(n), o = y(() => {
1636
1626
  s(n);
1637
1627
  });
1638
1628
  return [r, s, o];
1639
1629
  }, ee = /* @__PURE__ */ new Set();
1640
- let U, ge = {
1630
+ let B, ge = {
1641
1631
  xs: 0,
1642
1632
  sm: 576,
1643
1633
  md: 768,
@@ -1645,52 +1635,52 @@ let U, ge = {
1645
1635
  xl: 1200
1646
1636
  };
1647
1637
  function le() {
1648
- const e = U;
1649
- if (ve(), e !== U)
1638
+ const e = B;
1639
+ if (he(), e !== B)
1650
1640
  for (const t of ee)
1651
1641
  t();
1652
1642
  }
1653
1643
  let Q = !1;
1654
- function ve() {
1644
+ function he() {
1655
1645
  const e = window.innerWidth, t = {};
1656
1646
  let n = !1;
1657
1647
  for (const r of Object.keys(ge))
1658
- t[r] = e >= ge[r], t[r] !== U[r] && (n = !0);
1659
- n && (U = t);
1648
+ t[r] = e >= ge[r], t[r] !== B[r] && (n = !0);
1649
+ n && (B = t);
1660
1650
  }
1661
- function Jn(e) {
1662
- ge = e, U && ve();
1651
+ function Wn(e) {
1652
+ ge = e, B && he();
1663
1653
  }
1664
- function Qn() {
1665
- q && !Q && (U = {}, ve(), window.addEventListener("resize", le), Q = !0);
1666
- const [e, t] = b(U);
1654
+ function Gn() {
1655
+ V && !Q && (B = {}, he(), window.addEventListener("resize", le), Q = !0);
1656
+ const [e, t] = b(B);
1667
1657
  return C(() => {
1668
- if (!q)
1658
+ if (!V)
1669
1659
  return;
1670
1660
  Q || window.addEventListener("resize", le);
1671
1661
  const n = () => {
1672
- t(U);
1662
+ t(B);
1673
1663
  };
1674
1664
  return ee.add(n), () => {
1675
1665
  ee.delete(n), ee.size === 0 && (window.removeEventListener("resize", le), Q = !1);
1676
1666
  };
1677
1667
  }, []), e;
1678
1668
  }
1679
- const Xt = () => {
1680
- const e = y(!1);
1669
+ const jt = () => {
1670
+ const e = E(!1);
1681
1671
  return C(() => (e.current = !1, () => {
1682
1672
  e.current = !0;
1683
1673
  }), []), e;
1684
1674
  };
1685
- function Zn(e) {
1686
- const t = Xt(), [n, r] = b(e), s = B((o) => {
1675
+ function Kn(e) {
1676
+ const t = jt(), [n, r] = b(e), s = q((o) => {
1687
1677
  t.current || r(o);
1688
1678
  }, []);
1689
1679
  return [n, s];
1690
1680
  }
1691
- function er(e, t = () => !0) {
1692
- const [n, r] = pe(), s = L(t);
1693
- return V(
1681
+ function Jn(e, t = () => !0) {
1682
+ const [n, r] = De(), s = L(t);
1683
+ return U(
1694
1684
  () => {
1695
1685
  const o = D(e, document);
1696
1686
  if (!o)
@@ -1724,7 +1714,7 @@ function er(e, t = () => !0) {
1724
1714
  e
1725
1715
  ), n;
1726
1716
  }
1727
- function tr(e, t) {
1717
+ function Qn(e, t) {
1728
1718
  let n = [], r;
1729
1719
  Array.isArray(t) ? n = t : de(t) && (n = t?.defaultSelected ?? n, r = t?.itemKey ?? r);
1730
1720
  const s = (g) => k(r) ? r(g) : te(r) && de(g) ? g[r] : g, [o, a] = b(n), c = x(() => {
@@ -1732,12 +1722,12 @@ function tr(e, t) {
1732
1722
  return Array.isArray(o) && o.forEach((v) => {
1733
1723
  g.set(s(v), v);
1734
1724
  }), g;
1735
- }, [o]), f = (g) => c.has(s(g)), i = (g) => {
1725
+ }, [o]), d = (g) => c.has(s(g)), i = (g) => {
1736
1726
  c.set(s(g), g), a(Array.from(c.values()));
1737
1727
  }, l = (g) => {
1738
1728
  c.delete(s(g)), a(Array.from(c.values()));
1739
1729
  }, u = (g) => {
1740
- f(g) ? l(g) : i(g);
1730
+ d(g) ? l(g) : i(g);
1741
1731
  }, m = () => {
1742
1732
  e.forEach((g) => {
1743
1733
  c.set(s(g), g);
@@ -1749,68 +1739,43 @@ function tr(e, t) {
1749
1739
  }, p = x(
1750
1740
  () => e.every((g) => !c.has(s(g))),
1751
1741
  [e, c]
1752
- ), d = x(
1742
+ ), f = x(
1753
1743
  () => e.every((g) => c.has(s(g))) && !p,
1754
1744
  [e, c, p]
1755
1745
  ), T = x(
1756
- () => !p && !d,
1757
- [p, d]
1758
- ), A = () => d ? h() : m(), O = () => {
1746
+ () => !p && !f,
1747
+ [p, f]
1748
+ ), A = () => f ? h() : m(), O = () => {
1759
1749
  c.clear(), a([]);
1760
1750
  };
1761
1751
  return {
1762
1752
  selected: o,
1763
1753
  noneSelected: p,
1764
- allSelected: d,
1754
+ allSelected: f,
1765
1755
  partiallySelected: T,
1766
1756
  setSelected: a,
1767
- isSelected: f,
1768
- select: E(i),
1769
- unSelect: E(l),
1770
- toggle: E(u),
1771
- selectAll: E(m),
1772
- unSelectAll: E(h),
1773
- clearAll: E(O),
1774
- toggleAll: E(A)
1757
+ isSelected: d,
1758
+ select: y(i),
1759
+ unSelect: y(l),
1760
+ toggle: y(u),
1761
+ selectAll: y(m),
1762
+ unSelectAll: y(h),
1763
+ clearAll: y(O),
1764
+ toggleAll: y(A)
1775
1765
  };
1776
1766
  }
1777
- const nr = Ye(
1778
- () => q ? sessionStorage : void 0
1779
- ), rr = (e) => {
1780
- const [t, n] = b(e), r = E((s) => {
1767
+ const Zn = Ye(
1768
+ () => V ? sessionStorage : void 0
1769
+ ), er = (e) => {
1770
+ const [t, n] = b(e), r = y((s) => {
1781
1771
  n((o) => {
1782
1772
  const a = k(s) ? s(o) : s;
1783
1773
  return a ? { ...o, ...a } : o;
1784
1774
  });
1785
1775
  });
1786
1776
  return [t, r];
1787
- }, jt = Qe(he), Bt = q ? jt : V;
1788
- function qt(e) {
1789
- const [t, n] = pe(() => {
1790
- const r = D(e);
1791
- return r ? { width: r.clientWidth, height: r.clientHeight } : void 0;
1792
- });
1793
- return Bt(
1794
- () => {
1795
- const r = D(e);
1796
- if (!r)
1797
- return;
1798
- const s = new ResizeObserver((o) => {
1799
- o.forEach((a) => {
1800
- const { clientWidth: c, clientHeight: f } = a.target;
1801
- n({ width: c, height: f });
1802
- });
1803
- });
1804
- return s.observe(r), () => {
1805
- s.disconnect();
1806
- };
1807
- },
1808
- [],
1809
- e
1810
- ), t;
1811
- }
1812
- const Vt = () => {
1813
- const e = q ? window.matchMedia("(prefers-color-scheme: dark)") : void 0, [t, n] = b(() => q && e?.matches ? "dark" : "light");
1777
+ }, zt = () => {
1778
+ const e = V ? window.matchMedia("(prefers-color-scheme: dark)") : void 0, [t, n] = b(() => V && e?.matches ? "dark" : "light");
1814
1779
  return C(() => {
1815
1780
  const r = (s) => {
1816
1781
  s.matches ? n(
@@ -1826,17 +1791,17 @@ const Vt = () => {
1826
1791
  };
1827
1792
  }, []), t;
1828
1793
  };
1829
- function sr(e = {}) {
1794
+ function tr(e = {}) {
1830
1795
  const { localStorageKey: t } = e, [n, r] = b(() => t?.length && localStorage.getItem(t) || "system"), s = (c) => {
1831
1796
  r(c), t?.length && localStorage.setItem(t, c);
1832
- }, o = Vt();
1797
+ }, o = zt();
1833
1798
  return {
1834
1799
  theme: n === "system" ? o : n,
1835
1800
  themeMode: n,
1836
- setThemeMode: E(s)
1801
+ setThemeMode: y(s)
1837
1802
  };
1838
1803
  }
1839
- function je(e, t) {
1804
+ function ze(e, t) {
1840
1805
  re && (k(e) || console.error(
1841
1806
  `useThrottleFn expected parameter is a function, got ${typeof e}`
1842
1807
  ));
@@ -1848,7 +1813,7 @@ function je(e, t) {
1848
1813
  ),
1849
1814
  []
1850
1815
  );
1851
- return $(() => {
1816
+ return W(() => {
1852
1817
  s.cancel();
1853
1818
  }), {
1854
1819
  run: s,
@@ -1856,60 +1821,60 @@ function je(e, t) {
1856
1821
  flush: s.flush
1857
1822
  };
1858
1823
  }
1859
- function or(e, t) {
1860
- const [n, r] = b(e), { run: s } = je(() => {
1824
+ function nr(e, t) {
1825
+ const [n, r] = b(e), { run: s } = ze(() => {
1861
1826
  r(e);
1862
1827
  }, t);
1863
1828
  return C(() => {
1864
1829
  s();
1865
1830
  }, [e]), n;
1866
1831
  }
1867
- function cr(e, t, n) {
1868
- const [r, s] = b({}), { run: o } = je(() => {
1832
+ function rr(e, t, n) {
1833
+ const [r, s] = b({}), { run: o } = ze(() => {
1869
1834
  s({});
1870
1835
  }, n);
1871
1836
  C(() => o(), t), K(e, [r]);
1872
1837
  }
1873
- const ar = (e, t) => {
1874
- const n = E(e), r = y(null), s = B(() => {
1838
+ const sr = (e, t) => {
1839
+ const n = y(e), r = E(null), s = q(() => {
1875
1840
  r.current && clearTimeout(r.current);
1876
1841
  }, []);
1877
1842
  return C(() => {
1878
1843
  if (!(!F(t) || t < 0))
1879
1844
  return r.current = setTimeout(n, t), s;
1880
1845
  }, [t]), s;
1881
- }, Ut = {
1846
+ }, Bt = {
1882
1847
  restoreOnUnmount: !1
1883
1848
  };
1884
- function ur(e, t = Ut) {
1885
- const n = y(q ? document.title : "");
1849
+ function or(e, t = Bt) {
1850
+ const n = E(V ? document.title : "");
1886
1851
  C(() => {
1887
1852
  document.title = e;
1888
- }, [e]), $(() => {
1853
+ }, [e]), W(() => {
1889
1854
  t.restoreOnUnmount && (document.title = n.current);
1890
1855
  });
1891
1856
  }
1892
- const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filter((n) => n >= 0) : t ? t.map((n, r) => r) : [], ir = (e, t) => {
1893
- const n = y(void 0);
1857
+ const qt = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filter((n) => n >= 0) : t ? t.map((n, r) => r) : [], cr = (e, t) => {
1858
+ const n = E(void 0);
1894
1859
  C(() => {
1895
- const r = $t(n.current, t), s = n.current;
1860
+ const r = qt(n.current, t), s = n.current;
1896
1861
  return n.current = t, e(r, s, t);
1897
1862
  }, t);
1898
- }, lr = et(he), fe = nt, Wt = {
1863
+ }, ar = Ze(Pe), fe = nt, Vt = {
1899
1864
  parseNumbers: !1,
1900
1865
  parseBooleans: !1
1901
- }, Gt = {
1866
+ }, Ut = {
1902
1867
  skipNull: !1,
1903
1868
  skipEmptyString: !1
1904
- }, fr = (e, t) => {
1869
+ }, ur = (e, t) => {
1905
1870
  const {
1906
1871
  navigateMode: n = "push",
1907
1872
  parseOptions: r,
1908
1873
  stringifyOptions: s
1909
- } = t || {}, o = { ...Wt, ...r }, a = {
1910
- ...Gt,
1874
+ } = t || {}, o = { ...Vt, ...r }, a = {
1875
+ ...Ut,
1911
1876
  ...s
1912
- }, c = fe.useLocation(), f = fe.useHistory?.(), i = fe.useNavigate?.(), l = ne(), u = y(
1877
+ }, c = fe.useLocation(), d = fe.useHistory?.(), i = fe.useNavigate?.(), l = ne(), u = E(
1913
1878
  typeof e == "function" ? e() : e || {}
1914
1879
  ), m = x(() => ae.parse(c.search, o), [c.search]), h = x(
1915
1880
  () => ({
@@ -1918,9 +1883,9 @@ const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filte
1918
1883
  }),
1919
1884
  [m]
1920
1885
  );
1921
- return [h, E((d) => {
1922
- const T = typeof d == "function" ? d(h) : d;
1923
- l(), f && f[n](
1886
+ return [h, y((f) => {
1887
+ const T = typeof f == "function" ? f(h) : f;
1888
+ l(), d && d[n](
1924
1889
  {
1925
1890
  hash: c.hash,
1926
1891
  search: ae.stringify(
@@ -1943,8 +1908,8 @@ const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filte
1943
1908
  }
1944
1909
  );
1945
1910
  })];
1946
- }, dr = (e, t) => {
1947
- const { containerTarget: n, wrapperTarget: r, itemHeight: s, overscan: o = 5 } = t, a = L(s), c = qt(n), f = y(!1), [i, l] = b(
1911
+ }, ir = (e, t) => {
1912
+ const { containerTarget: n, wrapperTarget: r, itemHeight: s, overscan: o = 5 } = t, a = L(s), c = tt(n), d = E(!1), [i, l] = b(
1948
1913
  []
1949
1914
  ), [u, m] = b({}), h = (g, v) => {
1950
1915
  if (F(a.current))
@@ -1968,7 +1933,7 @@ const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filte
1968
1933
  }
1969
1934
  }
1970
1935
  return S + 1;
1971
- }, d = (g) => F(a.current) ? g * a.current : e.slice(0, g).reduce(
1936
+ }, f = (g) => F(a.current) ? g * a.current : e.slice(0, g).reduce(
1972
1937
  (S, R, N) => S + a.current(N, e[N]),
1973
1938
  0
1974
1939
  ), T = x(() => F(a.current) ? e.length * a.current : e.reduce(
@@ -1977,14 +1942,14 @@ const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filte
1977
1942
  ), [e]), A = () => {
1978
1943
  const g = D(n);
1979
1944
  if (g) {
1980
- const { scrollTop: v, clientHeight: S } = g, R = p(v), N = h(S, R), I = Math.max(0, R - o), w = Math.min(e.length, R + N + o), Y = d(I);
1945
+ const { scrollTop: v, clientHeight: S } = g, R = p(v), N = h(S, R), I = Math.max(0, R - o), w = Math.min(e.length, R + N + o), Y = f(I);
1981
1946
  m({
1982
1947
  height: T - Y + "px",
1983
1948
  marginTop: Y + "px"
1984
1949
  }), l(
1985
- e.slice(I, w).map((P, H) => ({
1950
+ e.slice(I, w).map((P, _) => ({
1986
1951
  data: P,
1987
- index: H + I
1952
+ index: _ + I
1988
1953
  }))
1989
1954
  );
1990
1955
  }
@@ -1996,11 +1961,11 @@ const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filte
1996
1961
  );
1997
1962
  }, [u]), C(() => {
1998
1963
  !c?.width || !c?.height || A();
1999
- }, [c?.width, c?.height, e]), X(
1964
+ }, [c?.width, c?.height, e]), j(
2000
1965
  "scroll",
2001
1966
  (g) => {
2002
- if (f.current) {
2003
- f.current = !1;
1967
+ if (d.current) {
1968
+ d.current = !1;
2004
1969
  return;
2005
1970
  }
2006
1971
  g.preventDefault(), A();
@@ -2008,12 +1973,12 @@ const $t = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filte
2008
1973
  {
2009
1974
  target: n
2010
1975
  }
2011
- ), [i, E((g) => {
1976
+ ), [i, y((g) => {
2012
1977
  const v = D(n);
2013
- v && (f.current = !0, v.scrollTop = d(g), A());
1978
+ v && (d.current = !0, v.scrollTop = f(g), A());
2014
1979
  })];
2015
1980
  };
2016
- function mr(e, t = {}) {
1981
+ function lr(e, t = {}) {
2017
1982
  const {
2018
1983
  reconnectLimit: n = 3,
2019
1984
  reconnectInterval: r = 3 * 1e3,
@@ -2021,12 +1986,12 @@ function mr(e, t = {}) {
2021
1986
  onOpen: o,
2022
1987
  onClose: a,
2023
1988
  onMessage: c,
2024
- onError: f,
1989
+ onError: d,
2025
1990
  protocols: i
2026
1991
  } = t, [l, u] = b(), [m, h] = b(
2027
1992
  3
2028
1993
  /* Closed */
2029
- ), p = L(o), d = L(a), T = L(c), A = L(f), O = L(m), g = y(0), v = y(void 0), S = y(void 0), R = () => {
1994
+ ), p = L(o), f = L(a), T = L(c), A = L(d), O = L(m), g = E(0), v = E(void 0), S = E(void 0), R = () => {
2030
1995
  g.current < n && S.current?.readyState !== 1 && (v.current && clearTimeout(v.current), v.current = setTimeout(() => {
2031
1996
  N(), g.current++;
2032
1997
  }, r));
@@ -2036,20 +2001,20 @@ function mr(e, t = {}) {
2036
2001
  h(
2037
2002
  0
2038
2003
  /* Connecting */
2039
- ), P.onerror = (H) => {
2040
- S.current === P && (R(), A.current?.(H, P), h(
2004
+ ), P.onerror = (_) => {
2005
+ S.current === P && (R(), A.current?.(_, P), h(
2041
2006
  P.readyState || 3
2042
2007
  /* Closed */
2043
2008
  ));
2044
- }, P.onopen = (H) => {
2045
- S.current === P && (p.current?.(H, P), g.current = 0, h(
2009
+ }, P.onopen = (_) => {
2010
+ S.current === P && (p.current?.(_, P), g.current = 0, h(
2046
2011
  P.readyState || 1
2047
2012
  /* Open */
2048
2013
  ));
2049
- }, P.onmessage = (H) => {
2050
- S.current === P && (T.current?.(H, P), u(H));
2051
- }, P.onclose = (H) => {
2052
- d.current?.(H, P), S.current === P && R(), (!S.current || S.current === P) && h(
2014
+ }, P.onmessage = (_) => {
2015
+ S.current === P && (T.current?.(_, P), u(_));
2016
+ }, P.onclose = (_) => {
2017
+ f.current?.(_, P), S.current === P && R(), (!S.current || S.current === P) && h(
2053
2018
  P.readyState || 3
2054
2019
  /* Closed */
2055
2020
  );
@@ -2066,19 +2031,19 @@ function mr(e, t = {}) {
2066
2031
  };
2067
2032
  return C(() => {
2068
2033
  !s && e && w();
2069
- }, [e, s]), $(() => {
2034
+ }, [e, s]), W(() => {
2070
2035
  Y();
2071
2036
  }), {
2072
2037
  latestMessage: l,
2073
- sendMessage: E(I),
2074
- connect: E(w),
2075
- disconnect: E(Y),
2038
+ sendMessage: y(I),
2039
+ connect: y(w),
2040
+ disconnect: y(Y),
2076
2041
  readyState: m,
2077
2042
  webSocketIns: S.current
2078
2043
  };
2079
2044
  }
2080
- function gr(e, t) {
2081
- const n = y({});
2045
+ function fr(e, t) {
2046
+ const n = E({});
2082
2047
  C(() => {
2083
2048
  if (n.current) {
2084
2049
  const r = Object.keys({ ...n.current, ...t }), s = {};
@@ -2093,68 +2058,66 @@ function gr(e, t) {
2093
2058
  });
2094
2059
  }
2095
2060
  export {
2096
- je as $,
2097
- In as A,
2098
- Hn as B,
2099
- Yn as C,
2100
- zn as D,
2101
- Xn as E,
2102
- jn as F,
2061
+ or as $,
2062
+ kn as A,
2063
+ xn as B,
2064
+ _n as C,
2065
+ Hn as D,
2066
+ In as E,
2067
+ Yn as F,
2103
2068
  Fe as G,
2104
- Bn as H,
2105
- qn as I,
2106
- Vn as J,
2107
- Un as K,
2108
- $n as L,
2109
- pe as M,
2110
- Wn as N,
2111
- Gn as O,
2112
- ke as P,
2113
- Kn as Q,
2114
- Qn as R,
2115
- Zn as S,
2116
- er as T,
2117
- tr as U,
2118
- nr as V,
2119
- rr as W,
2120
- qt as X,
2121
- sr as Y,
2122
- or as Z,
2123
- cr as _,
2124
- Jn as a,
2125
- ar as a0,
2126
- ur as a1,
2127
- st as a2,
2128
- ir as a3,
2129
- Xt as a4,
2130
- lr as a5,
2131
- fr as a6,
2132
- dr as a7,
2133
- mr as a8,
2134
- gr as a9,
2069
+ Xn as H,
2070
+ jn as I,
2071
+ zn as J,
2072
+ Bn as K,
2073
+ qn as L,
2074
+ Vn as M,
2075
+ Un as N,
2076
+ ke as O,
2077
+ $n as P,
2078
+ Gn as Q,
2079
+ Kn as R,
2080
+ Jn as S,
2081
+ Qn as T,
2082
+ Zn as U,
2083
+ er as V,
2084
+ tr as W,
2085
+ nr as X,
2086
+ rr as Y,
2087
+ ze as Z,
2088
+ sr as _,
2089
+ Wn as a,
2090
+ st as a0,
2091
+ cr as a1,
2092
+ jt as a2,
2093
+ ar as a3,
2094
+ ur as a4,
2095
+ ir as a5,
2096
+ lr as a6,
2097
+ fr as a7,
2135
2098
  ot as b,
2136
- _n as c,
2137
- pn as d,
2138
- vn as e,
2139
- yn as f,
2140
- En as g,
2141
- Sn as h,
2142
- wn as i,
2143
- bn as j,
2099
+ Fn as c,
2100
+ mn as d,
2101
+ gn as e,
2102
+ hn as f,
2103
+ pn as g,
2104
+ vn as h,
2105
+ yn as i,
2106
+ En as j,
2144
2107
  Ne as k,
2145
- Rn as l,
2146
- Tn as m,
2147
- Ln as n,
2148
- An as o,
2149
- Pn as p,
2150
- X as q,
2151
- Cn as r,
2152
- Dn as s,
2153
- Mn as t,
2154
- hn as u,
2155
- Nn as v,
2156
- On as w,
2157
- xn as x,
2158
- Fn as y,
2159
- kn as z
2108
+ Sn as l,
2109
+ wn as m,
2110
+ bn as n,
2111
+ Rn as o,
2112
+ Tn as p,
2113
+ j as q,
2114
+ Ln as r,
2115
+ An as s,
2116
+ Pn as t,
2117
+ dn as u,
2118
+ Cn as v,
2119
+ Dn as w,
2120
+ Mn as x,
2121
+ Nn as y,
2122
+ On as z
2160
2123
  };