Module 314144

1,101 characters · in 25536.0ec29f5a59959fec.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";var r,o,a,i,u=n(860511),l=n(985848),s=n(221015),c=n(339626),f=n(210140),d=n(503628),h=n(469520),p=n(192819),v=n(447280),y=n(627),m=n(705333),g=n(13570),b=u.setImmediate,w=u.clearImmediate,_=u.process,D=u.Dispatch,x=u.Function,k=u.MessageChannel,E=u.String,C=0,A={},S="onreadystatechange";d(function(){r=u.location});var O=function(e){if(f(A,e)){var t=A[e];delete A[e],t()}},B=function(e){return function(){O(e)}},F=function(e){O(e.data)},T=function(e){u.postMessage(E(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){y(arguments.length,1);var t=c(e)?e:x(e),n=p(arguments,1);return A[++C]=function(){l(t,void 0,n)},o(C),C},w=function(e){delete A[e]},g?o=function(e){_.nextTick(B(e))}:D&&D.now?o=function(e){D.now(B(e))}:k&&!m?(i=(a=new k).port2,a.port1.onmessage=F,o=s(i.postMessage,i)):u.addEventListener&&c(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!d(T)?(o=T,u.addEventListener("message",F,!1)):o=S in v("script")?function(e){h.appendChild(v("script"))[S]=function(){h.removeChild(this),O(e)}}:function(e){setTimeout(B(e),0)}),e.exports={set:b,clear:w}}