1.4.0-pre
[raphael] / raphael-min.js
index a9ba36d..ed0dcb3 100644 (file)
@@ -1,7 +1,113 @@
 /*
- * Raphael 1.3.2 - JavaScript Vector Library
+ * Raphael 1.4.0 - JavaScript Vector Library
  *
- * Copyright (c) 2009 Dmitry Baranovskiy (http://raphaeljs.com)
+ * Copyright (c) 2010 Dmitry Baranovskiy (http://raphaeljs.com)
  * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
  */
-Raphael=(function(){var a=/[, ]+/,aS=/^(circle|rect|path|ellipse|text|image)$/,T="hasOwnProperty",M=document,ax=window,l={was:ax[T]("Raphael"),is:ax.Raphael},ap=function(){if(ap.is(arguments[0],"array")){var d=arguments[0],e=w[a0](ap,d.splice(0,3+ap.is(d[0],am))),S=e.set();for(var R=0,a5=d[m];R<a5;R++){var E=d[R]||{};aS.test(E.type)&&S[f](e[E.type]().attr(E));}return S;}return w[a0](ap,arguments);},aX=function(){},aP="appendChild",a0="apply",aW="concat",aw="",ao=" ",z="split",G="click dblclick mousedown mousemove mouseout mouseover mouseup"[z](ao),aD="join",m="length",a2="prototype",a4=String[a2].toLowerCase,ac=Math,g=ac.max,aM=ac.min,am="number",aE="toString",aA=Object[a2][aE],aU={},aQ=ac.pow,f="push",aY=/^(?=[\da-f]$)/,c=/^url\(['"]?([^\)]+)['"]?\)$/i,x=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgb\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|rgb\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\)|hs[bl]\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hs[bl]\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i,P=ac.round,v="setAttribute",X=parseFloat,H=parseInt,aR=String[a2].toUpperCase,j={"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/",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",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",translation:"0 0",width:0,x:0,y:0},aa={along:"along","clip-rect":"csv",cx:am,cy:am,fill:"colour","fill-opacity":am,"font-size":am,height:am,opacity:am,path:"path",r:am,rotation:"csv",rx:am,ry:am,scale:"csv",stroke:"colour","stroke-opacity":am,"stroke-width":am,translation:"csv",width:am,x:am,y:am},aT="replace";ap.version="1.3.2";ap.type=(ax.SVGAngle||M.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");if(ap.type=="VML"){var ah=document.createElement("div");ah.innerHTML="<!--[if vml]><br><br><![endif]-->";if(ah.childNodes[m]!=2){return null;}}ap.svg=!(ap.vml=ap.type=="VML");aX[a2]=ap[a2];ap._id=0;ap._oid=0;ap.fn={};ap.is=function(e,d){d=a4.call(d);return((d=="object"||d=="undefined")&&typeof e==d)||(e==null&&d=="null")||a4.call(aA.call(e).slice(8,-1))==d;};ap.setWindow=function(d){ax=d;M=ax.document;};var aH=function(e){if(ap.vml){var d=/^\s+|\s+$/g;aH=ak(function(R){var S;R=(R+aw)[aT](d,aw);try{var a5=new ActiveXObject("htmlfile");a5.write("<body>");a5.close();S=a5.body;}catch(a7){S=createPopup().document.body;}var i=S.createTextRange();try{S.style.color=R;var a6=i.queryCommandValue("ForeColor");a6=((a6&255)<<16)|(a6&65280)|((a6&16711680)>>>16);return"#"+("000000"+a6[aE](16)).slice(-6);}catch(a7){return"none";}});}else{var E=M.createElement("i");E.title="Rapha\xebl Colour Picker";E.style.display="none";M.body[aP](E);aH=ak(function(i){E.style.color=i;return M.defaultView.getComputedStyle(E,aw).getPropertyValue("color");});}return aH(e);};ap.hsb2rgb=ak(function(a8,a6,bc){if(ap.is(a8,"object")&&"h" in a8&&"s" in a8&&"b" in a8){bc=a8.b;a6=a8.s;a8=a8.h;}var R,S,bd;if(bc==0){return{r:0,g:0,b:0,hex:"#000"};}if(a8>1||a6>1||bc>1){a8/=255;a6/=255;bc/=255;}var a5=~~(a8*6),a9=(a8*6)-a5,E=bc*(1-a6),e=bc*(1-(a6*a9)),be=bc*(1-(a6*(1-a9)));R=[bc,e,E,E,be,bc,bc][a5];S=[be,bc,bc,e,E,E,be][a5];bd=[E,E,be,bc,bc,e,E][a5];R*=255;S*=255;bd*=255;var ba={r:R,g:S,b:bd},d=(~~R)[aE](16),a7=(~~S)[aE](16),bb=(~~bd)[aE](16);d=d[aT](aY,"0");a7=a7[aT](aY,"0");bb=bb[aT](aY,"0");ba.hex="#"+d+a7+bb;return ba;},ap);ap.rgb2hsb=ak(function(d,e,a6){if(ap.is(d,"object")&&"r" in d&&"g" in d&&"b" in d){a6=d.b;e=d.g;d=d.r;}if(ap.is(d,"string")){var a8=ap.getRGB(d);d=a8.r;e=a8.g;a6=a8.b;}if(d>1||e>1||a6>1){d/=255;e/=255;a6/=255;}var a5=g(d,e,a6),i=aM(d,e,a6),R,E,S=a5;if(i==a5){return{h:0,s:0,b:a5};}else{var a7=(a5-i);E=a7/a5;if(d==a5){R=(e-a6)/a7;}else{if(e==a5){R=2+((a6-d)/a7);}else{R=4+((d-e)/a7);}}R/=6;R<0&&R++;R>1&&R--;}return{h:R,s:E,b:S};},ap);var aI=/,?([achlmqrstvxz]),?/gi;ap._path2string=function(){return this.join(",")[aT](aI,"$1");};function ak(E,e,d){function i(){var R=Array[a2].slice.call(arguments,0),a5=R[aD]("\u25ba"),S=i.cache=i.cache||{},a6=i.count=i.count||[];if(S[T](a5)){return d?d(S[a5]):S[a5];}a6[m]>=1000&&delete S[a6.shift()];a6[f](a5);S[a5]=E[a0](e,R);return d?d(S[a5]):S[a5];}return i;}ap.getRGB=ak(function(d){if(!d||!!((d=d+aw).indexOf("-")+1)){return{r:-1,g:-1,b:-1,hex:"none",error:1};}if(d=="none"){return{r:-1,g:-1,b:-1,hex:"none"};}!(({hs:1,rg:1})[T](d.substring(0,2))||d.charAt()=="#")&&(d=aH(d));var S,i,E,a7,a8,a5=d.match(x);if(a5){if(a5[2]){a7=H(a5[2].substring(5),16);E=H(a5[2].substring(3,5),16);i=H(a5[2].substring(1,3),16);}if(a5[3]){a7=H((a8=a5[3].charAt(3))+a8,16);E=H((a8=a5[3].charAt(2))+a8,16);i=H((a8=a5[3].charAt(1))+a8,16);}if(a5[4]){a5=a5[4][z](/\s*,\s*/);i=X(a5[0]);E=X(a5[1]);a7=X(a5[2]);}if(a5[5]){a5=a5[5][z](/\s*,\s*/);i=X(a5[0])*2.55;E=X(a5[1])*2.55;a7=X(a5[2])*2.55;}if(a5[6]){a5=a5[6][z](/\s*,\s*/);i=X(a5[0]);E=X(a5[1]);a7=X(a5[2]);return ap.hsb2rgb(i,E,a7);}if(a5[7]){a5=a5[7][z](/\s*,\s*/);i=X(a5[0])*2.55;E=X(a5[1])*2.55;a7=X(a5[2])*2.55;return ap.hsb2rgb(i,E,a7);}a5={r:i,g:E,b:a7};var e=(~~i)[aE](16),R=(~~E)[aE](16),a6=(~~a7)[aE](16);e=e[aT](aY,"0");R=R[aT](aY,"0");a6=a6[aT](aY,"0");a5.hex="#"+e+R+a6;return a5;}return{r:-1,g:-1,b:-1,hex:"none",error:1};},ap);ap.getColor=function(e){var i=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||0.75},d=this.hsb2rgb(i.h,i.s,i.b);i.h+=0.075;if(i.h>1){i.h=0;i.s-=0.2;i.s<=0&&(this.getColor.start={h:0,s:1,b:i.b});}return d.hex;};ap.getColor.reset=function(){delete this.start;};var ay=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,an=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig;ap.parsePathString=ak(function(d){if(!d){return null;}var i={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=[];if(ap.is(d,"array")&&ap.is(d[0],"array")){e=az(d);}if(!e[m]){(d+aw)[aT](ay,function(R,E,a6){var a5=[],S=a4.call(E);a6[aT](an,function(a8,a7){a7&&a5[f](+a7);});if(S=="m"&&a5[m]>2){e[f]([E][aW](a5.splice(0,2)));S="l";E=E=="m"?"l":"L";}while(a5[m]>=i[S]){e[f]([E][aW](a5.splice(0,i[S])));if(!i[S]){break;}}});}e[aE]=ap._path2string;return e;});ap.findDotsAtSegment=function(e,d,bj,bh,a5,R,a7,a6,bd){var bb=1-bd,ba=aQ(bb,3)*e+aQ(bb,2)*3*bd*bj+bb*3*bd*bd*a5+aQ(bd,3)*a7,a8=aQ(bb,3)*d+aQ(bb,2)*3*bd*bh+bb*3*bd*bd*R+aQ(bd,3)*a6,bf=e+2*bd*(bj-e)+bd*bd*(a5-2*bj+e),be=d+2*bd*(bh-d)+bd*bd*(R-2*bh+d),bi=bj+2*bd*(a5-bj)+bd*bd*(a7-2*a5+bj),bg=bh+2*bd*(R-bh)+bd*bd*(a6-2*R+bh),bc=(1-bd)*e+bd*bj,a9=(1-bd)*d+bd*bh,E=(1-bd)*a5+bd*a7,i=(1-bd)*R+bd*a6,S=(90-ac.atan((bf-bi)/(be-bg))*180/ac.PI);(bf>bi||be<bg)&&(S+=180);return{x:ba,y:a8,m:{x:bf,y:be},n:{x:bi,y:bg},start:{x:bc,y:a9},end:{x:E,y:i},alpha:S};};var V=ak(function(ba){if(!ba){return{x:0,y:0,width:0,height:0};}ba=I(ba);var a7=0,a6=0,R=[],e=[],E;for(var S=0,a9=ba[m];S<a9;S++){E=ba[S];if(E[0]=="M"){a7=E[1];a6=E[2];R[f](a7);e[f](a6);}else{var a5=aG(a7,a6,E[1],E[2],E[3],E[4],E[5],E[6]);R=R[aW](a5.min.x,a5.max.x);e=e[aW](a5.min.y,a5.max.y);a7=E[5];a6=E[6];}}var d=aM[a0](0,R),a8=aM[a0](0,e);return{x:d,y:a8,width:g[a0](0,R)-d,height:g[a0](0,e)-a8};}),az=function(a5){var E=[];if(!ap.is(a5,"array")||!ap.is(a5&&a5[0],"array")){a5=ap.parsePathString(a5);}for(var e=0,R=a5[m];e<R;e++){E[e]=[];for(var d=0,S=a5[e][m];d<S;d++){E[e][d]=a5[e][d];}}E[aE]=ap._path2string;return E;},ae=ak(function(R){if(!ap.is(R,"array")||!ap.is(R&&R[0],"array")){R=ap.parsePathString(R);}var a9=[],bb=0,ba=0,be=0,bd=0,E=0;if(R[0][0]=="M"){bb=R[0][1];ba=R[0][2];be=bb;bd=ba;E++;a9[f](["M",bb,ba]);}for(var a6=E,bf=R[m];a6<bf;a6++){var d=a9[a6]=[],bc=R[a6];if(bc[0]!=a4.call(bc[0])){d[0]=a4.call(bc[0]);switch(d[0]){case"a":d[1]=bc[1];d[2]=bc[2];d[3]=bc[3];d[4]=bc[4];d[5]=bc[5];d[6]=+(bc[6]-bb).toFixed(3);d[7]=+(bc[7]-ba).toFixed(3);break;case"v":d[1]=+(bc[1]-ba).toFixed(3);break;case"m":be=bc[1];bd=bc[2];default:for(var a5=1,a7=bc[m];a5<a7;a5++){d[a5]=+(bc[a5]-((a5%2)?bb:ba)).toFixed(3);}}}else{d=a9[a6]=[];if(bc[0]=="m"){be=bc[1]+bb;bd=bc[2]+ba;}for(var S=0,e=bc[m];S<e;S++){a9[a6][S]=bc[S];}}var a8=a9[a6][m];switch(a9[a6][0]){case"z":bb=be;ba=bd;break;case"h":bb+=+a9[a6][a8-1];break;case"v":ba+=+a9[a6][a8-1];break;default:bb+=+a9[a6][a8-2];ba+=+a9[a6][a8-1];}}a9[aE]=ap._path2string;return a9;},0,az),r=ak(function(R){if(!ap.is(R,"array")||!ap.is(R&&R[0],"array")){R=ap.parsePathString(R);}var a8=[],ba=0,a9=0,bd=0,bc=0,E=0;if(R[0][0]=="M"){ba=+R[0][1];a9=+R[0][2];bd=ba;bc=a9;E++;a8[0]=["M",ba,a9];}for(var a6=E,be=R[m];a6<be;a6++){var d=a8[a6]=[],bb=R[a6];if(bb[0]!=aR.call(bb[0])){d[0]=aR.call(bb[0]);switch(d[0]){case"A":d[1]=bb[1];d[2]=bb[2];d[3]=bb[3];d[4]=bb[4];d[5]=bb[5];d[6]=+(bb[6]+ba);d[7]=+(bb[7]+a9);break;case"V":d[1]=+bb[1]+a9;break;case"H":d[1]=+bb[1]+ba;break;case"M":bd=+bb[1]+ba;bc=+bb[2]+a9;default:for(var a5=1,a7=bb[m];a5<a7;a5++){d[a5]=+bb[a5]+((a5%2)?ba:a9);}}}else{for(var S=0,e=bb[m];S<e;S++){a8[a6][S]=bb[S];}}switch(d[0]){case"Z":ba=bd;a9=bc;break;case"H":ba=d[1];break;case"V":a9=d[1];break;default:ba=a8[a6][a8[a6][m]-2];a9=a8[a6][a8[a6][m]-1];}}a8[aE]=ap._path2string;return a8;},null,az),a1=function(e,E,d,i){return[e,E,d,i,d,i];},aO=function(e,E,a5,R,d,i){var S=1/3,a6=2/3;return[S*e+a6*a5,S*E+a6*R,S*d+a6*a5,S*i+a6*R,d,i];},L=function(be,bJ,bn,bl,bf,a9,S,bd,bI,bg){var R=ac.PI,bk=R*120/180,d=R/180*(+bf||0),br=[],bo,bF=ak(function(bK,bN,i){var bM=bK*ac.cos(i)-bN*ac.sin(i),bL=bK*ac.sin(i)+bN*ac.cos(i);return{x:bM,y:bL};});if(!bg){bo=bF(be,bJ,-d);be=bo.x;bJ=bo.y;bo=bF(bd,bI,-d);bd=bo.x;bI=bo.y;var e=ac.cos(R/180*bf),bb=ac.sin(R/180*bf),bt=(be-bd)/2,bs=(bJ-bI)/2;var bD=(bt*bt)/(bn*bn)+(bs*bs)/(bl*bl);if(bD>1){bD=ac.sqrt(bD);bn=bD*bn;bl=bD*bl;}var E=bn*bn,bw=bl*bl,by=(a9==S?-1:1)*ac.sqrt(ac.abs((E*bw-E*bs*bs-bw*bt*bt)/(E*bs*bs+bw*bt*bt))),bi=by*bn*bs/bl+(be+bd)/2,bh=by*-bl*bt/bn+(bJ+bI)/2,a8=ac.asin(((bJ-bh)/bl).toFixed(7)),a7=ac.asin(((bI-bh)/bl).toFixed(7));a8=be<bi?R-a8:a8;a7=bd<bi?R-a7:a7;a8<0&&(a8=R*2+a8);a7<0&&(a7=R*2+a7);if(S&&a8>a7){a8=a8-R*2;}if(!S&&a7>a8){a7=a7-R*2;}}else{a8=bg[0];a7=bg[1];bi=bg[2];bh=bg[3];}var bc=a7-a8;if(ac.abs(bc)>bk){var bj=a7,bm=bd,ba=bI;a7=a8+bk*(S&&a7>a8?1:-1);bd=bi+bn*ac.cos(a7);bI=bh+bl*ac.sin(a7);br=L(bd,bI,bn,bl,bf,0,S,bm,ba,[a7,bj,bi,bh]);}bc=a7-a8;var a6=ac.cos(a8),bH=ac.sin(a8),a5=ac.cos(a7),bG=ac.sin(a7),bu=ac.tan(bc/4),bx=4/3*bn*bu,bv=4/3*bl*bu,bE=[be,bJ],bC=[be+bx*bH,bJ-bv*a6],bB=[bd+bx*bG,bI-bv*a5],bz=[bd,bI];bC[0]=2*bE[0]-bC[0];bC[1]=2*bE[1]-bC[1];if(bg){return[bC,bB,bz][aW](br);}else{br=[bC,bB,bz][aW](br)[aD]()[z](",");var bp=[];for(var bA=0,bq=br[m];bA<bq;bA++){bp[bA]=bA%2?bF(br[bA-1],br[bA],d).y:bF(br[bA],br[bA+1],d).x;}return bp;}},N=function(e,d,E,i,a7,a6,a5,S,a8){var R=1-a8;return{x:aQ(R,3)*e+aQ(R,2)*3*a8*E+R*3*a8*a8*a7+aQ(a8,3)*a5,y:aQ(R,3)*d+aQ(R,2)*3*a8*i+R*3*a8*a8*a6+aQ(a8,3)*S};},aG=ak(function(i,d,R,E,be,bd,ba,a7){var bc=(be-2*R+i)-(ba-2*be+R),a9=2*(R-i)-2*(be-R),a6=i-R,a5=(-a9+ac.sqrt(a9*a9-4*bc*a6))/2/bc,S=(-a9-ac.sqrt(a9*a9-4*bc*a6))/2/bc,a8=[d,a7],bb=[i,ba],e;ac.abs(a5)>1000000000000&&(a5=0.5);ac.abs(S)>1000000000000&&(S=0.5);if(a5>0&&a5<1){e=N(i,d,R,E,be,bd,ba,a7,a5);bb[f](e.x);a8[f](e.y);}if(S>0&&S<1){e=N(i,d,R,E,be,bd,ba,a7,S);bb[f](e.x);a8[f](e.y);}bc=(bd-2*E+d)-(a7-2*bd+E);a9=2*(E-d)-2*(bd-E);a6=d-E;a5=(-a9+ac.sqrt(a9*a9-4*bc*a6))/2/bc;S=(-a9-ac.sqrt(a9*a9-4*bc*a6))/2/bc;ac.abs(a5)>1000000000000&&(a5=0.5);ac.abs(S)>1000000000000&&(S=0.5);if(a5>0&&a5<1){e=N(i,d,R,E,be,bd,ba,a7,a5);bb[f](e.x);a8[f](e.y);}if(S>0&&S<1){e=N(i,d,R,E,be,bd,ba,a7,S);bb[f](e.x);a8[f](e.y);}return{min:{x:aM[a0](0,bb),y:aM[a0](0,a8)},max:{x:g[a0](0,bb),y:g[a0](0,a8)}};}),I=ak(function(be,a9){var R=r(be),ba=a9&&r(a9),bb={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a5=function(bf,bg){var i,bh;if(!bf){return["C",bg.x,bg.y,bg.x,bg.y,bg.x,bg.y];}!(bf[0] in {T:1,Q:1})&&(bg.qx=bg.qy=null);switch(bf[0]){case"M":bg.X=bf[1];bg.Y=bf[2];break;case"A":bf=["C"][aW](L[a0](0,[bg.x,bg.y][aW](bf.slice(1))));break;case"S":i=bg.x+(bg.x-(bg.bx||bg.x));bh=bg.y+(bg.y-(bg.by||bg.y));bf=["C",i,bh][aW](bf.slice(1));break;case"T":bg.qx=bg.x+(bg.x-(bg.qx||bg.x));bg.qy=bg.y+(bg.y-(bg.qy||bg.y));bf=["C"][aW](aO(bg.x,bg.y,bg.qx,bg.qy,bf[1],bf[2]));break;case"Q":bg.qx=bf[1];bg.qy=bf[2];bf=["C"][aW](aO(bg.x,bg.y,bf[1],bf[2],bf[3],bf[4]));break;case"L":bf=["C"][aW](a1(bg.x,bg.y,bf[1],bf[2]));break;case"H":bf=["C"][aW](a1(bg.x,bg.y,bf[1],bg.y));break;case"V":bf=["C"][aW](a1(bg.x,bg.y,bg.x,bf[1]));break;case"Z":bf=["C"][aW](a1(bg.x,bg.y,bg.X,bg.Y));break;}return bf;},e=function(bf,bg){if(bf[bg][m]>7){bf[bg].shift();var bh=bf[bg];while(bh[m]){bf.splice(bg++,0,["C"][aW](bh.splice(0,6)));}bf.splice(bg,1);bc=g(R[m],ba&&ba[m]||0);}},E=function(bj,bi,bg,bf,bh){if(bj&&bi&&bj[bh][0]=="M"&&bi[bh][0]!="M"){bi.splice(bh,0,["M",bf.x,bf.y]);bg.bx=0;bg.by=0;bg.x=bj[bh][1];bg.y=bj[bh][2];bc=g(R[m],ba&&ba[m]||0);}};for(var a7=0,bc=g(R[m],ba&&ba[m]||0);a7<bc;a7++){R[a7]=a5(R[a7],bb);e(R,a7);ba&&(ba[a7]=a5(ba[a7],d));ba&&e(ba,a7);E(R,ba,bb,d,a7);E(ba,R,d,bb,a7);var a6=R[a7],bd=ba&&ba[a7],S=a6[m],a8=ba&&bd[m];bb.x=a6[S-2];bb.y=a6[S-1];bb.bx=X(a6[S-4])||bb.x;bb.by=X(a6[S-3])||bb.y;d.bx=ba&&(X(bd[a8-4])||d.x);d.by=ba&&(X(bd[a8-3])||d.y);d.x=ba&&bd[a8-2];d.y=ba&&bd[a8-1];}return ba?[R,ba]:R;},null,az),p=ak(function(a9){var a8=[];for(var a5=0,ba=a9[m];a5<ba;a5++){var e={},a7=a9[a5].match(/^([^:]*):?([\d\.]*)/);e.color=ap.getRGB(a7[1]);if(e.color.error){return null;}e.color=e.color.hex;a7[2]&&(e.offset=a7[2]+"%");a8[f](e);}for(var a5=1,ba=a8[m]-1;a5<ba;a5++){if(!a8[a5].offset){var E=X(a8[a5-1].offset||0),R=0;for(var S=a5+1;S<ba;S++){if(a8[S].offset){R=a8[S].offset;break;}}if(!R){R=100;S=ba;}R=X(R);var a6=(R-E)/(S-a5+1);for(;a5<S;a5++){E+=a6;a8[a5].offset=E+"%";}}}return a8;}),aq=function(){var i,e,R,E,d;if(ap.is(arguments[0],"string")||ap.is(arguments[0],"object")){if(ap.is(arguments[0],"string")){i=M.getElementById(arguments[0]);}else{i=arguments[0];}if(i.tagName){if(arguments[1]==null){return{container:i,width:i.style.pixelWidth||i.offsetWidth,height:i.style.pixelHeight||i.offsetHeight};}else{return{container:i,width:arguments[1],height:arguments[2]};}}}else{if(ap.is(arguments[0],am)&&arguments[m]>3){return{container:1,x:arguments[0],y:arguments[1],width:arguments[2],height:arguments[3]};}}},aK=function(d,i){var e=this;for(var E in i){if(i[T](E)&&!(E in d)){switch(typeof i[E]){case"function":(function(R){d[E]=d===e?R:function(){return R[a0](e,arguments);};})(i[E]);break;case"object":d[E]=d[E]||{};aK.call(this,d[E],i[E]);break;default:d[E]=i[E];break;}}}},al=function(d,e){d==e.top&&(e.top=d.prev);d==e.bottom&&(e.bottom=d.next);d.next&&(d.next.prev=d.prev);d.prev&&(d.prev.next=d.next);},Z=function(d,e){if(e.top===d){return;}al(d,e);d.next=null;d.prev=e.top;e.top.next=d;e.top=d;},k=function(d,e){if(e.bottom===d){return;}al(d,e);d.next=e.bottom;d.prev=null;e.bottom.prev=d;e.bottom=d;},A=function(e,d,i){al(e,i);d==i.top&&(i.top=e);d.next&&(d.next.prev=e);e.next=d.next;e.prev=d;d.next=e;},at=function(e,d,i){al(e,i);d==i.bottom&&(i.bottom=e);d.prev&&(d.prev.next=e);e.prev=d.prev;d.prev=e;e.next=d;},s=function(d){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+d+"\u201d of removed object");};},av=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(ap.svg){aX[a2].svgns="http://www.w3.org/2000/svg";aX[a2].xlink="http://www.w3.org/1999/xlink";var P=function(d){return +d+(~~d===d)*0.5;},W=function(S){for(var e=0,E=S[m];e<E;e++){if(a4.call(S[e][0])!="a"){for(var d=1,R=S[e][m];d<R;d++){S[e][d]=P(S[e][d]);}}else{S[e][6]=P(S[e][6]);S[e][7]=P(S[e][7]);}}return S;},aN=function(i,d){if(d){for(var e in d){if(d[T](e)){i[v](e,d[e]);}}}else{return M.createElementNS(aX[a2].svgns,i);}};ap[aE]=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version;};var q=function(d,E){var e=aN("path");E.canvas&&E.canvas[aP](e);var i=new aB(e,E);i.type="path";ab(i,{fill:"none",stroke:"#000",path:d});return i;};var b=function(E,bc,d){var a9="linear",a6=0.5,S=0.5,be=E.style;bc=(bc+aw)[aT](av,function(bg,i,bh){a9="radial";if(i&&bh){a6=X(i);S=X(bh);var bf=((S>0.5)*2-1);aQ(a6-0.5,2)+aQ(S-0.5,2)>0.25&&(S=ac.sqrt(0.25-aQ(a6-0.5,2))*bf+0.5)&&S!=0.5&&(S=S.toFixed(5)-0.00001*bf);}return aw;});bc=bc[z](/\s*\-\s*/);if(a9=="linear"){var a5=bc.shift();a5=-X(a5);if(isNaN(a5)){return null;}var R=[0,0,ac.cos(a5*ac.PI/180),ac.sin(a5*ac.PI/180)],bb=1/(g(ac.abs(R[2]),ac.abs(R[3]))||1);R[2]*=bb;R[3]*=bb;if(R[2]<0){R[0]=-R[2];R[2]=0;}if(R[3]<0){R[1]=-R[3];R[3]=0;}}var a8=p(bc);if(!a8){return null;}var e=aN(a9+"Gradient");e.id="r"+(ap._id++)[aE](36);aN(e,a9=="radial"?{fx:a6,fy:S}:{x1:R[0],y1:R[1],x2:R[2],y2:R[3]});d.defs[aP](e);for(var a7=0,bd=a8[m];a7<bd;a7++){var ba=aN("stop");aN(ba,{offset:a8[a7].offset?a8[a7].offset:!a7?"0%":"100%","stop-color":a8[a7].color||"#fff"});e[aP](ba);}aN(E,{fill:"url(#"+e.id+")",opacity:1,"fill-opacity":1});be.fill=aw;be.opacity=1;be.fillOpacity=1;return 1;};var O=function(e){var d=e.getBBox();aN(e.pattern,{patternTransform:ap.format("translate({0},{1})",d.x,d.y)});};var ab=function(bb,bk){var be={"":[0],none:[0],"-":[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]},bg=bb.node,bc=bb.attrs,a8=bb.rotate(),S=function(br,bq){bq=be[a4.call(bq)];if(bq){var bo=br.attrs["stroke-width"]||"1",bm={round:bo,square:bo,butt:0}[br.attrs["stroke-linecap"]||bk["stroke-linecap"]]||0,bp=[];var bn=bq[m];while(bn--){bp[bn]=bq[bn]*bo+((bn%2)?1:-1)*bm;}aN(bg,{"stroke-dasharray":bp[aD](",")});}};bk[T]("rotation")&&(a8=bk.rotation);var a7=(a8+aw)[z](a);if(!(a7.length-1)){a7=null;}else{a7[1]=+a7[1];a7[2]=+a7[2];}X(a8)&&bb.rotate(0,true);for(var bf in bk){if(bk[T](bf)){if(!j[T](bf)){continue;}var bd=bk[bf];bc[bf]=bd;switch(bf){case"rotation":bb.rotate(bd,true);break;case"href":case"title":case"target":var bi=bg.parentNode;if(a4.call(bi.tagName)!="a"){var E=aN("a");bi.insertBefore(E,bg);E[aP](bg);bi=E;}bi.setAttributeNS(bb.paper.xlink,bf,bd);break;case"cursor":bg.style.cursor=bd;break;case"clip-rect":var e=(bd+aw)[z](a);if(e[m]==4){bb.clip&&bb.clip.parentNode.parentNode.removeChild(bb.clip.parentNode);var i=aN("clipPath"),bh=aN("rect");i.id="r"+(ap._id++)[aE](36);aN(bh,{x:e[0],y:e[1],width:e[2],height:e[3]});i[aP](bh);bb.paper.defs[aP](i);aN(bg,{"clip-path":"url(#"+i.id+")"});bb.clip=bh;}if(!bd){var bj=M.getElementById(bg.getAttribute("clip-path")[aT](/(^url\(#|\)$)/g,aw));bj&&bj.parentNode.removeChild(bj);aN(bg,{"clip-path":aw});delete bb.clip;}break;case"path":if(bb.type=="path"){aN(bg,{d:bd?bc.path=W(r(bd)):"M0,0"});}break;case"width":bg[v](bf,bd);if(bc.fx){bf="x";bd=bc.x;}else{break;}case"x":if(bc.fx){bd=-bc.x-(bc.width||0);}case"rx":if(bf=="rx"&&bb.type=="rect"){break;}case"cx":a7&&(bf=="x"||bf=="cx")&&(a7[1]+=bd-bc[bf]);bg[v](bf,P(bd));bb.pattern&&O(bb);break;case"height":bg[v](bf,bd);if(bc.fy){bf="y";bd=bc.y;}else{break;}case"y":if(bc.fy){bd=-bc.y-(bc.height||0);}case"ry":if(bf=="ry"&&bb.type=="rect"){break;}case"cy":a7&&(bf=="y"||bf=="cy")&&(a7[2]+=bd-bc[bf]);bg[v](bf,P(bd));bb.pattern&&O(bb);break;case"r":if(bb.type=="rect"){aN(bg,{rx:bd,ry:bd});}else{bg[v](bf,bd);}break;case"src":if(bb.type=="image"){bg.setAttributeNS(bb.paper.xlink,"href",bd);}break;case"stroke-width":bg.style.strokeWidth=bd;bg[v](bf,bd);if(bc["stroke-dasharray"]){S(bb,bc["stroke-dasharray"]);}break;case"stroke-dasharray":S(bb,bd);break;case"translation":var a5=(bd+aw)[z](a);a5[0]=+a5[0]||0;a5[1]=+a5[1]||0;if(a7){a7[1]+=a5[0];a7[2]+=a5[1];}t.call(bb,a5[0],a5[1]);break;case"scale":var a5=(bd+aw)[z](a);bb.scale(+a5[0]||1,+a5[1]||+a5[0]||1,+a5[2]||null,+a5[3]||null);break;case"fill":var R=(bd+aw).match(c);if(R){var i=aN("pattern"),ba=aN("image");i.id="r"+(ap._id++)[aE](36);aN(i,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});aN(ba,{x:0,y:0});ba.setAttributeNS(bb.paper.xlink,"href",R[1]);i[aP](ba);var bl=M.createElement("img");bl.style.cssText="position:absolute;left:-9999em;top-9999em";bl.onload=function(){aN(i,{width:this.offsetWidth,height:this.offsetHeight});aN(ba,{width:this.offsetWidth,height:this.offsetHeight});M.body.removeChild(this);bb.paper.safari();};M.body[aP](bl);bl.src=R[1];bb.paper.defs[aP](i);bg.style.fill="url(#"+i.id+")";aN(bg,{fill:"url(#"+i.id+")"});bb.pattern=i;bb.pattern&&O(bb);break;}if(!ap.getRGB(bd).error){delete bk.gradient;delete bc.gradient;!ap.is(bc.opacity,"undefined")&&ap.is(bk.opacity,"undefined")&&aN(bg,{opacity:bc.opacity});!ap.is(bc["fill-opacity"],"undefined")&&ap.is(bk["fill-opacity"],"undefined")&&aN(bg,{"fill-opacity":bc["fill-opacity"]});}else{if((({circle:1,ellipse:1})[T](bb.type)||(bd+aw).charAt()!="r")&&b(bg,bd,bb.paper)){bc.gradient=bd;bc.fill="none";break;}}case"stroke":bg[v](bf,ap.getRGB(bd).hex);break;case"gradient":(({circle:1,ellipse:1})[T](bb.type)||(bd+aw).charAt()!="r")&&b(bg,bd,bb.paper);break;case"opacity":case"fill-opacity":if(bc.gradient){var d=M.getElementById(bg.getAttribute("fill")[aT](/^url\(#|\)$/g,aw));if(d){var a6=d.getElementsByTagName("stop");a6[a6[m]-1][v]("stop-opacity",bd);}break;}default:bf=="font-size"&&(bd=H(bd,10)+"px");var a9=bf[aT](/(\-.)/g,function(bm){return aR.call(bm.substring(1));});bg.style[a9]=bd;bg[v](bf,bd);break;}}}F(bb,bk);if(a7){bb.rotate(a7.join(ao));}else{X(a8)&&bb.rotate(a8,true);}};var h=1.2;var F=function(d,R){if(d.type!="text"||!(R[T]("text")||R[T]("font")||R[T]("font-size")||R[T]("x")||R[T]("y"))){return;}var a8=d.attrs,e=d.node,ba=e.firstChild?H(M.defaultView.getComputedStyle(e.firstChild,aw).getPropertyValue("font-size"),10):10;if(R[T]("text")){a8.text=R.text;while(e.firstChild){e.removeChild(e.firstChild);}var E=(R.text+aw)[z]("\n");for(var S=0,a9=E[m];S<a9;S++){if(E[S]){var a6=aN("tspan");S&&aN(a6,{dy:ba*h,x:a8.x});a6[aP](M.createTextNode(E[S]));e[aP](a6);}}}else{var E=e.getElementsByTagName("tspan");for(var S=0,a9=E[m];S<a9;S++){S&&aN(E[S],{dy:ba*h,x:a8.x});}}aN(e,{y:a8.y});var a5=d.getBBox(),a7=a8.y-(a5.y+a5.height/2);a7&&isFinite(a7)&&aN(e,{y:a8.y+a7});};var aB=function(e,d){var E=0,i=0;this[0]=e;this.id=ap._oid++;this.node=e;e.raphael=this;this.paper=d;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1};!d.bottom&&(d.bottom=this);this.prev=d.top;d.top&&(d.top.next=this);d.top=this;this.next=null;};aB[a2].rotate=function(e,d,E){if(this.removed){return this;}if(e==null){if(this._.rt.cx){return[this._.rt.deg,this._.rt.cx,this._.rt.cy][aD](ao);}return this._.rt.deg;}var i=this.getBBox();e=(e+aw)[z](a);if(e[m]-1){d=X(e[1]);E=X(e[2]);}e=X(e[0]);if(d!=null){this._.rt.deg=e;}else{this._.rt.deg+=e;}(E==null)&&(d=null);this._.rt.cx=d;this._.rt.cy=E;d=d==null?i.x+i.width/2:d;E=E==null?i.y+i.height/2:E;if(this._.rt.deg){this.transformations[0]=ap.format("rotate({0} {1} {2})",this._.rt.deg,d,E);this.clip&&aN(this.clip,{transform:ap.format("rotate({0} {1} {2})",-this._.rt.deg,d,E)});}else{this.transformations[0]=aw;this.clip&&aN(this.clip,{transform:aw});}aN(this.node,{transform:this.transformations[aD](ao)});return this;};aB[a2].hide=function(){!this.removed&&(this.node.style.display="none");return this;};aB[a2].show=function(){!this.removed&&(this.node.style.display="");return this;};aB[a2].remove=function(){if(this.removed){return;}al(this,this.paper);this.node.parentNode.removeChild(this.node);for(var d in this){delete this[d];}this.removed=true;};aB[a2].getBBox=function(){if(this.removed){return this;}if(this.type=="path"){return V(this.attrs.path);}if(this.node.style.display=="none"){this.show();var E=true;}var a6={};try{a6=this.node.getBBox();}catch(S){}finally{a6=a6||{};}if(this.type=="text"){a6={x:a6.x,y:Infinity,width:0,height:0};for(var d=0,R=this.node.getNumberOfChars();d<R;d++){var a5=this.node.getExtentOfChar(d);(a5.y<a6.y)&&(a6.y=a5.y);(a5.y+a5.height-a6.y>a6.height)&&(a6.height=a5.y+a5.height-a6.y);(a5.x+a5.width-a6.x>a6.width)&&(a6.width=a5.x+a5.width-a6.x);}}E&&this.hide();return a6;};aB[a2].attr=function(){if(this.removed){return this;}if(arguments[m]==0){var R={};for(var E in this.attrs){if(this.attrs[T](E)){R[E]=this.attrs[E];}}this._.rt.deg&&(R.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(R.scale=this.scale());R.gradient&&R.fill=="none"&&(R.fill=R.gradient)&&delete R.gradient;return R;}if(arguments[m]==1&&ap.is(arguments[0],"string")){if(arguments[0]=="translation"){return t.call(this);}if(arguments[0]=="rotation"){return this.rotate();}if(arguments[0]=="scale"){return this.scale();}if(arguments[0]=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[arguments[0]];}if(arguments[m]==1&&ap.is(arguments[0],"array")){var d={};for(var e in arguments[0]){if(arguments[0][T](e)){d[arguments[0][e]]=this.attrs[arguments[0][e]];}}return d;}if(arguments[m]==2){var S={};S[arguments[0]]=arguments[1];ab(this,S);}else{if(arguments[m]==1&&ap.is(arguments[0],"object")){ab(this,arguments[0]);}}return this;};aB[a2].toFront=function(){if(this.removed){return this;}this.node.parentNode[aP](this.node);var d=this.paper;d.top!=this&&Z(this,d);return this;};aB[a2].toBack=function(){if(this.removed){return this;}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);k(this,this.paper);var d=this.paper;}return this;};aB[a2].insertAfter=function(d){if(this.removed){return this;}var e=d.node;if(e.nextSibling){e.parentNode.insertBefore(this.node,e.nextSibling);}else{e.parentNode[aP](this.node);}A(this,d,this.paper);return this;};aB[a2].insertBefore=function(d){if(this.removed){return this;}var e=d.node;e.parentNode.insertBefore(this.node,e);at(this,d,this.paper);return this;};var Q=function(e,d,S,R){d=P(d);S=P(S);var E=aN("circle");e.canvas&&e.canvas[aP](E);var i=new aB(E,e);i.attrs={cx:d,cy:S,r:R,fill:"none",stroke:"#000"};i.type="circle";aN(E,i.attrs);return i;};var aJ=function(i,d,a6,e,S,a5){d=P(d);a6=P(a6);var R=aN("rect");i.canvas&&i.canvas[aP](R);var E=new aB(R,i);E.attrs={x:d,y:a6,width:e,height:S,r:a5||0,rx:a5||0,ry:a5||0,fill:"none",stroke:"#000"};E.type="rect";aN(R,E.attrs);return E;};var aj=function(e,d,a5,S,R){d=P(d);a5=P(a5);var E=aN("ellipse");e.canvas&&e.canvas[aP](E);var i=new aB(E,e);i.attrs={cx:d,cy:a5,rx:S,ry:R,fill:"none",stroke:"#000"};i.type="ellipse";aN(E,i.attrs);return i;};var o=function(i,a5,d,a6,e,S){var R=aN("image");aN(R,{x:d,y:a6,width:e,height:S,preserveAspectRatio:"none"});R.setAttributeNS(i.xlink,"href",a5);i.canvas&&i.canvas[aP](R);var E=new aB(R,i);E.attrs={x:d,y:a6,width:e,height:S,src:a5};E.type="image";return E;};var Y=function(e,d,S,R){var E=aN("text");aN(E,{x:d,y:S,"text-anchor":"middle"});e.canvas&&e.canvas[aP](E);var i=new aB(E,e);i.attrs={x:d,y:S,"text-anchor":"middle",text:R,font:j.font,stroke:"none",fill:"#000"};i.type="text";ab(i,i.attrs);return i;};var aZ=function(e,d){this.width=e||this.width;this.height=d||this.height;this.canvas[v]("width",this.width);this.canvas[v]("height",this.height);return this;};var w=function(){var E=aq[a0](null,arguments),i=E&&E.container,e=E.x,a5=E.y,R=E.width,d=E.height;if(!i){throw new Error("SVG container not found.");}var S=aN("svg");R=R||512;d=d||342;aN(S,{xmlns:"http://www.w3.org/2000/svg",version:1.1,width:R,height:d});if(i==1){S.style.cssText="position:absolute;left:"+e+"px;top:"+a5+"px";M.body[aP](S);}else{if(i.firstChild){i.insertBefore(S,i.firstChild);}else{i[aP](S);}}i=new aX;i.width=R;i.height=d;i.canvas=S;aK.call(i,i,ap.fn);i.clear();return i;};aX[a2].clear=function(){var d=this.canvas;while(d.firstChild){d.removeChild(d.firstChild);}this.bottom=this.top=null;(this.desc=aN("desc"))[aP](M.createTextNode("Created with Rapha\xebl"));d[aP](this.desc);d[aP](this.defs=aN("defs"));};aX[a2].remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=s(d);}};}if(ap.vml){var D={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},au=/([clmz]),?([^clmz]*)/gi,a3=/-?[^,\s-]+/g,aL=function(ba){var a7=/[ahqstv]/ig,E=r;(ba+aw).match(a7)&&(E=I);a7=/[clmz]/g;if(E==r&&!(ba+aw).match(a7)){var a6=(ba+aw)[aT](au,function(bd,bf,bb){var be=[],i=a4.call(bf)=="m",bc=D[bf];bb[aT](a3,function(bg){if(i&&be[m]==2){bc+=be+D[bf=="m"?"l":"L"];be=[];}be[f](P(bg));});return bc+be;});return a6;}var a8=E(ba),e,a6=[],d;for(var S=0,a9=a8[m];S<a9;S++){e=a8[S];d=a4.call(a8[S][0]);d=="z"&&(d="x");for(var R=1,a5=e[m];R<a5;R++){d+=P(e[R])+(R!=a5-1?",":aw);}a6[f](d);}return a6[aD](ao);};ap[aE]=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version;};var q=function(e,a5){var R=ai("group");R.style.cssText="position:absolute;left:0;top:0;width:"+a5.width+"px;height:"+a5.height+"px";R.coordsize=a5.coordsize;R.coordorigin=a5.coordorigin;var E=ai("shape"),i=E.style;i.width=a5.width+"px";i.height=a5.height+"px";E.coordsize=this.coordsize;E.coordorigin=this.coordorigin;R[aP](E);var S=new aB(E,R,a5),d={fill:"none",stroke:"#000"};e&&(d.path=e);S.isAbsolute=true;S.type="path";S.path=[];S.Path=aw;ab(S,d);a5.canvas[aP](R);return S;};var ab=function(a8,bd){a8.attrs=a8.attrs||{};var bb=a8.node,be=a8.attrs,a5=bb.style,E,bi=a8;for(var a6 in bd){if(bd[T](a6)){be[a6]=bd[a6];}}bd.href&&(bb.href=bd.href);bd.title&&(bb.title=bd.title);bd.target&&(bb.target=bd.target);bd.cursor&&(a5.cursor=bd.cursor);if(bd.path&&a8.type=="path"){be.path=bd.path;bb.path=aL(be.path);}if(bd.rotation!=null){a8.rotate(bd.rotation,true);}if(bd.translation){E=(bd.translation+aw)[z](a);t.call(a8,E[0],E[1]);if(a8._.rt.cx!=null){a8._.rt.cx+=+E[0];a8._.rt.cy+=+E[1];a8.setBox(a8.attrs,E[0],E[1]);}}if(bd.scale){E=(bd.scale+aw)[z](a);a8.scale(+E[0]||1,+E[1]||+E[0]||1,+E[2]||null,+E[3]||null);}if("clip-rect" in bd){var d=(bd["clip-rect"]+aw)[z](a);if(d[m]==4){d[2]=+d[2]+(+d[0]);d[3]=+d[3]+(+d[1]);var a7=bb.clipRect||M.createElement("div"),bh=a7.style,S=bb.parentNode;bh.clip=ap.format("rect({1}px {2}px {3}px {0}px)",d);if(!bb.clipRect){bh.position="absolute";bh.top=0;bh.left=0;bh.width=a8.paper.width+"px";bh.height=a8.paper.height+"px";S.parentNode.insertBefore(a7,S);a7[aP](S);bb.clipRect=a7;}}if(!bd["clip-rect"]){bb.clipRect&&(bb.clipRect.style.clip=aw);}}if(a8.type=="image"&&bd.src){bb.src=bd.src;}if(a8.type=="image"&&bd.opacity){bb.filterOpacity=" progid:DXImageTransform.Microsoft.Alpha(opacity="+(bd.opacity*100)+")";a5.filter=(bb.filterMatrix||aw)+(bb.filterOpacity||aw);}bd.font&&(a5.font=bd.font);bd["font-family"]&&(a5.fontFamily='"'+bd["font-family"][z](",")[0][aT](/^['"]+|['"]+$/g,aw)+'"');bd["font-size"]&&(a5.fontSize=bd["font-size"]);bd["font-weight"]&&(a5.fontWeight=bd["font-weight"]);bd["font-style"]&&(a5.fontStyle=bd["font-style"]);if(bd.opacity!=null||bd["stroke-width"]!=null||bd.fill!=null||bd.stroke!=null||bd["stroke-width"]!=null||bd["stroke-opacity"]!=null||bd["fill-opacity"]!=null||bd["stroke-dasharray"]!=null||bd["stroke-miterlimit"]!=null||bd["stroke-linejoin"]!=null||bd["stroke-linecap"]!=null){bb=a8.shape||bb;var bc=(bb.getElementsByTagName("fill")&&bb.getElementsByTagName("fill")[0]),bf=false;!bc&&(bf=bc=ai("fill"));if("fill-opacity" in bd||"opacity" in bd){var e=((+be["fill-opacity"]+1||2)-1)*((+be.opacity+1||2)-1);e<0&&(e=0);e>1&&(e=1);bc.opacity=e;}bd.fill&&(bc.on=true);if(bc.on==null||bd.fill=="none"){bc.on=false;}if(bc.on&&bd.fill){var i=bd.fill.match(c);if(i){bc.src=i[1];bc.type="tile";}else{bc.color=ap.getRGB(bd.fill).hex;bc.src=aw;bc.type="solid";if(ap.getRGB(bd.fill).error&&(bi.type in {circle:1,ellipse:1}||(bd.fill+aw).charAt()!="r")&&b(bi,bd.fill)){be.fill="none";be.gradient=bd.fill;}}}bf&&bb[aP](bc);var R=(bb.getElementsByTagName("stroke")&&bb.getElementsByTagName("stroke")[0]),bg=false;!R&&(bg=R=ai("stroke"));if((bd.stroke&&bd.stroke!="none")||bd["stroke-width"]||bd["stroke-opacity"]!=null||bd["stroke-dasharray"]||bd["stroke-miterlimit"]||bd["stroke-linejoin"]||bd["stroke-linecap"]){R.on=true;}(bd.stroke=="none"||R.on==null||bd.stroke==0||bd["stroke-width"]==0)&&(R.on=false);R.on&&bd.stroke&&(R.color=ap.getRGB(bd.stroke).hex);var e=((+be["stroke-opacity"]+1||2)-1)*((+be.opacity+1||2)-1),a9=(X(bd["stroke-width"])||1)*0.75;e<0&&(e=0);e>1&&(e=1);bd["stroke-width"]==null&&(a9=be["stroke-width"]);bd["stroke-width"]&&(R.weight=a9);a9&&a9<1&&(e*=a9)&&(R.weight=1);R.opacity=e;bd["stroke-linejoin"]&&(R.joinstyle=bd["stroke-linejoin"]||"miter");R.miterlimit=bd["stroke-miterlimit"]||8;bd["stroke-linecap"]&&(R.endcap=bd["stroke-linecap"]=="butt"?"flat":bd["stroke-linecap"]=="square"?"square":"round");if(bd["stroke-dasharray"]){var ba={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};R.dashstyle=ba[T](bd["stroke-dasharray"])?ba[bd["stroke-dasharray"]]:aw;}bg&&bb[aP](R);}if(bi.type=="text"){var a5=bi.paper.span.style;be.font&&(a5.font=be.font);be["font-family"]&&(a5.fontFamily=be["font-family"]);be["font-size"]&&(a5.fontSize=be["font-size"]);be["font-weight"]&&(a5.fontWeight=be["font-weight"]);be["font-style"]&&(a5.fontStyle=be["font-style"]);bi.node.string&&(bi.paper.span.innerHTML=(bi.node.string+aw)[aT](/</g,"&#60;")[aT](/&/g,"&#38;")[aT](/\n/g,"<br>"));bi.W=be.w=bi.paper.span.offsetWidth;bi.H=be.h=bi.paper.span.offsetHeight;bi.X=be.x;bi.Y=be.y+P(bi.H/2);switch(be["text-anchor"]){case"start":bi.node.style["v-text-align"]="left";bi.bbx=P(bi.W/2);break;case"end":bi.node.style["v-text-align"]="right";bi.bbx=-P(bi.W/2);break;default:bi.node.style["v-text-align"]="center";break;}}};var b=function(d,a6){d.attrs=d.attrs||{};var a7=d.attrs,a9=d.node.getElementsByTagName("fill"),S="linear",a5=".5 .5";d.attrs.gradient=a6;a6=(a6+aw)[aT](av,function(bb,bc,i){S="radial";if(bc&&i){bc=X(bc);i=X(i);aQ(bc-0.5,2)+aQ(i-0.5,2)>0.25&&(i=ac.sqrt(0.25-aQ(bc-0.5,2))*((i>0.5)*2-1)+0.5);a5=bc+ao+i;}return aw;});a6=a6[z](/\s*\-\s*/);if(S=="linear"){var e=a6.shift();e=-X(e);if(isNaN(e)){return null;}}var R=p(a6);if(!R){return null;}d=d.shape||d.node;a9=a9[0]||ai("fill");if(R[m]){a9.on=true;a9.method="none";a9.type=(S=="radial")?"gradientradial":"gradient";a9.color=R[0].color;a9.color2=R[R[m]-1].color;var ba=[];for(var E=0,a8=R[m];E<a8;E++){R[E].offset&&ba[f](R[E].offset+ao+R[E].color);}a9.colors&&(a9.colors.value=ba[m]?ba[aD](","):"0% "+a9.color);if(S=="radial"){a9.focus="100%";a9.focussize=a5;a9.focusposition=a5;}else{a9.angle=(270-e)%360;}}return 1;};var aB=function(R,a5,d){var S=0,i=0,e=0,E=1;this[0]=R;this.id=ap._oid++;this.node=R;R.raphael=this;this.X=0;this.Y=0;this.attrs={};this.Group=a5;this.paper=d;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1};!d.bottom&&(d.bottom=this);this.prev=d.top;d.top&&(d.top.next=this);d.top=this;this.next=null;};aB[a2].rotate=function(e,d,i){if(this.removed){return this;}if(e==null){if(this._.rt.cx){return[this._.rt.deg,this._.rt.cx,this._.rt.cy][aD](ao);}return this._.rt.deg;}e=(e+aw)[z](a);if(e[m]-1){d=X(e[1]);i=X(e[2]);}e=X(e[0]);if(d!=null){this._.rt.deg=e;}else{this._.rt.deg+=e;}i==null&&(d=null);this._.rt.cx=d;this._.rt.cy=i;this.setBox(this.attrs,d,i);this.Group.style.rotation=this._.rt.deg;return this;};aB[a2].setBox=function(bg,e,d){if(this.removed){return this;}var ba=this.Group.style,R=(this.shape&&this.shape.style)||this.node.style;bg=bg||{};for(var be in bg){if(bg[T](be)){this.attrs[be]=bg[be];}}e=e||this._.rt.cx;d=d||this._.rt.cy;var bc=this.attrs,a6,a5,a7,bf;switch(this.type){case"circle":a6=bc.cx-bc.r;a5=bc.cy-bc.r;a7=bf=bc.r*2;break;case"ellipse":a6=bc.cx-bc.rx;a5=bc.cy-bc.ry;a7=bc.rx*2;bf=bc.ry*2;break;case"rect":case"image":a6=+bc.x;a5=+bc.y;a7=bc.width||0;bf=bc.height||0;break;case"text":this.textpath.v=["m",P(bc.x),", ",P(bc.y-2),"l",P(bc.x)+1,", ",P(bc.y-2)][aD](aw);a6=bc.x-P(this.W/2);a5=bc.y-this.H/2;a7=this.W;bf=this.H;break;case"path":if(!this.attrs.path){a6=0;a5=0;a7=this.paper.width;bf=this.paper.height;}else{var bd=V(this.attrs.path);a6=bd.x;a5=bd.y;a7=bd.width;bf=bd.height;}break;default:a6=0;a5=0;a7=this.paper.width;bf=this.paper.height;break;}e=(e==null)?a6+a7/2:e;d=(d==null)?a5+bf/2:d;var E=e-this.paper.width/2,a9=d-this.paper.height/2;if(this.type=="path"||this.type=="text"){(ba.left!=E+"px")&&(ba.left=E+"px");(ba.top!=a9+"px")&&(ba.top=a9+"px");this.X=this.type=="text"?a6:-E;this.Y=this.type=="text"?a5:-a9;this.W=a7;this.H=bf;(R.left!=-E+"px")&&(R.left=-E+"px");(R.top!=-a9+"px")&&(R.top=-a9+"px");}else{(ba.left!=E+"px")&&(ba.left=E+"px");(ba.top!=a9+"px")&&(ba.top=a9+"px");this.X=a6;this.Y=a5;this.W=a7;this.H=bf;(ba.width!=this.paper.width+"px")&&(ba.width=this.paper.width+"px");(ba.height!=this.paper.height+"px")&&(ba.height=this.paper.height+"px");(R.left!=a6-E+"px")&&(R.left=a6-E+"px");(R.top!=a5-a9+"px")&&(R.top=a5-a9+"px");(R.width!=a7+"px")&&(R.width=a7+"px");(R.height!=bf+"px")&&(R.height=bf+"px");var S=(+bg.r||0)/aM(a7,bf);if(this.type=="rect"&&this.arcsize.toFixed(4)!=S.toFixed(4)&&(S||this.arcsize)){var bb=ai("roundrect"),bh={},be=0,a8=this.events&&this.events[m];bb.arcsize=S;bb.raphael=this;this.Group[aP](bb);this.Group.removeChild(this.node);this[0]=this.node=bb;this.arcsize=S;for(var be in bc){bh[be]=bc[be];}delete bh.scale;this.attr(bh);if(this.events){for(;be<a8;be++){this.events[be].unbind=af(this.node,this.events[be].name,this.events[be].f,this);}}}}};aB[a2].hide=function(){!this.removed&&(this.Group.style.display="none");return this;};aB[a2].show=function(){!this.removed&&(this.Group.style.display="block");return this;};aB[a2].getBBox=function(){if(this.removed){return this;}if(this.type=="path"){return V(this.attrs.path);}return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H};};aB[a2].remove=function(){if(this.removed){return;}al(this,this.paper);this.node.parentNode.removeChild(this.node);this.Group.parentNode.removeChild(this.Group);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var d in this){delete this[d];}this.removed=true;};aB[a2].attr=function(){if(this.removed){return this;}if(arguments[m]==0){var E={};for(var e in this.attrs){if(this.attrs[T](e)){E[e]=this.attrs[e];}}this._.rt.deg&&(E.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(E.scale=this.scale());E.gradient&&E.fill=="none"&&(E.fill=E.gradient)&&delete E.gradient;return E;}if(arguments[m]==1&&ap.is(arguments[0],"string")){if(arguments[0]=="translation"){return t.call(this);}if(arguments[0]=="rotation"){return this.rotate();}if(arguments[0]=="scale"){return this.scale();}if(arguments[0]=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[arguments[0]];}if(this.attrs&&arguments[m]==1&&ap.is(arguments[0],"array")){var d={};for(var e=0,R=arguments[0][m];e<R;e++){d[arguments[0][e]]=this.attrs[arguments[0][e]];}return d;}var S;if(arguments[m]==2){S={};S[arguments[0]]=arguments[1];}arguments[m]==1&&ap.is(arguments[0],"object")&&(S=arguments[0]);if(S){if(S.text&&this.type=="text"){this.node.string=S.text;}ab(this,S);if(S.gradient&&(({circle:1,ellipse:1})[T](this.type)||(S.gradient+aw).charAt()!="r")){b(this,S.gradient);}(this.type!="path"||this._.rt.deg)&&this.setBox(this.attrs);}return this;};aB[a2].toFront=function(){!this.removed&&this.Group.parentNode[aP](this.Group);this.paper.top!=this&&Z(this,this.paper);return this;};aB[a2].toBack=function(){if(this.removed){return this;}if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);k(this,this.paper);}return this;};aB[a2].insertAfter=function(d){if(this.removed){return this;}if(d.Group.nextSibling){d.Group.parentNode.insertBefore(this.Group,d.Group.nextSibling);}else{d.Group.parentNode[aP](this.Group);}A(this,d,this.paper);return this;};aB[a2].insertBefore=function(d){if(this.removed){return this;}d.Group.parentNode.insertBefore(this.Group,d.Group);at(this,d,this.paper);return this;};var Q=function(e,d,a6,S){var R=ai("group"),a5=ai("oval"),i=a5.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=e.coordsize;R.coordorigin=e.coordorigin;R[aP](a5);var E=new aB(a5,R,e);E.type="circle";ab(E,{stroke:"#000",fill:"none"});E.attrs.cx=d;E.attrs.cy=a6;E.attrs.r=S;E.setBox({x:d-S,y:a6-S,width:S*2,height:S*2});e.canvas[aP](R);return E;},aJ=function(e,a6,a5,a7,E,d){var R=ai("group"),i=ai("roundrect"),a8=(+d||0)/(aM(a7,E));R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=e.coordsize;R.coordorigin=e.coordorigin;R[aP](i);i.arcsize=a8;var S=new aB(i,R,e);S.type="rect";ab(S,{stroke:"#000"});S.arcsize=a8;S.setBox({x:a6,y:a5,width:a7,height:E,r:d});e.canvas[aP](R);return S;},aj=function(d,a7,a6,i,e){var R=ai("group"),E=ai("oval"),a5=E.style;R.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";R.coordsize=d.coordsize;R.coordorigin=d.coordorigin;R[aP](E);var S=new aB(E,R,d);S.type="ellipse";ab(S,{stroke:"#000"});S.attrs.cx=a7;S.attrs.cy=a6;S.attrs.rx=i;S.attrs.ry=e;S.setBox({x:a7-i,y:a6-e,width:i*2,height:e*2});d.canvas[aP](R);return S;},o=function(e,d,a7,a6,a8,E){var R=ai("group"),i=ai("image"),a5=i.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=e.coordsize;R.coordorigin=e.coordorigin;i.src=d;R[aP](i);var S=new aB(i,R,e);S.type="image";S.attrs.src=d;S.attrs.x=a7;S.attrs.y=a6;S.attrs.w=a8;S.attrs.h=E;S.setBox({x:a7,y:a6,width:a8,height:E});e.canvas[aP](R);return S;},Y=function(e,a7,a6,a8){var R=ai("group"),E=ai("shape"),a5=E.style,a9=ai("path"),d=a9.style,i=ai("textpath");R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=e.coordsize;R.coordorigin=e.coordorigin;a9.v=ap.format("m{0},{1}l{2},{1}",P(a7),P(a6),P(a7)+1);a9.textpathok=true;a5.width=e.width;a5.height=e.height;i.string=a8+aw;i.on=true;E[aP](i);E[aP](a9);R[aP](E);var S=new aB(i,R,e);S.shape=E;S.textpath=a9;S.type="text";S.attrs.text=a8;S.attrs.x=a7;S.attrs.y=a6;S.attrs.w=1;S.attrs.h=1;ab(S,{font:j.font,stroke:"none",fill:"#000"});S.setBox();e.canvas[aP](R);return S;},aZ=function(i,d){var e=this.canvas.style;i==+i&&(i+="px");d==+d&&(d+="px");e.width=i;e.height=d;e.clip="rect(0 "+i+" "+d+" 0)";return this;},ai;M.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!M.namespaces.rvml&&M.namespaces.add("rvml","urn:schemas-microsoft-com:vml");ai=function(d){return M.createElement("<rvml:"+d+' class="rvml">');};}catch(ag){ai=function(d){return M.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');};}var w=function(){var i=aq[a0](null,arguments),d=i.container,a7=i.height,a8,e=i.width,a6=i.x,a5=i.y;if(!d){throw new Error("VML container not found.");}var R=new aX,S=R.canvas=M.createElement("div"),E=S.style;e=e||512;a7=a7||342;e==+e&&(e+="px");a7==+a7&&(a7+="px");R.width=1000;R.height=1000;R.coordsize="1000 1000";R.coordorigin="0 0";R.span=M.createElement("span");R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";S[aP](R.span);E.cssText=ap.format("width:{0};height:{1};position:absolute;clip:rect(0 {0} {1} 0);overflow:hidden",e,a7);if(d==1){M.body[aP](S);E.left=a6+"px";E.top=a5+"px";}else{d.style.width=e;d.style.height=a7;if(d.firstChild){d.insertBefore(S,d.firstChild);}else{d[aP](S);}}aK.call(R,R,ap.fn);return R;};aX[a2].clear=function(){this.canvas.innerHTML=aw;this.span=M.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[aP](this.span);this.bottom=this.top=null;};aX[a2].remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=s(d);}};}if((/^Apple|^Google/).test(navigator.vendor)&&!(navigator.userAgent.indexOf("Version/4.0")+1)){aX[a2].safari=function(){var d=this.rect(-99,-99,this.width+99,this.height+99);setTimeout(function(){d.remove();});};}else{aX[a2].safari=function(){};}var af=(function(){if(M.addEventListener){return function(R,i,e,d){var E=function(S){return e.call(d,S);};R.addEventListener(i,E,false);return function(){R.removeEventListener(i,E,false);return true;};};}else{if(M.attachEvent){return function(S,E,i,e){var R=function(a5){return i.call(e,a5||ax.event);};S.attachEvent("on"+E,R);var d=function(){S.detachEvent("on"+E,R);return true;};return d;};}}})();for(var ad=G[m];ad--;){(function(d){aB[a2][d]=function(e){if(ap.is(e,"function")){this.events=this.events||[];this.events.push({name:d,f:e,unbind:af(this.shape||this.node,d,e,this)});}return this;};aB[a2]["un"+d]=function(E){var i=this.events,e=i[m];while(e--){if(i[e].name==d&&i[e].f==E){i[e].unbind();i.splice(e,1);!i.length&&delete this.events;return this;}}return this;};})(G[ad]);}aB[a2].hover=function(e,d){return this.mouseover(e).mouseout(d);};aB[a2].unhover=function(e,d){return this.unmouseover(e).unmouseout(d);};aX[a2].circle=function(d,i,e){return Q(this,d||0,i||0,e||0);};aX[a2].rect=function(d,R,e,i,E){return aJ(this,d||0,R||0,e||0,i||0,E||0);};aX[a2].ellipse=function(d,E,i,e){return aj(this,d||0,E||0,i||0,e||0);};aX[a2].path=function(d){d&&!ap.is(d,"string")&&!ap.is(d[0],"array")&&(d+=aw);return q(ap.format[a0](ap,arguments),this);};aX[a2].image=function(E,d,R,e,i){return o(this,E||"about:blank",d||0,R||0,e||0,i||0);};aX[a2].text=function(d,i,e){return Y(this,d||0,i||0,e||aw);};aX[a2].set=function(d){arguments[m]>1&&(d=Array[a2].splice.call(arguments,0,arguments[m]));return new U(d);};aX[a2].setSize=aZ;aX[a2].top=aX[a2].bottom=null;aX[a2].raphael=ap;function u(){return this.x+ao+this.y;}aB[a2].scale=function(bc,ba,E,e){if(bc==null&&ba==null){return{x:this._.sx,y:this._.sy,toString:u};}ba=ba||bc;!+ba&&(ba=bc);var bg,be,bf,bd,br=this.attrs;if(bc!=0){var a9=this.getBBox(),a6=a9.x+a9.width/2,R=a9.y+a9.height/2,bq=bc/this._.sx,bp=ba/this._.sy;E=(+E||E==0)?E:a6;e=(+e||e==0)?e:R;var a8=~~(bc/ac.abs(bc)),a5=~~(ba/ac.abs(ba)),bj=this.node.style,bt=E+(a6-E)*bq,bs=e+(R-e)*bp;switch(this.type){case"rect":case"image":var a7=br.width*a8*bq,bi=br.height*a5*bp;this.attr({height:bi,r:br.r*aM(a8*bq,a5*bp),width:a7,x:bt-a7/2,y:bs-bi/2});break;case"circle":case"ellipse":this.attr({rx:br.rx*a8*bq,ry:br.ry*a5*bp,r:br.r*aM(a8*bq,a5*bp),cx:bt,cy:bs});break;case"path":var bl=ae(br.path),bm=true;for(var bo=0,bh=bl[m];bo<bh;bo++){var bk=bl[bo],bn,S=aR.call(bk[0]);if(S=="M"&&bm){continue;}else{bm=false;}if(S=="A"){bk[bl[bo][m]-2]*=bq;bk[bl[bo][m]-1]*=bp;bk[1]*=a8*bq;bk[2]*=a5*bp;bk[5]=+(a8+a5?!!+bk[5]:!+bk[5]);}else{if(S=="H"){for(bn=1,jj=bk[m];bn<jj;bn++){bk[bn]*=bq;}}else{if(S=="V"){for(bn=1,jj=bk[m];bn<jj;bn++){bk[bn]*=bp;}}else{for(bn=1,jj=bk[m];bn<jj;bn++){bk[bn]*=(bn%2)?bq:bp;}}}}}var d=V(bl),bg=bt-d.x-d.width/2,be=bs-d.y-d.height/2;bl[0][1]+=bg;bl[0][2]+=be;this.attr({path:bl});break;}if(this.type in {text:1,image:1}&&(a8!=1||a5!=1)){if(this.transformations){this.transformations[2]="scale("[aW](a8,",",a5,")");this.node[v]("transform",this.transformations[aD](ao));bg=(a8==-1)?-br.x-(a7||0):br.x;be=(a5==-1)?-br.y-(bi||0):br.y;this.attr({x:bg,y:be});br.fx=a8-1;br.fy=a5-1;}else{this.node.filterMatrix=" progid:DXImageTransform.Microsoft.Matrix(M11="[aW](a8,", M12=0, M21=0, M22=",a5,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");bj.filter=(this.node.filterMatrix||aw)+(this.node.filterOpacity||aw);}}else{if(this.transformations){this.transformations[2]=aw;this.node[v]("transform",this.transformations[aD](ao));br.fx=0;br.fy=0;}else{this.node.filterMatrix=aw;bj.filter=(this.node.filterMatrix||aw)+(this.node.filterOpacity||aw);}}br.scale=[bc,ba,E,e][aD](ao);this._.sx=bc;this._.sy=ba;}return this;};aB[a2].clone=function(){var d=this.attr();delete d.scale;delete d.translation;return this.paper[this.type]().attr(d);};var aF=function(d,e){return function(be,S,a5){be=I(be);var ba,a9,E,a6,R="",bd={},bb,a8=0;for(var a7=0,bc=be.length;a7<bc;a7++){E=be[a7];if(E[0]=="M"){ba=+E[1];a9=+E[2];}else{a6=n(ba,a9,E[1],E[2],E[3],E[4],E[5],E[6]);if(a8+a6>S){if(e&&!bd.start){bb=ap.findDotsAtSegment(ba,a9,E[1],E[2],E[3],E[4],E[5],E[6],(S-a8)/a6);R+=["C",bb.start.x,bb.start.y,bb.m.x,bb.m.y,bb.x,bb.y];if(a5){return R;}bd.start=R;R=["M",bb.x,bb.y+"C",bb.n.x,bb.n.y,bb.end.x,bb.end.y,E[5],E[6]][aD]();a8+=a6;ba=+E[5];a9=+E[6];continue;}if(!d&&!e){bb=ap.findDotsAtSegment(ba,a9,E[1],E[2],E[3],E[4],E[5],E[6],(S-a8)/a6);return{x:bb.x,y:bb.y,alpha:bb.alpha};}}a8+=a6;ba=+E[5];a9=+E[6];}R+=E;}bd.end=R;bb=d?a8:e?bd:ap.findDotsAtSegment(ba,a9,E[1],E[2],E[3],E[4],E[5],E[6],1);bb.alpha&&(bb={x:bb.x,y:bb.y,alpha:bb.alpha});return bb;};},n=ak(function(E,d,a5,S,bb,ba,a9,a8){var R={x:0,y:0},a7=0;for(var a6=0;a6<1.01;a6+=0.01){var e=N(E,d,a5,S,bb,ba,a9,a8,a6);a6&&(a7+=ac.sqrt(aQ(R.x-e.x,2)+aQ(R.y-e.y,2)));R=e;}return a7;});var ar=aF(1),C=aF(),K=aF(0,1);aB[a2].getTotalLength=function(){if(this.type!="path"){return;}return ar(this.attrs.path);};aB[a2].getPointAtLength=function(d){if(this.type!="path"){return;}return C(this.attrs.path,d);};aB[a2].getSubpath=function(i,e){if(this.type!="path"){return;}if(ac.abs(this.getTotalLength()-e)<0.000001){return K(this.attrs.path,i).end;}var d=K(this.attrs.path,e,1);return i?K(d,i).end:d;};ap.easing_formulas={linear:function(d){return d;},"<":function(d){return aQ(d,3);},">":function(d){return aQ(d-1,3)+1;},"<>":function(d){d=d*2;if(d<1){return aQ(d,3)/2;}d-=2;return(aQ(d,3)+2)/2;},backIn:function(e){var d=1.70158;return e*e*((d+1)*e-d);},backOut:function(e){e=e-1;var d=1.70158;return e*e*((d+1)*e+d)+1;},elastic:function(i){if(i==0||i==1){return i;}var e=0.3,d=e/4;return aQ(2,-10*i)*ac.sin((i-d)*(2*ac.PI)/e)+1;},bounce:function(E){var e=7.5625,i=2.75,d;if(E<(1/i)){d=e*E*E;}else{if(E<(2/i)){E-=(1.5/i);d=e*E*E+0.75;}else{if(E<(2.5/i)){E-=(2.25/i);d=e*E*E+0.9375;}else{E-=(2.625/i);d=e*E*E+0.984375;}}}return d;}};var J={length:0},aV=function(){var a7=+new Date;for(var bj in J){if(bj!="length"&&J[T](bj)){var bo=J[bj];if(bo.stop||bo.el.removed){delete J[bj];J[m]--;continue;}var a5=a7-bo.start,bg=bo.ms,bf=bo.easing,bk=bo.from,bc=bo.diff,E=bo.to,bb=bo.t,be=bo.prev||0,a6=bo.el,R=bo.callback,bd={},d;if(a5<bg){var S=ap.easing_formulas[bf]?ap.easing_formulas[bf](a5/bg):a5/bg;for(var bh in bk){if(bk[T](bh)){switch(aa[bh]){case"along":d=S*bg*bc[bh];E.back&&(d=E.len-d);var bi=C(E[bh],d);a6.translate(bc.sx-bc.x||0,bc.sy-bc.y||0);bc.x=bi.x;bc.y=bi.y;a6.translate(bi.x-bc.sx,bi.y-bc.sy);E.rot&&a6.rotate(bc.r+bi.alpha,bi.x,bi.y);break;case"number":d=+bk[bh]+S*bg*bc[bh];break;case"colour":d="rgb("+[B(P(bk[bh].r+S*bg*bc[bh].r)),B(P(bk[bh].g+S*bg*bc[bh].g)),B(P(bk[bh].b+S*bg*bc[bh].b))][aD](",")+")";break;case"path":d=[];for(var bm=0,ba=bk[bh][m];bm<ba;bm++){d[bm]=[bk[bh][bm][0]];for(var bl=1,bn=bk[bh][bm][m];bl<bn;bl++){d[bm][bl]=+bk[bh][bm][bl]+S*bg*bc[bh][bm][bl];}d[bm]=d[bm][aD](ao);}d=d[aD](ao);break;case"csv":switch(bh){case"translation":var a9=bc[bh][0]*(a5-be),a8=bc[bh][1]*(a5-be);bb.x+=a9;bb.y+=a8;d=a9+ao+a8;break;case"rotation":d=+bk[bh][0]+S*bg*bc[bh][0];bk[bh][1]&&(d+=","+bk[bh][1]+","+bk[bh][2]);break;case"scale":d=[+bk[bh][0]+S*bg*bc[bh][0],+bk[bh][1]+S*bg*bc[bh][1],(2 in E[bh]?E[bh][2]:aw),(3 in E[bh]?E[bh][3]:aw)][aD](ao);break;case"clip-rect":d=[];var bm=4;while(bm--){d[bm]=+bk[bh][bm]+S*bg*bc[bh][bm];}break;}break;}bd[bh]=d;}}a6.attr(bd);a6._run&&a6._run.call(a6);}else{if(E.along){var bi=C(E.along,E.len*!E.back);a6.translate(bc.sx-(bc.x||0)+bi.x-bc.sx,bc.sy-(bc.y||0)+bi.y-bc.sy);E.rot&&a6.rotate(bc.r+bi.alpha,bi.x,bi.y);}(bb.x||bb.y)&&a6.translate(-bb.x,-bb.y);E.scale&&(E.scale=E.scale+aw);a6.attr(E);delete J[bj];J[m]--;a6.in_animation=null;ap.is(R,"function")&&R.call(a6);}bo.prev=a5;}}ap.svg&&a6&&a6.paper.safari();J[m]&&setTimeout(aV);},B=function(d){return d>255?255:(d<0?0:d);},t=function(d,i){if(d==null){return{x:this._.tx,y:this._.ty,toString:u};}this._.tx+=+d;this._.ty+=+i;switch(this.type){case"circle":case"ellipse":this.attr({cx:+d+this.attrs.cx,cy:+i+this.attrs.cy});break;case"rect":case"image":case"text":this.attr({x:+d+this.attrs.x,y:+i+this.attrs.y});break;case"path":var e=ae(this.attrs.path);e[0][1]+=+d;e[0][2]+=+i;this.attr({path:e});break;}return this;};aB[a2].animateWith=function(e,i,d,R,E){J[e.id]&&(i.start=J[e.id].start);return this.animate(i,d,R,E);};aB[a2].animateAlong=aC();aB[a2].animateAlongBack=aC(1);function aC(d){return function(E,i,e,S){var R={back:d};ap.is(e,"function")?(S=e):(R.rot=e);E&&E.constructor==aB&&(E=E.attrs.path);E&&(R.along=E);return this.animate(R,i,S);};}aB[a2].onAnimation=function(d){this._run=d||0;return this;};aB[a2].animate=function(bj,ba,a9,E){if(ap.is(a9,"function")||!a9){E=a9||null;}var be={},e={},a7={};for(var bb in bj){if(bj[T](bb)){if(aa[T](bb)){be[bb]=this.attr(bb);(be[bb]==null)&&(be[bb]=j[bb]);e[bb]=bj[bb];switch(aa[bb]){case"along":var bh=ar(bj[bb]),bc=C(bj[bb],bh*!!bj.back),R=this.getBBox();a7[bb]=bh/ba;a7.tx=R.x;a7.ty=R.y;a7.sx=bc.x;a7.sy=bc.y;e.rot=bj.rot;e.back=bj.back;e.len=bh;bj.rot&&(a7.r=X(this.rotate())||0);break;case"number":a7[bb]=(e[bb]-be[bb])/ba;break;case"colour":be[bb]=ap.getRGB(be[bb]);var bd=ap.getRGB(e[bb]);a7[bb]={r:(bd.r-be[bb].r)/ba,g:(bd.g-be[bb].g)/ba,b:(bd.b-be[bb].b)/ba};break;case"path":var S=I(be[bb],e[bb]);be[bb]=S[0];var a8=S[1];a7[bb]=[];for(var bg=0,a6=be[bb][m];bg<a6;bg++){a7[bb][bg]=[0];for(var bf=1,bi=be[bb][bg][m];bf<bi;bf++){a7[bb][bg][bf]=(a8[bg][bf]-be[bb][bg][bf])/ba;}}break;case"csv":var d=(bj[bb]+aw)[z](a),a5=(be[bb]+aw)[z](a);switch(bb){case"translation":be[bb]=[0,0];a7[bb]=[d[0]/ba,d[1]/ba];break;case"rotation":be[bb]=(a5[1]==d[1]&&a5[2]==d[2])?a5:[0,d[1],d[2]];a7[bb]=[(d[0]-be[bb][0])/ba,0,0];break;case"scale":bj[bb]=d;be[bb]=(be[bb]+aw)[z](a);a7[bb]=[(d[0]-be[bb][0])/ba,(d[1]-be[bb][1])/ba,0,0];break;case"clip-rect":be[bb]=(be[bb]+aw)[z](a);a7[bb]=[];var bg=4;while(bg--){a7[bb][bg]=(d[bg]-be[bb][bg])/ba;}break;}e[bb]=d;}}}}this.stop();this.in_animation=1;J[this.id]={start:bj.start||+new Date,ms:ba,easing:a9,from:be,diff:a7,to:e,el:this,callback:E,t:{x:0,y:0}};++J[m]==1&&aV();return this;};aB[a2].stop=function(){J[this.id]&&J[m]--;delete J[this.id];return this;};aB[a2].translate=function(d,e){return this.attr({translation:d+" "+e});};aB[a2][aE]=function(){return"Rapha\xebl\u2019s object";};ap.ae=J;var U=function(d){this.items=[];this[m]=0;if(d){for(var e=0,E=d[m];e<E;e++){if(d[e]&&(d[e].constructor==aB||d[e].constructor==U)){this[this.items[m]]=this.items[this.items[m]]=d[e];this[m]++;}}}};U[a2][f]=function(){var R,d;for(var e=0,E=arguments[m];e<E;e++){R=arguments[e];if(R&&(R.constructor==aB||R.constructor==U)){d=this.items[m];this[d]=this.items[d]=R;this[m]++;}}return this;};U[a2].pop=function(){delete this[this[m]--];return this.items.pop();};for(var y in aB[a2]){if(aB[a2][T](y)){U[a2][y]=(function(d){return function(){for(var e=0,E=this.items[m];e<E;e++){this.items[e][d][a0](this.items[e],arguments);}return this;};})(y);}}U[a2].attr=function(e,a5){if(e&&ap.is(e,"array")&&ap.is(e[0],"object")){for(var d=0,S=e[m];d<S;d++){this.items[d].attr(e[d]);}}else{for(var E=0,R=this.items[m];E<R;E++){this.items[E].attr[a0](this.items[E],arguments);}}return this;};U[a2].animate=function(S,e,a7,a6){(ap.is(a7,"function")||!a7)&&(a6=a7||null);var d=this.items[m],E=d,a5=this,R;a6&&(R=function(){!--d&&a6.call(a5);});this.items[--E].animate(S,e,a7||R,R);while(E--){this.items[E].animateWith(this.items[d-1],S,e,a7||R,R);}return this;};U[a2].insertAfter=function(e){var d=this.items[m];while(d--){this.items[d].insertAfter(e);}return this;};U[a2].getBBox=function(){var d=[],a5=[],e=[],R=[];for(var E=this.items[m];E--;){var S=this.items[E].getBBox();d[f](S.x);a5[f](S.y);e[f](S.x+S.width);R[f](S.y+S.height);}d=aM[a0](0,d);a5=aM[a0](0,a5);return{x:d,y:a5,width:g[a0](0,e)-d,height:g[a0](0,R)-a5};};U[a2].clone=function(E){E=new U;for(var d=0,e=this.items[m];d<e;d++){E[f](this.items[d].clone());}return E;};ap.registerFont=function(e){if(!e.face){return e;}this.fonts=this.fonts||{};var E={w:e.w,face:{},glyphs:{}},i=e.face["font-family"];for(var a5 in e.face){if(e.face[T](a5)){E.face[a5]=e.face[a5];}}if(this.fonts[i]){this.fonts[i][f](E);}else{this.fonts[i]=[E];}if(!e.svg){E.face["units-per-em"]=H(e.face["units-per-em"],10);for(var R in e.glyphs){if(e.glyphs[T](R)){var S=e.glyphs[R];E.glyphs[R]={w:S.w,k:{},d:S.d&&"M"+S.d[aT](/[mlcxtrv]/g,function(a6){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a6]||"M";})+"z"};if(S.k){for(var d in S.k){if(S[T](d)){E.glyphs[R].k[d]=S.k[d];}}}}}}return e;};aX[a2].getFont=function(a7,a8,e,R){R=R||"normal";e=e||"normal";a8=+a8||{normal:400,bold:700,lighter:300,bolder:800}[a8]||400;var S=ap.fonts[a7];if(!S){var E=new RegExp("(^|\\s)"+a7[aT](/[^\w\d\s+!~.:_-]/g,aw)+"(\\s|$)","i");for(var d in ap.fonts){if(ap.fonts[T](d)){if(E.test(d)){S=ap.fonts[d];break;}}}}var a5;if(S){for(var a6=0,a9=S[m];a6<a9;a6++){a5=S[a6];if(a5.face["font-weight"]==a8&&(a5.face["font-style"]==e||!a5.face["font-style"])&&a5.face["font-stretch"]==R){break;}}}return a5;};aX[a2].print=function(R,E,d,a6,a7,bg){bg=bg||"middle";var bc=this.set(),bf=(d+aw)[z](aw),bd=0,a9=aw,bh;ap.is(a6,"string")&&(a6=this.getFont(a6));if(a6){bh=(a7||16)/a6.face["units-per-em"];var e=a6.face.bbox.split(a),a5=+e[0],a8=+e[1]+(bg=="baseline"?e[3]-e[1]+(+a6.face.descent):(e[3]-e[1])/2);for(var bb=0,S=bf[m];bb<S;bb++){var ba=bb&&a6.glyphs[bf[bb-1]]||{},be=a6.glyphs[bf[bb]];bd+=bb?(ba.w||a6.w)+(ba.k&&ba.k[bf[bb]]||0):0;be&&be.d&&bc[f](this.path(be.d).attr({fill:"#000",stroke:"none",translation:[bd,0]}));}bc.scale(bh,bh,a5,a8).translate(R-a5,E-a8);}return bc;};ap.format=function(i){var e=ap.is(arguments[1],"array")?[0][aW](arguments[1]):arguments,d=/\{(\d+)\}/g;i&&ap.is(i,"string")&&e[m]-1&&(i=i[aT](d,function(R,E){return e[++E]==null?aw:e[E];}));return i||aw;};ap.ninja=function(){l.was?(Raphael=l.is):delete Raphael;return ap;};ap.el=aB[a2];return ap;})();
\ No newline at end of file
+Raphael=function(){function m(){if(m.is(arguments[0],W)){for(var a=arguments[0],b=za[K](m,a.splice(0,3+m.is(a[0],P))),c=b.set(),d=0,f=a[o];d<f;d++){var e=a[d]||{};kb.test(e.type)&&c[E](b[e.type]().attr(e))}return c}return za[K](m,arguments)}m.version="1.4.0";var U=/[, ]+/,kb=/^(circle|rect|path|ellipse|text|image)$/,p="prototype",B="hasOwnProperty",C=document,X=window,Ha={was:Object[p][B].call(X,"Raphael"),is:X.Raphael};function G(){}var w="appendChild",K="apply",N="concat",lb="createTouch"in C,s=
+"",Q=" ",H="split",Ia="click dblclick mousedown mousemove mouseout mouseover mouseup"[H](Q),Ja={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},R="join",o="length",ca=String[p].toLowerCase,x=Math,Y=x.max,Z=x.min,P="number",fa="string",W="array",O="toString",ba="fill",mb=Object[p][O],D=x.pow,E="push",ga=/^(?=[\da-f]$)/,Ka=/^url\(['"]?([^\)]+?)['"]?\)$/i,nb=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+(?:\s*,\s*[\d\.]+)?)\s*\)|rgba?\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%(?:\s*,\s*[\d\.]+%))\s*\)|hs[bl]\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hs[bl]\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i,
+F=x.round,V="setAttribute",z=parseFloat,da=parseInt,oa=String[p].toUpperCase,pa={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/",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",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",translation:"0 0",width:0,x:0,y:0},Aa={along:"along",blur:P,"clip-rect":"csv",cx:P,cy:P,fill:"colour","fill-opacity":P,"font-size":P,height:P,opacity:P,path:"path",r:P,rotation:"csv",rx:P,ry:P,scale:"csv",stroke:"colour","stroke-opacity":P,"stroke-width":P,translation:"csv",width:P,x:P,y:P},I="replace";m.type=X.SVGAngle||C.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(m.type==
+"VML"){var ha=C.createElement("div");ha.innerHTML="<!--[if vml]><br><br><![endif]--\>";if(ha.childNodes[o]!=2)return m.type=null;ha=null}m.svg=!(m.vml=m.type=="VML");G[p]=m[p];m._id=0;m._oid=0;m.fn={};m.is=function(a,b){b=ca.call(b);return b=="object"&&a===Object(a)||b=="undefined"&&typeof a==b||b=="null"&&a==null||ca.call(mb.call(a).slice(8,-1))==b};m.setWindow=function(a){X=a;C=X.document};function qa(a){if(m.vml){var b=/^\s+|\s+$/g;qa=T(function(d){var f;d=(d+s)[I](b,s);try{var e=new X.ActiveXObject("htmlfile");
+e.write("<body>");e.close();f=e.body}catch(h){f=X.createPopup().document.body}e=f.createTextRange();try{f.style.color=d;var g=e.queryCommandValue("ForeColor");g=(g&255)<<16|g&65280|(g&16711680)>>>16;return"#"+("000000"+g[O](16)).slice(-6)}catch(i){return"none"}})}else{var c=C.createElement("i");c.title="Rapha\u00ebl Colour Picker";c.style.display="none";C.body[w](c);qa=T(function(d){c.style.color=d;return C.defaultView.getComputedStyle(c,s).getPropertyValue("color")})}return qa(a)}function ob(){return"hsb("+
+[this.h,this.s,this.b]+")"}function pb(){return this.hex}m.hsb2rgb=T(function(a,b,c){if(m.is(a,"object")&&"h"in a&&"s"in a&&"b"in a){c=a.b;b=a.s;a=a.h}var d;if(c==0)return{r:0,g:0,b:0,hex:"#000"};if(a>1||b>1||c>1){a/=255;b/=255;c/=255}d=~~(a*6);a=a*6-d;var f=c*(1-b),e=c*(1-b*a),h=c*(1-b*(1-a));a=[c,e,f,f,h,c,c][d];b=[h,c,c,e,f,f,h][d];d=[f,f,h,c,c,e,f][d];a*=255;b*=255;d*=255;c={r:a,g:b,b:d,toString:pb};a=(~~a)[O](16);b=(~~b)[O](16);d=(~~d)[O](16);a=a[I](ga,"0");b=b[I](ga,"0");d=d[I](ga,"0");c.hex=
+"#"+a+b+d;return c},m);m.rgb2hsb=T(function(a,b,c){if(m.is(a,"object")&&"r"in a&&"g"in a&&"b"in a){c=a.b;b=a.g;a=a.r}if(m.is(a,fa)){var d=m.getRGB(a);a=d.r;b=d.g;c=d.b}if(a>1||b>1||c>1){a/=255;b/=255;c/=255}var f=Y(a,b,c),e=Z(a,b,c);d=f;if(e==f)return{h:0,s:0,b:f};else{var h=f-e;e=h/f;a=a==f?(b-c)/h:b==f?2+(c-a)/h:4+(a-b)/h;a/=6;a<0&&a++;a>1&&a--}return{h:a,s:e,b:d,toString:ob}},m);var qb=/,?([achlmqrstvxz]),?/gi,ra=/\s*,\s*/,rb={hs:1,rg:1};m._path2string=function(){return this.join(",")[I](qb,"$1")};
+function T(a,b,c){function d(){var f=Array[p].slice.call(arguments,0),e=f[R]("\u25ba"),h=d.cache=d.cache||{},g=d.count=d.count||[];if(h[B](e))return c?c(h[e]):h[e];g[o]>=1000&&delete h[g.shift()];g[E](e);h[e]=a[K](b,f);return c?c(h[e]):h[e]}return d}m.getRGB=T(function(a){if(!a||(a+=s).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1};if(a=="none")return{r:-1,g:-1,b:-1,hex:"none"};!(rb[B](a.substring(0,2))||a.charAt()=="#")&&(a=qa(a));var b,c,d,f,e;if(a=a.match(nb)){if(a[2]){d=da(a[2].substring(5),
+16);c=da(a[2].substring(3,5),16);b=da(a[2].substring(1,3),16)}if(a[3]){d=da((e=a[3].charAt(3))+e,16);c=da((e=a[3].charAt(2))+e,16);b=da((e=a[3].charAt(1))+e,16)}if(a[4]){a=a[4][H](ra);b=z(a[0]);c=z(a[1]);d=z(a[2]);f=z(a[3])}if(a[5]){a=a[5][H](ra);b=z(a[0])*2.55;c=z(a[1])*2.55;d=z(a[2])*2.55;f=z(a[3])}if(a[6]){a=a[6][H](ra);b=z(a[0]);c=z(a[1]);d=z(a[2]);return m.hsb2rgb(b,c,d)}if(a[7]){a=a[7][H](ra);b=z(a[0])*2.55;c=z(a[1])*2.55;d=z(a[2])*2.55;return m.hsb2rgb(b,c,d)}a={r:b,g:c,b:d};b=(~~b)[O](16);
+c=(~~c)[O](16);d=(~~d)[O](16);b=b[I](ga,"0");c=c[I](ga,"0");d=d[I](ga,"0");a.hex="#"+b+c+d;isFinite(z(f))&&(a.o=f);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1}},m);m.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75};var b=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;if(a.h>1){a.h=0;a.s-=0.2;a.s<=0&&(this.getColor.start={h:0,s:1,b:a.b})}return b.hex};m.getColor.reset=function(){delete this.start};var sb=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,
+tb=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig;m.parsePathString=T(function(a){if(!a)return null;var b={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},c=[];if(m.is(a,W)&&m.is(a[0],W))c=sa(a);c[o]||(a+s)[I](sb,function(d,f,e){var h=[];d=ca.call(f);e[I](tb,function(g,i){i&&h[E](+i)});if(d=="m"&&h[o]>2){c[E]([f][N](h.splice(0,2)));d="l";f=f=="m"?"l":"L"}for(;h[o]>=b[d];){c[E]([f][N](h.splice(0,b[d])));if(!b[d])break}});c[O]=m._path2string;return c});m.findDotsAtSegment=function(a,b,c,d,f,e,h,g,i){var j=1-i,k=
+D(j,3)*a+D(j,2)*3*i*c+j*3*i*i*f+D(i,3)*h;j=D(j,3)*b+D(j,2)*3*i*d+j*3*i*i*e+D(i,3)*g;var n=a+2*i*(c-a)+i*i*(f-2*c+a),r=b+2*i*(d-b)+i*i*(e-2*d+b),q=c+2*i*(f-c)+i*i*(h-2*f+c),l=d+2*i*(e-d)+i*i*(g-2*e+d);a=(1-i)*a+i*c;b=(1-i)*b+i*d;f=(1-i)*f+i*h;e=(1-i)*e+i*g;g=90-x.atan((n-q)/(r-l))*180/x.PI;(n>q||r<l)&&(g+=180);return{x:k,y:j,m:{x:n,y:r},n:{x:q,y:l},start:{x:a,y:b},end:{x:f,y:e},alpha:g}};var ua=T(function(a){if(!a)return{x:0,y:0,width:0,height:0};a=ta(a);for(var b=0,c=0,d=[],f=[],e,h=0,g=a[o];h<g;h++){e=
+a[h];if(e[0]=="M"){b=e[1];c=e[2];d[E](b);f[E](c)}else{b=ub(b,c,e[1],e[2],e[3],e[4],e[5],e[6]);d=d[N](b.min.x,b.max.x);f=f[N](b.min.y,b.max.y);b=e[5];c=e[6]}}a=Z[K](0,d);e=Z[K](0,f);return{x:a,y:e,width:Y[K](0,d)-a,height:Y[K](0,f)-e}});function sa(a){var b=[];if(!m.is(a,W)||!m.is(a&&a[0],W))a=m.parsePathString(a);for(var c=0,d=a[o];c<d;c++){b[c]=[];for(var f=0,e=a[c][o];f<e;f++)b[c][f]=a[c][f]}b[O]=m._path2string;return b}var La=T(function(a){if(!m.is(a,W)||!m.is(a&&a[0],W))a=m.parsePathString(a);
+var b=[],c=0,d=0,f=0,e=0,h=0;if(a[0][0]=="M"){c=a[0][1];d=a[0][2];f=c;e=d;h++;b[E](["M",c,d])}h=h;for(var g=a[o];h<g;h++){var i=b[h]=[],j=a[h];if(j[0]!=ca.call(j[0])){i[0]=ca.call(j[0]);switch(i[0]){case "a":i[1]=j[1];i[2]=j[2];i[3]=j[3];i[4]=j[4];i[5]=j[5];i[6]=+(j[6]-c).toFixed(3);i[7]=+(j[7]-d).toFixed(3);break;case "v":i[1]=+(j[1]-d).toFixed(3);break;case "m":f=j[1];e=j[2];default:for(var k=1,n=j[o];k<n;k++)i[k]=+(j[k]-(k%2?c:d)).toFixed(3)}}else{b[h]=[];if(j[0]=="m"){f=j[1]+c;e=j[2]+d}i=0;for(k=
+j[o];i<k;i++)b[h][i]=j[i]}j=b[h][o];switch(b[h][0]){case "z":c=f;d=e;break;case "h":c+=+b[h][j-1];break;case "v":d+=+b[h][j-1];break;default:c+=+b[h][j-2];d+=+b[h][j-1]}}b[O]=m._path2string;return b},0,sa),la=T(function(a){if(!m.is(a,W)||!m.is(a&&a[0],W))a=m.parsePathString(a);var b=[],c=0,d=0,f=0,e=0,h=0;if(a[0][0]=="M"){c=+a[0][1];d=+a[0][2];f=c;e=d;h++;b[0]=["M",c,d]}h=h;for(var g=a[o];h<g;h++){var i=b[h]=[],j=a[h];if(j[0]!=oa.call(j[0])){i[0]=oa.call(j[0]);switch(i[0]){case "A":i[1]=j[1];i[2]=
+j[2];i[3]=j[3];i[4]=j[4];i[5]=j[5];i[6]=+(j[6]+c);i[7]=+(j[7]+d);break;case "V":i[1]=+j[1]+d;break;case "H":i[1]=+j[1]+c;break;case "M":f=+j[1]+c;e=+j[2]+d;default:for(var k=1,n=j[o];k<n;k++)i[k]=+j[k]+(k%2?c:d)}}else{k=0;for(n=j[o];k<n;k++)b[h][k]=j[k]}switch(i[0]){case "Z":c=f;d=e;break;case "H":c=i[1];break;case "V":d=i[1];break;default:c=b[h][b[h][o]-2];d=b[h][b[h][o]-1]}}b[O]=m._path2string;return b},null,sa);function va(a,b,c,d){return[a,b,c,d,c,d]}function Ma(a,b,c,d,f,e){var h=1/3,g=2/3;return[h*
+a+g*c,h*b+g*d,h*f+g*c,h*e+g*d,f,e]}function Na(a,b,c,d,f,e,h,g,i,j){var k=x.PI,n=k*120/180,r=k/180*(+f||0),q=[],l,u=T(function(J,ea,wa){var vb=J*x.cos(wa)-ea*x.sin(wa);J=J*x.sin(wa)+ea*x.cos(wa);return{x:vb,y:J}});if(j){y=j[0];l=j[1];e=j[2];A=j[3]}else{l=u(a,b,-r);a=l.x;b=l.y;l=u(g,i,-r);g=l.x;i=l.y;x.cos(k/180*f);x.sin(k/180*f);l=(a-g)/2;y=(b-i)/2;A=l*l/(c*c)+y*y/(d*d);if(A>1){A=x.sqrt(A);c=A*c;d=A*d}A=c*c;var L=d*d;A=(e==h?-1:1)*x.sqrt(x.abs((A*L-A*y*y-L*l*l)/(A*y*y+L*l*l)));e=A*c*y/d+(a+g)/2;var A=
+A*-d*l/c+(b+i)/2,y=x.asin(((b-A)/d).toFixed(7));l=x.asin(((i-A)/d).toFixed(7));y=a<e?k-y:y;l=g<e?k-l:l;y<0&&(y=k*2+y);l<0&&(l=k*2+l);if(h&&y>l)y-=k*2;if(!h&&l>y)l-=k*2}k=l-y;if(x.abs(k)>n){q=l;k=g;L=i;l=y+n*(h&&l>y?1:-1);g=e+c*x.cos(l);i=A+d*x.sin(l);q=Na(g,i,c,d,f,0,h,k,L,[l,q,e,A])}k=l-y;f=x.cos(y);e=x.sin(y);h=x.cos(l);l=x.sin(l);k=x.tan(k/4);c=4/3*c*k;k=4/3*d*k;d=[a,b];a=[a+c*e,b-k*f];b=[g+c*l,i-k*h];g=[g,i];a[0]=2*d[0]-a[0];a[1]=2*d[1]-a[1];if(j)return[a,b,g][N](q);else{q=[a,b,g][N](q)[R]()[H](",");
+j=[];g=0;for(i=q[o];g<i;g++)j[g]=g%2?u(q[g-1],q[g],r).y:u(q[g],q[g+1],r).x;return j}}function ma(a,b,c,d,f,e,h,g,i){var j=1-i;return{x:D(j,3)*a+D(j,2)*3*i*c+j*3*i*i*f+D(i,3)*h,y:D(j,3)*b+D(j,2)*3*i*d+j*3*i*i*e+D(i,3)*g}}var ub=T(function(a,b,c,d,f,e,h,g){var i=f-2*c+a-(h-2*f+c),j=2*(c-a)-2*(f-c),k=a-c,n=(-j+x.sqrt(j*j-4*i*k))/2/i;i=(-j-x.sqrt(j*j-4*i*k))/2/i;var r=[b,g],q=[a,h];x.abs(n)>1000000000000&&(n=0.5);x.abs(i)>1000000000000&&(i=0.5);if(n>0&&n<1){n=ma(a,b,c,d,f,e,h,g,n);q[E](n.x);r[E](n.y)}if(i>
+0&&i<1){n=ma(a,b,c,d,f,e,h,g,i);q[E](n.x);r[E](n.y)}i=e-2*d+b-(g-2*e+d);j=2*(d-b)-2*(e-d);k=b-d;n=(-j+x.sqrt(j*j-4*i*k))/2/i;i=(-j-x.sqrt(j*j-4*i*k))/2/i;x.abs(n)>1000000000000&&(n=0.5);x.abs(i)>1000000000000&&(i=0.5);if(n>0&&n<1){n=ma(a,b,c,d,f,e,h,g,n);q[E](n.x);r[E](n.y)}if(i>0&&i<1){n=ma(a,b,c,d,f,e,h,g,i);q[E](n.x);r[E](n.y)}return{min:{x:Z[K](0,q),y:Z[K](0,r)},max:{x:Y[K](0,q),y:Y[K](0,r)}}}),ta=T(function(a,b){var c=la(a),d=b&&la(b);a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null};b={x:0,y:0,
+bx:0,by:0,X:0,Y:0,qx:null,qy:null};function f(q,l){var u;if(!q)return["C",l.x,l.y,l.x,l.y,l.x,l.y];!(q[0]in{T:1,Q:1})&&(l.qx=l.qy=null);switch(q[0]){case "M":l.X=q[1];l.Y=q[2];break;case "A":q=["C"][N](Na[K](0,[l.x,l.y][N](q.slice(1))));break;case "S":u=l.x+(l.x-(l.bx||l.x));l=l.y+(l.y-(l.by||l.y));q=["C",u,l][N](q.slice(1));break;case "T":l.qx=l.x+(l.x-(l.qx||l.x));l.qy=l.y+(l.y-(l.qy||l.y));q=["C"][N](Ma(l.x,l.y,l.qx,l.qy,q[1],q[2]));break;case "Q":l.qx=q[1];l.qy=q[2];q=["C"][N](Ma(l.x,l.y,q[1],
+q[2],q[3],q[4]));break;case "L":q=["C"][N](va(l.x,l.y,q[1],q[2]));break;case "H":q=["C"][N](va(l.x,l.y,q[1],l.y));break;case "V":q=["C"][N](va(l.x,l.y,l.x,q[1]));break;case "Z":q=["C"][N](va(l.x,l.y,l.X,l.Y));break}return q}function e(q,l){if(q[l][o]>7){q[l].shift();for(var u=q[l];u[o];)q.splice(l++,0,["C"][N](u.splice(0,6)));q.splice(l,1);i=Y(c[o],d&&d[o]||0)}}function h(q,l,u,L,A){if(q&&l&&q[A][0]=="M"&&l[A][0]!="M"){l.splice(A,0,["M",L.x,L.y]);u.bx=0;u.by=0;u.x=q[A][1];u.y=q[A][2];i=Y(c[o],d&&
+d[o]||0)}}for(var g=0,i=Y(c[o],d&&d[o]||0);g<i;g++){c[g]=f(c[g],a);e(c,g);d&&(d[g]=f(d[g],b));d&&e(d,g);h(c,d,a,b,g);h(d,c,b,a,g);var j=c[g],k=d&&d[g],n=j[o],r=d&&k[o];a.x=j[n-2];a.y=j[n-1];a.bx=z(j[n-4])||a.x;a.by=z(j[n-3])||a.y;b.bx=d&&(z(k[r-4])||b.x);b.by=d&&(z(k[r-3])||b.y);b.x=d&&k[r-2];b.y=d&&k[r-1]}return d?[c,d]:c},null,sa),Oa=T(function(a){for(var b=[],c=0,d=a[o];c<d;c++){var f={},e=a[c].match(/^([^:]*):?([\d\.]*)/);f.color=m.getRGB(e[1]);if(f.color.error)return null;f.color=f.color.hex;
+e[2]&&(f.offset=e[2]+"%");b[E](f)}c=1;for(d=b[o]-1;c<d;c++)if(!b[c].offset){a=z(b[c-1].offset||0);e=0;for(f=c+1;f<d;f++)if(b[f].offset){e=b[f].offset;break}if(!e){e=100;f=d}e=z(e);for(e=(e-a)/(f-c+1);c<f;c++){a+=e;b[c].offset=a+"%"}}return b});function Pa(a,b,c,d){if(m.is(a,fa)||m.is(a,"object")){a=m.is(a,fa)?C.getElementById(a):a;if(a.tagName)return b==null?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:b,height:c}}else return{container:1,
+x:a,y:b,width:c,height:d}}function Ba(a,b){var c=this;for(var d in b)if(b[B](d)&&!(d in a))switch(typeof b[d]){case "function":(function(f){a[d]=a===c?f:function(){return f[K](c,arguments)}})(b[d]);break;case "object":a[d]=a[d]||{};Ba.call(this,a[d],b[d]);break;default:a[d]=b[d];break}}function ia(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)}function Qa(a,b){if(b.top!==a){ia(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=
+a}}function Ra(a,b){if(b.bottom!==a){ia(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a}}function Sa(a,b,c){ia(a,c);b==c.top&&(c.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a}function Ta(a,b,c){ia(a,c);b==c.bottom&&(c.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b}function Ua(a){return function(){throw new Error("Rapha\u00ebl: you are calling to method \u201c"+a+"\u201d of removed object");}}var Va=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(m.svg){G[p].svgns=
+"http://www.w3.org/2000/svg";G[p].xlink="http://www.w3.org/1999/xlink";F=function(a){return+a+(~~a===a)*0.5};var v=function(a,b){if(b)for(var c in b)b[B](c)&&a[V](c,b[c]+s);else{a=C.createElementNS(G[p].svgns,a);a.style.webkitTapHighlightColor="rgba(0,0,0,0)";return a}};m[O]=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var Wa=function(a,b){var c=v("path");b.canvas&&b.canvas[w](c);b=new t(c,b);b.type="path";aa(b,{fill:"none",stroke:"#000",path:a});return b},
+na=function(a,b,c){var d="linear",f=0.5,e=0.5,h=a.style;b=(b+s)[I](Va,function(k,n,r){d="radial";if(n&&r){f=z(n);e=z(r);k=(e>0.5)*2-1;D(f-0.5,2)+D(e-0.5,2)>0.25&&(e=x.sqrt(0.25-D(f-0.5,2))*k+0.5)&&e!=0.5&&(e=e.toFixed(5)-1.0E-5*k)}return s});b=b[H](/\s*\-\s*/);if(d=="linear"){var g=b.shift();g=-z(g);if(isNaN(g))return null;g=[0,0,x.cos(g*x.PI/180),x.sin(g*x.PI/180)];var i=1/(Y(x.abs(g[2]),x.abs(g[3]))||1);g[2]*=i;g[3]*=i;if(g[2]<0){g[0]=-g[2];g[2]=0}if(g[3]<0){g[1]=-g[3];g[3]=0}}b=Oa(b);if(!b)return null;
+i=a.getAttribute(ba);(i=i.match(/^url\(#(.*)\)$/))&&c.defs.removeChild(C.getElementById(i[1]));i=v(d+"Gradient");i.id="r"+(m._id++)[O](36);v(i,d=="radial"?{fx:f,fy:e}:{x1:g[0],y1:g[1],x2:g[2],y2:g[3]});c.defs[w](i);c=0;for(g=b[o];c<g;c++){var j=v("stop");v(j,{offset:b[c].offset?b[c].offset:!c?"0%":"100%","stop-color":b[c].color||"#fff"});i[w](j)}v(a,{fill:"url(#"+i.id+")",opacity:1,"fill-opacity":1});h.fill=s;h.opacity=1;return h.fillOpacity=1},Ca=function(a){var b=a.getBBox();v(a.pattern,{patternTransform:m.format("translate({0},{1})",
+b.x,b.y)})},aa=function(a,b){var c={"":[0],none:[0],"-":[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]},d=a.node,f=a.attrs,e=a.rotate();function h(l,u){if(u=c[ca.call(u)]){var L=l.attrs["stroke-width"]||"1";l={round:L,square:L,butt:0}[l.attrs["stroke-linecap"]||b["stroke-linecap"]]||0;for(var A=[],y=u[o];y--;)A[y]=u[y]*L+(y%2?1:-1)*l;v(d,{"stroke-dasharray":A[R](",")})}}b[B]("rotation")&&(e=b.rotation);var g=
+(e+s)[H](U);if(g.length-1){g[1]=+g[1];g[2]=+g[2]}else g=null;z(e)&&a.rotate(0,true);for(var i in b)if(b[B](i))if(pa[B](i)){var j=b[i];f[i]=j;switch(i){case "blur":a.blur(j);break;case "rotation":a.rotate(j,true);break;case "href":case "title":case "target":var k=d.parentNode;if(ca.call(k.tagName)!="a"){var n=v("a");k.insertBefore(n,d);n[w](d);k=n}k.setAttributeNS(a.paper.xlink,i,j);break;case "cursor":d.style.cursor=j;break;case "clip-rect":k=(j+s)[H](U);if(k[o]==4){a.clip&&a.clip.parentNode.parentNode.removeChild(a.clip.parentNode);
+var r=v("clipPath");n=v("rect");r.id="r"+(m._id++)[O](36);v(n,{x:k[0],y:k[1],width:k[2],height:k[3]});r[w](n);a.paper.defs[w](r);v(d,{"clip-path":"url(#"+r.id+")"});a.clip=n}if(!j){(j=C.getElementById(d.getAttribute("clip-path")[I](/(^url\(#|\)$)/g,s)))&&j.parentNode.removeChild(j);v(d,{"clip-path":s});delete a.clip}break;case "path":if(a.type=="path")v(d,{d:j?(f.path=la(j)):"M0,0"});break;case "width":d[V](i,j);if(f.fx){i="x";j=f.x}else break;case "x":if(f.fx)j=-f.x-(f.width||0);case "rx":if(i==
+"rx"&&a.type=="rect")break;case "cx":g&&(i=="x"||i=="cx")&&(g[1]+=j-f[i]);d[V](i,F(j));a.pattern&&Ca(a);break;case "height":d[V](i,j);if(f.fy){i="y";j=f.y}else break;case "y":if(f.fy)j=-f.y-(f.height||0);case "ry":if(i=="ry"&&a.type=="rect")break;case "cy":g&&(i=="y"||i=="cy")&&(g[2]+=j-f[i]);d[V](i,F(j));a.pattern&&Ca(a);break;case "r":a.type=="rect"?v(d,{rx:j,ry:j}):d[V](i,j);break;case "src":a.type=="image"&&d.setAttributeNS(a.paper.xlink,"href",j);break;case "stroke-width":d.style.strokeWidth=
+j;d[V](i,j);f["stroke-dasharray"]&&h(a,f["stroke-dasharray"]);break;case "stroke-dasharray":h(a,j);break;case "translation":j=(j+s)[H](U);j[0]=+j[0]||0;j[1]=+j[1]||0;if(g){g[1]+=j[0];g[2]+=j[1]}xa.call(a,j[0],j[1]);break;case "scale":j=(j+s)[H](U);a.scale(+j[0]||1,+j[1]||+j[0]||1,isNaN(z(j[2]))?null:+j[2],isNaN(z(j[3]))?null:+j[3]);break;case ba:if(k=(j+s).match(Ka)){r=v("pattern");var q=v("image");r.id="r"+(m._id++)[O](36);v(r,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});v(q,{x:0,y:0});
+q.setAttributeNS(a.paper.xlink,"href",k[1]);r[w](q);j=C.createElement("img");j.style.cssText="position:absolute;left:-9999em;top-9999em";j.onload=function(){v(r,{width:this.offsetWidth,height:this.offsetHeight});v(q,{width:this.offsetWidth,height:this.offsetHeight});C.body.removeChild(this);a.paper.safari()};C.body[w](j);j.src=k[1];a.paper.defs[w](r);d.style.fill="url(#"+r.id+")";v(d,{fill:"url(#"+r.id+")"});a.pattern=r;a.pattern&&Ca(a);break}k=m.getRGB(j);if(k.error){if(({circle:1,ellipse:1}[B](a.type)||
+(j+s).charAt()!="r")&&na(d,j,a.paper)){f.gradient=j;f.fill="none";break}}else{delete b.gradient;delete f.gradient;!m.is(f.opacity,"undefined")&&m.is(b.opacity,"undefined")&&v(d,{opacity:f.opacity});!m.is(f["fill-opacity"],"undefined")&&m.is(b["fill-opacity"],"undefined")&&v(d,{"fill-opacity":f["fill-opacity"]})}k[B]("o")&&v(d,{"fill-opacity":k.o/100});case "stroke":k=m.getRGB(j);d[V](i,k.hex);i=="stroke"&&k[B]("o")&&v(d,{"stroke-opacity":k.o/100});break;case "gradient":(({circle:1,ellipse:1})[B](a.type)||
+(j+s).charAt()!="r")&&na(d,j,a.paper);break;case "opacity":case "fill-opacity":if(f.gradient){if(k=C.getElementById(d.getAttribute(ba)[I](/^url\(#|\)$/g,s))){k=k.getElementsByTagName("stop");k[k[o]-1][V]("stop-opacity",j)}break}default:i=="font-size"&&(j=da(j,10)+"px");k=i[I](/(\-.)/g,function(l){return oa.call(l.substring(1))});d.style[k]=j;d[V](i,j);break}}wb(a,b);if(g)a.rotate(g.join(Q));else z(e)&&a.rotate(e,true)},Xa=1.2,wb=function(a,b){if(!(a.type!="text"||!(b[B]("text")||b[B]("font")||b[B]("font-size")||
+b[B]("x")||b[B]("y")))){var c=a.attrs,d=a.node,f=d.firstChild?da(C.defaultView.getComputedStyle(d.firstChild,s).getPropertyValue("font-size"),10):10;if(b[B]("text")){for(c.text=b.text;d.firstChild;)d.removeChild(d.firstChild);b=(b.text+s)[H]("\n");for(var e=0,h=b[o];e<h;e++)if(b[e]){var g=v("tspan");e&&v(g,{dy:f*Xa,x:c.x});g[w](C.createTextNode(b[e]));d[w](g)}}else{b=d.getElementsByTagName("tspan");e=0;for(h=b[o];e<h;e++)e&&v(b[e],{dy:f*Xa,x:c.x})}v(d,{y:c.y});a=a.getBBox();(a=c.y-(a.y+a.height/2))&&
+isFinite(a)&&v(d,{y:c.y+a})}},t=function(a,b){this[0]=a;this.id=m._oid++;this.node=a;a.raphael=this;this.paper=b;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1};!b.bottom&&(b.bottom=this);(this.prev=b.top)&&(b.top.next=this);b.top=this;this.next=null};t[p].rotate=function(a,b,c){if(this.removed)return this;if(a==null){if(this._.rt.cx)return[this._.rt.deg,this._.rt.cx,this._.rt.cy][R](Q);return this._.rt.deg}var d=this.getBBox();a=(a+s)[H](U);if(a[o]-
+1){b=z(a[1]);c=z(a[2])}a=z(a[0]);if(b!=null)this._.rt.deg=a;else this._.rt.deg+=a;c==null&&(b=null);this._.rt.cx=b;this._.rt.cy=c;b=b==null?d.x+d.width/2:b;c=c==null?d.y+d.height/2:c;if(this._.rt.deg){this.transformations[0]=m.format("rotate({0} {1} {2})",this._.rt.deg,b,c);this.clip&&v(this.clip,{transform:m.format("rotate({0} {1} {2})",-this._.rt.deg,b,c)})}else{this.transformations[0]=s;this.clip&&v(this.clip,{transform:s})}v(this.node,{transform:this.transformations[R](Q)});return this};t[p].hide=
+function(){!this.removed&&(this.node.style.display="none");return this};t[p].show=function(){!this.removed&&(this.node.style.display="");return this};t[p].remove=function(){if(!this.removed){ia(this,this.paper);this.node.parentNode.removeChild(this.node);for(var a in this)delete this[a];this.removed=true}};t[p].getBBox=function(){if(this.removed)return this;if(this.type=="path")return ua(this.attrs.path);if(this.node.style.display=="none"){this.show();var a=true}var b={};try{b=this.node.getBBox()}catch(c){}finally{b=
+b||{}}if(this.type=="text"){b={x:b.x,y:Infinity,width:0,height:0};for(var d=0,f=this.node.getNumberOfChars();d<f;d++){var e=this.node.getExtentOfChar(d);e.y<b.y&&(b.y=e.y);e.y+e.height-b.y>b.height&&(b.height=e.y+e.height-b.y);e.x+e.width-b.x>b.width&&(b.width=e.x+e.width-b.x)}}a&&this.hide();return b};t[p].attr=function(a,b){if(this.removed)return this;if(a==null){a={};for(var c in this.attrs)if(this.attrs[B](c))a[c]=this.attrs[c];this._.rt.deg&&(a.rotation=this.rotate());(this._.sx!=1||this._.sy!=
+1)&&(a.scale=this.scale());a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient;return a}if(b==null&&m.is(a,fa)){if(a=="translation")return xa.call(this);if(a=="rotation")return this.rotate();if(a=="scale")return this.scale();if(a==ba&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;return this.attrs[a]}if(b==null&&m.is(a,W)){b={};c=0;for(var d=a.length;c<d;c++)b[a[c]]=this.attr(a[c]);return b}if(b!=null){c={};c[a]=b;aa(this,c)}else a!=null&&m.is(a,"object")&&
+aa(this,a);return this};t[p].toFront=function(){if(this.removed)return this;this.node.parentNode[w](this.node);var a=this.paper;a.top!=this&&Qa(this,a);return this};t[p].toBack=function(){if(this.removed)return this;if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);Ra(this,this.paper)}return this};t[p].insertAfter=function(a){if(this.removed)return this;var b=a.node;b.nextSibling?b.parentNode.insertBefore(this.node,b.nextSibling):
+b.parentNode[w](this.node);Sa(this,a,this.paper);return this};t[p].insertBefore=function(a){if(this.removed)return this;var b=a.node;b.parentNode.insertBefore(this.node,b);Ta(this,a,this.paper);return this};t[p].blur=function(a){var b=this;if(+a!==0){var c=v("filter"),d=v("feGaussianBlur");b.attrs.blur=a;c.id="r"+(m._id++)[O](36);v(d,{stdDeviation:+a||1.5});c.appendChild(d);b.paper.defs.appendChild(c);b._blur=c;v(b.node,{filter:"url(#"+c.id+")"})}else{if(b._blur){b._blur.parentNode.removeChild(b._blur);
+delete b._blur;delete b.attrs.blur}b.node.removeAttribute("filter")}};var Ya=function(a,b,c,d){b=F(b);c=F(c);var f=v("circle");a.canvas&&a.canvas[w](f);a=new t(f,a);a.attrs={cx:b,cy:c,r:d,fill:"none",stroke:"#000"};a.type="circle";v(f,a.attrs);return a},Za=function(a,b,c,d,f,e){b=F(b);c=F(c);var h=v("rect");a.canvas&&a.canvas[w](h);a=new t(h,a);a.attrs={x:b,y:c,width:d,height:f,r:e||0,rx:e||0,ry:e||0,fill:"none",stroke:"#000"};a.type="rect";v(h,a.attrs);return a},$a=function(a,b,c,d,f){b=F(b);c=F(c);
+var e=v("ellipse");a.canvas&&a.canvas[w](e);a=new t(e,a);a.attrs={cx:b,cy:c,rx:d,ry:f,fill:"none",stroke:"#000"};a.type="ellipse";v(e,a.attrs);return a},ab=function(a,b,c,d,f,e){var h=v("image");v(h,{x:c,y:d,width:f,height:e,preserveAspectRatio:"none"});h.setAttributeNS(a.xlink,"href",b);a.canvas&&a.canvas[w](h);a=new t(h,a);a.attrs={x:c,y:d,width:f,height:e,src:b};a.type="image";return a},bb=function(a,b,c,d){var f=v("text");v(f,{x:b,y:c,"text-anchor":"middle"});a.canvas&&a.canvas[w](f);a=new t(f,
+a);a.attrs={x:b,y:c,"text-anchor":"middle",text:d,font:pa.font,stroke:"none",fill:"#000"};a.type="text";aa(a,a.attrs);return a},cb=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas[V]("width",this.width);this.canvas[V]("height",this.height);return this},za=function(){var a=Pa[K](0,arguments),b=a&&a.container,c=a.x,d=a.y,f=a.width;a=a.height;if(!b)throw new Error("SVG container not found.");var e=v("svg");c=c||0;d=d||0;f=f||512;a=a||342;v(e,{xmlns:"http://www.w3.org/2000/svg",
+version:1.1,width:f,height:a});if(b==1){e.style.cssText="position:absolute;left:"+c+"px;top:"+d+"px";C.body[w](e)}else b.firstChild?b.insertBefore(e,b.firstChild):b[w](e);b=new G;b.width=f;b.height=a;b.canvas=e;Ba.call(b,b,m.fn);b.clear();return b};G[p].clear=function(){for(var a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;(this.desc=v("desc"))[w](C.createTextNode("Created with Rapha\u00ebl"));a[w](this.desc);a[w](this.defs=v("defs"))};G[p].remove=function(){this.canvas.parentNode&&
+this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=Ua(a)}}if(m.vml){var db={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},xb=/([clmz]),?([^clmz]*)/gi,yb=/-?[^,\s-]+/g,ja=1000+Q+1000,ka=10,zb=function(a){var b=/[ahqstv]/ig,c=la;(a+s).match(b)&&(c=ta);b=/[clmz]/g;if(c==la&&!(a+s).match(b))return a=(a+s)[I](xb,function(i,j,k){var n=[],r=ca.call(j)=="m",q=db[j];k[I](yb,function(l){if(r&&n[o]==2){q+=n+db[j=="m"?"l":"L"];n=[]}n[E](F(l*ka))});return q+n});b=c(a);var d;a=[];for(var f=
+0,e=b[o];f<e;f++){c=b[f];d=ca.call(b[f][0]);d=="z"&&(d="x");for(var h=1,g=c[o];h<g;h++)d+=F(c[h]*ka)+(h!=g-1?",":s);a[E](d)}return a[R](Q)};m[O]=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+this.version};Wa=function(a,b){var c=M("group");c.style.cssText="position:absolute;left:0;top:0;width:"+b.width+"px;height:"+b.height+"px";c.coordsize=b.coordsize;c.coordorigin=b.coordorigin;var d=M("shape"),f=d.style;f.width=b.width+"px";f.height=
+b.height+"px";d.coordsize=ja;d.coordorigin=b.coordorigin;c[w](d);d=new t(d,c,b);f={fill:"none",stroke:"#000"};a&&(f.path=a);d.isAbsolute=true;d.type="path";d.path=[];d.Path=s;aa(d,f);b.canvas[w](c);return d};aa=function(a,b){a.attrs=a.attrs||{};var c=a.node,d=a.attrs,f=c.style,e,h=a;for(e in b)if(b[B](e))d[e]=b[e];b.href&&(c.href=b.href);b.title&&(c.title=b.title);b.target&&(c.target=b.target);b.cursor&&(f.cursor=b.cursor);"blur"in b&&a.blur(b.blur);if(b.path&&a.type=="path"){d.path=b.path;c.path=
+zb(d.path)}b.rotation!=null&&a.rotate(b.rotation,true);if(b.translation){e=(b.translation+s)[H](U);xa.call(a,e[0],e[1]);if(a._.rt.cx!=null){a._.rt.cx+=+e[0];a._.rt.cy+=+e[1];a.setBox(a.attrs,e[0],e[1])}}if(b.scale){e=(b.scale+s)[H](U);a.scale(+e[0]||1,+e[1]||+e[0]||1,+e[2]||null,+e[3]||null)}if("clip-rect"in b){e=(b["clip-rect"]+s)[H](U);if(e[o]==4){e[2]=+e[2]+ +e[0];e[3]=+e[3]+ +e[1];var g=c.clipRect||C.createElement("div"),i=g.style,j=c.parentNode;i.clip=m.format("rect({1}px {2}px {3}px {0}px)",
+e);if(!c.clipRect){i.position="absolute";i.top=0;i.left=0;i.width=a.paper.width+"px";i.height=a.paper.height+"px";j.parentNode.insertBefore(g,j);g[w](j);c.clipRect=g}}if(!b["clip-rect"])c.clipRect&&(c.clipRect.style.clip=s)}if(a.type=="image"&&b.src)c.src=b.src;if(a.type=="image"&&b.opacity){c.filterOpacity=" progid:DXImageTransform.Microsoft.Alpha(opacity="+b.opacity*100+")";f.filter=(c.filterMatrix||s)+(c.filterOpacity||s)}b.font&&(f.font=b.font);b["font-family"]&&(f.fontFamily='"'+b["font-family"][H](",")[0][I](/^['"]+|['"]+$/g,
+s)+'"');b["font-size"]&&(f.fontSize=b["font-size"]);b["font-weight"]&&(f.fontWeight=b["font-weight"]);b["font-style"]&&(f.fontStyle=b["font-style"]);if(b.opacity!=null||b["stroke-width"]!=null||b.fill!=null||b.stroke!=null||b["stroke-width"]!=null||b["stroke-opacity"]!=null||b["fill-opacity"]!=null||b["stroke-dasharray"]!=null||b["stroke-miterlimit"]!=null||b["stroke-linejoin"]!=null||b["stroke-linecap"]!=null){c=a.shape||c;f=c.getElementsByTagName(ba)&&c.getElementsByTagName(ba)[0];e=false;!f&&(e=
+f=M(ba));if("fill-opacity"in b||"opacity"in b){a=((+d["fill-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+m.getRGB(b.fill).o+1||2)-1);a<0&&(a=0);a>1&&(a=1);f.opacity=a}b.fill&&(f.on=true);if(f.on==null||b.fill=="none")f.on=false;if(f.on&&b.fill)if(a=b.fill.match(Ka)){f.src=a[1];f.type="tile"}else{f.color=m.getRGB(b.fill).hex;f.src=s;f.type="solid";if(m.getRGB(b.fill).error&&(h.type in{circle:1,ellipse:1}||(b.fill+s).charAt()!="r")&&na(h,b.fill)){d.fill="none";d.gradient=b.fill}}e&&c[w](f);f=c.getElementsByTagName("stroke")&&
+c.getElementsByTagName("stroke")[0];e=false;!f&&(e=f=M("stroke"));if(b.stroke&&b.stroke!="none"||b["stroke-width"]||b["stroke-opacity"]!=null||b["stroke-dasharray"]||b["stroke-miterlimit"]||b["stroke-linejoin"]||b["stroke-linecap"])f.on=true;(b.stroke=="none"||f.on==null||b.stroke==0||b["stroke-width"]==0)&&(f.on=false);a=m.getRGB(b.stroke);f.on&&b.stroke&&(f.color=a.hex);a=((+d["stroke-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+a.o+1||2)-1);g=(z(b["stroke-width"])||1)*0.75;a<0&&(a=0);a>1&&(a=1);
+b["stroke-width"]==null&&(g=d["stroke-width"]);b["stroke-width"]&&(f.weight=g);g&&g<1&&(a*=g)&&(f.weight=1);f.opacity=a;b["stroke-linejoin"]&&(f.joinstyle=b["stroke-linejoin"]||"miter");f.miterlimit=b["stroke-miterlimit"]||8;b["stroke-linecap"]&&(f.endcap=b["stroke-linecap"]=="butt"?"flat":b["stroke-linecap"]=="square"?"square":"round");if(b["stroke-dasharray"]){a={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot",
+"--..":"longdashdotdot"};f.dashstyle=a[B](b["stroke-dasharray"])?a[b["stroke-dasharray"]]:s}e&&c[w](f)}if(h.type=="text"){f=h.paper.span.style;d.font&&(f.font=d.font);d["font-family"]&&(f.fontFamily=d["font-family"]);d["font-size"]&&(f.fontSize=d["font-size"]);d["font-weight"]&&(f.fontWeight=d["font-weight"]);d["font-style"]&&(f.fontStyle=d["font-style"]);h.node.string&&(h.paper.span.innerHTML=(h.node.string+s)[I](/</g,"&#60;")[I](/&/g,"&#38;")[I](/\n/g,"<br>"));h.W=d.w=h.paper.span.offsetWidth;h.H=
+d.h=h.paper.span.offsetHeight;h.X=d.x;h.Y=d.y+F(h.H/2);switch(d["text-anchor"]){case "start":h.node.style["v-text-align"]="left";h.bbx=F(h.W/2);break;case "end":h.node.style["v-text-align"]="right";h.bbx=-F(h.W/2);break;default:h.node.style["v-text-align"]="center";break}}};na=function(a,b){a.attrs=a.attrs||{};var c="linear",d=".5 .5";a.attrs.gradient=b;b=(b+s)[I](Va,function(i,j,k){c="radial";if(j&&k){j=z(j);k=z(k);D(j-0.5,2)+D(k-0.5,2)>0.25&&(k=x.sqrt(0.25-D(j-0.5,2))*((k>0.5)*2-1)+0.5);d=j+Q+k}return s});
+b=b[H](/\s*\-\s*/);if(c=="linear"){var f=b.shift();f=-z(f);if(isNaN(f))return null}var e=Oa(b);if(!e)return null;a=a.shape||a.node;b=a.getElementsByTagName(ba)[0]||M(ba);!b.parentNode&&a.appendChild(b);if(e[o]){b.on=true;b.method="none";b.color=e[0].color;b.color2=e[e[o]-1].color;a=[];for(var h=0,g=e[o];h<g;h++)e[h].offset&&a[E](e[h].offset+Q+e[h].color);b.colors&&(b.colors.value=a[o]?a[R]():"0% "+b.color);if(c=="radial"){b.type="gradientradial";b.focus="100%";b.focussize=d;b.focusposition=d}else{b.type=
+"gradient";b.angle=(270-f)%360}}return 1};t=function(a,b,c){this[0]=a;this.id=m._oid++;this.node=a;a.raphael=this;this.Y=this.X=0;this.attrs={};this.Group=b;this.paper=c;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1};!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null};t[p].rotate=function(a,b,c){if(this.removed)return this;if(a==null){if(this._.rt.cx)return[this._.rt.deg,this._.rt.cx,this._.rt.cy][R](Q);return this._.rt.deg}a=(a+s)[H](U);if(a[o]-1){b=z(a[1]);c=z(a[2])}a=
+z(a[0]);if(b!=null)this._.rt.deg=a;else this._.rt.deg+=a;c==null&&(b=null);this._.rt.cx=b;this._.rt.cy=c;this.setBox(this.attrs,b,c);this.Group.style.rotation=this._.rt.deg;return this};t[p].setBox=function(a,b,c){if(this.removed)return this;var d=this.Group.style,f=this.shape&&this.shape.style||this.node.style;a=a||{};for(var e in a)if(a[B](e))this.attrs[e]=a[e];b=b||this._.rt.cx;c=c||this._.rt.cy;var h=this.attrs,g,i,j;switch(this.type){case "circle":e=h.cx-h.r;g=h.cy-h.r;i=j=h.r*2;break;case "ellipse":e=
+h.cx-h.rx;g=h.cy-h.ry;i=h.rx*2;j=h.ry*2;break;case "rect":case "image":e=+h.x;g=+h.y;i=h.width||0;j=h.height||0;break;case "text":this.textpath.v=["m",F(h.x),", ",F(h.y-2),"l",F(h.x)+1,", ",F(h.y-2)][R](s);e=h.x-F(this.W/2);g=h.y-this.H/2;i=this.W;j=this.H;break;case "path":if(this.attrs.path){j=ua(this.attrs.path);e=j.x;g=j.y;i=j.width;j=j.height}else{g=e=0;i=this.paper.width;j=this.paper.height}break;default:g=e=0;i=this.paper.width;j=this.paper.height;break}b=b==null?e+i/2:b;c=c==null?g+j/2:c;
+b=b-this.paper.width/2;c=c-this.paper.height/2;var k;d.left!=(k=b+"px")&&(d.left=k);d.top!=(k=c+"px")&&(d.top=k);this.X=this.type=="path"?-b:e;this.Y=this.type=="path"?-c:g;this.W=i;this.H=j;if(this.type=="path"){f.left!=(k=-b*ka+"px")&&(f.left=k);f.top!=(k=-c*ka+"px")&&(f.top=k)}else if(this.type=="text"){f.left!=(k=-b+"px")&&(f.left=k);f.top!=(k=-c+"px")&&(f.top=k)}else{d.width!=(k=this.paper.width+"px")&&(d.width=k);d.height!=(k=this.paper.height+"px")&&(d.height=k);f.left!=(k=e-b+"px")&&(f.left=
+k);f.top!=(k=g-c+"px")&&(f.top=k);f.width!=(k=i+"px")&&(f.width=k);f.height!=(k=j+"px")&&(f.height=k);a=(+a.r||0)/Z(i,j);if(this.type=="rect"&&this.arcsize.toFixed(4)!=a.toFixed(4)&&(a||this.arcsize)){d=M("roundrect");f={};k=this.events&&this.events[o];e=0;d.arcsize=a;d.raphael=this;this.Group[w](d);this.Group.removeChild(this.node);this[0]=this.node=d;this.arcsize=a;for(e in h)f[e]=h[e];delete f.scale;this.attr(f);if(this.events)for(e=0;e<k;e++)this.events[e].unbind=eb(this.node,this.events[e].name,
+this.events[e].f,this)}}};t[p].hide=function(){!this.removed&&(this.Group.style.display="none");return this};t[p].show=function(){!this.removed&&(this.Group.style.display="block");return this};t[p].getBBox=function(){if(this.removed)return this;if(this.type=="path")return ua(this.attrs.path);return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H}};t[p].remove=function(){if(!this.removed){ia(this,this.paper);this.node.parentNode.removeChild(this.node);this.Group.parentNode.removeChild(this.Group);
+this.shape&&this.shape.parentNode.removeChild(this.shape);for(var a in this)delete this[a];this.removed=true}};t[p].attr=function(a,b){if(this.removed)return this;if(a==null){a={};for(var c in this.attrs)if(this.attrs[B](c))a[c]=this.attrs[c];this._.rt.deg&&(a.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(a.scale=this.scale());a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient;return a}if(b==null&&m.is(a,fa)){if(a=="translation")return xa.call(this);if(a=="rotation")return this.rotate();
+if(a=="scale")return this.scale();if(a==ba&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;return this.attrs[a]}if(this.attrs&&b==null&&m.is(a,W)){var d={};c=0;for(b=a[o];c<b;c++)d[a[c]]=this.attr(a[c]);return d}if(b!=null){d={};d[a]=b}b==null&&m.is(a,"object")&&(d=a);if(d){if(d.text&&this.type=="text")this.node.string=d.text;aa(this,d);if(d.gradient&&({circle:1,ellipse:1}[B](this.type)||(d.gradient+s).charAt()!="r"))na(this,d.gradient);(this.type!="path"||this._.rt.deg)&&
+this.setBox(this.attrs)}return this};t[p].toFront=function(){!this.removed&&this.Group.parentNode[w](this.Group);this.paper.top!=this&&Qa(this,this.paper);return this};t[p].toBack=function(){if(this.removed)return this;if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);Ra(this,this.paper)}return this};t[p].insertAfter=function(a){if(this.removed)return this;a.Group.nextSibling?a.Group.parentNode.insertBefore(this.Group,
+a.Group.nextSibling):a.Group.parentNode[w](this.Group);Sa(this,a,this.paper);return this};t[p].insertBefore=function(a){if(this.removed)return this;a.Group.parentNode.insertBefore(this.Group,a.Group);Ta(this,a,this.paper);return this};var Ab=/ progid:\S+Blur\([^\)]+\)/g;t[p].blur=function(a){var b=this.node.style,c=b.filter;c=c.replace(Ab,"");if(+a!==0){this.attrs.blur=a;b.filter=c+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+a||1.5)+")";b.margin=Raphael.format("-{0}px 0 0 -{0}px",Math.round(+a||
+1.5))}else{b.filter=c;b.margin=0;delete this.attrs.blur}};Ya=function(a,b,c,d){var f=M("group"),e=M("oval");f.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";f.coordsize=ja;f.coordorigin=a.coordorigin;f[w](e);e=new t(e,f,a);e.type="circle";aa(e,{stroke:"#000",fill:"none"});e.attrs.cx=b;e.attrs.cy=c;e.attrs.r=d;e.setBox({x:b-d,y:c-d,width:d*2,height:d*2});a.canvas[w](f);return e};Za=function(a,b,c,d,f,e){var h=M("group"),g=M("roundrect"),i=(+e||0)/Z(d,f);h.style.cssText=
+"position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";h.coordsize=ja;h.coordorigin=a.coordorigin;h[w](g);g.arcsize=i;g=new t(g,h,a);g.type="rect";aa(g,{stroke:"#000"});g.arcsize=i;g.setBox({x:b,y:c,width:d,height:f,r:e});a.canvas[w](h);return g};$a=function(a,b,c,d,f){var e=M("group"),h=M("oval");e.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";e.coordsize=ja;e.coordorigin=a.coordorigin;e[w](h);h=new t(h,e,a);h.type="ellipse";aa(h,{stroke:"#000"});
+h.attrs.cx=b;h.attrs.cy=c;h.attrs.rx=d;h.attrs.ry=f;h.setBox({x:b-d,y:c-f,width:d*2,height:f*2});a.canvas[w](e);return h};ab=function(a,b,c,d,f,e){var h=M("group"),g=M("image");h.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";h.coordsize=ja;h.coordorigin=a.coordorigin;g.src=b;h[w](g);g=new t(g,h,a);g.type="image";g.attrs.src=b;g.attrs.x=c;g.attrs.y=d;g.attrs.w=f;g.attrs.h=e;g.setBox({x:c,y:d,width:f,height:e});a.canvas[w](h);return g};bb=function(a,b,c,d){var f=
+M("group"),e=M("shape"),h=e.style,g=M("path"),i=M("textpath");f.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";f.coordsize=ja;f.coordorigin=a.coordorigin;g.v=m.format("m{0},{1}l{2},{1}",F(b*10),F(c*10),F(b*10)+1);g.textpathok=true;h.width=a.width;h.height=a.height;i.string=d+s;i.on=true;e[w](i);e[w](g);f[w](e);h=new t(i,f,a);h.shape=e;h.textpath=g;h.type="text";h.attrs.text=d;h.attrs.x=b;h.attrs.y=c;h.attrs.w=1;h.attrs.h=1;aa(h,{font:pa.font,stroke:"none",
+fill:"#000"});h.setBox();a.canvas[w](f);return h};cb=function(a,b){var c=this.canvas.style;a==+a&&(a+="px");b==+b&&(b+="px");c.width=a;c.height=b;c.clip="rect(0 "+a+" "+b+" 0)";return this};var M;C.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!C.namespaces.rvml&&C.namespaces.add("rvml","urn:schemas-microsoft-com:vml");M=function(a){return C.createElement("<rvml:"+a+' class="rvml">')}}catch(Db){M=function(a){return C.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}za=
+function(){var a=Pa[K](0,arguments),b=a.container,c=a.height,d=a.width,f=a.x;a=a.y;if(!b)throw new Error("VML container not found.");var e=new G,h=e.canvas=C.createElement("div"),g=h.style;f=f||0;a=a||0;d=d||512;c=c||342;d==+d&&(d+="px");c==+c&&(c+="px");e.width=1000;e.height=1000;e.coordsize=ka*1000+Q+ka*1000;e.coordorigin="0 0";e.span=C.createElement("span");e.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";h[w](e.span);g.cssText=
+m.format("width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",d,c);if(b==1){C.body[w](h);g.left=f+"px";g.top=a+"px"}else b.firstChild?b.insertBefore(h,b.firstChild):b[w](h);Ba.call(e,e,m.fn);return e};G[p].clear=function(){this.canvas.innerHTML=s;this.span=C.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[w](this.span);this.bottom=this.top=null};G[p].remove=
+function(){this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=Ua(a);return true}}G[p].safari=/^Apple|^Google/.test(X.navigator.vendor)&&(!(X.navigator.userAgent.indexOf("Version/4.0")+1)||X.navigator.platform.slice(0,2)=="iP")?function(){var a=this.rect(-99,-99,this.width+99,this.height+99);X.setTimeout(function(){a.remove()})}:function(){};var eb=function(){if(C.addEventListener)return function(a,b,c,d){function f(e){if(e.touches)for(var h=0,g=e.touches.length;h<g;h++)if(e.touches[h].target==
+a){e=e.touches[h];e.originalEvent=e}return c.call(d,e)}a.addEventListener(b,f,false);return function(){a.removeEventListener(b,f,false);return true}};else if(C.attachEvent)return function(a,b,c,d){function f(h){return c.call(d,h||X.event)}a.attachEvent("on"+b,f);function e(){a.detachEvent("on"+b,f);return true}return e}}();for(ha=Ia[o];ha--;)(function(a){m[a]=t[p][a]=function(b){if(m.is(b,"function")){var c=lb&&Ja[a]?Ja[a]:a;this.events=this.events||[];this.events.push({name:a,f:b,unbind:eb(this.shape||
+this.node||C,c,b,this)})}return this};m["un"+a]=t[p]["un"+a]=function(b){for(var c=this.events,d=c[o];d--;)if(c[d].name==a&&c[d].f==b){c[d].unbind();c.splice(d,1);!c.length&&delete this.events;return this}return this}})(Ia[ha]);t[p].hover=function(a,b){return this.mouseover(a).mouseout(b)};t[p].unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};t[p].drag=function(a,b,c){this._drag={};var d=this.mousedown(function(h){this._drag.x=h.clientX;this._drag.y=h.clientY;this._drag.id=h.identifier;
+a&&a.call(this,h.clientX,h.clientY);Raphael.mousemove(f).mouseup(e)});function f(h){if(h.changedTouches)for(var g=0,i=h.changedTouches.length;g<i;g++){var j=h.changedTouches[g];if(j.identifier==d._drag.id){b.call(d,j.clientX-d._drag.x,j.clientY-d._drag.y);h.preventDefault()}}else{b.call(d,h.clientX-d._drag.x,h.clientY-d._drag.y);h.preventDefault()}}function e(h){if(h.changedTouches)for(var g=0,i=h.changedTouches.length;g<i;g++){if(h.changedTouches[g].identifier==d._drag.id){Raphael.unmousemove(f).unmouseup(e);
+c&&c.call(d)}}else{Raphael.unmousemove(f).unmouseup(e);c&&c.call(d)}}};G[p].circle=function(a,b,c){return Ya(this,a||0,b||0,c||0)};G[p].rect=function(a,b,c,d,f){return Za(this,a||0,b||0,c||0,d||0,f||0)};G[p].ellipse=function(a,b,c,d){return $a(this,a||0,b||0,c||0,d||0)};G[p].path=function(a){a&&!m.is(a,fa)&&!m.is(a[0],W)&&(a+=s);return Wa(m.format[K](m,arguments),this)};G[p].image=function(a,b,c,d,f){return ab(this,a||"about:blank",b||0,c||0,d||0,f||0)};G[p].text=function(a,b,c){return bb(this,a||
+0,b||0,c||s)};G[p].set=function(a){arguments[o]>1&&(a=Array[p].splice.call(arguments,0,arguments[o]));return new $(a)};G[p].setSize=cb;G[p].top=G[p].bottom=null;G[p].raphael=m;function fb(){return this.x+Q+this.y}t[p].resetScale=function(){if(this.removed)return this;this._.sx=1;this._.sy=1;this.attrs.scale="1 1"};t[p].scale=function(a,b,c,d){if(this.removed)return this;if(a==null&&b==null)return{x:this._.sx,y:this._.sy,toString:fb};b=b||a;!+b&&(b=a);var f,e,h=this.attrs;if(a!=0){var g=this.getBBox(),
+i=g.x+g.width/2,j=g.y+g.height/2;f=a/this._.sx;e=b/this._.sy;c=+c||c==0?c:i;d=+d||d==0?d:j;g=~~(a/x.abs(a));var k=~~(b/x.abs(b)),n=this.node.style,r=c+(i-c)*f;j=d+(j-d)*e;switch(this.type){case "rect":case "image":var q=h.width*g*f,l=h.height*k*e;this.attr({height:l,r:h.r*Z(g*f,k*e),width:q,x:r-q/2,y:j-l/2});break;case "circle":case "ellipse":this.attr({rx:h.rx*g*f,ry:h.ry*k*e,r:h.r*Z(g*f,k*e),cx:r,cy:j});break;case "text":this.attr({x:r,y:j});break;case "path":i=La(h.path);for(var u=true,L=0,A=i[o];L<
+A;L++){var y=i[L],J=oa.call(y[0]);if(!(J=="M"&&u)){u=false;if(J=="A"){y[i[L][o]-2]*=f;y[i[L][o]-1]*=e;y[1]*=g*f;y[2]*=k*e;y[5]=+!(g+k?!+y[5]:+y[5])}else if(J=="H"){J=1;for(var ea=y[o];J<ea;J++)y[J]*=f}else if(J=="V"){J=1;for(ea=y[o];J<ea;J++)y[J]*=e}else{J=1;for(ea=y[o];J<ea;J++)y[J]*=J%2?f:e}}}e=ua(i);f=r-e.x-e.width/2;e=j-e.y-e.height/2;i[0][1]+=f;i[0][2]+=e;this.attr({path:i});break}if(this.type in{text:1,image:1}&&(g!=1||k!=1))if(this.transformations){this.transformations[2]="scale("[N](g,",",
+k,")");this.node[V]("transform",this.transformations[R](Q));f=g==-1?-h.x-(q||0):h.x;e=k==-1?-h.y-(l||0):h.y;this.attr({x:f,y:e});h.fx=g-1;h.fy=k-1}else{this.node.filterMatrix=" progid:DXImageTransform.Microsoft.Matrix(M11="[N](g,", M12=0, M21=0, M22=",k,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");n.filter=(this.node.filterMatrix||s)+(this.node.filterOpacity||s)}else if(this.transformations){this.transformations[2]=s;this.node[V]("transform",this.transformations[R](Q));h.fx=
+0;h.fy=0}else{this.node.filterMatrix=s;n.filter=(this.node.filterMatrix||s)+(this.node.filterOpacity||s)}h.scale=[a,b,c,d][R](Q);this._.sx=a;this._.sy=b}return this};t[p].clone=function(){var a=this.attr();delete a.scale;delete a.translation;return this.paper[this.type]().attr(a)};var gb=T(function(a,b,c,d,f,e,h,g,i){for(var j=0,k,n=0;n<1.001;n+=0.0010){var r=m.findDotsAtSegment(a,b,c,d,f,e,h,g,n);n&&(j+=D(D(k.x-r.x,2)+D(k.y-r.y,2),0.5));if(j>=i)return r;k=r}});function Da(a,b){return function(c,
+d,f){c=ta(c);for(var e,h,g,i,j="",k={},n=0,r=0,q=c.length;r<q;r++){g=c[r];if(g[0]=="M"){e=+g[1];h=+g[2]}else{i=Bb(e,h,g[1],g[2],g[3],g[4],g[5],g[6]);if(n+i>d){if(b&&!k.start){e=gb(e,h,g[1],g[2],g[3],g[4],g[5],g[6],d-n);j+=["C",e.start.x,e.start.y,e.m.x,e.m.y,e.x,e.y];if(f)return j;k.start=j;j=["M",e.x,e.y+"C",e.n.x,e.n.y,e.end.x,e.end.y,g[5],g[6]][R]();n+=i;e=+g[5];h=+g[6];continue}if(!a&&!b){e=gb(e,h,g[1],g[2],g[3],g[4],g[5],g[6],d-n);return{x:e.x,y:e.y,alpha:e.alpha}}}n+=i;e=+g[5];h=+g[6]}j+=g}k.end=
+j;e=a?n:b?k:m.findDotsAtSegment(e,h,g[1],g[2],g[3],g[4],g[5],g[6],1);e.alpha&&(e={x:e.x,y:e.y,alpha:e.alpha});return e}}var Bb=T(function(a,b,c,d,f,e,h,g){for(var i={x:0,y:0},j=0,k=0;k<1.01;k+=0.01){var n=ma(a,b,c,d,f,e,h,g,k);k&&(j+=D(D(i.x-n.x,2)+D(i.y-n.y,2),0.5));i=n}return j}),hb=Da(1),ya=Da(),Ea=Da(0,1);t[p].getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return hb(this.attrs.path)}};t[p].getPointAtLength=function(a){if(this.type==
+"path")return ya(this.attrs.path,a)};t[p].getSubpath=function(a,b){if(this.type=="path"){if(x.abs(this.getTotalLength()-b)<1.0E-6)return Ea(this.attrs.path,a).end;b=Ea(this.attrs.path,b,1);return a?Ea(b,a).end:b}};m.easing_formulas={linear:function(a){return a},"<":function(a){return D(a,3)},">":function(a){return D(a-1,3)+1},"<>":function(a){a*=2;if(a<1)return D(a,3)/2;a-=2;return(D(a,3)+2)/2},backIn:function(a){var b=1.70158;return a*a*((b+1)*a-b)},backOut:function(a){a-=1;var b=1.70158;return a*
+a*((b+1)*a+b)+1},elastic:function(a){if(a==0||a==1)return a;var b=0.3,c=b/4;return D(2,-10*a)*x.sin((a-c)*2*x.PI/b)+1},bounce:function(a){var b=7.5625,c=2.75;if(a<1/c)a=b*a*a;else if(a<2/c){a-=1.5/c;a=b*a*a+0.75}else if(a<2.5/c){a-=2.25/c;a=b*a*a+0.9375}else{a-=2.625/c;a=b*a*a+0.984375}return a}};var S={length:0};function ib(){var a=+new Date;for(var b in S)if(b!="length"&&S[B](b)){var c=S[b];if(c.stop||c.el.removed){delete S[b];S[o]--}else{var d=a-c.start,f=c.ms,e=c.easing,h=c.from,g=c.diff,i=c.to,
+j=c.t,k=c.prev||0,n=c.el,r=c.callback,q={},l;if(d<f){r=m.easing_formulas[e]?m.easing_formulas[e](d/f):d/f;for(var u in h)if(h[B](u)){switch(Aa[u]){case "along":l=r*f*g[u];i.back&&(l=i.len-l);e=ya(i[u],l);n.translate(g.sx-g.x||0,g.sy-g.y||0);g.x=e.x;g.y=e.y;n.translate(e.x-g.sx,e.y-g.sy);i.rot&&n.rotate(g.r+e.alpha,e.x,e.y);break;case P:l=+h[u]+r*f*g[u];break;case "colour":l="rgb("+[Fa(F(h[u].r+r*f*g[u].r)),Fa(F(h[u].g+r*f*g[u].g)),Fa(F(h[u].b+r*f*g[u].b))][R](",")+")";break;case "path":l=[];e=0;for(var L=
+h[u][o];e<L;e++){l[e]=[h[u][e][0]];for(var A=1,y=h[u][e][o];A<y;A++)l[e][A]=+h[u][e][A]+r*f*g[u][e][A];l[e]=l[e][R](Q)}l=l[R](Q);break;case "csv":switch(u){case "translation":l=g[u][0]*(d-k);e=g[u][1]*(d-k);j.x+=l;j.y+=e;l=l+Q+e;break;case "rotation":l=+h[u][0]+r*f*g[u][0];h[u][1]&&(l+=","+h[u][1]+","+h[u][2]);break;case "scale":l=[+h[u][0]+r*f*g[u][0],+h[u][1]+r*f*g[u][1],2 in i[u]?i[u][2]:s,3 in i[u]?i[u][3]:s][R](Q);break;case "clip-rect":l=[];for(e=4;e--;)l[e]=+h[u][e]+r*f*g[u][e];break}break}q[u]=
+l}n.attr(q);n._run&&n._run.call(n)}else{if(i.along){e=ya(i.along,i.len*!i.back);n.translate(g.sx-(g.x||0)+e.x-g.sx,g.sy-(g.y||0)+e.y-g.sy);i.rot&&n.rotate(g.r+e.alpha,e.x,e.y)}(j.x||j.y)&&n.translate(-j.x,-j.y);i.scale&&(i.scale+=s);n.attr(i);delete S[b];S[o]--;n.in_animation=null;m.is(r,"function")&&r.call(n)}c.prev=d}}m.svg&&n&&n.paper&&n.paper.safari();S[o]&&X.setTimeout(ib)}function Fa(a){return Y(Z(a,255),0)}function xa(a,b){if(a==null)return{x:this._.tx,y:this._.ty,toString:fb};this._.tx+=+a;
+this._.ty+=+b;switch(this.type){case "circle":case "ellipse":this.attr({cx:+a+this.attrs.cx,cy:+b+this.attrs.cy});break;case "rect":case "image":case "text":this.attr({x:+a+this.attrs.x,y:+b+this.attrs.y});break;case "path":var c=La(this.attrs.path);c[0][1]+=+a;c[0][2]+=+b;this.attr({path:c});break}return this}t[p].animateWith=function(a,b,c,d,f){S[a.id]&&(b.start=S[a.id].start);return this.animate(b,c,d,f)};t[p].animateAlong=jb();t[p].animateAlongBack=jb(1);function jb(a){return function(b,c,d,f){var e=
+{back:a};m.is(d,"function")?(f=d):(e.rot=d);b&&b.constructor==t&&(b=b.attrs.path);b&&(e.along=b);return this.animate(e,c,f)}}t[p].onAnimation=function(a){this._run=a||0;return this};t[p].animate=function(a,b,c,d){if(m.is(c,"function")||!c)d=c||null;var f={},e={},h={};for(var g in a)if(a[B](g))if(Aa[B](g)){f[g]=this.attr(g);f[g]==null&&(f[g]=pa[g]);e[g]=a[g];switch(Aa[g]){case "along":var i=hb(a[g]),j=ya(a[g],i*!!a.back),k=this.getBBox();h[g]=i/b;h.tx=k.x;h.ty=k.y;h.sx=j.x;h.sy=j.y;e.rot=a.rot;e.back=
+a.back;e.len=i;a.rot&&(h.r=z(this.rotate())||0);break;case P:h[g]=(e[g]-f[g])/b;break;case "colour":f[g]=m.getRGB(f[g]);i=m.getRGB(e[g]);h[g]={r:(i.r-f[g].r)/b,g:(i.g-f[g].g)/b,b:(i.b-f[g].b)/b};break;case "path":i=ta(f[g],e[g]);f[g]=i[0];j=i[1];h[g]=[];i=0;for(k=f[g][o];i<k;i++){h[g][i]=[0];for(var n=1,r=f[g][i][o];n<r;n++)h[g][i][n]=(j[i][n]-f[g][i][n])/b}break;case "csv":j=(a[g]+s)[H](U);i=(f[g]+s)[H](U);switch(g){case "translation":f[g]=[0,0];h[g]=[j[0]/b,j[1]/b];break;case "rotation":f[g]=i[1]==
+j[1]&&i[2]==j[2]?i:[0,j[1],j[2]];h[g]=[(j[0]-f[g][0])/b,0,0];break;case "scale":a[g]=j;f[g]=(f[g]+s)[H](U);h[g]=[(j[0]-f[g][0])/b,(j[1]-f[g][1])/b,0,0];break;case "clip-rect":f[g]=(f[g]+s)[H](U);h[g]=[];for(i=4;i--;)h[g][i]=(j[i]-f[g][i])/b;break}e[g]=j}}this.stop();this.in_animation=1;S[this.id]={start:a.start||+new Date,ms:b,easing:c,from:f,diff:h,to:e,el:this,callback:d,t:{x:0,y:0}};++S[o]==1&&ib();return this};t[p].stop=function(){S[this.id]&&S[o]--;delete S[this.id];return this};t[p].translate=
+function(a,b){return this.attr({translation:a+" "+b})};t[p][O]=function(){return"Rapha\u00ebl\u2019s object"};m.ae=S;function $(a){this.items=[];this[o]=0;this.type="set";if(a)for(var b=0,c=a[o];b<c;b++)if(a[b]&&(a[b].constructor==t||a[b].constructor==$)){this[this.items[o]]=this.items[this.items[o]]=a[b];this[o]++}}$[p][E]=function(){for(var a,b,c=0,d=arguments[o];c<d;c++)if((a=arguments[c])&&(a.constructor==t||a.constructor==$)){b=this.items[o];this[b]=this.items[b]=a;this[o]++}return this};$[p].pop=
+function(){delete this[this[o]--];return this.items.pop()};for(var Ga in t[p])if(t[p][B](Ga))$[p][Ga]=function(a){return function(){for(var b=0,c=this.items[o];b<c;b++)this.items[b][a][K](this.items[b],arguments);return this}}(Ga);$[p].attr=function(a,b){if(a&&m.is(a,W)&&m.is(a[0],"object")){b=0;for(var c=a[o];b<c;b++)this.items[b].attr(a[b])}else{c=0;for(var d=this.items[o];c<d;c++)this.items[c].attr(a,b)}return this};$[p].animate=function(a,b,c,d){(m.is(c,"function")||!c)&&(d=c||null);var f=this.items[o],
+e=f,h=this,g;d&&(g=function(){!--f&&d.call(h)});for(this.items[--e].animate(a,b,c||g,g);e--;)this.items[e].animateWith(this.items[f-1],a,b,c||g,g);return this};$[p].insertAfter=function(a){for(var b=this.items[o];b--;)this.items[b].insertAfter(a);return this};$[p].getBBox=function(){for(var a=[],b=[],c=[],d=[],f=this.items[o];f--;){var e=this.items[f].getBBox();a[E](e.x);b[E](e.y);c[E](e.x+e.width);d[E](e.y+e.height)}a=Z[K](0,a);b=Z[K](0,b);return{x:a,y:b,width:Y[K](0,c)-a,height:Y[K](0,d)-b}};$[p].clone=
+function(a){a=new $;for(var b=0,c=this.items[o];b<c;b++)a[E](this.items[b].clone());return a};m.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"];for(var d in a.face)if(a.face[B](d))b.face[d]=a.face[d];if(this.fonts[c])this.fonts[c][E](b);else this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=da(a.face["units-per-em"],10);for(var f in a.glyphs)if(a.glyphs[B](f)){c=a.glyphs[f];b.glyphs[f]={w:c.w,k:{},d:c.d&&"M"+c.d[I](/[mlcxtrv]/g,
+function(h){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[h]||"M"})+"z"};if(c.k)for(var e in c.k)if(c[B](e))b.glyphs[f].k[e]=c.k[e]}}return a};G[p].getFont=function(a,b,c,d){d=d||"normal";c=c||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(m.fonts){var f=m.fonts[a];if(!f){a=new RegExp("(^|\\s)"+a[I](/[^\w\d\s+!~.:_-]/g,s)+"(\\s|$)","i");for(var e in m.fonts)if(m.fonts[B](e))if(a.test(e)){f=m.fonts[e];break}}var h;if(f){e=0;for(a=f[o];e<a;e++){h=f[e];if(h.face["font-weight"]==
+b&&(h.face["font-style"]==c||!h.face["font-style"])&&h.face["font-stretch"]==d)break}}return h}};G[p].print=function(a,b,c,d,f,e){e=e||"middle";var h=this.set(),g=(c+s)[H](s),i=0;m.is(d,c)&&(d=this.getFont(d));if(d){c=(f||16)/d.face["units-per-em"];var j=d.face.bbox.split(U);f=+j[0];e=+j[1]+(e=="baseline"?j[3]-j[1]+ +d.face.descent:(j[3]-j[1])/2);j=0;for(var k=g[o];j<k;j++){var n=j&&d.glyphs[g[j-1]]||{},r=d.glyphs[g[j]];i+=j?(n.w||d.w)+(n.k&&n.k[g[j]]||0):0;r&&r.d&&h[E](this.path(r.d).attr({fill:"#000",
+stroke:"none",translation:[i,0]}))}h.scale(c,c,f,e).translate(a-f,b-e)}return h};var Cb=/\{(\d+)\}/g;m.format=function(a,b){var c=m.is(b,b)?[0][N](b):arguments;a&&m.is(a,fa)&&c[o]-1&&(a=a[I](Cb,function(d,f){return c[++f]==null?s:c[f]}));return a||s};m.ninja=function(){Ha.was?(Raphael=Ha.is):delete Raphael;return m};m.el=t[p];return m}();