import{_ as u}from"./lodash-tangy-colts-beg-516.js";import{r as c}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const i=(e,t=400)=>{const o=c.useRef(e);return c.useEffect(()=>{o.current=e},[e]),c.useMemo(()=>{const r=(...s)=>o.current(...s);return u.debounce(r,t)},[t])};export{i as u};
