const e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function t(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}var r=t,o=n;function i(e){if(r===setTimeout)return setTimeout(e,0);if((r===t||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}"function"==typeof e.setTimeout&&(r=setTimeout),"function"==typeof e.clearTimeout&&(o=clearTimeout);var u,f=[],c=!1,s=-1;function a(){c&&u&&(c=!1,u.length?f=u.concat(f):s=-1,f.length&&l())}function l(){if(!c){var e=i(a);c=!0;for(var t=f.length;t;){for(u=f,f=[];++s<t;)u&&u[s].run();s=-1,t=f.length}u=null,c=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===n||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}d.prototype.run=function(){this.fun.apply(null,this.array)};var m=h,w=h,T=h,p=h,v=h,b=h,y=h,g=e.performance||{},E=g.now||g.mozNow||g.msNow||g.oNow||g.webkitNow||function(){return(new Date).getTime()},D=new Date,L={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new d(e,t)),1!==f.length||c||i(l)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:m,addListener:w,once:T,off:p,removeListener:v,removeAllListeners:b,emit:y,binding:function(){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*E.call(g),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-D)/1e3}};export{L as b,e as g}