nineschool/src/nineschool-1.0/public/build/4.05156c4a.js

7 lines
126 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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("<div class='"+this.options.class+"'></div>"),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="<div class='morris-hover-row-label'>"+(r=this.data[t]).label+"</div>",i=s=0,o=(a=r.y).length;o>s;i=++s)n=a[i],e+="<div class='morris-hover-point' style='color: "+this.colorFor(r,i,"label")+"'>\n "+this.options.labels[i]+":\n "+this.yLabelFormat(n)+"\n</div>";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.width<c.el.width()?(0!==c.options.xLabelAngle&&(o=1.25*c.options.gridTextSize/Math.sin(c.options.xLabelAngle*Math.PI/180),n=r.x-o),s=r.x-c.options.xLabelMargin):i.remove()},(r=this.options.parseTime?1===this.data.length&&"auto"===this.options.xLabels?[[this.data[0].label,this.data[0].x]]:e.labelSeries(this.xmin,this.xmax,this.width,this.options.xLabels,this.options.xLabelFormat):function(){var t,e,i,r;for(r=[],t=0,e=(i=this.data).length;e>t;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<this.el.width()?(0!==this.options.xLabelAngle&&(r=1.25*this.options.gridTextSize/Math.sin(this.options.xLabelAngle*Math.PI/180),s=i.x-r),p.push(o=i.x-this.options.xLabelMargin)):p.push(e.remove());return p},r.prototype.drawSeries=function(){var t,e,i,r,n,s,o,a,h,l,u,c,p,f,d;return i=this.width/this.options.data.length,a=this.options.stacked?1:this.options.ykeys.length,t=(i*this.options.barSizeRatio-this.options.barGap*(a-1))/a,this.options.barSize&&(t=Math.min(t,this.options.barSize)),c=i-t*a-this.options.barGap*(a-1),o=c/2,d=this.ymin<=0&&this.ymax>=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="<div class='morris-hover-row-label'>"+(r=this.data[t]).label+"</div>",i=s=0,o=(a=r.y).length;o>s;i=++s)n=a[i],e+="<div class='morris-hover-point' style='color: "+this.colorFor(r,i,"label")+"'>\n "+this.options.labels[i]+":\n "+this.yLabelFormat(n)+"\n</div>";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<o;n++)for(s=1,a=(h=t[n]).length;s<a;s+=2)i=e.x(h[s],h[s+1]),r=e.y(h[s],h[s+1]),h[s]=i,h[s+1]=r;return t};if(e._g=u,e.type=u.win.SVGAngle||u.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var tt,et=u.doc.createElement("div");if(et.innerHTML='<v:shape adj="1"/>',(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(s<r)return i-s;if(s>t-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("<body>"),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<r;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}(a,s),i?i(o[s]):o[s]):(a.length>=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;i<t.length;i++){for(var r=[],n=0;n<t[i].length;n++)r.push(t[i][n]);e.push(r)}return e}));var pt=function(t){var e=pt.ps=pt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var i in e)e[l](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])})),e[t]};function ft(t,e,i,r,n){return t*(t*(-3*e+9*i-9*r+3*n)+6*e-12*i+6*r)-3*e+3*i}function dt(t,e,i,r,n,s,o,a,h){null==h&&(h=1);for(var l=(h=h>1?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)<S(n,o)||S(t,i)>C(n,o)||C(e,r)<S(s,a)||S(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<h+1;d++){var g=e.findDotsAtSegment.apply(e,t.concat(d/h));u.push({x:g.x,y:g.y,t:d/h})}for(d=0;d<l+1;d++)g=e.findDotsAtSegment.apply(e,i.concat(d/l)),c.push({x:g.x,y:g.y,t:d/l});for(d=0;d<h;d++)for(var v=0;v<l;v++){var x=u[d],y=u[d+1],m=c[v],b=c[v+1],w=M(y.x-x.x)<.001?"y":"x",_=M(b.x-m.x)<.001?"y":"x",k=gt(x.x,x.y,y.x,y.y,m.x,m.y,b.x,b.y);if(k){if(p[k.x.toFixed(4)]==k.y.toFixed(4))continue;p[k.x.toFixed(4)]=k.y.toFixed(4);var B=x.t+M((k[w]-x[w])/(y[w]-x[w]))*(y.t-x.t),L=m.t+M((k[_]-m[_])/(b[_]-m[_]))*(b.t-m.t);B>=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;g<v;g++){var x=t[g];if("M"==x[0])n=h=x[1],s=l=x[2];else{"C"==x[0]?(p=[n,s].concat(x.slice(1)),n=p[6],s=p[7]):(p=[n,s,n,s,h,l,h,l],n=h,s=l);for(var y=0,m=i.length;y<m;y++){var b=i[y];if("M"==b[0])o=u=b[1],a=c=b[2];else{"C"==b[0]?(f=[o,a].concat(b.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,u,c,u,c],o=u,a=c);var w=vt(p,f,r);if(r)d+=w;else{for(var _=0,k=w.length;_<k;_++)w[_].segment1=g,w[_].segment2=y,w[_].bez1=p,w[_].bez2=f;d=d.concat(w)}}}}}return d}e.findDotsAtSegment=function(t,e,i,r,n,s,o,a,h){var l=1-h,u=B(l,3),c=B(l,2),p=h*h,f=p*h,d=u*t+3*c*h*i+3*l*h*h*n+f*o,g=u*e+3*c*h*r+3*l*h*h*s+f*a,v=t+2*h*(i-t)+p*(n-2*i+t),x=e+2*h*(r-e)+p*(s-2*r+e),y=i+2*h*(n-i)+p*(o-2*n+i),m=r+2*h*(s-r)+p*(a-2*s+r),b=l*t+h*i,w=l*e+h*r,_=l*n+h*o,C=l*s+h*a,S=90-180*k.atan2(v-y,x-m)/L;return(v>y||x<m)&&(S+=180),{x:d,y:g,m:{x:v,y:x},n:{x:y,y:m},start:{x:b,y:w},end:{x:_,y:C},alpha:S}},e.bezierBBox=function(t,i,r,n,s,o,a,h){e.is(t,"array")||(t=[t,i,r,n,s,o,a,h]);var l=Mt.apply(null,t);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=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.x<i.x2&&t.x>i.x||i.x<t.x2&&i.x>t.x)&&(t.y<i.y2&&t.y>i.y||i.y<t.y2&&i.y>t.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;a<h;a++)if("M"==(i=t[a])[0])r=i[1],n=i[2],s.push(r),o.push(n);else{var l=Mt(r,n,i[1],i[2],i[3],i[4],i[5],i[6]);s=s[d](l.min.x,l.max.x),o=o[d](l.min.y,l.max.y),r=i[5],n=i[6]}var u=S[f](0,s),c=S[f](0,o),p=C[f](0,s),g=C[f](0,o),v=p-u,x=g-c,y={x:u,y:c,x2:p,y2:g,width:v,height:x,cx:u+v/2,cy:c+x/2};return e.bbox=it(y),y},mt=function(t){var i=it(t);return i.toString=e._path2string,i},bt=e._pathToRelative=function(t){var i=pt(t);if(i.rel)return mt(i.rel);e.is(t,T)&&e.is(t&&t[0],T)||(t=e.parsePathString(t));var r=[],n=0,s=0,o=0,a=0,h=0;"M"==t[0][0]&&(o=n=t[0][1],a=s=t[0][2],h++,r.push(["M",n,s]));for(var l=h,u=t.length;l<u;l++){var c=r[l]=[],p=t[l];if(p[0]!=_.call(p[0]))switch(c[0]=_.call(p[0]),c[0]){case"a":c[1]=p[1],c[2]=p[2],c[3]=p[3],c[4]=p[4],c[5]=p[5],c[6]=+(p[6]-n).toFixed(3),c[7]=+(p[7]-s).toFixed(3);break;case"v":c[1]=+(p[1]-s).toFixed(3);break;case"m":o=p[1],a=p[2];default:for(var f=1,d=p.length;f<d;f++)c[f]=+(p[f]-(f%2?n:s)).toFixed(3)}else{c=r[l]=[],"m"==p[0]&&(o=p[1]+n,a=p[2]+s);for(var g=0,v=p.length;g<v;g++)r[l][g]=p[g]}var x=r[l].length;switch(r[l][0]){case"z":n=o,s=a;break;case"h":n+=+r[l][x-1];break;case"v":s+=+r[l][x-1];break;default:n+=+r[l][x-2],s+=+r[l][x-1]}}return r.toString=e._path2string,i.rel=mt(r),r},wt=e._pathToAbsolute=function(t){var i=pt(t);if(i.abs)return mt(i.abs);if(e.is(t,T)&&e.is(t&&t[0],T)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var r=[],n=0,s=0,o=0,a=0,h=0;"M"==t[0][0]&&(o=n=+t[0][1],a=s=+t[0][2],h++,r[0]=["M",n,s]);for(var l,u,c=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),p=h,f=t.length;p<f;p++){if(r.push(l=[]),(u=t[p])[0]!=H.call(u[0]))switch(l[0]=H.call(u[0]),l[0]){case"A":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+n),l[7]=+(u[7]+s);break;case"V":l[1]=+u[1]+s;break;case"H":l[1]=+u[1]+n;break;case"R":for(var g=[n,s][d](u.slice(1)),v=2,x=g.length;v<x;v++)g[v]=+g[v]+n,g[++v]=+g[v]+s;r.pop(),r=r[d](ct(g,c));break;case"M":o=+u[1]+n,a=+u[2]+s;default:for(v=1,x=u.length;v<x;v++)l[v]=+u[v]+(v%2?n:s)}else if("R"==u[0])g=[n,s][d](u.slice(1)),r.pop(),r=r[d](ct(g,c)),l=["R"][d](u.slice(-2));else for(var y=0,m=u.length;y<m;y++)l[y]=u[y];switch(l[0]){case"Z":n=o,s=a;break;case"H":n=l[1];break;case"V":s=l[1];break;case"M":o=l[l.length-2],a=l[l.length-1];default:n=l[l.length-2],s=l[l.length-1]}}return r.toString=e._path2string,i.abs=mt(r),r},_t=function(t,e,i,r){return[t,e,i,r,i,r]},kt=function(t,e,i,r,n,s){return[1/3*t+2/3*i,1/3*e+2/3*r,1/3*n+2/3*i,1/3*s+2/3*r,n,s]},Ct=function(t,e,i,r,n,s,o,a,h,l){var u,c=120*L/180,p=L/180*(+n||0),f=[],g=lt((function(t,e,i){return{x:t*k.cos(i)-e*k.sin(i),y:t*k.sin(i)+e*k.cos(i)}}));if(l)B=l[0],F=l[1],C=l[2],S=l[3];else{t=(u=g(t,e,-p)).x,e=u.y,a=(u=g(a,h,-p)).x,h=u.y,k.cos(L/180*n),k.sin(L/180*n);var v=(t-a)/2,x=(e-h)/2,y=v*v/(i*i)+x*x/(r*r);y>1&&(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=t<C?L-B:B)<0&&(B=2*L+B),(F=a<C?L-F:F)<0&&(F=2*L+F),o&&B>F&&(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<V;X++)q[X]=X%2?g(f[X-1],f[X],p).y:g(f[X],f[X+1],p).x;return q},St=function(t,e,i,r,n,s,o,a,h){var l=1-h;return{x:B(l,3)*t+3*B(l,2)*h*i+3*l*h*h*n+B(h,3)*o,y:B(l,3)*e+3*B(l,2)*h*r+3*l*h*h*s+B(h,3)*a}},Mt=lt((function(t,e,i,r,n,s,o,a){var h,l=n-2*i+t-(o-2*n+i),u=2*(i-t)-2*(n-i),c=t-i,p=(-u+k.sqrt(u*u-4*l*c))/2/l,d=(-u-k.sqrt(u*u-4*l*c))/2/l,g=[e,a],v=[t,o];return 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)),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<x;v++){r[v]&&(p=r[v][0]),"C"!=p&&(u[v]=p,v&&(g=u[v-1])),r[v]=a(r[v],s,g),"A"!=u[v]&&"C"==p&&(u[v]="C"),h(r,v),n&&(n[v]&&(p=n[v][0]),"C"!=p&&(c[v]=p,v&&(g=c[v-1])),n[v]=a(n[v],o,g),"A"!=c[v]&&"C"==p&&(c[v]="C"),h(n,v)),l(r,n,s,o,v),l(n,r,o,s,v);var y=r[v],m=n&&n[v],b=y.length,w=n&&m.length;s.x=y[b-2],s.y=y[b-1],s.bx=D(y[b-4])||s.x,s.by=D(y[b-3])||s.y,o.bx=n&&(D(m[w-4])||o.x),o.by=n&&(D(m[w-3])||o.y),o.x=n&&m[w-2],o.y=n&&m[w-1]}return n||(i.curve=mt(r)),n?[r,n]:r}),null,mt),Lt=(e._parseDots=lt((function(t){for(var i=[],r=0,n=t.length;r<n;r++){var s={},o=t[r].match(/^([^:]*):?([\d\.]*)/);if(s.color=e.getRGB(o[1]),s.color.error)return null;s.opacity=s.color.opacity,s.color=s.color.hex,o[2]&&(s.offset=o[2]+"%"),i.push(s)}for(r=1,n=i.length-1;r<n;r++)if(!i[r].offset){for(var a=D(i[r-1].offset||0),h=0,l=r+1;l<n;l++)if(i[l].offset){h=i[l].offset;break}h||(h=100,l=n);for(var u=((h=D(h))-a)/(l-r+1);r<l;r++)a+=u,i[r].offset=a+"%"}return i})),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Ft=(e._tofront=function(t,e){e.top!==t&&(Lt(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(Lt(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,i){Lt(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,i){Lt(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var i=yt(t),r={_:{transform:v},getBBox:function(){return i}};return Tt(r,e),r.matrix}),Tt=(e.transformPath=function(t,e){return K(t,Ft(t,e))},e._extractTransform=function(t,i){if(null==i)return t._.transform;i=y(i).replace(/\.{3}|\u2026/g,t._.transform||v);var r,n,s=e.parseTransformString(i),o=0,a=1,h=1,l=t._,u=new Et;if(l.transform=s||[],s)for(var c=0,p=s.length;c<p;c++){var f,d,g,x,m,b=s[c],w=b.length,_=y(b[0]).toLowerCase(),k=b[0]!=_,C=k?u.invert():0;"t"==_&&3==w?k?(f=C.x(0,0),d=C.y(0,0),g=C.x(b[1],b[2]),x=C.y(b[1],b[2]),u.translate(g-f,x-d)):u.translate(b[1],b[2]):"r"==_?2==w?(m=m||t.getBBox(1),u.rotate(b[1],m.x+m.width/2,m.y+m.height/2),o+=b[1]):4==w&&(k?(g=C.x(b[2],b[3]),x=C.y(b[2],b[3]),u.rotate(b[1],g,x)):u.rotate(b[1],b[2],b[3]),o+=b[1]):"s"==_?2==w||3==w?(m=m||t.getBBox(1),u.scale(b[1],b[w-1],m.x+m.width/2,m.y+m.height/2),a*=b[1],h*=b[w-1]):5==w&&(k?(g=C.x(b[3],b[4]),x=C.y(b[3],b[4]),u.scale(b[1],b[2],g,x)):u.scale(b[1],b[2],b[3],b[4]),a*=b[1],h*=b[2]):"m"==_&&7==w&&u.add(b[1],b[2],b[3],b[4],b[5],b[6]),l.dirtyT=1,t.matrix=u}t.matrix=u,l.sx=a,l.sy=h,l.deg=o,l.dx=r=u.e,l.dy=n=u.f,1==a&&1==h&&!o&&l.bbox?(l.bbox.x+=+r,l.bbox.y+=+n):l.dirtyT=1}),At=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Pt=e._equaliseTransform=function(t,i){i=y(i).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],i=e.parseTransformString(i)||[];for(var r,n,s,o,a=C(t.length,i.length),h=[],l=[],u=0;u<a;u++){if(s=t[u]||At(i[u]),o=i[u]||At(s),s[0]!=o[0]||"r"==s[0].toLowerCase()&&(s[2]!=o[2]||s[3]!=o[3])||"s"==s[0].toLowerCase()&&(s[3]!=o[3]||s[4]!=o[4]))return;for(h[u]=[],l[u]=[],r=0,n=C(s.length,o.length);r<n;r++)r in s&&(h[u][r]=s[r]),r in o&&(l[u][r]=o[r])}return{from:h,to:l}};function Et(t,e,i,r,n,s){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+r,this.e=+n,this.f=+s):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}e._getContainer=function(t,i,r,n){var s;if(null!=(s=null!=n||e.is(t,"object")?t:u.doc.getElementById(t)))return s.tagName?null==i?{container:s,width:s.style.pixelWidth||s.offsetWidth,height:s.style.pixelHeight||s.offsetHeight}:{container:s,width:i,height:r}:{container:1,x:t,y:i,width:r,height:n}},e.pathToRelative=bt,e._engine={},e.path2curve=Bt,e.matrix=function(t,e,i,r,n,s){return new Et(t,e,i,r,n,s)},function(t){function i(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=k.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,i,r,n,s){var o,a,h,l,u=[[],[],[]],c=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],p=[[t,i,n],[e,r,s],[0,0,1]];for(t&&t instanceof Et&&(p=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;o<3;o++)for(a=0;a<3;a++){for(l=0,h=0;h<3;h++)l+=c[o][h]*p[h][a];u[o][a]=l}this.a=u[0][0],this.b=u[1][0],this.c=u[0][1],this.d=u[1][1],this.e=u[0][2],this.f=u[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new Et(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new Et(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,r){null==e&&(e=t),(i||r)&&this.add(1,0,0,1,i,r),this.add(t,0,0,e,0,0),(i||r)&&this.add(1,0,0,1,-i,-r)},t.rotate=function(t,i,r){t=e.rad(t),i=i||0,r=r||0;var n=+k.cos(t).toFixed(9),s=+k.sin(t).toFixed(9);this.add(n,s,-s,n,i,r),this.add(1,0,0,1,-i,-r)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[y.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var n=[[this.a,this.c],[this.b,this.d]];t.scalex=k.sqrt(i(n[0])),r(n[0]),t.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*t.shear,n[1][1]-n[0][1]*t.shear],t.scaley=k.sqrt(i(n[1])),r(n[1]),t.shear/=t.scaley;var s=-n[0][1],o=n[1][1];return o<0?(t.rotate=e.deg(k.acos(o)),s<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(k.asin(s)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[m]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:v)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:v)+(e.rotate?"r"+[e.rotate,0,0]:v)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Et.prototype);for(var zt=function(){this.returnValue=!1},It=function(){return this.originalEvent.preventDefault()},Dt=function(){this.cancelBubble=!0},Rt=function(){return this.originalEvent.stopPropagation()},Ht=function(t){var e=u.doc.documentElement.scrollTop||u.doc.body.scrollTop,i=u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Nt=u.doc.addEventListener?function(t,e,i,r){var n=function(t){var e=Ht(t);return i.call(r,t,e.x,e.y)};if(t.addEventListener(e,n,!1),g&&w[e]){var s=function(e){for(var n=Ht(e),s=e,o=0,a=e.targetTouches&&e.targetTouches.length;o<a;o++)if(e.targetTouches[o].target==t){(e=e.targetTouches[o]).originalEvent=s,e.preventDefault=It,e.stopPropagation=Rt;break}return i.call(r,e,n.x,n.y)};t.addEventListener(w[e],s,!1)}return function(){return t.removeEventListener(e,n,!1),g&&w[e]&&t.removeEventListener(w[e],s,!1),!0}}:u.doc.attachEvent?function(t,e,i,r){var n=function(t){t=t||u.win.event;var e=u.doc.documentElement.scrollTop||u.doc.body.scrollTop,n=u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft,s=t.clientX+n,o=t.clientY+e;return t.preventDefault=t.preventDefault||zt,t.stopPropagation=t.stopPropagation||Dt,i.call(r,t,s,o)};return t.attachEvent("on"+e,n),function(){return t.detachEvent("on"+e,n),!0}}:void 0,Ot=[],Gt=function(e){for(var i,r=e.clientX,n=e.clientY,s=u.doc.documentElement.scrollTop||u.doc.body.scrollTop,o=u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft,a=Ot.length;a--;){if(i=Ot[a],g&&e.touches){for(var h,l=e.touches.length;l--;)if((h=e.touches[l]).identifier==i.el._drag.id){r=h.clientX,n=h.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var c,p=i.el.node,f=p.nextSibling,d=p.parentNode,v=p.style.display;u.win.opera&&d.removeChild(p),p.style.display="none",c=i.el.paper.getElementByPoint(r,n),p.style.display=v,u.win.opera&&(f?d.insertBefore(p,f):d.appendChild(p)),c&&t("raphael.drag.over."+i.el.id,i.el,c),r+=o,n+=s,t("raphael.drag.move."+i.el.id,i.move_scope||i.el,r-i.el._drag.x,n-i.el._drag.y,r,n,e)}},Yt=function(i){e.unmousemove(Gt).unmouseup(Yt);for(var r,n=Ot.length;n--;)(r=Ot[n]).el._drag={},t("raphael.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,i);Ot=[]},jt=e.el={},Wt=b.length;Wt--;)!function(t){e[t]=jt[t]=function(i,r){return e.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:Nt(this.shape||this.node||u.doc,t,i,r||this)})),this},e["un"+t]=jt["un"+t]=function(i){for(var r=this.events||[],n=r.length;n--;)r[n].name!=t||!e.is(i,"undefined")&&r[n].f!=i||(r[n].unbind(),r.splice(n,1),!r.length&&delete this.events);return this}}(b[Wt]);jt.data=function(i,r){var n=V[this.id]=V[this.id]||{};if(0==arguments.length)return n;if(1==arguments.length){if(e.is(i,"object")){for(var s in i)i[l](s)&&this.data(s,i[s]);return this}return t("raphael.data.get."+this.id,this,n[i],i),n[i]}return n[i]=r,t("raphael.data.set."+this.id,this,r,i),this},jt.removeData=function(t){return null==t?delete V[this.id]:V[this.id]&&delete V[this.id][t],this},jt.getData=function(){return it(V[this.id]||{})},jt.hover=function(t,e,i,r){return this.mouseover(t,i).mouseout(e,r||i)},jt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var qt=[];function Xt(){return this.x+x+this.y+x+this.width+" × "+this.height}jt.drag=function(i,r,n,s,o,a){function h(h){(h.originalEvent||h).preventDefault();var l=h.clientX,c=h.clientY,p=u.doc.documentElement.scrollTop||u.doc.body.scrollTop,f=u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft;if(this._drag.id=h.identifier,g&&h.touches)for(var d,v=h.touches.length;v--;)if(d=h.touches[v],this._drag.id=d.identifier,d.identifier==this._drag.id){l=d.clientX,c=d.clientY;break}this._drag.x=l+f,this._drag.y=c+p,!Ot.length&&e.mousemove(Gt).mouseup(Yt),Ot.push({el:this,move_scope:s,start_scope:o,end_scope:a}),r&&t.on("raphael.drag.start."+this.id,r),i&&t.on("raphael.drag.move."+this.id,i),n&&t.on("raphael.drag.end."+this.id,n),t("raphael.drag.start."+this.id,o||s||this,this._drag.x,this._drag.y,h)}return this._drag={},qt.push({el:this,start:h}),this.mousedown(h),this},jt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},jt.undrag=function(){for(var i=qt.length;i--;)qt[i].el==this&&(this.unmousedown(qt[i].start),qt.splice(i,1),t.unbind("raphael.drag.*."+this.id));!qt.length&&e.unmousemove(Gt).unmouseup(Yt),Ot=[]},r.circle=function(t,i,r){var n=e._engine.circle(this,t||0,i||0,r||0);return this.__set__&&this.__set__.push(n),n},r.rect=function(t,i,r,n,s){var o=e._engine.rect(this,t||0,i||0,r||0,n||0,s||0);return this.__set__&&this.__set__.push(o),o},r.ellipse=function(t,i,r,n){var s=e._engine.ellipse(this,t||0,i||0,r||0,n||0);return this.__set__&&this.__set__.push(s),s},r.path=function(t){t&&!e.is(t,"string")&&!e.is(t[0],T)&&(t+=v);var i=e._engine.path(e.format[f](e,arguments),this);return this.__set__&&this.__set__.push(i),i},r.image=function(t,i,r,n,s){var o=e._engine.image(this,t||"about:blank",i||0,r||0,n||0,s||0);return this.__set__&&this.__set__.push(o),o},r.text=function(t,i,r){var n=e._engine.text(this,t||0,i||0,y(r));return this.__set__&&this.__set__.push(n),n},r.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var i=new ce(t);return this.__set__&&this.__set__.push(i),i.paper=this,i.type="set",i},r.setStart=function(t){this.__set__=t||this.set()},r.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},r.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},r.setSize=function(t,i){return e._engine.setSize.call(this,t,i)},r.setViewBox=function(t,i,r,n,s){return e._engine.setViewBox.call(this,t,i,r,n,s)},r.top=r.bottom=null,r.raphael=e,r.getElementByPoint=function(t,e){var i,r,n,s,o,a,h,l=this.canvas,c=u.doc.elementFromPoint(t,e);if(u.win.opera&&"svg"==c.tagName){var p=(r=(i=l).getBoundingClientRect(),s=(n=i.ownerDocument).body,a=(o=n.documentElement).clientTop||s.clientTop||0,h=o.clientLeft||s.clientLeft||0,{y:r.top+(u.win.pageYOffset||o.scrollTop||s.scrollTop)-a,x:r.left+(u.win.pageXOffset||o.scrollLeft||s.scrollLeft)-h}),f=l.createSVGRect();f.x=t-p.x,f.y=e-p.y,f.width=f.height=1;var d=l.getIntersectionList(f,null);d.length&&(c=d[d.length-1])}if(!c)return null;for(;c.parentNode&&c!=l.parentNode&&!c.raphael;)c=c.parentNode;return c==this.canvas.parentNode&&(c=l),c&&c.raphael?this.getById(c.raphaelid):null},r.getElementsByBBox=function(t){var i=this.set();return this.forEach((function(r){e.isBBoxIntersect(r.getBBox(),t)&&i.push(r)})),i},r.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},r.forEach=function(t,e){for(var i=this.bottom;i;){if(!1===t.call(e,i))return this;i=i.next}return this},r.getElementsByPoint=function(t,e){var i=this.set();return this.forEach((function(r){r.isPointInside(t,e)&&i.push(r)})),i},jt.isPointInside=function(t,i){var r=this.realPath=J[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(r=e.transformPath(r,this.attr("transform"))),e.isPointInsidePath(r,t,i)},jt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=J[this.type](this),e.bboxwt=yt(this.realPath),e.bboxwt.toString=Xt,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=J[this.type](this)),e.bbox=yt(K(this.realPath,this.matrix)),e.bbox.toString=Xt,e.dirty=e.dirtyT=0),e.bbox)},jt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},jt.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,r=this.paper,n=r.set(),s=this.realPath||J[this.type](this);s=this.matrix?K(s,this.matrix):s;for(var o=1;o<i+1;o++)n.push(r.path(s).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*o).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return n.insertBefore(this).translate(e.offsetx,e.offsety)};var Vt=function(t,i,r,n,s,o,a,h,l){return null==l?dt(t,i,r,n,s,o,a,h):e.findDotsAtSegment(t,i,r,n,s,o,a,h,function(t,e,i,r,n,s,o,a,h){if(!(h<0||dt(t,e,i,r,n,s,o,a)<h)){var l,u=.5,c=1-u;for(l=dt(t,e,i,r,n,s,o,a,c);M(l-h)>.01;)l=dt(t,e,i,r,n,s,o,a,c+=(l<h?1:-1)*(u/=2));return c}}(t,i,r,n,s,o,a,h,l))},Ut=function(t,i){return function(r,n,s){for(var o,a,h,l,u,c="",p={},f=0,d=0,g=(r=Bt(r)).length;d<g;d++){if("M"==(h=r[d])[0])o=+h[1],a=+h[2];else{if(f+(l=Vt(o,a,h[1],h[2],h[3],h[4],h[5],h[6]))>n){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;r<Kt.length;r++){var n=Kt[r];if(!n.el.removed&&!n.paused){var s,o,a=i-n.start,h=n.ms,u=n.easing,c=n.from,p=n.diff,f=n.to,g=(n.t,n.el),v={},y={};if(n.initstatus?(a=(n.initstatus*n.anim.top-n.prev)/(n.percent-n.prev)*h,n.status=n.initstatus,delete n.initstatus,n.stop&&Kt.splice(r--,1)):n.status=(n.prev+(n.percent-n.prev)*(a/h))/n.anim.top,!(a<0))if(a<h){var m=u(a/h);for(var b in c)if(c[l](b)){switch(O[b]){case F:s=+c[b]+m*h*p[b];break;case"colour":s="rgb("+[ie(I(c[b].r+m*h*p[b].r)),ie(I(c[b].g+m*h*p[b].g)),ie(I(c[b].b+m*h*p[b].b))].join(",")+")";break;case"path":s=[];for(var w=0,_=c[b].length;w<_;w++){s[w]=[c[b][w][0]];for(var k=1,C=c[b][w].length;k<C;k++)s[w][k]=+c[b][w][k]+m*h*p[b][w][k];s[w]=s[w].join(x)}s=s.join(x);break;case"transform":if(p[b].real)for(s=[],w=0,_=c[b].length;w<_;w++)for(s[w]=[c[b][w][0]],k=1,C=c[b][w].length;k<C;k++)s[w][k]=c[b][w][k]+m*h*p[b][w][k];else{var S=function(t){return+c[b][t]+m*h*p[b][t]};s=[["m",S(0),S(1),S(2),S(3),S(4),S(5)]]}break;case"csv":if("clip-rect"==b)for(s=[],w=4;w--;)s[w]=+c[b][w]+m*h*p[b][w];break;default:var M=[][d](c[b]);for(s=[],w=g.paper.customAttributes[b].length;w--;)s[w]=+M[w]+m*h*p[b][w]}v[b]=s}g.attr(v),function(e,i,r){setTimeout((function(){t("raphael.anim.frame."+e,i,r)}))}(g.id,g,n.anim)}else{if(function(i,r,n){setTimeout((function(){t("raphael.anim.frame."+r.id,r,n),t("raphael.anim.finish."+r.id,r,n),e.is(i,"function")&&i.call(r)}))}(n.callback,g,n.anim),g.attr(f),Kt.splice(r--,1),n.repeat>1&&!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)<e)return n;if(M(l=(3*h*n+2*a)*n+o)<1e-6)break;n-=s/l}if((n=t)<(i=0))return i;if(n>(r=1))return r;for(;i<r;){if(s=p(n),M(s-t)<e)return n;t>s?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;C<S;C++){var k=Kt[C];if(k.el.id==r.id&&k.anim==i){k.percent!=n?(Kt.splice(C,1),p=1):c=k,r.attr(k.totalOrigin);break}}else s=+w;for(var C=0,S=i.percents.length;C<S;C++){if(i.percents[C]==n||i.percents[C]>s*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;C<S;C++){_[M][C]=[0];for(var A=1,P=b[M][C].length;A<P;A++)_[M][C][A]=(T[C][A]-b[M][C][A])/x}break;case"transform":var E=r._,I=Pt(E[M],w[M]);if(I)for(b[M]=I.from,w[M]=I.to,_[M]=[],_[M].real=!0,C=0,S=b[M].length;C<S;C++)for(_[M][C]=[b[M][C][0]],A=1,P=b[M][C].length;A<P;A++)_[M][C][A]=(w[M][C][A]-b[M][C][A])/x;else{var R=r.matrix||new Et,H={_:{transform:E.transform},getBBox:function(){return r.getBBox(1)}};b[M]=[R.a,R.b,R.c,R.d,R.e,R.f],Tt(H,w[M]),w[M]=H._.transform,_[M]=[(H.matrix.a-R.a)/x,(H.matrix.b-R.b)/x,(H.matrix.c-R.c)/x,(H.matrix.d-R.d)/x,(H.matrix.e-R.e)/x,(H.matrix.f-R.f)/x]}break;case"csv":var G=y(u[M])[m](o),Y=y(b[M])[m](o);if("clip-rect"==M)for(b[M]=Y,_[M]=[],C=Y.length;C--;)_[M][C]=(G[C]-b[M][C])/x;w[M]=G;break;default:for(G=[][d](u[M]),Y=[][d](b[M]),_[M]=[],C=r.paper.customAttributes[M].length;C--;)_[M][C]=((G[C]||0)-(Y[C]||0))/x}var j=u.easing,W=e.easing_formulas[j];if(!W)if((W=y(j).match(z))&&5==W.length){var q=W;W=function(t){return re(t,+q[1],+q[2],+q[3],+q[4],x)}}else W=$;if(k={anim:i,percent:n,timestamp:v=u.start||i.start||+new Date,start:v+(i.del||0),status:0,initstatus:s||0,stop:!1,ms:x,easing:W,from:b,diff:_,to:w,el:r,callback:u.callback,prev:g,next:f,repeat:h||i.times,origin:r.attr(),totalOrigin:a},Kt.push(k),s&&!c&&!p&&(k.stop=!0,k.start=new Date-x*s,1==Kt.length))return ee();p&&(k.start=new Date-k.ms*s),1==Kt.length&&te(ee)}t("raphael.anim.start."+r.id,r,i)}}function oe(t){for(var e=0;e<Kt.length;e++)Kt[e].el.paper==t&&Kt.splice(e--,1)}jt.animateWith=function(t,i,r,n,s,o){if(this.removed)return o&&o.call(this),this;var a=r instanceof ne?r:e.animation(r,n,s,o);se(a,this,a.percents[0],null,this.attr());for(var h=0,l=Kt.length;h<l;h++)if(Kt[h].anim==i&&Kt[h].el==t){Kt[l-1].start=Kt[h].start;break}return this},jt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},ne.prototype.delay=function(t){var e=new ne(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},ne.prototype.repeat=function(t){var e=new ne(this.anim,this.ms);return e.del=this.del,e.times=k.floor(C(t,0))||1,e},e.animation=function(t,i,r,n){if(t instanceof ne)return t;!e.is(r,"function")&&r||(n=n||r||null,r=null),t=Object(t),i=+i||0;var s,o,a={};for(o in t)t[l](o)&&D(o)!=o&&D(o)+"%"!=o&&(s=!0,a[o]=t[o]);if(s)return r&&(a.easing=r),n&&(a.callback=n),new ne({100:a},i);if(n){var h=0;for(var u in t){var c=R(u);t[l](u)&&c>h&&(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;s<i;s++)if((r=Kt[s]).el.id==this.id&&(!t||r.anim==t)){if(t)return r.status;n.push({anim:r.anim,status:r.status})}return t?0:n},jt.pause=function(e){for(var i=0;i<Kt.length;i++)Kt[i].el.id!=this.id||e&&Kt[i].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,Kt[i].anim)&&(Kt[i].paused=!0);return this},jt.resume=function(e){for(var i=0;i<Kt.length;i++)if(Kt[i].el.id==this.id&&(!e||Kt[i].anim==e)){var r=Kt[i];!1!==t("raphael.anim.resume."+this.id,this,r.anim)&&(delete r.paused,this.status(r.anim,r.status))}return this},jt.stop=function(e){for(var i=0;i<Kt.length;i++)Kt[i].el.id!=this.id||e&&Kt[i].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,Kt[i].anim)&&Kt.splice(i--,1);return this},t.on("raphael.remove",oe),t.on("raphael.clear",oe),jt.toString=function(){return"Raphaëls object"};var ae,he,le,ue,ce=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=jt.constructor&&t[e].constructor!=ce||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},pe=ce.prototype;for(var fe in pe.push=function(){for(var t,e,i=0,r=arguments.length;i<r;i++)!(t=arguments[i])||t.constructor!=jt.constructor&&t.constructor!=ce||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},pe.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},pe.forEach=function(t,e){for(var i=0,r=this.items.length;i<r;i++)if(!1===t.call(e,this.items[i],i))return this;return this},jt)jt[l](fe)&&(pe[fe]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t][f](i,e)}))}}(fe));return pe.attr=function(t,i){if(t&&e.is(t,T)&&e.is(t[0],"object"))for(var r=0,n=t.length;r<n;r++)this.items[r].attr(t[r]);else for(var s=0,o=this.items.length;s<o;s++)this.items[s].attr(t,i);return this},pe.clear=function(){for(;this.length;)this.pop()},pe.splice=function(t,e,i){t=t<0?C(this.length+t,0):t,e=C(0,S(this.length-t,e));var r,n=[],s=[],o=[];for(r=2;r<arguments.length;r++)o.push(arguments[r]);for(r=0;r<e;r++)s.push(this[t+r]);for(;r<this.length-t;r++)n.push(this[t+r]);var a=o.length;for(r=0;r<a+n.length;r++)this.items[t+r]=this[t+r]=r<a?o[r]:n[r-a];for(r=this.items.length=this.length-=e-a;this[r];)delete this[r++];return new ce(s)},pe.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},pe.animate=function(t,i,r,n){(e.is(r,"function")||!r)&&(n=r||null);var s,o,a=this.items.length,h=a,l=this;if(!a)return this;n&&(o=function(){!--a&&n.call(l)}),r=e.is(r,"string")?r:o;var u=e.animation(t,i,r,o);for(s=this.items[--h].animate(u);h--;)this.items[h]&&!this.items[h].removed&&this.items[h].animateWith(s,u,u),this.items[h]&&!this.items[h].removed||a--;return this},pe.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},pe.getBBox=function(){for(var t=[],e=[],i=[],r=[],n=this.items.length;n--;)if(!this.items[n].removed){var s=this.items[n].getBBox();t.push(s.x),e.push(s.y),i.push(s.x+s.width),r.push(s.y+s.height)}return{x:t=S[f](0,t),y:e=S[f](0,e),x2:i=C[f](0,i),y2:r=C[f](0,r),width:i-t,height:r-e}},pe.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},pe.toString=function(){return"Raphaëls set"},pe.glow=function(t){var e=this.paper.set();return this.forEach((function(i,r){var n=i.glow(t);null!=n&&n.forEach((function(t,i){e.push(t)}))})),e},pe.isPointInside=function(t,e){var i=!1;return this.forEach((function(r){if(r.isPointInside(t,e))return i=!0,!1})),i},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var r in t.face)t.face[l](r)&&(e.face[r]=t.face[r]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg)for(var n in e.face["units-per-em"]=R(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[l](n)){var s=t.glyphs[n];if(e.glyphs[n]={w:s.w,k:{},d:s.d&&"M"+s.d.replace(/[mlcxtrv]/g,(function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"}))+"z"},s.k)for(var o in s.k)s[l](o)&&(e.glyphs[n].k[o]=s.k[o])}return t},r.getFont=function(t,i,r,n){if(n=n||"normal",r=r||"normal",i=+i||{normal:400,bold:700,lighter:300,bolder:800}[i]||400,e.fonts){var s,o=e.fonts[t];if(!o){var a=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,v)+"(\\s|$)","i");for(var h in e.fonts)if(e.fonts[l](h)&&a.test(h)){o=e.fonts[h];break}}if(o)for(var u=0,c=o.length;u<c&&((s=o[u]).face["font-weight"]!=i||s.face["font-style"]!=r&&s.face["font-style"]||s.face["font-stretch"]!=n);u++);return s}},r.print=function(t,i,r,n,s,a,h,l){a=a||"middle",h=C(S(h||0,1),-1),l=C(S(l||1,3),1);var u,c=y(r)[m](v),p=0,f=0,d=v;if(e.is(n,"string")&&(n=this.getFont(n)),n){u=(s||16)/n.face["units-per-em"];for(var g=n.face.bbox[m](o),x=+g[0],b=g[3]-g[1],w=0,_=+g[1]+("baseline"==a?b+ +n.face.descent:b/2),k=0,M=c.length;k<M;k++){if("\n"==c[k])p=0,L=0,f=0,w+=b*l;else{var B=f&&n.glyphs[c[k-1]]||{},L=n.glyphs[c[k]];p+=f?(B.w||n.w)+(B.k&&B.k[c[k]]||0)+n.w*h:0,f=1}L&&L.d&&(d+=e.transformPath(L.d,["t",p*u,w*u,"s",u,u,x,_,"t",(t-x)/u,(i-_)/u]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},r.add=function(t){if(e.is(t,"array"))for(var i,r=this.set(),n=0,s=t.length;n<s;n++)i=t[n]||{},a[l](i.type)&&r.push(this[i.type]().attr(i));return r},e.format=function(t,i){var r=e.is(i,T)?[0][d](i):arguments;return t&&e.is(t,"string")&&r.length-1&&(t=t.replace(h,(function(t,e){return null==r[++e]?v:r[e]}))),t||v},e.fullfill=(ae=/\{([^\}]+)\}/g,he=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(ae,(function(t,i){return function(t,e,i){var r=i;return e.replace(he,(function(t,e,i,n,s){e=e||n,r&&(e in r&&(r=r[e]),"function"==typeof r&&s&&(r=r()))})),r=(null==r||r==i?t:r)+""}(t,i,e)}))}),e.ninja=function(){if(c.was)u.win.Raphael=c.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=pe,t.on("raphael.DOMload",(function(){i=!0})),null==(le=document).readyState&&le.addEventListener&&(le.addEventListener("DOMContentLoaded",ue=function(){le.removeEventListener("DOMContentLoaded",ue,!1),le.readyState="complete"},!1),le.readyState="loading"),function t(){/in/.test(le.readyState)?setTimeout(t,9):e.eve("raphael.DOMload")}(),e}.apply(e,r))||(t.exports=n)},function(t,e,i){var r,n;r=[i(0),i(3),i(4)],void 0===(n=function(t){return t}.apply(e,r))||(t.exports=n)},function(t,e,i){var r,n,s,o,a,h,l,u,c,p,f,d,g,v;o="hasOwnProperty",a=/[\.\/]/,h=/\s*,\s*/,l=function(t,e){return t-e},u={n:{}},c=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},p=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},f=Object.prototype.toString,d=String,g=Array.isArray||function(t){return t instanceof Array||"[object Array]"==f.call(t)},(v=function(t,e){var i,r=s,o=Array.prototype.slice.call(arguments,2),a=v.listeners(t),h=0,u=[],f={},d=[],g=n;d.firstDefined=c,d.lastDefined=p,n=t,s=0;for(var x=0,y=a.length;x<y;x++)"zIndex"in a[x]&&(u.push(a[x].zIndex),a[x].zIndex<0&&(f[a[x].zIndex]=a[x]));for(u.sort(l);u[h]<0;)if(i=f[u[h++]],d.push(i.apply(e,o)),s)return s=r,d;for(x=0;x<y;x++)if("zIndex"in(i=a[x]))if(i.zIndex==u[h]){if(d.push(i.apply(e,o)),s)break;do{if((i=f[u[++h]])&&d.push(i.apply(e,o)),s)break}while(i)}else f[i.zIndex]=i;else if(d.push(i.apply(e,o)),s)break;return s=r,n=g,d})._events=u,v.listeners=function(t){var e,i,r,n,s,o,h,l,c=g(t)?t:t.split(a),p=u,f=[p],d=[];for(n=0,s=c.length;n<s;n++){for(l=[],o=0,h=f.length;o<h;o++)for(i=[(p=f[o].n)[c[n]],p["*"]],r=2;r--;)(e=i[r])&&(l.push(e),d=d.concat(e.f||[]));f=l}return d},v.separator=function(t){t?(t="["+(t=d(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",a=new RegExp(t)):a=/[\.\/]/},v.on=function(t,e){if("function"!=typeof e)return function(){};for(var i=g(t)?g(t[0])?t:[t]:d(t).split(h),r=0,n=i.length;r<n;r++)!function(t){for(var i,r=g(t)?t:d(t).split(a),n=u,s=0,o=r.length;s<o;s++)n=(n=n.n).hasOwnProperty(r[s])&&n[r[s]]||(n[r[s]]={n:{}});for(n.f=n.f||[],s=0,o=n.f.length;s<o;s++)if(n.f[s]==e){i=!0;break}!i&&n.f.push(e)}(i[r]);return function(t){+t==+t&&(e.zIndex=+t)}},v.f=function(t){var e=[].slice.call(arguments,1);return function(){v.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},v.stop=function(){s=1},v.nt=function(t){var e=g(n)?n.join("."):n;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},v.nts=function(){return g(n)?n:n.split(a)},v.off=v.unbind=function(t,e){if(t){var i=g(t)?g(t[0])?t:[t]:d(t).split(h);if(i.length>1)for(var r=0,n=i.length;r<n;r++)v.off(i[r],e);else{i=g(t)?t:d(t).split(a);var s,l,c,p,f,x=[u];for(r=0,n=i.length;r<n;r++)for(p=0;p<x.length;p+=c.length-2){if(c=[p,1],s=x[p].n,"*"!=i[r])s[i[r]]&&c.push(s[i[r]]);else for(l in s)s[o](l)&&c.push(s[l]);x.splice.apply(x,c)}for(r=0,n=x.length;r<n;r++)for(s=x[r];s.n;){if(e){if(s.f){for(p=0,f=s.f.length;p<f;p++)if(s.f[p]==e){s.f.splice(p,1);break}!s.f.length&&delete s.f}for(l in s.n)if(s.n[o](l)&&s.n[l].f){var y=s.n[l].f;for(p=0,f=y.length;p<f;p++)if(y[p]==e){y.splice(p,1);break}!y.length&&delete s.n[l].f}}else for(l in delete s.f,s.n)s.n[o](l)&&s.n[l].f&&delete s.n[l].f;s=s.n}}}else v._events=u={n:{}}},v.once=function(t,e){var i=function(){return v.off(t,i),e.apply(this,arguments)};return v.on(t,i)},v.version="0.5.0",v.toString=function(){return"You are running Eve 0.5.0"},t.exports?t.exports=v:void 0===(r=function(){return v}.apply(e,[]))||(t.exports=r)},function(t,e,i){var r,n;r=[i(0)],void 0===(n=function(t){if(!t||t.svg){var e="hasOwnProperty",i=String,r=parseFloat,n=parseInt,s=Math,o=s.max,a=s.abs,h=s.pow,l=/[, ]+/,u=t.eve,c="",p=" ",f="http://www.w3.org/1999/xlink",d={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var v=function(r,n){if(n)for(var s in"string"==typeof r&&(r=v(r)),n)n[e](s)&&("xlink:"==s.substring(0,6)?r.setAttributeNS(f,s.substring(6),i(n[s])):r.setAttribute(s,i(n[s])));else(r=t._g.doc.createElementNS("http://www.w3.org/2000/svg",r)).style&&(r.style.webkitTapHighlightColor="rgba(0,0,0,0)");return r},x=function(e,n){var l="linear",u=e.id+n,p=.5,f=.5,d=e.node,g=e.paper,x=d.style,m=t._g.doc.getElementById(u);if(!m){if(n=(n=i(n).replace(t._radial_gradient,(function(t,e,i){if(l="radial",e&&i){p=r(e);var n=2*((f=r(i))>.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;C<S;C++)m.appendChild(v("stop",{offset:k[C].offset?k[C].offset:C?"100%":"0%","stop-color":k[C].color||"#fff","stop-opacity":isFinite(k[C].opacity)?k[C].opacity:1}))}}return v(d,{fill:y(u),opacity:1,"fill-opacity":1}),x.fill=c,x.opacity=1,x.fillOpacity=1,1},y=function(t){if((e=document.documentMode)&&(9===e||10===e))return"url('#"+t+"')";var e,i=document.location;return"url('"+i.protocol+"//"+i.host+i.pathname+i.search+"#"+t+"')"},m=function(t){var e=t.getBBox(1);v(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},b=function(r,n,s){if("path"==r.type){for(var o,a,h,l,u,p=i(n).toLowerCase().split("-"),f=r.paper,x=s?"end":"start",y=r.node,m=r.attrs,b=m["stroke-width"],w=p.length,_="classic",k=3,C=3,S=5;w--;)switch(p[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=p[w];break;case"wide":C=5;break;case"narrow":C=2;break;case"long":k=5;break;case"short":k=2}if("open"==_?(k+=2,C+=2,S+=2,h=1,l=s?4:1,u={fill:"none",stroke:m.stroke}):(l=h=k/2,u={fill:m.stroke,stroke:"none"}),r._.arrows?s?(r._.arrows.endPath&&g[r._.arrows.endPath]--,r._.arrows.endMarker&&g[r._.arrows.endMarker]--):(r._.arrows.startPath&&g[r._.arrows.startPath]--,r._.arrows.startMarker&&g[r._.arrows.startMarker]--):r._.arrows={},"none"!=_){var M="raphael-marker-"+_,B="raphael-marker-"+x+_+k+C+"-obj"+r.id;t._g.doc.getElementById(M)?g[M]++:(f.defs.appendChild(v(v("path"),{"stroke-linecap":"round",d:d[_],id:M})),g[M]=1);var L,F=t._g.doc.getElementById(B);F?(g[B]++,L=F.getElementsByTagName("use")[0]):(F=v(v("marker"),{id:B,markerHeight:C,markerWidth:k,orient:"auto",refX:l,refY:C/2}),L=v(v("use"),{"xlink:href":"#"+M,transform:(s?"rotate(180 "+k/2+" "+C/2+") ":c)+"scale("+k/S+","+C/S+")","stroke-width":(1/((k/S+C/S)/2)).toFixed(4)}),F.appendChild(L),f.defs.appendChild(F),g[B]=1),v(L,u);var T=h*("diamond"!=_&&"oval"!=_);s?(o=r._.arrows.startdx*b||0,a=t.getTotalLength(m.path)-T*b):(o=T*b,a=t.getTotalLength(m.path)-(r._.arrows.enddx*b||0)),(u={})["marker-"+x]="url(#"+B+")",(a||o)&&(u.d=t.getSubpath(m.path,o,a)),v(y,u),r._.arrows[x+"Path"]=M,r._.arrows[x+"Marker"]=B,r._.arrows[x+"dx"]=T,r._.arrows[x+"Type"]=_,r._.arrows[x+"String"]=n}else s?(o=r._.arrows.startdx*b||0,a=t.getTotalLength(m.path)-o):(o=0,a=t.getTotalLength(m.path)-(r._.arrows.enddx*b||0)),r._.arrows[x+"Path"]&&v(y,{d:t.getSubpath(m.path,o,a)}),delete r._.arrows[x+"Path"],delete r._.arrows[x+"Marker"],delete r._.arrows[x+"dx"],delete r._.arrows[x+"Type"],delete r._.arrows[x+"String"];for(u in g)if(g[e](u)&&!g[u]){var A=t._g.doc.getElementById(u);A&&A.parentNode.removeChild(A)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(t,e,r){if(e=w[i(e).toLowerCase()]){for(var n=t.attrs["stroke-width"]||"1",s={round:n,square:n,butt:0}[t.attrs["stroke-linecap"]||r["stroke-linecap"]]||0,o=[],a=e.length;a--;)o[a]=e[a]*n+(a%2?1:-1)*s;v(t.node,{"stroke-dasharray":o.join(",")})}else v(t.node,{"stroke-dasharray":"none"})},k=function(r,s){var h=r.node,u=r.attrs,p=h.style.visibility;for(var d in h.style.visibility="hidden",s)if(s[e](d)){if(!t._availableAttrs[e](d))continue;var g=s[d];switch(u[d]=g,d){case"blur":r.blur(g);break;case"title":var y=h.getElementsByTagName("title");if(y.length&&(y=y[0]))y.firstChild.nodeValue=g;else{y=v("title");var w=t._g.doc.createTextNode(g);y.appendChild(w),h.appendChild(y)}break;case"href":case"target":var k=h.parentNode;if("a"!=k.tagName.toLowerCase()){var S=v("a");k.insertBefore(S,h),S.appendChild(h),k=S}"target"==d?k.setAttributeNS(f,"show","blank"==g?"new":g):k.setAttributeNS(f,d,g);break;case"cursor":h.style.cursor=g;break;case"transform":r.transform(g);break;case"arrow-start":b(r,g);break;case"arrow-end":b(r,g,1);break;case"clip-rect":var M=i(g).split(l);if(4==M.length){r.clip&&r.clip.parentNode.parentNode.removeChild(r.clip.parentNode);var B=v("clipPath"),L=v("rect");B.id=t.createUUID(),v(L,{x:M[0],y:M[1],width:M[2],height:M[3]}),B.appendChild(L),r.paper.defs.appendChild(B),v(h,{"clip-path":"url(#"+B.id+")"}),r.clip=L}if(!g){var F=h.getAttribute("clip-path");if(F){var T=t._g.doc.getElementById(F.replace(/(^url\(#|\)$)/g,c));T&&T.parentNode.removeChild(T),v(h,{"clip-path":c}),delete r.clip}}break;case"path":"path"==r.type&&(v(h,{d:g?u.path=t._pathToAbsolute(g):"M0,0"}),r._.dirty=1,r._.arrows&&("startString"in r._.arrows&&b(r,r._.arrows.startString),"endString"in r._.arrows&&b(r,r._.arrows.endString,1)));break;case"width":if(h.setAttribute(d,g),r._.dirty=1,!u.fx)break;d="x",g=u.x;case"x":u.fx&&(g=-u.x-(u.width||0));case"rx":if("rx"==d&&"rect"==r.type)break;case"cx":h.setAttribute(d,g),r.pattern&&m(r),r._.dirty=1;break;case"height":if(h.setAttribute(d,g),r._.dirty=1,!u.fy)break;d="y",g=u.y;case"y":u.fy&&(g=-u.y-(u.height||0));case"ry":if("ry"==d&&"rect"==r.type)break;case"cy":h.setAttribute(d,g),r.pattern&&m(r),r._.dirty=1;break;case"r":"rect"==r.type?v(h,{rx:g,ry:g}):h.setAttribute(d,g),r._.dirty=1;break;case"src":"image"==r.type&&h.setAttributeNS(f,"href",g);break;case"stroke-width":1==r._.sx&&1==r._.sy||(g/=o(a(r._.sx),a(r._.sy))||1),h.setAttribute(d,g),u["stroke-dasharray"]&&_(r,u["stroke-dasharray"],s),r._.arrows&&("startString"in r._.arrows&&b(r,r._.arrows.startString),"endString"in r._.arrows&&b(r,r._.arrows.endString,1));break;case"stroke-dasharray":_(r,g,s);break;case"fill":var A=i(g).match(t._ISURL);if(A){B=v("pattern");var P=v("image");B.id=t.createUUID(),v(B,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),v(P,{x:0,y:0,"xlink:href":A[1]}),B.appendChild(P),function(e){t._preload(A[1],(function(){var t=this.offsetWidth,i=this.offsetHeight;v(e,{width:t,height:i}),v(P,{width:t,height:i})}))}(B),r.paper.defs.appendChild(B),v(h,{fill:"url(#"+B.id+")"}),r.pattern=B,r.pattern&&m(r);break}var E=t.getRGB(g);if(E.error){if(("circle"==r.type||"ellipse"==r.type||"r"!=i(g).charAt())&&x(r,g)){if("opacity"in u||"fill-opacity"in u){var z=t._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,c));if(z){var I=z.getElementsByTagName("stop");v(I[I.length-1],{"stop-opacity":("opacity"in u?u.opacity:1)*("fill-opacity"in u?u["fill-opacity"]:1)})}}u.gradient=g,u.fill="none";break}}else delete s.gradient,delete u.gradient,!t.is(u.opacity,"undefined")&&t.is(s.opacity,"undefined")&&v(h,{opacity:u.opacity}),!t.is(u["fill-opacity"],"undefined")&&t.is(s["fill-opacity"],"undefined")&&v(h,{"fill-opacity":u["fill-opacity"]});E[e]("opacity")&&v(h,{"fill-opacity":E.opacity>1?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<d;f++)l=v("tspan"),f&&v(l,{dy:1.2*h,x:o.x}),l.appendChild(t._g.doc.createTextNode(u[f])),a.appendChild(l),p[f]=l}else for(f=0,d=(p=a.getElementsByTagName("tspan")).length;f<d;f++)f?v(p[f],{dy:1.2*h,x:o.x}):v(p[0],{dy:0});v(a,{x:o.x,y:o.y}),r._.dirty=1;var g=r._getBBox(),x=o.y-(g.y+g.height/2);x&&t.is(x,"finite")&&v(p[0],{dy:x})}},S=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},M=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=i,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},B=t.el;M.prototype=B,B.constructor=M,t._engine.path=function(t,e){var i=v("path");e.canvas&&e.canvas.appendChild(i);var r=new M(i,e);return r.type="path",k(r,{fill:"none",stroke:"#000",path:t}),r},B.rotate=function(t,e,n){if(this.removed)return this;if((t=i(t).split(l)).length-1&&(e=r(t[1]),n=r(t[2])),t=r(t[0]),null==n&&(e=n),null==e||null==n){var s=this.getBBox(1);e=s.x+s.width/2,n=s.y+s.height/2}return this.transform(this._.transform.concat([["r",t,e,n]])),this},B.scale=function(t,e,n,s){if(this.removed)return this;if((t=i(t).split(l)).length-1&&(e=r(t[1]),n=r(t[2]),s=r(t[3])),t=r(t[0]),null==e&&(e=t),null==s&&(n=s),null==n||null==s)var o=this.getBBox(1);return n=null==n?o.x+o.width/2:n,s=null==s?o.y+o.height/2:s,this.transform(this._.transform.concat([["s",t,e,n,s]])),this},B.translate=function(t,e){return this.removed||((t=i(t).split(l)).length-1&&(e=r(t[1])),t=r(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]]))),this},B.transform=function(i){var r=this._;if(null==i)return r.transform;if(t._extractTransform(this,i),this.clip&&v(this.clip,{transform:this.matrix.invert()}),this.pattern&&m(this),this.node&&v(this.node,{transform:this.matrix}),1!=r.sx||1!=r.sy){var n=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":n})}return this},B.hide=function(){return this.removed||(this.node.style.display="none"),this},B.show=function(){return this.removed||(this.node.style.display=""),this},B.remove=function(){var e=S(this.node);if(!this.removed&&e.parentNode){var i=this.paper;for(var r in i.__set__&&i.__set__.exclude(this),u.unbind("raphael.*.*."+this.id),this.gradient&&i.defs.removeChild(this.gradient),t._tear(this,i),e.parentNode.removeChild(e),this.removeData(),this)this[r]="function"==typeof this[r]?t._removedFactory(r):null;this.removed=!0}},B._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,i=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(i=!0,e.display="");var r={};try{r=this.node.getBBox()}catch(t){r={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{r=r||{},i&&(e.display="none")}return t&&this.hide(),r},B.attr=function(i,r){if(this.removed)return this;if(null==i){var n={};for(var s in this.attrs)this.attrs[e](s)&&(n[s]=this.attrs[s]);return n.gradient&&"none"==n.fill&&(n.fill=n.gradient)&&delete n.gradient,n.transform=this._.transform,n}if(null==r&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==i)return this._.transform;for(var o=i.split(l),a={},h=0,c=o.length;h<c;h++)(i=o[h])in this.attrs?a[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?a[i]=this.paper.customAttributes[i].def:a[i]=t._availableAttrs[i];return c-1?a:a[o[0]]}if(null==r&&t.is(i,"array")){for(a={},h=0,c=i.length;h<c;h++)a[i[h]]=this.attr(i[h]);return a}if(null!=r){var p={};p[i]=r}else null!=i&&t.is(i,"object")&&(p=i);for(var f in p)u("raphael.attr."+f+"."+this.id,this,p[f]);for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&p[e](f)&&t.is(this.paper.customAttributes[f],"function")){var d=this.paper.customAttributes[f].apply(this,[].concat(p[f]));for(var g in this.attrs[f]=p[f],d)d[e](g)&&(p[g]=d[g])}return k(this,p),this},B.toFront=function(){if(this.removed)return this;var e=S(this.node);e.parentNode.appendChild(e);var i=this.paper;return i.top!=this&&t._tofront(this,i),this},B.toBack=function(){if(this.removed)return this;var e=S(this.node),i=e.parentNode;return i.insertBefore(e,i.firstChild),t._toback(this,this.paper),this.paper,this},B.insertAfter=function(e){if(this.removed||!e)return this;var i=S(this.node),r=S(e.node||e[e.length-1].node);return r.nextSibling?r.parentNode.insertBefore(i,r.nextSibling):r.parentNode.appendChild(i),t._insertafter(this,e,this.paper),this},B.insertBefore=function(e){if(this.removed||!e)return this;var i=S(this.node),r=S(e.node||e[0].node);return r.parentNode.insertBefore(i,r),t._insertbefore(this,e,this.paper),this},B.blur=function(e){var i=this;if(0!=+e){var r=v("filter"),n=v("feGaussianBlur");i.attrs.blur=e,r.id=t.createUUID(),v(n,{stdDeviation:+e||1.5}),r.appendChild(n),i.paper.defs.appendChild(r),i._blur=r,v(i.node,{filter:"url(#"+r.id+")"})}else i._blur&&(i._blur.parentNode.removeChild(i._blur),delete i._blur,delete i.attrs.blur),i.node.removeAttribute("filter");return i},t._engine.circle=function(t,e,i,r){var n=v("circle");t.canvas&&t.canvas.appendChild(n);var s=new M(n,t);return s.attrs={cx:e,cy:i,r:r,fill:"none",stroke:"#000"},s.type="circle",v(n,s.attrs),s},t._engine.rect=function(t,e,i,r,n,s){var o=v("rect");t.canvas&&t.canvas.appendChild(o);var a=new M(o,t);return a.attrs={x:e,y:i,width:r,height:n,rx:s||0,ry:s||0,fill:"none",stroke:"#000"},a.type="rect",v(o,a.attrs),a},t._engine.ellipse=function(t,e,i,r,n){var s=v("ellipse");t.canvas&&t.canvas.appendChild(s);var o=new M(s,t);return o.attrs={cx:e,cy:i,rx:r,ry:n,fill:"none",stroke:"#000"},o.type="ellipse",v(s,o.attrs),o},t._engine.image=function(t,e,i,r,n,s){var o=v("image");v(o,{x:i,y:r,width:n,height:s,preserveAspectRatio:"none"}),o.setAttributeNS(f,"href",e),t.canvas&&t.canvas.appendChild(o);var a=new M(o,t);return a.attrs={x:i,y:r,width:n,height:s,src:e},a.type="image",a},t._engine.text=function(e,i,r,n){var s=v("text");e.canvas&&e.canvas.appendChild(s);var o=new M(s,e);return o.attrs={x:i,y:r,"text-anchor":"middle",text:n,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},o.type="text",k(o,o.attrs),o},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e&&e.container;if(!i)throw new Error("SVG container not found.");var r,n=e.x,s=e.y,o=e.width,a=e.height,h=v("svg"),l="overflow:hidden;";return n=n||0,s=s||0,v(h,{height:a=a||342,version:1.1,width:o=o||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==i?(h.style.cssText=l+"position:absolute;left:"+n+"px;top:"+s+"px",t._g.doc.body.appendChild(h),r=1):(h.style.cssText=l+"position:relative",i.firstChild?i.insertBefore(h,i.firstChild):i.appendChild(h)),(i=new t._Paper).width=o,i.height=a,i.canvas=h,i.clear(),i._left=i._top=0,r&&(i.renderfix=function(){}),i.renderfix(),i},t._engine.setViewBox=function(t,e,i,r,n){u("raphael.setViewBox",this,this._viewBox,[t,e,i,r,n]);var s,a,h=this.getSize(),l=o(i/h.width,r/h.height),c=this.top,f=n?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(l=1),delete this._vbSize,s="0 0 "+this.width+p+this.height):(this._vbSize=l,s=t+p+e+p+i+p+r),v(this.canvas,{viewBox:s,preserveAspectRatio:f});l&&c;)a="stroke-width"in c.attrs?c.attrs["stroke-width"]:1,c.attr({"stroke-width":a}),c._.dirty=1,c._.dirtyT=1,c=c.prev;return this._viewBox=[t,e,i,r,!!n],this},t.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(i){t=e.createSVGMatrix()}var r=-t.e%1,n=-t.f%1;(r||n)&&(r&&(this._left=(this._left+r)%1,i.left=this._left+"px"),n&&(this._top=(this._top+n)%1,i.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=v("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=v("defs"))},t.prototype.remove=function(){for(var e in u("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var L=t.st;for(var F in B)B[e](F)&&!L[e](F)&&(L[F]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(F))}}.apply(e,r))||(t.exports=n)},function(t,e,i){var r,n;r=[i(0)],void 0===(n=function(t){if(!t||t.vml){var e="hasOwnProperty",i=String,r=parseFloat,n=Math,s=n.round,o=n.max,a=n.min,h=n.abs,l=/[, ]+/,u=t.eve,c=" ",p="",f={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},d=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,v=/-?[^,\s-]+/g,x="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",y=21600,m={path:1,rect:1,image:1},b={circle:1,ellipse:1},w=function(e,i,r){var n=t.matrix();return n.rotate(-e,.5,.5),{dx:n.x(i,r),dy:n.y(i,r)}},_=function(t,e,i,r,n,s){var o=t._,a=t.matrix,l=o.fillpos,u=t.node,p=u.style,f=1,d="",g=y/e,v=y/i;if(p.visibility="hidden",e&&i){if(u.coordsize=h(g)+c+h(v),p.rotation=s*(e*i<0?-1:1),s){var x=w(s,r,n);r=x.dx,n=x.dy}if(e<0&&(d+="x"),i<0&&(d+=" y")&&(f=-1),p.flip=d,u.coordorigin=r*-g+c+n*-v,l||o.fillsize){var m=u.getElementsByTagName("fill");m=m&&m[0],u.removeChild(m),l&&(x=w(s,a.x(l[0],l[1]),a.y(l[0],l[1])),m.position=x.dx*f+c+x.dy*f),o.fillsize&&(m.size=o.fillsize[0]*h(e)+c+o.fillsize[1]*h(i)),u.appendChild(m)}p.visibility="visible"}};t.toString=function(){return"Your browser doesnt support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var k,C=function(t,e,r){for(var n=i(e).toLowerCase().split("-"),s=r?"end":"start",o=n.length,a="classic",h="medium",l="medium";o--;)switch(n[o]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":a=n[o];break;case"wide":case"narrow":l=n[o];break;case"long":case"short":h=n[o]}var u=t.node.getElementsByTagName("stroke")[0];u[s+"arrow"]=a,u[s+"arrowlength"]=h,u[s+"arrowwidth"]=l},S=function(n,h){n.attrs=n.attrs||{};var u=n.node,g=n.attrs,x=u.style,w=m[n.type]&&(h.x!=g.x||h.y!=g.y||h.width!=g.width||h.height!=g.height||h.cx!=g.cx||h.cy!=g.cy||h.rx!=g.rx||h.ry!=g.ry||h.r!=g.r),S=b[n.type]&&(g.cx!=h.cx||g.cy!=h.cy||g.r!=h.r||g.rx!=h.rx||g.ry!=h.ry),B=n;for(var L in h)h[e](L)&&(g[L]=h[L]);if(w&&(g.path=t._getPath[n.type](n),n._.dirty=1),h.href&&(u.href=h.href),h.title&&(u.title=h.title),h.target&&(u.target=h.target),h.cursor&&(x.cursor=h.cursor),"blur"in h&&n.blur(h.blur),(h.path&&"path"==n.type||w)&&(u.path=function(e){var r=/[ahqstv]/gi,n=t._pathToAbsolute;if(i(e).match(r)&&(n=t._path2curve),r=/[clmz]/g,n==t._pathToAbsolute&&!i(e).match(r)){var o=i(e).replace(d,(function(t,e,i){var r=[],n="m"==e.toLowerCase(),o=f[e];return i.replace(v,(function(t){n&&2==r.length&&(o+=r+f["m"==e?"l":"L"],r=[]),r.push(s(t*y))})),o+r}));return o}var a,h,l=n(e);o=[];for(var u=0,g=l.length;u<g;u++){a=l[u],"z"==(h=l[u][0].toLowerCase())&&(h="x");for(var x=1,m=a.length;x<m;x++)h+=s(a[x]*y)+(x!=m-1?",":p);o.push(h)}return o.join(c)}(~i(g.path).toLowerCase().indexOf("r")?t._pathToAbsolute(g.path):g.path),n._.dirty=1,"image"==n.type&&(n._.fillpos=[g.x,g.y],n._.fillsize=[g.width,g.height],_(n,1,1,0,0,0))),"transform"in h&&n.transform(h.transform),S){var F=+g.cx,T=+g.cy,A=+g.rx||+g.r||0,P=+g.ry||+g.r||0;u.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s((F-A)*y),s((T-P)*y),s((F+A)*y),s((T+P)*y),s(F*y)),n._.dirty=1}if("clip-rect"in h){var E=i(h["clip-rect"]).split(l);if(4==E.length){E[2]=+E[2]+ +E[0],E[3]=+E[3]+ +E[1];var z=u.clipRect||t._g.doc.createElement("div"),I=z.style;I.clip=t.format("rect({1}px {2}px {3}px {0}px)",E),u.clipRect||(I.position="absolute",I.top=0,I.left=0,I.width=n.paper.width+"px",I.height=n.paper.height+"px",u.parentNode.insertBefore(z,u),z.appendChild(u),u.clipRect=z)}h["clip-rect"]||u.clipRect&&(u.clipRect.style.clip="auto")}if(n.textpath){var D=n.textpath.style;h.font&&(D.font=h.font),h["font-family"]&&(D.fontFamily='"'+h["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,p)+'"'),h["font-size"]&&(D.fontSize=h["font-size"]),h["font-weight"]&&(D.fontWeight=h["font-weight"]),h["font-style"]&&(D.fontStyle=h["font-style"])}if("arrow-start"in h&&C(B,h["arrow-start"]),"arrow-end"in h&&C(B,h["arrow-end"],1),null!=h.opacity||null!=h.fill||null!=h.src||null!=h.stroke||null!=h["stroke-width"]||null!=h["stroke-opacity"]||null!=h["fill-opacity"]||null!=h["stroke-dasharray"]||null!=h["stroke-miterlimit"]||null!=h["stroke-linejoin"]||null!=h["stroke-linecap"]){var R=u.getElementsByTagName("fill");if(!(R=R&&R[0])&&(R=k("fill")),"image"==n.type&&h.src&&(R.src=h.src),h.fill&&(R.on=!0),null!=R.on&&"none"!=h.fill&&null!==h.fill||(R.on=!1),R.on&&h.fill){var H=i(h.fill).match(t._ISURL);if(H){R.parentNode==u&&u.removeChild(R),R.rotate=!0,R.src=H[1],R.type="tile";var N=n.getBBox(1);R.position=N.x+c+N.y,n._.fillpos=[N.x,N.y],t._preload(H[1],(function(){n._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else R.color=t.getRGB(h.fill).hex,R.src=p,R.type="solid",t.getRGB(h.fill).error&&(B.type in{circle:1,ellipse:1}||"r"!=i(h.fill).charAt())&&M(B,h.fill,R)&&(g.fill="none",g.gradient=h.fill,R.rotate=!1)}if("fill-opacity"in h||"opacity"in h){var O=((+g["fill-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+t.getRGB(h.fill).o+1||2)-1);O=a(o(O,0),1),R.opacity=O,R.src&&(R.color="none")}u.appendChild(R);var G=u.getElementsByTagName("stroke")&&u.getElementsByTagName("stroke")[0],Y=!1;!G&&(Y=G=k("stroke")),(h.stroke&&"none"!=h.stroke||h["stroke-width"]||null!=h["stroke-opacity"]||h["stroke-dasharray"]||h["stroke-miterlimit"]||h["stroke-linejoin"]||h["stroke-linecap"])&&(G.on=!0),("none"==h.stroke||null===h.stroke||null==G.on||0==h.stroke||0==h["stroke-width"])&&(G.on=!1);var j=t.getRGB(h.stroke);G.on&&h.stroke&&(G.color=j.hex),O=((+g["stroke-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+j.o+1||2)-1);var W=.75*(r(h["stroke-width"])||1);if(O=a(o(O,0),1),null==h["stroke-width"]&&(W=g["stroke-width"]),h["stroke-width"]&&(G.weight=W),W&&W<1&&(O*=W)&&(G.weight=1),G.opacity=O,h["stroke-linejoin"]&&(G.joinstyle=h["stroke-linejoin"]||"miter"),G.miterlimit=h["stroke-miterlimit"]||8,h["stroke-linecap"]&&(G.endcap="butt"==h["stroke-linecap"]?"flat":"square"==h["stroke-linecap"]?"square":"round"),"stroke-dasharray"in h){var q={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};G.dashstyle=q[e](h["stroke-dasharray"])?q[h["stroke-dasharray"]]:p}Y&&u.appendChild(G)}if("text"==B.type){B.paper.canvas.style.display=p;var X=B.paper.span,V=g.font&&g.font.match(/\d+(?:\.\d*)?(?=px)/);x=X.style,g.font&&(x.font=g.font),g["font-family"]&&(x.fontFamily=g["font-family"]),g["font-weight"]&&(x.fontWeight=g["font-weight"]),g["font-style"]&&(x.fontStyle=g["font-style"]),V=r(g["font-size"]||V&&V[0])||10,x.fontSize=100*V+"px",B.textpath.string&&(X.innerHTML=i(B.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));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<Q;Z++)if($[Z]in h){B._.dirty=1;break}switch(g["text-anchor"]){case"start":B.textpath.style["v-text-align"]="left",B.bbx=B.W/2;break;case"end":B.textpath.style["v-text-align"]="right",B.bbx=-B.W/2;break;default:B.textpath.style["v-text-align"]="center",B.bbx=0}B.textpath.style["v-text-kern"]=!0}},M=function(e,s,o){e.attrs=e.attrs||{},e.attrs;var a=Math.pow,h="linear",l=".5 .5";if(e.attrs.gradient=s,s=(s=i(s).replace(t._radial_gradient,(function(t,e,i){return h="radial",e&&i&&(e=r(e),i=r(i),a(e-.5,2)+a(i-.5,2)>.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<v;g++)f[g].offset&&d.push(f[g].offset+c+f[g].color);o.colors=d.length?d.join():"0% "+o.color,"radial"==h?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=l,o.angle=0):(o.type="gradient",o.angle=(270-u)%360),e.appendChild(o)}return 1},B=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=i,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},L=t.el;B.prototype=L,L.constructor=B,L.transform=function(e){if(null==e)return this._.transform;var r,n=this.paper._viewBoxShift,s=n?"s"+[n.scale,n.scale]+"-1-1t"+[n.dx,n.dy]:p;n&&(r=e=i(e).replace(/\.{3}|\u2026/g,this._.transform||p)),t._extractTransform(this,s+e);var o,a=this.matrix.clone(),h=this.skew,l=this.node,u=~i(this.attrs.fill).indexOf("-"),f=!i(this.attrs.fill).indexOf("url(");if(a.translate(1,1),f||u||"image"==this.type)if(h.matrix="1 0 0 1",h.offset="0 0",o=a.split(),u&&o.noRotation||!o.isSimple){l.style.filter=a.toFilter();var d=this.getBBox(),g=this.getBBox(1),v=d.x-g.x,x=d.y-g.y;l.coordorigin=v*-y+c+x*-y,_(this,1,1,v,x,0)}else l.style.filter=p,_(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else l.style.filter=p,h.matrix=i(a),h.offset=a.offset();return null!==r&&(this._.transform=r,t._extractTransform(this,r)),this},L.rotate=function(t,e,n){if(this.removed)return this;if(null!=t){if((t=i(t).split(l)).length-1&&(e=r(t[1]),n=r(t[2])),t=r(t[0]),null==n&&(e=n),null==e||null==n){var s=this.getBBox(1);e=s.x+s.width/2,n=s.y+s.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,n]])),this}},L.translate=function(t,e){return this.removed||((t=i(t).split(l)).length-1&&(e=r(t[1])),t=r(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]]))),this},L.scale=function(t,e,n,s){if(this.removed)return this;if((t=i(t).split(l)).length-1&&(e=r(t[1]),n=r(t[2]),s=r(t[3]),isNaN(n)&&(n=null),isNaN(s)&&(s=null)),t=r(t[0]),null==e&&(e=t),null==s&&(n=s),null==n||null==s)var o=this.getBBox(1);return n=null==n?o.x+o.width/2:n,s=null==s?o.y+o.height/2:s,this.transform(this._.transform.concat([["s",t,e,n,s]])),this._.dirtyT=1,this},L.hide=function(){return!this.removed&&(this.node.style.display="none"),this},L.show=function(){return!this.removed&&(this.node.style.display=p),this},L.auxGetBBox=t.el.getBBox,L.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},i=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=i,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=i,e.width=t.width*i,e.height=t.height*i,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},L._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},L.remove=function(){if(!this.removed&&this.node.parentNode){for(var e in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},L.attr=function(i,r){if(this.removed)return this;if(null==i){var n={};for(var s in this.attrs)this.attrs[e](s)&&(n[s]=this.attrs[s]);return n.gradient&&"none"==n.fill&&(n.fill=n.gradient)&&delete n.gradient,n.transform=this._.transform,n}if(null==r&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var o=i.split(l),a={},h=0,c=o.length;h<c;h++)(i=o[h])in this.attrs?a[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?a[i]=this.paper.customAttributes[i].def:a[i]=t._availableAttrs[i];return c-1?a:a[o[0]]}if(this.attrs&&null==r&&t.is(i,"array")){for(a={},h=0,c=i.length;h<c;h++)a[i[h]]=this.attr(i[h]);return a}var p;for(var f in null!=r&&((p={})[i]=r),null==r&&t.is(i,"object")&&(p=i),p)u("raphael.attr."+f+"."+this.id,this,p[f]);if(p){for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&p[e](f)&&t.is(this.paper.customAttributes[f],"function")){var d=this.paper.customAttributes[f].apply(this,[].concat(p[f]));for(var g in this.attrs[f]=p[f],d)d[e](g)&&(p[g]=d[g])}p.text&&"text"==this.type&&(this.textpath.string=p.text),S(this,p)}return this},L.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},L.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this},L.insertAfter=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper)),this},L.insertBefore=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper)),this},L.blur=function(e){var i=this.node.runtimeStyle,r=i.filter;return r=r.replace(g,p),0!=+e?(this.attrs.blur=e,i.filter=r+c+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",i.margin=t.format("-{0}px 0 0 -{0}px",s(+e||1.5))):(i.filter=r,i.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var i=k("shape");i.style.cssText=x,i.coordsize=y+c+y,i.coordorigin=e.coordorigin;var r=new B(i,e),n={fill:"none",stroke:"#000"};t&&(n.path=t),r.type="path",r.path=[],r.Path=p,S(r,n),e.canvas&&e.canvas.appendChild(i);var s=k("skew");return s.on=!0,i.appendChild(s),r.skew=s,r.transform(p),r},t._engine.rect=function(e,i,r,n,s,o){var a=t._rectPath(i,r,n,s,o),h=e.path(a),l=h.attrs;return h.X=l.x=i,h.Y=l.y=r,h.W=l.width=n,h.H=l.height=s,l.r=o,l.path=a,h.type="rect",h},t._engine.ellipse=function(t,e,i,r,n){var s=t.path();return s.attrs,s.X=e-r,s.Y=i-n,s.W=2*r,s.H=2*n,s.type="ellipse",S(s,{cx:e,cy:i,rx:r,ry:n}),s},t._engine.circle=function(t,e,i,r){var n=t.path();return n.attrs,n.X=e-r,n.Y=i-r,n.W=n.H=2*r,n.type="circle",S(n,{cx:e,cy:i,r:r}),n},t._engine.image=function(e,i,r,n,s,o){var a=t._rectPath(r,n,s,o),h=e.path(a).attr({stroke:"none"}),l=h.attrs,u=h.node,c=u.getElementsByTagName("fill")[0];return l.src=i,h.X=l.x=r,h.Y=l.y=n,h.W=l.width=s,h.H=l.height=o,l.path=a,h.type="image",c.parentNode==u&&u.removeChild(c),c.rotate=!0,c.src=i,c.type="tile",h._.fillpos=[r,n],h._.fillsize=[s,o],u.appendChild(c),_(h,1,1,0,0,0),h},t._engine.text=function(e,r,n,o){var a=k("shape"),h=k("path"),l=k("textpath");r=r||0,n=n||0,o=o||"",h.v=t.format("m{0},{1}l{2},{1}",s(r*y),s(n*y),s(r*y)+1),h.textpathok=!0,l.string=i(o),l.on=!0,a.style.cssText=x,a.coordsize=y+c+y,a.coordorigin="0 0";var u=new B(a,e),f={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:o};u.shape=a,u.path=h,u.textpath=l,u.type="text",u.attrs.text=i(o),u.attrs.x=r,u.attrs.y=n,u.attrs.w=1,u.attrs.h=1,S(u,f),a.appendChild(l),a.appendChild(h),e.canvas.appendChild(a);var d=k("skew");return d.on=!0,a.appendChild(d),u.skew=d,u.transform(p),u},t._engine.setSize=function(e,i){var r=this.canvas.style;return this.width=e,this.height=i,e==+e&&(e+="px"),i==+i&&(i+="px"),r.width=e,r.height=i,r.clip="rect(0 "+e+" "+i+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,i,r,n,s){t.eve("raphael.setViewBox",this,this._viewBox,[e,i,r,n,s]);var o,a,h=this.getSize(),l=h.width,u=h.height;return s&&(r*(o=u/n)<l&&(e-=(l-r*o)/2/o),n*(a=l/r)<u&&(i-=(u-n*a)/2/a)),this._viewBox=[e,i,r,n,!!s],this._viewBoxShift={dx:-e,dy:-i,scale:h},this.forEach((function(t){t.transform("...")})),this},t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),k=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}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)}])}}]);