function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["request-animation-frame-polyfill"]={})}(this,(function(e){"use strict";var n=1,o="object"===("undefined"==typeof self?"undefined":_typeof(self))&&self.self==self?self:"object"===("undefined"==typeof global?"undefined":_typeof(global))&&global.global==global?global:{},t=Date.now(),i={},r=Date.now(),f=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");var f=Date.now(),a=f-r,u=a>16?0:16-a,l=n++;return i[l]=e,Object.keys(i).length>1||setTimeout((function(){r=f;var e=i;i={},Object.keys(e).forEach((function(n){return e[n](o.performance&&"function"==typeof o.performance.now?o.performance.now():Date.now()-t)}))}),u),l},a=function(e){delete i[e]},u=function(e){return"string"!=typeof e?f:""===e?o.requestAnimationFrame:o[e+"RequestAnimationFrame"]},l=function(e,n){for(var o=0;void 0!==e[o];){if(n(e[o]))return e[o];o+=1}}(["","webkit","moz","ms","o"],(function(e){return!!u(e)})),m=u(l),c=function(e){return"string"!=typeof e?a:""===e?o.cancelAnimationFrame:o[e+"CancelAnimationFrame"]||o[e+"CancelRequestAnimationFrame"]}(l);o.requestAnimationFrame=m,o.cancelAnimationFrame=c,"undefined"!=typeof module&&module.exports&&(module.exports={requestAnimationFrame:m,cancelAnimationFrame:c});var s={requestAnimationFrame:m,cancelAnimationFrame:c};e.cancelAnimationFrame=c,e.default=s,e.requestAnimationFrame=m,Object.defineProperty(e,"__esModule",{value:!0})}));
