@siberiacancode/reactuse 0.0.86 → 0.0.87

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 (278) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-BNBLgU3K.js → _rollupPluginBabelHelpers-BzvxghPP.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-BzvxghPP.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
  5. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  6. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  7. package/dist/cjs/hooks/useBattery/useBattery.js.map +1 -1
  8. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  9. package/dist/cjs/hooks/useBluetooth/useBluetooth.js.map +1 -1
  10. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  11. package/dist/cjs/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  12. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  13. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  14. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +1 -1
  15. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  16. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  17. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  18. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  19. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  20. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  21. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  22. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  23. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  24. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +3 -0
  25. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js.map +1 -0
  26. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  27. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  28. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +1 -1
  29. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  30. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  31. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  32. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  33. package/dist/cjs/hooks/useEventListener/useEventListener.js +1 -1
  34. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  35. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  36. package/dist/cjs/hooks/useField/useField.js +2 -2
  37. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  38. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  39. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  40. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  41. package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  42. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  43. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  44. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  45. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  46. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  47. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  48. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  49. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  50. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  51. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  52. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  53. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  54. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  55. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +1 -1
  56. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +1 -1
  57. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  58. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  59. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  60. package/dist/cjs/hooks/useList/useList.js +2 -2
  61. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  62. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  63. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  64. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  65. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  66. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  67. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  68. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  69. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  70. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  71. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  72. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  73. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  74. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  75. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  76. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  77. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  78. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  79. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  80. package/dist/cjs/hooks/usePaint/helpers/Paint.js +2 -2
  81. package/dist/cjs/hooks/usePaint/helpers/Pointer.js +2 -2
  82. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  83. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  84. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  85. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  86. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  87. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  88. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  89. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  90. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  91. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  92. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  93. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  94. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  95. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  96. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  97. package/dist/cjs/hooks/useRefState/useRefState.js +1 -1
  98. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  99. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  100. package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
  101. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  102. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  103. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  104. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  105. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +1 -1
  106. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  107. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  108. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  109. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  110. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  111. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  112. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  113. package/dist/cjs/hooks/useTextDirection/useTextDirection.js.map +1 -1
  114. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  115. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  116. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
  117. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  118. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  119. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  120. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  121. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  122. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  123. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  124. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +1 -1
  125. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  126. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  127. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  128. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  129. package/dist/cjs/index.js +2 -2
  130. package/dist/cjs/utils/helpers/debounce.js +1 -1
  131. package/dist/cjs/utils/helpers/getElement.js +1 -1
  132. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  133. package/dist/cjs/utils/helpers/index.js +1 -1
  134. package/dist/cjs/utils/helpers/isClient.js +1 -1
  135. package/dist/cjs/utils/helpers/isTarget.js +1 -1
  136. package/dist/cjs/utils/helpers/throttle.js +1 -1
  137. package/dist/cjs/utils/helpers/time/getDate.js +1 -1
  138. package/dist/esm/{_rollupPluginBabelHelpers-C75B2U9C.js → _rollupPluginBabelHelpers-B8S6IKRR.js} +2 -2
  139. package/dist/esm/_rollupPluginBabelHelpers-B8S6IKRR.js.map +1 -0
  140. package/dist/esm/hooks/index.js +2 -2
  141. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  142. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  143. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  144. package/dist/esm/hooks/useBattery/useBattery.js.map +1 -1
  145. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  146. package/dist/esm/hooks/useBluetooth/useBluetooth.js.map +1 -1
  147. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  148. package/dist/esm/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  149. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  150. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  151. package/dist/esm/hooks/useClickOutside/useClickOutside.js +1 -1
  152. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  153. package/dist/esm/hooks/useConst/useConst.js +1 -1
  154. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  155. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  156. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  157. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  158. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  159. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  160. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  161. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +3 -0
  162. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js.map +1 -0
  163. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  164. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  165. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +1 -1
  166. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  167. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  168. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  169. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  170. package/dist/esm/hooks/useEventListener/useEventListener.js +1 -1
  171. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  172. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  173. package/dist/esm/hooks/useField/useField.js +2 -2
  174. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  175. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  176. package/dist/esm/hooks/useFps/useFps.js +2 -2
  177. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  178. package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  179. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  180. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  181. package/dist/esm/hooks/useHash/useHash.js +2 -2
  182. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  183. package/dist/esm/hooks/useHover/useHover.js +2 -2
  184. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  185. package/dist/esm/hooks/useImage/useImage.js +2 -2
  186. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  187. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  188. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  189. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  190. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  191. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  192. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +1 -1
  193. package/dist/esm/hooks/useKeyboard/useKeyboard.js +1 -1
  194. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  195. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  196. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  197. package/dist/esm/hooks/useList/useList.js +2 -2
  198. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  199. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  200. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  201. package/dist/esm/hooks/useMap/useMap.js +2 -2
  202. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  203. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  204. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  205. package/dist/esm/hooks/useMount/useMount.js +1 -1
  206. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  207. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  208. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  209. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  210. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  211. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  212. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  213. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  214. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  215. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  216. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  217. package/dist/esm/hooks/usePaint/helpers/Paint.js +2 -2
  218. package/dist/esm/hooks/usePaint/helpers/Pointer.js +2 -2
  219. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  220. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  221. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  222. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  223. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  224. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  225. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  226. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  227. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  228. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  229. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  230. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  231. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  232. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  233. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  234. package/dist/esm/hooks/useRefState/useRefState.js +1 -1
  235. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  236. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  237. package/dist/esm/hooks/useRerender/useRerender.js +1 -1
  238. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  239. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  240. package/dist/esm/hooks/useScript/useScript.js +2 -2
  241. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  242. package/dist/esm/hooks/useScrollTo/useScrollTo.js +1 -1
  243. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  244. package/dist/esm/hooks/useSet/useSet.js +2 -2
  245. package/dist/esm/hooks/useShare/useShare.js +2 -2
  246. package/dist/esm/hooks/useStep/useStep.js +2 -2
  247. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  248. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  249. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  250. package/dist/esm/hooks/useTextDirection/useTextDirection.js.map +1 -1
  251. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  252. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  253. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
  254. package/dist/esm/hooks/useTime/useTime.js +2 -2
  255. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  256. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  257. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  258. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  259. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  260. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  261. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +1 -1
  262. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  263. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  264. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  265. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  266. package/dist/esm/index.js +2 -2
  267. package/dist/esm/utils/helpers/debounce.js +1 -1
  268. package/dist/esm/utils/helpers/getElement.js +1 -1
  269. package/dist/esm/utils/helpers/getRetry.js +1 -1
  270. package/dist/esm/utils/helpers/index.js +1 -1
  271. package/dist/esm/utils/helpers/isClient.js +1 -1
  272. package/dist/esm/utils/helpers/isTarget.js +1 -1
  273. package/dist/esm/utils/helpers/throttle.js +1 -1
  274. package/dist/esm/utils/helpers/time/getDate.js +1 -1
  275. package/dist/types/index.d.ts +24 -5
  276. package/package.json +1 -1
  277. package/dist/cjs/_rollupPluginBabelHelpers-BNBLgU3K.js.map +0 -1
  278. package/dist/esm/_rollupPluginBabelHelpers-C75B2U9C.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{c as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useQuery as o}from"../useQuery/useQuery.js";import"react";import"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../useMount/useMount.js";var n=function(){var r=s(t().mark((function r(e){var s,o=arguments;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=o.length>1&&void 0!==o[1]?o[1]:{},r.abrupt("return",new Promise((function(r,t){var o=new Image,n=s.srcset,i=s.sizes,u=s.class,a=s.loading,c=s.crossorigin,p=s.referrerPolicy;o.src=e,n&&(o.srcset=n),i&&(o.sizes=i),u&&(o.className=u),a&&(o.loading=a),c&&(o.crossOrigin=c),p&&(o.referrerPolicy=p),o.onload=function(){return r(o)},o.onerror=t})));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),i=function(s,t){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o((function(){return n(s,t)}),r({keys:[s].concat(e(null!==(i=u.keys)&&void 0!==i?i:[]))},u))};export{i as useImage};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{c as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useQuery as o}from"../useQuery/useQuery.js";import"react";import"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../useMount/useMount.js";var n=function(){var r=s(t().mark((function r(e){var s,o=arguments;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=o.length>1&&void 0!==o[1]?o[1]:{},r.abrupt("return",new Promise((function(r,t){var o=new Image,n=s.srcset,i=s.sizes,u=s.class,a=s.loading,c=s.crossorigin,p=s.referrerPolicy;o.src=e,n&&(o.srcset=n),i&&(o.sizes=i),u&&(o.className=u),a&&(o.loading=a),c&&(o.crossOrigin=c),p&&(o.referrerPolicy=p),o.onload=function(){return r(o)},o.onerror=t})));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),i=function(s,t){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o((function(){return n(s,t)}),r({keys:[s].concat(e(null!==(i=u.keys)&&void 0!==i?i:[]))},u))};export{i as useImage};
3
3
  //# sourceMappingURL=useImage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useRef as i,useEffect as o}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{isTarget as s}from"../../utils/helpers/isTarget.js";import{useEvent as u}from"../useEvent/useEvent.js";import{useRefState as a}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var c=function(){var c,f,v=s(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],p=v?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],m=null!==(c=null==p?void 0:p.direction)&&void 0!==c?c:"bottom",h=null!==(f=null==p?void 0:p.distance)&&void 0!==f?f:10,g=n(!1),j=e(g,2),b=j[0],x=j[1],E=a(),R=i(d);R.current=d;var k=u(function(){var e=r(t().mark((function e(r){var n,i,o,l,s,u,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=2;break}return e.abrupt("return");case 2:if(n=r.target,i=n.clientHeight,o=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,u=n.scrollWidth,a=n.scrollLeft,!({bottom:o-(l+i),top:l,right:u-(a+s),left:a}[m]<=h)){e.next=11;break}return x(!0),e.next=10,R.current(r);case 10:x(!1);case 11:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}());return o((function(){if(v||E.current){var e=v?l(v):E.current;if(e)return e.addEventListener("scroll",k),function(){e.removeEventListener("scroll",k)}}}),[v,E.current,m,h]),v?b:{ref:E,loading:b}};export{c as useInfiniteScroll};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useRef as i,useEffect as o}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{isTarget as s}from"../../utils/helpers/isTarget.js";import{useEvent as u}from"../useEvent/useEvent.js";import{useRefState as a}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var c=function(){var c,f,v=s(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],p=v?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],m=null!==(c=null==p?void 0:p.direction)&&void 0!==c?c:"bottom",h=null!==(f=null==p?void 0:p.distance)&&void 0!==f?f:10,g=n(!1),j=e(g,2),b=j[0],x=j[1],E=a(),R=i(d);R.current=d;var k=u(function(){var e=r(t().mark((function e(r){var n,i,o,l,s,u,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=2;break}return e.abrupt("return");case 2:if(n=r.target,i=n.clientHeight,o=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,u=n.scrollWidth,a=n.scrollLeft,!({bottom:o-(l+i),top:l,right:u-(a+s),left:a}[m]<=h)){e.next=11;break}return x(!0),e.next=10,R.current(r);case 10:x(!1);case 11:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}());return o((function(){if(v||E.current){var e=v?l(v):E.current;if(e)return e.addEventListener("scroll",k),function(){e.removeEventListener("scroll",k)}}}),[v,E.current,m,h]),v?b:{ref:E,loading:b}};export{c as useInfiniteScroll};
3
3
  //# sourceMappingURL=useInfiniteScroll.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e,c as r}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useRef as t,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var s=function(){var s,v=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],c=null===(s=null==d?void 0:d.enabled)||void 0===s||s,a=n(),f=e(a,2),m=f[0],p=f[1],g=u(),h=t();return h.current=null==d?void 0:d.onChange,o((function(){if(c||v||g.current){var n=v?i(v):g.current;if(n){var t=new IntersectionObserver((function(r){var n,t=e(r,1)[0];p(t),null===(n=h.current)||void 0===n||n.call(h,t)}),r(r({},d),{},{root:null!=d&&d.root?i(null==d?void 0:d.root):document}));return t.observe(n),function(){t.disconnect()}}}}),[v,g.current,null==d?void 0:d.rootMargin,null==d?void 0:d.threshold,null==d?void 0:d.root,c]),v?{entry:m,inView:!(null==m||!m.isIntersecting)}:{ref:g,entry:m,inView:!(null==m||!m.isIntersecting)}};export{s as useIntersectionObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e,c as r}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useRef as t,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var s=function(){var s,v=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],c=null===(s=null==d?void 0:d.enabled)||void 0===s||s,a=n(),f=e(a,2),m=f[0],p=f[1],g=u(),h=t();return h.current=null==d?void 0:d.onChange,o((function(){if(c||v||g.current){var n=v?i(v):g.current;if(n){var t=new IntersectionObserver((function(r){var n,t=e(r,1)[0];p(t),null===(n=h.current)||void 0===n||n.call(h,t)}),r(r({},d),{},{root:null!=d&&d.root?i(null==d?void 0:d.root):document}));return t.observe(n),function(){t.disconnect()}}}}),[v,g.current,null==d?void 0:d.rootMargin,null==d?void 0:d.threshold,null==d?void 0:d.root,c]),v?{entry:m,inView:!(null==m||!m.isIntersecting)}:{ref:g,entry:m,inView:!(null==m||!m.isIntersecting)}};export{s as useIntersectionObserver};
3
3
  //# sourceMappingURL=useIntersectionObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{b as r,_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useRef as t,useEffect as l}from"react";import{useEvent as u}from"../useEvent/useEvent.js";var a=function(){for(var a,o,c=arguments.length,i=new Array(c),v=0;v<c;v++)i[v]=arguments[v];var f=i[0],s=null!==(a="number"==typeof i[1]?i[1]:i[1].interval)&&void 0!==a?a:1e3,m="object"===r(i[1])?i[1]:i[2],p=null===(o=null==m?void 0:m.enabled)||void 0===o||o,b=n(null==p||p),I=e(b,2),d=I[0],j=I[1],g=t(),y=u(f);l((function(){if(p)return g.current=setInterval(y,s),function(){clearInterval(g.current)}}),[p,s]);return{active:d,pause:function(){j(!1),clearInterval(g.current)},resume:function(){s<=0||(j(!0),clearInterval(g.current),g.current=setInterval(y,s))}}};export{a as useInterval};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{b as r,_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useRef as t,useEffect as l}from"react";import{useEvent as u}from"../useEvent/useEvent.js";var a=function(){for(var a,o,c=arguments.length,i=new Array(c),v=0;v<c;v++)i[v]=arguments[v];var f=i[0],s=null!==(a="number"==typeof i[1]?i[1]:i[1].interval)&&void 0!==a?a:1e3,m="object"===r(i[1])?i[1]:i[2],p=null===(o=null==m?void 0:m.enabled)||void 0===o||o,b=n(null==p||p),I=e(b,2),d=I[0],j=I[1],g=t(),y=u(f);l((function(){if(p)return g.current=setInterval(y,s),function(){clearInterval(g.current)}}),[p,s]);return{active:d,pause:function(){j(!1),clearInterval(g.current)},resume:function(){s<=0||(j(!0),clearInterval(g.current),g.current=setInterval(y,s))}}};export{a as useInterval};
3
3
  //# sourceMappingURL=useInterval.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as r}from"react";var t=function(){var t=r(!0);return!0===t.current?(t.current=!1,!0):t.current};export{t as useIsFirstRender};
3
3
  //# sourceMappingURL=useIsFirstRender.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useLayoutEffect as r,useEffect as t}from"react";import{isClient as e}from"../../utils/helpers/isClient.js";var i=e?r:t;export{i as useIsomorphicLayoutEffect};
3
3
  //# sourceMappingURL=useIsomorphicLayoutEffect.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as r}from"react";import{useEventListener as t}from"../useEventListener/useEventListener.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var i=function(i,s){var n,o,u=r(!1),l=e(u,2),p=l[0],a=l[1];return t(null!==(n=null==s?void 0:s.target)&&void 0!==n?n:window,"keydown",(function(e){(Array.isArray(i)?i.includes(e.key):e.key===i)&&a(!0)})),t(null!==(o=null==s?void 0:s.target)&&void 0!==o?o:window,"keyup",(function(e){(Array.isArray(i)?i.includes(e.key):e.key===i)&&a(!1)})),p};export{i as useKeyPress};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as r}from"react";import{useEventListener as t}from"../useEventListener/useEventListener.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var i=function(i,s){var n,o,u=r(!1),l=e(u,2),p=l[0],a=l[1];return t(null!==(n=null==s?void 0:s.target)&&void 0!==n?n:window,"keydown",(function(e){(Array.isArray(i)?i.includes(e.key):e.key===i)&&a(!0)})),t(null!==(o=null==s?void 0:s.target)&&void 0!==o?o:window,"keyup",(function(e){(Array.isArray(i)?i.includes(e.key):e.key===i)&&a(!1)})),p};export{i as useKeyPress};
3
3
  //# sourceMappingURL=useKeyPress.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var t=function(){var t=Array.isArray(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:[arguments.length<=0?void 0:arguments[0]],n=(arguments.length<=1?void 0:arguments[1])instanceof Function?null:arguments.length<=1?void 0:arguments[1],i=n?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];e(null!=n?n:window,"keydown",(function(e){t.includes(e.key)&&i(e)}),n?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2])};export{t as useKeyPressEvent};
3
3
  //# sourceMappingURL=useKeyPressEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var t=function(t){var n,r;e(null!==(n=null==t?void 0:t.target)&&void 0!==n?n:window,"keydown",(function(e){var n;return null==t||null===(n=t.onKeyDown)||void 0===n?void 0:n.call(t,e)})),e(null!==(r=null==t?void 0:t.target)&&void 0!==r?r:window,"keyup",(function(e){var n;return null==t||null===(n=t.onKeyUp)||void 0===n?void 0:n.call(t,e)}))};export{t as useKeyboard};
3
3
  //# sourceMappingURL=useKeyboard.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as o}from"react";import{useDidUpdate as n}from"../useDidUpdate/useDidUpdate.js";import{useEventListener as r}from"../useEventListener/useEventListener.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var i=function(i){var u,s,l,d=null===(u=null==i?void 0:i.enabled)||void 0===u||u,c=o([]),p=e(c,2),f=p[0],m=p[1];return n((function(){m([])}),[d]),r(null!==(s=null==i?void 0:i.target)&&void 0!==s?s:window,"keydown",(function(e){d&&m((function(o){return o.some((function(t){return t.code===e.code}))?o:[].concat(t(o),[{key:e.key,code:e.code}])}))})),r(null!==(l=null==i?void 0:i.target)&&void 0!==l?l:window,"keyup",(function(e){d&&m((function(t){return t.filter((function(t){return t.code!==e.code}))}))})),f};export{i as useKeysPressed};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as o}from"react";import{useDidUpdate as n}from"../useDidUpdate/useDidUpdate.js";import{useEventListener as r}from"../useEventListener/useEventListener.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var i=function(i){var u,s,l,d=null===(u=null==i?void 0:i.enabled)||void 0===u||u,c=o([]),p=e(c,2),f=p[0],m=p[1];return n((function(){m([])}),[d]),r(null!==(s=null==i?void 0:i.target)&&void 0!==s?s:window,"keydown",(function(e){d&&m((function(o){return o.some((function(t){return t.code===e.code}))?o:[].concat(t(o),[{key:e.key,code:e.code}])}))})),r(null!==(l=null==i?void 0:i.target)&&void 0!==l?l:window,"keyup",(function(e){d&&m((function(t){return t.filter((function(t){return t.code!==e.code}))}))})),f};export{i as useKeysPressed};
3
3
  //# sourceMappingURL=useKeysPressed.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as o}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as r}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var e=function(e,i){var u,l=r(null!==(u=null==i?void 0:i.initialValue)&&void 0!==u?u:null),s=o(l,2),n=s[0],p=s[1];return t((function(){return p(Date.now())}),[e]),n};export{e as useLastChanged};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as o}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as r}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var e=function(e,i){var u,l=r(null!==(u=null==i?void 0:i.initialValue)&&void 0!==u?u:null),s=o(l,2),n=s[0],p=s[1];return t((function(){return p(Date.now())}),[e]),n};export{e as useLastChanged};
3
3
  //# sourceMappingURL=useLastChanged.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as r}from"react";var t=function(t){var e=r(t);return e.current=t,e.current};export{t as useLatest};
3
3
  //# sourceMappingURL=useLatest.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as n,a as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as r}from"react";var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r(e),c=n(u,2),o=c[0],i=c[1];return{value:o,set:i,push:function(n){return i((function(r){return[].concat(t(r),[n])}))},removeAt:function(n){return i((function(r){return[].concat(t(r.slice(0,n)),t(r.slice(n+1)))}))},insertAt:function(n,r){return i((function(e){return[].concat(t(e.slice(0,n)),[r],t(e.slice(n)))}))},updateAt:function(n,t){return i((function(r){return r.map((function(r,e){return e===n?t:r}))}))},clear:function(){return i([])},reset:function(){return i(e)}}};export{e as useList};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as n,a as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as r}from"react";var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r(e),c=n(u,2),o=c[0],i=c[1];return{value:o,set:i,push:function(n){return i((function(r){return[].concat(t(r),[n])}))},removeAt:function(n){return i((function(r){return[].concat(t(r.slice(0,n)),t(r.slice(n+1)))}))},insertAt:function(n,r){return i((function(e){return[].concat(t(e.slice(0,n)),[r],t(e.slice(n)))}))},updateAt:function(n,t){return i((function(r){return r.map((function(r,e){return e===n?t:r}))}))},clear:function(){return i([])},reset:function(){return i(e)}}};export{e as useList};
3
3
  //# sourceMappingURL=useList.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{c as o}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useStorage as r}from"../useStorage/useStorage.js";import"react";import"../../utils/helpers/isClient.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var e=function(e,t,i){return r(e,o({initialValue:t,storage:window.localStorage},i))};export{e as useLocalStorage};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{c as o}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useStorage as r}from"../useStorage/useStorage.js";import"react";import"../../utils/helpers/isClient.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var e=function(e,t,i){return r(e,o({initialValue:t,storage:window.localStorage},i))};export{e as useLocalStorage};
3
3
  //# sourceMappingURL=useLocalStorage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{a as o}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useEffect as t}from"react";import{useDidUpdate as e}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var n=function(n,c){t((function(){var t;return(t=console).log.apply(t,["".concat(n," mounted")].concat(o(c))),function(){return console.log("".concat(n," unmounted"))}}),[]),e((function(){var t;(t=console).log.apply(t,["".concat(n," updated")].concat(o(c)))}),c)};export{n as useLogger};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{a as o}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useEffect as t}from"react";import{useDidUpdate as e}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var n=function(n,c){t((function(){var t;return(t=console).log.apply(t,["".concat(n," mounted")].concat(o(c))),function(){return console.log("".concat(n," unmounted"))}}),[]),e((function(){var t;(t=console).log.apply(t,["".concat(n," updated")].concat(o(c)))}),c)};export{n as useLogger};
3
3
  //# sourceMappingURL=useLogger.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as l,useRef as r}from"react";var o=function(o,u){var t=l(!1),e=n(t,2),c=e[0],i=e[1],a=r(),v=r(!1),s=function(n){var l,r;null==u||null===(l=u.onStart)||void 0===l||l.call(u,n),v.current=!0,a.current=setTimeout((function(){o(n),i(!0)}),null!==(r=null==u?void 0:u.threshold)&&void 0!==r?r:400)},f=function(n){var l;if(c)null==u||null===(l=u.onFinish)||void 0===l||l.call(u,n);else if(v.current){var r;null==u||null===(r=u.onCancel)||void 0===r||r.call(u,n)}i(!1),v.current=!1,a.current&&clearTimeout(a.current)};return[{onMouseDown:s,onTouchStart:s,onMouseUp:f,onTouchEnd:f},c]};export{o as useLongPress};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as l,useRef as r}from"react";var o=function(o,u){var t=l(!1),e=n(t,2),c=e[0],i=e[1],a=r(),v=r(!1),s=function(n){var l,r;null==u||null===(l=u.onStart)||void 0===l||l.call(u,n),v.current=!0,a.current=setTimeout((function(){o(n),i(!0)}),null!==(r=null==u?void 0:u.threshold)&&void 0!==r?r:400)},f=function(n){var l;if(c)null==u||null===(l=u.onFinish)||void 0===l||l.call(u,n);else if(v.current){var r;null==u||null===(r=u.onCancel)||void 0===r||r.call(u,n)}i(!1),v.current=!1,a.current&&clearTimeout(a.current)};return[{onMouseDown:s,onTouchStart:s,onMouseUp:f,onTouchEnd:f},c]};export{o as useLongPress};
3
3
  //# sourceMappingURL=useLongPress.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as r}from"react";var n=function(n){var t=r(new Map(n)),u=e(t,2),a=u[0],o=u[1];return{value:a,size:a.size,set:function(e,r){return o((function(n){return new Map(n).set(e,r)}))},has:function(e){return a.has(e)},remove:function(e){return o((function(r){if(!r.has(e))return r;var n=new Map(r);return n.delete(e),n}))},clear:function(){return o(new Map)},reset:function(){return o(new Map(n))}}};export{n as useMap};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as r}from"react";var n=function(n){var t=r(new Map(n)),u=e(t,2),a=u[0],o=u[1];return{value:a,size:a.size,set:function(e,r){return o((function(n){return new Map(n).set(e,r)}))},has:function(e){return a.has(e)},remove:function(e){return o((function(r){if(!r.has(e))return r;var n=new Map(r);return n.delete(e),n}))},clear:function(){return o(new Map)},reset:function(){return o(new Map(n))}}};export{n as useMap};
3
3
  //# sourceMappingURL=useMap.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e,c as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as r}from"react";import{useRefState as i}from"../useRefState/useRefState.js";import{useResizeObserver as o}from"../useResizeObserver/useResizeObserver.js";import"../useRerender/useRerender.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var s=function(s){var l=i(),n=r({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),h=e(n,2),m=h[0],p=h[1];return o(null!=s?s:l.current,{onChange:function(t){var r=e(t,1)[0];if(r){var i=r.contentRect,o=i.x,s=i.y,l=i.width,n=i.height,h=i.top,m=i.left,u=i.bottom,f=i.right;p({x:o,y:s,width:l,height:n,top:h,left:m,bottom:u,right:f})}}}),s?m:t({ref:l},m)};export{s as useMeasure};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e,c as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as r}from"react";import{useRefState as i}from"../useRefState/useRefState.js";import{useResizeObserver as o}from"../useResizeObserver/useResizeObserver.js";import"../useRerender/useRerender.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var s=function(s){var l=i(),n=r({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),h=e(n,2),m=h[0],p=h[1];return o(null!=s?s:l.current,{onChange:function(t){var r=e(t,1)[0];if(r){var i=r.contentRect,o=i.x,s=i.y,l=i.width,n=i.height,h=i.top,m=i.left,u=i.bottom,f=i.right;p({x:o,y:s,width:l,height:n,top:h,left:m,bottom:u,right:f})}}}),s?m:t({ref:l},m)};export{s as useMeasure};
3
3
  //# sourceMappingURL=useMeasure.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useCallback as n,useSyncExternalStore as e}from"react";var t=function(){return!1},r=function(r){var a=n((function(n){var e=window.matchMedia(r);return e.addEventListener("change",n),function(){e.removeEventListener("change",n)}}),[r]);return e(a,(function(){return window.matchMedia(r).matches}),t)};export{r as useMediaQuery};
3
3
  //# sourceMappingURL=useMediaQuery.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as r}from"react";import{useInterval as o}from"../useInterval/useInterval.js";import"../useEvent/useEvent.js";var t=function(){var t=performance&&"memory"in performance,a=r({jsHeapSizeLimit:0,totalJSHeapSize:0,usedJSHeapSize:0}),n=e(a,2),m=n[0],p=n[1];return o((function(){return p(performance.memory)}),1e3,{enabled:t}),{supported:t,value:m}};export{t as useMemory};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as r}from"react";import{useInterval as o}from"../useInterval/useInterval.js";import"../useEvent/useEvent.js";var t=function(){var t=performance&&"memory"in performance,a=r({jsHeapSizeLimit:0,totalJSHeapSize:0,usedJSHeapSize:0}),n=e(a,2),m=n[0],p=n[1];return o((function(){return p(performance.memory)}),1e3,{enabled:t}),{supported:t,value:m}};export{t as useMemory};
3
3
  //# sourceMappingURL=useMemory.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useEffect as r}from"react";var t=function(t){return r(t,[])};export{t as useMount};
3
3
  //# sourceMappingURL=useMount.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e,c as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useEffect as r}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var m=function(m){var l=n({x:0,y:0,element:void 0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),s=e(l,2),u=s[0],a=s[1],p=i();return r((function(){if(m||p.current){var e=function(e){var n=m?o(m):p.current;if(n){var r={x:e.pageX,y:e.pageY},i=n.getBoundingClientRect(),l=i.left,s=i.top,u=l+window.scrollX,c=s+window.scrollY,f=e.pageX-u,v=e.pageY-c;r.element=n,r.elementX=f,r.elementY=v,r.elementPositionX=u,r.elementPositionY=c,a((function(e){return t(t({},e),r)}))}};return document.addEventListener("mousemove",e),function(){document.removeEventListener("mousemove",e)}}}),[p.current,m]),m?u:t({ref:p},u)};export{m as useMouse};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e,c as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useEffect as r}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var m=function(m){var l=n({x:0,y:0,element:void 0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),s=e(l,2),u=s[0],a=s[1],p=i();return r((function(){if(m||p.current){var e=function(e){var n=m?o(m):p.current;if(n){var r={x:e.pageX,y:e.pageY},i=n.getBoundingClientRect(),l=i.left,s=i.top,u=l+window.scrollX,c=s+window.scrollY,f=e.pageX-u,v=e.pageY-c;r.element=n,r.elementX=f,r.elementY=v,r.elementPositionX=u,r.elementPositionY=c,a((function(e){return t(t({},e),r)}))}};return document.addEventListener("mousemove",e),function(){document.removeEventListener("mousemove",e)}}}),[p.current,m]),m?u:t({ref:p},u)};export{m as useMouse};
3
3
  //# sourceMappingURL=useMouse.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r,c as l,d as n,e as o}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as u}from"react";var e=function(e,t){var i=u(!1),v=r(i,2),a=v[0],d=v[1],c=u(!1),s=r(c,2),y=s[0],f=s[1],p=u(!1),m=r(p,2),D=m[0],E=m[1],S=u(null),h=r(S,2),b=h[0],g=h[1],w=u(null),x=r(w,2),_=x[0],j=x[1],k=function(r,n){var o;d(!0);var u=null!==(o=null==n?void 0:n.attempt)&&void 0!==o?o:0;return e(r).then((function(r){var l;return null==n||null===(l=n.onSuccess)||void 0===l||l.call(n,r),j(r),E(!0),d(!1),g(null),f(!1),r})).catch((function(o){var e,t="function"==typeof(null==n?void 0:n.retry)?null==n?void 0:n.retry(u,o):null==n?void 0:n.retry,i="function"==typeof(null==n?void 0:n.retryDelay)?null==n?void 0:n.retryDelay(u,o):null==n?void 0:n.retryDelay;return"boolean"==typeof t&&t||t&&t>u?i?void setTimeout((function(){return k(r,l(l({},n),{},{attempt:u+1}))}),i):k(r,l(l({},n),{},{attempt:u+1})):(null==n||null===(e=n.onError)||void 0===e||e.call(n,o),j(null),E(!1),d(!1),g(o),void f(!0))}))},A=function(){var r=n(o().mark((function r(l,n){var u,e,i,v,a;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={retry:null!==(u=null==n?void 0:n.retry)&&void 0!==u?u:null==t?void 0:t.retry,retryDelay:null!==(e=null==n?void 0:n.retryDelay)&&void 0!==e?e:null==t?void 0:t.retryDelay,onSuccess:null!==(i=null==n?void 0:n.onSuccess)&&void 0!==i?i:null==t?void 0:t.onSuccess,onError:null!==(v=null==n?void 0:n.onError)&&void 0!==v?v:null==t?void 0:t.onError},r.abrupt("return",k(l,a));case 2:case"end":return r.stop()}}),r)})));return function(l,n){return r.apply(this,arguments)}}();return{data:_,error:b,mutate:function(r,l){var n,o,u,e,i={retry:null!==(n=null==l?void 0:l.retry)&&void 0!==n?n:null==t?void 0:t.retry,retryDelay:null!==(o=null==l?void 0:l.retryDelay)&&void 0!==o?o:null==t?void 0:t.retryDelay,onSuccess:null!==(u=null==l?void 0:l.onSuccess)&&void 0!==u?u:null==t?void 0:t.onSuccess,onError:null!==(e=null==l?void 0:l.onError)&&void 0!==e?e:null==t?void 0:t.onError};k(r,i)},mutateAsync:A,isLoading:a,isError:y,isSuccess:D}};export{e as useMutation};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r,c as l,d as n,e as o}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as u}from"react";var e=function(e,t){var i=u(!1),v=r(i,2),a=v[0],d=v[1],c=u(!1),s=r(c,2),y=s[0],f=s[1],p=u(!1),m=r(p,2),D=m[0],E=m[1],S=u(null),h=r(S,2),b=h[0],g=h[1],w=u(null),x=r(w,2),_=x[0],j=x[1],k=function(r,n){var o;d(!0);var u=null!==(o=null==n?void 0:n.attempt)&&void 0!==o?o:0;return e(r).then((function(r){var l;return null==n||null===(l=n.onSuccess)||void 0===l||l.call(n,r),j(r),E(!0),d(!1),g(null),f(!1),r})).catch((function(o){var e,t="function"==typeof(null==n?void 0:n.retry)?null==n?void 0:n.retry(u,o):null==n?void 0:n.retry,i="function"==typeof(null==n?void 0:n.retryDelay)?null==n?void 0:n.retryDelay(u,o):null==n?void 0:n.retryDelay;return"boolean"==typeof t&&t||t&&t>u?i?void setTimeout((function(){return k(r,l(l({},n),{},{attempt:u+1}))}),i):k(r,l(l({},n),{},{attempt:u+1})):(null==n||null===(e=n.onError)||void 0===e||e.call(n,o),j(null),E(!1),d(!1),g(o),void f(!0))}))},A=function(){var r=n(o().mark((function r(l,n){var u,e,i,v,a;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={retry:null!==(u=null==n?void 0:n.retry)&&void 0!==u?u:null==t?void 0:t.retry,retryDelay:null!==(e=null==n?void 0:n.retryDelay)&&void 0!==e?e:null==t?void 0:t.retryDelay,onSuccess:null!==(i=null==n?void 0:n.onSuccess)&&void 0!==i?i:null==t?void 0:t.onSuccess,onError:null!==(v=null==n?void 0:n.onError)&&void 0!==v?v:null==t?void 0:t.onError},r.abrupt("return",k(l,a));case 2:case"end":return r.stop()}}),r)})));return function(l,n){return r.apply(this,arguments)}}();return{data:_,error:b,mutate:function(r,l){var n,o,u,e,i={retry:null!==(n=null==l?void 0:l.retry)&&void 0!==n?n:null==t?void 0:t.retry,retryDelay:null!==(o=null==l?void 0:l.retryDelay)&&void 0!==o?o:null==t?void 0:t.retryDelay,onSuccess:null!==(u=null==l?void 0:l.onSuccess)&&void 0!==u?u:null==t?void 0:t.onSuccess,onError:null!==(e=null==l?void 0:l.onError)&&void 0!==e?e:null==t?void 0:t.onError};k(r,i)},mutateAsync:A,isLoading:a,isError:y,isSuccess:D}};export{e as useMutation};
3
3
  //# sourceMappingURL=useMutation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{b as r,_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as t,useRef as n,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useRefState as u}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var s=function(){var s,l="object"!==r(arguments.length<=0?void 0:arguments[0])||"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],v=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],a=t(),f=e(a,2),d=f[0],p=f[1],h=null===(s=null==v?void 0:v.enabled)||void 0===s||s,m=u(),b=n(c);b.current=c;var g=n(v);g.current=v,o((function(){if(h||l||m.current){if(Array.isArray(l)){if(!l.length)return;var r=new MutationObserver(b.current);return p(r),l.forEach((function(e){var t=i(e);t&&r.observe(t,g.current)})),function(){r.disconnect()}}var e=l?i(l):m.current;if(e){var t=new MutationObserver(b.current);return p(t),t.observe(e,g.current),function(){t.disconnect()}}}}),[l,m.current]);var j=function(){return null==d?void 0:d.disconnect()};return l?{stop:j,observer:d}:{ref:m,stop:j,observer:d}};export{s as useMutationObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{b as r,_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as t,useRef as n,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useRefState as u}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var s=function(){var s,l="object"!==r(arguments.length<=0?void 0:arguments[0])||"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],v=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],a=t(),f=e(a,2),d=f[0],p=f[1],h=null===(s=null==v?void 0:v.enabled)||void 0===s||s,m=u(),b=n(c);b.current=c;var g=n(v);g.current=v,o((function(){if(h||l||m.current){if(Array.isArray(l)){if(!l.length)return;var r=new MutationObserver(b.current);return p(r),l.forEach((function(e){var t=i(e);t&&r.observe(t,g.current)})),function(){r.disconnect()}}var e=l?i(l):m.current;if(e){var t=new MutationObserver(b.current);return p(t),t.observe(e,g.current),function(){t.disconnect()}}}}),[l,m.current]);var j=function(){return null==d?void 0:d.disconnect()};return l?{stop:j,observer:d}:{ref:m,stop:j,observer:d}};export{s as useMutationObserver};
3
3
  //# sourceMappingURL=useMutationObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as e,useEffect as i}from"react";import{isClient as o}from"../../utils/helpers/isClient.js";var t=function(){var n,e,i;return(null===(n=navigator)||void 0===n?void 0:n.connection)||(null===(e=navigator)||void 0===e?void 0:e.mozConnection)||(null===(i=navigator)||void 0===i?void 0:i.webkitConnection)},l=function(){var l=e((function(){if(!o)return{online:!1,type:void 0,effectiveType:void 0,saveData:!1,downlink:0,downlinkMax:0,rtt:0};var n=navigator.onLine,e=t();return{online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}})),v=n(l,2),a=v[0],r=v[1];return i((function(){var n=function(){var n=navigator.onLine,e=t();r({online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type})};window.addEventListener("online",n,{passive:!0}),window.addEventListener("offline",n,{passive:!0});var e=t();return e&&e.addEventListener("change",n,{passive:!0}),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n),e&&e.removeEventListener("change",n)}})),a};export{t as getConnection,l as useNetwork};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as e,useEffect as i}from"react";import{isClient as o}from"../../utils/helpers/isClient.js";var t=function(){var n,e,i;return(null===(n=navigator)||void 0===n?void 0:n.connection)||(null===(e=navigator)||void 0===e?void 0:e.mozConnection)||(null===(i=navigator)||void 0===i?void 0:i.webkitConnection)},l=function(){var l=e((function(){if(!o)return{online:!1,type:void 0,effectiveType:void 0,saveData:!1,downlink:0,downlinkMax:0,rtt:0};var n=navigator.onLine,e=t();return{online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}})),v=n(l,2),a=v[0],r=v[1];return i((function(){var n=function(){var n=navigator.onLine,e=t();r({online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type})};window.addEventListener("online",n,{passive:!0}),window.addEventListener("offline",n,{passive:!0});var e=t();return e&&e.addEventListener("change",n,{passive:!0}),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n),e&&e.removeEventListener("change",n)}})),a};export{t as getConnection,l as useNetwork};
3
3
  //# sourceMappingURL=useNetwork.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useRef as a,useEffect as i}from"react";var r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.total,o=void 0===t?Number.POSITIVE_INFINITY:t,g=r.pageSize,u=void 0===g?10:g,p=r.initialPage,c=void 0===p?1:p,f=r.onPageChange,v=void 0===f?function(){}:f,S=r.onPageCountChange,z=void 0===S?function(){}:S,l=r.onPageSizeChange,P=void 0===l?function(){}:l,s=n(c),d=e(s,2),h=d[0],m=d[1],C=a(v),I=a(z),x=a(P);C.current=v,I.current=z,x.current=P;var N=Math.max(1,Math.ceil(o/u)),_=1===h,b=h===N;return i((function(){I.current({page:h,pageSize:u})}),[N]),i((function(){x.current({page:h,pageSize:u})}),[u]),{page:h,set:function(e){m(e),v({page:e,pageSize:u})},currentPageSize:u,isFirstPage:_,isLastPage:b,pageCount:N,next:function(){if(b)return v({page:N,pageSize:u});m((function(e){var n=e+1;return v({page:n,pageSize:u}),n}))},prev:function(){if(_)return v({page:1,pageSize:u});m((function(e){var n=e-1;return v({page:n,pageSize:u}),n}))}}};export{r as useOffsetPagination};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useRef as a,useEffect as i}from"react";var r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.total,o=void 0===t?Number.POSITIVE_INFINITY:t,g=r.pageSize,u=void 0===g?10:g,p=r.initialPage,c=void 0===p?1:p,f=r.onPageChange,v=void 0===f?function(){}:f,S=r.onPageCountChange,z=void 0===S?function(){}:S,l=r.onPageSizeChange,P=void 0===l?function(){}:l,s=n(c),d=e(s,2),h=d[0],m=d[1],C=a(v),I=a(z),x=a(P);C.current=v,I.current=z,x.current=P;var N=Math.max(1,Math.ceil(o/u)),_=1===h,b=h===N;return i((function(){I.current({page:h,pageSize:u})}),[N]),i((function(){x.current({page:h,pageSize:u})}),[u]),{page:h,set:function(e){m(e),v({page:e,pageSize:u})},currentPageSize:u,isFirstPage:_,isLastPage:b,pageCount:N,next:function(){if(b)return v({page:N,pageSize:u});m((function(e){var n=e+1;return v({page:n,pageSize:u}),n}))},prev:function(){if(_)return v({page:1,pageSize:u});m((function(e){var n=e-1;return v({page:n,pageSize:u}),n}))}}};export{r as useOffsetPagination};
3
3
  //# sourceMappingURL=useOffsetPagination.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useSyncExternalStore as n}from"react";var e=function(){return navigator.onLine},t=function(){return!1},i=function(n){return window.addEventListener("online",n),window.addEventListener("offline",n),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}},o=function(){return n(i,e,t)};export{o as useOnline};
3
3
  //# sourceMappingURL=useOnline.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as n}from"react";var i=function(){if("undefined"==typeof window)return"undetermined";var n=window.navigator.userAgent;return/Macintosh|MacIntel|MacPPC|Mac68K/i.test(n)?"macos":/iPhone|iPad|iPod/i.test(n)?"ios":/Win32|Win64|Windows|WinCE/i.test(n)?"windows":/Android/i.test(n)?"android":/Linux/i.test(n)?"linux":"undetermined"},t=function(){return n(i()).current};export{i as getOperatingSystem,t as useOperatingSystem};
3
3
  //# sourceMappingURL=useOperatingSystem.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as t,useRef as e}from"react";import{useDidUpdate as o}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var u=function(u,i){var n=t(u),s=r(n,2),f=s[0],p=s[1],c=e(i);c.current=i;var a=t(!1),l=r(a,2),m=l[0],d=l[1];o((function(){m&&(p(u),d(!1))}),[m]);return[f,function(r,t){return p((function(t){return c.current(t,r)})),t.finally((function(){return d(!0)}))}]};export{u as useOptimistic};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as t,useRef as e}from"react";import{useDidUpdate as o}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var u=function(u,i){var n=t(u),s=r(n,2),f=s[0],p=s[1],c=e(i);c.current=i;var a=t(!1),l=r(a,2),m=l[0],d=l[1];o((function(){m&&(p(u),d(!1))}),[m]);return[f,function(r,t){return p((function(t){return c.current(t,r)})),t.finally((function(){return d(!0)}))}]};export{u as useOptimistic};
3
3
  //# sourceMappingURL=useOptimistic.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useEffect as r}from"react";var t=function(){var t=n({angle:0,type:"landscape-primary"}),o=e(t,2),a=o[0],i=o[1];return r((function(){var e=function(){var e=window.screen.orientation,n=e.angle,r=e.type;i({angle:n,type:r})};return window.screen.orientation.addEventListener("change",e),function(){return window.screen.orientation.removeEventListener("change",e)}}),[]),a};export{t as useOrientation};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useEffect as r}from"react";var t=function(){var t=n({angle:0,type:"landscape-primary"}),o=e(t,2),a=o[0],i=o[1];return r((function(){var e=function(){var e=window.screen.orientation,n=e.angle,r=e.type;i({angle:n,type:r})};return window.screen.orientation.addEventListener("change",e),function(){return window.screen.orientation.removeEventListener("change",e)}}),[]),a};export{t as useOrientation};
3
3
  //# sourceMappingURL=useOrientation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r,d as n,e as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as e,useRef as o}from"react";var a=function(){for(var a,u,i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];var s=c[0]instanceof Function?c[0]:null===(a=c[0])||void 0===a?void 0:a.onSuccess,p=c[0]instanceof Function?null===(u=c[0])||void 0===u?void 0:u.onError:void 0,f="undefined"!=typeof navigator&&"OTPCredential"in window,v=e(!1),d=r(v,2),b=d[0],g=d[1],w=o(new AbortController),m=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(f){r.next=2;break}return r.abrupt("return");case 2:return w.current=new AbortController,r.prev=3,r.next=6,navigator.credentials.get({otp:{transport:["sms"]},signal:w.current.signal});case 6:return n=r.sent,null==s||s(n),g(!1),r.abrupt("return",n);case 12:r.prev=12,r.t0=r.catch(3),null==p||p(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(){return r.apply(this,arguments)}}();return{supported:f,abort:function(){w.current.abort(),w.current=new AbortController,w.current.signal.onabort=function(){return g(!0)}},aborted:b,get:m}};export{a as useOtpCredential};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r,d as n,e as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as e,useRef as o}from"react";var a=function(){for(var a,u,i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];var s=c[0]instanceof Function?c[0]:null===(a=c[0])||void 0===a?void 0:a.onSuccess,p=c[0]instanceof Function?null===(u=c[0])||void 0===u?void 0:u.onError:void 0,f="undefined"!=typeof navigator&&"OTPCredential"in window,v=e(!1),d=r(v,2),b=d[0],g=d[1],w=o(new AbortController),m=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(f){r.next=2;break}return r.abrupt("return");case 2:return w.current=new AbortController,r.prev=3,r.next=6,navigator.credentials.get({otp:{transport:["sms"]},signal:w.current.signal});case 6:return n=r.sent,null==s||s(n),g(!1),r.abrupt("return",n);case 12:r.prev=12,r.t0=r.catch(3),null==p||p(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(){return r.apply(this,arguments)}}();return{supported:f,abort:function(){w.current.abort(),w.current=new AbortController,w.current.signal.onabort=function(){return g(!0)}},aborted:b,get:m}};export{a as useOtpCredential};
3
3
  //# sourceMappingURL=useOtpCredential.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useEffect as t}from"react";import{useEvent as r}from"../useEvent/useEvent.js";var o=function(o){var u=n(!1),s=e(u,2),m=s[0],i=s[1],v=r((function(){if(m)return i(!1);null==o||o(),i(!0)}));return t((function(){return document.addEventListener("mouseleave",v,{passive:!0}),document.addEventListener("mouseenter",v,{passive:!0}),function(){document.removeEventListener("mouseenter",v),document.removeEventListener("mouseleave",v)}}),[]),m};export{o as usePageLeave};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useEffect as t}from"react";import{useEvent as r}from"../useEvent/useEvent.js";var o=function(o){var u=n(!1),s=e(u,2),m=s[0],i=s[1],v=r((function(){if(m)return i(!1);null==o||o(),i(!0)}));return t((function(){return document.addEventListener("mouseleave",v,{passive:!0}),document.addEventListener("mouseenter",v,{passive:!0}),function(){document.removeEventListener("mouseenter",v),document.removeEventListener("mouseleave",v)}}),[]),m};export{o as usePageLeave};
3
3
  //# sourceMappingURL=usePageLeave.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{h as t,i as s,f as i}from"../../../_rollupPluginBabelHelpers-C75B2U9C.js";import{Pointer as r}from"./Pointer.js";var h=function(){return t((function t(h){var e=h.x,o=h.y,n=h.radius,u=h.smooth;s(this,t),i(this,"smooth",!1),i(this,"points",[]),i(this,"lines",[]),this.smooth=u,this.pointer=new r(e,o),this.brush=new r(e,o),this.radius=n,this.points=[],this.lines=[]}),[{key:"getBrushCoordinates",value:function(){return{x:this.brush.x,y:this.brush.y}}},{key:"getPointerCoordinates",value:function(){return{x:this.pointer.x,y:this.pointer.y}}},{key:"update",value:function(t){if(this.pointer.equalsTo(t))return!1;if(this.pointer.update(t),!this.smooth)return this.brush.update(t),this.points.push(this.getBrushCoordinates()),!0;var s=this.pointer.getDistanceTo(this.brush),i=this.pointer.getAngleTo(this.brush);if(Math.round(10*(s-this.radius))/10>0){var r=i+Math.PI/2;return this.brush.update({x:this.brush.x+Math.sin(r)*(s-this.radius),y:this.brush.y-Math.cos(r)*(s-this.radius)}),this.points.push(this.getBrushCoordinates()),!0}return!1}}])}();export{h as Paint};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{h as t,i as s,f as i}from"../../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{Pointer as r}from"./Pointer.js";var h=function(){return t((function t(h){var e=h.x,o=h.y,n=h.radius,u=h.smooth;s(this,t),i(this,"smooth",!1),i(this,"points",[]),i(this,"lines",[]),this.smooth=u,this.pointer=new r(e,o),this.brush=new r(e,o),this.radius=n,this.points=[],this.lines=[]}),[{key:"getBrushCoordinates",value:function(){return{x:this.brush.x,y:this.brush.y}}},{key:"getPointerCoordinates",value:function(){return{x:this.pointer.x,y:this.pointer.y}}},{key:"update",value:function(t){if(this.pointer.equalsTo(t))return!1;if(this.pointer.update(t),!this.smooth)return this.brush.update(t),this.points.push(this.getBrushCoordinates()),!0;var s=this.pointer.getDistanceTo(this.brush),i=this.pointer.getAngleTo(this.brush);if(Math.round(10*(s-this.radius))/10>0){var r=i+Math.PI/2;return this.brush.update({x:this.brush.x+Math.sin(r)*(s-this.radius),y:this.brush.y-Math.cos(r)*(s-this.radius)}),this.points.push(this.getBrushCoordinates()),!0}return!1}}])}();export{h as Paint};
3
3
  //# sourceMappingURL=Paint.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{h as t,i as e}from"../../../_rollupPluginBabelHelpers-C75B2U9C.js";var n=function(){function n(t,i){e(this,n),this.x=t,this.y=i}return t(n,[{key:"update",value:function(t){this.x=t.x,this.y=t.y}},{key:"getDifferenceTo",value:function(t){return new n(this.x-t.x,this.y-t.y)}},{key:"getDistanceTo",value:function(t){var e=this.getDifferenceTo(t);return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}},{key:"getAngleTo",value:function(t){var e=this.getDifferenceTo(t);return Math.atan2(e.y,e.x)}},{key:"equalsTo",value:function(t){return this.x===t.x&&this.y===t.y}},{key:"moveByAngle",value:function(t,e){var n=t+Math.PI/2;return this.x+=Math.sin(n)*e,this.y-=Math.cos(n)*e,this}}])}();export{n as Pointer};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{h as t,i as e}from"../../../_rollupPluginBabelHelpers-B8S6IKRR.js";var n=function(){function n(t,i){e(this,n),this.x=t,this.y=i}return t(n,[{key:"update",value:function(t){this.x=t.x,this.y=t.y}},{key:"getDifferenceTo",value:function(t){return new n(this.x-t.x,this.y-t.y)}},{key:"getDistanceTo",value:function(t){var e=this.getDifferenceTo(t);return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}},{key:"getAngleTo",value:function(t){var e=this.getDifferenceTo(t);return Math.atan2(e.y,e.x)}},{key:"equalsTo",value:function(t){return this.x===t.x&&this.y===t.y}},{key:"moveByAngle",value:function(t,e){var n=t+Math.PI/2;return this.x+=Math.sin(n)*e,this.y-=Math.cos(n)*e,this}}])}();export{n as Pointer};
3
3
  //# sourceMappingURL=Pointer.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{b as r,_ as n}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useRef as e,useState as t,useEffect as o}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useEvent as i}from"../useEvent/useEvent.js";import{Paint as l}from"./helpers/Paint.js";import"./helpers/Pointer.js";var c=function(){var c,s,a,v,d,p="object"!==r(arguments.length<=0?void 0:arguments[0])||"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,f=p?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],h=null!==(c=null==f?void 0:f.color)&&void 0!==c?c:"black",m=null!==(s=null==f?void 0:f.opacity)&&void 0!==s?s:1,g=null!==(a=null==f?void 0:f.radius)&&void 0!==a?a:10,y=e(new l({x:0,y:0,radius:null!==(v=null==f?void 0:f.radius)&&void 0!==v?v:10,smooth:null!==(d=null==f?void 0:f.smooth)&&void 0!==d&&d})),x=t(!1),E=n(x,2),w=E[0],L=E[1],b=e(null),j=e(null),C=function(r,n,e,t){if(j.current){j.current.globalAlpha=e,j.current.strokeStyle=n,j.current.lineWidth=2*t,j.current.lineCap="round",j.current.lineJoin="round";var o=r[0],u=r[1];j.current.beginPath();for(var i=1;i<r.length;i+=1){var l={x:o.x+(u.x-o.x)/2,y:o.y+(u.y-o.y)/2};j.current.quadraticCurveTo(o.x,o.y,l.x,l.y),o=r[i],u=r[i+1]}j.current.lineTo(o.x,o.y),j.current.stroke()}},M=function(){j.current&&j.current.clearRect(0,0,j.current.canvas.width,j.current.canvas.height)},P=i((function(r){var n;if(w){null==f||null===(n=f.onMouseMove)||void 0===n||n.call(f,r,y.current);var e={x:r.offsetX,y:r.offsetY};y.current.update(e)&&j.current&&(M(),j.current.clearRect(0,0,j.current.canvas.width,j.current.canvas.height),y.current.lines.forEach((function(r){var n=r.points,e=r.color,t=r.opacity,o=r.radius;return C(n,e,t,o)})),C(y.current.points,h,m,g))}})),k=i((function(r){var n;if(j.current){var e={x:r.offsetX,y:r.offsetY};y.current.brush.update(e),y.current.points.push(e),C(y.current.points,h,m,g),null==f||null===(n=f.onMouseDown)||void 0===n||n.call(f,r,y.current),L(!0)}})),R=i((function(r){var n;j.current&&(y.current.points.length&&(y.current.lines.push({points:y.current.points,color:h,opacity:m,radius:g}),y.current.points=[]),null==f||null===(n=f.onMouseUp)||void 0===n||n.call(f,r,y.current),L(!1))})),T=function(){j.current&&(M(),y.current.lines=[],y.current.points=[])},X=function(){j.current&&(M(),y.current.lines.pop(),y.current.lines.forEach((function(r){var n=r.points,e=r.color,t=r.opacity,o=r.radius;return C(n,e,t,o)})))};return o((function(){var r=p?u(p):b.current;if(r)return j.current=r.getContext("2d"),null!=f&&f.initialLines&&(y.current.lines=f.initialLines,f.initialLines.forEach((function(r){var n=r.points,e=r.color,t=r.opacity,o=r.radius;return C(n,e,t,o)}))),r.addEventListener("mousedown",k),r.addEventListener("mousemove",P),r.addEventListener("mouseup",R),function(){r&&(r.removeEventListener("mousedown",k),r.removeEventListener("mousemove",P),r.removeEventListener("mouseup",R))}}),[]),p?{drawing:w,clear:T,undo:X,draw:C,lines:y.current.lines}:{ref:b,drawing:w,clear:T,undo:X,draw:C,lines:y.current.lines}};export{c as usePaint};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{b as r,_ as n}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useRef as e,useState as t,useEffect as o}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useEvent as i}from"../useEvent/useEvent.js";import{Paint as l}from"./helpers/Paint.js";import"./helpers/Pointer.js";var c=function(){var c,s,a,v,d,p="object"!==r(arguments.length<=0?void 0:arguments[0])||"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,f=p?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],h=null!==(c=null==f?void 0:f.color)&&void 0!==c?c:"black",m=null!==(s=null==f?void 0:f.opacity)&&void 0!==s?s:1,g=null!==(a=null==f?void 0:f.radius)&&void 0!==a?a:10,y=e(new l({x:0,y:0,radius:null!==(v=null==f?void 0:f.radius)&&void 0!==v?v:10,smooth:null!==(d=null==f?void 0:f.smooth)&&void 0!==d&&d})),x=t(!1),E=n(x,2),w=E[0],L=E[1],b=e(null),j=e(null),C=function(r,n,e,t){if(j.current){j.current.globalAlpha=e,j.current.strokeStyle=n,j.current.lineWidth=2*t,j.current.lineCap="round",j.current.lineJoin="round";var o=r[0],u=r[1];j.current.beginPath();for(var i=1;i<r.length;i+=1){var l={x:o.x+(u.x-o.x)/2,y:o.y+(u.y-o.y)/2};j.current.quadraticCurveTo(o.x,o.y,l.x,l.y),o=r[i],u=r[i+1]}j.current.lineTo(o.x,o.y),j.current.stroke()}},M=function(){j.current&&j.current.clearRect(0,0,j.current.canvas.width,j.current.canvas.height)},P=i((function(r){var n;if(w){null==f||null===(n=f.onMouseMove)||void 0===n||n.call(f,r,y.current);var e={x:r.offsetX,y:r.offsetY};y.current.update(e)&&j.current&&(M(),j.current.clearRect(0,0,j.current.canvas.width,j.current.canvas.height),y.current.lines.forEach((function(r){var n=r.points,e=r.color,t=r.opacity,o=r.radius;return C(n,e,t,o)})),C(y.current.points,h,m,g))}})),k=i((function(r){var n;if(j.current){var e={x:r.offsetX,y:r.offsetY};y.current.brush.update(e),y.current.points.push(e),C(y.current.points,h,m,g),null==f||null===(n=f.onMouseDown)||void 0===n||n.call(f,r,y.current),L(!0)}})),R=i((function(r){var n;j.current&&(y.current.points.length&&(y.current.lines.push({points:y.current.points,color:h,opacity:m,radius:g}),y.current.points=[]),null==f||null===(n=f.onMouseUp)||void 0===n||n.call(f,r,y.current),L(!1))})),T=function(){j.current&&(M(),y.current.lines=[],y.current.points=[])},X=function(){j.current&&(M(),y.current.lines.pop(),y.current.lines.forEach((function(r){var n=r.points,e=r.color,t=r.opacity,o=r.radius;return C(n,e,t,o)})))};return o((function(){var r=p?u(p):b.current;if(r)return j.current=r.getContext("2d"),null!=f&&f.initialLines&&(y.current.lines=f.initialLines,f.initialLines.forEach((function(r){var n=r.points,e=r.color,t=r.opacity,o=r.radius;return C(n,e,t,o)}))),r.addEventListener("mousedown",k),r.addEventListener("mousemove",P),r.addEventListener("mouseup",R),function(){r&&(r.removeEventListener("mousedown",k),r.removeEventListener("mousemove",P),r.removeEventListener("mouseup",R))}}),[]),p?{drawing:w,clear:T,undo:X,draw:C,lines:y.current.lines}:{ref:b,drawing:w,clear:T,undo:X,draw:C,lines:y.current.lines}};export{c as usePaint};
3
3
  //# sourceMappingURL=usePaint.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as t,useEffect as r}from"react";import{useDeviceOrientation as a}from"../useDeviceOrientation/useDeviceOrientation.js";import{useMouse as n}from"../useMouse/useMouse.js";import{useRefState as i}from"../useRefState/useRefState.js";import{useScreenOrientation as o}from"../useScreenOrientation/useScreenOrientation.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useRerender/useRerender.js";var u=function(){var u,l=(arguments.length<=0?void 0:arguments[0])instanceof Function||(arguments.length<=0?void 0:arguments[0])&&"current"in(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])instanceof Element?arguments.length<=0?void 0:arguments[0]:void 0,s=i(),v=n(null!=l?l:s.current),c=o(),m=a(),d=null!==(u=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==u?u:{},p=d.deviceOrientationRollAdjust,f=void 0===p?function(e){return e}:p,g=d.deviceOrientationTiltAdjust,h=void 0===g?function(e){return e}:g,b=d.mouseRollAdjust,y=void 0===b?function(e){return e}:b,j=d.mouseTiltAdjust,O=void 0===j?function(e){return e}:j,R=t({roll:0,tilt:0,source:"mouse"}),k=e(R,2),T=k[0],A=k[1],S=function(){return m.supported&&(m.value.alpha||m.value.gamma)?"deviceOrientation":"mouse"};return r((function(){if(v.element){var e=S(),t=function(){if("deviceOrientation"===S()){var e;switch(c.value.orientationType){case"landscape-primary":e=m.value.gamma/90;break;case"landscape-secondary":e=-m.value.gamma/90;break;case"portrait-primary":default:e=-m.value.beta/90;break;case"portrait-secondary":e=m.value.beta/90}return f(e)}if(!v.element)return 0;var t=v.y-v.elementPositionY,r=v.element.getBoundingClientRect().height;return y(-(t-r/2)/r)}(),r=function(){if("deviceOrientation"===S()){var e;switch(c.value.orientationType){case"landscape-primary":e=m.value.beta/90;break;case"landscape-secondary":e=-m.value.beta/90;break;case"portrait-primary":default:e=m.value.gamma/90;break;case"portrait-secondary":e=-m.value.gamma/90}return h(e)}if(!v.element)return 0;var t=v.x-v.elementPositionX,r=v.element.getBoundingClientRect().width;return O((t-r/2)/r)}();A({roll:t,source:e,tilt:r})}}),[c.value.angle,c.value.orientationType,m.value.gamma,m.value.beta,m.value.alpha,m.value.absolute,v.x,v.y,v.element]),l?{value:T}:{ref:s,value:T}};export{u as useParallax};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as t,useEffect as r}from"react";import{useDeviceOrientation as a}from"../useDeviceOrientation/useDeviceOrientation.js";import{useMouse as n}from"../useMouse/useMouse.js";import{useRefState as i}from"../useRefState/useRefState.js";import{useScreenOrientation as o}from"../useScreenOrientation/useScreenOrientation.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useRerender/useRerender.js";var u=function(){var u,l=(arguments.length<=0?void 0:arguments[0])instanceof Function||(arguments.length<=0?void 0:arguments[0])&&"current"in(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])instanceof Element?arguments.length<=0?void 0:arguments[0]:void 0,s=i(),v=n(null!=l?l:s.current),c=o(),m=a(),d=null!==(u=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==u?u:{},p=d.deviceOrientationRollAdjust,f=void 0===p?function(e){return e}:p,g=d.deviceOrientationTiltAdjust,h=void 0===g?function(e){return e}:g,b=d.mouseRollAdjust,y=void 0===b?function(e){return e}:b,j=d.mouseTiltAdjust,O=void 0===j?function(e){return e}:j,R=t({roll:0,tilt:0,source:"mouse"}),k=e(R,2),T=k[0],A=k[1],S=function(){return m.supported&&(m.value.alpha||m.value.gamma)?"deviceOrientation":"mouse"};return r((function(){if(v.element){var e=S(),t=function(){if("deviceOrientation"===S()){var e;switch(c.value.orientationType){case"landscape-primary":e=m.value.gamma/90;break;case"landscape-secondary":e=-m.value.gamma/90;break;case"portrait-primary":default:e=-m.value.beta/90;break;case"portrait-secondary":e=m.value.beta/90}return f(e)}if(!v.element)return 0;var t=v.y-v.elementPositionY,r=v.element.getBoundingClientRect().height;return y(-(t-r/2)/r)}(),r=function(){if("deviceOrientation"===S()){var e;switch(c.value.orientationType){case"landscape-primary":e=m.value.beta/90;break;case"landscape-secondary":e=-m.value.beta/90;break;case"portrait-primary":default:e=m.value.gamma/90;break;case"portrait-secondary":e=-m.value.gamma/90}return h(e)}if(!v.element)return 0;var t=v.x-v.elementPositionX,r=v.element.getBoundingClientRect().width;return O((t-r/2)/r)}();A({roll:t,source:e,tilt:r})}}),[c.value.angle,c.value.orientationType,m.value.gamma,m.value.beta,m.value.alpha,m.value.absolute,v.x,v.y,v.element]),l?{value:T}:{ref:s,value:T}};export{u as useParallax};
3
3
  //# sourceMappingURL=useParallax.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useEffect as a}from"react";import{useEvent as o}from"../useEvent/useEvent.js";var s=function(s,u){var i,p=n("prompt"),c=e(p,2),v=c[0],m=c[1],d="undefined"!=typeof navigator&&"permissions"in navigator,f=null===(i=null==u?void 0:u.enabled)||void 0===i||i,l={name:s},g=o(r(t().mark((function e(){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.permissions.query(l);case 3:return r=e.sent,m(r.state),e.abrupt("return",r.state);case 8:return e.prev=8,e.t0=e.catch(0),m("prompt"),e.abrupt("return","prompt");case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))));return a((function(){if(d&&f)return g(),window.addEventListener("change",g),function(){window.removeEventListener("change",g)}}),[s,f]),{state:v,supported:d,query:g}};export{s as usePermission};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useEffect as a}from"react";import{useEvent as o}from"../useEvent/useEvent.js";var s=function(s,u){var i,p=n("prompt"),c=e(p,2),v=c[0],m=c[1],d="undefined"!=typeof navigator&&"permissions"in navigator,f=null===(i=null==u?void 0:u.enabled)||void 0===i||i,l={name:s},g=o(r(t().mark((function e(){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.permissions.query(l);case 3:return r=e.sent,m(r.state),e.abrupt("return",r.state);case 8:return e.prev=8,e.t0=e.catch(0),m("prompt"),e.abrupt("return","prompt");case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))));return a((function(){if(d&&f)return g(),window.addEventListener("change",g),function(){window.removeEventListener("change",g)}}),[s,f]),{state:v,supported:d,query:g}};export{s as usePermission};
3
3
  //# sourceMappingURL=usePermission.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useEffect as t}from"react";var o=function(){var o="undefined"!=typeof document&&"pointerLockElement"in document,r=n(),c=e(r,2),i=c[0],u=c[1];t((function(){if(o){var e=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;n&&n===i&&u(document.pointerLockElement)}},n=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;if(n&&n===i){var t=document.pointerLockElement?"release":"acquire";throw new Error("Failed to ".concat(t," pointer lock."))}}};return document.addEventListener("pointerlockchange",e),document.addEventListener("pointerlockerror",n),function(){document.removeEventListener("pointerlockchange",e),document.removeEventListener("pointerlockerror",n)}}}),[]);return{supported:o,element:i,lock:function(e){return!!o&&(!(e instanceof Event)&&(e.currentTarget.requestPointerLock(),u(e.currentTarget),!0))},unlock:function(){return!!o&&(!!i&&(document.exitPointerLock(),u(void 0),!0))}}};export{o as usePointerLock};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useEffect as t}from"react";var o=function(){var o="undefined"!=typeof document&&"pointerLockElement"in document,r=n(),c=e(r,2),i=c[0],u=c[1];t((function(){if(o){var e=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;n&&n===i&&u(document.pointerLockElement)}},n=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;if(n&&n===i){var t=document.pointerLockElement?"release":"acquire";throw new Error("Failed to ".concat(t," pointer lock."))}}};return document.addEventListener("pointerlockchange",e),document.addEventListener("pointerlockerror",n),function(){document.removeEventListener("pointerlockchange",e),document.removeEventListener("pointerlockerror",n)}}}),[]);return{supported:o,element:i,lock:function(e){return!!o&&(!(e instanceof Event)&&(e.currentTarget.requestPointerLock(),u(e.currentTarget),!0))},unlock:function(){return!!o&&(!!i&&(document.exitPointerLock(),u(void 0),!0))}}};export{o as usePointerLock};
3
3
  //# sourceMappingURL=usePointerLock.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as r,useEffect as n}from"react";var e=function(e,t){var i=r(t);i.current=t,n((function(){var r=function(r){!(!Array.isArray(e)||e.includes(r.origin)&&e.includes("*"))||r.origin!==e&&"*"!==e||i.current(r.data,r)};return window.addEventListener("message",r),function(){return window.removeEventListener("message",r)}}),[]);return function(r){Array.isArray(e)?e.forEach((function(n){return window.postMessage(r,n)})):window.postMessage(r,e)}};export{e as usePostMessage};
3
3
  //# sourceMappingURL=usePostMessage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useMediaQuery as e}from"../useMediaQuery/useMediaQuery.js";import"react";var r=function(){var r=e("(prefers-color-scheme: light)"),o=e("(prefers-color-scheme: dark)");return r?"light":o?"dark":"no-preference"};export{r as usePreferredColorScheme};
3
3
  //# sourceMappingURL=usePreferredColorScheme.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useMediaQuery as r}from"../useMediaQuery/useMediaQuery.js";import"react";var e=function(){var e=r("(prefers-contrast: more)"),s=r("(prefers-contrast: less)"),t=r("(prefers-contrast: custom)");return e?"more":s?"less":t?"custom":"no-preference"};export{e as usePreferredContrast};
3
3
  //# sourceMappingURL=usePreferredContrast.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useMediaQuery as r}from"../useMediaQuery/useMediaQuery.js";import"react";var e=function(){return r("(prefers-color-scheme: dark)")};export{e as usePreferredDark};
3
3
  //# sourceMappingURL=usePreferredDark.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useSyncExternalStore as n}from"react";var e=function(){return window.navigator.languages},r=function(){return[]},t=function(n){return window.addEventListener("languagechange",n),function(){window.removeEventListener("languagechange",n)}},a=function(){return n(t,e,r)};export{a as usePreferredLanguages};
3
3
  //# sourceMappingURL=usePreferredLanguages.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useMediaQuery as e}from"../useMediaQuery/useMediaQuery.js";import"react";var r=function(){return e("(prefers-reduced-motion: reduce)")?"reduce":"no-preference"};export{r as usePreferredReducedMotion};
3
3
  //# sourceMappingURL=usePreferredReducedMotion.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as r}from"react";var t=function(t,e){var n,u=r(t),c=r();return(null!==(n=null==e?void 0:e.equality)&&void 0!==n?n:Object.is)(t,u.current)||(c.current=u.current,u.current=t),c.current};export{t as usePrevious};
3
3
  //# sourceMappingURL=usePrevious.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r,a as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useRef as e,useState as n,useEffect as l}from"react";import{getRetry as i}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useDidUpdate as o}from"../useDidUpdate/useDidUpdate.js";import{useMount as u}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var c=function(c,a){var s,f,v=null===(s=null==a?void 0:a.enabled)||void 0===s||s,d=e(null!=a&&a.retry?i(a.retry):0),h=e(!1),p=n(!1),y=r(p,2),m=y[0],D=y[1],I=n(!1),g=r(I,2),b=g[0],j=g[1],E=n(!1),C=r(E,2),L=C[0],k=C[1],w=n(!1),A=r(w,2),F=A[0],M=A[1],R=n(!(null==a||!a.initialData)),S=r(R,2),U=S[0],_=S[1],x=n(void 0),B=r(x,2),H=B[0],P=B[1],T=n(null==a?void 0:a.initialData),q=r(T,2),z=q[0],G=q[1],J=e(new AbortController),K=e(),N=null!==(f=null==a?void 0:a.keys)&&void 0!==f?f:[],O=function(){J.current.abort(),J.current=new AbortController},Q=function(r){O(),D(!0),"init"===r&&(h.current=!0,j(!0)),"refetch"===r&&M(!0),c({signal:J.current.signal,keys:N}).then((function(t){var e,n=null!=a&&a.select?null==a?void 0:a.select(t):t;null==a||null===(e=a.onSuccess)||void 0===e||e.call(a,n),G(n),_(!0),P(void 0),k(!1),D(!1),"init"===r&&j(!1),"refetch"===r&&M(!1)})).catch((function(t){var e;if(d.current>0){d.current-=1;var n="function"==typeof(null==a?void 0:a.retryDelay)?null==a?void 0:a.retryDelay(d.current,t):null==a?void 0:a.retryDelay;return n?void setTimeout((function(){return Q(r)}),n):Q(r)}null==a||null===(e=a.onError)||void 0===e||e.call(a,t),G(void 0),_(!1),P(t),k(!0),D(!1),"init"===r&&j(!1),"refetch"===r&&M(!1),d.current=null!=a&&a.retry?i(a.retry):0})).finally((function(){if(null!=a&&a.refetchInterval){var r=setInterval((function(){clearInterval(r),Q("refetch")}),null==a?void 0:a.refetchInterval);K.current=r}}))};u((function(){v&&Q("init")})),o((function(){v&&Q(h.current?"refetch":"init")}),[v].concat(t(N))),l((function(){return function(){clearInterval(K.current)}}),[v,null==a?void 0:a.refetchInterval,null==a?void 0:a.retry].concat(t(N)));var V=(null==a?void 0:a.placeholderData)instanceof Function?null==a?void 0:a.placeholderData():null==a?void 0:a.placeholderData;return{abort:O,data:null!=z?z:V,error:H,refetch:function(){return Q("refetch")},isFetching:m,isLoading:b,isError:L,isSuccess:U,isRefetching:F}};export{c as useQuery};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r,a as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useRef as e,useState as n,useEffect as l}from"react";import{getRetry as i}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useDidUpdate as o}from"../useDidUpdate/useDidUpdate.js";import{useMount as u}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var c=function(c,a){var s,f,v=null===(s=null==a?void 0:a.enabled)||void 0===s||s,d=e(null!=a&&a.retry?i(a.retry):0),h=e(!1),p=n(!1),y=r(p,2),m=y[0],D=y[1],I=n(!1),g=r(I,2),b=g[0],j=g[1],E=n(!1),C=r(E,2),L=C[0],k=C[1],w=n(!1),A=r(w,2),F=A[0],M=A[1],R=n(!(null==a||!a.initialData)),S=r(R,2),U=S[0],_=S[1],x=n(void 0),B=r(x,2),H=B[0],P=B[1],T=n(null==a?void 0:a.initialData),q=r(T,2),z=q[0],G=q[1],J=e(new AbortController),K=e(),N=null!==(f=null==a?void 0:a.keys)&&void 0!==f?f:[],O=function(){J.current.abort(),J.current=new AbortController},Q=function(r){O(),D(!0),"init"===r&&(h.current=!0,j(!0)),"refetch"===r&&M(!0),c({signal:J.current.signal,keys:N}).then((function(t){var e,n=null!=a&&a.select?null==a?void 0:a.select(t):t;null==a||null===(e=a.onSuccess)||void 0===e||e.call(a,n),G(n),_(!0),P(void 0),k(!1),D(!1),"init"===r&&j(!1),"refetch"===r&&M(!1)})).catch((function(t){var e;if(d.current>0){d.current-=1;var n="function"==typeof(null==a?void 0:a.retryDelay)?null==a?void 0:a.retryDelay(d.current,t):null==a?void 0:a.retryDelay;return n?void setTimeout((function(){return Q(r)}),n):Q(r)}null==a||null===(e=a.onError)||void 0===e||e.call(a,t),G(void 0),_(!1),P(t),k(!0),D(!1),"init"===r&&j(!1),"refetch"===r&&M(!1),d.current=null!=a&&a.retry?i(a.retry):0})).finally((function(){if(null!=a&&a.refetchInterval){var r=setInterval((function(){clearInterval(r),Q("refetch")}),null==a?void 0:a.refetchInterval);K.current=r}}))};u((function(){v&&Q("init")})),o((function(){v&&Q(h.current?"refetch":"init")}),[v].concat(t(N))),l((function(){return function(){clearInterval(K.current)}}),[v,null==a?void 0:a.refetchInterval,null==a?void 0:a.retry].concat(t(N)));var V=(null==a?void 0:a.placeholderData)instanceof Function?null==a?void 0:a.placeholderData():null==a?void 0:a.placeholderData;return{abort:O,data:null!=z?z:V,error:H,refetch:function(){return Q("refetch")},isFetching:m,isLoading:b,isError:L,isSuccess:U,isRefetching:F}};export{c as useQuery};
3
3
  //# sourceMappingURL=useQuery.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r,a as n,g as t}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as e}from"react";import{flushSync as o}from"react-dom";var u=function(){var u=e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),a=r(u,2),i=a[0],c=a[1];return{add:function(r){return c((function(t){return[].concat(n(t),[r])}))},remove:function(){var r;return o((function(){c((function(n){var e=t(n),o=e[0],u=e.slice(1);return r=o,u}))})),r},clear:function(){return c([])},first:i[0],last:i[i.length-1],size:i.length,queue:i}};export{u as useQueue};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r,a as n,g as t}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as e}from"react";import{flushSync as o}from"react-dom";var u=function(){var u=e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),a=r(u,2),i=a[0],c=a[1];return{add:function(r){return c((function(t){return[].concat(n(t),[r])}))},remove:function(){var r;return o((function(){c((function(n){var e=t(n),o=e[0],u=e.slice(1);return r=o,u}))})),r},clear:function(){return c([])},first:i[0],last:i[i.length-1],size:i.length,queue:i}};export{u as useQueue};
3
3
  //# sourceMappingURL=useQueue.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useRef as n,useState as e,useEffect as t}from"react";var u=function(u,l){var i,a=n(null),o=n(0),c=e(!1),m=r(c,2),d=m[0],v=m[1],f=null===(i=null==l?void 0:l.enabled)||void 0===i||i,s=n(u);s.current=u;var p=function(r){var n=r-o.current;null!=l&&l.delay&&n<(null==l?void 0:l.delay)||(o.current=r,s.current({delta:n,timestamp:r})),a.current=window.requestAnimationFrame(p)},w=function(){d||(v(!0),o.current=0,a.current=window.requestAnimationFrame(p))};function y(){a.current&&(v(!1),window.cancelAnimationFrame(a.current),a.current=null)}return t((function(){if(f)return w(),y}),[f,null==l?void 0:l.delay]),{active:d,pause:y,resume:w}};export{u as useRaf};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useRef as n,useState as e,useEffect as t}from"react";var u=function(u,l){var i,a=n(null),o=n(0),c=e(!1),m=r(c,2),d=m[0],v=m[1],f=null===(i=null==l?void 0:l.enabled)||void 0===i||i,s=n(u);s.current=u;var p=function(r){var n=r-o.current;null!=l&&l.delay&&n<(null==l?void 0:l.delay)||(o.current=r,s.current({delta:n,timestamp:r})),a.current=window.requestAnimationFrame(p)},w=function(){d||(v(!0),o.current=0,a.current=window.requestAnimationFrame(p))};function y(){a.current&&(v(!1),window.cancelAnimationFrame(a.current),a.current=null)}return t((function(){if(f)return w(),y}),[f,null==l?void 0:l.delay]),{active:d,pause:y,resume:w}};export{u as useRaf};
3
3
  //# sourceMappingURL=useRaf.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useRef as n,useState as t}from"react";import{useUnmount as e}from"../useUnmount/useUnmount.js";var o=function(o){var u=n(0),i=t(o),m=r(i,2),a=m[0],c=m[1];return e((function(){return cancelAnimationFrame(u.current)})),[a,function(r){cancelAnimationFrame(u.current),u.current=requestAnimationFrame((function(){return c(r)}))}]};export{o as useRafValue};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useRef as n,useState as t}from"react";import{useUnmount as e}from"../useUnmount/useUnmount.js";var o=function(o){var u=n(0),i=t(o),m=r(i,2),a=m[0],c=m[1];return e((function(){return cancelAnimationFrame(u.current)})),[a,function(r){cancelAnimationFrame(u.current),u.current=requestAnimationFrame((function(){return c(r)}))}]};export{o as useRafValue};
3
3
  //# sourceMappingURL=useRafValue.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as r}from"react";import{useRerender as e}from"../useRerender/useRerender.js";var n=function(n){var t=e(),u=r(function(r,e){var n=r;function t(r){n=r,e()}return Object.defineProperty(t,"current",{get:function(){return n},set:function(r){e(),n=r},configurable:!0,enumerable:!0}),t}(n,t));return u.current};export{n as useRefState};
3
3
  //# sourceMappingURL=useRefState.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as r,useEffect as t}from"react";var n=function(){var n=r(0);return t((function(){n.current+=1})),n.current};export{n as useRenderCount};
3
3
  //# sourceMappingURL=useRenderCount.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useRef as e}from"react";var n=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown",r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=e({component:n,renders:0,timestamp:Date.now(),sinceLast:0}),c=Date.now();return t.current.renders+=1,t.current.sinceLast=t.current.timestamp?c-t.current.timestamp:0,t.current.timestamp=c,r&&(console.group("".concat(n," info, render number: ").concat(t.current.renders)),console.log("Timestamp: ".concat(t.current.timestamp)),console.log("Since last render: ".concat(t.current.sinceLast)),console.log("Renders: ".concat(t.current.renders)),console.dir(t.current),console.groupEnd()),t.current};export{n as useRenderInfo};
3
3
  //# sourceMappingURL=useRenderInfo.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
2
  import{useReducer as r}from"react";var t=function(){return r((function(){return{}}),{})[1]};export{t as useRerender};
3
3
  //# sourceMappingURL=useRerender.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{b as e,_ as r}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as n,useRef as t,useEffect as i}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useRefState as l}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var u=function(){var u,s="object"!==e(arguments.length<=0?void 0:arguments[0])||"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,v=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],c=null===(u=null==v?void 0:v.enabled)||void 0===u||u,a=n([]),f=r(a,2),d=f[0],m=f[1],p=l(),h=t();return h.current=null==v?void 0:v.onChange,i((function(){if(c||s||p.current){if(Array.isArray(s)){if(!s.length)return;var e=new ResizeObserver((function(r){var n;m(r),null===(n=h.current)||void 0===n||n.call(h,r,e)}));return s.forEach((function(r){var n=o(r);n&&e.observe(n,v)})),function(){e.disconnect()}}var r=s?o(s):p.current;if(r){var n=new ResizeObserver((function(e){var r;m(e),null===(r=h.current)||void 0===r||r.call(h,e,n)}));return n.observe(r,v),function(){n.disconnect()}}}}),[s,p.current,null==v?void 0:v.box,c]),s?{entries:d}:{ref:p,entries:d}};export{u as useResizeObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{b as e,_ as r}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as n,useRef as t,useEffect as i}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useRefState as l}from"../useRefState/useRefState.js";import"../useRerender/useRerender.js";var u=function(){var u,s="object"!==e(arguments.length<=0?void 0:arguments[0])||"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,v=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],c=null===(u=null==v?void 0:v.enabled)||void 0===u||u,a=n([]),f=r(a,2),d=f[0],m=f[1],p=l(),h=t();return h.current=null==v?void 0:v.onChange,i((function(){if(c||s||p.current){if(Array.isArray(s)){if(!s.length)return;var e=new ResizeObserver((function(r){var n;m(r),null===(n=h.current)||void 0===n||n.call(h,r,e)}));return s.forEach((function(r){var n=o(r);n&&e.observe(n,v)})),function(){e.disconnect()}}var r=s?o(s):p.current;if(r){var n=new ResizeObserver((function(e){var r;m(e),null===(r=h.current)||void 0===r||r.call(h,e,n)}));return n.observe(r,v),function(){n.disconnect()}}}}),[s,p.current,null==v?void 0:v.box,c]),s?{entries:d}:{ref:p,entries:d}};export{u as useResizeObserver};
3
3
  //# sourceMappingURL=useResizeObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as e,useEffect as o}from"react";var i=function(){var i="undefined"!=typeof window&&"screen"in window&&"orientation"in window.screen,t=i?window.screen.orientation:{},r=e((function(){var n;return{angle:null!==(n=null==t?void 0:t.angle)&&void 0!==n?n:0,orientationType:null==t?void 0:t.type}})),u=n(r,2),l=u[0],a=u[1];o((function(){if(i){var n=function(){return a({angle:t.angle,orientationType:t.type})};return window.addEventListener("orientationchange",n),function(){window.removeEventListener("orientationchange",n)}}}));return{supported:i,value:l,lock:function(n){if(i&&"function"==typeof t.lock)return t.lock(n)},unlock:function(){i&&"function"==typeof t.unlock&&t.unlock()}}};export{i as useScreenOrientation};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as e,useEffect as o}from"react";var i=function(){var i="undefined"!=typeof window&&"screen"in window&&"orientation"in window.screen,t=i?window.screen.orientation:{},r=e((function(){var n;return{angle:null!==(n=null==t?void 0:t.angle)&&void 0!==n?n:0,orientationType:null==t?void 0:t.type}})),u=n(r,2),l=u[0],a=u[1];o((function(){if(i){var n=function(){return a({angle:t.angle,orientationType:t.type})};return window.addEventListener("orientationchange",n),function(){window.removeEventListener("orientationchange",n)}}}));return{supported:i,value:l,lock:function(n){if(i&&"function"==typeof t.lock)return t.lock(n)},unlock:function(){i&&"function"==typeof t.unlock&&t.unlock()}}};export{i as useScreenOrientation};
3
3
  //# sourceMappingURL=useScreenOrientation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.86 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-C75B2U9C.js";import{useState as t,useEffect as e}from"react";var n="script-status",o=function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=t((function(){var r=document.querySelector('script[src="'.concat(o,'"]')),t=null==r?void 0:r.getAttribute(n);return t||(r?"unknown":"loading")})),c=r(u,2),a=c[0],s=c[1],d=i.removeOnUnmount,v=void 0===d||d,l=i.async,m=void 0===l||l;return e((function(){var t=document.querySelector('script[src="'.concat(o,'"]')),e=null==t?void 0:t.getAttribute(n);if(e)return s(e);if(t)return s("unknown");var u=document.createElement("script");u.src=o,u.async=m;for(var c=0,a=Object.entries(i);c<a.length;c++){var d=r(a[c],2),l=d[0],f=d[1];u.setAttribute(l,String(f))}u.setAttribute(n,"loading"),document.body.appendChild(u);var p=function(){u.setAttribute(n,"ready"),s("ready")},b=function(){u.setAttribute(n,"error"),s("error")};return u.addEventListener("load",p),u.addEventListener("error",b),function(){v&&u.remove(),u.removeEventListener("load",p),u.removeEventListener("error",b)}}),[o,v]),a};export{n as SCRIPT_STATUS_ATTRIBUTE_NAME,o as useScript};
1
+ /* @license @siberiacancode/reactuse v0.0.87 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-B8S6IKRR.js";import{useState as t,useEffect as e}from"react";var n="script-status",o=function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=t((function(){var r=document.querySelector('script[src="'.concat(o,'"]')),t=null==r?void 0:r.getAttribute(n);return t||(r?"unknown":"loading")})),c=r(u,2),a=c[0],s=c[1],d=i.removeOnUnmount,v=void 0===d||d,l=i.async,m=void 0===l||l;return e((function(){var t=document.querySelector('script[src="'.concat(o,'"]')),e=null==t?void 0:t.getAttribute(n);if(e)return s(e);if(t)return s("unknown");var u=document.createElement("script");u.src=o,u.async=m;for(var c=0,a=Object.entries(i);c<a.length;c++){var d=r(a[c],2),l=d[0],f=d[1];u.setAttribute(l,String(f))}u.setAttribute(n,"loading"),document.body.appendChild(u);var p=function(){u.setAttribute(n,"ready"),s("ready")},b=function(){u.setAttribute(n,"error"),s("error")};return u.addEventListener("load",p),u.addEventListener("error",b),function(){v&&u.remove(),u.removeEventListener("load",p),u.removeEventListener("error",b)}}),[o,v]),a};export{n as SCRIPT_STATUS_ATTRIBUTE_NAME,o as useScript};
3
3
  //# sourceMappingURL=useScript.js.map