diff --git a/bower.json b/bower.json index b5decba..a427c20 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "progressbar.js", "main": "dist/progressbar.js", - "version": "0.6.0-dev", + "version": "0.6.1", "homepage": "https://github.com/kimmobrunfeldt/progressbar.js", "authors": [ "Kimmo Brunfeldt " diff --git a/dist/progressbar.js b/dist/progressbar.js index f24d48c..34a0fad 100644 --- a/dist/progressbar.js +++ b/dist/progressbar.js @@ -1,4 +1,4 @@ -// ProgressBar.js 0.6.0 +// ProgressBar.js 0.6.1 // https://kimmobrunfeldt.github.io/progressbar.js // License: MIT @@ -1381,133 +1381,50 @@ function token () { }(this)); },{}],2:[function(require,module,exports){ -var Tweenable = require('shifty'); - -var EASING_ALIASES = { - easeIn: 'easeInCubic', - easeOut: 'easeOutCubic', - easeInOut: 'easeInOutCubic' -}; - -var DESTROYED_ERROR = 'Object is destroyed'; - -// Base object for different progress bar shapes -var Progress = function(container, opts) { - // Prevent calling constructor without parameters so inheritance - // works correctly - if (arguments.length === 0) return; - - var svgView = this._createSvgView(opts); - - var element; - if (isString(container)) { - element = document.querySelector(container); - } else { - element = container; - } - element.appendChild(svgView.svg); +// Circle shaped progress bar - var newOpts = extend({ - attachment: this - }, opts); - this._progressPath = new Path(svgView.path, newOpts); +var Progress = require('./progress'); +var utils = require('./utils'); - // Expose public attributes - this.svg = svgView.svg; - this.path = svgView.path; - this.trail = svgView.trail; -}; -Progress.prototype.animate = function animate(progress, opts, cb) { - if (this._progressPath === null) throw new Error(DESTROYED_ERROR); - this._progressPath.animate(progress, opts, cb); -}; - -Progress.prototype.stop = function stop() { - if (this._progressPath === null) throw new Error(DESTROYED_ERROR); - this._progressPath.stop(); -}; - -Progress.prototype.destroy = function destroy() { - if (this._progressPath === null) throw new Error(DESTROYED_ERROR); - - this.stop(); - this.svg.parentNode.removeChild(this.svg); - this.svg = null; - this.path = null; - this.trail = null; - this._progressPath = null; -}; - -Progress.prototype.set = function set(progress) { - if (this._progressPath === null) throw new Error(DESTROYED_ERROR); - this._progressPath.set(progress); -}; +var Circle = function Circle(container, options) { + // Use two arcs to form a circle + // See this answer http://stackoverflow.com/a/10477334/1446092 + this._pathTemplate = + 'M 50,50 m 0,-{radius}' + + ' a {radius},{radius} 0 1 1 0,{2radius}' + + ' a {radius},{radius} 0 1 1 0,-{2radius}'; -Progress.prototype.value = function value() { - if (this._progressPath === null) throw new Error(DESTROYED_ERROR); - return this._progressPath.value(); + Progress.apply(this, arguments); }; -Progress.prototype._createSvgView = function _createSvgView(opts) { - opts = extend({ - color: "#555", - strokeWidth: 1.0, - trailColor: null, - fill: null - }, opts); - - var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - this._initializeSvg(svg, opts); - - var trailPath = null; - if (opts.trailColor) { - var trailOpts = extend({}, opts); - trailOpts.color = opts.trailColor; - - // When trail path is set, fill must be set for it instead of the - // actual path to prevent trail stroke from clipping - opts.fill = null; - trailPath = this._createPath(trailOpts); - svg.appendChild(trailPath); - } +Circle.prototype = new Progress(); +Circle.prototype.constructor = Circle; - var path = this._createPath(opts); - svg.appendChild(path); +Circle.prototype._pathString = function _pathString(opts) { + var r = 50 - opts.strokeWidth / 2; - return { - svg: svg, - path: path, - trail: trailPath - }; + return utils.render(this._pathTemplate, { + radius: r, + '2radius': r * 2 + }); }; -Progress.prototype._initializeSvg = function _initializeSvg(svg, opts) { - svg.setAttribute("viewBox", "0 0 100 100"); +Circle.prototype._trailString = function _trailString(opts) { + return this._pathString(opts); }; -Progress.prototype._createPath = function _createPath(opts) { - var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); - path.setAttribute("d", this._pathString(opts)); - path.setAttribute("stroke", opts.color); - path.setAttribute("stroke-width", opts.strokeWidth); +module.exports = Circle; - if (opts.fill) { - path.setAttribute("fill", opts.fill); - } else { - path.setAttribute("fill-opacity", "0"); - } +},{"./progress":6,"./utils":8}],3:[function(require,module,exports){ +// Line shaped progress bar - return path; -}; - -Progress.prototype._pathString = function _pathString(opts) { - throw new Error("Override this function for each progress bar"); -}; +var Progress = require('./progress'); +var utils = require('./utils'); -// Progress bar shapes -var Line = function(container, options) { +var Line = function Line(container, options) { + this._pathTemplate = "M 0,{center} L 100,{center}"; Progress.apply(this, arguments); }; @@ -1520,54 +1437,55 @@ Line.prototype._initializeSvg = function _initializeSvg(svg, opts) { }; Line.prototype._pathString = function _pathString(opts) { - var pathString = "M 0,{c} L 100,{c}"; - var center = opts.strokeWidth / 2; - pathString = pathString.replace(/\{c\}/g, center); - return pathString; + return utils.render(this._pathTemplate, { + center: opts.strokeWidth / 2 + }); }; -var Circle = function(container, options) { - Progress.apply(this, arguments); +Line.prototype._trailString = function _trailString(opts) { + return this._pathString(opts); }; -Circle.prototype = new Progress(); -Circle.prototype.constructor = Circle; +module.exports = Line; -Circle.prototype._pathString = function _pathString(opts) { - // Use two arcs to form a circle - // See this answer http://stackoverflow.com/a/10477334/1446092 - var pathString = "M 50,50 m 0,-{r} a {r},{r} 0 1 1 0,{r*2} a {r},{r} 0 1 1 0,-{r*2}"; - var r = 50 - opts.strokeWidth / 2; - pathString = pathString.replace(/\{r\}/g, r); - pathString = pathString.replace(/\{r\*2\}/g, r * 2); - return pathString; -}; +},{"./progress":6,"./utils":8}],4:[function(require,module,exports){ +// Different shaped progress bars +var Line = require('./line'); +var Circle = require('./circle'); +var Square = require('./square'); -var Square = function(container, options) { - Progress.apply(this, arguments); -}; +// Lower level API to use any SVG path +var Path = require('./path'); -Square.prototype = new Progress(); -Square.prototype.constructor = Square; -Square.prototype._pathString = function _pathString(opts) { - var pathString = "M 0,{s/2} L {w},{s/2} L {w},{w} L {s/2},{w} L {s/2},{s}"; - var w = 100 - opts.strokeWidth / 2; - pathString = pathString.replace(/\{w\}/g, w); - pathString = pathString.replace(/\{s\}/g, opts.strokeWidth); - pathString = pathString.replace(/\{s\/2\}/g, opts.strokeWidth / 2); - return pathString; +module.exports = { + Line: Line, + Circle: Circle, + Square: Square, + Path: Path }; +},{"./circle":2,"./line":3,"./path":5,"./square":7}],5:[function(require,module,exports){ // Lower level API to animate any kind of svg path -var Path = function(path, opts) { - opts = extend({ +var Tweenable = require('shifty'); +var utils = require('./utils'); + +var EASING_ALIASES = { + easeIn: 'easeInCubic', + easeOut: 'easeOutCubic', + easeInOut: 'easeInOutCubic' +}; + + +var Path = function Path(path, opts) { + // Default parameters for animation + opts = utils.extend({ duration: 800, easing: "linear", from: {}, to: {}, - step: noop + step: function() {} }, opts); this._path = path; @@ -1611,14 +1529,21 @@ Path.prototype.stop = function stop() { // Method introduced here: // http://jakearchibald.com/2013/animated-line-drawing-svg/ Path.prototype.animate = function animate(progress, opts, cb) { - if (isFunction(opts)) { + opts = opts || {}; + + if (utils.isFunction(opts)) { cb = opts; opts = {}; } + var passedOpts = opts; + // Copy default opts to new object so defaults are not modified - var defaultOpts = extend({}, this._opts); - opts = extend(defaultOpts, opts); + var defaultOpts = utils.extend({}, this._opts); + opts = utils.extend(defaultOpts, opts); + + var shiftyEasing = this._easing(opts.easing); + var values = this._resolveFromAndTo(progress, shiftyEasing, passedOpts); this.stop(); @@ -1638,10 +1563,10 @@ Path.prototype.animate = function animate(progress, opts, cb) { this._tweenable = new Tweenable(); this._tweenable.tween({ - from: extend({ offset: offset }, opts.from), - to: extend({ offset: newOffset }, opts.to), + from: utils.extend({ offset: offset }, values.from), + to: utils.extend({ offset: newOffset }, values.to), duration: opts.duration, - easing: this._easing(opts.easing), + easing: shiftyEasing, step: function(state) { self._path.style.strokeDashoffset = state.offset; opts.step(state, opts.attachment); @@ -1651,13 +1576,42 @@ Path.prototype.animate = function animate(progress, opts, cb) { self._path.style.strokeDashoffset = state.offset; opts.step(state, opts.attachment); - if (isFunction(cb)) { + if (utils.isFunction(cb)) { cb(); } } }); }; +// Resolves from and to values for animation. +Path.prototype._resolveFromAndTo = function _resolveFromAndTo(progress, easing, opts) { + if (opts.from && opts.to) { + return { + from: opts.from, + to: opts.to + }; + } + + var from = Tweenable.interpolate( + this._opts.from, + this._opts.to, + this.value(), + easing + ); + + var to = Tweenable.interpolate( + this._opts.from, + this._opts.to, + progress, + easing + ); + + return { + from: from, + to: to + }; +}; + Path.prototype._stopTween = function _stopTween() { if (this._tweenable !== null) { this._tweenable.stop(); @@ -1674,9 +1628,225 @@ Path.prototype._easing = function _easing(easing) { return easing; }; -// Utility functions +module.exports = Path; + +},{"./utils":8,"shifty":1}],6:[function(require,module,exports){ +// Base object for different progress bar shapes + +var Path = require('./path'); +var utils = require('./utils'); + +var DESTROYED_ERROR = 'Object is destroyed'; +var CONSTRUCTOR_CALL_ERROR = 'Constructor was called without new keyword'; + + +var Progress = function Progress(container, opts) { + // Throw a better error if progress bars are not initialized with `new` + // keyword + if (!(this instanceof Progress)) { + throw new Error(CONSTRUCTOR_CALL_ERROR); + } + + // Prevent calling constructor without parameters so inheritance + // works correctly. To understand, this is how Progress is inherited: + // + // Line.prototype = new Progress(); + // + // We just want to set the prototype for Line. + if (arguments.length === 0) return; + + var svgView = this._createSvgView(opts); + + var element; + if (utils.isString(container)) { + element = document.querySelector(container); + } else { + element = container; + } + element.appendChild(svgView.svg); + + var newOpts = utils.extend({ + attachment: this + }, opts); + this._progressPath = new Path(svgView.path, newOpts); + + // Expose public attributes + this.svg = svgView.svg; + this.path = svgView.path; + this.trail = svgView.trail; +}; -function noop() {} +Progress.prototype.animate = function animate(progress, opts, cb) { + if (this._progressPath === null) throw new Error(DESTROYED_ERROR); + this._progressPath.animate(progress, opts, cb); +}; + +Progress.prototype.stop = function stop() { + if (this._progressPath === null) throw new Error(DESTROYED_ERROR); + this._progressPath.stop(); +}; + +Progress.prototype.destroy = function destroy() { + if (this._progressPath === null) throw new Error(DESTROYED_ERROR); + + this.stop(); + this.svg.parentNode.removeChild(this.svg); + this.svg = null; + this.path = null; + this.trail = null; + this._progressPath = null; +}; + +Progress.prototype.set = function set(progress) { + if (this._progressPath === null) throw new Error(DESTROYED_ERROR); + this._progressPath.set(progress); +}; + +Progress.prototype.value = function value() { + if (this._progressPath === null) throw new Error(DESTROYED_ERROR); + return this._progressPath.value(); +}; + +Progress.prototype._createSvgView = function _createSvgView(opts) { + // Default parameters for progress bar creation + opts = utils.extend({ + color: "#555", + strokeWidth: 1.0, + trailColor: null, + trailWidth: null, + fill: null + }, opts); + + var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + this._initializeSvg(svg, opts); + + var trailPath = null; + // Each option listed in the if condition are "triggers" for creating + // the trail path + if (opts.trailColor || opts.trailWidth) { + trailPath = this._createTrail(opts); + svg.appendChild(trailPath); + } + + var path = this._createPath(opts); + svg.appendChild(path); + + return { + svg: svg, + path: path, + trail: trailPath + }; +}; + +Progress.prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 100"); +}; + +Progress.prototype._createPath = function _createPath(opts) { + var pathString = this._pathString(opts); + return this._createPathElement(pathString, opts); +}; + +Progress.prototype._createTrail = function _createTrail(opts) { + // Create path string with original passed options + var pathString = this._trailString(opts); + + // Prevent modifying original + var newOpts = utils.extend({}, opts); + + // Defaults for parameters which modify trail path + if (!newOpts.trailColor) newOpts.trailColor = '#eee'; + if (!newOpts.trailWidth) newOpts.trailWidth = newOpts.strokeWidth; + + newOpts.color = newOpts.trailColor; + newOpts.strokeWidth = newOpts.trailWidth; + + // When trail path is set, fill must be set for it instead of the + // actual path to prevent trail stroke from clipping + newOpts.fill = null; + + return this._createPathElement(pathString, newOpts); +}; + +Progress.prototype._createPathElement = +function _createPathElement(pathString, opts) { + var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); + path.setAttribute("d", pathString); + path.setAttribute("stroke", opts.color); + path.setAttribute("stroke-width", opts.strokeWidth); + + if (opts.fill) { + path.setAttribute("fill", opts.fill); + } else { + path.setAttribute("fill-opacity", "0"); + } + + return path; +}; + +Progress.prototype._pathString = function _pathString(opts) { + throw new Error("Override this function for each progress bar"); +}; + +Progress.prototype._trailString = function _trailString(opts) { + throw new Error("Override this function for each progress bar"); +}; + +module.exports = Progress; + +},{"./path":5,"./utils":8}],7:[function(require,module,exports){ +// Square shaped progress bar + +var Progress = require('./progress'); +var utils = require('./utils'); + + +var Square = function Square(container, options) { + 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}'; + + Progress.apply(this, arguments); +}; + +Square.prototype = new Progress(); +Square.prototype.constructor = Square; + +Square.prototype._pathString = function _pathString(opts) { + var w = 100 - opts.strokeWidth / 2; + + return utils.render(this._pathTemplate, { + width: w, + strokeWidth: opts.strokeWidth, + halfOfStrokeWidth: opts.strokeWidth / 2 + }); +}; + +Square.prototype._trailString = function _trailString(opts) { + var w = 100 - opts.strokeWidth / 2; + + return utils.render(this._trailTemplate, { + width: w, + strokeWidth: opts.strokeWidth, + halfOfStrokeWidth: opts.strokeWidth / 2, + startMargin: (opts.strokeWidth / 2) - (opts.trailWidth / 2) + }); +}; + +module.exports = Square; + +},{"./progress":6,"./utils":8}],8:[function(require,module,exports){ +// Utility functions // Copy all attributes from source object to destination object. // destination object is mutated. @@ -1693,6 +1863,27 @@ function extend(destination, source) { return destination; } +// Renders templates with given variables. Variables must be surrounded with +// braces without any spaces, e.g. {variable} +// All instances of variable placeholders will be replaced with given content +// Example: +// render('Hello, {message}!', {message: 'world'}) +function render(template, vars) { + var rendered = template; + + for (var key in vars) { + if (vars.hasOwnProperty(key)) { + var val = vars[key]; + var regExpString = '\\{' + key + '\\}'; + var regExp = new RegExp(regExpString, "g"); + + rendered = rendered.replace(regExp, val); + } + } + + return rendered; +} + function isString(obj) { return typeof obj === 'string' || obj instanceof String; } @@ -1702,11 +1893,11 @@ function isFunction(obj) { } module.exports = { - Line: Line, - Circle: Circle, - Square: Square, - Path: Path + extend: extend, + render: render, + isString: isString, + isFunction: isFunction }; -},{"shifty":1}]},{},[2])(2) +},{}]},{},[4])(4) }); \ No newline at end of file diff --git a/dist/progressbar.min.js b/dist/progressbar.min.js index 395549d..5b9f6d7 100644 --- a/dist/progressbar.min.js +++ b/dist/progressbar.min.js @@ -1,6 +1,6 @@ -// ProgressBar.js 0.6.0 +// ProgressBar.js 0.6.1 // https://kimmobrunfeldt.github.io/progressbar.js // License: MIT -!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.ProgressBar=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=v,a.isPlaying()&&!x?(j(a._timeoutHandler,s),k(a,"beforeTween"),i(w,d,e,f,c,b,g),k(a,"afterTween"),h(d)):x&&(h(f),a.stop(!0))}function m(a,b){var c={};return"string"==typeof b?f(a,function(a){c[a]=b}):f(a,function(a){c[a]||(c[a]=b[a]||q)}),c}function n(a,b){this._currentState=a||{},this._configured=!1,this._scheduleFunction=p,"undefined"!=typeof b&&this.setConfig(b)}var o,p,q="linear",r=500,s=1e3/60,t=Date.now?Date.now:function(){return+new Date},u=SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:t;p="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var v,w,x;return n.prototype.tween=function(a){return this._isTweening?this:(void 0===a&&this._configured||this.setConfig(a),this._start(this.get()),this.resume())},n.prototype.setConfig=function(a){a=a||{},this._configured=!0,this._pausedAtTime=null,this._start=a.start||e,this._step=a.step||e,this._finish=a.finish||e,this._duration=a.duration||r,this._currentState=a.from||this.get(),this._originalState=this.get(),this._targetState=a.to||this.get(),this._timestamp=u();var b=this._currentState,c=this._targetState;return h(c,b),this._easing=m(b,a.easing||q),this._filterArgs=[b,this._originalState,c,this._easing],k(this,"tweenCreated"),this},n.prototype.get=function(){return g({},this._currentState)},n.prototype.set=function(a){this._currentState=a},n.prototype.pause=function(){return this._pausedAtTime=u(),this._isPaused=!0,this},n.prototype.resume=function(){this._isPaused&&(this._timestamp+=u()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var a=this;return this._timeoutHandler=function(){l(a,a._timestamp,a._duration,a._currentState,a._originalState,a._targetState,a._easing,a._step,a._scheduleFunction)},this._timeoutHandler(),this},n.prototype.stop=function(a){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=e,a&&(g(this._currentState,this._targetState),k(this,"afterTweenEnd"),this._finish.call(this,this._currentState)),this},n.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},n.prototype.setScheduleFunction=function(a){this._scheduleFunction=a},n.prototype.dispose=function(){var a;for(a in this)this.hasOwnProperty(a)&&delete this[a]},n.prototype.filter={},n.prototype.formula={linear:function(a){return a}},o=n.prototype.formula,g(n,{now:u,each:f,tweenProps:i,tweenProp:j,applyFilter:k,shallowCopy:g,defaults:h,composeEasingObject:m}),"function"==typeof SHIFTY_DEBUG_NOW&&(b.timeoutHandler=l),"object"==typeof d?c.exports=n:"function"==typeof a&&a.amd?a(function(){return n}):"undefined"==typeof b.Tweenable&&(b.Tweenable=n),n}();!function(){e.shallowCopy(e.prototype.formula,{easeInQuad:function(a){return Math.pow(a,2)},easeOutQuad:function(a){return-(Math.pow(a-1,2)-1)},easeInOutQuad:function(a){return(a/=.5)<1?.5*Math.pow(a,2):-.5*((a-=2)*a-2)},easeInCubic:function(a){return Math.pow(a,3)},easeOutCubic:function(a){return Math.pow(a-1,3)+1},easeInOutCubic:function(a){return(a/=.5)<1?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)},easeInQuart:function(a){return Math.pow(a,4)},easeOutQuart:function(a){return-(Math.pow(a-1,4)-1)},easeInOutQuart:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeInQuint:function(a){return Math.pow(a,5)},easeOutQuint:function(a){return Math.pow(a-1,5)+1},easeInOutQuint:function(a){return(a/=.5)<1?.5*Math.pow(a,5):.5*(Math.pow(a-2,5)+2)},easeInSine:function(a){return-Math.cos(a*(Math.PI/2))+1},easeOutSine:function(a){return Math.sin(a*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a)-1)},easeInExpo:function(a){return 0===a?0:Math.pow(2,10*(a-1))},easeOutExpo:function(a){return 1===a?1:-Math.pow(2,-10*a)+1},easeInOutExpo:function(a){return 0===a?0:1===a?1:(a/=.5)<1?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return-(Math.sqrt(1-a*a)-1)},easeOutCirc:function(a){return Math.sqrt(1-Math.pow(a-1,2))},easeInOutCirc:function(a){return(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeOutBounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},easeInBack:function(a){var b=1.70158;return a*a*((b+1)*a-b)},easeOutBack:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},easeInOutBack:function(a){var b=1.70158;return(a/=.5)<1?.5*a*a*(((b*=1.525)+1)*a-b):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},elastic:function(a){return-1*Math.pow(4,-8*a)*Math.sin(2*(6*a-1)*Math.PI/2)+1},swingFromTo:function(a){var b=1.70158;return(a/=.5)<1?.5*a*a*(((b*=1.525)+1)*a-b):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},swingFrom:function(a){var b=1.70158;return a*a*((b+1)*a-b)},swingTo:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},bounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bouncePast:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?2-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?2-(7.5625*(a-=2.25/2.75)*a+.9375):2-(7.5625*(a-=2.625/2.75)*a+.984375)},easeFromTo:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeFrom:function(a){return Math.pow(a,4)},easeTo:function(a){return Math.pow(a,.25)}})}(),function(){function a(a,b,c,d,e,f){function g(a){return((n*a+o)*a+p)*a}function h(a){return((q*a+r)*a+s)*a}function i(a){return(3*n*a+2*o)*a+p}function j(a){return 1/(200*a)}function k(a,b){return h(m(a,b))}function l(a){return a>=0?a:0-a}function m(a,b){var c,d,e,f,h,j;for(e=a,j=0;8>j;j++){if(f=g(e)-a,l(f)e)return c;if(e>d)return d;for(;d>c;){if(f=g(e),l(f-a)f?c=e:d=e,e=.5*(d-c)+c}return e}var n=0,o=0,p=0,q=0,r=0,s=0;return p=3*b,o=3*(d-b)-p,n=1-p-o,s=3*c,r=3*(e-c)-s,q=1-s-r,k(a,j(f))}function b(b,c,d,e){return function(f){return a(f,b,c,d,e,1)}}e.setBezierFunction=function(a,c,d,f,g){var h=b(c,d,f,g);return h.x1=c,h.y1=d,h.x2=f,h.y2=g,e.prototype.formula[a]=h},e.unsetBezierFunction=function(a){delete e.prototype.formula[a]}}(),function(){function a(a,b,c,d,f){return e.tweenProps(d,b,a,c,1,0,f)}var b=new e;b._filterArgs=[],e.interpolate=function(c,d,f,g){var h=e.shallowCopy({},c),i=e.composeEasingObject(c,g||"linear");b.set({});var j=b._filterArgs;j.length=0,j[0]=h,j[1]=c,j[2]=d,j[3]=i,e.applyFilter(b,"tweenCreated"),e.applyFilter(b,"beforeTween");var k=a(c,h,d,f,i);return e.applyFilter(b,"afterTween"),k}}(),function(a){function b(a,b){B.length=0;var c,d=a.length;for(c=0;d>c;c++)B.push("_"+b+"_"+c);return B}function c(a){var b=a.match(v);return b?(1===b.length||a[0].match(u))&&b.unshift(""):b=["",""],b.join(A)}function d(b){a.each(b,function(a){var c=b[a];"string"==typeof c&&c.match(z)&&(b[a]=e(c))})}function e(a){return i(z,a,f)}function f(a){var b=g(a);return"rgb("+b[0]+","+b[1]+","+b[2]+")"}function g(a){return a=a.replace(/#/,""),3===a.length&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),C[0]=h(a.substr(0,2)),C[1]=h(a.substr(2,2)),C[2]=h(a.substr(4,2)),C}function h(a){return parseInt(a,16)}function i(a,b,c){var d=b.match(a),e=b.replace(a,A);if(d)for(var f,g=d.length,h=0;g>h;h++)f=d.shift(),e=e.replace(A,c(f));return e}function j(a){return i(x,a,k)}function k(a){for(var b=a.match(w),c=b.length,d=a.match(y)[0],e=0;c>e;e++)d+=parseInt(b[e],10)+",";return d=d.slice(0,-1)+")"}function l(d){var e={};return a.each(d,function(a){var f=d[a];if("string"==typeof f){var g=r(f);e[a]={formatString:c(f),chunkNames:b(g,a)}}}),e}function m(b,c){a.each(c,function(a){for(var d=b[a],e=r(d),f=e.length,g=0;f>g;g++)b[c[a].chunkNames[g]]=+e[g];delete b[a]})}function n(b,c){a.each(c,function(a){var d=b[a],e=o(b,c[a].chunkNames),f=p(e,c[a].chunkNames);d=q(c[a].formatString,f),b[a]=j(d)})}function o(a,b){for(var c,d={},e=b.length,f=0;e>f;f++)c=b[f],d[c]=a[c],delete a[c];return d}function p(a,b){D.length=0;for(var c=b.length,d=0;c>d;d++)D.push(a[b[d]]);return D}function q(a,b){for(var c=a,d=b.length,e=0;d>e;e++)c=c.replace(A,+b[e].toFixed(4));return c}function r(a){return a.match(w)}function s(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g=b[a].split(" "),h=g[g.length-1],i=0;f>i;i++)b[e[i]]=g[i]||h;delete b[a]})}function t(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g="",h=0;f>h;h++)g+=" "+b[e[h]],delete b[e[h]];b[a]=g.substr(1)})}var u=/(\d|\-|\.)/,v=/([^\-0-9\.]+)/g,w=/[0-9.\-]+/g,x=new RegExp("rgb\\("+w.source+/,\s*/.source+w.source+/,\s*/.source+w.source+"\\)","g"),y=/^.*\(/,z=/#([0-9]|[a-f]){3,6}/gi,A="VAL",B=[],C=[],D=[];a.prototype.filter.token={tweenCreated:function(a,b,c){d(a),d(b),d(c),this._tokenData=l(a)},beforeTween:function(a,b,c,d){s(d,this._tokenData),m(a,this._tokenData),m(b,this._tokenData),m(c,this._tokenData)},afterTween:function(a,b,c,d){n(a,this._tokenData),n(b,this._tokenData),n(c,this._tokenData),t(d,this._tokenData)}}}(e)}(this)},{}],2:[function(a,b){function c(){}function d(a,b){a=a||{},b=b||{};for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function e(a){return"string"==typeof a||a instanceof String}function f(a){return"function"==typeof a}var g=a("shifty"),h={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},i="Object is destroyed",j=function(a,b){if(0!==arguments.length){var c,f=this._createSvgView(b);c=e(a)?document.querySelector(a):a,c.appendChild(f.svg);var g=d({attachment:this},b);this._progressPath=new n(f.path,g),this.svg=f.svg,this.path=f.path,this.trail=f.trail}};j.prototype.animate=function(a,b,c){if(null===this._progressPath)throw new Error(i);this._progressPath.animate(a,b,c)},j.prototype.stop=function(){if(null===this._progressPath)throw new Error(i);this._progressPath.stop()},j.prototype.destroy=function(){if(null===this._progressPath)throw new Error(i);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null},j.prototype.set=function(a){if(null===this._progressPath)throw new Error(i);this._progressPath.set(a)},j.prototype.value=function(){if(null===this._progressPath)throw new Error(i);return this._progressPath.value()},j.prototype._createSvgView=function(a){a=d({color:"#555",strokeWidth:1,trailColor:null,fill:null},a);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(b,a);var c=null;if(a.trailColor){var e=d({},a);e.color=a.trailColor,a.fill=null,c=this._createPath(e),b.appendChild(c)}var f=this._createPath(a);return b.appendChild(f),{svg:b,path:f,trail:c}},j.prototype._initializeSvg=function(a){a.setAttribute("viewBox","0 0 100 100")},j.prototype._createPath=function(a){var b=document.createElementNS("http://www.w3.org/2000/svg","path");return b.setAttribute("d",this._pathString(a)),b.setAttribute("stroke",a.color),b.setAttribute("stroke-width",a.strokeWidth),a.fill?b.setAttribute("fill",a.fill):b.setAttribute("fill-opacity","0"),b},j.prototype._pathString=function(){throw new Error("Override this function for each progress bar")};var k=function(){j.apply(this,arguments)};k.prototype=new j,k.prototype.constructor=k,k.prototype._initializeSvg=function(a,b){a.setAttribute("viewBox","0 0 100 "+b.strokeWidth),a.setAttribute("preserveAspectRatio","none")},k.prototype._pathString=function(a){var b="M 0,{c} L 100,{c}",c=a.strokeWidth/2;return b=b.replace(/\{c\}/g,c)};var l=function(){j.apply(this,arguments)};l.prototype=new j,l.prototype.constructor=l,l.prototype._pathString=function(a){var b="M 50,50 m 0,-{r} a {r},{r} 0 1 1 0,{r*2} a {r},{r} 0 1 1 0,-{r*2}",c=50-a.strokeWidth/2;return b=b.replace(/\{r\}/g,c),b=b.replace(/\{r\*2\}/g,2*c)};var m=function(){j.apply(this,arguments)};m.prototype=new j,m.prototype.constructor=m,m.prototype._pathString=function(a){var b="M 0,{s/2} L {w},{s/2} L {w},{w} L {s/2},{w} L {s/2},{s}",c=100-a.strokeWidth/2;return b=b.replace(/\{w\}/g,c),b=b.replace(/\{s\}/g,a.strokeWidth),b=b.replace(/\{s\/2\}/g,a.strokeWidth/2)};var n=function(a,b){b=d({duration:800,easing:"linear",from:{},to:{},step:c},b),this._path=a,this._opts=b,this._tweenable=null;var e=this._path.getTotalLength();this._path.style.strokeDasharray=e+" "+e,this._path.style.strokeDashoffset=e};n.prototype.value=function(){var a=window.getComputedStyle(this._path,null),b=a.getPropertyValue("stroke-dashoffset");b=parseFloat(b,10);var c=this._path.getTotalLength(),d=1-b/c;return parseFloat(d.toFixed(10),10)},n.prototype.set=function(a){this.stop();var b=this._path.getTotalLength();this._path.style.strokeDashoffset=b-a*b},n.prototype.stop=function(){this._stopTween();var a=window.getComputedStyle(this._path,null),b=a.getPropertyValue("stroke-dashoffset");this._path.style.strokeDashoffset=b},n.prototype.animate=function(a,b,c){f(b)&&(c=b,b={});var e=d({},this._opts);b=d(e,b),this.stop(),this._path.getBoundingClientRect();var h=window.getComputedStyle(this._path,null),i=h.getPropertyValue("stroke-dashoffset");i=parseFloat(i,10);var j=this._path.getTotalLength(),k=j-a*j,l=this;this._tweenable=new g,this._tweenable.tween({from:d({offset:i},b.from),to:d({offset:k},b.to),duration:b.duration,easing:this._easing(b.easing),step:function(a){l._path.style.strokeDashoffset=a.offset,b.step(a,b.attachment)},finish:function(a){l._path.style.strokeDashoffset=a.offset,b.step(a,b.attachment),f(c)&&c()}})},n.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable.dispose(),this._tweenable=null)},n.prototype._easing=function(a){return h.hasOwnProperty(a)?h[a]:a},b.exports={Line:k,Circle:l,Square:m,Path:n}},{shifty:1}]},{},[2])(2)}); +!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.ProgressBar=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=v,a.isPlaying()&&!x?(j(a._timeoutHandler,s),k(a,"beforeTween"),i(w,d,e,f,c,b,g),k(a,"afterTween"),h(d)):x&&(h(f),a.stop(!0))}function m(a,b){var c={};return"string"==typeof b?f(a,function(a){c[a]=b}):f(a,function(a){c[a]||(c[a]=b[a]||q)}),c}function n(a,b){this._currentState=a||{},this._configured=!1,this._scheduleFunction=p,"undefined"!=typeof b&&this.setConfig(b)}var o,p,q="linear",r=500,s=1e3/60,t=Date.now?Date.now:function(){return+new Date},u=SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:t;p="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var v,w,x;return n.prototype.tween=function(a){return this._isTweening?this:(void 0===a&&this._configured||this.setConfig(a),this._start(this.get()),this.resume())},n.prototype.setConfig=function(a){a=a||{},this._configured=!0,this._pausedAtTime=null,this._start=a.start||e,this._step=a.step||e,this._finish=a.finish||e,this._duration=a.duration||r,this._currentState=a.from||this.get(),this._originalState=this.get(),this._targetState=a.to||this.get(),this._timestamp=u();var b=this._currentState,c=this._targetState;return h(c,b),this._easing=m(b,a.easing||q),this._filterArgs=[b,this._originalState,c,this._easing],k(this,"tweenCreated"),this},n.prototype.get=function(){return g({},this._currentState)},n.prototype.set=function(a){this._currentState=a},n.prototype.pause=function(){return this._pausedAtTime=u(),this._isPaused=!0,this},n.prototype.resume=function(){this._isPaused&&(this._timestamp+=u()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var a=this;return this._timeoutHandler=function(){l(a,a._timestamp,a._duration,a._currentState,a._originalState,a._targetState,a._easing,a._step,a._scheduleFunction)},this._timeoutHandler(),this},n.prototype.stop=function(a){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=e,a&&(g(this._currentState,this._targetState),k(this,"afterTweenEnd"),this._finish.call(this,this._currentState)),this},n.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},n.prototype.setScheduleFunction=function(a){this._scheduleFunction=a},n.prototype.dispose=function(){var a;for(a in this)this.hasOwnProperty(a)&&delete this[a]},n.prototype.filter={},n.prototype.formula={linear:function(a){return a}},o=n.prototype.formula,g(n,{now:u,each:f,tweenProps:i,tweenProp:j,applyFilter:k,shallowCopy:g,defaults:h,composeEasingObject:m}),"function"==typeof SHIFTY_DEBUG_NOW&&(b.timeoutHandler=l),"object"==typeof d?c.exports=n:"function"==typeof a&&a.amd?a(function(){return n}):"undefined"==typeof b.Tweenable&&(b.Tweenable=n),n}();!function(){e.shallowCopy(e.prototype.formula,{easeInQuad:function(a){return Math.pow(a,2)},easeOutQuad:function(a){return-(Math.pow(a-1,2)-1)},easeInOutQuad:function(a){return(a/=.5)<1?.5*Math.pow(a,2):-.5*((a-=2)*a-2)},easeInCubic:function(a){return Math.pow(a,3)},easeOutCubic:function(a){return Math.pow(a-1,3)+1},easeInOutCubic:function(a){return(a/=.5)<1?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)},easeInQuart:function(a){return Math.pow(a,4)},easeOutQuart:function(a){return-(Math.pow(a-1,4)-1)},easeInOutQuart:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeInQuint:function(a){return Math.pow(a,5)},easeOutQuint:function(a){return Math.pow(a-1,5)+1},easeInOutQuint:function(a){return(a/=.5)<1?.5*Math.pow(a,5):.5*(Math.pow(a-2,5)+2)},easeInSine:function(a){return-Math.cos(a*(Math.PI/2))+1},easeOutSine:function(a){return Math.sin(a*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a)-1)},easeInExpo:function(a){return 0===a?0:Math.pow(2,10*(a-1))},easeOutExpo:function(a){return 1===a?1:-Math.pow(2,-10*a)+1},easeInOutExpo:function(a){return 0===a?0:1===a?1:(a/=.5)<1?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return-(Math.sqrt(1-a*a)-1)},easeOutCirc:function(a){return Math.sqrt(1-Math.pow(a-1,2))},easeInOutCirc:function(a){return(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeOutBounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},easeInBack:function(a){var b=1.70158;return a*a*((b+1)*a-b)},easeOutBack:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},easeInOutBack:function(a){var b=1.70158;return(a/=.5)<1?.5*a*a*(((b*=1.525)+1)*a-b):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},elastic:function(a){return-1*Math.pow(4,-8*a)*Math.sin(2*(6*a-1)*Math.PI/2)+1},swingFromTo:function(a){var b=1.70158;return(a/=.5)<1?.5*a*a*(((b*=1.525)+1)*a-b):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},swingFrom:function(a){var b=1.70158;return a*a*((b+1)*a-b)},swingTo:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},bounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bouncePast:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?2-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?2-(7.5625*(a-=2.25/2.75)*a+.9375):2-(7.5625*(a-=2.625/2.75)*a+.984375)},easeFromTo:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeFrom:function(a){return Math.pow(a,4)},easeTo:function(a){return Math.pow(a,.25)}})}(),function(){function a(a,b,c,d,e,f){function g(a){return((n*a+o)*a+p)*a}function h(a){return((q*a+r)*a+s)*a}function i(a){return(3*n*a+2*o)*a+p}function j(a){return 1/(200*a)}function k(a,b){return h(m(a,b))}function l(a){return a>=0?a:0-a}function m(a,b){var c,d,e,f,h,j;for(e=a,j=0;8>j;j++){if(f=g(e)-a,l(f)e)return c;if(e>d)return d;for(;d>c;){if(f=g(e),l(f-a)f?c=e:d=e,e=.5*(d-c)+c}return e}var n=0,o=0,p=0,q=0,r=0,s=0;return p=3*b,o=3*(d-b)-p,n=1-p-o,s=3*c,r=3*(e-c)-s,q=1-s-r,k(a,j(f))}function b(b,c,d,e){return function(f){return a(f,b,c,d,e,1)}}e.setBezierFunction=function(a,c,d,f,g){var h=b(c,d,f,g);return h.x1=c,h.y1=d,h.x2=f,h.y2=g,e.prototype.formula[a]=h},e.unsetBezierFunction=function(a){delete e.prototype.formula[a]}}(),function(){function a(a,b,c,d,f){return e.tweenProps(d,b,a,c,1,0,f)}var b=new e;b._filterArgs=[],e.interpolate=function(c,d,f,g){var h=e.shallowCopy({},c),i=e.composeEasingObject(c,g||"linear");b.set({});var j=b._filterArgs;j.length=0,j[0]=h,j[1]=c,j[2]=d,j[3]=i,e.applyFilter(b,"tweenCreated"),e.applyFilter(b,"beforeTween");var k=a(c,h,d,f,i);return e.applyFilter(b,"afterTween"),k}}(),function(a){function b(a,b){B.length=0;var c,d=a.length;for(c=0;d>c;c++)B.push("_"+b+"_"+c);return B}function c(a){var b=a.match(v);return b?(1===b.length||a[0].match(u))&&b.unshift(""):b=["",""],b.join(A)}function d(b){a.each(b,function(a){var c=b[a];"string"==typeof c&&c.match(z)&&(b[a]=e(c))})}function e(a){return i(z,a,f)}function f(a){var b=g(a);return"rgb("+b[0]+","+b[1]+","+b[2]+")"}function g(a){return a=a.replace(/#/,""),3===a.length&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),C[0]=h(a.substr(0,2)),C[1]=h(a.substr(2,2)),C[2]=h(a.substr(4,2)),C}function h(a){return parseInt(a,16)}function i(a,b,c){var d=b.match(a),e=b.replace(a,A);if(d)for(var f,g=d.length,h=0;g>h;h++)f=d.shift(),e=e.replace(A,c(f));return e}function j(a){return i(x,a,k)}function k(a){for(var b=a.match(w),c=b.length,d=a.match(y)[0],e=0;c>e;e++)d+=parseInt(b[e],10)+",";return d=d.slice(0,-1)+")"}function l(d){var e={};return a.each(d,function(a){var f=d[a];if("string"==typeof f){var g=r(f);e[a]={formatString:c(f),chunkNames:b(g,a)}}}),e}function m(b,c){a.each(c,function(a){for(var d=b[a],e=r(d),f=e.length,g=0;f>g;g++)b[c[a].chunkNames[g]]=+e[g];delete b[a]})}function n(b,c){a.each(c,function(a){var d=b[a],e=o(b,c[a].chunkNames),f=p(e,c[a].chunkNames);d=q(c[a].formatString,f),b[a]=j(d)})}function o(a,b){for(var c,d={},e=b.length,f=0;e>f;f++)c=b[f],d[c]=a[c],delete a[c];return d}function p(a,b){D.length=0;for(var c=b.length,d=0;c>d;d++)D.push(a[b[d]]);return D}function q(a,b){for(var c=a,d=b.length,e=0;d>e;e++)c=c.replace(A,+b[e].toFixed(4));return c}function r(a){return a.match(w)}function s(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g=b[a].split(" "),h=g[g.length-1],i=0;f>i;i++)b[e[i]]=g[i]||h;delete b[a]})}function t(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g="",h=0;f>h;h++)g+=" "+b[e[h]],delete b[e[h]];b[a]=g.substr(1)})}var u=/(\d|\-|\.)/,v=/([^\-0-9\.]+)/g,w=/[0-9.\-]+/g,x=new RegExp("rgb\\("+w.source+/,\s*/.source+w.source+/,\s*/.source+w.source+"\\)","g"),y=/^.*\(/,z=/#([0-9]|[a-f]){3,6}/gi,A="VAL",B=[],C=[],D=[];a.prototype.filter.token={tweenCreated:function(a,b,c){d(a),d(b),d(c),this._tokenData=l(a)},beforeTween:function(a,b,c,d){s(d,this._tokenData),m(a,this._tokenData),m(b,this._tokenData),m(c,this._tokenData)},afterTween:function(a,b,c,d){n(a,this._tokenData),n(b,this._tokenData),n(c,this._tokenData),t(d,this._tokenData)}}}(e)}(this)},{}],2:[function(a,b){var c=a("./progress"),d=a("./utils"),e=function(){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",c.apply(this,arguments)};e.prototype=new c,e.prototype.constructor=e,e.prototype._pathString=function(a){var b=50-a.strokeWidth/2;return d.render(this._pathTemplate,{radius:b,"2radius":2*b})},e.prototype._trailString=function(a){return this._pathString(a)},b.exports=e},{"./progress":6,"./utils":8}],3:[function(a,b){var c=a("./progress"),d=a("./utils"),e=function(){this._pathTemplate="M 0,{center} L 100,{center}",c.apply(this,arguments)};e.prototype=new c,e.prototype.constructor=e,e.prototype._initializeSvg=function(a,b){a.setAttribute("viewBox","0 0 100 "+b.strokeWidth),a.setAttribute("preserveAspectRatio","none")},e.prototype._pathString=function(a){return d.render(this._pathTemplate,{center:a.strokeWidth/2})},e.prototype._trailString=function(a){return this._pathString(a)},b.exports=e},{"./progress":6,"./utils":8}],4:[function(a,b){var c=a("./line"),d=a("./circle"),e=a("./square"),f=a("./path");b.exports={Line:c,Circle:d,Square:e,Path:f}},{"./circle":2,"./line":3,"./path":5,"./square":7}],5:[function(a,b){var c=a("shifty"),d=a("./utils"),e={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},f=function(a,b){b=d.extend({duration:800,easing:"linear",from:{},to:{},step:function(){}},b),this._path=a,this._opts=b,this._tweenable=null;var c=this._path.getTotalLength();this._path.style.strokeDasharray=c+" "+c,this._path.style.strokeDashoffset=c};f.prototype.value=function(){var a=window.getComputedStyle(this._path,null),b=a.getPropertyValue("stroke-dashoffset");b=parseFloat(b,10);var c=this._path.getTotalLength(),d=1-b/c;return parseFloat(d.toFixed(10),10)},f.prototype.set=function(a){this.stop();var b=this._path.getTotalLength();this._path.style.strokeDashoffset=b-a*b},f.prototype.stop=function(){this._stopTween();var a=window.getComputedStyle(this._path,null),b=a.getPropertyValue("stroke-dashoffset");this._path.style.strokeDashoffset=b},f.prototype.animate=function(a,b,e){b=b||{},d.isFunction(b)&&(e=b,b={});var f=b,g=d.extend({},this._opts);b=d.extend(g,b);var h=this._easing(b.easing),i=this._resolveFromAndTo(a,h,f);this.stop(),this._path.getBoundingClientRect();var j=window.getComputedStyle(this._path,null),k=j.getPropertyValue("stroke-dashoffset");k=parseFloat(k,10);var l=this._path.getTotalLength(),m=l-a*l,n=this;this._tweenable=new c,this._tweenable.tween({from:d.extend({offset:k},i.from),to:d.extend({offset:m},i.to),duration:b.duration,easing:h,step:function(a){n._path.style.strokeDashoffset=a.offset,b.step(a,b.attachment)},finish:function(a){n._path.style.strokeDashoffset=a.offset,b.step(a,b.attachment),d.isFunction(e)&&e()}})},f.prototype._resolveFromAndTo=function(a,b,d){if(d.from&&d.to)return{from:d.from,to:d.to};var e=c.interpolate(this._opts.from,this._opts.to,this.value(),b),f=c.interpolate(this._opts.from,this._opts.to,a,b);return{from:e,to:f}},f.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable.dispose(),this._tweenable=null)},f.prototype._easing=function(a){return e.hasOwnProperty(a)?e[a]:a},b.exports=f},{"./utils":8,shifty:1}],6:[function(a,b){var c=a("./path"),d=a("./utils"),e="Object is destroyed",f="Constructor was called without new keyword",g=function h(a,b){if(!(this instanceof h))throw new Error(f);if(0!==arguments.length){var e,g=this._createSvgView(b);e=d.isString(a)?document.querySelector(a):a,e.appendChild(g.svg);var i=d.extend({attachment:this},b);this._progressPath=new c(g.path,i),this.svg=g.svg,this.path=g.path,this.trail=g.trail}};g.prototype.animate=function(a,b,c){if(null===this._progressPath)throw new Error(e);this._progressPath.animate(a,b,c)},g.prototype.stop=function(){if(null===this._progressPath)throw new Error(e);this._progressPath.stop()},g.prototype.destroy=function(){if(null===this._progressPath)throw new Error(e);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null},g.prototype.set=function(a){if(null===this._progressPath)throw new Error(e);this._progressPath.set(a)},g.prototype.value=function(){if(null===this._progressPath)throw new Error(e);return this._progressPath.value()},g.prototype._createSvgView=function(a){a=d.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null},a);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(b,a);var c=null;(a.trailColor||a.trailWidth)&&(c=this._createTrail(a),b.appendChild(c));var e=this._createPath(a);return b.appendChild(e),{svg:b,path:e,trail:c}},g.prototype._initializeSvg=function(a){a.setAttribute("viewBox","0 0 100 100")},g.prototype._createPath=function(a){var b=this._pathString(a);return this._createPathElement(b,a)},g.prototype._createTrail=function(a){var b=this._trailString(a),c=d.extend({},a);return c.trailColor||(c.trailColor="#eee"),c.trailWidth||(c.trailWidth=c.strokeWidth),c.color=c.trailColor,c.strokeWidth=c.trailWidth,c.fill=null,this._createPathElement(b,c)},g.prototype._createPathElement=function(a,b){var c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttribute("d",a),c.setAttribute("stroke",b.color),c.setAttribute("stroke-width",b.strokeWidth),b.fill?c.setAttribute("fill",b.fill):c.setAttribute("fill-opacity","0"),c},g.prototype._pathString=function(){throw new Error("Override this function for each progress bar")},g.prototype._trailString=function(){throw new Error("Override this function for each progress bar")},b.exports=g},{"./path":5,"./utils":8}],7:[function(a,b){var c=a("./progress"),d=a("./utils"),e=function(){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}",c.apply(this,arguments)};e.prototype=new c,e.prototype.constructor=e,e.prototype._pathString=function(a){var b=100-a.strokeWidth/2;return d.render(this._pathTemplate,{width:b,strokeWidth:a.strokeWidth,halfOfStrokeWidth:a.strokeWidth/2})},e.prototype._trailString=function(a){var b=100-a.strokeWidth/2;return d.render(this._trailTemplate,{width:b,strokeWidth:a.strokeWidth,halfOfStrokeWidth:a.strokeWidth/2,startMargin:a.strokeWidth/2-a.trailWidth/2})},b.exports=e},{"./progress":6,"./utils":8}],8:[function(a,b){function c(a,b){a=a||{},b=b||{};for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function d(a,b){var c=a;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d],f="\\{"+d+"\\}",g=new RegExp(f,"g");c=c.replace(g,e)}return c}function e(a){return"string"==typeof a||a instanceof String}function f(a){return"function"==typeof a}b.exports={extend:c,render:d,isString:e,isFunction:f}},{}]},{},[4])(4)}); //# sourceMappingURL=progressbar.min.js.map \ No newline at end of file diff --git a/dist/progressbar.min.js.map b/dist/progressbar.min.js.map index 4358467..2844338 100644 --- a/dist/progressbar.min.js.map +++ b/dist/progressbar.min.js.map @@ -1 +1 @@ -{"version":3,"file":"progressbar.min.js","sources":["progressbar.min.js"],"names":["e","exports","module","define","amd","f","window","global","self","ProgressBar","t","n","r","s","o","u","a","require","i","Error","code","l","call","length",1,"root","SHIFTY_DEBUG_NOW","Date","Tweenable","noop","each","obj","fn","key","Object","hasOwnProperty","shallowCopy","targetObj","srcObj","prop","defaults","target","src","tweenProps","forPosition","currentState","originalState","targetState","duration","timestamp","easing","normalizedPosition","tweenProp","formula","start","end","easingFunc","position","applyFilter","tweenable","filterName","filters","prototype","filter","args","_filterArgs","name","apply","timeoutHandler","step","schedule","timeoutHandler_endTime","timeoutHandler_currentTime","Math","min","now","timeoutHandler_isEnded","isPlaying","_timeoutHandler","UPDATE_TIME","stop","composeEasingObject","fromTweenParams","composedEasing","DEFAULT_EASING","opt_initialState","opt_config","this","_currentState","_configured","_scheduleFunction","DEFAULT_SCHEDULE_FUNCTION","setConfig","DEFAULT_DURATION","_now","requestAnimationFrame","webkitRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","mozCancelRequestAnimationFrame","mozRequestAnimationFrame","setTimeout","tween","_isTweening","undefined","_start","get","resume","config","_pausedAtTime","_step","_finish","finish","_duration","from","_originalState","_targetState","to","_timestamp","_easing","set","state","pause","_isPaused","gotoEnd","setScheduleFunction","scheduleFunction","dispose","linear","pos","easeInQuad","pow","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","cos","PI","easeOutSine","sin","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","sqrt","easeOutCirc","easeInOutCirc","easeOutBounce","easeInBack","easeOutBack","easeInOutBack","elastic","swingFromTo","swingFrom","swingTo","bounce","bouncePast","easeFromTo","easeFrom","easeTo","cubicBezierAtTime","p1x","p1y","p2x","p2y","sampleCurveX","ax","bx","cx","sampleCurveY","ay","by","cy","sampleCurveDerivativeX","solveEpsilon","solve","x","epsilon","solveCurveX","fabs","t0","t1","t2","x2","d2","getCubicBezierTransition","x1","y1","y2","setBezierFunction","cubicBezierTransition","unsetBezierFunction","getInterpolatedValues","current","mockTweenable","interpolate","easingObject","filterArgs","interpolatedValues","getFormatChunksFrom","rawValues","prefix","getFormatChunksFrom_accumulator","rawValuesLength","push","getFormatStringFrom","formattedString","chunks","match","R_FORMAT_CHUNKS","R_NUMBER_COMPONENT","unshift","join","VALUE_PLACEHOLDER","sanitizeObjectForHexProps","stateObject","currentProp","R_HEX","sanitizeHexChunksToRGB","str","filterStringChunks","convertHexToRGB","hexString","rgbArr","hexToRGBArray","hex","replace","split","hexToRGBArray_returnArray","hexToDec","substr","parseInt","pattern","unfilteredString","pattenMatches","filteredString","currentChunk","pattenMatchesLength","shift","sanitizeRGBChunks","R_RGB","sanitizeRGBChunk","rgbChunk","numbers","R_UNFORMATTED_VALUES","numbersLength","sanitizedString","R_RGB_PREFIX","slice","getFormatManifests","manifestAccumulator","getValuesFrom","formatString","chunkNames","expandFormattedProperties","formatManifests","collapseFormattedProperties","formatChunks","extractPropertyChunks","valuesList","getValuesList","getFormattedValues","currentChunkName","extractedValues","chunkNamesLength","getValuesList_accumulator","formattedValueString","toFixed","expandEasingObject","tokenData","chunkLength","easingChunks","lastEasingChunk","collapseEasingObject","composedEasingString","RegExp","source","token","tweenCreated","fromState","toState","_tokenData","beforeTween","afterTween",2,"extend","destination","attrName","isString","String","isFunction","EASING_ALIASES","easeIn","easeOut","easeInOut","DESTROYED_ERROR","Progress","container","opts","arguments","element","svgView","_createSvgView","document","querySelector","appendChild","svg","newOpts","attachment","_progressPath","Path","path","trail","animate","progress","cb","destroy","parentNode","removeChild","value","color","strokeWidth","trailColor","fill","createElementNS","_initializeSvg","trailPath","trailOpts","_createPath","setAttribute","_pathString","Line","constructor","pathString","center","Circle","Square","w","_path","_opts","_tweenable","getTotalLength","style","strokeDasharray","strokeDashoffset","computedStyle","getComputedStyle","offset","getPropertyValue","parseFloat","_stopTween","defaultOpts","getBoundingClientRect","newOffset","shifty"],"mappings":"CAAC,SAASA,GAAG,GAAG,gBAAiBC,UAAS,mBAAoBC,QAAOA,OAAOD,QAAQD,QAAS,IAAG,kBAAmBG,SAAQA,OAAOC,IAAID,UAAUH,OAAO,CAAC,GAAIK,EAAE,oBAAoBC,QAAOD,EAAEC,OAAO,mBAAoBC,QAAOF,EAAEE,OAAO,mBAAo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Q,MAClCzC,GAAOb,EAAOkE,EAAarD,GAE3B5N,KAAKP,OAILO,KAAKoQ,MAAMc,uBAEX,IAAIP,GAAgB5V,OAAO6V,iBAAiB5Q,KAAKoQ,MAAO,MACpDS,EAASF,EAAcG,iBAAiB,oBAE5CD,GAASE,WAAWF,EAAQ,GAE5B,IAAI7U,GAASgE,KAAKoQ,MAAMG,iBACpBY,EAAYnV,EAAS4S,EAAW5S,EAEhCf,EAAO+E,IAEXA,MAAKsQ,WAAa,GAAIjU,GACtB2D,KAAKsQ,WAAWvP,OACZY,KAAMoL,GAAS8D,OAAQA,GAAUjD,EAAKjM,MACtCG,GAAIiL,GAAS8D,OAAQM,GAAavD,EAAK9L,IACvCrE,SAAUmQ,EAAKnQ,SACfE,OAAQqC,KAAKgC,QAAQ4L,EAAKjQ,QAC1BmB,KAAM,SAASoD,GACXjH,EAAKmV,MAAMI,MAAME,iBAAmBxO,EAAM2O,OAC1CjD,EAAK9O,KAAKoD,EAAO0L,EAAKU,aAE1B7M,OAAQ,SAASS,GAEbjH,EAAKmV,MAAMI,MAAME,iBAAmBxO,EAAM2O,OAC1CjD,EAAK9O,KAAKoD,EAAO0L,EAAKU,YAElBlB,EAAWyB,IACXA,QAMhBL,EAAKjQ,UAAUyS,WAAa,WACA,OAApBhR,KAAKsQ,aACLtQ,KAAKsQ,WAAW7Q,OAChBO,KAAKsQ,WAAW9N,UAChBxC,KAAKsQ,WAAa,OAI1B9B,EAAKjQ,UAAUyD,QAAU,SAAiBrE,GACtC,MAAI0P,GAAezQ,eAAee,GACvB0P,EAAe1P,GAGnBA,GA8BXhD,EAAOD,SACHmV,KAAMA,EACNI,OAAQA,EACRC,OAAQA,EACR1B,KAAMA,KAGP4C,OAAS,SAAS,IAAI"} \ No newline at end of file +{"version":3,"file":"progressbar.min.js","sources":["progressbar.min.js"],"names":["e","exports","module","define","amd","f","window","global","self","ProgressBar","t","n","r","s","o","u","a","require","i","Error","code","l","call","length",1,"root","SHIFTY_DEBUG_NOW","Date","Tweenable","noop","each","obj","fn","key","Object","hasOwnProperty","shallowCopy","targetObj","srcObj","prop","defaults","target","src","tweenProps","forPosition","currentState","originalState","targetState","duration","timestamp","easing","normalizedPosition","tweenProp","formula","start","end","easingFunc","position","applyFilter","tweenable","filterName","filters","prototype","filter","args","_filterArgs","name","apply","timeoutHandler","step","schedule","timeoutHandler_endTime","timeoutHandler_currentTime","Math","min","now","timeoutHandler_isEnded","isPlaying","_timeoutHandler","UPDATE_TIME","stop","composeEasingObject","fromTweenParams","composedEasing","DEFAULT_EASING","opt_initialState","opt_config","this","_currentState","_configured","_scheduleFunction","DEFAULT_SCHEDULE_FUNCTION","setConfig","DEFAULT_DURATION","_now","requestAnimationFrame","webkitRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","mozCancelRequestAnimationFrame","mozRequestAnimationFrame","setTimeout","tween","_isTweening","undefined","_start","get","resume","config","_pausedAtTime","_step","_finish","finish","_duration","from","_originalState","_targetState","to","_timestamp","_easing","set","state","pause","_isPaused","gotoEnd","setScheduleFunction","scheduleFunction","dispose","linear","pos","easeInQuad","pow","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","cos","PI","easeOutSine","sin","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","sqrt","easeOutCirc","easeInOutCirc","easeOutBounce","easeInBack","easeOutBack","easeInOutBack","elastic","swingFromTo","swingFrom","swingTo","bounce","bouncePast","easeFromTo","easeFrom","easeTo","cubicBezierAtTime","p1x","p1y","p2x","p2y","sampleCurveX","ax","bx","cx","sampleCurveY","ay","by","cy","sampleCurveDerivativeX","solveEpsilon","solve","x","epsilon","solveCurveX","fabs","t0","t1","t2","x2","d2","getCubicBezierTransition","x1","y1","y2","setBezierFunction","cubicBezierTransition","unsetBezierFunction","getInterpolatedValues","current","mockTweenable","interpolate","easingObject","filterArgs","interpolatedValues","getFormatChunksFrom","rawValues","prefix","getFormatChunksFrom_accumulator","rawValuesLength","push","getFormatStringFrom","formattedString","chunks","match","R_FORMAT_CHUNKS","R_NUMBER_COMPONENT","unshift","join","VALUE_PLACEHOLDER","sanitizeObjectForHexProps","stateObject","currentProp","R_HEX","sanitizeHexChunksToRGB","str","filterStringChunks","convertHexToRGB","hexString","rgbArr","hexToRGBArray","hex","replace","split","hexToRGBArray_returnArray","hexToDec","substr","parseInt","pattern","unfilteredString","pattenMatches","filteredString","currentChunk","pattenMatchesLength","shift","sanitizeRGBChunks","R_RGB","sanitizeRGBChunk","rgbChunk","numbers","R_UNFORMATTED_VALUES","numbersLength","sanitizedString","R_RGB_PREFIX","slice","getFormatManifests","manifestAccumulator","getValuesFrom","formatString","chunkNames","expandFormattedProperties","formatManifests","collapseFormattedProperties","formatChunks","extractPropertyChunks","valuesList","getValuesList","getFormattedValues","currentChunkName","extractedValues","chunkNamesLength","getValuesList_accumulator","formattedValueString","toFixed","expandEasingObject","tokenData","chunkLength","easingChunks","lastEasingChunk","collapseEasingObject","composedEasingString","RegExp","source","token","tweenCreated","fromState","toState","_tokenData","beforeTween","afterTween",2,"Progress","utils","Circle","_pathTemplate","arguments","constructor","_pathString","opts","strokeWidth","render","radius","2radius","_trailString","./progress","./utils",3,"Line","_initializeSvg","svg","setAttribute","center",4,"Square","Path","./circle","./line","./path","./square",5,"EASING_ALIASES","easeIn","easeOut","easeInOut","path","extend","_path","_opts","_tweenable","getTotalLength","style","strokeDasharray","strokeDashoffset","value","computedStyle","getComputedStyle","offset","getPropertyValue","parseFloat","progress","_stopTween","animate","cb","isFunction","passedOpts","defaultOpts","shiftyEasing","values","_resolveFromAndTo","getBoundingClientRect","newOffset","attachment","shifty",6,"DESTROYED_ERROR","CONSTRUCTOR_CALL_ERROR","container","element","svgView","_createSvgView","isString","document","querySelector","appendChild","newOpts","_progressPath","trail","destroy","parentNode","removeChild","color","trailColor","trailWidth","fill","createElementNS","trailPath","_createTrail","_createPath","pathString","_createPathElement",7,"_trailTemplate","w","width","halfOfStrokeWidth","startMargin",8,"destination","attrName","template","vars","rendered","val","regExpString","regExp","String"],"mappings":"CAAC,SAASA,GAAG,GAAG,gBAAiBC,UAAS,mBAAoBC,QAAOA,OAAOD,QAAQD,QAAS,IAAG,kBAAmBG,SAAQA,OAAOC,IAAID,UAAUH,OAAO,CAAC,GAAIK,EAAE,oBAAoBC,QAAOD,EAAEC,OAAO,mBAAoBC,QAAOF,EAAEE,OAAO,mBAAoBC,QAAOH,EAAEG,MAAMH,EAAEI,YAAYT,MAAM,WAAW,GAAIG,EAAsB,OAAO,SAAUH,GAAEU,EAAEC,EAAEC,GAAG,QAASC,GAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,GAAIE,GAAkB,kBAATC,UAAqBA,OAAQ,KAAIF,GAAGC,EAAE,MAAOA,GAAEF,GAAE,EAAI,IAAGI,EAAE,MAAOA,GAAEJ,GAAE,EAAI,IAAIT,GAAE,GAAIc,OAAM,uBAAuBL,EAAE,IAAK,MAAMT,GAAEe,KAAK,mBAAmBf,EAAE,GAAIgB,GAAEV,EAAEG,IAAIb,WAAYS,GAAEI,GAAG,GAAGQ,KAAKD,EAAEpB,QAAQ,SAASD,GAAG,GAAIW,GAAED,EAAEI,GAAG,GAAGd,EAAG,OAAOa,GAAEF,EAAEA,EAAEX,IAAIqB,EAAEA,EAAEpB,QAAQD,EAAEU,EAAEC,EAAEC,GAAG,MAAOD,GAAEG,GAAGb,QAAkD,IAAI,GAA1CiB,GAAkB,kBAATD,UAAqBA,QAAgBH,EAAE,EAAEA,EAAEF,EAAEW,OAAOT,IAAID,EAAED,EAAEE,GAAI,OAAOD,KAAKW,GAAG,SAASP,EAAQf,EAAOD,IAE9xB,SAAUwB,GASoB,mBAArBC,oBACTA,iBAAmB,WACjB,OAAQ,GAAIC,OAIhB,IAAIC,GAAa,WAEf,YAiCA,SAASC,MAWT,QAASC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AQkK,EAAQF,GAI5C,MAAOD,GAGX,QAAS/B,GAAS5U,GACd,MAAsB,gBAARA,IAAoBA,YAAe+W,QAGrD,QAASpD,GAAW3T,GAChB,MAAsB,kBAARA,GAGlB7B,EAAOD,SACHuU,OAAQA,EACRzB,OAAQA,EACR4D,SAAUA,EACVjB,WAAYA,aAGL,IAAI"} \ No newline at end of file diff --git a/package.json b/package.json index 2ea1769..2792361 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "progressbar.js", - "version": "0.6.0-dev", + "version": "0.6.1", "description": "Beautiful and responsive progress bars with animated SVG paths", "main": "src/main.js", "dependencies": { @@ -56,4 +56,4 @@ "loading", "loader" ] -} +} \ No newline at end of file