import{a as t,t as e}from"./rolldown-runtime-C_ttsnZz.js";import{St as n,U as r,bt as i,yt as o}from"./index-BT8Vuu3B.js";var u=e((t,e)=>{i();var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof o&&o&&o.Object===Object&&o,s="object"==typeof self&&self&&self.Object===Object&&self,v=c||s||Function("return this")(),l=Object.prototype.toString,p=Math.max,d=Math.min,m=function(){return v.Date.now()};function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var i=u.test(t);return i||f.test(t)?a(t.slice(2),i?2:8):r.test(t)?NaN:+t}e.exports=function(t,e,n){var r,i,o,u,f,a,c=0,s=!1,v=!1,l=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function j(e){var n=r,o=i;return r=i=void 0,c=e,u=t.apply(o,n)}function w(t){var n=t-a;return void 0===a||n>=e||n<0||v&&t-c>=o}function x(){var t=m();if(w(t))return h(t);f=setTimeout(x,function(t){var n=e-(t-a);return v?d(n,o-(t-c)):n}(t))}function h(t){return f=void 0,l&&r?j(t):(r=i=void 0,u)}function O(){var t=m(),n=w(t);if(r=arguments,i=this,a=t,n){if(void 0===f)return function(t){return c=t,f=setTimeout(x,e),s?j(t):u}(a);if(v)return f=setTimeout(x,e),j(a)}return void 0===f&&(f=setTimeout(x,e)),u}return e=y(e)||0,b(n)&&(s=!!n.leading,o=(v="maxWait"in n)?p(y(n.maxWait)||0,e):o,l="trailing"in n?!!n.trailing:l),O.cancel=function(){void 0!==f&&clearTimeout(f),c=0,r=a=i=f=void 0},O.flush=function(){return void 0===f?u:h(m())},O}}),f=t(n(),1),a=t(u(),1),c=()=>{const[t,e]=(0,f.useState)(!1);return(0,f.useLayoutEffect)(()=>{const t=()=>{e(window.innerWidth<r.screenSizes.tablet)};return window.addEventListener("resize",(0,a.default)(t,250)),t(),()=>window.removeEventListener("resize",t)},[]),t};export{c as t};
//# sourceMappingURL=useIsMobile-CiWk6s65.js.map