YUI.add("timers",function(t,i){var n,o,a,s,e,c,r,h,p,f,u;function o(t){this.capacity=this.snap(t),this.length=0,this.front=0,this.initialize()}function y(t,i,n,o,a){for(var s=0;s<a;++s)n[s+o]=t[s+i]}function m(){for(;0<a.length;){var t=a.shift();try{t.call()}catch(i){if(p)throw e(),i;setTimeout(function(){throw i},0)}}s=!1}function l(t){p&&h.domain&&(t=h.domain.bind(t)),a.push(t),s||(e(),s=!0)}function g(t){var i;return g._asynchronizer(function(){i||t()}),{cancel:function(){i=1}}}n=t.config.global,(0,o).prototype.push=function(t){var i=this.length;this.capacity<=i&&this.grow(this.snap(this.capacity*this.growFactor)),this[this.front+i&this.capacity-1]=t,this.length=i+1},o.prototype.shift=function(){var t=this.front,i=this[t];return this[t]=void 0,this.front=t+1&this.capacity-1,this.length--,i},o.prototype.grow=function(t){var i=this.front,n=this.capacity,o=new Array(n),a=this.length;y(this,0,o,0,n),this.capacity=t,this.initialize(),this.front=0,i+a<=n?y(o,i,this,0,a):(y(o,i,this,0,t=a-(i+a&n-1)),y(o,0,this,t,a-t))},o.prototype.initialize=function(){for(var t=this.capacity,i=0;i<t;++i)this[i]=void 0},o.prototype.snap=function(t){return"number"!=typeof t?this.minCapacity:(t=Math.min(this.maxCapacity,Math.max(this.minCapacity,t)),1+(t=(t=(t=(t=(t=(t=(t>>>=0)-1)|t>>1)|t>>2)|t>>4)|t>>8)|t>>16))},o.prototype.maxCapacity=1<<30|0,o.prototype.minCapacity=16,o.prototype.growFactor=8,a=new o(1024),s=!1,e=void 0,c="function"==typeof setImmediate,h=n.process,p=!!h&&"[object process]"==={}.toString.call(h),e=p?function(){var t=h.domain;t&&((r=r||o).active=h.domain=null),s&&c?setImmediate(m):h.nextTick(m),t&&(r.active=h.domain=t)}:c?function(){setImmediate(m)}:"undefined"!=typeof MessageChannel?((f=new MessageChannel).port1.onmessage=function(){e=u,(f.port1.onmessage=m)()},u=function(){f.port2.postMessage(0)},function(){setTimeout(m,0),u()}):function(){setTimeout(m,0)},g._asynchronizer=l,g._impl="asap",t.soon=g},"patched-v3.18.7",{requires:["yui-base"]});