import{r as e,z as i}from"./main-tangy-colts-beg.js";function E(t,u){e.useRef({patches:[],inversePatches:[]});const c=e.useRef(0),s=e.useRef(0);let n=c.current;e.useEffect((()=>{c.current=n,s.current=n})),n+=1,s.current+=1;const[f,o]=e.useState((()=>typeof t=="function"?t():t)),a=e.useCallback((r=>{o((p=>i(p,typeof r=="function"?r:()=>r,u)))}),[]);return e.useEffect((()=>{})),[f,a]}export{E as a};
