Build 586984stable
Module 72290
1,636 characters · in 70644.e9683c268faed3b4.jsDependencies
Source Raw
function(t){var r,e,n,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function f(){throw Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{e="function"==typeof clearTimeout?clearTimeout:f}catch(t){e=f}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}var s=[],h=!1,a=-1;function c(){h&&n&&(h=!1,n.length?s=n.concat(s):a=-1,s.length&&p())}function p(){if(!h){var t=u(c);h=!0;for(var r=s.length;r;){for(n=s,s=[];++a<r;)n&&n[a].run();a=-1,r=s.length}n=null,h=!1,function(t){if(e===clearTimeout)return clearTimeout(t);if((e===f||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{e(t)}catch(r){try{return e.call(null,t)}catch(r){return e.call(this,t)}}}(t)}}function l(t,r){this.fun=t,this.array=r}function y(){}i.nextTick=function(t){var r=Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];s.push(new l(t,r)),1!==s.length||h||u(p)},l.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}