(function(){var g,st,ht,ct,lt,at,vt,yt,c,pt,wt,nt,bt,kt,e,dt,i,l,a,tt,o,v,gt,it,rt,u,ni,r,n,y,ut,ti,s,p,t,f,ft,w,b,et,k,d,ii,ri,ot,ui,fi,h=[].slice,ei={}.hasOwnProperty,oi=function(n,t){function r(){this.constructor=n}for(var i in t)ei.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},si=[].indexOf||function(n){for(var t=0,i=this.length;t=33?(i=r(),n(u,function(){return y(t)})):setTimeout(t,33-u)},t()},ut=function(){var i,t,n;return n=arguments[0],t=arguments[1],i=3<=arguments.length?h.call(arguments,2):[],typeof n[t]=="function"?n[t].apply(n,i):n[t]},o=function(){var n,t,i,f,r,u,e;for(t=arguments[0],f=2<=arguments.length?h.call(arguments,1):[],u=0,e=f.length;u=100?"99":(this.progress<10?"0":"")+(this.progress|0),t.children[0].setAttribute("data-progress",""+i)),this.lastRenderedProgress=this.progress)},t.prototype.done=function(){return this.progress>=100},t}();yt=function(){function n(){this.bindings={}}return n.prototype.trigger=function(n,t){var f,i,e,r,u;if(this.bindings[n]!=null){for(r=this.bindings[n],u=[],i=0,e=r.length;i=0))?!0:!1};pt=function(t){function i(){var t,r=this;i.__super__.constructor.apply(this,arguments);t=function(n){var t;return t=n.open,n.open=function(i,u){return p(i)&&r.trigger("request",{type:i,url:u,request:n}),t.apply(n,arguments)}};window.XMLHttpRequest=function(n){var i;return i=new et(n),t(i),i};v(window.XMLHttpRequest,et);b!=null&&(window.XDomainRequest=function(){var n;return n=new b,t(n),n},v(window.XDomainRequest,b));w!=null&&n.ajax.trackWebSockets&&(window.WebSocket=function(n,t){var i;return i=new w(n,t),p("socket")&&r.trigger("request",{type:"socket",url:n,protocols:t,request:i}),i},v(window.WebSocket,w))}return oi(i,t),i}(yt);d=null;it=function(){return d==null&&(d=new pt),d};it().on("request",function(i){var r,e,u,f;return f=i.type,u=i.request,!Pace.running&&(n.restartOnRequestAfter!==!1||p(f)==="force")?(e=arguments,r=n.restartOnRequestAfter||0,typeof r=="boolean"&&(r=0),setTimeout(function(){var o,n,s,h,i,r;if(o=f==="socket"?u.readyState<2:0<(h=u.readyState)&&h<4,o){for(Pace.restart(),i=Pace.sources,r=[],n=0,s=i.length;nn.eventLag.sampleCount&&t.shift(),i=dt(t),++e>=n.eventLag.minSamples&&i=100&&(this.done=!0),i===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(i-this.last)/this.sinceLastUpdate),this.catchup=(i-this.progress)/n.catchupTime,this.sinceLastUpdate=0,this.last=i),i>this.progress&&(this.progress+=this.catchup*t),r=1-Math.pow(this.progress/100,n.easeFactor),this.progress+=r*this.rate*t,this.progress=Math.min(this.lastProgress+n.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},t}();f=null;s=null;i=null;ft=null;e=null;l=null;Pace.running=!1;rt=function(){if(n.restartOnPushState)return Pace.restart()};window.history.pushState!=null&&(ri=window.history.pushState,window.history.pushState=function(){return rt(),ri.apply(window.history,arguments)});window.history.replaceState!=null&&(fi=window.history.replaceState,window.history.replaceState=function(){return rt(),fi.apply(window.history,arguments)});wt={ajax:g,elements:ct,document:ht,eventLag:at};(ni=function(){var r,u,e,c,l,o,a,h;for(Pace.sources=f=[],o=["ajax","elements","document","eventLag"],u=0,c=o.length;u