(function(){var t,e,n,r,s,i,o,a,u,c,l,p,h,d,f,g,m,y,v,w,b,S,k,q,x,L,P,T,R,j,O,E,A,M,N,_,F,C,U,X,W,D,H,I,z,B,G,J,K,Q=[].slice,V={}.hasOwnProperty,Y=function(t,e){function n(){this.constructor=t}for(var r in e)V.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},Z=[].indexOf||function(t){for(var e=0,n=this.length;e=33?(e=R(),t(r,function(){return O(n)})):setTimeout(n,33-r)})()},E=function(){var t,e,n;return n=arguments[0],e=arguments[1],t=3<=arguments.length?Q.call(arguments,2):[],"function"==typeof n[e]?n[e].apply(n,t):n[e]},S=function(){var t,e,n,r,s,i,o;for(e=arguments[0],r=2<=arguments.length?Q.call(arguments,1):[],i=0,o=r.length;i=100?n="99":(n=this.progress<10?"0":"",n+=0|this.progress),t.children[0].setAttribute("data-progress",""+n)),this.lastRenderedProgress=this.progress},t.prototype.done=function(){return this.progress>=100},t}(),a=function(){function t(){this.bindings={}}return t.prototype.trigger=function(t,e){var n,r,s,i,o;if(null!=this.bindings[t]){for(i=this.bindings[t],o=[],r=0,s=i.length;r=0)return!0}return!1},l=function(t){function e(){var t,n=this;e.__super__.constructor.apply(this,arguments),t=function(t){var e;return e=t.open,t.open=function(r,s,i){return _(r)&&n.trigger("request",{type:r,url:s,request:t}),e.apply(t,arguments)}},window.XMLHttpRequest=function(e){var n;return n=new D(e),t(n),n};try{k(window.XMLHttpRequest,D)}catch(r){}if(null!=W){window.XDomainRequest=function(){var e;return e=new W,t(e),e};try{k(window.XDomainRequest,W)}catch(r){}}if(null!=X&&j.ajax.trackWebSockets){window.WebSocket=function(t,e){var r;return r=null!=e?new X(t,e):new X(t),_("socket")&&n.trigger("request",{type:"socket",url:t,protocols:e,request:r}),r};try{k(window.WebSocket,X)}catch(r){}}}return Y(e,t),e}(a),I=null,x=function(){return null==I&&(I=new l),I},N=function(t){var e,n,r,s;for(s=j.ajax.ignoreURLs,n=0,r=s.length;nj.eventLag.sampleCount&&s.shift(),t=m(s),++r>=j.eventLag.minSamples&&t=100&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/j.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),n=1-Math.pow(this.progress/100,j.easeFactor),this.progress+=n*this.rate*t,this.progress=Math.min(this.lastProgress+j.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},t}(),C=null,M=null,y=null,U=null,g=null,v=null,c.running=!1,L=function(){if(j.restartOnPushState)return c.restart()},null!=window.history.pushState&&(B=window.history.pushState,window.history.pushState=function(){return L(),B.apply(window.history,arguments)}),null!=window.history.replaceState&&(K=window.history.replaceState,window.history.replaceState=function(){return L(),K.apply(window.history,arguments)}),p={ajax:t,elements:r,document:n,eventLag:i},(T=function(){var t,n,r,s,i,o,a,u;for(c.sources=C=[],o=["ajax","elements","document","eventLag"],n=0,s=o.length;n