var a=Object.defineProperty,M=Object.defineProperties,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyDescriptors,L=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var h=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&h(e,n,t[n]);if(u)for(var n of u(t))$.call(t,n)&&h(e,n,t[n]);return e},c=(e,t)=>M(e,v(t));var j=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of L(t))!m.call(e,o)&&o!==n&&a(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e};var S=e=>O(a({},"__esModule",{value:!0}),e);var A={};j(A,{breakpointMap:()=>f,default:()=>W});module.exports=S(A);var y=require("react");var d=require("react"),l=typeof window=="undefined"?d.useEffect:d.useLayoutEffect;var f={sm:576,md:852,lg:968,xl:1080,"2lg":1200},p=(()=>{let e=0;return Object.keys(f).reduce((t,n,s)=>{if(s===Object.keys(f).length-1)return c(r({},t),{[n]:`(min-width: ${e}px)`});let o=e,i=f[n];return e=i+1,c(r({},t),{[n]:`(min-width: ${o}px) and (max-width: ${i}px)`})},{})})(),k=e=>`is${e.charAt(0).toUpperCase()}${e.slice(1)}`,w=()=>Object.keys(p).reduce((t,n)=>{var i;let s=k(n);if(typeof window=="undefined")return c(r({},t),{[s]:!1});let o=typeof(window==null?void 0:window.matchMedia)=="function"?window.matchMedia(p[n]):null;return c(r({},t),{[s]:(i=o==null?void 0:o.matches)!=null?i:!1})},{}),I=()=>{let[e,t]=(0,y.useState)(()=>w());return l(()=>{let n=Object.keys(p).map(s=>{let o,i;return typeof(window==null?void 0:window.matchMedia)=="function"&&(o=window.matchMedia(p[s]),i=g=>{let x=k(s);t(E=>c(r({},E),{[x]:g.matches}))},o.addEventListener&&o.addEventListener("change",i)),()=>{o!=null&&o.removeEventListener&&o.removeEventListener("change",i)}});return t(w()),()=>{n.forEach(s=>{s()})}},[]),c(r({},e),{isMobile:e.isSm,isTablet:e.isMd||e.isLg,isDesktop:e.isXlg||e.is2xl})},W=I;0&&(module.exports={breakpointMap});
