(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"2zkl":function(t,e){ /* @license morris.js v0.5.0 Copyright 2014 Olly Smith All rights reserved. Licensed under the BSD-2-Clause License. */ (function(){var t,e,i,r,n=[].slice,s=function(t,e){return function(){return t.apply(e,arguments)}},o={}.hasOwnProperty,a=function(t,e){function i(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=window.Morris={},t=jQuery,e.EventEmitter=function(){function t(){}return t.prototype.on=function(t,e){return null==this.handlers&&(this.handlers={}),null==this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this},t.prototype.fire=function(){var t,e,i,r,s,o,a;if(i=arguments[0],t=2<=arguments.length?n.call(arguments,1):[],null!=this.handlers&&null!=this.handlers[i]){for(a=[],r=0,s=(o=this.handlers[i]).length;s>r;r++)e=o[r],a.push(e.apply(null,t));return a}},t}(),e.commas=function(t){var e,i,r,n;return null!=t?(r=0>t?"-":"",e=Math.abs(t),r+=(i=Math.floor(e).toFixed(0)).replace(/(?=(?:\d{3})+$)(?!^)/g,","),(n=e.toString()).length>i.length&&(r+=n.slice(i.length)),r):"-"},e.pad2=function(t){return(10>t?"0":"")+t},e.Grid=function(i){function r(e){this.resizeHandler=s(this.resizeHandler,this);var i=this;if(this.el="string"==typeof e.element?t(document.getElementById(e.element)):t(e.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=t.extend({},this.gridDefaults,this.defaults||{},e),"string"==typeof this.options.units&&(this.options.postUnits=e.units),this.raphael=new Raphael(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",(function(t){var e,r,n,s;return r=i.el.offset(),s=t.pageX-r.left,i.selectFrom?(e=i.data[i.hitTest(Math.min(s,i.selectFrom))]._x,n=i.data[i.hitTest(Math.max(s,i.selectFrom))]._x-e,i.selectionRect.attr({x:e,width:n})):i.fire("hovermove",s,t.pageY-r.top)})),this.el.bind("mouseleave",(function(){return i.selectFrom&&(i.selectionRect.hide(),i.selectFrom=null),i.fire("hoverout")})),this.el.bind("touchstart touchmove touchend",(function(t){var e,r;return r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],e=i.el.offset(),i.fire("hovermove",r.pageX-e.left,r.pageY-e.top)})),this.el.bind("click",(function(t){var e;return e=i.el.offset(),i.fire("gridclick",t.pageX-e.left,t.pageY-e.top)})),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",(function(t){var e;return e=i.el.offset(),i.startRange(t.pageX-e.left)})),this.el.bind("mouseup",(function(t){var e;return e=i.el.offset(),i.endRange(t.pageX-e.left),i.fire("hovermove",t.pageX-e.left,t.pageY-e.top)}))),this.options.resize&&t(window).bind("resize",(function(){return null!=i.timeoutId&&window.clearTimeout(i.timeoutId),i.timeoutId=window.setTimeout(i.resizeHandler,100)})),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}return a(r,i),r.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},r.prototype.setData=function(t,i){var r,n,s,o,a,h,l,u,c,p,f,d,g,v,x;return null==i&&(i=!0),this.options.data=t,null==t||0===t.length?(this.data=[],this.raphael.clear(),void(null!=this.hover&&this.hover.hide())):(d=this.cumulative?0:null,g=this.cumulative?0:null,this.options.goals.length>0&&(a=Math.min.apply(Math,this.options.goals),o=Math.max.apply(Math,this.options.goals),g=null!=g?Math.min(g,a):a,d=null!=d?Math.max(d,o):o),this.data=function(){var i,r,o;for(o=[],s=i=0,r=t.length;r>i;s=++i)l=t[s],(h={src:l}).label=l[this.options.xkey],this.options.parseTime?(h.x=e.parseDate(h.label),this.options.dateFormat?h.label=this.options.dateFormat(h.x):"number"==typeof h.label&&(h.label=new Date(h.label).toString())):(h.x=s,this.options.xLabelFormat&&(h.label=this.options.xLabelFormat(h))),c=0,h.y=function(){var t,e,i,r;for(i=this.options.ykeys,r=[],n=t=0,e=i.length;e>t;n=++t)f=i[n],"string"==typeof(v=l[f])&&(v=parseFloat(v)),null!=v&&"number"!=typeof v&&(v=null),null!=v&&(this.cumulative?c+=v:null!=d?(d=Math.max(v,d),g=Math.min(v,g)):d=g=v),this.cumulative&&null!=c&&(d=Math.max(c,d),g=Math.min(c,g)),r.push(v);return r}.call(this),o.push(h);return o}.call(this),this.options.parseTime&&(this.data=this.data.sort((function(t,e){return(t.x>e.x)-(e.x>t.x)}))),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],this.options.events.length>0&&(this.events=this.options.parseTime?function(){var t,i,n,s;for(s=[],t=0,i=(n=this.options.events).length;i>t;t++)r=n[t],s.push(e.parseDate(r));return s}.call(this):this.options.events,this.xmax=Math.max(this.xmax,Math.max.apply(Math,this.events)),this.xmin=Math.min(this.xmin,Math.min.apply(Math,this.events))),this.xmin===this.xmax&&(this.xmin-=1,this.xmax+=1),this.ymin=this.yboundary("min",g),this.ymax=this.yboundary("max",d),this.ymin===this.ymax&&(g&&(this.ymin-=1),this.ymax+=1),(!0===(x=this.options.axes)||"both"===x||"y"===x||!0===this.options.grid)&&(this.options.ymax===this.gridDefaults.ymax&&this.options.ymin===this.gridDefaults.ymin?(this.grid=this.autoGridLines(this.ymin,this.ymax,this.options.numLines),this.ymin=Math.min(this.ymin,this.grid[0]),this.ymax=Math.max(this.ymax,this.grid[this.grid.length-1])):(u=(this.ymax-this.ymin)/(this.options.numLines-1),this.grid=function(){var t,e,i;for(i=[],p=t=this.ymin,e=this.ymax;u>0?e>=t:t>=e;p=t+=u)i.push(p);return i}.call(this))),this.dirty=!0,i?this.redraw():void 0)},r.prototype.yboundary=function(t,e){var i,r;return"string"==typeof(i=this.options["y"+t])?"auto"===i.slice(0,4)?i.length>5?(r=parseInt(i.slice(5),10),null==e?r:Math[t](e,r)):null!=e?e:0:parseInt(i,10):i},r.prototype.autoGridLines=function(t,e,i){var r,n,s,o,a,h,l,u,c;return a=e-t,c=Math.floor(Math.log(a)/Math.log(10)),l=Math.pow(10,c),n=Math.floor(t/l)*l,r=Math.ceil(e/l)*l,h=(r-n)/(i-1),1===l&&h>1&&Math.ceil(h)!==h&&(h=Math.ceil(h),r=n+h*(i-1)),0>n&&r>0&&(n=Math.floor(t/h)*h,r=Math.ceil(e/h)*h),1>h?(o=Math.floor(Math.log(h)/Math.log(10)),s=function(){var t,e;for(e=[],u=t=n;h>0?r>=t:t>=r;u=t+=h)e.push(parseFloat(u.toFixed(1-o)));return e}()):s=function(){var t,e;for(e=[],u=t=n;h>0?r>=t:t>=r;u=t+=h)e.push(u);return e}(),s},r.prototype._calc=function(){var t,e,i,r,n,s,o,a;return n=this.el.width(),i=this.el.height(),(this.elementWidth!==n||this.elementHeight!==i||this.dirty)&&(this.elementWidth=n,this.elementHeight=i,this.dirty=!1,this.left=this.options.padding,this.right=this.elementWidth-this.options.padding,this.top=this.options.padding,this.bottom=this.elementHeight-this.options.padding,(!0===(o=this.options.axes)||"both"===o||"y"===o)&&(s=function(){var t,i,r,n;for(n=[],t=0,i=(r=this.grid).length;i>t;t++)e=r[t],n.push(this.measureText(this.yAxisFormat(e)).width);return n}.call(this),this.left+=Math.max.apply(Math,s)),(!0===(a=this.options.axes)||"both"===a||"x"===a)&&(t=function(){var t,e,i;for(i=[],r=t=0,e=this.data.length;e>=0?e>t:t>e;r=e>=0?++t:--t)i.push(this.measureText(this.data[r].text,-this.options.xLabelAngle).height);return i}.call(this),this.bottom-=Math.max.apply(Math,t)),this.width=Math.max(1,this.right-this.left),this.height=Math.max(1,this.bottom-this.top),this.dx=this.width/(this.xmax-this.xmin),this.dy=this.height/(this.ymax-this.ymin),this.calc)?this.calc():void 0},r.prototype.transY=function(t){return this.bottom-(t-this.ymin)*this.dy},r.prototype.transX=function(t){return 1===this.data.length?(this.left+this.right)/2:this.left+(t-this.xmin)*this.dx},r.prototype.redraw=function(){return this.raphael.clear(),this._calc(),this.drawGrid(),this.drawGoals(),this.drawEvents(),this.draw?this.draw():void 0},r.prototype.measureText=function(t,e){var i,r;return null==e&&(e=0),i=(r=this.raphael.text(100,100,t).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).rotate(e)).getBBox(),r.remove(),i},r.prototype.yAxisFormat=function(t){return this.yLabelFormat(t)},r.prototype.yLabelFormat=function(t){return"function"==typeof this.options.yLabelFormat?this.options.yLabelFormat(t):""+this.options.preUnits+e.commas(t)+this.options.postUnits},r.prototype.drawGrid=function(){var t,e,i,r,n,s,o,a;if(!1!==this.options.grid||!0===(n=this.options.axes)||"both"===n||"y"===n){for(a=[],i=0,r=(s=this.grid).length;r>i;i++)t=s[i],e=this.transY(t),(!0===(o=this.options.axes)||"both"===o||"y"===o)&&this.drawYAxisLabel(this.left-this.options.padding/2,e,this.yAxisFormat(t)),this.options.grid?a.push(this.drawGridLine("M"+this.left+","+e+"H"+(this.left+this.width))):a.push(void 0);return a}},r.prototype.drawGoals=function(){var t,e,i,r,n,s,o;for(o=[],i=r=0,n=(s=this.options.goals).length;n>r;i=++r)e=s[i],t=this.options.goalLineColors[i%this.options.goalLineColors.length],o.push(this.drawGoal(e,t));return o},r.prototype.drawEvents=function(){var t,e,i,r,n,s,o;for(o=[],i=r=0,n=(s=this.events).length;n>r;i=++r)e=s[i],t=this.options.eventLineColors[i%this.options.eventLineColors.length],o.push(this.drawEvent(e,t));return o},r.prototype.drawGoal=function(t,e){return this.raphael.path("M"+this.left+","+this.transY(t)+"H"+this.right).attr("stroke",e).attr("stroke-width",this.options.goalStrokeWidth)},r.prototype.drawEvent=function(t,e){return this.raphael.path("M"+this.transX(t)+","+this.bottom+"V"+this.top).attr("stroke",e).attr("stroke-width",this.options.eventStrokeWidth)},r.prototype.drawYAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("text-anchor","end")},r.prototype.drawGridLine=function(t){return this.raphael.path(t).attr("stroke",this.options.gridLineColor).attr("stroke-width",this.options.gridStrokeWidth)},r.prototype.startRange=function(t){return this.hover.hide(),this.selectFrom=t,this.selectionRect.attr({x:t,width:0}).show()},r.prototype.endRange=function(t){var e,i;return this.selectFrom?(i=Math.min(this.selectFrom,t),e=Math.max(this.selectFrom,t),this.options.rangeSelect.call(this.el,{start:this.data[this.hitTest(i)].x,end:this.data[this.hitTest(e)].x}),this.selectFrom=null):void 0},r.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},r}(e.EventEmitter),e.parseDate=function(t){var e,i,r,n,s,o,a,h,l,u,c;return"number"==typeof t?t:(i=t.match(/^(\d+) Q(\d)$/),n=t.match(/^(\d+)-(\d+)$/),s=t.match(/^(\d+)-(\d+)-(\d+)$/),a=t.match(/^(\d+) W(\d+)$/),h=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+)(Z|([+-])(\d\d):?(\d\d))?$/),l=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+):(\d+(\.\d+)?)(Z|([+-])(\d\d):?(\d\d))?$/),i?new Date(parseInt(i[1],10),3*parseInt(i[2],10)-1,1).getTime():n?new Date(parseInt(n[1],10),parseInt(n[2],10)-1,1).getTime():s?new Date(parseInt(s[1],10),parseInt(s[2],10)-1,parseInt(s[3],10)).getTime():a?(4!==(u=new Date(parseInt(a[1],10),0,1)).getDay()&&u.setMonth(0,1+(4-u.getDay()+7)%7),u.getTime()+6048e5*parseInt(a[2],10)):h?h[6]?(o=0,"Z"!==h[6]&&(o=60*parseInt(h[8],10)+parseInt(h[9],10),"+"===h[7]&&(o=0-o)),Date.UTC(parseInt(h[1],10),parseInt(h[2],10)-1,parseInt(h[3],10),parseInt(h[4],10),parseInt(h[5],10)+o)):new Date(parseInt(h[1],10),parseInt(h[2],10)-1,parseInt(h[3],10),parseInt(h[4],10),parseInt(h[5],10)).getTime():l?(c=parseFloat(l[6]),e=Math.floor(c),r=Math.round(1e3*(c-e)),l[8]?(o=0,"Z"!==l[8]&&(o=60*parseInt(l[10],10)+parseInt(l[11],10),"+"===l[9]&&(o=0-o)),Date.UTC(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)+o,e,r)):new Date(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10),e,r).getTime()):new Date(parseInt(t,10),0,1).getTime())},e.Hover=function(){function i(i){null==i&&(i={}),this.options=t.extend({},e.Hover.defaults,i),this.el=t("
"),this.el.hide(),this.options.parent.append(this.el)}return i.defaults={class:"morris-hover morris-default-style"},i.prototype.update=function(t,e,i){return t?(this.html(t),this.show(),this.moveTo(e,i)):this.hide()},i.prototype.html=function(t){return this.el.html(t)},i.prototype.moveTo=function(t,e){var i,r,n,s,o,a;return o=this.options.parent.innerWidth(),s=this.options.parent.innerHeight(),r=this.el.outerWidth(),i=this.el.outerHeight(),n=Math.min(Math.max(0,t-r/2),o-r),null!=e?0>(a=e-i-10)&&((a=e+10)+i>s&&(a=s/2-i/2)):a=s/2-i/2,this.el.css({left:n+"px",top:parseInt(a)+"px"})},i.prototype.show=function(){return this.el.show()},i.prototype.hide=function(){return this.el.hide()},i}(),e.Line=function(t){function i(t){return this.hilight=s(this.hilight,this),this.onHoverOut=s(this.onHoverOut,this),this.onHoverMove=s(this.onHoverMove,this),this.onGridClick=s(this.onGridClick,this),this instanceof e.Line?void i.__super__.constructor.call(this,t):new e.Line(t)}return a(i,t),i.prototype.init=function(){return"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},i.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1},i.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},i.prototype.calcPoints=function(){var t,e,i,r,n,s;for(s=[],i=0,r=(n=this.data).length;r>i;i++)(t=n[i])._x=this.transX(t.x),t._y=function(){var i,r,n,s;for(s=[],i=0,r=(n=t.y).length;r>i;i++)null!=(e=n[i])?s.push(this.transY(e)):s.push(e);return s}.call(this),s.push(t._ymax=Math.min.apply(Math,[this.bottom].concat(function(){var i,r,n,s;for(s=[],i=0,r=(n=t._y).length;r>i;i++)null!=(e=n[i])&&s.push(e);return s}())));return s},i.prototype.hitTest=function(t){var e,i,r,n;if(0===this.data.length)return null;for(e=i=0,r=(n=this.data.slice(1)).length;r>i&&!(t<(n[e]._x+this.data[e]._x)/2);e=++i);return e},i.prototype.onGridClick=function(t,e){var i;return i=this.hitTest(t),this.fire("click",i,this.data[i].src,t,e)},i.prototype.onHoverMove=function(t){var e;return e=this.hitTest(t),this.displayHoverForRow(e)},i.prototype.onHoverOut=function(){return!1!==this.options.hideHover?this.displayHoverForRow(null):void 0},i.prototype.displayHoverForRow=function(t){var e;return null!=t?((e=this.hover).update.apply(e,this.hoverContentForRow(t)),this.hilight(t)):(this.hover.hide(),this.hilight())},i.prototype.hoverContentForRow=function(t){var e,i,r,n,s,o,a;for(e="
"+(r=this.data[t]).label+"
",i=s=0,o=(a=r.y).length;o>s;i=++s)n=a[i],e+="
\n "+this.options.labels[i]+":\n "+this.yLabelFormat(n)+"\n
";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,r.src)),[e,r._x,r._ymax]},i.prototype.generatePaths=function(){var t,i,r,n;return this.paths=function(){var s,o,a,l;for(l=[],i=s=0,o=this.options.ykeys.length;o>=0?o>s:s>o;i=o>=0?++s:--s)n="boolean"==typeof this.options.smooth?this.options.smooth:(a=this.options.ykeys[i],h.call(this.options.smooth,a)>=0),(t=function(){var t,e,n,s;for(s=[],t=0,e=(n=this.data).length;e>t;t++)void 0!==(r=n[t])._y[i]&&s.push({x:r._x,y:r._y[i]});return s}.call(this)).length>1?l.push(e.Line.createPath(t,n,this.bottom)):l.push(null);return l}.call(this)},i.prototype.draw=function(){var t;return(!0===(t=this.options.axes)||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries(),!1===this.options.hideHover?this.displayHoverForRow(this.data.length-1):void 0},i.prototype.drawXAxis=function(){var t,i,r,n,s,o,a,h,l,u,c=this;for(a=this.bottom+this.options.padding/2,s=null,n=null,t=function(t,e){var i,r,o,h,l;return l=(i=c.drawXAxisLabel(c.transX(e),a,t)).getBBox(),i.transform("r"+-c.options.xLabelAngle),r=i.getBBox(),i.transform("t0,"+r.height/2+"..."),0!==c.options.xLabelAngle&&(h=-.5*l.width*Math.cos(c.options.xLabelAngle*Math.PI/180),i.transform("t"+h+",0...")),r=i.getBBox(),(null==s||s>=r.x+r.width||null!=n&&n>=r.x)&&r.x>=0&&r.x+r.widtht;t++)o=i[t],r.push([o.label,o.x]);return r}.call(this)).reverse(),u=[],h=0,l=r.length;l>h;h++)i=r[h],u.push(t(i[0],i[1]));return u},i.prototype.drawSeries=function(){var t,e,i,r,n,s;for(this.seriesPoints=[],t=e=r=this.options.ykeys.length-1;0>=r?0>=e:e>=0;t=0>=r?++e:--e)this._drawLineFor(t);for(s=[],t=i=n=this.options.ykeys.length-1;0>=n?0>=i:i>=0;t=0>=n?++i:--i)s.push(this._drawPointFor(t));return s},i.prototype._drawPointFor=function(t){var e,i,r,n,s,o;for(this.seriesPoints[t]=[],o=[],r=0,n=(s=this.data).length;n>r;r++)e=null,null!=(i=s[r])._y[t]&&(e=this.drawLinePoint(i._x,i._y[t],this.colorFor(i,t,"point"),t)),o.push(this.seriesPoints[t].push(e));return o},i.prototype._drawLineFor=function(t){var e;return null!==(e=this.paths[t])?this.drawLinePath(e,this.colorFor(null,t,"line"),t):void 0},i.createPath=function(t,i,r){var n,s,o,a,h,l,u,c,p,f;for(u="",i&&(o=e.Line.gradients(t)),c={y:null},a=p=0,f=t.length;f>p;a=++p)null!=(n=t[a]).y&&(null!=c.y?i?(s=o[a],l=o[a-1],h=(n.x-c.x)/4,u+="C"+(c.x+h)+","+Math.min(r,c.y+h*l)+","+(n.x-h)+","+Math.min(r,n.y-h*s)+","+n.x+","+n.y):u+="L"+n.x+","+n.y:i&&null==o[a]||(u+="M"+n.x+","+n.y)),c=n;return u},i.gradients=function(t){var e,i,r,n,s,o,a,h;for(i=function(t,e){return(t.y-e.y)/(t.x-e.x)},h=[],r=o=0,a=t.length;a>o;r=++o)null!=(e=t[r]).y?(n=t[r+1]||{y:null},null!=(s=t[r-1]||{y:null}).y&&null!=n.y?h.push(i(s,n)):null!=s.y?h.push(i(s,e)):null!=n.y?h.push(i(e,n)):h.push(null)):h.push(null);return h},i.prototype.hilight=function(t){var e,i,r,n,s;if(null!==this.prevHilight&&this.prevHilight!==t)for(e=i=0,n=this.seriesPoints.length-1;n>=0?n>=i:i>=n;e=n>=0?++i:--i)this.seriesPoints[e][this.prevHilight]&&this.seriesPoints[e][this.prevHilight].animate(this.pointShrinkSeries(e));if(null!==t&&this.prevHilight!==t)for(e=r=0,s=this.seriesPoints.length-1;s>=0?s>=r:r>=s;e=s>=0?++r:--r)this.seriesPoints[e][t]&&this.seriesPoints[e][t].animate(this.pointGrowSeries(e));return this.prevHilight=t},i.prototype.colorFor=function(t,e,i){return"function"==typeof this.options.lineColors?this.options.lineColors.call(this,t,e,i):"point"===i&&this.options.pointFillColors[e%this.options.pointFillColors.length]||this.options.lineColors[e%this.options.lineColors.length]},i.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},i.prototype.drawLinePath=function(t,e,i){return this.raphael.path(t).attr("stroke",e).attr("stroke-width",this.lineWidthForSeries(i))},i.prototype.drawLinePoint=function(t,e,i,r){return this.raphael.circle(t,e,this.pointSizeForSeries(r)).attr("fill",i).attr("stroke-width",this.pointStrokeWidthForSeries(r)).attr("stroke",this.pointStrokeColorForSeries(r))},i.prototype.pointStrokeWidthForSeries=function(t){return this.options.pointStrokeWidths[t%this.options.pointStrokeWidths.length]},i.prototype.pointStrokeColorForSeries=function(t){return this.options.pointStrokeColors[t%this.options.pointStrokeColors.length]},i.prototype.lineWidthForSeries=function(t){return this.options.lineWidth instanceof Array?this.options.lineWidth[t%this.options.lineWidth.length]:this.options.lineWidth},i.prototype.pointSizeForSeries=function(t){return this.options.pointSize instanceof Array?this.options.pointSize[t%this.options.pointSize.length]:this.options.pointSize},i.prototype.pointGrowSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)+3},25,"linear")},i.prototype.pointShrinkSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)},25,"linear")},i}(e.Grid),e.labelSeries=function(i,r,n,s,o){var a,h,l,u,c,p,f,d,g,v,x;if(l=200*(r-i)/n,h=new Date(i),void 0===(f=e.LABEL_SPECS[s]))for(g=0,v=(x=e.AUTO_LABEL_ORDER).length;v>g;g++)if(u=x[g],l>=(p=e.LABEL_SPECS[u]).span){f=p;break}for(void 0===f&&(f=e.LABEL_SPECS.second),o&&(f=t.extend({},f,{fmt:o})),a=f.start(h),c=[];(d=a.getTime())<=r;)d>=i&&c.push([f.fmt(a),d]),f.incr(a);return c},i=function(t){return{span:60*t*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())},incr:function(e){return e.setUTCMinutes(e.getUTCMinutes()+t)}}},r=function(t){return{span:1e3*t,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())+":"+e.pad2(t.getSeconds())},incr:function(e){return e.setUTCSeconds(e.getUTCSeconds()+t)}}},e.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:i(60),"30min":i(30),"15min":i(15),"10min":i(10),"5min":i(5),minute:i(1),"30sec":r(30),"15sec":r(15),"10sec":r(10),"5sec":r(5),second:r(1)},e.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],e.Area=function(i){function r(i){var s;return this instanceof e.Area?(s=t.extend({},n,i),this.cumulative=!s.behaveLikeLine,"auto"===s.fillOpacity&&(s.fillOpacity=s.behaveLikeLine?.8:1),void r.__super__.constructor.call(this,s)):new e.Area(i)}var n;return a(r,i),n={fillOpacity:"auto",behaveLikeLine:!1},r.prototype.calcPoints=function(){var t,e,i,r,n,s,o;for(o=[],r=0,n=(s=this.data).length;n>r;r++)(t=s[r])._x=this.transX(t.x),e=0,t._y=function(){var r,n,s,o;for(o=[],r=0,n=(s=t.y).length;n>r;r++)i=s[r],this.options.behaveLikeLine?o.push(this.transY(i)):(e+=i||0,o.push(this.transY(e)));return o}.call(this),o.push(t._ymax=Math.max.apply(Math,t._y));return o},r.prototype.drawSeries=function(){var t,e,i,r,n,s,o,a;for(this.seriesPoints=[],a=[],i=0,r=(e=this.options.behaveLikeLine?function(){s=[];for(var t=0,e=this.options.ykeys.length-1;e>=0?e>=t:t>=e;e>=0?t++:t--)s.push(t);return s}.apply(this):function(){o=[];for(var t=n=this.options.ykeys.length-1;0>=n?0>=t:t>=0;0>=n?t++:t--)o.push(t);return o}.apply(this)).length;r>i;i++)t=e[i],this._drawFillFor(t),this._drawLineFor(t),a.push(this._drawPointFor(t));return a},r.prototype._drawFillFor=function(t){var e;return null!==(e=this.paths[t])?(e+="L"+this.transX(this.xmax)+","+this.bottom+"L"+this.transX(this.xmin)+","+this.bottom+"Z",this.drawFilledPath(e,this.fillForSeries(t))):void 0},r.prototype.fillForSeries=function(t){var e;return e=Raphael.rgb2hsl(this.colorFor(this.data[t],t,"line")),Raphael.hsl(e.h,this.options.behaveLikeLine?.9*e.s:.75*e.s,Math.min(.98,this.options.behaveLikeLine?1.2*e.l:1.25*e.l))},r.prototype.drawFilledPath=function(t,e){return this.raphael.path(t).attr("fill",e).attr("fill-opacity",this.options.fillOpacity).attr("stroke","none")},r}(e.Line),e.Bar=function(i){function r(i){return this.onHoverOut=s(this.onHoverOut,this),this.onHoverMove=s(this.onHoverMove,this),this.onGridClick=s(this.onGridClick,this),this instanceof e.Bar?void r.__super__.constructor.call(this,t.extend({},i,{parseTime:!1})):new e.Bar(i)}return a(r,i),r.prototype.init=function(){return this.cumulative=this.options.stacked,"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},r.prototype.defaults={barSizeRatio:.75,barGap:3,barColors:["#0b62a4","#7a92a3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],barOpacity:1,barRadius:[0,0,0,0],xLabelMargin:50},r.prototype.calc=function(){var t;return this.calcBars(),!1===this.options.hideHover?(t=this.hover).update.apply(t,this.hoverContentForRow(this.data.length-1)):void 0},r.prototype.calcBars=function(){var t,e,i,r,n,s,o;for(o=[],t=r=0,n=(s=this.data).length;n>r;t=++r)(e=s[t])._x=this.left+this.width*(t+.5)/this.data.length,o.push(e._y=function(){var t,r,n,s;for(s=[],t=0,r=(n=e.y).length;r>t;t++)null!=(i=n[t])?s.push(this.transY(i)):s.push(null);return s}.call(this));return o},r.prototype.draw=function(){var t;return(!0===(t=this.options.axes)||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries()},r.prototype.drawXAxis=function(){var t,e,i,r,n,s,o,a,h,l,u,c,p;for(l=this.bottom+(this.options.xAxisLabelTopPadding||this.options.padding/2),o=null,s=null,p=[],t=u=0,c=this.data.length;c>=0?c>u:u>c;t=c>=0?++u:--u)a=this.data[this.data.length-1-t],h=(e=this.drawXAxisLabel(a._x,l,a.label)).getBBox(),e.transform("r"+-this.options.xLabelAngle),i=e.getBBox(),e.transform("t0,"+i.height/2+"..."),0!==this.options.xLabelAngle&&(n=-.5*h.width*Math.cos(this.options.xLabelAngle*Math.PI/180),e.transform("t"+n+",0...")),(null==o||o>=i.x+i.width||null!=s&&s>=i.x)&&i.x>=0&&i.x+i.width=0?this.transY(0):null,this.bars=function(){var a,c,g,v;for(g=this.data,v=[],r=a=0,c=g.length;c>a;r=++a)h=g[r],n=0,v.push(function(){var a,c,g,v;for(g=h._y,v=[],l=a=0,c=g.length;c>a;l=++a)null!==(f=g[l])?(d?(p=Math.min(f,d),e=Math.max(f,d)):(p=f,e=this.bottom),s=this.left+r*i+o,this.options.stacked||(s+=l*(t+this.options.barGap)),u=e-p,this.options.verticalGridCondition&&this.options.verticalGridCondition(h.x)&&this.drawBar(this.left+r*i,this.top,i,Math.abs(this.top-this.bottom),this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius),this.options.stacked&&(p-=n),this.drawBar(s,p,t,u,this.colorFor(h,l,"bar"),this.options.barOpacity,this.options.barRadius),v.push(n+=u)):v.push(null);return v}.call(this));return v}.call(this)},r.prototype.colorFor=function(t,e,i){var r,n;return"function"==typeof this.options.barColors?(r={x:t.x,y:t.y[e],label:t.label},n={index:e,key:this.options.ykeys[e],label:this.options.labels[e]},this.options.barColors.call(this,r,n,i)):this.options.barColors[e%this.options.barColors.length]},r.prototype.hitTest=function(t){return 0===this.data.length?null:(t=Math.max(Math.min(t,this.right),this.left),Math.min(this.data.length-1,Math.floor((t-this.left)/(this.width/this.data.length))))},r.prototype.onGridClick=function(t,e){var i;return i=this.hitTest(t),this.fire("click",i,this.data[i].src,t,e)},r.prototype.onHoverMove=function(t){var e,i;return e=this.hitTest(t),(i=this.hover).update.apply(i,this.hoverContentForRow(e))},r.prototype.onHoverOut=function(){return!1!==this.options.hideHover?this.hover.hide():void 0},r.prototype.hoverContentForRow=function(t){var e,i,r,n,s,o,a;for(e="
"+(r=this.data[t]).label+"
",i=s=0,o=(a=r.y).length;o>s;i=++s)n=a[i],e+="
\n "+this.options.labels[i]+":\n "+this.yLabelFormat(n)+"\n
";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,r.src)),[e,this.left+(t+.5)*this.width/this.data.length]},r.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},r.prototype.drawBar=function(t,e,i,r,n,s,o){var a;return(0===(a=Math.max.apply(Math,o))||a>r?this.raphael.rect(t,e,i,r):this.raphael.path(this.roundedRect(t,e,i,r,o))).attr("fill",n).attr("fill-opacity",s).attr("stroke","none")},r.prototype.roundedRect=function(t,e,i,r,n){return null==n&&(n=[0,0,0,0]),["M",t,n[0]+e,"Q",t,e,t+n[0],e,"L",t+i-n[1],e,"Q",t+i,e,t+i,e+n[1],"L",t+i,e+r-n[2],"Q",t+i,e+r,t+i-n[2],e+r,"L",t+n[3],e+r,"Q",t,e+r,t,e+r-n[3],"Z"]},r}(e.Grid),e.Donut=function(i){function r(i){this.resizeHandler=s(this.resizeHandler,this),this.select=s(this.select,this),this.click=s(this.click,this);var r=this;if(!(this instanceof e.Donut))return new e.Donut(i);if(this.options=t.extend({},this.defaults,i),this.el="string"==typeof i.element?t(document.getElementById(i.element)):t(i.element),null===this.el||0===this.el.length)throw new Error("Graph placeholder not found.");void 0!==i.data&&0!==i.data.length&&(this.raphael=new Raphael(this.el[0]),this.options.resize&&t(window).bind("resize",(function(){return null!=r.timeoutId&&window.clearTimeout(r.timeoutId),r.timeoutId=window.setTimeout(r.resizeHandler,100)})),this.setData(i.data))}return a(r,i),r.prototype.defaults={colors:["#0B62A4","#3980B5","#679DC6","#95BBD7","#B0CCE1","#095791","#095085","#083E67","#052C48","#042135"],backgroundColor:"#FFFFFF",labelColor:"#000000",formatter:e.commas,resize:!1},r.prototype.redraw=function(){var t,i,r,n,s,o,a,h,l,u,c,p,f,d,g,v,x,y,m,b,w,_;for(this.raphael.clear(),i=this.el.width()/2,r=this.el.height()/2,p=(Math.min(i,r)-10)/3,c=0,f=0,v=(m=this.values).length;v>f;f++)c+=m[f];for(h=5/(2*p),t=1.9999*Math.PI-h*this.data.length,o=0,s=0,this.segments=[],n=d=0,x=(b=this.values).length;x>d;n=++d)l=o+h+t*(b[n]/c),(u=new e.DonutSegment(i,r,2*p,p,o,l,this.data[n].color||this.options.colors[s%this.options.colors.length],this.options.backgroundColor,s,this.raphael)).render(),this.segments.push(u),u.on("hover",this.select),u.on("click",this.click),o=l,s+=1;for(this.text1=this.drawEmptyDonutLabel(i,r-10,this.options.labelColor,15,800),this.text2=this.drawEmptyDonutLabel(i,r+10,this.options.labelColor,14),a=Math.max.apply(Math,this.values),s=0,_=[],g=0,y=(w=this.values).length;y>g;g++){if(w[g]===a){this.select(s);break}_.push(s+=1)}return _},r.prototype.setData=function(t){var e;return this.data=t,this.values=function(){var t,i,r,n;for(n=[],t=0,i=(r=this.data).length;i>t;t++)e=r[t],n.push(parseFloat(e.value));return n}.call(this),this.redraw()},r.prototype.click=function(t){return this.fire("click",t,this.data[t])},r.prototype.select=function(t){var e,i,r,n;for(i=0,r=(n=this.segments).length;r>i;i++)n[i].deselect();return this.segments[t].select(),e=this.data[t],this.setLabels(e.label,this.options.formatter(e.value,e))},r.prototype.setLabels=function(t,e){var i,r,n,s,o,a,h,l;return s=1.8*(i=2*(Math.min(this.el.width()/2,this.el.height()/2)-10)/3),n=i/2,r=i/3,this.text1.attr({text:t,transform:""}),o=this.text1.getBBox(),a=Math.min(s/o.width,n/o.height),this.text1.attr({transform:"S"+a+","+a+","+(o.x+o.width/2)+","+(o.y+o.height)}),this.text2.attr({text:e,transform:""}),h=this.text2.getBBox(),l=Math.min(s/h.width,r/h.height),this.text2.attr({transform:"S"+l+","+l+","+(h.x+h.width/2)+","+h.y})},r.prototype.drawEmptyDonutLabel=function(t,e,i,r,n){var s;return s=this.raphael.text(t,e,"").attr("font-size",r).attr("fill",i),null!=n&&s.attr("font-weight",n),s},r.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},r}(e.EventEmitter),e.DonutSegment=function(t){function e(t,e,i,r,n,o,a,h,l,u){this.cx=t,this.cy=e,this.inner=i,this.outer=r,this.color=a,this.backgroundColor=h,this.index=l,this.raphael=u,this.deselect=s(this.deselect,this),this.select=s(this.select,this),this.sin_p0=Math.sin(n),this.cos_p0=Math.cos(n),this.sin_p1=Math.sin(o),this.cos_p1=Math.cos(o),this.is_long=o-n>Math.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}return a(e,t),e.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},e.prototype.calcSegment=function(t,e){var i,r,n,s,o,a,h,l,u,c;return i=(u=this.calcArcPoints(t))[0],n=u[1],r=u[2],s=u[3],o=(c=this.calcArcPoints(e))[0],h=c[1],a=c[2],l=c[3],"M"+i+","+n+"A"+t+","+t+",0,"+this.is_long+",0,"+r+","+s+"L"+a+","+l+"A"+e+","+e+",0,"+this.is_long+",1,"+o+","+h+"Z"},e.prototype.calcArc=function(t){var e,i,r,n,s;return e=(s=this.calcArcPoints(t))[0],r=s[1],i=s[2],n=s[3],"M"+e+","+r+"A"+t+","+t+",0,"+this.is_long+",0,"+i+","+n},e.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,(function(){return t.fire("hover",t.index)}),(function(){return t.fire("click",t.index)}))},e.prototype.drawDonutArc=function(t,e){return this.raphael.path(t).attr({stroke:e,"stroke-width":2,opacity:0})},e.prototype.drawDonutSegment=function(t,e,i,r,n){return this.raphael.path(t).attr({fill:e,stroke:i,"stroke-width":3}).hover(r).click(n)},e.prototype.select=function(){return this.selected?void 0:(this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0)},e.prototype.deselect=function(){return this.selected?(this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1):void 0},e}(e.EventEmitter)}).call(this)},OPHe:function(t,e,i){},RS8Z:function(t,e,i){window,t.exports=function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e,i){var r,n;r=[i(2)],void 0===(n=function(t){function e(r){if(e.is(r,"function"))return i?r():t.on("raphael.DOMload",r);if(e.is(r,T))return e._engine.create[f](e,r.splice(0,3+e.is(r[0],F))).add(r);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var s=n.pop();return i?s.call(e._engine.create[f](e,n)):t.on("raphael.DOMload",(function(){s.call(e._engine.create[f](e,n))}))}return e._engine.create[f](e,arguments)}e.version="2.3.0",e.eve=t;var i,r,n,s,o=/[, ]+/,a={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},h=/\{(\d+)\}/g,l="hasOwnProperty",u={doc:document,win:window},c={was:Object.prototype[l].call(u.win,"Raphael"),is:u.win.Raphael},p=function(){this.ca=this.customAttributes={}},f="apply",d="concat",g="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,v="",x=" ",y=String,m="split",b="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[m](x),w={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},_=y.prototype.toLowerCase,k=Math,C=k.max,S=k.min,M=k.abs,B=k.pow,L=k.PI,F="number",T="array",A=Object.prototype.toString,P=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),E={NaN:1,Infinity:1,"-Infinity":1},z=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,I=k.round,D=parseFloat,R=parseInt,H=y.prototype.toUpperCase,N=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},O=e._availableAnimAttrs={blur:F,"clip-rect":"csv",cx:F,cy:F,fill:"colour","fill-opacity":F,"font-size":F,height:F,opacity:F,path:"path",r:F,rx:F,ry:F,stroke:"colour","stroke-opacity":F,"stroke-width":F,transform:"transform",width:F,x:F,y:F},G=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,Y={hs:1,rg:1},j=/,?([achlmqrstvxz]),?/gi,W=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,q=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,X=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,V=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),U=function(t,e){return D(t)-D(e)},$=function(t){return t},Z=e._rectPath=function(t,e,i,r,n){return n?[["M",t+n,e],["l",i-2*n,0],["a",n,n,0,0,1,n,n],["l",0,r-2*n],["a",n,n,0,0,1,-n,n],["l",2*n-i,0],["a",n,n,0,0,1,-n,-n],["l",0,2*n-r],["a",n,n,0,0,1,n,-n],["z"]]:[["M",t,e],["l",i,0],["l",0,r],["l",-i,0],["z"]]},Q=function(t,e,i,r){return null==r&&(r=i),[["M",t,e],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]]},J=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Q(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Q(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)}},K=e.mapPath=function(t,e){if(!e)return t;var i,r,n,s,o,a,h;for(n=0,o=(t=Bt(t)).length;n',(tt=et.firstChild).style.behavior="url(#default#VML)",!tt||"object"!=typeof tt.adj)return e.type=v;et=null}function it(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[l](i)&&(e[i]=it(t[i]));return e}e.svg=!(e.vml="VML"==e.type),e._Paper=p,e.fn=r=p.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=_.call(e))?!E[l](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||A.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,r,n,s,o){if(null==s){var a=t-r,h=i-n;return a||h?(180+180*k.atan2(-h,-a)/L+360)%360:0}return e.angle(t,i,s,o)-e.angle(r,n,s,o)},e.rad=function(t){return t%360*L/180},e.deg=function(t){return Math.round(180*t/L%360*1e3)/1e3},e.snapTo=function(t,i,r){if(r=e.is(r,"finite")?r:10,e.is(t,T)){for(var n=t.length;n--;)if(M(t[n]-i)<=r)return t[n]}else{var s=i%(t=+t);if(st-r)return i-s+t}return i},e.createUUID=(n=/[xy]/g,s=function(t){var e=16*k.random()|0;return("x"==t?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,s).toUpperCase()}),e.setWindow=function(i){t("raphael.setWindow",e,u.win,i),u.win=i,u.doc=u.win.document,e._engine.initWin&&e._engine.initWin(u.win)};var rt=function(t){if(e.vml){var i,r=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write(""),n.close(),i=n.body}catch(t){i=createPopup().document.body}var s=i.createTextRange();rt=lt((function(t){try{i.style.color=y(t).replace(r,v);var e=s.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var o=u.doc.createElement("i");o.title="Raphaël Colour Picker",o.style.display="none",u.doc.body.appendChild(o),rt=lt((function(t){return o.style.color=t,u.doc.defaultView.getComputedStyle(o,v).getPropertyValue("color")}))}return rt(t)},nt=function(){return"hsb("+[this.h,this.s,this.b]+")"},st=function(){return"hsl("+[this.h,this.s,this.l]+")"},ot=function(){return this.hex},at=function(t,i,r){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,i=t.g,t=t.r),null==i&&e.is(t,"string")){var n=e.getRGB(t);t=n.r,i=n.g,r=n.b}return(t>1||i>1||r>1)&&(t/=255,i/=255,r/=255),[t,i,r]},ht=function(t,i,r,n){var s={r:t*=255,g:i*=255,b:r*=255,hex:e.rgb(t,i,r),toString:ot};return e.is(n,"finite")&&(s.opacity=n),s};function lt(t,e,i){return function r(){var n=Array.prototype.slice.call(arguments,0),s=n.join("␀"),o=r.cache=r.cache||{},a=r.count=r.count||[];return o[l](s)?(function(t,e){for(var i=0,r=t.length;i=1e3&&delete o[a.shift()],a.push(s),o[s]=t[f](e,n),i?i(o[s]):o[s])}}function ut(){return this.hex}function ct(t,e){for(var i=[],r=0,n=t.length;n-2*!e>r;r+=2){var s=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?n-4==r?s[3]={x:+t[0],y:+t[1]}:n-2==r&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[n-2],y:+t[n-1]}:n-4==r?s[3]=s[2]:r||(s[0]={x:+t[r],y:+t[r+1]}),i.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return i}e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=ot,t},e.hsb2rgb=function(t,e,i,r){var n,s,o,a,h;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,r=t.o,t=t.h),a=(h=i*e)*(1-M((t=(t*=360)%360/60)%2-1)),n=s=o=i-h,ht(n+=[h,a,0,0,a,h][t=~~t],s+=[a,h,h,a,0,0][t],o+=[0,0,a,h,h,a][t],r)},e.hsl2rgb=function(t,e,i,r){var n,s,o,a,h;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),a=(h=2*e*(i<.5?i:1-i))*(1-M((t=(t*=360)%360/60)%2-1)),n=s=o=i-h/2,ht(n+=[h,a,0,0,a,h][t=~~t],s+=[a,h,h,a,0,0][t],o+=[0,0,a,h,h,a][t],r)},e.rgb2hsb=function(t,e,i){var r,n;return t=(i=at(t,e,i))[0],e=i[1],i=i[2],{h:((0==(n=(r=C(t,e,i))-S(t,e,i))?null:r==t?(e-i)/n:r==e?(i-t)/n+2:(t-e)/n+4)+360)%6*60/360,s:0==n?0:n/r,b:r,toString:nt}},e.rgb2hsl=function(t,e,i){var r,n,s,o;return t=(i=at(t,e,i))[0],e=i[1],i=i[2],r=((n=C(t,e,i))+(s=S(t,e,i)))/2,{h:((0==(o=n-s)?null:n==t?(e-i)/o:n==e?(i-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:r<.5?o/(2*r):o/(2-2*r),l:r,toString:st}},e._path2string=function(){return this.join(",").replace(j,"$1")},e._preload=function(t,e){var i=u.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,u.doc.body.removeChild(this)},i.onerror=function(){u.doc.body.removeChild(this)},u.doc.body.appendChild(i),i.src=t},e.getRGB=lt((function(t){if(!t||(t=y(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ut};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:ut};!Y[l](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=rt(t));var i,r,n,s,o,a,h=t.match(P);return h?(h[2]&&(n=R(h[2].substring(5),16),r=R(h[2].substring(3,5),16),i=R(h[2].substring(1,3),16)),h[3]&&(n=R((o=h[3].charAt(3))+o,16),r=R((o=h[3].charAt(2))+o,16),i=R((o=h[3].charAt(1))+o,16)),h[4]&&(a=h[4][m](G),i=D(a[0]),"%"==a[0].slice(-1)&&(i*=2.55),r=D(a[1]),"%"==a[1].slice(-1)&&(r*=2.55),n=D(a[2]),"%"==a[2].slice(-1)&&(n*=2.55),"rgba"==h[1].toLowerCase().slice(0,4)&&(s=D(a[3])),a[3]&&"%"==a[3].slice(-1)&&(s/=100)),h[5]?(a=h[5][m](G),i=D(a[0]),"%"==a[0].slice(-1)&&(i*=2.55),r=D(a[1]),"%"==a[1].slice(-1)&&(r*=2.55),n=D(a[2]),"%"==a[2].slice(-1)&&(n*=2.55),("deg"==a[0].slice(-3)||"°"==a[0].slice(-1))&&(i/=360),"hsba"==h[1].toLowerCase().slice(0,4)&&(s=D(a[3])),a[3]&&"%"==a[3].slice(-1)&&(s/=100),e.hsb2rgb(i,r,n,s)):h[6]?(a=h[6][m](G),i=D(a[0]),"%"==a[0].slice(-1)&&(i*=2.55),r=D(a[1]),"%"==a[1].slice(-1)&&(r*=2.55),n=D(a[2]),"%"==a[2].slice(-1)&&(n*=2.55),("deg"==a[0].slice(-3)||"°"==a[0].slice(-1))&&(i/=360),"hsla"==h[1].toLowerCase().slice(0,4)&&(s=D(a[3])),a[3]&&"%"==a[3].slice(-1)&&(s/=100),e.hsl2rgb(i,r,n,s)):((h={r:i,g:r,b:n,toString:ut}).hex="#"+(16777216|n|r<<8|i<<16).toString(16).slice(1),e.is(s,"finite")&&(h.opacity=s),h)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ut}}),e),e.hsb=lt((function(t,i,r){return e.hsb2rgb(t,i,r).hex})),e.hsl=lt((function(t,i,r){return e.hsl2rgb(t,i,r).hex})),e.rgb=lt((function(t,e,i){function r(t){return t+.5|0}return"#"+(16777216|r(i)|r(e)<<8|r(t)<<16).toString(16).slice(1)})),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=pt(t);if(i.arr)return mt(i.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return e.is(t,T)&&e.is(t[0],T)&&(n=mt(t)),n.length||y(t).replace(W,(function(t,e,i){var s=[],o=e.toLowerCase();if(i.replace(X,(function(t,e){e&&s.push(+e)})),"m"==o&&s.length>2&&(n.push([e][d](s.splice(0,2))),o="l",e="m"==e?"l":"L"),"r"==o)n.push([e][d](s));else for(;s.length>=r[o]&&(n.push([e][d](s.splice(0,r[o]))),r[o]););})),n.toString=e._path2string,i.arr=mt(n),n},e.parseTransformString=lt((function(t){if(!t)return null;var i=[];return e.is(t,T)&&e.is(t[0],T)&&(i=mt(t)),i.length||y(t).replace(q,(function(t,e,r){var n=[];_.call(e),r.replace(X,(function(t,e){e&&n.push(+e)})),i.push([e][d](n))})),i.toString=e._path2string,i}),this,(function(t){if(!t)return t;for(var e=[],i=0;i1?1:h<0?0:h)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;f<12;f++){var d=l*u[f]+l,g=ft(d,t,i,n,o),v=ft(d,e,r,s,a),x=g*g+v*v;p+=c[f]*k.sqrt(x)}return l*p}function gt(t,e,i,r,n,s,o,a){if(!(C(t,i)C(n,o)||C(e,r)C(s,a))){var h=(t-i)*(s-a)-(e-r)*(n-o);if(h){var l=((t*r-e*i)*(n-o)-(t-i)*(n*a-s*o))/h,u=((t*r-e*i)*(s-a)-(e-r)*(n*a-s*o))/h,c=+l.toFixed(2),p=+u.toFixed(2);if(!(c<+S(t,i).toFixed(2)||c>+C(t,i).toFixed(2)||c<+S(n,o).toFixed(2)||c>+C(n,o).toFixed(2)||p<+S(e,r).toFixed(2)||p>+C(e,r).toFixed(2)||p<+S(s,a).toFixed(2)||p>+C(s,a).toFixed(2)))return{x:l,y:u}}}}function vt(t,i,r){var n=e.bezierBBox(t),s=e.bezierBBox(i);if(!e.isBBoxIntersect(n,s))return r?0:[];for(var o=dt.apply(0,t),a=dt.apply(0,i),h=C(~~(o/5),1),l=C(~~(a/5),1),u=[],c=[],p={},f=r?0:[],d=0;d=0&&B<=1.001&&L>=0&&L<=1.001&&(r?f++:f.push({x:k.x,y:k.y,t1:S(B,1),t2:S(L,1)}))}}return f}function xt(t,i,r){t=e._path2curve(t),i=e._path2curve(i);for(var n,s,o,a,h,l,u,c,p,f,d=r?0:[],g=0,v=t.length;gy||x=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var r=e.isPointInsideBBox;return r(i,t.x,t.y)||r(i,t.x2,t.y)||r(i,t.x,t.y2)||r(i,t.x2,t.y2)||r(t,i.x,i.y)||r(t,i.x2,i.y)||r(t,i.x,i.y2)||r(t,i.x2,i.y2)||(t.xi.x||i.xt.x)&&(t.yi.y||i.yt.y)},e.pathIntersection=function(t,e){return xt(t,e)},e.pathIntersectionNumber=function(t,e){return xt(t,e,1)},e.isPointInsidePath=function(t,i,r){var n=e.pathBBox(t);return e.isPointInsideBBox(n,i,r)&&xt(t,[["M",i,r],["H",n.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var yt=e.pathBBox=function(t){var e=pt(t);if(e.bbox)return it(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,r=0,n=0,s=[],o=[],a=0,h=(t=Bt(t)).length;a1&&(i*=y=k.sqrt(y),r*=y);var b=i*i,w=r*r,_=(s==o?-1:1)*k.sqrt(M((b*w-b*x*x-w*v*v)/(b*x*x+w*v*v))),C=_*i*x/r+(t+a)/2,S=_*-r*v/i+(e+h)/2,B=k.asin(((e-S)/r).toFixed(9)),F=k.asin(((h-S)/r).toFixed(9));(B=tF&&(B-=2*L),!o&&F>B&&(F-=2*L)}var T=F-B;if(M(T)>c){var A=F,P=a,E=h;F=B+c*(o&&F>B?1:-1),a=C+i*k.cos(F),h=S+r*k.sin(F),f=Ct(a,h,i,r,n,0,o,P,E,[F,A,C,S])}T=F-B;var z=k.cos(B),I=k.sin(B),D=k.cos(F),R=k.sin(F),H=k.tan(T/4),N=4/3*i*H,O=4/3*r*H,G=[t,e],Y=[t+N*I,e-O*z],j=[a+N*R,h-O*D],W=[a,h];if(Y[0]=2*G[0]-Y[0],Y[1]=2*G[1]-Y[1],l)return[Y,j,W][d](f);for(var q=[],X=0,V=(f=[Y,j,W][d](f).join()[m](",")).length;X"1e12"&&(p=.5),M(d)>"1e12"&&(d=.5),p>0&&p<1&&(h=St(t,e,i,r,n,s,o,a,p),v.push(h.x),g.push(h.y)),d>0&&d<1&&(h=St(t,e,i,r,n,s,o,a,d),v.push(h.x),g.push(h.y)),l=s-2*r+e-(a-2*s+r),c=e-r,p=(-(u=2*(r-e)-2*(s-r))+k.sqrt(u*u-4*l*c))/2/l,d=(-u-k.sqrt(u*u-4*l*c))/2/l,M(p)>"1e12"&&(p=.5),M(d)>"1e12"&&(d=.5),p>0&&p<1&&(h=St(t,e,i,r,n,s,o,a,p),v.push(h.x),g.push(h.y)),d>0&&d<1&&(h=St(t,e,i,r,n,s,o,a,d),v.push(h.x),g.push(h.y)),{min:{x:S[f](0,v),y:S[f](0,g)},max:{x:C[f](0,v),y:C[f](0,g)}}})),Bt=e._path2curve=lt((function(t,e){var i=!e&&pt(t);if(!e&&i.curve)return mt(i.curve);for(var r=wt(t),n=e&&wt(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a=function(t,e,i){var r,n;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][d](Ct[f](0,[e.x,e.y][d](t.slice(1))));break;case"S":"C"==i||"S"==i?(r=2*e.x-e.bx,n=2*e.y-e.by):(r=e.x,n=e.y),t=["C",r,n][d](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][d](kt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][d](kt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][d](_t(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][d](_t(e.x,e.y,t[1],e.y));break;case"V":t=["C"][d](_t(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][d](_t(e.x,e.y,e.X,e.Y))}return t},h=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)u[e]="A",n&&(c[e]="A"),t.splice(e++,0,["C"][d](i.splice(0,6)));t.splice(e,1),x=C(r.length,n&&n.length||0)}},l=function(t,e,i,s,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",s.x,s.y]),i.bx=0,i.by=0,i.x=t[o][1],i.y=t[o][2],x=C(r.length,n&&n.length||0))},u=[],c=[],p="",g="",v=0,x=C(r.length,n&&n.length||0);v.01;)l=dt(t,e,i,r,n,s,o,a,c+=(ln){if(i&&!p.start){if(c+=["C"+(u=Vt(o,a,h[1],h[2],h[3],h[4],h[5],h[6],n-f)).start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],s)return c;p.start=c,c=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,h[5],h[6]].join(),f+=l,o=+h[5],a=+h[6];continue}if(!t&&!i)return{x:(u=Vt(o,a,h[1],h[2],h[3],h[4],h[5],h[6],n-f)).x,y:u.y,alpha:u.alpha}}f+=l,o=+h[5],a=+h[6]}c+=h.shift()+h}return p.end=c,(u=t?f:i?p:e.findDotsAtSegment(o,a,h[0],h[1],h[2],h[3],h[4],h[5],1)).alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},$t=Ut(1),Zt=Ut(),Qt=Ut(0,1);e.getTotalLength=$t,e.getPointAtLength=Zt,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return Qt(t,e).end;var r=Qt(t,i,1);return e?Qt(r,e).end:r},jt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():$t(t)},jt.getPointAtLength=function(t){var e=this.getPath();if(e)return Zt(e,t)},jt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},jt.getSubpath=function(t,i){var r=this.getPath();if(r)return e.getSubpath(r,t,i)};var Jt=e.easing_formulas={linear:function(t){return t},"<":function(t){return B(t,1.7)},">":function(t){return B(t,.48)},"<>":function(t){var e=.48-t/1.04,i=k.sqrt(.1734+e*e),r=i-e,n=-i-e,s=B(M(r),1/3)*(r<0?-1:1)+B(M(n),1/3)*(n<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:B(2,-10*t)*k.sin(2*L*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};Jt.easeIn=Jt["ease-in"]=Jt["<"],Jt.easeOut=Jt["ease-out"]=Jt[">"],Jt.easeInOut=Jt["ease-in-out"]=Jt["<>"],Jt["back-in"]=Jt.backIn,Jt["back-out"]=Jt.backOut;var Kt=[],te=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ee=function(){for(var i=+new Date,r=0;r1&&!n.next){for(o in f)f[l](o)&&(y[o]=n.totalOrigin[o]);n.el.attr(y),se(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&se(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}Kt.length&&te(ee)},ie=function(t){return t>255?255:t<0?0:t};function re(t,e,i,r,n,s){var o=3*e,a=3*(r-e)-o,h=1-o-a,l=3*i,u=3*(n-i)-l,c=1-l-u;function p(t){return((h*t+a)*t+o)*t}return function(t,e){var i=function(t,e){var i,r,n,s,l,u;for(n=t,u=0;u<8;u++){if(s=p(n)-t,M(s)(r=1))return r;for(;is?i=n:r=n,n=(r-i)/2+i}return n}(t,e);return((c*i+u)*i+l)*i}(t,1/(200*s))}function ne(t,e){var i=[],r={};if(this.ms=e,this.times=1,t){for(var n in t)t[l](n)&&(r[D(n)]=t[n],i.push(D(n)));i.sort(U)}this.anim=r,this.top=i[i.length-1],this.percents=i}function se(i,r,n,s,a,h){n=D(n);var u,c,p,f,g,v,x=i.ms,b={},w={},_={};if(s)for(C=0,S=Kt.length;Cs*i.top){n=i.percents[C],g=i.percents[C-1]||0,x=x/i.top*(n-g),f=i.percents[C+1],u=i.anim[n];break}s&&r.attr(i.anim[i.percents[C]])}if(u){if(c)c.initstatus=s,c.start=new Date-c.ms*s;else{for(var M in u)if(u[l](M)&&(O[l](M)||r.paper.customAttributes[l](M)))switch(b[M]=r.attr(M),null==b[M]&&(b[M]=N[M]),w[M]=u[M],O[M]){case F:_[M]=(w[M]-b[M])/x;break;case"colour":b[M]=e.getRGB(b[M]);var B=e.getRGB(w[M]);_[M]={r:(B.r-b[M].r)/x,g:(B.g-b[M].g)/x,b:(B.b-b[M].b)/x};break;case"path":var L=Bt(b[M],w[M]),T=L[1];for(b[M]=L[0],_[M]=[],C=0,S=b[M].length;Ch&&(h=c)}!t[h+="%"].callback&&(t[h].callback=n)}return new ne(t,i)},jt.animate=function(t,i,r,n){if(this.removed)return n&&n.call(this),this;var s=t instanceof ne?t:e.animation(t,i,r,n);return se(s,this,s.percents[0],null,this.attr()),this},jt.setTime=function(t,e){return t&&null!=e&&this.status(t,S(e,t.ms)/t.ms),this},jt.status=function(t,e){var i,r,n=[],s=0;if(null!=e)return se(t,this,-1,S(e,1)),this;for(i=Kt.length;s1)for(var r=0,n=i.length;r.5)-1;h(p-.5,2)+h(f-.5,2)>.25&&(f=s.sqrt(.25-h(p-.5,2))*n+.5)&&.5!=f&&(f=f.toFixed(5)-1e-5*n)}return c}))).split(/\s*\-\s*/),"linear"==l){var b=n.shift();if(b=-r(b),isNaN(b))return null;var w=[0,0,s.cos(t.rad(b)),s.sin(t.rad(b))],_=1/(o(a(w[2]),a(w[3]))||1);w[2]*=_,w[3]*=_,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var k=t._parseDots(n);if(!k)return null;if(u=u.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&u!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){m=v(l+"Gradient",{id:u}),e.gradient=m,v(m,"radial"==l?{fx:p,fy:f}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(m);for(var C=0,S=k.length;C1?E.opacity/100:E.opacity});case"stroke":E=t.getRGB(g),h.setAttribute(d,E.hex),"stroke"==d&&E[e]("opacity")&&v(h,{"stroke-opacity":E.opacity>1?E.opacity/100:E.opacity}),"stroke"==d&&r._.arrows&&("startString"in r._.arrows&&b(r,r._.arrows.startString),"endString"in r._.arrows&&b(r,r._.arrows.endString,1));break;case"gradient":("circle"==r.type||"ellipse"==r.type||"r"!=i(g).charAt())&&x(r,g);break;case"opacity":u.gradient&&!u[e]("stroke-opacity")&&v(h,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(u.gradient){(z=t._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,c)))&&(I=z.getElementsByTagName("stop"),v(I[I.length-1],{"stop-opacity":g}));break}default:"font-size"==d&&(g=n(g,10)+"px");var D=d.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));h.style[D]=g,r._.dirty=1,h.setAttribute(d,g)}}C(r,s),h.style.visibility=p},C=function(r,s){if("text"==r.type&&(s[e]("text")||s[e]("font")||s[e]("font-size")||s[e]("x")||s[e]("y"))){var o=r.attrs,a=r.node,h=a.firstChild?n(t._g.doc.defaultView.getComputedStyle(a.firstChild,c).getPropertyValue("font-size"),10):10;if(s[e]("text")){for(o.text=s.text;a.firstChild;)a.removeChild(a.firstChild);for(var l,u=i(s.text).split("\n"),p=[],f=0,d=u.length;f"));var U=X.getBoundingClientRect();B.W=g.w=(U.right-U.left)/100,B.H=g.h=(U.bottom-U.top)/100,B.X=g.x,B.Y=g.y+B.H/2,("x"in h||"y"in h)&&(B.path.v=t.format("m{0},{1}l{2},{1}",s(g.x*y),s(g.y*y),s(g.x*y)+1));for(var $=["x","y","text","font","font-family","font-weight","font-style","font-size"],Z=0,Q=$.length;Z.25&&(i=n.sqrt(.25-a(e-.5,2))*(2*(i>.5)-1)+.5),l=e+c+i),p}))).split(/\s*\-\s*/),"linear"==h){var u=s.shift();if(u=-r(u),isNaN(u))return null}var f=t._parseDots(s);if(!f)return null;if(e=e.shape||e.node,f.length){e.removeChild(o),o.on=!0,o.method="none",o.color=f[0].color,o.color2=f[f.length-1].color;for(var d=[],g=0,v=f.length;g')}}catch(t){k=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,r=e.height,n=e.width,s=e.x,o=e.y;if(!i)throw new Error("VML container not found.");var a=new t._Paper,h=a.canvas=t._g.doc.createElement("div"),l=h.style;return s=s||0,o=o||0,n=n||512,r=r||342,a.width=n,a.height=r,n==+n&&(n+="px"),r==+r&&(r+="px"),a.coordsize="21600000 21600000",a.coordorigin="0 0",a.span=t._g.doc.createElement("span"),a.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",h.appendChild(a.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,r),1==i?(t._g.doc.body.appendChild(h),l.left=s+"px",l.top=o+"px",l.position="absolute"):i.firstChild?i.insertBefore(h,i.firstChild):i.appendChild(h),a.renderfix=function(){},a},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=p,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var F=t.st;for(var T in L)L[e](T)&&!F[e](T)&&(F[T]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(T))}}.apply(e,r))||(t.exports=n)}])}}]);