{"ast":null,"code":"import { Subscription } from '../Subscription';\nexport const animationFrameProvider = {\n  schedule(callback) {\n    let request = requestAnimationFrame;\n    let cancel = cancelAnimationFrame;\n    const {\n      delegate\n    } = animationFrameProvider;\n    if (delegate) {\n      request = delegate.requestAnimationFrame;\n      cancel = delegate.cancelAnimationFrame;\n    }\n    const handle = request(timestamp => {\n      cancel = undefined;\n      callback(timestamp);\n    });\n    return new Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle));\n  },\n  requestAnimationFrame(...args) {\n    const {\n      delegate\n    } = animationFrameProvider;\n    return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args);\n  },\n  cancelAnimationFrame(...args) {\n    const {\n      delegate\n    } = animationFrameProvider;\n    return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args);\n  },\n  delegate: undefined\n};\n//# sourceMappingURL=animationFrameProvider.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}