{"version":3,"file":"raf.mjs","sources":["../../../../packages/utils/raf.ts"],"sourcesContent":["import { isClient } from './browser'\n\nexport const rAF = (fn: () => void) =>\n  isClient\n    ? window.requestAnimationFrame(fn)\n    : (setTimeout(fn, 16) as unknown as number)\n\nexport const cAF = (handle: number) =>\n  isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle)\n"],"names":["rAF","o","e","window","requestAnimationFrame","setTimeout","cAF","cancelAnimationFrame","clearTimeout"],"mappings":"8DAAiD,MAACA,EAAIC,GAAGC,EAAEC,OAAOC,sBAAsBH,GAAGI,WAAWJ,EAAE,IAAIK,EAAIL,GAAGC,EAAEC,OAAOI,qBAAqBN,GAAGO,aAAaP"}