function calculateSVGPathLength(n){var f=document.querySelector(n),u,t,r;if(f!==null)for(u=f.querySelectorAll("path"),i=0;i<u.length;i++)t=u[i],r=t.getTotalLength().toFixed(2),t.style.strokeDasharray=r+" "+r,t.style.strokeDashoffset=r,t.setAttribute("data",'pathLength: "length"')}(function(){var nt,st,ht,ct,lt,at,vt,yt,a,n,pt,wt,tt,bt,kt,o,dt,r,v,y,it,s,p,gt,ni,rt,f,ti,u,t,w,ut,ii,h,ft,b,i,e,et,c,k,ot,d,g,ri,ui,fi,ei,l=[].slice,oi={}.hasOwnProperty,si=function(n,t){function r(){this.constructor=n}for(var i in t)oi.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},hi=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1};for(it={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},u=function(){var n;return null!=(n="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?n:+new Date},w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,y=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==w&&(w=function(n){return setTimeout(n,50)},y=function(n){return clearTimeout(n)}),ii=function(n){var t,i;return t=u(),(i=function(){var r;return(r=u()-t)>=33?(t=u(),n(r,function(){return w(i)})):setTimeout(i,33-r)})()},ut=function(){var i,t,n;return n=arguments[0],t=arguments[1],i=3<=arguments.length?l.call(arguments,2):[],"function"==typeof n[t]?n[t].apply(n,i):n[t]},s=function(){var n,t,r,f,i,u,e;for(t=arguments[0],u=0,e=(f=2<=arguments.length?l.call(arguments,1):[]).length;u<e;u++)if(r=f[u])for(n in r)oi.call(r,n)&&(i=r[n],null!=t[n]&&"object"==typeof t[n]&&null!=i&&"object"==typeof i?s(t[n],i):t[n]=i);return t},dt=function(n){var i,r,u,t,f;for(r=i=0,t=0,f=n.length;t<f;t++)u=n[t],r+=Math.abs(u),i++;return r/i},gt=function(n,t){var i,r,u;if(null==n&&(n="options"),null==t&&(t=!0),u=document.querySelector("[data-pace-"+n+"]")){if(i=u.getAttribute("data-pace-"+n),!t)return i;try{return JSON.parse(i)}catch(n){return r=n,"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",r):void 0}}},vt=function(){function n(){}return n.prototype.on=function(n,t,i,r){var u;return null==r&&(r=!1),null==this.bindings&&(this.bindings={}),null==(u=this.bindings)[n]&&(u[n]=[]),this.bindings[n].push({handler:t,ctx:i,once:r})},n.prototype.once=function(n,t,i){return this.on(n,t,i,!0)},n.prototype.off=function(n,t){var i,u,r;if(null!=(null!=(u=this.bindings)?u[n]:void 0)){if(null==t)return delete this.bindings[n];for(i=0,r=[];i<this.bindings[n].length;)this.bindings[n][i].handler===t?r.push(this.bindings[n].splice(i,1)):r.push(i++);return r}},n.prototype.trigger=function(){var f,r,n,e,t,o,s,u,i;if(n=arguments[0],f=2<=arguments.length?l.call(arguments,1):[],null!=(s=this.bindings)?s[n]:void 0){for(t=0,i=[];t<this.bindings[n].length;)e=(u=this.bindings[n][t]).handler,r=u.ctx,o=u.once,e.apply(null!=r?r:this,f),o?i.push(this.bindings[n].splice(t,1)):i.push(t++);return i}},n}(),n=window.Pace||{},window.Pace=n,s(n,vt.prototype),t=n.options=s({},it,window.paceOptions,gt()),d=0,ri=(fi=["ajax","document","eventLag","elements"]).length;d<ri;d++)!0===t[i=fi[d]]&&(t[i]=it[i]);a=function(n){function t(){return t.__super__.constructor.apply(this,arguments)}return si(t,n),t}(Error);st=function(){function i(){this.progress=0}return i.prototype.getElement=function(){var n;if(null==this.el){if(!(n=document.querySelector(t.target)))throw new a;this.el=document.createElement("div");this.el.className="pace pace-active";document.body.className=document.body.className.replace(/pace-done/g,"");document.body.className+=" pace-running";this.el.innerHTML='<div class="pace-progress">\n  <div class="pace-progress-inner"><\/div>\n<\/div>\n<div class="pace-activity"><\/div>';null!=n.firstChild?n.insertBefore(this.el,n.firstChild):n.appendChild(this.el)}return this.el},i.prototype.finish=function(){var n;return(n=this.getElement()).className=n.className.replace("pace-active",""),n.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},i.prototype.update=function(n){return this.progress=n,this.render()},i.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(n){a=n}return this.el=void 0},i.prototype.render=function(){var i,f,r,e,u,o,s;if(null==document.querySelector(t.target))return!1;for(i=this.getElement(),e="translate3d("+this.progress+"%, 0, 0)",u=0,o=(s=["webkitTransform","msTransform","transform"]).length;u<o;u++)f=s[u],i.children[0].style[f]=e;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(i.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),i.setAttribute("data-progress-text",(0|this.progress)+"%"),n.trigger("update",this.progress),this.progress>=100?r="99":(r=this.progress<10?"0":"",r+=0|this.progress),i.children[0].setAttribute("data-progress",""+r)),this.lastRenderedProgress=this.progress},i.prototype.done=function(){return this.progress>=100},i}();yt=function(){function n(){this.bindings={}}return n.prototype.trigger=function(n,t){var u,i,f,e,r;if(null!=this.bindings[n]){for(r=[],i=0,f=(e=this.bindings[n]).length;i<f;i++)u=e[i],r.push(u.call(this,t));return r}},n.prototype.on=function(n,t){var i;return null==(i=this.bindings)[n]&&(i[n]=[]),this.bindings[n].push(t)},n}();ot=window.XMLHttpRequest;k=window.XDomainRequest;c=window.WebSocket;p=function(n,t){var i,r=[];for(i in t.prototype)try{null==n[i]&&"function"!=typeof t[i]?"function"==typeof Object.defineProperty?r.push(Object.defineProperty(n,i,{get:function(){return t.prototype[i]},configurable:!0,enumerable:!0})):r.push(n[i]=t.prototype[i]):r.push(void 0)}catch(n){n}return r};f=[];n.ignore=function(){var n,t,i;return t=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],f.unshift("ignore"),i=t.apply(null,n),f.shift(),i};n.track=function(){var n,t,i;return t=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],f.unshift("track"),i=t.apply(null,n),f.shift(),i};b=function(n){var i;return(null==n&&(n="GET"),"track"===f[0])?"force":!f.length&&t.ajax&&("socket"===n&&t.ajax.trackWebSockets||(i=n.toUpperCase(),hi.call(t.ajax.trackMethods,i)>=0))?!0:!1};pt=function(){function n(){var i,r=this;n.__super__.constructor.apply(this,arguments);i=function(n){var t;return t=n.open,n.open=function(i,u){return b(i)&&r.trigger("request",{type:i,url:u,request:n}),t.apply(n,arguments)}};window.XMLHttpRequest=function(n){var t;return t=new ot(n),i(t),t};try{p(window.XMLHttpRequest,ot)}catch(i){}if(null!=k){window.XDomainRequest=function(){var n;return n=new k,i(n),n};try{p(window.XDomainRequest,k)}catch(i){}}if(null!=c&&t.ajax.trackWebSockets){window.WebSocket=function(n,t){var i;return i=null!=t?new c(n,t):new c(n),b("socket")&&r.trigger("request",{type:"socket",url:n,protocols:t,request:i}),i};try{p(window.WebSocket,c)}catch(i){}}}return si(n,yt),n}();g=null;ft=function(n){for(var r,f,i=0,u=(f=t.ajax.ignoreURLs).length;i<u;i++)if("string"==typeof(r=f[i])){if(-1!==n.indexOf(r))return!0}else if(r.test(n))return!0;return!1};(ni=function(){return null==g&&(g=new pt),g})().on("request",function(r){var u,o,f,e,s;if(e=r.type,f=r.request,s=r.url,!ft(s))return n.running||!1===t.restartOnRequestAfter&&"force"!==b(e)?void 0:(o=arguments,"boolean"==typeof(u=t.restartOnRequestAfter||0)&&(u=0),setTimeout(function(){var t,u,s,h,r;if("socket"===e?f.readyState<2:0<(s=f.readyState)&&s<4){for(n.restart(),r=[],t=0,u=(h=n.sources).length;t<u;t++){if((i=h[t])instanceof nt){i.watch.apply(i,o);break}r.push(void 0)}return r}},u))});nt=function(){function n(){var n=this;this.elements=[];ni().on("request",function(){return n.watch.apply(n,arguments)})}return n.prototype.watch=function(n){var t,i,r,u;if(r=n.type,t=n.request,u=n.url,!ft(u))return i="socket"===r?new bt(t):new kt(t),this.elements.push(i)},n}();kt=function(){return function(n){var u,i,f,r,e,t=this;if(this.progress=0,null!=window.ProgressEvent)for(n.addEventListener("progress",function(n){return t.progress=n.lengthComputable?100*n.loaded/n.total:t.progress+(100-t.progress)/2},!1),i=0,f=(e=["load","abort","timeout","error"]).length;i<f;i++)u=e[i],n.addEventListener(u,function(){return t.progress=100},!1);else r=n.onreadystatechange,n.onreadystatechange=function(){var i;return 0===(i=n.readyState)||4===i?t.progress=100:3===n.readyState&&(t.progress=50),"function"==typeof r?r.apply(null,arguments):void 0}}}();bt=function(){return function(n){var i,t,r,u,f=this;for(this.progress=0,t=0,r=(u=["error","open"]).length;t<r;t++)i=u[t],n.addEventListener(i,function(){return f.progress=100},!1)}}();ct=function(){return function(n){var i,t,r,u;for(null==n&&(n={}),this.elements=[],null==n.selectors&&(n.selectors=[]),t=0,r=(u=n.selectors).length;t<r;t++)i=u[t],this.elements.push(new lt(i))}}();lt=function(){function n(n){this.selector=n;this.progress=0;this.check()}return n.prototype.check=function(){var n=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return n.check()},t.elements.checkInterval)},n.prototype.done=function(){return this.progress=100},n}();ht=function(){function n(){var n,i,t=this;this.progress=null!=(i=this.states[document.readyState])?i:100;n=document.onreadystatechange;document.onreadystatechange=function(){return null!=t.states[document.readyState]&&(t.progress=t.states[document.readyState]),"function"==typeof n?n.apply(null,arguments):void 0}}return n.prototype.states={loading:0,interactive:50,complete:100},n}();at=function(){return function(){var i,f,r,e,n,o=this;this.progress=0;i=0;n=[];e=0;r=u();f=setInterval(function(){var s;return s=u()-r-50,r=u(),n.push(s),n.length>t.eventLag.sampleCount&&n.shift(),i=dt(n),++e>=t.eventLag.minSamples&&i<t.eventLag.lagThreshold?(o.progress=100,clearInterval(f)):o.progress=300/(i+3)},50)}}();tt=function(){function n(n){this.source=n;this.last=this.sinceLastUpdate=0;this.rate=t.initialRate;this.catchup=0;this.progress=this.lastProgress=0;null!=this.source&&(this.progress=ut(this.source,"progress"))}return n.prototype.tick=function(n,i){var r;return null==i&&(i=ut(this.source,"progress")),i>=100&&(this.done=!0),i===this.last?this.sinceLastUpdate+=n:(this.sinceLastUpdate&&(this.rate=(i-this.last)/this.sinceLastUpdate),this.catchup=(i-this.progress)/t.catchupTime,this.sinceLastUpdate=0,this.last=i),i>this.progress&&(this.progress+=this.catchup*n),r=1-Math.pow(this.progress/100,t.easeFactor),this.progress+=r*this.rate*n,this.progress=Math.min(this.lastProgress+t.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},n}();e=null;h=null;r=null;et=null;o=null;v=null;n.running=!1;rt=function(){if(t.restartOnPushState)return n.restart()};null!=window.history.pushState&&(ui=window.history.pushState,window.history.pushState=function(){return rt(),ui.apply(window.history,arguments)});null!=window.history.replaceState&&(ei=window.history.replaceState,window.history.replaceState=function(){return rt(),ei.apply(window.history,arguments)});wt={ajax:nt,elements:ct,document:ht,eventLag:at};(ti=function(){var o,u,f,s,c,l,a,v;for(n.sources=e=[],u=0,s=(l=["ajax","elements","document","eventLag"]).length;u<s;u++)!1!==t[o=l[u]]&&e.push(new wt[o](t[o]));for(f=0,c=(v=null!=(a=t.extraSources)?a:[]).length;f<c;f++)i=v[f],e.push(new i(t));return n.bar=r=new st,h=[],et=new tt})();n.stop=function(){return n.trigger("stop"),n.running=!1,r.destroy(),v=!0,null!=o&&("function"==typeof y&&y(o),o=null),ti()};n.restart=function(){return n.trigger("restart"),n.stop(),n.start()};n.go=function(){var f;return n.running=!0,r.render(),f=u(),v=!1,o=ii(function(o,s){var g,y,p,nt,it,c,l,w,a,b,k,d,rt,ut,ft;for(100-r.progress,y=b=0,p=!0,c=k=0,rt=e.length;k<rt;c=++k)for(i=e[c],a=null!=h[c]?h[c]:h[c]=[],l=d=0,ut=(it=null!=(ft=i.elements)?ft:[i]).length;d<ut;l=++d)nt=it[l],p&=(w=null!=a[l]?a[l]:a[l]=new tt(nt)).done,w.done||(y++,b+=w.tick(o));return g=b/y,r.update(et.tick(o,g)),r.done()||p||v?(r.update(100),n.trigger("done"),setTimeout(function(){return r.finish(),n.running=!1,n.trigger("hide")},Math.max(t.ghostTime,Math.max(t.minTime-(u()-f),0)))):s()})};n.start=function(i){s(t,i);n.running=!0;try{r.render()}catch(i){a=i}return document.querySelector(".pace")?(n.trigger("start"),n.go()):setTimeout(n.start,50)};"function"==typeof define&&define.amd?define(["pace"],function(){return n}):"object"==typeof exports?module.exports=n:t.startOnPageLoad&&n.start()}).call(this)