{"version":3,"file":"resolve-start-time.mjs","sources":["../../../../src/animation/utils/resolve-start-time.ts"],"sourcesContent":["import { MotionGlobalConfig } from \"motion-utils\"\n\n/**\n * If an animation's keyframes resolve, or its first frame renders, more than\n * this long after its start time, it starts from then instead. While we prefer\n * to \"start\" an animation as soon as it's triggered, this avoids a visual jump\n * into it after main thread work.\n *\n * Manual timing steps frames by however long it likes, so never lags.\n */\nconst MAX_START_DELAY = 40\n\nexport const resolveStartTime = (startTime: number, now: number) =>\n now - startTime > MAX_START_DELAY && !MotionGlobalConfig.useManualTiming\n ? now\n : startTime\n"],"names":[],"mappings":";;AAEA;;;;;;;AAOG;AACH,MAAM,eAAe,GAAG,EAAE;MAEb,gBAAgB,GAAG,CAAC,SAAiB,EAAE,GAAW,KAC3D,GAAG,GAAG,SAAS,GAAG,eAAe,IAAI,CAAC,kBAAkB,CAAC;AACrD,MAAE;MACA;;;;"}