UNPKG

storybook-prebuilt

Version:

A prebuilt storybook version for web components

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