Вход Регистрация
Файл: templates/backend/default/assets/plugins/jquery-ricksaw-chart/js/raphael-min.min.js
Строк: 3780
<?php
!function(e){var l,t,n="0.3.4",i="hasOwnProperty",a=/[./]/,o="*",r=function(){},s=function(e,l){return e-l},c={n:{}},u=function(e,n){var i,a=t,o=Array.prototype.slice.call(arguments,2),r=u.listeners(e),c=0,d=[],h={},f=[],p=l;l=e,t=0;for(var m=0,g=r.length;g>m;m++)"zIndex"in r[m]&&(d.push(r[m].zIndex),r[m].zIndex<0&&(h[r[m].zIndex]=r[m]));for(d.sort(s);d[c]<0;)if(i=h[d[c++]],f.push(i.apply(n,o)),t)return t=a,f;for(m=0;g>m;m++)if(i=r[m],"zIndex"in i)if(i.zIndex==d[c]){if(f.push(i.apply(n,o)),t)break;do if(c++,i=h[d[c]],i&&f.push(i.apply(n,o)),t)break;while(i)}else h[i.zIndex]=i;else if(f.push(i.apply(n,o)),t)break;return t=a,l=p,f.length?f:null};u.listeners=function(e){var l,t,n,i,r,s,u,d,h=e.split(a),f=c,p=[f],m=[];for(i=0,r=h.length;r>i;i++){for(d=[],s=0,u=p.length;u>s;s++)for(f=p[s].n,t=[f[h[i]],f[o]],n=2;n--;)l=t[n],l&&(d.push(l),m=m.concat(l.f||[]));p=d}return m},u.on=function(e,l){for(var t=e.split(a),n=c,i=0,o=t.length;o>i;i++)n=n.n,!n[t[i]]&&(n[t[i]]={n:{}}),n=n[t[i]];for(n.f=n.f||[],i=0,o=n.f.length;o>i;i++)if(n.f[i]==l)return r;return n.f.push(l),function(e){+e==+e&&(l.zIndex=+e)}},u.stop=function(){t=1},u.nt=function(e){return e?new RegExp("(?:\.|\/|^)"+e+"(?:\.|\/|$)").test(l):l},u.off=u.unbind=function(e,l){var t,n,r,s,u,d,h,f=e.split(a),p=[c];for(s=0,u=f.length;u>s;s++)for(d=0;d<p.length;d+=r.length-2){if(r=[d,1],t=p[d].n,f[s]!=o)t[f[s]]&&r.push(t[f[s]]);else for(n in t)t[i](n)&&r.push(t[n]);p.splice.apply(p,r)}for(s=0,u=p.length;u>s;s++)for(t=p[s];t.n;){if(l){if(t.f){for(d=0,h=t.f.length;h>d;d++)if(t.f[d]==l){t.f.splice(d,1);break}!t.f.length&&delete t.f}for(n in t.n)if(t.n[i](n)&&t.n[n].f){var m=t.n[n].f;for(d=0,h=m.length;h>d;d++)if(m[d]==l){m.splice(d,1);break}!m.length&&delete t.n[n].f}}else{delete t.f;for(n in t.n)t.n[i](n)&&t.n[n].f&&delete t.n[n].f}t=t.n}},u.once=function(e,l){var t=function(){var n=l.apply(this,arguments);return u.unbind(e,t),n};return u.on(e,t)},u.version=n,u.toString=function(){return"You are running Eve "+n},"undefined"!=typeof module&&module.exports?module.exports=u:"undefined"!=typeof define?define("eve",[],function(){return u}):e.eve=u}(this),function(){function e(e){for(var l=0;l<at.length;l++)at[l].el.paper==e&&at.splice(l--,1)}function l(e,l,t,i,o,r){t=X(t);var s,c,u,d,h,f,p=e.ms,m={},g={},y={};if(i)for(C=0,E=at.length;E>C;C++){var b=at[C];if(b.el.id==l.id&&b.anim==e){b.percent!=t?(at.splice(C,1),u=1):c=b,l.attr(b.totalOrigin);break}}else i=+g;for(var C=0,E=e.percents.length;E>C;C++){if(e.percents[C]==t||e.percents[C]>i*e.top){t=e.percents[C],h=e.percents[C-1]||0,p=p/e.top*(t-h),d=e.percents[C+1],s=e.anim[t];break}i&&l.attr(e.anim[e.percents[C]])}if(s){if(c)c.initstatus=i,c.start=new Date-c.ms*i;else{for(var w in s)if(s[D](w)&&(ll[D](w)||l.paper.customAttributes[D](w)))switch(m[w]=l.attr(w),null==m[w]&&(m[w]=el[w]),g[w]=s[w],ll[w]){case z:y[w]=(g[w]-m[w])/p;break;case"colour":m[w]=v.getRGB(m[w]);var _=v.getRGB(g[w]);y[w]={r:(_.r-m[w].r)/p,g:(_.g-m[w].g)/p,b:(_.b-m[w].b)/p};break;case"path":var S=Al(m[w],g[w]),I=S[1];for(m[w]=S[0],y[w]=[],C=0,E=m[w].length;E>C;C++){y[w][C]=[0];for(var k=1,O=m[w][C].length;O>k;k++)y[w][C][k]=(I[C][k]-m[w][C][k])/p}break;case"transform":var R=l._,A=Bl(R[w],g[w]);if(A)for(m[w]=A.from,g[w]=A.to,y[w]=[],y[w].real=!0,C=0,E=m[w].length;E>C;C++)for(y[w][C]=[m[w][C][0]],k=1,O=m[w][C].length;O>k;k++)y[w][C][k]=(g[w][C][k]-m[w][C][k])/p;else{var K=l.matrix||new a,L={_:{transform:R.transform},getBBox:function(){return l.getBBox(1)}};m[w]=[K.a,K.b,K.c,K.d,K.e,K.f],Pl(L,g[w]),g[w]=L._.transform,y[w]=[(L.matrix.a-K.a)/p,(L.matrix.b-K.b)/p,(L.matrix.c-K.c)/p,(L.matrix.d-K.d)/p,(L.matrix.e-K.e)/p,(L.matrix.f-K.f)/p]}break;case"csv":var P=M(s[w])[N](T),F=M(m[w])[N](T);if("clip-rect"==w)for(m[w]=F,y[w]=[],C=F.length;C--;)y[w][C]=(P[C]-m[w][C])/p;g[w]=P;break;default:for(P=[][x](s[w]),F=[][x](m[w]),y[w]=[],C=l.paper.customAttributes[w].length;C--;)y[w][C]=((P[C]||0)-(F[C]||0))/p}var B=s.easing,$=v.easing_formulas[B];if(!$)if($=M(B).match(q),$&&5==$.length){var H=$;$=function(e){return n(e,+H[1],+H[2],+H[3],+H[4],p)}}else $=dl;if(f=s.start||e.start||+new Date,b={anim:e,percent:t,timestamp:f,start:f+(e.del||0),status:0,initstatus:i||0,stop:!1,ms:p,easing:$,from:m,diff:y,to:g,el:l,callback:s.callback,prev:h,next:d,repeat:r||e.times,origin:l.attr(),totalOrigin:o},at.push(b),i&&!c&&!u&&(b.stop=!0,b.start=new Date-p*i,1==at.length))return rt();u&&(b.start=new Date-b.ms*i),1==at.length&&ot(rt)}eve("raphael.anim.start."+l.id,l,e)}}function t(e,l){var t=[],n={};if(this.ms=l,this.times=1,e){for(var i in e)e[D](i)&&(n[X(i)]=e[i],t.push(X(i)));t.sort(cl)}this.anim=n,this.top=t[t.length-1],this.percents=t}function n(e,l,t,n,i,a){function o(e,l){var t,n,i,a,o,r;for(i=e,r=0;8>r;r++){if(a=s(i)-e,$(a)<l)return i;if(o=(3*d*i+2*u)*i+c,$(o)<1e-6)break;i-=a/o}if(t=0,n=1,i=e,t>i)return t;if(i>n)return n;for(;n>t;){if(a=s(i),$(a-e)<l)return i;e>a?t=i:n=i,i=(n-t)/2+t}return i}function r(e,l){var t=o(e,l);return((p*t+f)*t+h)*t}function s(e){return((d*e+u)*e+c)*e}var c=3*l,u=3*(n-l)-c,d=1-c-u,h=3*t,f=3*(i-t)-h,p=1-h-f;return r(e,1/(200*a))}function i(){return this.x+R+this.y+R+this.width+" × "+this.height}function a(e,l,t,n,i,a){null!=e?(this.a=+e,this.b=+l,this.c=+t,this.d=+n,this.e=+i,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function o(e,l,t){e=v._path2curve(e),l=v._path2curve(l);for(var n,i,a,o,s,c,u,d,h,f,p=t?0:[],m=0,g=e.length;g>m;m++){var y=e[m];if("M"==y[0])n=s=y[1],i=c=y[2];else{"C"==y[0]?(h=[n,i].concat(y.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,s,c,s,c],n=s,i=c);for(var b=0,T=l.length;T>b;b++){var C=l[b];if("M"==C[0])a=u=C[1],o=d=C[2];else{"C"==C[0]?(f=[a,o].concat(C.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,u,d,u,d],a=u,o=d);var E=r(h,f,t);if(t)p+=E;else{for(var D=0,w=E.length;w>D;D++)E[D].segment1=m,E[D].segment2=b,E[D].bez1=h,E[D].bez2=f;p=p.concat(E)}}}}}return p}function r(e,l,t){var n=v.bezierBBox(e),i=v.bezierBBox(l);if(!v.isBBoxIntersect(n,i))return t?0:[];for(var a=u.apply(0,e),o=u.apply(0,l),r=~~(a/5),c=~~(o/5),d=[],h=[],f={},p=t?0:[],m=0;r+1>m;m++){var g=v.findDotsAtSegment.apply(v,e.concat(m/r));d.push({x:g.x,y:g.y,t:m/r})}for(m=0;c+1>m;m++)g=v.findDotsAtSegment.apply(v,l.concat(m/c)),h.push({x:g.x,y:g.y,t:m/c});for(m=0;r>m;m++)for(var y=0;c>y;y++){var b=d[m],T=d[m+1],C=h[y],E=h[y+1],D=$(T.x-b.x)<.001?"y":"x",w=$(E.x-C.x)<.001?"y":"x",_=s(b.x,b.y,T.x,T.y,C.x,C.y,E.x,E.y);if(_){if(f[_.x.toFixed(4)]==_.y.toFixed(4))continue;f[_.x.toFixed(4)]=_.y.toFixed(4);var S=b.t+$((_[D]-b[D])/(T[D]-b[D]))*(T.t-b.t),I=C.t+$((_[w]-C[w])/(E[w]-C[w]))*(E.t-C.t);S>=0&&1>=S&&I>=0&&1>=I&&(t?p++:p.push({x:_.x,y:_.y,t1:S,t2:I}))}}return p}function s(e,l,t,n,i,a,o,r){if(!(F(e,t)<B(i,o)||B(e,t)>F(i,o)||F(l,n)<B(a,r)||B(l,n)>F(a,r))){var s=(e*n-l*t)*(i-o)-(e-t)*(i*r-a*o),c=(e*n-l*t)*(a-r)-(l-n)*(i*r-a*o),u=(e-t)*(a-r)-(l-n)*(i-o);if(!u)return;var d=s/u,h=c/u,f=+d.toFixed(2),p=+h.toFixed(2);if(f<+B(e,t).toFixed(2)||f>+F(e,t).toFixed(2)||f<+B(i,o).toFixed(2)||f>+F(i,o).toFixed(2)||p<+B(l,n).toFixed(2)||p>+F(l,n).toFixed(2)||p<+B(a,r).toFixed(2)||p>+F(a,r).toFixed(2))return;return{x:d,y:h}}}function c(e,l,t,n,i,a,o,r,s){if(!(0>s||u(e,l,t,n,i,a,o,r)<s)){var c,d=1,h=d/2,f=d-h,p=.01;for(c=u(e,l,t,n,i,a,o,r,f);$(c-s)>p;)h/=2,f+=(s>c?1:-1)*h,c=u(e,l,t,n,i,a,o,r,f);return f}}function u(e,l,t,n,i,a,o,r,s){null==s&&(s=1),s=s>1?1:0>s?0:s;for(var c=s/2,u=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,m=0;u>m;m++){var g=c*h[m]+c,v=d(g,e,t,i,o),y=d(g,l,n,a,r),b=v*v+y*y;p+=f[m]*P.sqrt(b)}return c*p}function d(e,l,t,n,i){var a=-3*l+9*t-9*n+3*i,o=e*a+6*l-12*t+6*n;return e*o-3*l+3*t}function h(e,l){for(var t=[],n=0,i=e.length;i-2*!l>n;n+=2){var a=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];l?n?i-4==n?a[3]={x:+e[0],y:+e[1]}:i-2==n&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4==n?a[3]=a[2]:n||(a[0]={x:+e[n],y:+e[n+1]}),t.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return t}function f(){return this.hex}function p(e,l,t){function n(){var i=Array.prototype.slice.call(arguments,0),a=i.join("␀"),o=n.cache=n.cache||{},r=n.count=n.count||[];return o[D](a)?(m(r,a),t?t(o[a]):o[a]):(r.length>=1e3&&delete o[r.shift()],r.push(a),o[a]=e[I](l,i),t?t(o[a]):o[a])}return n}function m(e,l){for(var t=0,n=e.length;n>t;t++)if(e[t]===l)return e.push(e.splice(t,1)[0])}function g(e){if(Object(e)!==e)return e;var l=new e.constructor;for(var t in e)e[D](t)&&(l[t]=g(e[t]));return l}function v(e){if(v.is(e,"function"))return y?e():eve.on("raphael.DOMload",e);if(v.is(e,j))return v._engine.create[I](v,e.splice(0,3+v.is(e[0],z))).add(e);var l=Array.prototype.slice.call(arguments,0);if(v.is(l[l.length-1],"function")){var t=l.pop();return y?t.call(v._engine.create[I](v,l)):eve.on("raphael.DOMload",function(){t.call(v._engine.create[I](v,l))})}return v._engine.create[I](v,arguments)}v.version="2.1.0",v.eve=eve;var y,b,T=/[, ]+/,C={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},E=/{(d+)}/g,D="hasOwnProperty",w={doc:document,win:window},_={was:Object.prototype[D].call(w.win,"Raphael"),is:w.win.Raphael},S=function(){this.ca=this.customAttributes={}},I="apply",x="concat",k="createTouch"in w.doc,O="",R=" ",M=String,N="split",A="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[N](R),K={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},L=M.prototype.toLowerCase,P=Math,F=P.max,B=P.min,$=P.abs,H=P.pow,Z=P.PI,z="number",U="string",j="array",W=Object.prototype.toString,V=(v._ISURL=/^url(['"]?([^)]+?)['"]?)$/i,/^s*((#[a-fd]{6})|(#[a-fd]{3})|rgba?(s*([d.]+%?s*,s*[d.]+%?s*,s*[d.]+%?(?:s*,s*[d.]+%?)?)s*)|hsba?(s*([d.]+(?:deg|xb0|%)?s*,s*[d.]+%?s*,s*[d.]+(?:%?s*,s*[d.]+)?)%?s*)|hsla?(s*([d.]+(?:deg|xb0|%)?s*,s*[d.]+%?s*,s*[d.]+(?:%?s*,s*[d.]+)?)%?s*))s*$/i),G={NaN:1,Infinity:1,"-Infinity":1},q=/^(?:cubic-)?bezier(([^,]+),([^,]+),([^,]+),([^)]+))/,Y=P.round,X=parseFloat,J=parseInt,Q=M.prototype.toUpperCase,el=v._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},ll=v._availableAnimAttrs={blur:z,"clip-rect":"csv",cx:z,cy:z,fill:"colour","fill-opacity":z,"font-size":z,height:z,opacity:z,path:"path",r:z,rx:z,ry:z,stroke:"colour","stroke-opacity":z,"stroke-width":z,transform:"transform",width:z,x:z,y:z},tl=/[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*,[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*/,nl={hs:1,rg:1},il=/,?([achlmqrstvxz]),?/gi,al=/([achlmrqstvz])[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029,]*((-?d*.?d*(?:e[-+]?d+)?[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*,?[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*)+)/gi,ol=/([rstm])[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029,]*((-?d*.?d*(?:e[-+]?d+)?[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*,?[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*)+)/gi,rl=/(-?d*.?d*(?:e[-+]?d+)?)[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*,?[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*/gi,sl=(v._radial_gradient=/^r(?:(([^,]+?)[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*,[x09x0ax0bx0cx0dx20xa0u1680u180eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200au202fu205fu3000u2028u2029]*([^)]+?)))?/,{}),cl=function(e,l){return X(e)-X(l)},ul=function(){},dl=function(e){return e},hl=v._rectPath=function(e,l,t,n,i){return i?[["M",e+i,l],["l",t-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-t,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]]:[["M",e,l],["l",t,0],["l",0,n],["l",-t,0],["z"]]},fl=function(e,l,t,n){return null==n&&(n=t),[["M",e,l],["m",0,-n],["a",t,n,0,1,1,0,2*n],["a",t,n,0,1,1,0,-2*n],["z"]]},pl=v._getPath={path:function(e){return e.attr("path")},circle:function(e){var l=e.attrs;return fl(l.cx,l.cy,l.r)},ellipse:function(e){var l=e.attrs;return fl(l.cx,l.cy,l.rx,l.ry)},rect:function(e){var l=e.attrs;return hl(l.x,l.y,l.width,l.height,l.r)},image:function(e){var l=e.attrs;return hl(l.x,l.y,l.width,l.height)},text:function(e){var l=e._getBBox();return hl(l.x,l.y,l.width,l.height)}},ml=v.mapPath=function(e,l){if(!l)return e;var t,n,i,a,o,r,s;for(e=Al(e),i=0,o=e.length;o>i;i++)for(s=e[i],a=1,r=s.length;r>a;a+=2)t=l.x(s[a],s[a+1]),n=l.y(s[a],s[a+1]),s[a]=t,s[a+1]=n;return e};if(v._g=w,v.type=w.win.SVGAngle||w.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==v.type){var gl,vl=w.doc.createElement("div");if(vl.innerHTML='<v:shape adj="1"/>',gl=vl.firstChild,gl.style.behavior="url(#default#VML)",!gl||"object"!=typeof gl.adj)return v.type=O;vl=null}v.svg=!(v.vml="VML"==v.type),v._Paper=S,v.fn=b=S.prototype=v.prototype,v._id=0,v._oid=0,v.is=function(e,l){return l=L.call(l),"finite"==l?!G[D](+e):"array"==l?e instanceof Array:"null"==l&&null===e||l==typeof e&&null!==e||"object"==l&&e===Object(e)||"array"==l&&Array.isArray&&Array.isArray(e)||W.call(e).slice(8,-1).toLowerCase()==l},v.angle=function(e,l,t,n,i,a){if(null==i){var o=e-t,r=l-n;return o||r?(180+180*P.atan2(-r,-o)/Z+360)%360:0}return v.angle(e,l,i,a)-v.angle(t,n,i,a)},v.rad=function(e){return e%360*Z/180},v.deg=function(e){return 180*e/Z%360},v.snapTo=function(e,l,t){if(t=v.is(t,"finite")?t:10,v.is(e,j)){for(var n=e.length;n--;)if($(e[n]-l)<=t)return e[n]}else{e=+e;var i=l%e;if(t>i)return l-i;if(i>e-t)return l-i+e}return l},v.createUUID=function(e,l){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,l).toUpperCase()}}(/[xy]/g,function(e){var l=0|16*P.random(),t="x"==e?l:8|3&l;return t.toString(16)}),v.setWindow=function(e){eve("raphael.setWindow",v,w.win,e),w.win=e,w.doc=w.win.document,v._engine.initWin&&v._engine.initWin(w.win)};var yl=function(e){if(v.vml){var l,t=/^s+|s+$/g;try{var n=new ActiveXObject("htmlfile");n.write("<body>"),n.close(),l=n.body}catch(i){l=createPopup().document.body}var a=l.createTextRange();yl=p(function(e){try{l.style.color=M(e).replace(t,O);var n=a.queryCommandValue("ForeColor");return n=(255&n)<<16|65280&n|(16711680&n)>>>16,"#"+("000000"+n.toString(16)).slice(-6)}catch(i){return"none"}})}else{var o=w.doc.createElement("i");o.title="Raphaël Colour Picker",o.style.display="none",w.doc.body.appendChild(o),yl=p(function(e){return o.style.color=e,w.doc.defaultView.getComputedStyle(o,O).getPropertyValue("color")})}return yl(e)},bl=function(){return"hsb("+[this.h,this.s,this.b]+")"},Tl=function(){return"hsl("+[this.h,this.s,this.l]+")"},Cl=function(){return this.hex},El=function(e,l,t){if(null==l&&v.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(t=e.b,l=e.g,e=e.r),null==l&&v.is(e,U)){var n=v.getRGB(e);e=n.r,l=n.g,t=n.b}return(e>1||l>1||t>1)&&(e/=255,l/=255,t/=255),[e,l,t]},Dl=function(e,l,t,n){e*=255,l*=255,t*=255;var i={r:e,g:l,b:t,hex:v.rgb(e,l,t),toString:Cl};return v.is(n,"finite")&&(i.opacity=n),i};v.color=function(e){var l;return v.is(e,"object")&&"h"in e&&"s"in e&&"b"in e?(l=v.hsb2rgb(e),e.r=l.r,e.g=l.g,e.b=l.b,e.hex=l.hex):v.is(e,"object")&&"h"in e&&"s"in e&&"l"in e?(l=v.hsl2rgb(e),e.r=l.r,e.g=l.g,e.b=l.b,e.hex=l.hex):(v.is(e,"string")&&(e=v.getRGB(e)),v.is(e,"object")&&"r"in e&&"g"in e&&"b"in e?(l=v.rgb2hsl(e),e.h=l.h,e.s=l.s,e.l=l.l,l=v.rgb2hsb(e),e.v=l.b):(e={hex:"none"},e.r=e.g=e.b=e.h=e.s=e.v=e.l=-1)),e.toString=Cl,e},v.hsb2rgb=function(e,l,t,n){this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(t=e.b,l=e.s,e=e.h,n=e.o),e*=360;var i,a,o,r,s;return e=e%360/60,s=t*l,r=s*(1-$(e%2-1)),i=a=o=t-s,e=~~e,i+=[s,r,0,0,r,s][e],a+=[r,s,s,r,0,0][e],o+=[0,0,r,s,s,r][e],Dl(i,a,o,n)},v.hsl2rgb=function(e,l,t,n){this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(t=e.l,l=e.s,e=e.h),(e>1||l>1||t>1)&&(e/=360,l/=100,t/=100),e*=360;var i,a,o,r,s;return e=e%360/60,s=2*l*(.5>t?t:1-t),r=s*(1-$(e%2-1)),i=a=o=t-s/2,e=~~e,i+=[s,r,0,0,r,s][e],a+=[r,s,s,r,0,0][e],o+=[0,0,r,s,s,r][e],Dl(i,a,o,n)},v.rgb2hsb=function(e,l,t){t=El(e,l,t),e=t[0],l=t[1],t=t[2];var n,i,a,o;return a=F(e,l,t),o=a-B(e,l,t),n=0==o?null:a==e?(l-t)/o:a==l?(t-e)/o+2:(e-l)/o+4,n=60*((n+360)%6)/360,i=0==o?0:o/a,{h:n,s:i,b:a,toString:bl}},v.rgb2hsl=function(e,l,t){t=El(e,l,t),e=t[0],l=t[1],t=t[2];var n,i,a,o,r,s;return o=F(e,l,t),r=B(e,l,t),s=o-r,n=0==s?null:o==e?(l-t)/s:o==l?(t-e)/s+2:(e-l)/s+4,n=60*((n+360)%6)/360,a=(o+r)/2,i=0==s?0:.5>a?s/(2*a):s/(2-2*a),{h:n,s:i,l:a,toString:Tl}},v._path2string=function(){return this.join(",").replace(il,"$1")},v._preload=function(e,l){var t=w.doc.createElement("img");t.style.cssText="position:absolute;left:-9999em;top:-9999em",t.onload=function(){l.call(this),this.onload=null,w.doc.body.removeChild(this)},t.onerror=function(){w.doc.body.removeChild(this)},w.doc.body.appendChild(t),t.src=e},v.getRGB=p(function(e){if(!e||(e=M(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:f};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:f};!nl[D](e.toLowerCase().substring(0,2))&&"#"!=e.charAt()&&(e=yl(e));var l,t,n,i,a,o,r=e.match(V);return r?(r[2]&&(n=J(r[2].substring(5),16),t=J(r[2].substring(3,5),16),l=J(r[2].substring(1,3),16)),r[3]&&(n=J((a=r[3].charAt(3))+a,16),t=J((a=r[3].charAt(2))+a,16),l=J((a=r[3].charAt(1))+a,16)),r[4]&&(o=r[4][N](tl),l=X(o[0]),"%"==o[0].slice(-1)&&(l*=2.55),t=X(o[1]),"%"==o[1].slice(-1)&&(t*=2.55),n=X(o[2]),"%"==o[2].slice(-1)&&(n*=2.55),"rgba"==r[1].toLowerCase().slice(0,4)&&(i=X(o[3])),o[3]&&"%"==o[3].slice(-1)&&(i/=100)),r[5]?(o=r[5][N](tl),l=X(o[0]),"%"==o[0].slice(-1)&&(l*=2.55),t=X(o[1]),"%"==o[1].slice(-1)&&(t*=2.55),n=X(o[2]),"%"==o[2].slice(-1)&&(n*=2.55),("deg"==o[0].slice(-3)||"°"==o[0].slice(-1))&&(l/=360),"hsba"==r[1].toLowerCase().slice(0,4)&&(i=X(o[3])),o[3]&&"%"==o[3].slice(-1)&&(i/=100),v.hsb2rgb(l,t,n,i)):r[6]?(o=r[6][N](tl),l=X(o[0]),"%"==o[0].slice(-1)&&(l*=2.55),t=X(o[1]),"%"==o[1].slice(-1)&&(t*=2.55),n=X(o[2]),"%"==o[2].slice(-1)&&(n*=2.55),("deg"==o[0].slice(-3)||"°"==o[0].slice(-1))&&(l/=360),"hsla"==r[1].toLowerCase().slice(0,4)&&(i=X(o[3])),o[3]&&"%"==o[3].slice(-1)&&(i/=100),v.hsl2rgb(l,t,n,i)):(r={r:l,g:t,b:n,toString:f},r.hex="#"+(16777216|n|t<<8|l<<16).toString(16).slice(1),v.is(i,"finite")&&(r.opacity=i),r)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:f}},v),v.hsb=p(function(e,l,t){return v.hsb2rgb(e,l,t).hex}),v.hsl=p(function(e,l,t){return v.hsl2rgb(e,l,t).hex}),v.rgb=p(function(e,l,t){return"#"+(16777216|t|l<<8|e<<16).toString(16).slice(1)}),v.getColor=function(e){var l=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},t=this.hsb2rgb(l.h,l.s,l.b);return l.h+=.075,l.h>1&&(l.h=0,l.s-=.2,l.s<=0&&(this.getColor.start={h:0,s:1,b:l.b})),t.hex},v.getColor.reset=function(){delete this.start},v.parsePathString=function(e){if(!e)return null;var l=wl(e);if(l.arr)return Sl(l.arr);var t={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return v.is(e,j)&&v.is(e[0],j)&&(n=Sl(e)),n.length||M(e).replace(al,function(e,l,i){var a=[],o=l.toLowerCase();if(i.replace(rl,function(e,l){l&&a.push(+l)}),"m"==o&&a.length>2&&(n.push([l][x](a.splice(0,2))),o="l",l="m"==l?"l":"L"),"r"==o)n.push([l][x](a));else for(;a.length>=t[o]&&(n.push([l][x](a.splice(0,t[o]))),t[o]););}),n.toString=v._path2string,l.arr=Sl(n),n},v.parseTransformString=p(function(e){if(!e)return null;var l=[];return v.is(e,j)&&v.is(e[0],j)&&(l=Sl(e)),l.length||M(e).replace(ol,function(e,t,n){var i=[];L.call(t),n.replace(rl,function(e,l){l&&i.push(+l)}),l.push([t][x](i))}),l.toString=v._path2string,l});var wl=function(e){var l=wl.ps=wl.ps||{};return l[e]?l[e].sleep=100:l[e]={sleep:100},setTimeout(function(){for(var t in l)l[D](t)&&t!=e&&(l[t].sleep--,!l[t].sleep&&delete l[t])}),l[e]};v.findDotsAtSegment=function(e,l,t,n,i,a,o,r,s){var c=1-s,u=H(c,3),d=H(c,2),h=s*s,f=h*s,p=u*e+3*d*s*t+3*c*s*s*i+f*o,m=u*l+3*d*s*n+3*c*s*s*a+f*r,g=e+2*s*(t-e)+h*(i-2*t+e),v=l+2*s*(n-l)+h*(a-2*n+l),y=t+2*s*(i-t)+h*(o-2*i+t),b=n+2*s*(a-n)+h*(r-2*a+n),T=c*e+s*t,C=c*l+s*n,E=c*i+s*o,D=c*a+s*r,w=90-180*P.atan2(g-y,v-b)/Z;return(g>y||b>v)&&(w+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:T,y:C},end:{x:E,y:D},alpha:w}},v.bezierBBox=function(e,l,t,n,i,a,o,r){v.is(e,"array")||(e=[e,l,t,n,i,a,o,r]);var s=Nl.apply(null,e);return{x:s.min.x,y:s.min.y,x2:s.max.x,y2:s.max.y,width:s.max.x-s.min.x,height:s.max.y-s.min.y}},v.isPointInsideBBox=function(e,l,t){return l>=e.x&&l<=e.x2&&t>=e.y&&t<=e.y2},v.isBBoxIntersect=function(e,l){var t=v.isPointInsideBBox;return t(l,e.x,e.y)||t(l,e.x2,e.y)||t(l,e.x,e.y2)||t(l,e.x2,e.y2)||t(e,l.x,l.y)||t(e,l.x2,l.y)||t(e,l.x,l.y2)||t(e,l.x2,l.y2)||(e.x<l.x2&&e.x>l.x||l.x<e.x2&&l.x>e.x)&&(e.y<l.y2&&e.y>l.y||l.y<e.y2&&l.y>e.y)},v.pathIntersection=function(e,l){return o(e,l)},v.pathIntersectionNumber=function(e,l){return o(e,l,1)},v.isPointInsidePath=function(e,l,t){var n=v.pathBBox(e);return v.isPointInsideBBox(n,l,t)&&1==o(e,[["M",l,t],["H",n.x2+10]],1)%2},v._removedFactory=function(e){return function(){eve("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var _l=v.pathBBox=function(e){var l=wl(e);if(l.bbox)return l.bbox;if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};e=Al(e);for(var t,n=0,i=0,a=[],o=[],r=0,s=e.length;s>r;r++)if(t=e[r],"M"==t[0])n=t[1],i=t[2],a.push(n),o.push(i);else{var c=Nl(n,i,t[1],t[2],t[3],t[4],t[5],t[6]);a=a[x](c.min.x,c.max.x),o=o[x](c.min.y,c.max.y),n=t[5],i=t[6]}var u=B[I](0,a),d=B[I](0,o),h=F[I](0,a),f=F[I](0,o),p={x:u,y:d,x2:h,y2:f,width:h-u,height:f-d};return l.bbox=g(p),p},Sl=function(e){var l=g(e);return l.toString=v._path2string,l},Il=v._pathToRelative=function(e){var l=wl(e);if(l.rel)return Sl(l.rel);v.is(e,j)&&v.is(e&&e[0],j)||(e=v.parsePathString(e));var t=[],n=0,i=0,a=0,o=0,r=0;"M"==e[0][0]&&(n=e[0][1],i=e[0][2],a=n,o=i,r++,t.push(["M",n,i]));for(var s=r,c=e.length;c>s;s++){var u=t[s]=[],d=e[s];if(d[0]!=L.call(d[0]))switch(u[0]=L.call(d[0]),u[0]){case"a":u[1]=d[1],u[2]=d[2],u[3]=d[3],u[4]=d[4],u[5]=d[5],u[6]=+(d[6]-n).toFixed(3),u[7]=+(d[7]-i).toFixed(3);break;case"v":u[1]=+(d[1]-i).toFixed(3);break;case"m":a=d[1],o=d[2];default:for(var h=1,f=d.length;f>h;h++)u[h]=+(d[h]-(h%2?n:i)).toFixed(3)}else{u=t[s]=[],"m"==d[0]&&(a=d[1]+n,o=d[2]+i);for(var p=0,m=d.length;m>p;p++)t[s][p]=d[p]}var g=t[s].length;switch(t[s][0]){case"z":n=a,i=o;break;case"h":n+=+t[s][g-1];break;case"v":i+=+t[s][g-1];break;default:n+=+t[s][g-2],i+=+t[s][g-1]}}return t.toString=v._path2string,l.rel=Sl(t),t},xl=v._pathToAbsolute=function(e){var l=wl(e);if(l.abs)return Sl(l.abs);if(v.is(e,j)&&v.is(e&&e[0],j)||(e=v.parsePathString(e)),!e||!e.length)return[["M",0,0]];var t=[],n=0,i=0,a=0,o=0,r=0;"M"==e[0][0]&&(n=+e[0][1],i=+e[0][2],a=n,o=i,r++,t[0]=["M",n,i]);for(var s,c,u=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),d=r,f=e.length;f>d;d++){if(t.push(s=[]),c=e[d],c[0]!=Q.call(c[0]))switch(s[0]=Q.call(c[0]),s[0]){case"A":s[1]=c[1],s[2]=c[2],s[3]=c[3],s[4]=c[4],s[5]=c[5],s[6]=+(c[6]+n),s[7]=+(c[7]+i);break;case"V":s[1]=+c[1]+i;break;case"H":s[1]=+c[1]+n;break;case"R":for(var p=[n,i][x](c.slice(1)),m=2,g=p.length;g>m;m++)p[m]=+p[m]+n,p[++m]=+p[m]+i;t.pop(),t=t[x](h(p,u));break;case"M":a=+c[1]+n,o=+c[2]+i;default:for(m=1,g=c.length;g>m;m++)s[m]=+c[m]+(m%2?n:i)}else if("R"==c[0])p=[n,i][x](c.slice(1)),t.pop(),t=t[x](h(p,u)),s=["R"][x](c.slice(-2));else for(var y=0,b=c.length;b>y;y++)s[y]=c[y];switch(s[0]){case"Z":n=a,i=o;break;case"H":n=s[1];break;case"V":i=s[1];break;case"M":a=s[s.length-2],o=s[s.length-1];default:n=s[s.length-2],i=s[s.length-1]}}return t.toString=v._path2string,l.abs=Sl(t),t},kl=function(e,l,t,n){return[e,l,t,n,t,n]},Ol=function(e,l,t,n,i,a){var o=1/3,r=2/3;return[o*e+r*t,o*l+r*n,o*i+r*t,o*a+r*n,i,a]},Rl=function(e,l,t,n,i,a,o,r,s,c){var u,d=120*Z/180,h=Z/180*(+i||0),f=[],m=p(function(e,l,t){var n=e*P.cos(t)-l*P.sin(t),i=e*P.sin(t)+l*P.cos(t);return{x:n,y:i}});if(c)w=c[0],_=c[1],E=c[2],D=c[3];else{u=m(e,l,-h),e=u.x,l=u.y,u=m(r,s,-h),r=u.x,s=u.y;var g=(P.cos(Z/180*i),P.sin(Z/180*i),(e-r)/2),v=(l-s)/2,y=g*g/(t*t)+v*v/(n*n);y>1&&(y=P.sqrt(y),t=y*t,n=y*n);var b=t*t,T=n*n,C=(a==o?-1:1)*P.sqrt($((b*T-b*v*v-T*g*g)/(b*v*v+T*g*g))),E=C*t*v/n+(e+r)/2,D=C*-n*g/t+(l+s)/2,w=P.asin(((l-D)/n).toFixed(9)),_=P.asin(((s-D)/n).toFixed(9));w=E>e?Z-w:w,_=E>r?Z-_:_,0>w&&(w=2*Z+w),0>_&&(_=2*Z+_),o&&w>_&&(w-=2*Z),!o&&_>w&&(_-=2*Z)}var S=_-w;if($(S)>d){var I=_,k=r,O=s;_=w+d*(o&&_>w?1:-1),r=E+t*P.cos(_),s=D+n*P.sin(_),f=Rl(r,s,t,n,i,0,o,k,O,[_,I,E,D])}S=_-w;var R=P.cos(w),M=P.sin(w),A=P.cos(_),K=P.sin(_),L=P.tan(S/4),F=4/3*t*L,B=4/3*n*L,H=[e,l],z=[e+F*M,l-B*R],U=[r+F*K,s-B*A],j=[r,s];if(z[0]=2*H[0]-z[0],z[1]=2*H[1]-z[1],c)return[z,U,j][x](f);f=[z,U,j][x](f).join()[N](",");for(var W=[],V=0,G=f.length;G>V;V++)W[V]=V%2?m(f[V-1],f[V],h).y:m(f[V],f[V+1],h).x;return W},Ml=function(e,l,t,n,i,a,o,r,s){var c=1-s;return{x:H(c,3)*e+3*H(c,2)*s*t+3*c*s*s*i+H(s,3)*o,y:H(c,3)*l+3*H(c,2)*s*n+3*c*s*s*a+H(s,3)*r}},Nl=p(function(e,l,t,n,i,a,o,r){var s,c=i-2*t+e-(o-2*i+t),u=2*(t-e)-2*(i-t),d=e-t,h=(-u+P.sqrt(u*u-4*c*d))/2/c,f=(-u-P.sqrt(u*u-4*c*d))/2/c,p=[l,r],m=[e,o];return $(h)>"1e12"&&(h=.5),$(f)>"1e12"&&(f=.5),h>0&&1>h&&(s=Ml(e,l,t,n,i,a,o,r,h),m.push(s.x),p.push(s.y)),f>0&&1>f&&(s=Ml(e,l,t,n,i,a,o,r,f),m.push(s.x),p.push(s.y)),c=a-2*n+l-(r-2*a+n),u=2*(n-l)-2*(a-n),d=l-n,h=(-u+P.sqrt(u*u-4*c*d))/2/c,f=(-u-P.sqrt(u*u-4*c*d))/2/c,$(h)>"1e12"&&(h=.5),$(f)>"1e12"&&(f=.5),h>0&&1>h&&(s=Ml(e,l,t,n,i,a,o,r,h),m.push(s.x),p.push(s.y)),f>0&&1>f&&(s=Ml(e,l,t,n,i,a,o,r,f),m.push(s.x),p.push(s.y)),{min:{x:B[I](0,m),y:B[I](0,p)},max:{x:F[I](0,m),y:F[I](0,p)}}}),Al=v._path2curve=p(function(e,l){var t=!l&&wl(e);if(!l&&t.curve)return Sl(t.curve);for(var n=xl(e),i=l&&xl(l),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r=(function(e,l){var t,n;if(!e)return["C",l.x,l.y,l.x,l.y,l.x,l.y];switch(!(e[0]in{T:1,Q:1})&&(l.qx=l.qy=null),e[0]){case"M":l.X=e[1],l.Y=e[2];break;case"A":e=["C"][x](Rl[I](0,[l.x,l.y][x](e.slice(1))));break;case"S":t=l.x+(l.x-(l.bx||l.x)),n=l.y+(l.y-(l.by||l.y)),e=["C",t,n][x](e.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)),e=["C"][x](Ol(l.x,l.y,l.qx,l.qy,e[1],e[2]));break;case"Q":l.qx=e[1],l.qy=e[2],e=["C"][x](Ol(l.x,l.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][x](kl(l.x,l.y,e[1],e[2]));break;case"H":e=["C"][x](kl(l.x,l.y,e[1],l.y));break;case"V":e=["C"][x](kl(l.x,l.y,l.x,e[1]));break;case"Z":e=["C"][x](kl(l.x,l.y,l.X,l.Y))}return e}),s=function(e,l){if(e[l].length>7){e[l].shift();for(var t=e[l];t.length;)e.splice(l++,0,["C"][x](t.splice(0,6)));e.splice(l,1),d=F(n.length,i&&i.length||0)}},c=function(e,l,t,a,o){e&&l&&"M"==e[o][0]&&"M"!=l[o][0]&&(l.splice(o,0,["M",a.x,a.y]),t.bx=0,t.by=0,t.x=e[o][1],t.y=e[o][2],d=F(n.length,i&&i.length||0))},u=0,d=F(n.length,i&&i.length||0);d>u;u++){n[u]=r(n[u],a),s(n,u),i&&(i[u]=r(i[u],o)),i&&s(i,u),c(n,i,a,o,u),c(i,n,o,a,u);var h=n[u],f=i&&i[u],p=h.length,m=i&&f.length;a.x=h[p-2],a.y=h[p-1],a.bx=X(h[p-4])||a.x,a.by=X(h[p-3])||a.y,o.bx=i&&(X(f[m-4])||o.x),o.by=i&&(X(f[m-3])||o.y),o.x=i&&f[m-2],o.y=i&&f[m-1]}return i||(t.curve=Sl(n)),i?[n,i]:n},null,Sl),Kl=(v._parseDots=p(function(e){for(var l=[],t=0,n=e.length;n>t;t++){var i={},a=e[t].match(/^([^:]*):?([d.]*)/);if(i.color=v.getRGB(a[1]),i.color.error)return null;i.color=i.color.hex,a[2]&&(i.offset=a[2]+"%"),l.push(i)}for(t=1,n=l.length-1;n>t;t++)if(!l[t].offset){for(var o=X(l[t-1].offset||0),r=0,s=t+1;n>s;s++)if(l[s].offset){r=l[s].offset;break}r||(r=100,s=n),r=X(r);for(var c=(r-o)/(s-t+1);s>t;t++)o+=c,l[t].offset=o+"%"}return l}),v._tear=function(e,l){e==l.top&&(l.top=e.prev),e==l.bottom&&(l.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),Ll=(v._tofront=function(e,l){l.top!==e&&(Kl(e,l),e.next=null,e.prev=l.top,l.top.next=e,l.top=e)},v._toback=function(e,l){l.bottom!==e&&(Kl(e,l),e.next=l.bottom,e.prev=null,l.bottom.prev=e,l.bottom=e)},v._insertafter=function(e,l,t){Kl(e,t),l==t.top&&(t.top=e),l.next&&(l.next.prev=e),e.next=l.next,e.prev=l,l.next=e},v._insertbefore=function(e,l,t){Kl(e,t),l==t.bottom&&(t.bottom=e),l.prev&&(l.prev.next=e),e.prev=l.prev,l.prev=e,e.next=l},v.toMatrix=function(e,l){var t=_l(e),n={_:{transform:O},getBBox:function(){return t}};return Pl(n,l),n.matrix}),Pl=(v.transformPath=function(e,l){return ml(e,Ll(e,l))},v._extractTransform=function(e,l){if(null==l)return e._.transform;l=M(l).replace(/.{3}|u2026/g,e._.transform||O);var t=v.parseTransformString(l),n=0,i=0,o=0,r=1,s=1,c=e._,u=new a;if(c.transform=t||[],t)for(var d=0,h=t.length;h>d;d++){var f,p,m,g,y,b=t[d],T=b.length,C=M(b[0]).toLowerCase(),E=b[0]!=C,D=E?u.invert():0;"t"==C&&3==T?E?(f=D.x(0,0),p=D.y(0,0),m=D.x(b[1],b[2]),g=D.y(b[1],b[2]),u.translate(m-f,g-p)):u.translate(b[1],b[2]):"r"==C?2==T?(y=y||e.getBBox(1),u.rotate(b[1],y.x+y.width/2,y.y+y.height/2),n+=b[1]):4==T&&(E?(m=D.x(b[2],b[3]),g=D.y(b[2],b[3]),u.rotate(b[1],m,g)):u.rotate(b[1],b[2],b[3]),n+=b[1]):"s"==C?2==T||3==T?(y=y||e.getBBox(1),u.scale(b[1],b[T-1],y.x+y.width/2,y.y+y.height/2),r*=b[1],s*=b[T-1]):5==T&&(E?(m=D.x(b[3],b[4]),g=D.y(b[3],b[4]),u.scale(b[1],b[2],m,g)):u.scale(b[1],b[2],b[3],b[4]),r*=b[1],s*=b[2]):"m"==C&&7==T&&u.add(b[1],b[2],b[3],b[4],b[5],b[6]),c.dirtyT=1,e.matrix=u}e.matrix=u,c.sx=r,c.sy=s,c.deg=n,c.dx=i=u.e,c.dy=o=u.f,1==r&&1==s&&!n&&c.bbox?(c.bbox.x+=+i,c.bbox.y+=+o):c.dirtyT=1}),Fl=function(e){var l=e[0];switch(l.toLowerCase()){case"t":return[l,0,0];case"m":return[l,1,0,0,1,0,0];case"r":return 4==e.length?[l,0,e[2],e[3]]:[l,0];case"s":return 5==e.length?[l,1,1,e[3],e[4]]:3==e.length?[l,1,1]:[l,1]}},Bl=v._equaliseTransform=function(e,l){l=M(l).replace(/.{3}|u2026/g,e),e=v.parseTransformString(e)||[],l=v.parseTransformString(l)||[];for(var t,n,i,a,o=F(e.length,l.length),r=[],s=[],c=0;o>c;c++){if(i=e[c]||Fl(l[c]),a=l[c]||Fl(i),i[0]!=a[0]||"r"==i[0].toLowerCase()&&(i[2]!=a[2]||i[3]!=a[3])||"s"==i[0].toLowerCase()&&(i[3]!=a[3]||i[4]!=a[4]))return;for(r[c]=[],s[c]=[],t=0,n=F(i.length,a.length);n>t;t++)t in i&&(r[c][t]=i[t]),t in a&&(s[c][t]=a[t])}return{from:r,to:s}};v._getContainer=function(e,l,t,n){var i;return i=null!=n||v.is(e,"object")?e:w.doc.getElementById(e),null!=i?i.tagName?null==l?{container:i,width:i.style.pixelWidth||i.offsetWidth,height:i.style.pixelHeight||i.offsetHeight}:{container:i,width:l,height:t}:{container:1,x:e,y:l,width:t,height:n}:void 0},v.pathToRelative=Il,v._engine={},v.path2curve=Al,v.matrix=function(e,l,t,n,i,o){return new a(e,l,t,n,i,o)},function(e){function l(e){var l=P.sqrt(t(e));e[0]&&(e[0]/=l),e[1]&&(e[1]/=l)}function t(e){return e[0]*e[0]+e[1]*e[1]
}e.add=function(e,l,t,n,i,o){var r,s,c,u,d=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[e,t,i],[l,n,o],[0,0,1]];for(e&&instanceof a&&(f=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),r=0;3>r;r++)for(s=0;3>s;s++){for(u=0,c=0;3>c;c++)u+=h[r][c]*f[c][s];d[r][s]=u}this.a=d[0][0],this.b=d[1][0],this.c=d[0][1],this.d=d[1][1],this.e=d[0][2],this.f=d[1][2]},e.invert=function(){var e=this,l=e.a*e.d-e.b*e.c;return new a(e.d/l,-e.b/l,-e.c/l,e.a/l,(e.c*e.f-e.d*e.e)/l,(e.b*e.e-e.a*e.f)/l)},e.clone=function(){return new a(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,l){this.add(1,0,0,1,e,l)},e.scale=function(e,l,t,n){null==l&&(l=e),(t||n)&&this.add(1,0,0,1,t,n),this.add(e,0,0,l,0,0),(t||n)&&this.add(1,0,0,1,-t,-n)},e.rotate=function(e,l,t){e=v.rad(e),l=l||0,t=t||0;var n=+P.cos(e).toFixed(9),i=+P.sin(e).toFixed(9);this.add(n,i,-i,n,l,t),this.add(1,0,0,1,-l,-t)},e.x=function(e,l){return e*this.a+l*this.c+this.e},e.y=function(e,l){return e*this.b+l*this.d+this.f},e.get=function(e){return+this[M.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return v.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},e.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var n=[[this.a,this.c],[this.b,this.d]];e.scalex=P.sqrt(t(n[0])),l(n[0]),e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=P.sqrt(t(n[1])),l(n[1]),e.shear/=e.scaley;var i=-n[0][1],a=n[1][1];return 0>a?(e.rotate=v.deg(P.acos(a)),0>i&&(e.rotate=360-e.rotate)):e.rotate=v.deg(P.asin(i)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var l=e||this[N]();return l.isSimple?(l.scalex=+l.scalex.toFixed(4),l.scaley=+l.scaley.toFixed(4),l.rotate=+l.rotate.toFixed(4),(l.dx||l.dy?"t"+[l.dx,l.dy]:O)+(1!=l.scalex||1!=l.scaley?"s"+[l.scalex,l.scaley,0,0]:O)+(l.rotate?"r"+[l.rotate,0,0]:O)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(a.prototype);var $l=navigator.userAgent.match(/Version/(.*?)s/)||navigator.userAgent.match(/Chrome/(d+)/);b.safari="Apple Computer, Inc."==navigator.vendor&&($l&&$l[1]<4||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&$l&&$l[1]<8?function(){var e=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){e.remove()})}:ul;for(var Hl=function(){this.returnValue=!1},Zl=function(){return this.originalEvent.preventDefault()},zl=function(){this.cancelBubble=!0},Ul=function(){return this.originalEvent.stopPropagation()},jl=function(){return w.doc.addEventListener?function(e,l,t,n){var i=k&&K[l]?K[l]:l,a=function(i){var a=w.doc.documentElement.scrollTop||w.doc.body.scrollTop,o=w.doc.documentElement.scrollLeft||w.doc.body.scrollLeft,r=i.clientX+o,s=i.clientY+a;if(k&&K[D](l))for(var c=0,u=i.targetTouches&&i.targetTouches.length;u>c;c++)if(i.targetTouches[c].target==e){var d=i;i=i.targetTouches[c],i.originalEvent=d,i.preventDefault=Zl,i.stopPropagation=Ul;break}return t.call(n,i,r,s)};return e.addEventListener(i,a,!1),function(){return e.removeEventListener(i,a,!1),!0}}:w.doc.attachEvent?function(e,l,t,n){var i=function(e){e=e||w.win.event;var l=w.doc.documentElement.scrollTop||w.doc.body.scrollTop,i=w.doc.documentElement.scrollLeft||w.doc.body.scrollLeft,a=e.clientX+i,o=e.clientY+l;return e.preventDefault=e.preventDefault||Hl,e.stopPropagation=e.stopPropagation||zl,t.call(n,e,a,o)};e.attachEvent("on"+l,i);var a=function(){return e.detachEvent("on"+l,i),!0};return a}:void 0}(),Wl=[],Vl=function(e){for(var l,t=e.clientX,n=e.clientY,i=w.doc.documentElement.scrollTop||w.doc.body.scrollTop,a=w.doc.documentElement.scrollLeft||w.doc.body.scrollLeft,o=Wl.length;o--;){if(l=Wl[o],k){for(var r,s=e.touches.length;s--;)if(r=e.touches[s],r.identifier==l.el._drag.id){t=r.clientX,n=r.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var c,u=l.el.node,d=u.nextSibling,h=u.parentNode,f=u.style.display;w.win.opera&&h.removeChild(u),u.style.display="none",c=l.el.paper.getElementByPoint(t,n),u.style.display=f,w.win.opera&&(d?h.insertBefore(u,d):h.appendChild(u)),c&&eve("raphael.drag.over."+l.el.id,l.el,c),t+=a,n+=i,eve("raphael.drag.move."+l.el.id,l.move_scope||l.el,t-l.el._drag.x,n-l.el._drag.y,t,n,e)}},Gl=function(e){v.unmousemove(Vl).unmouseup(Gl);for(var l,t=Wl.length;t--;)l=Wl[t],l.el._drag={},eve("raphael.drag.end."+l.el.id,l.end_scope||l.start_scope||l.move_scope||l.el,e);Wl=[]},ql=v.el={},Yl=A.length;Yl--;)!function(e){v[e]=ql[e]=function(l,t){return v.is(l,"function")&&(this.events=this.events||[],this.events.push({name:e,f:l,unbind:jl(this.shape||this.node||w.doc,e,l,t||this)})),this},v["un"+e]=ql["un"+e]=function(l){for(var t=this.events||[],n=t.length;n--;)if(t[n].name==e&&t[n].f==l)return t[n].unbind(),t.splice(n,1),!t.length&&delete this.events,this;return this}}(A[Yl]);ql.data=function(e,l){var t=sl[this.id]=sl[this.id]||{};if(1==arguments.length){if(v.is(e,"object")){for(var n in e)e[D](n)&&this.data(n,e[n]);return this}return eve("raphael.data.get."+this.id,this,t[e],e),t[e]}return t[e]=l,eve("raphael.data.set."+this.id,this,l,e),this},ql.removeData=function(e){return null==e?sl[this.id]={}:sl[this.id]&&delete sl[this.id][e],this},ql.hover=function(e,l,t,n){return this.mouseover(e,t).mouseout(l,n||t)},ql.unhover=function(e,l){return this.unmouseover(e).unmouseout(l)};var Xl=[];ql.drag=function(e,l,t,n,i,a){function o(o){(o.originalEvent||o).preventDefault();var r=w.doc.documentElement.scrollTop||w.doc.body.scrollTop,s=w.doc.documentElement.scrollLeft||w.doc.body.scrollLeft;this._drag.x=o.clientX+s,this._drag.y=o.clientY+r,this._drag.id=o.identifier,!Wl.length&&v.mousemove(Vl).mouseup(Gl),Wl.push({el:this,move_scope:n,start_scope:i,end_scope:a}),l&&eve.on("raphael.drag.start."+this.id,l),e&&eve.on("raphael.drag.move."+this.id,e),t&&eve.on("raphael.drag.end."+this.id,t),eve("raphael.drag.start."+this.id,i||n||this,o.clientX+s,o.clientY+r,o)}return this._drag={},Xl.push({el:this,start:o}),this.mousedown(o),this},ql.onDragOver=function(e){e?eve.on("raphael.drag.over."+this.id,e):eve.unbind("raphael.drag.over."+this.id)},ql.undrag=function(){for(var e=Xl.length;e--;)Xl[e].el==this&&(this.unmousedown(Xl[e].start),Xl.splice(e,1),eve.unbind("raphael.drag.*."+this.id));!Xl.length&&v.unmousemove(Vl).unmouseup(Gl)},b.circle=function(e,l,t){var n=v._engine.circle(this,e||0,l||0,t||0);return this.__set__&&this.__set__.push(n),n},b.rect=function(e,l,t,n,i){var a=v._engine.rect(this,e||0,l||0,t||0,n||0,i||0);return this.__set__&&this.__set__.push(a),a},b.ellipse=function(e,l,t,n){var i=v._engine.ellipse(this,e||0,l||0,t||0,n||0);return this.__set__&&this.__set__.push(i),i},b.path=function(e){e&&!v.is(e,U)&&!v.is(e[0],j)&&(e+=O);var l=v._engine.path(v.format[I](v,arguments),this);return this.__set__&&this.__set__.push(l),l},b.image=function(e,l,t,n,i){var a=v._engine.image(this,e||"about:blank",l||0,t||0,n||0,i||0);return this.__set__&&this.__set__.push(a),a},b.text=function(e,l,t){var n=v._engine.text(this,e||0,l||0,M(t));return this.__set__&&this.__set__.push(n),n},b.set=function(e){!v.is(e,"array")&&(e=Array.prototype.splice.call(arguments,0,arguments.length));var l=new ct(e);return this.__set__&&this.__set__.push(l),l},b.setStart=function(e){this.__set__=e||this.set()},b.setFinish=function(){var e=this.__set__;return delete this.__set__,e},b.setSize=function(e,l){return v._engine.setSize.call(this,e,l)},b.setViewBox=function(e,l,t,n,i){return v._engine.setViewBox.call(this,e,l,t,n,i)},b.top=b.bottom=null,b.raphael=v;var Jl=function(e){var l=e.getBoundingClientRect(),t=e.ownerDocument,n=t.body,i=t.documentElement,a=i.clientTop||n.clientTop||0,o=i.clientLeft||n.clientLeft||0,r=l.top+(w.win.pageYOffset||i.scrollTop||n.scrollTop)-a,s=l.left+(w.win.pageXOffset||i.scrollLeft||n.scrollLeft)-o;return{y:r,x:s}};b.getElementByPoint=function(e,l){var t=this,n=t.canvas,i=w.doc.elementFromPoint(e,l);if(w.win.opera&&"svg"==i.tagName){var a=Jl(n),o=n.createSVGRect();o.x=e-a.x,o.y=l-a.y,o.width=o.height=1;var r=n.getIntersectionList(o,null);r.length&&(i=r[r.length-1])}if(!i)return null;for(;i.parentNode&&i!=n.parentNode&&!i.raphael;)i=i.parentNode;return i==t.canvas.parentNode&&(i=n),i=i&&i.raphael?t.getById(i.raphaelid):null},b.getById=function(e){for(var l=this.bottom;l;){if(l.id==e)return l;l=l.next}return null},b.forEach=function(e,l){for(var t=this.bottom;t;){if(e.call(l,t)===!1)return this;t=t.next}return this},b.getElementsByPoint=function(e,l){var t=this.set();return this.forEach(function(n){n.isPointInside(e,l)&&t.push(n)}),t},ql.isPointInside=function(e,l){var t=this.realPath=this.realPath||pl[this.type](this);return v.isPointInsidePath(t,e,l)},ql.getBBox=function(e){if(this.removed)return{};var l=this._;return e?((l.dirty||!l.bboxwt)&&(this.realPath=pl[this.type](this),l.bboxwt=_l(this.realPath),l.bboxwt.toString=i,l.dirty=0),l.bboxwt):((l.dirty||l.dirtyT||!l.bbox)&&((l.dirty||!this.realPath)&&(l.bboxwt=0,this.realPath=pl[this.type](this)),l.bbox=_l(ml(this.realPath,this.matrix)),l.bbox.toString=i,l.dirty=l.dirtyT=0),l.bbox)},ql.clone=function(){if(this.removed)return null;var e=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(e),e},ql.glow=function(e){if("text"==this.type)return null;e=e||{};var l={width:(e.width||10)+(+this.attr("stroke-width")||1),fill:e.fill||!1,opacity:e.opacity||.5,offsetx:e.offsetx||0,offsety:e.offsety||0,color:e.color||"#000"},t=l.width/2,n=this.paper,i=n.set(),a=this.realPath||pl[this.type](this);a=this.matrix?ml(a,this.matrix):a;for(var o=1;t+1>o;o++)i.push(n.path(a).attr({stroke:l.color,fill:l.fill?l.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(l.width/t*o).toFixed(3),opacity:+(l.opacity/t).toFixed(3)}));return i.insertBefore(this).translate(l.offsetx,l.offsety)};var Ql=function(e,l,t,n,i,a,o,r,s){return null==s?u(e,l,t,n,i,a,o,r):v.findDotsAtSegment(e,l,t,n,i,a,o,r,c(e,l,t,n,i,a,o,r,s))},et=function(e,l){return function(t,n,i){t=Al(t);for(var a,o,r,s,c,u="",d={},h=0,f=0,p=t.length;p>f;f++){if(r=t[f],"M"==r[0])a=+r[1],o=+r[2];else{if(s=Ql(a,o,r[1],r[2],r[3],r[4],r[5],r[6]),h+s>n){if(l&&!d.start){if(c=Ql(a,o,r[1],r[2],r[3],r[4],r[5],r[6],n-h),u+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],i)return u;d.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,r[5],r[6]].join(),h+=s,a=+r[5],o=+r[6];continue}if(!e&&!l)return c=Ql(a,o,r[1],r[2],r[3],r[4],r[5],r[6],n-h),{x:c.x,y:c.y,alpha:c.alpha}}h+=s,a=+r[5],o=+r[6]}u+=r.shift()+r}return d.end=u,c=e?h:l?d:v.findDotsAtSegment(a,o,r[0],r[1],r[2],r[3],r[4],r[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},lt=et(1),tt=et(),nt=et(0,1);v.getTotalLength=lt,v.getPointAtLength=tt,v.getSubpath=function(e,l,t){if(this.getTotalLength(e)-t<1e-6)return nt(e,l).end;var n=nt(e,t,1);return l?nt(n,l).end:n},ql.getTotalLength=function(){return"path"==this.type?this.node.getTotalLength?this.node.getTotalLength():lt(this.attrs.path):void 0},ql.getPointAtLength=function(e){return"path"==this.type?tt(this.attrs.path,e):void 0},ql.getSubpath=function(e,l){return"path"==this.type?v.getSubpath(this.attrs.path,e,l):void 0};var it=v.easing_formulas={linear:function(e){return e},"<":function(e){return H(e,1.7)},">":function(e){return H(e,.48)},"<>":function(e){var l=.48-e/1.04,t=P.sqrt(.1734+l*l),n=t-l,i=H($(n),1/3)*(0>n?-1:1),a=-t-l,o=H($(a),1/3)*(0>a?-1:1),r=i+o+.5;return 3*(1-r)*r*r+r*r*r},backIn:function(e){var l=1.70158;return e*e*((l+1)*e-l)},backOut:function(e){e-=1;var l=1.70158;return e*e*((l+1)*e+l)+1},elastic:function(e){return e==!!e?e:H(2,-10*e)*P.sin(2*(e-.075)*Z/.3)+1},bounce:function(e){var l,t=7.5625,n=2.75;return 1/n>e?l=t*e*e:2/n>e?(e-=1.5/n,l=t*e*e+.75):2.5/n>e?(e-=2.25/n,l=t*e*e+.9375):(e-=2.625/n,l=t*e*e+.984375),l}};it.easeIn=it["ease-in"]=it["<"],it.easeOut=it["ease-out"]=it[">"],it.easeInOut=it["ease-in-out"]=it["<>"],it["back-in"]=it.backIn,it["back-out"]=it.backOut;var at=[],ot=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,16)},rt=function(){for(var e=+new Date,t=0;t<at.length;t++){var n=at[t];if(!n.el.removed&&!n.paused){var i,a,o=e-n.start,r=n.ms,s=n.easing,c=n.from,u=n.diff,d=n.to,h=(n.t,n.el),f={},p={};if(n.initstatus?(o=(n.initstatus*n.anim.top-n.prev)/(n.percent-n.prev)*r,n.status=n.initstatus,delete n.initstatus,n.stop&&at.splice(t--,1)):n.status=(n.prev+(n.percent-n.prev)*(o/r))/n.anim.top,!(0>o))if(r>o){var m=s(o/r);for(var g in c)if(c[D](g)){switch(ll[g]){case z:i=+c[g]+m*r*u[g];break;case"colour":i="rgb("+[st(Y(c[g].r+m*r*u[g].r)),st(Y(c[g].g+m*r*u[g].g)),st(Y(c[g].b+m*r*u[g].b))].join(",")+")";break;case"path":i=[];for(var y=0,b=c[g].length;b>y;y++){i[y]=[c[g][y][0]];for(var T=1,C=c[g][y].length;C>T;T++)i[y][T]=+c[g][y][T]+m*r*u[g][y][T];i[y]=i[y].join(R)}i=i.join(R);break;case"transform":if(u[g].real)for(i=[],y=0,b=c[g].length;b>y;y++)for(i[y]=[c[g][y][0]],T=1,C=c[g][y].length;C>T;T++)i[y][T]=c[g][y][T]+m*r*u[g][y][T];else{var E=function(e){return+c[g][e]+m*r*u[g][e]};i=[["m",E(0),E(1),E(2),E(3),E(4),E(5)]]}break;case"csv":if("clip-rect"==g)for(i=[],y=4;y--;)i[y]=+c[g][y]+m*r*u[g][y];break;default:var w=[][x](c[g]);for(i=[],y=h.paper.customAttributes[g].length;y--;)i[y]=+w[y]+m*r*u[g][y]}f[g]=i}h.attr(f),function(e,l,t){setTimeout(function(){eve("raphael.anim.frame."+e,l,t)})}(h.id,h,n.anim)}else{if(function(e,l,t){setTimeout(function(){eve("raphael.anim.frame."+l.id,l,t),eve("raphael.anim.finish."+l.id,l,t),v.is(e,"function")&&e.call(l)})}(n.callback,h,n.anim),h.attr(d),at.splice(t--,1),n.repeat>1&&!n.next){for(a in d)d[D](a)&&(p[a]=n.totalOrigin[a]);n.el.attr(p),l(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&l(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}v.svg&&h&&h.paper&&h.paper.safari(),at.length&&ot(rt)},st=function(e){return e>255?255:0>e?0:e};ql.animateWith=function(e,n,i,a,o,r){var s=this;if(s.removed)return r&&r.call(s),s;var c=instanceof t?i:v.animation(i,a,o,r);l(c,s,c.percents[0],null,s.attr());for(var u=0,d=at.length;d>u;u++)if(at[u].anim==n&&at[u].el==e){at[d-1].start=at[u].start;break}return s},ql.onAnimation=function(e){return e?eve.on("raphael.anim.frame."+this.id,e):eve.unbind("raphael.anim.frame."+this.id),this},t.prototype.delay=function(e){var l=new t(this.anim,this.ms);return l.times=this.times,l.del=+e||0,l},t.prototype.repeat=function(e){var l=new t(this.anim,this.ms);return l.del=this.del,l.times=P.floor(F(e,0))||1,l},v.animation=function(e,l,n,i){if(instanceof t)return e;(v.is(n,"function")||!n)&&(i=i||n||null,n=null),e=Object(e),l=+l||0;var a,o,r={};for(o in e)e[D](o)&&X(o)!=o&&X(o)+"%"!=o&&(a=!0,r[o]=e[o]);return a?(n&&(r.easing=n),i&&(r.callback=i),new t({100:r},l)):new t(e,l)},ql.animate=function(e,n,i,a){var o=this;if(o.removed)return a&&a.call(o),o;var r=instanceof t?e:v.animation(e,n,i,a);return l(r,o,r.percents[0],null,o.attr()),o},ql.setTime=function(e,l){return e&&null!=l&&this.status(e,B(l,e.ms)/e.ms),this},ql.status=function(e,t){var n,i,a=[],o=0;if(null!=t)return l(e,this,-1,B(t,1)),this;for(n=at.length;n>o;o++)if(i=at[o],i.el.id==this.id&&(!e||i.anim==e)){if(e)return i.status;a.push({anim:i.anim,status:i.status})}return e?0:a},ql.pause=function(e){for(var l=0;l<at.length;l++)at[l].el.id==this.id&&(!e||at[l].anim==e)&&eve("raphael.anim.pause."+this.id,this,at[l].anim)!==!1&&(at[l].paused=!0);return this},ql.resume=function(e){for(var l=0;l<at.length;l++)if(at[l].el.id==this.id&&(!e||at[l].anim==e)){var t=at[l];eve("raphael.anim.resume."+this.id,this,t.anim)!==!1&&(delete t.paused,this.status(t.anim,t.status))}return this},ql.stop=function(e){for(var l=0;l<at.length;l++)at[l].el.id==this.id&&(!e||at[l].anim==e)&&eve("raphael.anim.stop."+this.id,this,at[l].anim)!==!1&&at.splice(l--,1);return this},eve.on("raphael.remove",e),eve.on("raphael.clear",e),ql.toString=function(){return"Raphaël’s object"};var ct=function(e){if(this.items=[],this.length=0,this.type="set",e)for(var l=0,t=e.length;t>l;l++)e[l]&&(e[l].constructor==ql.constructor||e[l].constructor==ct)&&(this[this.items.length]=this.items[this.items.length]=e[l],this.length++)},ut=ct.prototype;ut.push=function(){for(var e,l,t=0,n=arguments.length;n>t;t++)e=arguments[t],e&&(e.constructor==ql.constructor||e.constructor==ct)&&(l=this.items.length,this[l]=this.items[l]=e,this.length++);return this},ut.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},ut.forEach=function(e,l){for(var t=0,n=this.items.length;n>t;t++)if(e.call(l,this.items[t],t)===!1)return this;return this};for(var dt in ql)ql[D](dt)&&(ut[dt]=function(e){return function(){var l=arguments;return this.forEach(function(t){t[e][I](t,l)})}}(dt));ut.attr=function(e,l){if(e&&v.is(e,j)&&v.is(e[0],"object"))for(var t=0,n=e.length;n>t;t++)this.items[t].attr(e[t]);else for(var i=0,a=this.items.length;a>i;i++)this.items[i].attr(e,l);return this},ut.clear=function(){for(;this.length;)this.pop()},ut.splice=function(e,l){e=0>e?F(this.length+e,0):e,l=F(0,B(this.length-e,l));var t,n=[],i=[],a=[];for(t=2;t<arguments.length;t++)a.push(arguments[t]);for(t=0;l>t;t++)i.push(this[e+t]);for(;t<this.length-e;t++)n.push(this[e+t]);var o=a.length;for(t=0;t<o+n.length;t++)this.items[e+t]=this[e+t]=o>t?a[t]:n[t-o];for(t=this.items.length=this.length-=l-o;this[t];)delete this[t++];return new ct(i)},ut.exclude=function(e){for(var l=0,t=this.length;t>l;l++)if(this[l]==e)return this.splice(l,1),!0},ut.animate=function(e,l,t,n){(v.is(t,"function")||!t)&&(n=t||null);var i,a,o=this.items.length,r=o,s=this;if(!o)return this;n&&(a=function(){!--o&&n.call(s)}),t=v.is(t,U)?t:a;var c=v.animation(e,l,t,a);for(i=this.items[--r].animate(c);r--;)this.items[r]&&!this.items[r].removed&&this.items[r].animateWith(i,c,c);return this},ut.insertAfter=function(e){for(var l=this.items.length;l--;)this.items[l].insertAfter(e);return this},ut.getBBox=function(){for(var e=[],l=[],t=[],n=[],i=this.items.length;i--;)if(!this.items[i].removed){var a=this.items[i].getBBox();e.push(a.x),l.push(a.y),t.push(a.x+a.width),n.push(a.y+a.height)}return e=B[I](0,e),l=B[I](0,l),t=F[I](0,t),n=F[I](0,n),{x:e,y:l,x2:t,y2:n,width:t-e,height:n-l}},ut.clone=function(e){e=new ct;for(var l=0,t=this.items.length;t>l;l++)e.push(this.items[l].clone());return e},ut.toString=function(){return"Raphaël‘s set"},v.registerFont=function(e){if(!e.face)return e;this.fonts=this.fonts||{};var l={w:e.w,face:{},glyphs:{}},t=e.face["font-family"];for(var n in e.face)e.face[D](n)&&(l.face[n]=e.face[n]);if(this.fonts[t]?this.fonts[t].push(l):this.fonts[t]=[l],!e.svg){l.face["units-per-em"]=J(e.face["units-per-em"],10);for(var i in e.glyphs)if(e.glyphs[D](i)){var a=e.glyphs[i];if(l.glyphs[i]={w:a.w,k:{},d:a.d&&"M"+a.d.replace(/[mlcxtrv]/g,function(e){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[e]||"M"})+"z"},a.k)for(var o in a.k)a[D](o)&&(l.glyphs[i].k[o]=a.k[o])}}return e},b.getFont=function(e,l,t,n){if(n=n||"normal",t=t||"normal",l=+l||{normal:400,bold:700,lighter:300,bolder:800}[l]||400,v.fonts){var i=v.fonts[e];if(!i){var a=new RegExp("(^|\s)"+e.replace(/[^wds+!~.:_-]/g,O)+"(\s|$)","i");for(var o in v.fonts)if(v.fonts[D](o)&&a.test(o)){i=v.fonts[o];break}}var r;if(i)for(var s=0,c=i.length;c>s&&(r=i[s],r.face["font-weight"]!=l||r.face["font-style"]!=t&&r.face["font-style"]||r.face["font-stretch"]!=n);s++);return r}},b.print=function(e,l,t,n,i,a,o){a=a||"middle",o=F(B(o||0,1),-1);var r,s=M(t)[N](O),c=0,u=0,d=O;if(v.is(n,t)&&(n=this.getFont(n)),n){r=(i||16)/n.face["units-per-em"];for(var h=n.face.bbox[N](T),f=+h[0],p=h[3]-h[1],m=0,g=+h[1]+("baseline"==a?p+ +n.face.descent:p/2),y=0,b=s.length;b>y;y++){if("n"==s[y])c=0,E=0,u=0,m+=p;else{var C=u&&n.glyphs[s[y-1]]||{},E=n.glyphs[s[y]];c+=u?(C.w||n.w)+(C.k&&C.k[s[y]]||0)+n.w*o:0,u=1}E&&E.d&&(d+=v.transformPath(E.d,["t",c*r,m*r,"s",r,r,f,g,"t",(e-f)/r,(l-g)/r]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},b.add=function(e){if(v.is(e,"array"))for(var l,t=this.set(),n=0,i=e.length;i>n;n++)l=e[n]||{},C[D](l.type)&&t.push(this[l.type]().attr(l));return t},v.format=function(e,l){var t=v.is(l,j)?[0][x](l):arguments;return e&&v.is(e,U)&&t.length-1&&(e=e.replace(E,function(e,l){return null==t[++l]?O:t[l]})),e||O},v.fullfill=function(){var e=/{([^}]+)}/g,l=/(?:(?:^|.)(.+?)(?=[|.|$|()|[('|")(.+?)2])(())?/g,t=function(e,t,n){var i=n;return t.replace(l,function(e,l,t,n,a){l=l||n,i&&(l in i&&(i=i[l]),"function"==typeof i&&a&&(i=i()))}),i=(null==i||i==n?e:i)+""};return function(l,n){return String(l).replace(e,function(e,l){return t(e,l,n)})}}(),v.ninja=function(){return _.was?w.win.Raphael=_.is:delete Raphael,v},v.st=ut,function(e,l,t){function n(){/in/.test(e.readyState)?setTimeout(n,9):v.eve("raphael.DOMload")}null==e.readyState&&e.addEventListener&&(e.addEventListener(l,t=function(){e.removeEventListener(l,t,!1),e.readyState="complete"},!1),e.readyState="loading"),n()}(document,"DOMContentLoaded"),_.was?w.win.Raphael=v:Raphael=v,eve.on("raphael.DOMload",function(){y=!0})}(),window.Raphael.svg&&function(e){var l="hasOwnProperty",t=String,n=parseFloat,i=parseInt,a=Math,o=a.max,r=a.abs,s=a.pow,c=/[, ]+/,u=e.eve,d="",h=" ",f="http://www.w3.org/1999/xlink",p={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},m={};e.toString=function(){return"Your browser supports SVG.nYou are running Raphaël "+this.version};var g=function(n,i){if(i){"string"==typeof n&&(n=g(n));for(var a in i)i[l](a)&&("xlink:"==a.substring(0,6)?n.setAttributeNS(f,a.substring(6),t(i[a])):n.setAttribute(a,t(i[a])))}else n=e._g.doc.createElementNS("http://www.w3.org/2000/svg",n),n.style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},v=function(l,i){var c="linear",u=l.id+i,h=.5,f=.5,p=l.node,m=l.paper,v=p.style,y=e._g.doc.getElementById(u);if(!y){if(i=t(i).replace(e._radial_gradient,function(e,l,t){if(c="radial",l&&t){h=n(l),f=n(t);var i=2*(f>.5)-1;s(h-.5,2)+s(f-.5,2)>.25&&(f=a.sqrt(.25-s(h-.5,2))*i+.5)&&.5!=f&&(f=f.toFixed(5)-1e-5*i)}return d}),i=i.split(/s*-s*/),"linear"==c){var b=i.shift();if(b=-n(b),isNaN(b))return null;var T=[0,0,a.cos(e.rad(b)),a.sin(e.rad(b))],C=1/(o(r(T[2]),r(T[3]))||1);T[2]*=C,T[3]*=C,T[2]<0&&(T[0]=-T[2],T[2]=0),T[3]<0&&(T[1]=-T[3],T[3]=0)}var E=e._parseDots(i);if(!E)return null;if(u=u.replace(/[()s,xb0#]/g,"_"),l.gradient&&u!=l.gradient.id&&(m.defs.removeChild(l.gradient),delete l.gradient),!l.gradient){y=g(c+"Gradient",{id:u}),l.gradient=y,g(y,"radial"==c?{fx:h,fy:f}:{x1:T[0],y1:T[1],x2:T[2],y2:T[3],gradientTransform:l.matrix.invert()}),m.defs.appendChild(y);for(var D=0,w=E.length;w>D;D++)y.appendChild(g("stop",{offset:E[D].offset?E[D].offset:D?"100%":"0%","stop-color":E[D].color||"#fff"}))}}return g(p,{fill:"url(#"+u+")",opacity:1,"fill-opacity":1}),v.fill=d,v.opacity=1,v.fillOpacity=1,1},y=function(e){var l=e.getBBox(1);g(e.pattern,{patternTransform:e.matrix.invert()+" translate("+l.x+","+l.y+")"})},b=function(n,i,a){if("path"==n.type){for(var o,r,s,c,u,h=t(i).toLowerCase().split("-"),f=n.paper,v=a?"end":"start",y=n.node,b=n.attrs,T=b["stroke-width"],C=h.length,E="classic",D=3,w=3,_=5;C--;)switch(h[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":E=h[C];break;case"wide":w=5;break;case"narrow":w=2;break;case"long":D=5;break;case"short":D=2}if("open"==E?(D+=2,w+=2,_+=2,s=1,c=a?4:1,u={fill:"none",stroke:b.stroke}):(c=s=D/2,u={fill:b.stroke,stroke:"none"}),n._.arrows?a?(n._.arrows.endPath&&m[n._.arrows.endPath]--,n._.arrows.endMarker&&m[n._.arrows.endMarker]--):(n._.arrows.startPath&&m[n._.arrows.startPath]--,n._.arrows.startMarker&&m[n._.arrows.startMarker]--):n._.arrows={},"none"!=E){var S="raphael-marker-"+E,I="raphael-marker-"+v+E+D+w;e._g.doc.getElementById(S)?m[S]++:(f.defs.appendChild(g(g("path"),{"stroke-linecap":"round",d:p[E],id:S})),m[S]=1);var x,k=e._g.doc.getElementById(I);k?(m[I]++,x=k.getElementsByTagName("use")[0]):(k=g(g("marker"),{id:I,markerHeight:w,markerWidth:D,orient:"auto",refX:c,refY:w/2}),x=g(g("use"),{"xlink:href":"#"+S,transform:(a?"rotate(180 "+D/2+" "+w/2+") ":d)+"scale("+D/_+","+w/_+")","stroke-width":(1/((D/_+w/_)/2)).toFixed(4)}),k.appendChild(x),f.defs.appendChild(k),m[I]=1),g(x,u);var O=s*("diamond"!=E&&"oval"!=E);a?(o=n._.arrows.startdx*T||0,r=e.getTotalLength(b.path)-O*T):(o=O*T,r=e.getTotalLength(b.path)-(n._.arrows.enddx*T||0)),u={},u["marker-"+v]="url(#"+I+")",(r||o)&&(u.d=Raphael.getSubpath(b.path,o,r)),g(y,u),n._.arrows[v+"Path"]=S,n._.arrows[v+"Marker"]=I,n._.arrows[v+"dx"]=O,n._.arrows[v+"Type"]=E,n._.arrows[v+"String"]=i}else a?(o=n._.arrows.startdx*T||0,r=e.getTotalLength(b.path)-o):(o=0,r=e.getTotalLength(b.path)-(n._.arrows.enddx*T||0)),n._.arrows[v+"Path"]&&g(y,{d:Raphael.getSubpath(b.path,o,r)}),delete n._.arrows[v+"Path"],delete n._.arrows[v+"Marker"],delete n._.arrows[v+"dx"],delete n._.arrows[v+"Type"],delete n._.arrows[v+"String"];for(u in m)if(m[l](u)&&!m[u]){var R=e._g.doc.getElementById(u);R&&R.parentNode.removeChild(R)}}},T={"":[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]},C=function(e,l,n){if(l=T[t(l).toLowerCase()]){for(var i=e.attrs["stroke-width"]||"1",a={round:i,square:i,butt:0}[e.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,o=[],r=l.length;r--;)o[r]=l[r]*i+(r%2?1:-1)*a;g(e.node,{"stroke-dasharray":o.join(",")})}},E=function(n,a){var s=n.node,u=n.attrs,h=s.style.visibility;s.style.visibility="hidden";for(var p in a)if(a[l](p)){if(!e._availableAttrs[l](p))continue;var m=a[p];switch(u[p]=m,p){case"blur":n.blur(m);break;case"href":case"title":case"target":var T=s.parentNode;if("a"!=T.tagName.toLowerCase()){var E=g("a");T.insertBefore(E,s),E.appendChild(s),T=E}"target"==p?T.setAttributeNS(f,"show","blank"==m?"new":m):T.setAttributeNS(f,p,m);break;case"cursor":s.style.cursor=m;break;case"transform":n.transform(m);break;case"arrow-start":b(n,m);break;case"arrow-end":b(n,m,1);break;case"clip-rect":var D=t(m).split(c);if(4==D.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var _=g("clipPath"),S=g("rect");_.id=e.createUUID(),g(S,{x:D[0],y:D[1],width:D[2],height:D[3]}),_.appendChild(S),n.paper.defs.appendChild(_),g(s,{"clip-path":"url(#"+_.id+")"}),n.clip=S}if(!m){var I=s.getAttribute("clip-path");if(I){var x=e._g.doc.getElementById(I.replace(/(^url(#|)$)/g,d));x&&x.parentNode.removeChild(x),g(s,{"clip-path":d}),delete n.clip}}break;case"path":"path"==n.type&&(g(s,{d:m?u.path=e._pathToAbsolute(m):"M0,0"}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1)));break;case"width":if(s.setAttribute(p,m),n._.dirty=1,!u.fx)break;p="x",m=u.x;case"x":u.fx&&(m=-u.x-(u.width||0));case"rx":if("rx"==p&&"rect"==n.type)break;case"cx":s.setAttribute(p,m),n.pattern&&y(n),n._.dirty=1;break;case"height":if(s.setAttribute(p,m),n._.dirty=1,!u.fy)break;p="y",m=u.y;case"y":u.fy&&(m=-u.y-(u.height||0));case"ry":if("ry"==p&&"rect"==n.type)break;case"cy":s.setAttribute(p,m),n.pattern&&y(n),n._.dirty=1;break;case"r":"rect"==n.type?g(s,{rx:m,ry:m}):s.setAttribute(p,m),n._.dirty=1;break;case"src":"image"==n.type&&s.setAttributeNS(f,"href",m);break;case"stroke-width":(1!=n._.sx||1!=n._.sy)&&(m/=o(r(n._.sx),r(n._.sy))||1),n.paper._vbSize&&(m*=n.paper._vbSize),s.setAttribute(p,m),u["stroke-dasharray"]&&C(n,u["stroke-dasharray"],a),n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1));break;case"stroke-dasharray":C(n,m,a);break;case"fill":var k=t(m).match(e._ISURL);if(k){_=g("pattern");var O=g("image");_.id=e.createUUID(),g(_,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),g(O,{x:0,y:0,"xlink:href":k[1]}),_.appendChild(O),function(l){e._preload(k[1],function(){var e=this.offsetWidth,t=this.offsetHeight;g(l,{width:e,height:t}),g(O,{width:e,height:t}),n.paper.safari()})}(_),n.paper.defs.appendChild(_),g(s,{fill:"url(#"+_.id+")"}),n.pattern=_,n.pattern&&y(n);break}var R=e.getRGB(m);if(R.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=t(m).charAt())&&v(n,m)){if("opacity"in u||"fill-opacity"in u){var M=e._g.doc.getElementById(s.getAttribute("fill").replace(/^url(#|)$/g,d));if(M){var N=M.getElementsByTagName("stop");g(N[N.length-1],{"stop-opacity":("opacity"in u?u.opacity:1)*("fill-opacity"in u?u["fill-opacity"]:1)})}}u.gradient=m,u.fill="none";break}}else delete a.gradient,delete u.gradient,!e.is(u.opacity,"undefined")&&e.is(a.opacity,"undefined")&&g(s,{opacity:u.opacity}),!e.is(u["fill-opacity"],"undefined")&&e.is(a["fill-opacity"],"undefined")&&g(s,{"fill-opacity":u["fill-opacity"]});R[l]("opacity")&&g(s,{"fill-opacity":R.opacity>1?R.opacity/100:R.opacity});case"stroke":R=e.getRGB(m),s.setAttribute(p,R.hex),"stroke"==p&&R[l]("opacity")&&g(s,{"stroke-opacity":R.opacity>1?R.opacity/100:R.opacity}),"stroke"==p&&n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=t(m).charAt())&&v(n,m);break;case"opacity":u.gradient&&!u[l]("stroke-opacity")&&g(s,{"stroke-opacity":m>1?m/100:m});case"fill-opacity":if(u.gradient){M=e._g.doc.getElementById(s.getAttribute("fill").replace(/^url(#|)$/g,d)),M&&(N=M.getElementsByTagName("stop"),g(N[N.length-1],{"stop-opacity":m}));break}default:"font-size"==p&&(m=i(m,10)+"px");var A=p.replace(/(-.)/g,function(e){return e.substring(1).toUpperCase()});s.style[A]=m,n._.dirty=1,s.setAttribute(p,m)}}w(n,a),s.style.visibility=h},D=1.2,w=function(n,a){if("text"==n.type&&(a[l]("text")||a[l]("font")||a[l]("font-size")||a[l]("x")||a[l]("y"))){var o=n.attrs,r=n.node,s=r.firstChild?i(e._g.doc.defaultView.getComputedStyle(r.firstChild,d).getPropertyValue("font-size"),10):10;if(a[l]("text")){for(o.text=a.text;r.firstChild;)r.removeChild(r.firstChild);for(var c,u=t(a.text).split("n"),h=[],f=0,p=u.length;p>f;f++)c=g("tspan"),f&&g(c,{dy:s*D,x:o.x}),c.appendChild(e._g.doc.createTextNode(u[f])),r.appendChild(c),h[f]=c}else for(h=r.getElementsByTagName("tspan"),f=0,p=h.length;p>f;f++)f?g(h[f],{dy:s*D,x:o.x}):g(h[0],{dy:0});g(r,{x:o.x,y:o.y}),n._.dirty=1;var m=n._getBBox(),v=o.y-(m.y+m.height/2);v&&e.is(v,"finite")&&g(h[0],{dy:v})}},_=function(l,t){this[0]=this.node=l,l.raphael=!0,this.id=e._oid++,l.raphaelid=this.id,this.matrix=e.matrix(),this.realPath=null,this.paper=t,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!t.bottom&&(t.bottom=this),this.prev=t.top,t.top&&(t.top.next=this),t.top=this,this.next=null},S=e.el;_.prototype=S,S.constructor=_,e._engine.path=function(e,l){var t=g("path");l.canvas&&l.canvas.appendChild(t);var n=new _(t,l);return n.type="path",E(n,{fill:"none",stroke:"#000",path:e}),n},S.rotate=function(e,l,i){if(this.removed)return this;if(e=t(e).split(c),e.length-1&&(l=n(e[1]),i=n(e[2])),e=n(e[0]),null==i&&(l=i),null==l||null==i){var a=this.getBBox(1);l=a.x+a.width/2,i=a.y+a.height/2}return this.transform(this._.transform.concat([["r",e,l,i]])),this},S.scale=function(e,l,i,a){if(this.removed)return this;if(e=t(e).split(c),e.length-1&&(l=n(e[1]),i=n(e[2]),a=n(e[3])),e=n(e[0]),null==l&&(l=e),null==a&&(i=a),null==i||null==a)var o=this.getBBox(1);return i=null==i?o.x+o.width/2:i,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",e,l,i,a]])),this
},S.translate=function(e,l){return this.removed?this:(e=t(e).split(c),e.length-1&&(l=n(e[1])),e=n(e[0])||0,l=+l||0,this.transform(this._.transform.concat([["t",e,l]])),this)},S.transform=function(t){var n=this._;if(null==t)return n.transform;if(e._extractTransform(this,t),this.clip&&g(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&g(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var i=this.attrs[l]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":i})}return this},S.hide=function(){return!this.removed&&this.paper.safari(this.node.style.display="none"),this},S.show=function(){return!this.removed&&this.paper.safari(this.node.style.display=""),this},S.remove=function(){if(!this.removed&&this.node.parentNode){var l=this.paper;l.__set__&&l.__set__.exclude(this),u.unbind("raphael.*.*."+this.id),this.gradient&&l.defs.removeChild(this.gradient),e._tear(this,l),"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.removeChild(this.node.parentNode):this.node.parentNode.removeChild(this.node);for(var t in this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;this.removed=!0}},S._getBBox=function(){if("none"==this.node.style.display){this.show();var e=!0}var l={};try{l=this.node.getBBox()}catch(t){}finally{l=l||{}}return e&&this.hide(),l},S.attr=function(t,n){if(this.removed)return this;if(null==t){var i={};for(var a in this.attrs)this.attrs[l](a)&&(i[a]=this.attrs[a]);return i.gradient&&"none"==i.fill&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(null==n&&e.is(t,"string")){if("fill"==t&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==t)return this._.transform;for(var o=t.split(c),r={},s=0,d=o.length;d>s;s++)t=o[s],r[t]=t in this.attrs?this.attrs[t]:e.is(this.paper.customAttributes[t],"function")?this.paper.customAttributes[t].def:e._availableAttrs[t];return d-1?r:r[o[0]]}if(null==n&&e.is(t,"array")){for(r={},s=0,d=t.length;d>s;s++)r[t[s]]=this.attr(t[s]);return r}if(null!=n){var h={};h[t]=n}else null!=t&&e.is(t,"object")&&(h=t);for(var f in h)u("raphael.attr."+f+"."+this.id,this,h[f]);for(f in this.paper.customAttributes)if(this.paper.customAttributes[l](f)&&h[l](f)&&e.is(this.paper.customAttributes[f],"function")){var p=this.paper.customAttributes[f].apply(this,[].concat(h[f]));this.attrs[f]=h[f];for(var m in p)p[l](m)&&(h[m]=p[m])}return E(this,h),this},S.toFront=function(){if(this.removed)return this;"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.appendChild(this.node.parentNode):this.node.parentNode.appendChild(this.node);var l=this.paper;return l.top!=this&&e._tofront(this,l),this},S.toBack=function(){if(this.removed)return this;var l=this.node.parentNode;return"a"==l.tagName.toLowerCase()?l.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild):l.firstChild!=this.node&&l.insertBefore(this.node,this.node.parentNode.firstChild),e._toback(this,this.paper),this.paper,this},S.insertAfter=function(l){if(this.removed)return this;var t=l.node||l[l.length-1].node;return t.nextSibling?t.parentNode.insertBefore(this.node,t.nextSibling):t.parentNode.appendChild(this.node),e._insertafter(this,l,this.paper),this},S.insertBefore=function(l){if(this.removed)return this;var t=l.node||l[0].node;return t.parentNode.insertBefore(this.node,t),e._insertbefore(this,l,this.paper),this},S.blur=function(l){var t=this;if(0!==+l){var n=g("filter"),i=g("feGaussianBlur");t.attrs.blur=l,n.id=e.createUUID(),g(i,{stdDeviation:+l||1.5}),n.appendChild(i),t.paper.defs.appendChild(n),t._blur=n,g(t.node,{filter:"url(#"+n.id+")"})}else t._blur&&(t._blur.parentNode.removeChild(t._blur),delete t._blur,delete t.attrs.blur),t.node.removeAttribute("filter")},e._engine.circle=function(e,l,t,n){var i=g("circle");e.canvas&&e.canvas.appendChild(i);var a=new _(i,e);return a.attrs={cx:l,cy:t,r:n,fill:"none",stroke:"#000"},a.type="circle",g(i,a.attrs),a},e._engine.rect=function(e,l,t,n,i,a){var o=g("rect");e.canvas&&e.canvas.appendChild(o);var r=new _(o,e);return r.attrs={x:l,y:t,width:n,height:i,r:a||0,rx:a||0,ry:a||0,fill:"none",stroke:"#000"},r.type="rect",g(o,r.attrs),r},e._engine.ellipse=function(e,l,t,n,i){var a=g("ellipse");e.canvas&&e.canvas.appendChild(a);var o=new _(a,e);return o.attrs={cx:l,cy:t,rx:n,ry:i,fill:"none",stroke:"#000"},o.type="ellipse",g(a,o.attrs),o},e._engine.image=function(e,l,t,n,i,a){var o=g("image");g(o,{x:t,y:n,width:i,height:a,preserveAspectRatio:"none"}),o.setAttributeNS(f,"href",l),e.canvas&&e.canvas.appendChild(o);var r=new _(o,e);return r.attrs={x:t,y:n,width:i,height:a,src:l},r.type="image",r},e._engine.text=function(l,t,n,i){var a=g("text");l.canvas&&l.canvas.appendChild(a);var o=new _(a,l);return o.attrs={x:t,y:n,"text-anchor":"middle",text:i,font:e._availableAttrs.font,stroke:"none",fill:"#000"},o.type="text",E(o,o.attrs),o},e._engine.setSize=function(e,l){return this.width=e||this.width,this.height=l||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},e._engine.create=function(){var l=e._getContainer.apply(0,arguments),t=l&&l.container,n=l.x,i=l.y,a=l.width,o=l.height;if(!t)throw new Error("SVG container not found.");var r,s=g("svg"),c="overflow:hidden;";return n=n||0,i=i||0,a=a||512,o=o||342,g(s,{height:o,version:1.1,width:a,xmlns:"http://www.w3.org/2000/svg"}),1==t?(s.style.cssText=c+"position:absolute;left:"+n+"px;top:"+i+"px",e._g.doc.body.appendChild(s),r=1):(s.style.cssText=c+"position:relative",t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)),t=new e._Paper,t.width=a,t.height=o,t.canvas=s,t.clear(),t._left=t._top=0,r&&(t.renderfix=function(){}),t.renderfix(),t},e._engine.setViewBox=function(e,l,t,n,i){u("raphael.setViewBox",this,this._viewBox,[e,l,t,n,i]);var a,r,s=o(t/this.width,n/this.height),c=this.top,d=i?"meet":"xMinYMin";for(null==e?(this._vbSize&&(s=1),delete this._vbSize,a="0 0 "+this.width+h+this.height):(this._vbSize=s,a=e+h+l+h+t+h+n),g(this.canvas,{viewBox:a,preserveAspectRatio:d});s&&c;)r="stroke-width"in c.attrs?c.attrs["stroke-width"]:1,c.attr({"stroke-width":r}),c._.dirty=1,c._.dirtyT=1,c=c.prev;return this._viewBox=[e,l,t,n,!!i],this},e.prototype.renderfix=function(){var e,l=this.canvas,t=l.style;try{e=l.getScreenCTM()||l.createSVGMatrix()}catch(n){e=l.createSVGMatrix()}var i=-e.e%1,a=-e.f%1;(i||a)&&(i&&(this._left=(this._left+i)%1,t.left=this._left+"px"),a&&(this._top=(this._top+a)%1,t.top=this._top+"px"))},e.prototype.clear=function(){e.eve("raphael.clear",this);for(var l=this.canvas;l.firstChild;)l.removeChild(l.firstChild);this.bottom=this.top=null,(this.desc=g("desc")).appendChild(e._g.doc.createTextNode("Created with Raphaël "+e.version)),l.appendChild(this.desc),l.appendChild(this.defs=g("defs"))},e.prototype.remove=function(){u("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var l in this)this[l]="function"==typeof this[l]?e._removedFactory(l):null};var I=e.st;for(var x in S)S[l](x)&&!I[l](x)&&(I[x]=function(e){return function(){var l=arguments;return this.forEach(function(t){t[e].apply(t,l)})}}(x))}(window.Raphael),window.Raphael.vml&&function(e){var l="hasOwnProperty",t=String,n=parseFloat,i=Math,a=i.round,o=i.max,r=i.min,s=i.abs,c="fill",u=/[, ]+/,d=e.eve,h=" progid:DXImageTransform.Microsoft",f=" ",p="",m={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,v=/ progid:S+Blur([^)]+)/g,y=/-?[^,s-]+/g,b="position:absolute;left:0;top:0;width:1px;height:1px",T=21600,C={path:1,rect:1,image:1},E={circle:1,ellipse:1},D=function(l){var n=/[ahqstv]/gi,i=e._pathToAbsolute;if(t(l).match(n)&&(i=e._path2curve),n=/[clmz]/g,i==e._pathToAbsolute&&!t(l).match(n)){var o=t(l).replace(g,function(e,l,t){var n=[],i="m"==l.toLowerCase(),o=m[l];return t.replace(y,function(e){i&&2==n.length&&(o+=n+m["m"==l?"l":"L"],n=[]),n.push(a(e*T))}),o+n});return o}var r,s,c=i(l);o=[];for(var u=0,d=c.length;d>u;u++){r=c[u],s=c[u][0].toLowerCase(),"z"==s&&(s="x");for(var h=1,v=r.length;v>h;h++)s+=a(r[h]*T)+(h!=v-1?",":p);o.push(s)}return o.join(f)},w=function(l,t,n){var i=e.matrix();return i.rotate(-l,.5,.5),{dx:i.x(t,n),dy:i.y(t,n)}},_=function(e,l,t,n,i,a){var o=e._,r=e.matrix,u=o.fillpos,d=e.node,h=d.style,p=1,m="",g=T/l,v=T/t;if(h.visibility="hidden",l&&t){if(d.coordsize=s(g)+f+s(v),h.rotation=a*(0>l*t?-1:1),a){var y=w(a,n,i);n=y.dx,i=y.dy}if(0>l&&(m+="x"),0>t&&(m+=" y")&&(p=-1),h.flip=m,d.coordorigin=n*-g+f+i*-v,u||o.fillsize){var b=d.getElementsByTagName(c);b=b&&b[0],d.removeChild(b),u&&(y=w(a,r.x(u[0],u[1]),r.y(u[0],u[1])),b.position=y.dx*p+f+y.dy*p),o.fillsize&&(b.size=o.fillsize[0]*s(l)+f+o.fillsize[1]*s(t)),d.appendChild(b)}h.visibility="visible"}};e.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.nYou are running Raphaël "+this.version};var S=function(e,l,n){for(var i=t(l).toLowerCase().split("-"),a=n?"end":"start",o=i.length,r="classic",s="medium",c="medium";o--;)switch(i[o]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":r=i[o];break;case"wide":case"narrow":c=i[o];break;case"long":case"short":s=i[o]}var u=e.node.getElementsByTagName("stroke")[0];u[a+"arrow"]=r,u[a+"arrowlength"]=s,u[a+"arrowwidth"]=c},I=function(i,s){i.attrs=i.attrs||{};var d=i.node,h=i.attrs,m=d.style,g=C[i.type]&&(s.x!=h.x||s.y!=h.y||s.width!=h.width||s.height!=h.height||s.cx!=h.cx||s.cy!=h.cy||s.rx!=h.rx||s.ry!=h.ry||s.r!=h.r),v=E[i.type]&&(h.cx!=s.cx||h.cy!=s.cy||h.r!=s.r||h.rx!=s.rx||h.ry!=s.ry),y=i;for(var b in s)s[l](b)&&(h[b]=s[b]);if(g&&(h.path=e._getPath[i.type](i),i._.dirty=1),s.href&&(d.href=s.href),s.title&&(d.title=s.title),s.target&&(d.target=s.target),s.cursor&&(m.cursor=s.cursor),"blur"in s&&i.blur(s.blur),(s.path&&"path"==i.type||g)&&(d.path=D(~t(h.path).toLowerCase().indexOf("r")?e._pathToAbsolute(h.path):h.path),"image"==i.type&&(i._.fillpos=[h.x,h.y],i._.fillsize=[h.width,h.height],_(i,1,1,0,0,0))),"transform"in s&&i.transform(s.transform),v){var w=+h.cx,I=+h.cy,k=+h.rx||+h.r||0,O=+h.ry||+h.r||0;d.path=e.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",a((w-k)*T),a((I-O)*T),a((w+k)*T),a((I+O)*T),a(w*T))}if("clip-rect"in s){var M=t(s["clip-rect"]).split(u);if(4==M.length){M[2]=+M[2]+ +M[0],M[3]=+M[3]+ +M[1];var N=d.clipRect||e._g.doc.createElement("div"),A=N.style;A.clip=e.format("rect({1}px {2}px {3}px {0}px)",M),d.clipRect||(A.position="absolute",A.top=0,A.left=0,A.width=i.paper.width+"px",A.height=i.paper.height+"px",d.parentNode.insertBefore(N,d),N.appendChild(d),d.clipRect=N)}s["clip-rect"]||d.clipRect&&(d.clipRect.style.clip="auto")}if(i.textpath){var K=i.textpath.style;s.font&&(K.font=s.font),s["font-family"]&&(K.fontFamily='"'+s["
font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,p)+'"'),s["font-size"]&&(K.fontSize=s["font-size"]),s["font-weight"]&&(K.fontWeight=s["font-weight"]),s["font-style"]&&(K.fontStyle=s["font-style"])}if("arrow-start"in s&&S(y,s["arrow-start"]),"arrow-end"in s&&S(y,s["arrow-end"],1),null!=s.opacity||null!=s["stroke-width"]||null!=s.fill||null!=s.src||null!=s.stroke||null!=s["stroke-width"]||null!=s["stroke-opacity"]||null!=s["fill-opacity"]||null!=s["stroke-dasharray"]||null!=s["stroke-miterlimit"]||null!=s["stroke-linejoin"]||null!=s["stroke-linecap"]){var L=d.getElementsByTagName(c),P=!1;if(L=L&&L[0],!L&&(P=L=R(c)),"image"==i.type&&s.src&&(L.src=s.src),s.fill&&(L.on=!0),(null==L.on||"none"==s.fill||null===s.fill)&&(L.on=!1),L.on&&s.fill){var F=t(s.fill).match(e._ISURL);if(F){L.parentNode==d&&d.removeChild(L),L.rotate=!0,L.src=F[1],L.type="tile";var B=i.getBBox(1);L.position=B.x+f+B.y,i._.fillpos=[B.x,B.y],e._preload(F[1],function(){i._.fillsize=[this.offsetWidth,this.offsetHeight]})}else L.color=e.getRGB(s.fill).hex,L.src=p,L.type="solid",e.getRGB(s.fill).error&&(y.type in{circle:1,ellipse:1}||"r"!=t(s.fill).charAt())&&x(y,s.fill,L)&&(h.fill="none",h.gradient=s.fill,L.rotate=!1)}if("fill-opacity"in s||"opacity"in s){var $=((+h["fill-opacity"]+1||2)-1)*((+h.opacity+1||2)-1)*((+e.getRGB(s.fill).o+1||2)-1);$=r(o($,0),1),L.opacity=$,L.src&&(L.color="none")}d.appendChild(L);var H=d.getElementsByTagName("stroke")&&d.getElementsByTagName("stroke")[0],Z=!1;!H&&(Z=H=R("stroke")),(s.stroke&&"none"!=s.stroke||s["stroke-width"]||null!=s["stroke-opacity"]||s["stroke-dasharray"]||s["stroke-miterlimit"]||s["stroke-linejoin"]||s["stroke-linecap"])&&(H.on=!0),("none"==s.stroke||null===s.stroke||null==H.on||0==s.stroke||0==s["stroke-width"])&&(H.on=!1);var z=e.getRGB(s.stroke);H.on&&s.stroke&&(H.color=z.hex),$=((+h["stroke-opacity"]+1||2)-1)*((+h.opacity+1||2)-1)*((+z.o+1||2)-1);var U=.75*(n(s["stroke-width"])||1);if($=r(o($,0),1),null==s["stroke-width"]&&(U=h["stroke-width"]),s["stroke-width"]&&(H.weight=U),U&&1>U&&($*=U)&&(H.weight=1),H.opacity=$,s["stroke-linejoin"]&&(H.joinstyle=s["stroke-linejoin"]||"miter"),H.miterlimit=s["stroke-miterlimit"]||8,s["stroke-linecap"]&&(H.endcap="butt"==s["stroke-linecap"]?"flat":"square"==s["stroke-linecap"]?"square":"round"),s["stroke-dasharray"]){var j={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot","":"dot","":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};H.dashstyle=j[l](s["stroke-dasharray"])?j[s["stroke-dasharray"]]:p}Z&&d.appendChild(H)}if("text"==y.type){y.paper.canvas.style.display=p;var W=y.paper.span,V=100,G=h.font&&h.font.match(/d+(?:.d*)?(?=px)/);m=W.style,h.font&&(m.font=h.font),h["font-family"]&&(m.fontFamily=h["font-family"]),h["font-weight"]&&(m.fontWeight=h["font-weight"]),h["font-style"]&&(m.fontStyle=h["font-style"]),G=n(h["font-size"]||G&&G[0])||10,m.fontSize=G*V+"px",y.textpath.string&&(W.innerHTML=t(y.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/n/g,"<br>"));var q=W.getBoundingClientRect();y.W=h.w=(q.right-q.left)/V,y.H=h.h=(q.bottom-q.top)/V,y.X=h.x,y.Y=h.y+y.H/2,("x"in s||"y"in s)&&(y.path.v=e.format("m{0},{1}l{2},{1}",a(h.x*T),a(h.y*T),a(h.x*T)+1));for(var Y=["x","y","text","font","font-family","font-weight","font-style","font-size"],X=0,J=Y.length;J>X;X++)if(Y[X]in s){y._.dirty=1;break}switch(h["text-anchor"]){case"start":y.textpath.style["v-text-align"]="left",y.bbx=y.W/2;break;case"end":y.textpath.style["v-text-align"]="right",y.bbx=-y.W/2;break;default:y.textpath.style["v-text-align"]="center",y.bbx=0}y.textpath.style["v-text-kern"]=!0}},x=function(l,a,o){l.attrs=l.attrs||{};var r=(l.attrs,Math.pow),s="linear",c=".5 .5";if(l.attrs.gradient=a,a=t(a).replace(e._radial_gradient,function(e,l,t){return s="radial",l&&t&&(l=n(l),t=n(t),r(l-.5,2)+r(t-.5,2)>.25&&(t=i.sqrt(.25-r(l-.5,2))*(2*(t>.5)-1)+.5),c=l+f+t),p}),a=a.split(/s*-s*/),"linear"==s){var u=a.shift();if(u=-n(u),isNaN(u))return null}var d=e._parseDots(a);if(!d)return null;if(l=l.shape||l.node,d.length){l.removeChild(o),o.on=!0,o.method="none",o.color=d[0].color,o.color2=d[d.length-1].color;for(var h=[],m=0,g=d.length;g>m;m++)d[m].offset&&h.push(d[m].offset+f+d[m].color);o.colors=h.length?h.join():"0% "+o.color,"radial"==s?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=c,o.angle=0):(o.type="gradient",o.angle=(270-u)%360),l.appendChild(o)}return 1},k=function(l,t){this[0]=this.node=l,l.raphael=!0,this.id=e._oid++,l.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=t,this.matrix=e.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!t.bottom&&(t.bottom=this),this.prev=t.top,t.top&&(t.top.next=this),t.top=this,this.next=null},O=e.el;k.prototype=O,O.constructor=k,O.transform=function(l){if(null==l)return this._.transform;var n,i=this.paper._viewBoxShift,a=i?"s"+[i.scale,i.scale]+"-1-1t"+[i.dx,i.dy]:p;i&&(n=l=t(l).replace(/.{3}|u2026/g,this._.transform||p)),e._extractTransform(this,a+l);var o,r=this.matrix.clone(),s=this.skew,c=this.node,u=~t(this.attrs.fill).indexOf("-"),d=!t(this.attrs.fill).indexOf("url(");if(r.translate(-.5,-.5),d||u||"image"==this.type)if(s.matrix="1 0 0 1",s.offset="0 0",o=r.split(),u&&o.noRotation||!o.isSimple){c.style.filter=r.toFilter();var h=this.getBBox(),m=this.getBBox(1),g=h.x-m.x,v=h.y-m.y;c.coordorigin=g*-T+f+v*-T,_(this,1,1,g,v,0)}else c.style.filter=p,_(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else c.style.filter=p,s.matrix=t(r),s.offset=r.offset();return n&&(this._.transform=n),this},O.rotate=function(e,l,i){if(this.removed)return this;if(null!=e){if(e=t(e).split(u),e.length-1&&(l=n(e[1]),i=n(e[2])),e=n(e[0]),null==i&&(l=i),null==l||null==i){var a=this.getBBox(1);l=a.x+a.width/2,i=a.y+a.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",e,l,i]])),this}},O.translate=function(e,l){return this.removed?this:(e=t(e).split(u),e.length-1&&(l=n(e[1])),e=n(e[0])||0,l=+l||0,this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=l),this.transform(this._.transform.concat([["t",e,l]])),this)},O.scale=function(e,l,i,a){if(this.removed)return this;if(e=t(e).split(u),e.length-1&&(l=n(e[1]),i=n(e[2]),a=n(e[3]),isNaN(i)&&(i=null),isNaN(a)&&(a=null)),e=n(e[0]),null==l&&(l=e),null==a&&(i=a),null==i||null==a)var o=this.getBBox(1);return i=null==i?o.x+o.width/2:i,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",e,l,i,a]])),this._.dirtyT=1,this},O.hide=function(){return!this.removed&&(this.node.style.display="none"),this},O.show=function(){return!this.removed&&(this.node.style.display=p),this},O._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},O.remove=function(){if(!this.removed&&this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this),e.eve.unbind("raphael.*.*."+this.id),e._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape);for(var l in this)this[l]="function"==typeof this[l]?e._removedFactory(l):null;this.removed=!0}},O.attr=function(t,n){if(this.removed)return this;if(null==t){var i={};for(var a in this.attrs)this.attrs[l](a)&&(i[a]=this.attrs[a]);return i.gradient&&"none"==i.fill&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(null==n&&e.is(t,"string")){if(t==c&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var o=t.split(u),r={},s=0,h=o.length;h>s;s++)t=o[s],r[t]=t in this.attrs?this.attrs[t]:e.is(this.paper.customAttributes[t],"function")?this.paper.customAttributes[t].def:e._availableAttrs[t];return h-1?r:r[o[0]]}if(this.attrs&&null==n&&e.is(t,"array")){for(r={},s=0,h=t.length;h>s;s++)r[t[s]]=this.attr(t[s]);return r}var f;null!=n&&(f={},f[t]=n),null==n&&e.is(t,"object")&&(f=t);for(var p in f)d("raphael.attr."+p+"."+this.id,this,f[p]);if(f){for(p in this.paper.customAttributes)if(this.paper.customAttributes[l](p)&&f[l](p)&&e.is(this.paper.customAttributes[p],"function")){var m=this.paper.customAttributes[p].apply(this,[].concat(f[p]));this.attrs[p]=f[p];for(var g in m)m[l](g)&&(f[g]=m[g])}f.text&&"text"==this.type&&(this.textpath.string=f.text),I(this,f)}return this},O.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&e._tofront(this,this.paper),this},O.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),e._toback(this,this.paper)),this)},O.insertAfter=function(l){return this.removed?this:(l.constructor==e.st.constructor&&(l=l[l.length-1]),l.node.nextSibling?l.node.parentNode.insertBefore(this.node,l.node.nextSibling):l.node.parentNode.appendChild(this.node),e._insertafter(this,l,this.paper),this)},O.insertBefore=function(l){return this.removed?this:(l.constructor==e.st.constructor&&(l=l[0]),l.node.parentNode.insertBefore(this.node,l.node),e._insertbefore(this,l,this.paper),this)},O.blur=function(l){var t=this.node.runtimeStyle,n=t.filter;n=n.replace(v,p),0!==+l?(this.attrs.blur=l,t.filter=n+f+h+".Blur(pixelradius="+(+l||1.5)+")",t.margin=e.format("-{0}px 0 0 -{0}px",a(+l||1.5))):(t.filter=n,t.margin=0,delete this.attrs.blur)},e._engine.path=function(e,l){var t=R("shape");t.style.cssText=b,t.coordsize=T+f+T,t.coordorigin=l.coordorigin;var n=new k(t,l),i={fill:"none",stroke:"#000"};e&&(i.path=e),n.type="path",n.path=[],n.Path=p,I(n,i),l.canvas.appendChild(t);var a=R("skew");return a.on=!0,t.appendChild(a),n.skew=a,n.transform(p),n},e._engine.rect=function(l,t,n,i,a,o){var r=e._rectPath(t,n,i,a,o),s=l.path(r),c=s.attrs;return s.X=c.x=t,s.Y=c.y=n,s.W=c.width=i,s.H=c.height=a,c.r=o,c.path=r,s.type="rect",s},e._engine.ellipse=function(e,l,t,n,i){var a=e.path();return a.attrs,a.X=l-n,a.Y=t-i,a.W=2*n,a.H=2*i,a.type="ellipse",I(a,{cx:l,cy:t,rx:n,ry:i}),a},e._engine.circle=function(e,l,t,n){var i=e.path();return i.attrs,i.X=l-n,i.Y=t-n,i.W=i.H=2*n,i.type="circle",I(i,{cx:l,cy:t,r:n}),i},e._engine.image=function(l,t,n,i,a,o){var r=e._rectPath(n,i,a,o),s=l.path(r).attr({stroke:"none"}),u=s.attrs,d=s.node,h=d.getElementsByTagName(c)[0];return u.src=t,s.X=u.x=n,s.Y=u.y=i,s.W=u.width=a,s.H=u.height=o,u.path=r,s.type="image",h.parentNode==d&&d.removeChild(h),h.rotate=!0,h.src=t,h.type="tile",s._.fillpos=[n,i],s._.fillsize=[a,o],d.appendChild(h),_(s,1,1,0,0,0),s},e._engine.text=function(l,n,i,o){var r=R("shape"),s=R("path"),c=R("textpath");n=n||0,i=i||0,o=o||"",s.v=e.format("m{0},{1}l{2},{1}",a(n*T),a(i*T),a(n*T)+1),s.textpathok=!0,c.string=t(o),c.on=!0,r.style.cssText=b,r.coordsize=T+f+T,r.coordorigin="0 0";var u=new k(r,l),d={fill:"#000",stroke:"none",font:e._availableAttrs.font,text:o};u.shape=r,u.path=s,u.textpath=c,u.type="text",u.attrs.text=t(o),u.attrs.x=n,u.attrs.y=i,u.attrs.w=1,u.attrs.h=1,I(u,d),r.appendChild(c),r.appendChild(s),l.canvas.appendChild(r);var h=R("skew");return h.on=!0,r.appendChild(h),u.skew=h,u.transform(p),u},e._engine.setSize=function(l,t){var n=this.canvas.style;return this.width=l,this.height=t,l==+l&&(l+="px"),t==+t&&(t+="px"),n.width=l,n.height=t,n.clip="rect(0 "+l+" "+t+" 0)",this._viewBox&&e._engine.setViewBox.apply(this,this._viewBox),this},e._engine.setViewBox=function(l,t,n,i,a){e.eve("raphael.setViewBox",this,this._viewBox,[l,t,n,i,a]);var r,s,c=this.width,u=this.height,d=1/o(n/c,i/u);return a&&(r=u/i,s=c/n,c>n*r&&(l-=(c-n*r)/2/r),u>i*s&&(t-=(u-i*s)/2/s)),this._viewBox=[l,t,n,i,!!a],this._viewBoxShift={dx:-l,dy:-t,scale:d},this.forEach(function(e){e.transform("...")}),this};var R;e._engine.initWin=function(e){var l=e.document;l.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!l.namespaces.rvml&&l.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),R=function(e){return l.createElement("<rvml:"+e+' class="rvml">')}}catch(t){R=function(e){return l.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},e._engine.initWin(e._g.win),e._engine.create=function(){var l=e._getContainer.apply(0,arguments),t=l.container,n=l.height,i=l.width,a=l.x,o=l.y;if(!t)throw new Error("VML container not found.");var r=new e._Paper,s=r.canvas=e._g.doc.createElement("div"),c=s.style;return a=a||0,o=o||0,i=i||512,n=n||342,r.width=i,r.height=n,i==+i&&(i+="px"),n==+n&&(n+="px"),r.coordsize=1e3*T+f+1e3*T,r.coordorigin="0 0",r.span=e._g.doc.createElement("span"),r.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",s.appendChild(r.span),c.cssText=e.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,n),1==t?(e._g.doc.body.appendChild(s),c.left=a+"px",c.top=o+"px",c.position="absolute"):t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),r.renderfix=function(){},r},e.prototype.clear=function(){e.eve("raphael.clear",this),this.canvas.innerHTML=p,this.span=e._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},e.prototype.remove=function(){e.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var l in this)this[l]="function"==typeof this[l]?e._removedFactory(l):null;return!0};var M=e.st;for(var N in O)O[l](N)&&!M[l](N)&&(M[N]=function(e){return function(){var l=arguments;return this.forEach(function(t){t[e].apply(t,l)})}}(N))}(window.Raphael);
?>
Онлайн: 0
Реклама