"use strict";for(var last,id,queue,frameDuration,stringUtil=require("./stringUtil-b064ec79.js"),raf$2={exports:{}},performanceNow={exports:{}},now=(!function(){var e,r,o,n,t,a;"undefined"!=typeof performance&&null!==performance&&performance.now?performanceNow.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(performanceNow.exports=function(){return(e()-t)/1e6},r=process.hrtime,n=(e=function(){var e=r();return 1e9*e[0]+e[1]})(),a=1e9*process.uptime(),t=n-a):o=Date.now?(performanceNow.exports=function(){return Date.now()-o},Date.now()):(performanceNow.exports=function(){return(new Date).getTime()-o},(new Date).getTime())}.call(stringUtil.commonjsGlobal),performanceNow.exports),root="undefined"==typeof window?stringUtil.commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix],i=0;!raf&&i<vendors.length;i++)raf=root[vendors[i]+"Request"+suffix],caf=root[vendors[i]+"Cancel"+suffix]||root[vendors[i]+"CancelRequest"+suffix];raf&&caf||(id=last=0,queue=[],frameDuration=1e3/60,raf=function(e){var r,o;return 0===queue.length&&(r=now(),o=Math.max(0,frameDuration-(r-last)),last=o+r,setTimeout(function(){for(var e=queue.slice(0),r=queue.length=0;r<e.length;r++)if(!e[r].cancelled)try{e[r].callback(last)}catch(e){setTimeout(function(){throw e},0)}},Math.round(o))),queue.push({handle:++id,callback:e,cancelled:!1}),id},caf=function(e){for(var r=0;r<queue.length;r++)queue[r].handle===e&&(queue[r].cancelled=!0)}),raf$2.exports=function(e){return raf.call(root,e)},raf$2.exports.cancel=function(){caf.apply(root,arguments)},raf$2.exports.polyfill=function(e){(e=e||root).requestAnimationFrame=raf,e.cancelAnimationFrame=caf};var raf$1=raf$2.exports;function isNil(e){return null==e}var isNil_1=isNil;exports.isNil_1=isNil_1,exports.raf=raf$1;
