@siberiacancode/reactuse 0.0.66 → 0.0.67

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 (234) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-DA8CS73W.js → _rollupPluginBabelHelpers-biSaY6q2.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-biSaY6q2.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  5. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  6. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  7. package/dist/cjs/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  8. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  9. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  10. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  11. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  12. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  13. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  14. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  15. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  16. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  17. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  18. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  19. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  20. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  21. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  22. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  23. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  24. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  25. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  26. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  27. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  28. package/dist/cjs/hooks/useField/useField.js +2 -2
  29. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  30. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  31. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  32. package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  33. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  34. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  35. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  36. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  37. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  38. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  39. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  40. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  41. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  42. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  43. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  44. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  45. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  46. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  47. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  48. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  49. package/dist/cjs/hooks/useList/useList.js +2 -2
  50. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  51. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  52. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  53. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  54. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  55. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  56. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  57. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  58. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  59. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  60. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  61. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  62. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  63. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  64. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  65. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  66. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  67. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  68. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  69. package/dist/cjs/hooks/usePaint/helpers/Paint.js +2 -2
  70. package/dist/cjs/hooks/usePaint/helpers/Pointer.js +2 -2
  71. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  72. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  73. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  74. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  75. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  76. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  77. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  78. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  79. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  80. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  81. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  82. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  83. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  84. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  85. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  86. package/dist/cjs/hooks/useRerender/useRerender.js +2 -2
  87. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  88. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  89. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  90. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  91. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  92. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  93. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  94. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  95. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  96. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  97. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  98. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  99. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  100. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  101. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  102. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  103. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  104. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  105. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  106. package/dist/cjs/{index-DNTtg9NP.js → index-DIrIWBfd.js} +2 -2
  107. package/dist/cjs/{index-DNTtg9NP.js.map → index-DIrIWBfd.js.map} +1 -1
  108. package/dist/cjs/index.js +2 -2
  109. package/dist/cjs/utils/helpers/debounce.js +1 -1
  110. package/dist/cjs/utils/helpers/getElement.js +1 -1
  111. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  112. package/dist/cjs/utils/helpers/index.js +1 -1
  113. package/dist/cjs/utils/helpers/isClient.js +1 -1
  114. package/dist/cjs/utils/helpers/throttle.js +1 -1
  115. package/dist/cjs/utils/helpers/time/getDate.js +1 -1
  116. package/dist/esm/{_rollupPluginBabelHelpers-CWXiPzDd.js → _rollupPluginBabelHelpers-DN9mtEf9.js} +2 -2
  117. package/dist/esm/_rollupPluginBabelHelpers-DN9mtEf9.js.map +1 -0
  118. package/dist/esm/hooks/index.js +2 -2
  119. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  120. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  121. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  122. package/dist/esm/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  123. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  124. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  125. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  126. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  127. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  128. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  129. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  130. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  131. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  132. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  133. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  134. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  135. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  136. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  137. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  138. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  139. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  140. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  141. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  142. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  143. package/dist/esm/hooks/useField/useField.js +2 -2
  144. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  145. package/dist/esm/hooks/useFps/useFps.js +2 -2
  146. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  147. package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  148. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  149. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  150. package/dist/esm/hooks/useHash/useHash.js +2 -2
  151. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  152. package/dist/esm/hooks/useHover/useHover.js +2 -2
  153. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  154. package/dist/esm/hooks/useImage/useImage.js +2 -2
  155. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  156. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  157. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  158. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  159. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  160. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  161. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  162. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  163. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  164. package/dist/esm/hooks/useList/useList.js +2 -2
  165. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  166. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  167. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  168. package/dist/esm/hooks/useMap/useMap.js +2 -2
  169. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  170. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  171. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  172. package/dist/esm/hooks/useMount/useMount.js +1 -1
  173. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  174. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  175. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  176. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  177. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  178. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  179. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  180. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  181. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  182. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  183. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  184. package/dist/esm/hooks/usePaint/helpers/Paint.js +2 -2
  185. package/dist/esm/hooks/usePaint/helpers/Pointer.js +2 -2
  186. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  187. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  188. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  189. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  190. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  191. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  192. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  193. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  194. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  195. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  196. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  197. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  198. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  199. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  200. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  201. package/dist/esm/hooks/useRerender/useRerender.js +2 -2
  202. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  203. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  204. package/dist/esm/hooks/useScript/useScript.js +2 -2
  205. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  206. package/dist/esm/hooks/useSet/useSet.js +2 -2
  207. package/dist/esm/hooks/useShare/useShare.js +2 -2
  208. package/dist/esm/hooks/useStep/useStep.js +2 -2
  209. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  210. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  211. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  212. package/dist/esm/hooks/useTime/useTime.js +2 -2
  213. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  214. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  215. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  216. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  217. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  218. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  219. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  220. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  221. package/dist/esm/{index-CNvEQA9K.js → index-BFI91GnI.js} +2 -2
  222. package/dist/esm/{index-CNvEQA9K.js.map → index-BFI91GnI.js.map} +1 -1
  223. package/dist/esm/index.js +2 -2
  224. package/dist/esm/utils/helpers/debounce.js +1 -1
  225. package/dist/esm/utils/helpers/getElement.js +1 -1
  226. package/dist/esm/utils/helpers/getRetry.js +1 -1
  227. package/dist/esm/utils/helpers/index.js +1 -1
  228. package/dist/esm/utils/helpers/isClient.js +1 -1
  229. package/dist/esm/utils/helpers/throttle.js +1 -1
  230. package/dist/esm/utils/helpers/time/getDate.js +1 -1
  231. package/dist/index.d.ts +53 -1
  232. package/package.json +1 -1
  233. package/dist/cjs/_rollupPluginBabelHelpers-DA8CS73W.js.map +0 -1
  234. package/dist/esm/_rollupPluginBabelHelpers-CWXiPzDd.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as l}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as n,useRef as u,useEffect as e}from"react";var r=!0,t="*",i=!1,o=function(){var o="function"==typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=o?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1],v=n(null),d=l(v,2),a=d[0],p=d[1],f=u(),m=u(o);m.current=o;var s=function(){var l;p(null),null===(l=m.current)||void 0===l||l.call(m,null),f.current&&(f.current.value="")};return e((function(){var l;return f.current=((l=document.createElement("input")).type="file",l.onchange=function(l){var n,u=l.target.files;p(u),null===(n=m.current)||void 0===n||n.call(m,u)},l),function(){var l;null===(l=f.current)||void 0===l||l.remove()}}),[null==c?void 0:c.multiple,null==c?void 0:c.accept,null==c?void 0:c.capture,null==c?void 0:c.reset]),{value:a,open:function(l){var n,u,e,o,v,d,a;if(f.current){f.current.multiple=null!==(n=null!==(u=null==l?void 0:l.multiple)&&void 0!==u?u:null==c?void 0:c.multiple)&&void 0!==n?n:r,f.current.accept=null!==(e=null!==(o=null==l?void 0:l.accept)&&void 0!==o?o:null==c?void 0:c.accept)&&void 0!==e?e:t;var p=null!==(v=null==l?void 0:l.capture)&&void 0!==v?v:null==c?void 0:c.capture;p&&(f.current.capture=p),(null!==(d=null!==(a=null==l?void 0:l.reset)&&void 0!==a?a:null==c?void 0:c.reset)&&void 0!==d?d:i)&&s(),f.current.click()}},reset:s}};export{o as useFileDialog};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as l}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as n,useRef as u,useEffect as e}from"react";var r=!0,t="*",i=!1,o=function(){var o="function"==typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=o?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1],v=n(null),d=l(v,2),a=d[0],p=d[1],f=u(),m=u(o);m.current=o;var s=function(){var l;p(null),null===(l=m.current)||void 0===l||l.call(m,null),f.current&&(f.current.value="")};return e((function(){var l;return f.current=((l=document.createElement("input")).type="file",l.onchange=function(l){var n,u=l.target.files;p(u),null===(n=m.current)||void 0===n||n.call(m,u)},l),function(){var l;null===(l=f.current)||void 0===l||l.remove()}}),[null==c?void 0:c.multiple,null==c?void 0:c.accept,null==c?void 0:c.capture,null==c?void 0:c.reset]),{value:a,open:function(l){var n,u,e,o,v,d,a;if(f.current){f.current.multiple=null!==(n=null!==(u=null==l?void 0:l.multiple)&&void 0!==u?u:null==c?void 0:c.multiple)&&void 0!==n?n:r,f.current.accept=null!==(e=null!==(o=null==l?void 0:l.accept)&&void 0!==o?o:null==c?void 0:c.accept)&&void 0!==e?e:t;var p=null!==(v=null==l?void 0:l.capture)&&void 0!==v?v:null==c?void 0:c.capture;p&&(f.current.capture=p),(null!==(d=null!==(a=null==l?void 0:l.reset)&&void 0!==a?a:null==c?void 0:c.reset)&&void 0!==d?d:i)&&s(),f.current.click()}},reset:s}};export{o as useFileDialog};
3
3
  //# sourceMappingURL=useFileDialog.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as n,useEffect as e}from"react";var a=function(){var a=n(0),o=r(a,2),t=o[0],i=o[1];return e((function(){var r,n=0,e=performance.now();return r=requestAnimationFrame((function a(){n+=1;var o=performance.now(),t=o-e;if(t>=1e3){var m=Math.round(1e3*n/t);i(m),n=0,e=o}r=requestAnimationFrame(a)})),function(){cancelAnimationFrame(r)}}),[]),t};export{a as useFps};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as n,useEffect as e}from"react";var a=function(){var a=n(0),o=r(a,2),t=o[0],i=o[1];return e((function(){var r,n=0,e=performance.now();return r=requestAnimationFrame((function a(){n+=1;var o=performance.now(),t=o-e;if(t>=1e3){var m=Math.round(1e3*n/t);i(m),n=0,e=o}r=requestAnimationFrame(a)})),function(){cancelAnimationFrame(r)}}),[]),t};export{a as useFps};
3
3
  //# sourceMappingURL=useFps.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as e,b as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as l}from"react";import{s as i}from"../../index-CNvEQA9K.js";import{getElement as o}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useUnmount as t}from"../useUnmount/useUnmount.js";var r=function(){var r,s=void 0===(arguments.length<=1?void 0:arguments[1])||arguments.length<=0?void 0:arguments[0],u=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],a=l(),f=e(a,2),c=f[0],d=f[1],m=l(null!==(r=null==u?void 0:u.initialValue)&&void 0!==r&&r),v=e(m,2),g=v[0],p=v[1],h=function e(){if(i.isEnabled){var n,l;if(i.isFullscreen)null==u||null===(n=u.onEnter)||void 0===n||n.call(u);else i.off("change",e),null==u||null===(l=u.onExit)||void 0===l||l.call(u);p(i.isFullscreen)}},E=function(){var e=s?o(s):c;if(e&&i.isEnabled)try{i.request(e),i.on("change",h)}catch(e){console.error(e)}},b=function(){i.isEnabled&&i.exit()};return t((function(){i.isEnabled&&i.off("change",h)})),n(n({},!s&&{ref:d}),{},{enter:E,exit:b,toggle:function(){if(g)return b();E()},value:g})};export{r as useFullscreen};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e,b as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as l}from"react";import{s as i}from"../../index-BFI91GnI.js";import{getElement as o}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import{useUnmount as t}from"../useUnmount/useUnmount.js";var r=function(){var r,s=void 0===(arguments.length<=1?void 0:arguments[1])||arguments.length<=0?void 0:arguments[0],u=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],a=l(),f=e(a,2),c=f[0],d=f[1],m=l(null!==(r=null==u?void 0:u.initialValue)&&void 0!==r&&r),v=e(m,2),g=v[0],p=v[1],h=function e(){if(i.isEnabled){var n,l;if(i.isFullscreen)null==u||null===(n=u.onEnter)||void 0===n||n.call(u);else i.off("change",e),null==u||null===(l=u.onExit)||void 0===l||l.call(u);p(i.isFullscreen)}},E=function(){var e=s?o(s):c;if(e&&i.isEnabled)try{i.request(e),i.on("change",h)}catch(e){console.error(e)}},b=function(){i.isEnabled&&i.exit()};return t((function(){i.isEnabled&&i.off("change",h)})),n(n({},!s&&{ref:d}),{},{enter:E,exit:b,toggle:function(){if(g)return b();E()},value:g})};export{r as useFullscreen};
3
3
  //# sourceMappingURL=useFullscreen.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
2
  var t=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{t as mapGamepadToXbox360Controller};
3
3
  //# sourceMappingURL=mapGamepadToXbox360Controller.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as e,b as t,f as a,a as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as r,useEffect as o}from"react";import{useEvent as i}from"../useEvent/useEvent.js";import{useRaf as c}from"../useRaf/useRaf.js";export{mapGamepadToXbox360Controller}from"./helpers/mapGamepadToXbox360Controller.js";var u=function(){var u=navigator&&"getGamepads"in navigator,d=r({}),p=e(d,2),s=p[0],m=p[1],v=c((function(){}),{enabled:!!Object.keys(s).length}).active,f=function(e){var a=[],r="vibrationActuator"in e?e.vibrationActuator:null;return r&&a.push(r),e.hapticActuators&&a.push.apply(a,n(e.hapticActuators)),t(t({},e),{},{hapticActuators:a})};o((function(){if(u){var e=navigator.getGamepads();m(e.reduce((function(e,n){return t(t({},e),n&&a({},n.index,f(n)))}),{}))}}),[]);var l=i((function(e){var n=e.gamepad;m(t(t({},s),{},a({},n.index,f(n))))})),g=i((function(e){var a=e.gamepad,n=t({},s);delete n[a.index],m(n)}));return o((function(){return document.addEventListener("gamepadconnected",l),document.addEventListener("gamepaddisconnected",g),function(){document.removeEventListener("gamepadconnected",l),document.removeEventListener("gamepaddisconnected",g)}}),[]),{active:v,supported:u,gamepads:Object.values(s)}};export{u as useGamepad};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e,b as t,f as a,a as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as r,useEffect as o}from"react";import{useEvent as i}from"../useEvent/useEvent.js";import{useRaf as c}from"../useRaf/useRaf.js";export{mapGamepadToXbox360Controller}from"./helpers/mapGamepadToXbox360Controller.js";var u=function(){var u=navigator&&"getGamepads"in navigator,d=r({}),p=e(d,2),s=p[0],m=p[1],v=c((function(){}),{enabled:!!Object.keys(s).length}).active,f=function(e){var a=[],r="vibrationActuator"in e?e.vibrationActuator:null;return r&&a.push(r),e.hapticActuators&&a.push.apply(a,n(e.hapticActuators)),t(t({},e),{},{hapticActuators:a})};o((function(){if(u){var e=navigator.getGamepads();m(e.reduce((function(e,n){return t(t({},e),n&&a({},n.index,f(n)))}),{}))}}),[]);var l=i((function(e){var n=e.gamepad;m(t(t({},s),{},a({},n.index,f(n))))})),g=i((function(e){var a=e.gamepad,n=t({},s);delete n[a.index],m(n)}));return o((function(){return document.addEventListener("gamepadconnected",l),document.addEventListener("gamepaddisconnected",g),function(){document.removeEventListener("gamepadconnected",l),document.removeEventListener("gamepaddisconnected",g)}}),[]),{active:v,supported:u,gamepads:Object.values(s)}};export{u as useGamepad};
3
3
  //# sourceMappingURL=useGamepad.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as t,b as a}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as e,useEffect as i}from"react";var o=function(o){var l=e({loading:!0,error:null,timestamp:Date.now(),accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null}),n=t(l,2),u=n[0],r=n[1];return i((function(){var t=function(t){var e=t.coords,i=t.timestamp;r(a(a({},u),{},{loading:!1,timestamp:i,latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,speed:e.speed}))},e=function(t){r(a(a({},u),{},{loading:!1,error:t}))};navigator.geolocation.getCurrentPosition(t,e,o);var i=navigator.geolocation.watchPosition(t,e,o);return function(){navigator.geolocation.clearWatch(i)}}),[null==o?void 0:o.enableHighAccuracy,null==o?void 0:o.maximumAge,null==o?void 0:o.timeout]),u};export{o as useGeolocation};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as t,b as a}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as e,useEffect as i}from"react";var o=function(o){var l=e({loading:!0,error:null,timestamp:Date.now(),accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null}),n=t(l,2),u=n[0],r=n[1];return i((function(){var t=function(t){var e=t.coords,i=t.timestamp;r(a(a({},u),{},{loading:!1,timestamp:i,latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,speed:e.speed}))},e=function(t){r(a(a({},u),{},{loading:!1,error:t}))};navigator.geolocation.getCurrentPosition(t,e,o);var i=navigator.geolocation.watchPosition(t,e,o);return function(){navigator.geolocation.clearWatch(i)}}),[null==o?void 0:o.enableHighAccuracy,null==o?void 0:o.maximumAge,null==o?void 0:o.timeout]),u};export{o as useGeolocation};
3
3
  //# sourceMappingURL=useGeolocation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as o,useEffect as e}from"react";var r=function(){return decodeURIComponent(window.location.hash.replace("#",""))},t=function(){var t=o(window?r():""),i=n(t,2),a=i[0],c=i[1];return e((function(){var n=function(){return c(r())};return window.addEventListener("hashchange",n),function(){window.removeEventListener("hashchange",n)}})),[a,function(n){window.location.hash=n,c(n)}]};export{t as useHash};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as o,useEffect as e}from"react";var r=function(){return decodeURIComponent(window.location.hash.replace("#",""))},t=function(){var t=o(window?r():""),i=n(t,2),a=i[0],c=i[1];return e((function(){var n=function(){return c(r())};return window.addEventListener("hashchange",n),function(){window.removeEventListener("hashchange",n)}})),[a,function(n){window.location.hash=n,c(n)}]};export{t as useHash};
3
3
  //# sourceMappingURL=useHash.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as e,a as o}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as n}from"react";import{useDidUpdate as t}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";var i=function(e,o){return e.toLowerCase().split(/[+_-]/g).map((function(e){return e.trim()})).every((function(e){return o.find((function(o){return e===o.code.toLocaleLowerCase()||e===o.key.toLocaleLowerCase()||e===o.alias.toLocaleLowerCase()}))}))},u=function(u,l,a){var s,c,d,f,v=null===(s=null==a?void 0:a.enabled)||void 0===s||s,p=null===(c=null==a?void 0:a.preventDefault)||void 0===c||c,m=n([]),y=e(m,2)[1];t((function(){y([])}),[v]),r(null!==(d=null==a?void 0:a.target)&&void 0!==d?d:window,"keydown",(function(e){p&&e.preventDefault(),v&&y((function(n){var t,r,s,c;if(n.some((function(o){return o.code===e.code})))return n;var d=null!==(t=null!==(r=null==a||null===(s=a.aliasMap)||void 0===s?void 0:s[e.key])&&void 0!==r?r:null==a||null===(c=a.aliasMap)||void 0===c?void 0:c[e.key])&&void 0!==t?t:e.code,f=[].concat(o(n),[{key:e.key,code:e.code,alias:d}]);Array.isArray(u)?u.forEach((function(o){i(o,f)&&l(e)})):i(u,f)&&l(e);return f}))})),r(null!==(f=null==a?void 0:a.target)&&void 0!==f?f:window,"keyup",(function(e){v&&y((function(o){return o.filter((function(o){return o.code!==e.code}))}))}))};export{i as isHotkeyMatch,u as useHotkeys};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e,a as o}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as n}from"react";import{useDidUpdate as t}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";var i=function(e,o){return e.toLowerCase().split(/[+_-]/g).map((function(e){return e.trim()})).every((function(e){return o.find((function(o){return e===o.code.toLocaleLowerCase()||e===o.key.toLocaleLowerCase()||e===o.alias.toLocaleLowerCase()}))}))},u=function(u,l,a){var s,c,d,f,v=null===(s=null==a?void 0:a.enabled)||void 0===s||s,p=null===(c=null==a?void 0:a.preventDefault)||void 0===c||c,m=n([]),y=e(m,2)[1];t((function(){y([])}),[v]),r(null!==(d=null==a?void 0:a.target)&&void 0!==d?d:window,"keydown",(function(e){p&&e.preventDefault(),v&&y((function(n){var t,r,s,c;if(n.some((function(o){return o.code===e.code})))return n;var d=null!==(t=null!==(r=null==a||null===(s=a.aliasMap)||void 0===s?void 0:s[e.key])&&void 0!==r?r:null==a||null===(c=a.aliasMap)||void 0===c?void 0:c[e.key])&&void 0!==t?t:e.code,f=[].concat(o(n),[{key:e.key,code:e.code,alias:d}]);Array.isArray(u)?u.forEach((function(o){i(o,f)&&l(e)})):i(u,f)&&l(e);return f}))})),r(null!==(f=null==a?void 0:a.target)&&void 0!==f?f:window,"keyup",(function(e){v&&y((function(o){return o.filter((function(o){return o.code!==e.code}))}))}))};export{i as isHotkeyMatch,u as useHotkeys};
3
3
  //# sourceMappingURL=useHotkeys.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{c as e,_ as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as t,useRef as l}from"react";import{useEventListener as o}from"../useEventListener/useEventListener.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";var i=function(){var i=(arguments.length<=0?void 0:arguments[0])instanceof Function||!("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],r=i?"object"===e(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onEntry:arguments.length<=1?void 0:arguments[1]}:"object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:{onEntry:arguments.length<=0?void 0:arguments[0]},s=t(!1),u=n(s,2),v=u[0],a=u[1],c=l();return o(null!=i?i:c,"mouseenter",(function(){var e;null==r||null===(e=r.onEntry)||void 0===e||e.call(r),a(!0)})),o(null!=i?i:c,"mouseleave",(function(){var e;null==r||null===(e=r.onLeave)||void 0===e||e.call(r),a(!1)})),i?v:[c,v]};export{i as useHover};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{c as e,_ as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as t,useRef as l}from"react";import{useEventListener as o}from"../useEventListener/useEventListener.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";var i=function(){var i=(arguments.length<=0?void 0:arguments[0])instanceof Function||!("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],r=i?"object"===e(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onEntry:arguments.length<=1?void 0:arguments[1]}:"object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:{onEntry:arguments.length<=0?void 0:arguments[0]},s=t(!1),u=n(s,2),v=u[0],a=u[1],c=l();return o(null!=i?i:c,"mouseenter",(function(){var e;null==r||null===(e=r.onEntry)||void 0===e||e.call(r),a(!0)})),o(null!=i?i:c,"mouseleave",(function(){var e;null==r||null===(e=r.onLeave)||void 0===e||e.call(r),a(!1)})),i?v:[c,v]};export{i as useHover};
3
3
  //# sourceMappingURL=useHover.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as t,useEffect as n}from"react";import"../../utils/helpers/isClient.js";import{throttle as i}from"../../utils/helpers/throttle.js";var o=["mousemove","mousedown","keydown","touchstart","wheel","resize"],r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=u.initialValue,l=void 0!==s&&s,a=u.events,c=void 0===a?o:a,d=t(l),m=e(d,2),v=m[0],f=m[1],h=t(Date.now()),p=e(h,2),w=p[0],E=p[1];return n((function(){var e,t=function(){return f(!0)},n=i((function(){f(!1),E(Date.now()),clearTimeout(e),e=setTimeout(t,r)}),500),o=function(){document.hidden||n()};return e=setTimeout(t,r),c.forEach((function(e){return window.addEventListener(e,n)})),document.addEventListener("visibilitychange",o),function(){c.forEach((function(e){return window.addEventListener(e,n)})),document.removeEventListener("visibilitychange",o),clearTimeout(e)}}),[r,c]),{idle:v,lastActive:w}};export{r as useIdle};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as t,useEffect as n}from"react";import"../../utils/helpers/isClient.js";import{throttle as i}from"../../utils/helpers/throttle.js";var o=["mousemove","mousedown","keydown","touchstart","wheel","resize"],r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=u.initialValue,l=void 0!==s&&s,a=u.events,c=void 0===a?o:a,d=t(l),m=e(d,2),v=m[0],f=m[1],h=t(Date.now()),p=e(h,2),w=p[0],E=p[1];return n((function(){var e,t=function(){return f(!0)},n=i((function(){f(!1),E(Date.now()),clearTimeout(e),e=setTimeout(t,r)}),500),o=function(){document.hidden||n()};return e=setTimeout(t,r),c.forEach((function(e){return window.addEventListener(e,n)})),document.addEventListener("visibilitychange",o),function(){c.forEach((function(e){return window.addEventListener(e,n)})),document.removeEventListener("visibilitychange",o),clearTimeout(e)}}),[r,c]),{idle:v,lastActive:w}};export{r as useIdle};
3
3
  //# sourceMappingURL=useIdle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{b as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{b as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{_ as t,d as r,e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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{useEvent as s}from"../useEvent/useEvent.js";var c=function(){for(var c,u,a=arguments.length,f=new Array(a),p=0;p<a;p++)f[p]=arguments[p];var v=f[1]instanceof Function?f[0]:void 0,d=f[1]instanceof Function?f[1]:f[0],m=f[1]instanceof Function?f[2]:f[1],h=null!==(c=null==m?void 0:m.direction)&&void 0!==c?c:"bottom",g=null!==(u=null==m?void 0:m.distance)&&void 0!==u?u:10,b=n(!1),x=t(b,2),E=x[0],j=x[1],L=n(),k=t(L,2),w=k[0],F=k[1],H=i(d);H.current=d;var y=s(function(){var t=r(e().mark((function t(r){var n,i,o,l,s,c,u;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!E){t.next=2;break}return t.abrupt("return");case 2:if(n=r.target,i=n.clientHeight,o=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,c=n.scrollWidth,u=n.scrollLeft,!({bottom:o-(l+i),top:l,right:c-(u+s),left:u}[h]<=g)){t.next=11;break}return j(!0),t.next=10,H.current(r);case 10:j(!1);case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}());return o((function(){if(v||w){var t=v?l(v):w;if(t)return t.addEventListener("scroll",y),function(){t.removeEventListener("scroll",y)}}}),[w,v,h,g]),v?E:{ref:F,isLoading:E}};export{c as useInfiniteScroll};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as t,d as r,e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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{useEvent as s}from"../useEvent/useEvent.js";var c=function(){for(var c,u,a=arguments.length,f=new Array(a),p=0;p<a;p++)f[p]=arguments[p];var v=f[1]instanceof Function?f[0]:void 0,d=f[1]instanceof Function?f[1]:f[0],m=f[1]instanceof Function?f[2]:f[1],h=null!==(c=null==m?void 0:m.direction)&&void 0!==c?c:"bottom",g=null!==(u=null==m?void 0:m.distance)&&void 0!==u?u:10,b=n(!1),x=t(b,2),E=x[0],j=x[1],L=n(),k=t(L,2),w=k[0],F=k[1],H=i(d);H.current=d;var y=s(function(){var t=r(e().mark((function t(r){var n,i,o,l,s,c,u;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!E){t.next=2;break}return t.abrupt("return");case 2:if(n=r.target,i=n.clientHeight,o=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,c=n.scrollWidth,u=n.scrollLeft,!({bottom:o-(l+i),top:l,right:c-(u+s),left:u}[h]<=g)){t.next=11;break}return j(!0),t.next=10,H.current(r);case 10:j(!1);case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}());return o((function(){if(v||w){var t=v?l(v):w;if(t)return t.addEventListener("scroll",y),function(){t.removeEventListener("scroll",y)}}}),[w,v,h,g]),v?E:{ref:F,isLoading:E}};export{c as useInfiniteScroll};
3
3
  //# sourceMappingURL=useInfiniteScroll.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{c as n,_ as e,b as o}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as r,useRef as l,useEffect as t}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var u=function(){var u,s="object"!==n(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],d=null===(u=null==v?void 0:v.enabled)||void 0===u||u,c=r(),a=e(c,2),g=a[0],f=a[1],h=r(),m=e(h,2),p=m[0],b=m[1],j=l();return j.current=null==v?void 0:v.onChange,t((function(){if(d&&p){var n=s?i(s):p;if(n){var r=new IntersectionObserver((function(n){var o,r=e(n,1)[0];f(r),null===(o=j.current)||void 0===o||o.call(j,r)}),o(o({},v),{},{root:null!=v&&v.root?i(null==v?void 0:v.root):document}));return r.observe(n),function(){r.disconnect()}}}}),[s,p,null==v?void 0:v.rootMargin,null==v?void 0:v.threshold,null==v?void 0:v.root,d]),s?{entry:g,inView:!(null==g||!g.isIntersecting)}:{ref:b,entry:g,inView:!(null==g||!g.isIntersecting)}};export{u as useIntersectionObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{c as n,_ as e,b as o}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as r,useRef as l,useEffect as t}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var u=function(){var u,s="object"!==n(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],d=null===(u=null==v?void 0:v.enabled)||void 0===u||u,c=r(),a=e(c,2),g=a[0],f=a[1],h=r(),m=e(h,2),p=m[0],b=m[1],j=l();return j.current=null==v?void 0:v.onChange,t((function(){if(d&&p){var n=s?i(s):p;if(n){var r=new IntersectionObserver((function(n){var o,r=e(n,1)[0];f(r),null===(o=j.current)||void 0===o||o.call(j,r)}),o(o({},v),{},{root:null!=v&&v.root?i(null==v?void 0:v.root):document}));return r.observe(n),function(){r.disconnect()}}}}),[s,p,null==v?void 0:v.rootMargin,null==v?void 0:v.threshold,null==v?void 0:v.root,d]),s?{entry:g,inView:!(null==g||!g.isIntersecting)}:{ref:b,entry:g,inView:!(null==g||!g.isIntersecting)}};export{u as useIntersectionObserver};
3
3
  //# sourceMappingURL=useIntersectionObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{c as r,_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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,I=n(null==p||p),b=e(I,2),d=b[0],j=b[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.67 */
2
+ import{c as r,_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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,I=n(null==p||p),b=e(I,2),d=b[0],j=b[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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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";var i=function(i,n){var s,l,o=r(!1),u=e(o,2),p=u[0],a=u[1];return t(null!==(s=null==n?void 0:n.target)&&void 0!==s?s:window,"keydown",(function(e){(Array.isArray(i)?i.includes(e.key):e.key===i)&&a(!0)})),t(null!==(l=null==n?void 0:n.target)&&void 0!==l?l: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.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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";var i=function(i,n){var s,l,o=r(!1),u=e(o,2),p=u[0],a=u[1];return t(null!==(s=null==n?void 0:n.target)&&void 0!==s?s:window,"keydown",(function(e){(Array.isArray(i)?i.includes(e.key):e.key===i)&&a(!0)})),t(null!==(l=null==n?void 0:n.target)&&void 0!==l?l: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.66 */
2
- import{useEventListener as e}from"../useEventListener/useEventListener.js";import"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.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};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{useEventListener as e}from"../useEventListener/useEventListener.js";import"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.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.66 */
2
- import{useEventListener as e}from"../useEventListener/useEventListener.js";import"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";var l=function(l){var n,t;e(null!==(n=null==l?void 0:l.target)&&void 0!==n?n:window,"keydown",(function(e){var n;return null==l||null===(n=l.onKeyDown)||void 0===n?void 0:n.call(l,e)})),e(null!==(t=null==l?void 0:l.target)&&void 0!==t?t:window,"keyup",(function(e){var n;return null==l||null===(n=l.onKeyUp)||void 0===n?void 0:n.call(l,e)}))};export{l as useKeyboard};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{useEventListener as e}from"../useEventListener/useEventListener.js";import"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";var l=function(l){var n,t;e(null!==(n=null==l?void 0:l.target)&&void 0!==n?n:window,"keydown",(function(e){var n;return null==l||null===(n=l.onKeyDown)||void 0===n?void 0:n.call(l,e)})),e(null!==(t=null==l?void 0:l.target)&&void 0!==t?t:window,"keyup",(function(e){var n;return null==l||null===(n=l.onKeyUp)||void 0===n?void 0:n.call(l,e)}))};export{l as useKeyboard};
3
3
  //# sourceMappingURL=useKeyboard.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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";var i=function(i){var u,s,l,c=null===(u=null==i?void 0:i.enabled)||void 0===u||u,d=o([]),p=e(d,2),f=p[0],m=p[1];return n((function(){m([])}),[c]),r(null!==(s=null==i?void 0:i.target)&&void 0!==s?s:window,"keydown",(function(e){c&&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){c&&m((function(t){return t.filter((function(t){return t.code!==e.code}))}))})),f};export{i as useKeysPressed};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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";var i=function(i){var u,s,l,c=null===(u=null==i?void 0:i.enabled)||void 0===u||u,d=o([]),p=e(d,2),f=p[0],m=p[1];return n((function(){m([])}),[c]),r(null!==(s=null==i?void 0:i.target)&&void 0!==s?s:window,"keydown",(function(e){c&&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){c&&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.66 */
2
- import{_ as n,a as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as n,a as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{b as o}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{b as o}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{a as o}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{a as o}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{_ as t,b as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useRef as r,useState as i}from"react";import{useResizeObserver as o}from"../useResizeObserver/useResizeObserver.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var s=function(s){var l=r(),h=i({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),n=t(h,2),p=n[0],m=n[1];return o(null!=s?s:l,{onChange:function(e){var r=t(e,1)[0];if(r){var i=r.contentRect,o=i.x,s=i.y,l=i.width,h=i.height,n=i.top,p=i.left,f=i.bottom,u=i.right;m({x:o,y:s,width:l,height:h,top:n,left:p,bottom:f,right:u})}}}),s?p:e({ref:l},p)};export{s as useMeasure};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as t,b as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useRef as r,useState as i}from"react";import{useResizeObserver as o}from"../useResizeObserver/useResizeObserver.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var s=function(s){var l=r(),h=i({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),n=t(h,2),p=n[0],m=n[1];return o(null!=s?s:l,{onChange:function(e){var r=t(e,1)[0];if(r){var i=r.contentRect,o=i.x,s=i.y,l=i.width,h=i.height,n=i.top,p=i.left,f=i.bottom,u=i.right;m({x:o,y:s,width:l,height:h,top:n,left:p,bottom:f,right:u})}}}),s?p:e({ref:l},p)};export{s as useMeasure};
3
3
  //# sourceMappingURL=useMeasure.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
2
- import{_ as e,b as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as t,useEffect as o}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var l=function(){for(var l=arguments.length,i=new Array(l),m=0;m<l;m++)i[m]=arguments[m];var s=i[0],u=t({x:0,y:0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),a=e(u,2),p=a[0],f=a[1],c=t(),v=e(c,2),g=v[0],d=v[1];return o((function(){if(console.log("@@@@@",s),s||g){var e=function(e){var t=s?r(s):g;if(t){var o={x:e.pageX,y:e.pageY},l=t.getBoundingClientRect(),i=l.left,m=l.top,u=i+window.scrollX,a=m+window.scrollY,p=e.pageX-u,c=e.pageY-a;o.elementX=p,o.elementY=c,o.elementPositionX=u,o.elementPositionY=a,f((function(e){return n(n({},e),o)}))}};return document.addEventListener("mousemove",e),function(){document.removeEventListener("mousemove",e)}}}),[g,s]),n(n(s?{}:{ref:d},p),{},{element:null!=s?s:g})};export{l as useMouse};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e,b as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as t,useEffect as o}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var l=function(){for(var l=arguments.length,i=new Array(l),m=0;m<l;m++)i[m]=arguments[m];var s=i[0],u=t({x:0,y:0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),a=e(u,2),p=a[0],f=a[1],c=t(),v=e(c,2),g=v[0],d=v[1];return o((function(){if(console.log("@@@@@",s),s||g){var e=function(e){var t=s?r(s):g;if(t){var o={x:e.pageX,y:e.pageY},l=t.getBoundingClientRect(),i=l.left,m=l.top,u=i+window.scrollX,a=m+window.scrollY,p=e.pageX-u,c=e.pageY-a;o.elementX=p,o.elementY=c,o.elementPositionX=u,o.elementPositionY=a,f((function(e){return n(n({},e),o)}))}};return document.addEventListener("mousemove",e),function(){document.removeEventListener("mousemove",e)}}}),[g,s]),n(n(s?{}:{ref:d},p),{},{element:null!=s?s:g})};export{l as useMouse};
3
3
  //# sourceMappingURL=useMouse.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as r,b as l,d as n,e as o}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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),b=r(S,2),h=b[0],g=b[1],w=u(null),x=r(w,2),_=x[0],j=x[1],k=function r(n,o){var u;d(!0);var t=null!==(u=null==o?void 0:o.attempt)&&void 0!==u?u:0;return e(n).then((function(r){var l;return null==o||null===(l=o.onSuccess)||void 0===l||l.call(o,r),j(r),E(!0),d(!1),g(null),f(!1),r})).catch((function(u){var e,i="function"==typeof(null==o?void 0:o.retry)?null==o?void 0:o.retry(t,u):null==o?void 0:o.retry,v="function"==typeof(null==o?void 0:o.retryDelay)?null==o?void 0:o.retryDelay(t,u):null==o?void 0:o.retryDelay;return"boolean"==typeof i&&i||i&&i>t?v?void setTimeout((function(){return r(n,l(l({},o),{},{attempt:t+1}))}),v):r(n,l(l({},o),{},{attempt:t+1})):(null==o||null===(e=o.onError)||void 0===e||e.call(o,u),j(null),E(!1),d(!1),g(u),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:h,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.67 */
2
+ import{_ as r,b as l,d as n,e as o}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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),b=r(S,2),h=b[0],g=b[1],w=u(null),x=r(w,2),_=x[0],j=x[1],k=function r(n,o){var u;d(!0);var t=null!==(u=null==o?void 0:o.attempt)&&void 0!==u?u:0;return e(n).then((function(r){var l;return null==o||null===(l=o.onSuccess)||void 0===l||l.call(o,r),j(r),E(!0),d(!1),g(null),f(!1),r})).catch((function(u){var e,i="function"==typeof(null==o?void 0:o.retry)?null==o?void 0:o.retry(t,u):null==o?void 0:o.retry,v="function"==typeof(null==o?void 0:o.retryDelay)?null==o?void 0:o.retryDelay(t,u):null==o?void 0:o.retryDelay;return"boolean"==typeof i&&i||i&&i>t?v?void setTimeout((function(){return r(n,l(l({},o),{},{attempt:t+1}))}),v):r(n,l(l({},o),{},{attempt:t+1})):(null==o||null===(e=o.onError)||void 0===e||e.call(o,u),j(null),E(!1),d(!1),g(u),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:h,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.66 */
2
- import{c as r,_ as e,a as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as t,useRef as o,useEffect as i}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var u=function(){var u,s="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,v=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],c=s?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],a=t(),d=e(a,2),f=d[0],h=d[1],p=null===(u=null==c?void 0:c.enabled)||void 0===u||u,b=t(),g=e(b,2),m=g[0],j=g[1],O=o(v);O.current=v,i((function(){if(p||s||m){if(Array.isArray(s)){if(!s.length)return;var r=new MutationObserver(O.current);return h(r),s.forEach((function(e){var n=l(e);n&&r.observe(n,c)})),function(){r.disconnect()}}var e=s?l(s):m;if(e){var n=new MutationObserver(O.current);return h(n),n.observe(e,c),function(){n.disconnect()}}}}),[m,s].concat(n(Object.values(null!=c?c:{}))));var w=function(){return null==f?void 0:f.disconnect()};return s?{stop:w,observer:f}:{ref:j,stop:w,observer:f}};export{u as useMutationObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{c as r,_ as e,a as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as t,useRef as o,useEffect as i}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var u=function(){var u,s="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,v=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],c=s?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],a=t(),d=e(a,2),f=d[0],h=d[1],p=null===(u=null==c?void 0:c.enabled)||void 0===u||u,b=t(),g=e(b,2),m=g[0],j=g[1],O=o(v);O.current=v,i((function(){if(p||s||m){if(Array.isArray(s)){if(!s.length)return;var r=new MutationObserver(O.current);return h(r),s.forEach((function(e){var n=l(e);n&&r.observe(n,c)})),function(){r.disconnect()}}var e=s?l(s):m;if(e){var n=new MutationObserver(O.current);return h(n),n.observe(e,c),function(){n.disconnect()}}}}),[m,s].concat(n(Object.values(null!=c?c:{}))));var w=function(){return null==f?void 0:f.disconnect()};return s?{stop:w,observer:f}:{ref:j,stop:w,observer:f}};export{u as useMutationObserver};
3
3
  //# sourceMappingURL=useMutationObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as n}from"react";import{useIsomorphicLayoutEffect as r}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var o=function(){var o=n({angle:0,type:"landscape-primary"}),t=e(o,2),i=t[0],a=t[1];return r((function(){var e,n=function(){var e=window.screen.orientation,n=e.angle,r=e.type;a({angle:n,type:r})};return null===(e=window.screen.orientation)||void 0===e||e.addEventListener("change",n),function(){var e;return null===(e=window.screen.orientation)||void 0===e?void 0:e.removeEventListener("change",n)}}),[]),i};export{o as useOrientation};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as n}from"react";import{useIsomorphicLayoutEffect as r}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var o=function(){var o=n({angle:0,type:"landscape-primary"}),t=e(o,2),i=t[0],a=t[1];return r((function(){var e,n=function(){var e=window.screen.orientation,n=e.angle,r=e.type;a({angle:n,type:r})};return null===(e=window.screen.orientation)||void 0===e||e.addEventListener("change",n),function(){var e;return null===(e=window.screen.orientation)||void 0===e?void 0:e.removeEventListener("change",n)}}),[]),i};export{o as useOrientation};
3
3
  //# sourceMappingURL=useOrientation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as r,d as n,e as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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,v=navigator&&"OTPCredential"in window,f=e(!1),d=r(f,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(v){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:v,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.67 */
2
+ import{_ as r,d as n,e as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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,v=navigator&&"OTPCredential"in window,f=e(!1),d=r(f,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(v){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:v,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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{h as t,i as s,f as i}from"../../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{h as t,i as s,f as i}from"../../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{h as t,i as e}from"../../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{h as t,i as e}from"../../../_rollupPluginBabelHelpers-DN9mtEf9.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.66 */
2
- import{c as r,_ as n}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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],j=e(null),b=e(null),C=function(r,n,e,t){if(b.current){b.current.globalAlpha=e,b.current.strokeStyle=n,b.current.lineWidth=2*t,b.current.lineCap="round",b.current.lineJoin="round";var o=r[0],u=r[1];b.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};b.current.quadraticCurveTo(o.x,o.y,l.x,l.y),o=r[i],u=r[i+1]}b.current.lineTo(o.x,o.y),b.current.stroke()}},M=function(){b.current&&b.current.clearRect(0,0,b.current.canvas.width,b.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)&&b.current&&(M(),b.current.clearRect(0,0,b.current.canvas.width,b.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(b.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;b.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(){b.current&&(M(),y.current.lines=[],y.current.points=[])},X=function(){b.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):j.current;if(r)return b.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:j,drawing:w,clear:T,undo:X,draw:C,lines:y.current.lines}};export{c as usePaint};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{c as r,_ as n}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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],j=e(null),b=e(null),C=function(r,n,e,t){if(b.current){b.current.globalAlpha=e,b.current.strokeStyle=n,b.current.lineWidth=2*t,b.current.lineCap="round",b.current.lineJoin="round";var o=r[0],u=r[1];b.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};b.current.quadraticCurveTo(o.x,o.y,l.x,l.y),o=r[i],u=r[i+1]}b.current.lineTo(o.x,o.y),b.current.stroke()}},M=function(){b.current&&b.current.clearRect(0,0,b.current.canvas.width,b.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)&&b.current&&(M(),b.current.clearRect(0,0,b.current.canvas.width,b.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(b.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;b.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(){b.current&&(M(),y.current.lines=[],y.current.points=[])},X=function(){b.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):j.current;if(r)return b.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:j,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.66 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as t,useEffect as a}from"react";import{useDeviceOrientation as n}from"../useDeviceOrientation/useDeviceOrientation.js";import{useMouse as i}from"../useMouse/useMouse.js";import{useScreenOrientation as r}from"../useScreenOrientation/useScreenOrientation.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var o=function(){var o=(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,l=o?arguments.length<=1?void 0:arguments[1]:{},u=l.deviceOrientationRollAdjust,s=void 0===u?function(e){return e}:u,c=l.deviceOrientationTiltAdjust,v=void 0===c?function(e){return e}:c,m=l.mouseRollAdjust,d=void 0===m?function(e){return e}:m,p=l.mouseTiltAdjust,f=void 0===p?function(e){return e}:p,g=t(),h=e(g,2),b=h[0],y=h[1],j=i(null!=o?o:b),O=r(),k=n(),T=function(){return k.supported&&(k.value.alpha||k.value.gamma)?"deviceOrientation":"mouse"},A=t({roll:0,source:"mouse",tilt:0}),R=e(A,2),w=R[0],x=R[1];return a((function(){if(j.element){var e=T(),t=function(){if("deviceOrientation"===T()){var e;switch(O.value.orientationType){case"landscape-primary":e=k.value.gamma/90;break;case"landscape-secondary":e=-k.value.gamma/90;break;case"portrait-primary":default:e=-k.value.beta/90;break;case"portrait-secondary":e=k.value.beta/90}return s(e)}var t=j.y-j.elementPositionY,a=j.element.getBoundingClientRect().height;return d(-(t-a/2)/a)}(),a=function(){if("deviceOrientation"===T()){var e;switch(O.value.orientationType){case"landscape-primary":e=k.value.beta/90;break;case"landscape-secondary":e=-k.value.beta/90;break;case"portrait-primary":default:e=k.value.gamma/90;break;case"portrait-secondary":e=-k.value.gamma/90}return v(e)}var t=j.x-j.elementPositionX,a=j.element.getBoundingClientRect().width;return f((t-a/2)/a)}();x({roll:t,source:e,tilt:a})}}),[O.value.angle,O.value.orientationType,k.value.gamma,k.value.beta,k.value.alpha,k.value.absolute,j.x,j.y,j.element]),o?{value:w}:{ref:y,value:w}};export{o as useParallax};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as t,useEffect as a}from"react";import{useDeviceOrientation as n}from"../useDeviceOrientation/useDeviceOrientation.js";import{useMouse as i}from"../useMouse/useMouse.js";import{useScreenOrientation as r}from"../useScreenOrientation/useScreenOrientation.js";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var o=function(){var o=(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,l=o?arguments.length<=1?void 0:arguments[1]:{},u=l.deviceOrientationRollAdjust,s=void 0===u?function(e){return e}:u,c=l.deviceOrientationTiltAdjust,v=void 0===c?function(e){return e}:c,m=l.mouseRollAdjust,d=void 0===m?function(e){return e}:m,p=l.mouseTiltAdjust,f=void 0===p?function(e){return e}:p,g=t(),h=e(g,2),b=h[0],y=h[1],j=i(null!=o?o:b),O=r(),k=n(),T=function(){return k.supported&&(k.value.alpha||k.value.gamma)?"deviceOrientation":"mouse"},A=t({roll:0,source:"mouse",tilt:0}),R=e(A,2),w=R[0],x=R[1];return a((function(){if(j.element){var e=T(),t=function(){if("deviceOrientation"===T()){var e;switch(O.value.orientationType){case"landscape-primary":e=k.value.gamma/90;break;case"landscape-secondary":e=-k.value.gamma/90;break;case"portrait-primary":default:e=-k.value.beta/90;break;case"portrait-secondary":e=k.value.beta/90}return s(e)}var t=j.y-j.elementPositionY,a=j.element.getBoundingClientRect().height;return d(-(t-a/2)/a)}(),a=function(){if("deviceOrientation"===T()){var e;switch(O.value.orientationType){case"landscape-primary":e=k.value.beta/90;break;case"landscape-secondary":e=-k.value.beta/90;break;case"portrait-primary":default:e=k.value.gamma/90;break;case"portrait-secondary":e=-k.value.gamma/90}return v(e)}var t=j.x-j.elementPositionX,a=j.element.getBoundingClientRect().width;return f((t-a/2)/a)}();x({roll:t,source:e,tilt:a})}}),[O.value.angle,O.value.orientationType,k.value.gamma,k.value.beta,k.value.alpha,k.value.absolute,j.x,j.y,j.element]),o?{value:w}:{ref:y,value:w}};export{o as useParallax};
3
3
  //# sourceMappingURL=useParallax.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as r,d as e,e as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useState as n,useEffect as a}from"react";import{useEvent as s}from"../useEvent/useEvent.js";var o=function(o){var u=n("prompt"),i=r(u,2),p=i[0],c=i[1],m=navigator&&"permissions"in navigator,v={name:o},f=s(e(t().mark((function r(){var e;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,navigator.permissions.query(v);case 3:return e=r.sent,c(e.state),r.abrupt("return",e.state);case 8:return r.prev=8,r.t0=r.catch(0),c("prompt"),r.abrupt("return","prompt");case 12:case"end":return r.stop()}}),r,null,[[0,8]])}))));return a((function(){if(m)return f(),window.addEventListener("change",f),function(){window.removeEventListener("change",f)}}),[o]),{state:p,supported:m,query:f}};export{o as usePermission};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as r,d as e,e as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useState as n,useEffect as a}from"react";import{useEvent as s}from"../useEvent/useEvent.js";var o=function(o){var u=n("prompt"),i=r(u,2),p=i[0],c=i[1],m=navigator&&"permissions"in navigator,v={name:o},f=s(e(t().mark((function r(){var e;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,navigator.permissions.query(v);case 3:return e=r.sent,c(e.state),r.abrupt("return",e.state);case 8:return r.prev=8,r.t0=r.catch(0),c("prompt"),r.abrupt("return","prompt");case 12:case"end":return r.stop()}}),r,null,[[0,8]])}))));return a((function(){if(m)return f(),window.addEventListener("change",f),function(){window.removeEventListener("change",f)}}),[o]),{state:p,supported:m,query:f}};export{o as usePermission};
3
3
  //# sourceMappingURL=usePermission.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
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.66 */
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
2
  import{useRef as r,useEffect as t}from"react";var n=function(n){var c=r();return t((function(){c.current=n})),c.current};export{n as usePrevious};
3
3
  //# sourceMappingURL=usePrevious.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as r,a as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.js";import{useRef as n,useState as e,useEffect as l}from"react";import{getRetry as o}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useDidUpdate as i}from"../useDidUpdate/useDidUpdate.js";import{useMount as u}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var a=function(a,c){var s,f,v=null===(s=null==c?void 0:c.enabled)||void 0===s||s,d=n(null!=c&&c.retry?o(c.retry):0),h=e(!1),p=r(h,2),m=p[0],y=p[1],b=e(!1),D=r(b,2),I=D[0],g=D[1],j=e(!1),E=r(j,2),C=E[0],L=E[1],k=e(!(null==c||!c.initialData)),w=r(k,2),A=w[0],M=w[1],R=e(!(null==c||!c.initialData)),S=r(R,2),U=S[0],_=S[1],x=e(void 0),B=r(x,2),F=B[0],H=B[1],P=e(null==c?void 0:c.initialData),q=r(P,2),z=q[0],G=q[1],J=n(new AbortController),K=n(),N=null!==(f=null==c?void 0:c.keys)&&void 0!==f?f:[],O=function(){J.current.abort(),J.current=new AbortController,J.current.signal.onabort=function(){return _(!0)}},Q=function r(t){O(),y(!0),"refetch"===t&&L(!0),a({signal:J.current.signal,keys:N}).then((function(r){var n,e=null!=c&&c.select?null==c?void 0:c.select(r):r;null==c||null===(n=c.onSuccess)||void 0===n||n.call(c,e),G(e),M(!0),y(!1),H(void 0),g(!1),_(!1),"refetch"===t&&L(!1)})).catch((function(n){var e;if(d.current>0)return d.current-=1,r(t);null==c||null===(e=c.onError)||void 0===e||e.call(c,n),G(void 0),M(!1),y(!1),_(!1),H(n),g(!0),"refetch"===t&&L(!1),d.current=null!=c&&c.retry?o(c.retry):0})).finally((function(){if(null!=c&&c.refetchInterval){var t=setInterval((function(){clearInterval(t),r("refetch")}),null==c?void 0:c.refetchInterval);K.current=t}}))};u((function(){v&&Q("init")})),i((function(){v&&Q("refetch")}),[v].concat(t(N))),l((function(){return function(){clearInterval(K.current)}}),[v,null==c?void 0:c.refetchInterval,null==c?void 0:c.retry].concat(t(N)));var T=(null==c?void 0:c.placeholderData)instanceof Function?null==c?void 0:c.placeholderData():null==c?void 0:c.placeholderData;return{abort:O,data:null!=z?z:T,error:F,refetch:function(){return Q("refetch")},isLoading:m,isError:I,isSuccess:A,isRefetching:C,aborted:U}};export{a as useQuery};
1
+ /* @license @siberiacancode/reactuse v0.0.67 */
2
+ import{_ as r,a as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.js";import{useRef as n,useState as e,useEffect as l}from"react";import{getRetry as o}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useDidUpdate as i}from"../useDidUpdate/useDidUpdate.js";import{useMount as u}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var a=function(a,c){var s,f,v=null===(s=null==c?void 0:c.enabled)||void 0===s||s,d=n(null!=c&&c.retry?o(c.retry):0),h=e(!1),p=r(h,2),m=p[0],y=p[1],b=e(!1),D=r(b,2),I=D[0],g=D[1],j=e(!1),E=r(j,2),C=E[0],L=E[1],k=e(!(null==c||!c.initialData)),w=r(k,2),A=w[0],M=w[1],R=e(!(null==c||!c.initialData)),S=r(R,2),U=S[0],_=S[1],x=e(void 0),B=r(x,2),F=B[0],H=B[1],P=e(null==c?void 0:c.initialData),q=r(P,2),z=q[0],G=q[1],J=n(new AbortController),K=n(),N=null!==(f=null==c?void 0:c.keys)&&void 0!==f?f:[],O=function(){J.current.abort(),J.current=new AbortController,J.current.signal.onabort=function(){return _(!0)}},Q=function r(t){O(),y(!0),"refetch"===t&&L(!0),a({signal:J.current.signal,keys:N}).then((function(r){var n,e=null!=c&&c.select?null==c?void 0:c.select(r):r;null==c||null===(n=c.onSuccess)||void 0===n||n.call(c,e),G(e),M(!0),y(!1),H(void 0),g(!1),_(!1),"refetch"===t&&L(!1)})).catch((function(n){var e;if(d.current>0)return d.current-=1,r(t);null==c||null===(e=c.onError)||void 0===e||e.call(c,n),G(void 0),M(!1),y(!1),_(!1),H(n),g(!0),"refetch"===t&&L(!1),d.current=null!=c&&c.retry?o(c.retry):0})).finally((function(){if(null!=c&&c.refetchInterval){var t=setInterval((function(){clearInterval(t),r("refetch")}),null==c?void 0:c.refetchInterval);K.current=t}}))};u((function(){v&&Q("init")})),i((function(){v&&Q("refetch")}),[v].concat(t(N))),l((function(){return function(){clearInterval(K.current)}}),[v,null==c?void 0:c.refetchInterval,null==c?void 0:c.retry].concat(t(N)));var T=(null==c?void 0:c.placeholderData)instanceof Function?null==c?void 0:c.placeholderData():null==c?void 0:c.placeholderData;return{abort:O,data:null!=z?z:T,error:F,refetch:function(){return Q("refetch")},isLoading:m,isError:I,isSuccess:A,isRefetching:C,aborted:U}};export{a as useQuery};
3
3
  //# sourceMappingURL=useQuery.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.66 */
2
- import{_ as r,a as n,g as t}from"../../_rollupPluginBabelHelpers-CWXiPzDd.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.67 */
2
+ import{_ as r,a as n,g as t}from"../../_rollupPluginBabelHelpers-DN9mtEf9.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