1(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else{if(typeof define==="function"&&define.amd){define([],b)}else{var a;if(typeof window!=="undefined"){a=window}else{if(typeof global!=="undefined"){a=global}else{if(typeof self!=="undefined"){a=self}else{a=this}}}a.ProgressBar=b()}}})(function(){var d,b,a;return(function c(f,k,h){function g(q,n){if(!k[q]){if(!f[q]){var m=typeof require=="function"&&require;if(!n&&m){return m(q,!0)}if(e){return e(q,!0)}var p=new Error("Cannot find module '"+q+"'");throw p.code="MODULE_NOT_FOUND",p}var i=k[q]={exports:{}};f[q][0].call(i.exports,function(l){var o=f[q][1][l];return g(o?o:l)},i,i.exports,c,f,k,h)}return k[q].exports}var e=typeof require=="function"&&require;for(var j=0;j<h.length;j++){g(h[j])}return g})({1:[function(f,g,e){(function(){var i=this||Function("return this")();var h=(function(){var k;var o;var C="linear";var n=500;var m=1000/60;var t=Date.now?Date.now:function(){return +new Date()};var p=typeof SHIFTY_DEBUG_NOW!=="undefined"?SHIFTY_DEBUG_NOW:t;if(typeof window!=="undefined"){o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||(window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame)||setTimeout}else{o=setTimeout}function q(){}function r(G,F){var E;for(E in G){if(Object.hasOwnProperty.call(G,E)){F(E)}}}function B(F,E){r(E,function(G){F[G]=E[G]});return F}function y(E,F){r(F,function(G){if(typeof E[G]==="undefined"){E[G]=F[G]}})}function j(J,H,G,O,K,L,M){var F=J<L?0:(J-L)/K;var E;var N;var I;for(E in H){if(H.hasOwnProperty(E)){N=M[E];I=typeof N==="function"?N:k[N];H[E]=v(G[E],O[E],I,F)}}return H}function v(H,F,G,E){return H+(F-H)*G(E)}function D(E,G){var H=u.prototype.filter;var F=E._filterArgs;r(H,function(I){if(typeof H[I][G]!=="undefined"){H[I][G].apply(E,F)}})}var A;var z;var s;var x;function w(G,M,K,I,F,E,O,N,H,L,J){A=M+K+I;z=Math.min(J||p(),A);s=z>=A;x=I-(A-z);if(G.isPlaying()){if(s){H(O,G._attachment,x);G.stop(true)}else{G._scheduleId=L(G._timeoutHandler,m);D(G,"beforeTween");if(z<(M+K)){j(1,F,E,O,1,1,N)}else{j(z,F,E,O,I,M+K,N)}D(G,"afterTween");H(F,G._attachment,x)}}}function l(H,G){var F={};var E=typeof G;if(E==="string"||E==="function"){r(H,function(I){F[I]=G})}else{r(H,function(I){if(!F[I]){F[I]=G[I]||C}})}return F}function u(F,E){this._currentState=F||{};this._configured=false;this._scheduleFunction=o;if(typeof E!=="undefined"){this.setConfig(E)}}u.prototype.tween=function(E){if(this._isTweening){return this}if(E!==undefined||!this._configured){this.setConfig(E)}this._timestamp=p();this._start(this.get(),this._attachment);return this.resume()};u.prototype.setConfig=function(F){F=F||{};this._configured=true;this._attachment=F.attachment;this._pausedAtTime=null;this._scheduleId=null;this._delay=F.delay||0;this._start=F.start||q;this._step=F.step||q;this._finish=F.finish||q;this._duration=F.duration||n;this._currentState=B({},F.from||this.get());this._originalState=this.get();this._targetState=B({},F.to||this.get());var E=this;this._timeoutHandler=function(){w(E,E._timestamp,E._delay,E._duration,E._currentState,E._originalState,E._targetState,E._easing,E._step,E._scheduleFunction)};var G=this._currentState;var H=this._targetState;y(H,G);this._easing=l(G,F.easing||C);this._filterArgs=[G,this._originalState,H,this._easing];D(this,"tweenCreated");return this};u.prototype.get=function(){return B({},this._currentState)};u.prototype.set=function(E){this._currentState=E};u.prototype.pause=function(){this._pausedAtTime=p();this._isPaused=true;return this};u.prototype.resume=function(){if(this._isPaused){this._timestamp+=p()-this._pausedAtTime}this._isPaused=false;this._isTweening=true;this._timeoutHandler();return this};u.prototype.seek=function(F){F=Math.max(F,0);var E=p();if((this._timestamp+F)===0){return this}this._timestamp=E-F;if(!this.isPlaying()){this._isTweening=true;this._isPaused=false;w(this,this._timestamp,this._delay,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction,E);this.pause()}return this};u.prototype.stop=function(E){this._isTweening=false;this._isPaused=false;this._timeoutHandler=q;(i.cancelAnimationFrame||i.webkitCancelAnimationFrame||i.oCancelAnimationFrame||i.msCancelAnimationFrame||i.mozCancelRequestAnimationFrame||i.clearTimeout)(this._scheduleId);if(E){D(this,"beforeTween");j(1,this._currentState,this._originalState,this._targetState,1,0,this._easing);D(this,"afterTween");D(this,"afterTweenEnd");this._finish.call(this,this._currentState,this._attachment)}return this};u.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused};u.prototype.setScheduleFunction=function(E){this._scheduleFunction=E};u.prototype.dispose=function(){var E;for(E in this){if(this.hasOwnProperty(E)){delete this[E]}}};u.prototype.filter={};u.prototype.formula={linear:function(E){return E}};k=u.prototype.formula;B(u,{now:p,each:r,tweenProps:j,tweenProp:v,applyFilter:D,shallowCopy:B,defaults:y,composeEasingObject:l});if(typeof SHIFTY_DEBUG_NOW==="function"){i.timeoutHandler=w}if(typeof e==="object"){g.exports=u}else{if(typeof d==="function"&&d.amd){d(function(){return u})}else{if(typeof i.Tweenable==="undefined"){i.Tweenable=u}}}return u}()); 2/*! 3 * All equations are adapted from Thomas Fuchs' 4 * [Scripty2](https://github.com/madrobby/scripty2/blob/master/src/effects/transitions/penner.js). 5 * 6 * Based on Easing Equations (c) 2003 [Robert 7 * Penner](http://www.robertpenner.com/), all rights reserved. This work is 8 * [subject to terms](http://www.robertpenner.com/easing_terms_of_use.html). 9 */ 10/*!
11 * TERMS OF USE - EASING EQUATIONS 12 * Open source under the BSD License. 13 * Easing Equations (c) 2003 Robert Penner, all rights reserved. 14 */ 15(function(){h.shallowCopy(h.prototype.formula,{easeInQuad:function(j){return Math.pow(j,2)},easeOutQuad:function(j){return -(Math.pow((j-1),2)-1)},easeInOutQuad:function(j){if((j/=0.5)<1){return 0.5*Math.pow(j,2)}return -0.5*((j-=2)*j-2)},easeInCubic:function(j){return Math.pow(j,3)},easeOutCubic:function(j){return(Math.pow((j-1),3)+1)},easeInOutCubic:function(j){if((j/=0.5)<1){return 0.5*Math.pow(j,3)}return 0.5*(Math.pow((j-2),3)+2)},easeInQuart:function(j){return Math.pow(j,4)},easeOutQuart:function(j){return -(Math.pow((j-1),4)-1)},easeInOutQuart:function(j){if((j/=0.5)<1){return 0.5*Math.pow(j,4)}return -0.5*((j-=2)*Math.pow(j,3)-2)},easeInQuint:function(j){return Math.pow(j,5)},easeOutQuint:function(j){return(Math.pow((j-1),5)+1)},easeInOutQuint:function(j){if((j/=0.5)<1){return 0.5*Math.pow(j,5)}return 0.5*(Math.pow((j-2),5)+2)},easeInSine:function(j){return -Math.cos(j*(Math.PI/2))+1},easeOutSine:function(j){return Math.sin(j*(Math.PI/2))},easeInOutSine:function(j){return(-0.5*(Math.cos(Math.PI*j)-1))},easeInExpo:function(j){return(j===0)?0:Math.pow(2,10*(j-1))},easeOutExpo:function(j){return(j===1)?1:-Math.pow(2,-10*j)+1},easeInOutExpo:function(j){if(j===0){return 0}if(j===1){return 1}if((j/=0.5)<1){return 0.5*Math.pow(2,10*(j-1))}return 0.5*(-Math.pow(2,-10*--j)+2)},easeInCirc:function(j){return -(Math.sqrt(1-(j*j))-1)},easeOutCirc:function(j){return Math.sqrt(1-Math.pow((j-1),2))},easeInOutCirc:function(j){if((j/=0.5)<1){return -0.5*(Math.sqrt(1-j*j)-1)}return 0.5*(Math.sqrt(1-(j-=2)*j)+1)},easeOutBounce:function(j){if((j)<(1/2.75)){return(7.5625*j*j)}else{if(j<(2/2.75)){return(7.5625*(j-=(1.5/2.75))*j+0.75)}else{if(j<(2.5/2.75)){return(7.5625*(j-=(2.25/2.75))*j+0.9375)}else{return(7.5625*(j-=(2.625/2.75))*j+0.984375)}}}},easeInBack:function(k){var j=1.70158;return(k)*k*((j+1)*k-j)},easeOutBack:function(k){var j=1.70158;return(k=k-1)*k*((j+1)*k+j)+1},easeInOutBack:function(k){var j=1.70158;if((k/=0.5)<1){return 0.5*(k*k*(((j*=(1.525))+1)*k-j))}return 0.5*((k-=2)*k*(((j*=(1.525))+1)*k+j)+2)},elastic:function(j){return -1*Math.pow(4,-8*j)*Math.sin((j*6-1)*(2*Math.PI)/2)+1},swingFromTo:function(k){var j=1.70158;return((k/=0.5)<1)?0.5*(k*k*(((j*=(1.525))+1)*k-j)):0.5*((k-=2)*k*(((j*=(1.525))+1)*k+j)+2)},swingFrom:function(k){var j=1.70158;return k*k*((j+1)*k-j)},swingTo:function(k){var j=1.70158;return(k-=1)*k*((j+1)*k+j)+1},bounce:function(j){if(j<(1/2.75)){return(7.5625*j*j)}else{if(j<(2/2.75)){return(7.5625*(j-=(1.5/2.75))*j+0.75)}else{if(j<(2.5/2.75)){return(7.5625*(j-=(2.25/2.75))*j+0.9375)}else{return(7.5625*(j-=(2.625/2.75))*j+0.984375)}}}},bouncePast:function(j){if(j<(1/2.75)){return(7.5625*j*j)}else{if(j<(2/2.75)){return 2-(7.5625*(j-=(1.5/2.75))*j+0.75)}else{if(j<(2.5/2.75)){return 2-(7.5625*(j-=(2.25/2.75))*j+0.9375)}else{return 2-(7.5625*(j-=(2.625/2.75))*j+0.984375)}}}},easeFromTo:function(j){if((j/=0.5)<1){return 0.5*Math.pow(j,4)}return -0.5*((j-=2)*Math.pow(j,3)-2)},easeFrom:function(j){return Math.pow(j,4)},easeTo:function(j){return Math.pow(j,0.25)}})}());(function(){function j(A,n,m,w,v,l){var z=0,E=0,p=0,x=0,C=0,o=0;function u(F){return((z*F+E)*F+p)*F}function s(F){return((x*F+C)*F+o)*F}function D(F){return(3*z*F+2*E)*F+p}function y(t){return 1/(200*t)}function r(t,F){return s(q(t,F))}function B(t){if(t>=0){return t}else{return 0-t}}function q(t,L){var K,J,H,F,I,G;for(H=t,G=0;G<8;G++){F=u(H)-t;if(B(F)<L){return H}I=D(H);if(B(I)<0.000001){break}H=H-F/I}K=0;J=1;H=t;if(H<K){return K}if(H>J){return J}while(K<J){F=u(H);if(B(F-t)<L){return H}if(t>F){K=H}else{J=H}H=(J-K)*0.5+K}return H}p=3*n;E=3*(w-n)-p;z=1-p-E;o=3*m;C=3*(v-m)-o;x=1-o-C;return r(A,y(l))}function k(m,o,l,n){return function(p){return j(p,m,o,l,n,1)}}h.setBezierFunction=function(n,m,q,l,o){var p=k(m,q,l,o);p.displayName=n;p.x1=m;p.y1=q;p.x2=l;p.y2=o;return h.prototype.formula[n]=p};h.unsetBezierFunction=function(l){delete h.prototype.formula[l]}})();(function(){function k(q,o,n,l,p,m){return h.tweenProps(l,o,q,n,1,m,p)}var j=new h();j._filterArgs=[];h.interpolate=function(s,r,o,q,m){var p=h.shallowCopy({},s);var n=m||0;var l=h.composeEasingObject(s,q||"linear");j.set({});var u=j._filterArgs;u.length=0;u[0]=p;u[1]=s;u[2]=r;u[3]=l;h.applyFilter(j,"tweenCreated");h.applyFilter(j,"beforeTween");var t=k(s,p,r,o,l,n);h.applyFilter(j,"afterTween");return t}}());(function(r){var k;var M=/(\d|\-|\.)/;var F=/([^\-0-9\.]+)/g;var n=/[0-9.\-]+/g;var I=new RegExp("rgb\\("+n.source+(/,\s*/.source)+n.source+(/,\s*/.source)+n.source+"\\)","g");var s=/^.*\(/;var o=/#([0-9]|[a-f]){3,6}/gi;var t="VAL";function J(P,R){var O=[];var N=P.length;var Q;for(Q=0;Q<N;Q++){O.push("_"+R+"_"+Q)}return O}function B(N){var O=N.match(F);if(!O){O=["",""]}else{if(O.length===1||N.charAt(0).match(M)){O.unshift("")}}return O.join(t)}function E(N){r.each(N,function(P){var O=N[P];
15if(typeof O==="string"&&O.match(o)){N[P]=l(O)}})}function l(N){return L(o,N,G)}function G(N){var O=w(N);return"rgb("+O[0]+","+O[1]+","+O[2]+")"}var u=[];function w(N){N=N.replace(/#/,"");if(N.length===3){N=N.split("");N=N[0]+N[0]+N[1]+N[1]+N[2]+N[2]}u[0]=y(N.substr(0,2));u[1]=y(N.substr(2,2));u[2]=y(N.substr(4,2));return u}function y(N){return parseInt(N,16)}function L(S,R,Q){var U=R.match(S);var O=R.replace(S,t);if(U){var T=U.length;var N;for(var P=0;P<T;P++){N=U.shift();O=O.replace(t,Q(N))}}return O}function D(N){return L(I,N,q)}function q(R){var O=R.match(n);var N=O.length;var Q=R.match(s)[0];for(var P=0;P<N;P++){Q+=parseInt(O[P],10)+","}Q=Q.slice(0,-1)+")";return Q}function j(N){var O={};r.each(N,function(R){var Q=N[R];if(typeof Q==="string"){var P=H(Q);O[R]={formatString:B(Q),chunkNames:J(P,R)}}});return O}function C(O,N){r.each(N,function(T){var S=O[T];var Q=H(S);var P=Q.length;for(var R=0;R<P;R++){O[N[T].chunkNames[R]]=+Q[R]}delete O[T]})}function m(O,N){r.each(N,function(S){var R=O[S];var Q=v(O,N[S].chunkNames);var P=K(Q,N[S].chunkNames);R=z(N[S].formatString,P);O[S]=D(R)})}function v(Q,S){var N={};var R,P=S.length;for(var O=0;O<P;O++){R=S[O];N[R]=Q[R];delete Q[R]}return N}var x=[];function K(P,Q){x.length=0;var O=Q.length;for(var N=0;N<O;N++){x.push(P[Q[N]])}return x}function z(N,P){var R=N;var O=P.length;for(var Q=0;Q<O;Q++){R=R.replace(t,+P[Q].toFixed(4))}return R}function H(N){return N.match(n)}function p(O,N){r.each(N,function(W){var T=N[W];var V=T.chunkNames;var R=V.length;var U=O[W];var P;if(typeof U==="string"){var S=U.split(" ");var Q=S[S.length-1];for(P=0;P<R;P++){O[V[P]]=S[P]||Q}}else{for(P=0;P<R;P++){O[V[P]]=U}}delete O[W]})}function A(O,N){r.each(N,function(W){var U=N[W];var V=U.chunkNames;var S=V.length;var Q=O[V[0]];var T=typeof Q;if(T==="string"){var P="";for(var R=0;R<S;R++){P+=" "+O[V[R]];delete O[V[R]]}O[W]=P.substr(1)}else{O[W]=Q}})}r.prototype.filter.token={tweenCreated:function(O,P,N,Q){E(O);E(P);E(N);this._tokenData=j(O)},beforeTween:function(O,P,N,Q){p(Q,this._tokenData);C(O,this._tokenData);C(P,this._tokenData);C(N,this._tokenData)},afterTween:function(O,P,N,Q){m(O,this._tokenData);m(P,this._tokenData);m(N,this._tokenData);A(Q,this._tokenData)}}}(h))}).call(null)},{}],2:[function(g,i,f){var k=g("./shape");var e=g("./utils");var j=function j(m,n){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}";this.containerAspectRatio=1;k.apply(this,arguments)};j.prototype=new k();j.prototype.constructor=j;j.prototype._pathString=function l(o){var m=o.strokeWidth;if(o.trailWidth&&o.trailWidth>o.strokeWidth){m=o.trailWidth}var n=50-m/2;return e.render(this._pathTemplate,{radius:n,"2radius":n*2})};j.prototype._trailString=function h(m){return this._pathString(m)};i.exports=j},{"./shape":7,"./utils":9}],3:[function(f,e,j){var i=f("./shape");var k=f("./utils");var h=function h(n,o){this._pathTemplate="M 0,{center} L 100,{center}";i.apply(this,arguments)};h.prototype=new i();h.prototype.constructor=h;h.prototype._initializeSvg=function l(n,o){n.setAttribute("viewBox","0 0 100 "+o.strokeWidth);n.setAttribute("preserveAspectRatio","none")};h.prototype._pathString=function g(n){return k.render(this._pathTemplate,{center:n.strokeWidth/2})};h.prototype._trailString=function m(n){return this._pathString(n)};e.exports=h},{"./shape":7,"./utils":9}],4:[function(f,g,e){g.exports={Line:f("./line"),Circle:f("./circle"),SemiCircle:f("./semicircle"),Square:f("./square"),Path:f("./path"),Shape:f("./shape"),utils:f("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./square":8,"./utils":9}],5:[function(l,g,u){var k=l("shifty");var s=l("./utils");var i={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"};var r=function r(z,y){if(!(this instanceof r)){throw new Error("Constructor was called without new keyword")}y=s.extend({duration:800,easing:"linear",from:{},to:{},step:function(){}},y);var w;if(s.isString(z)){w=document.querySelector(z)}else{w=z}this.path=w;this._opts=y;this._tweenable=null;var x=this.path.getTotalLength();this.path.style.strokeDasharray=x+" "+x;this.set(0)};r.prototype.value=function o(){var y=this._getComputedDashOffset();var x=this.path.getTotalLength();var w=1-y/x;return parseFloat(w.toFixed(6),10)};r.prototype.set=function m(y){this.stop();this.path.style.strokeDashoffset=this._progressToOffset(y);var z=this._opts.step;if(s.isFunction(z)){var A=this._easing(this._opts.easing);var x=this._calculateTo(y,A);var w=this._opts.shape||this;z(x,w,this._opts.attachment)}};r.prototype.stop=function p(){this._stopTween();this.path.style.strokeDashoffset=this._getComputedDashOffset()};r.prototype.animate=function j(x,w,y){w=w||{};if(s.isFunction(w)){y=w;w={}}var B=s.extend({},w);var E=s.extend({},this._opts);w=s.extend(E,w);var A=this._easing(w.easing);var D=this._resolveFromAndTo(x,A,B);this.stop();this.path.getBoundingClientRect();var z=this._getComputedDashOffset();var C=this._progressToOffset(x);var F=this;this._tweenable=new k();this._tweenable.tween({from:s.extend({offset:z},D.from),to:s.extend({offset:C},D.to),duration:w.duration,easing:A,step:function(H){F.path.style.strokeDashoffset=H.offset;var G=w.shape||F;w.step(H,G,w.attachment)},finish:function(G){if(s.isFunction(y)){y()}}})};r.prototype._getComputedDashOffset=function e(){var w=window.getComputedStyle(this.path,null);return parseFloat(w.getPropertyValue("stroke-dashoffset"),10)};r.prototype._progressToOffset=function q(w){var x=this.path.getTotalLength();return x-w*x};r.prototype._resolveFromAndTo=function v(w,y,x){if(x.from&&x.to){return{from:x.from,to:x.to}}return{from:this._calculateFrom(y),to:this._calculateTo(w,y)}};r.prototype._calculateFrom=function n(w){return k.interpolate(this._opts.from,this._opts.to,this.value(),w)};r.prototype._calculateTo=function t(w,x){return k.interpolate(this._opts.from,this._opts.to,w,x)};r.prototype._stopTween=function h(){if(this._tweenable!==null){this._tweenable.stop();this._tweenable=null}};r.prototype._easing=function f(w){if(i.hasOwnProperty(w)){return i[w]}return w};g.exports=r},{"./utils":9,shifty:1}],6:[function(g,f,i){var h=g("./shape");var e=g("./circle");var l=g("./utils");var k=function k(n,o){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius}
15 0 1 1 {2radius},0";this.containerAspectRatio=2;h.apply(this,arguments)};k.prototype=new h();k.prototype.constructor=k;k.prototype._initializeSvg=function m(n,o){n.setAttribute("viewBox","0 0 100 50")};k.prototype._initializeTextContainer=function j(o,n,p){if(o.text.style){p.style.top="auto";p.style.bottom="0";if(o.text.alignToBottom){l.setStyle(p,"transform","translate(-50%, 0)")}else{l.setStyle(p,"transform","translate(-50%, 50%)")}}};k.prototype._pathString=e.prototype._pathString;k.prototype._trailString=e.prototype._trailString;f.exports=k},{"./circle":2,"./shape":7,"./utils":9}],7:[function(k,e,z){var s=k("./path");var t=k("./utils");var l="Object is destroyed";var i=function i(B,E){if(!(this instanceof i)){throw new Error("Constructor was called without new keyword")}if(arguments.length===0){return}this._opts=t.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:true,value:"translate(-50%, -50%)"}},autoStyleContainer:true,alignToBottom:true,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:false},E,true);if(t.isObject(E)&&E.svgStyle!==undefined){this._opts.svgStyle=E.svgStyle}if(t.isObject(E)&&t.isObject(E.text)&&E.text.style!==undefined){this._opts.text.style=E.text.style}var A=this._createSvgView(this._opts);var D;if(t.isString(B)){D=document.querySelector(B)}else{D=B}if(!D){throw new Error("Container does not exist: "+B)}this._container=D;this._container.appendChild(A.svg);if(this._opts.warnings){this._warnContainerAspectRatio(this._container)}if(this._opts.svgStyle){t.setStyles(A.svg,this._opts.svgStyle)}this.svg=A.svg;this.path=A.path;this.trail=A.trail;this.text=null;var C=t.extend({attachment:undefined,shape:this},this._opts);this._progressPath=new s(A.path,C);if(t.isObject(this._opts.text)&&this._opts.text.value!==null){this.setText(this._opts.text.value)}};i.prototype.animate=function g(B,C,A){if(this._progressPath===null){throw new Error(l)}this._progressPath.animate(B,C,A)};i.prototype.stop=function p(){if(this._progressPath===null){throw new Error(l)}if(this._progressPath===undefined){return}this._progressPath.stop()};i.prototype.destroy=function x(){if(this._progressPath===null){throw new Error(l)}this.stop();this.svg.parentNode.removeChild(this.svg);this.svg=null;this.path=null;this.trail=null;this._progressPath=null;if(this.text!==null){this.text.parentNode.removeChild(this.text);this.text=null}};i.prototype.set=function n(A){if(this._progressPath===null){throw new Error(l)}this._progressPath.set(A)};i.prototype.value=function o(){if(this._progressPath===null){throw new Error(l)}if(this._progressPath===undefined){return 0}return this._progressPath.value()};i.prototype.setText=function r(A){if(this._progressPath===null){throw new Error(l)}if(this.text===null){this.text=this._createTextContainer(this._opts,this._container);this._container.appendChild(this.text)}if(t.isObject(A)){t.removeChildren(this.text);this.text.appendChild(A)}else{this.text.innerHTML=A}};i.prototype._createSvgView=function f(B){var A=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(A,B);var D=null;if(B.trailColor||B.trailWidth){D=this._createTrail(B);A.appendChild(D)}var C=this._createPath(B);A.appendChild(C);return{svg:A,path:C,trail:D}};i.prototype._initializeSvg=function u(A,B){A.setAttribute("viewBox","0 0 100 100")};i.prototype._createPath=function h(B){var A=this._pathString(B);return this._createPathElement(A,B)};i.prototype._createTrail=function v(C){var A=this._trailString(C);var B=t.extend({},C);if(!B.trailColor){B.trailColor="#eee"}if(!B.trailWidth){B.trailWidth=B.strokeWidth}B.color=B.trailColor;B.strokeWidth=B.trailWidth;B.fill=null;return this._createPathElement(A,B)};i.prototype._createPathElement=function j(A,B){var C=document.createElementNS("http://www.w3.org/2000/svg","path");C.setAttribute("d",A);C.setAttribute("stroke",B.color);C.setAttribute("stroke-width",B.strokeWidth);if(B.fill){C.setAttribute("fill",B.fill)}else{C.setAttribute("fill-opacity","0")}return C};i.prototype._createTextContainer=function y(B,A){var C=document.createElement("div");C.className=B.text.className;var D=B.text.style;if(D){if(B.text.autoStyleContainer){A.style.position="relative"}t.setStyles(C,D);if(!D.color){C.style.color=B.color}}this._initializeTextContainer(B,A,C);return C};i.prototype._initializeTextContainer=function(C,A,B){};i.prototype._pathString=function m(A){throw new Error("Override this function for each progress bar")};i.prototype._trailString=function q(A){throw new Error("Override this function for each progress bar")};i.prototype._warnContainerAspectRatio=function w(B){if(!this.containerAspectRatio){return}var C=window.getComputedStyle(B,null);var D=parseFloat(C.getPropertyValue("width"),10);var A=parseFloat(C.getPropertyValue("height"),10);if(!t.floatEquals(this.containerAspectRatio,D/A)){console.warn("Incorrect aspect ratio of container","#"+B.id,"detected:",C.getPropertyValue("width")+"(width)","/",C.getPropertyValue("height")+"(height)","=",D/A);console.warn("Aspect ratio of should be",this.containerAspectRatio)}};e.exports=i},{"./path":5,"./utils":9}],8:[function(g,i,f){var k=g("./shape");var e=g("./utils");var j=function j(m,n){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}";this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}";k.apply(this,arguments)};j.prototype=new k();j.prototype.constructor=j;j.prototype._pathString=function l(n){var m=100-n.strokeWidth/2;return e.render(this._pathTemplate,{width:m,strokeWidth:n.strokeWidth,halfOfStrokeWidth:n.strokeWidth/2})};j.prototype._trailString=function h(n){var m=100-n.strokeWidth/2;return e.render(this._trailTemplate,{width:m,strokeWidth:n.strokeWidth,halfOfStrokeWidth:n.strokeWidth/2,startMargin:n.strokeWidth/2-n.trailWidth/2})};i.exports=j},{"./shape":7,"./utils":9}],9:[function(i,h,k){var p="Webkit Moz O ms".split(" ");var l=0.001;function r(v,z,x){v=v||{};z=z||{};x=x||false;for(var y in z){if(z.hasOwnProperty(y)){var w=v[y];var A=z[y];if(x&&u(w)&&u(A)){v[y]=r(w,A,x)}else{v[y]=A}}}return v}function f(y,z){var B=y;for(var x in z){if(z.hasOwnProperty(x)){var A=z[x];var w="\\{"+x+"\\}";var v=new RegExp(w,"g");B=B.replace(v,A)}}return B}function o(x,y,A){var w=x.style;for(var v=0;v<p.length;++v){var z=p[v];w[z+n(y)]=A}w[y]=A}function s(v,w){t(w,function(x,y){if(x===null||x===undefined){return}if(u(x)&&x.prefix===true){o(v,y,x.value)}else{v.style[y]=x}})}function n(v){return v.charAt(0).toUpperCase()+v.slice(1)}function e(v){return typeof v==="string"||v instanceof String}function g(v){return typeof v==="function"}function m(v){return Object.prototype.toString.call(v)==="[object Array]"}function u(w){if(m(w)){return false}var v=typeof w;return v==="object"&&!!w}function t(v,y){for(var w in v){if(v.hasOwnProperty(w)){var x=v[w];y(x,w)}}}function j(w,v){return Math.abs(w-v)<l}function q(v){while(v.firstChild){v.removeChild(v.firstChild)}}h.exports={extend:r,render:f,setStyle:o,setStyles:s,capitalize:n,isString:e,isFunction:g,isObject:u,forEachObject:t,floatEquals:j,removeChildren:q}},{}]},{},[4])(4)
vendor: 3 bytes, line 15
15});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.