!function(a){varb,c,d="0.4.2",e="hasOwnProperty",f=/[\.\/]/,g="*",h=function(){},i=function(a,b){returna-b},j={n:{}},k=function(a,d){a=String(a);vare,f=c,g=Array.prototype.slice.call(arguments,2),h=k.listeners(a),j=0,l=[],m={},n=[],o=b;b=a,c=0;for(varp=0,q=h.length;q>p;p++)"zIndex"inh[p]&&(l.push(h[p].zIndex),h[p].zIndex<0&&(m[h[p].zIndex]=h[p]));for(l.sort(i);l[j]<0;)if(e=m[l[j++]],n.push(e.apply(d,g)),c)returnc=f,n;for(p=0;q>p;p++)if(e=h[p],"zIndex"ine)if(e.zIndex==l[j]){if(n.push(e.apply(d,g)),c)break;doif(j++,e=m[l[j]],e&&n.push(e.apply(d,g)),c)break;while(e)}elsem[e.zIndex]=e;elseif(n.push(e.apply(d,g)),c)break;returnc=f,b=o,n.length?n:null};k._events=j,k.listeners=function(a){varb,c,d,e,h,i,k,l,m=a.split(f),n=j,o=[n],p=[];for(e=0,h=m.length;h>e;e++){for(l=[],i=0,k=o.length;k>i;i++)for(n=o[i].n,c=[n[m[e]],n[g]],d=2;d--;)b=c[d],b&&(l.push(b),p=p.concat(b.f||[]));o=l}returnp},k.on=function(a,b){if(a=String(a),"function"!=typeofb)returnfunction(){};for(varc=a.split(f),d=j,e=0,g=c.length;g>e;e++)d=d.n,d=d.hasOwnProperty(c[e])&&d[c[e]]||(d[c[e]]={n:{}});for(d.f=d.f||[],e=0,g=d.f.length;g>e;e++)if(d.f[e]==b)returnh;returnd.f.push(b),function(a){+a==+a&&(b.zIndex=+a)}},k.f=function(a){varb=[].slice.call(arguments,1);returnfunction(){k.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}},k.stop=function(){c=1},k.nt=function(a){returna?newRegExp("(?:\\.|\\/|^)"+a+"(?:\\.|\\/|$)").test(b):b},k.nts=function(){returnb.split(f)},k.off=k.unbind=function(a,b){if(!a)returnvoid(k._events=j={n:{}});varc,d,h,i,l,m,n,o=a.split(f),p=[j];for(i=0,l=o.length;l>i;i++)for(m=0;m<p.length;m+=h.length-2){if(h=[m,1],c=p[m].n,o[i]!=g)c[o[i]]&&h.push(c[o[i]]);elsefor(dinc)c[e](d)&&h.push(c[d]);p.splice.apply(p,h)}for(i=0,l=p.length;l>i;i++)for(c=p[i];c.n;){if(b){if(c.f){for(m=0,n=c.f.length;n>m;m++)if(c.f[m]==b){c.f.splice(m,1);break}!c.f.length&&deletec.f}for(dinc.n)if(c.n[e](d)&&c.n[d].f){varq=c.n[d].f;for(m=0,n=q.length;n>m;m++)if(q[m]==b){q.splice(m,1);break}!q.length&&deletec.n[d].f}}else{deletec.f;for(dinc.n)c.n[e](d)&&c.n[d].f&&deletec.n[d].f}c=c.n}},k.once=function(a,b){varc=function(){returnk.unbind(a,c),b.apply(this,arguments)};returnk.on(a,c)},k.version=d,k.toString=function(){return"You are running Eve "+d},"undefined"!=typeofmodule&&module.exports?module.exports=k:"undefined"!=typeofdefine?define("eve",[],function(){returnk}):a.eve=k}(window||this),function(a,b){"function"==typeofdefine&&define.amd?define(["eve"],function(c){returnb(a,c)}):b(a,a.eve||"function"==typeofrequire&&require("eve"))}(this,function(a,b){functionc(a){if(c.is(a,"function"))returnu?a():b.on("raphael.DOMload",a);if(c.is(a,V))returnc._engine.create[D](c,a.splice(0,3+c.is(a[0],T))).add(a);vard=Array.prototype.slice.call(arguments,0);if(c.is(d[d.length-1],"function")){vare=d.pop();returnu?e.call(c._engine.create[D](c,d)):b.on("raphael.DOMload",function(){e.call(c._engine.create[D](c,d))})}returnc._engine.create[D](c,arguments)}functiond(a){if("function"==typeofa||Object(a)!==a)returna;varb=newa.constructor;for(varcina)a[z](c)&&(b[c]=d(a[c]));returnb}functione(a,b){for(varc=0,d=a.length;d>c;c++)if(a[c]===b)returna.push(a.splice(c,1)[0])}functionf(a,b,c){functiond(){varf=Array.prototype.slice.call(arguments,0),g=f.join("␀"),h=d.cache=d.cache||{},i=d.count=d.count||[];returnh[z](g)?(e(i,g),c?c(h[g]):h[g]):(i.length>=1e3&&deleteh[i.shift()],i.push(g),h[g]=a[D](b,f),c?c(h[g]):h[g])}returnd}functiong(){returnthis.hex}functionh(a,b){for(varc=[],d=0,e=a.length;e-2*!b>d;d+=2){varf=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?e-4==d?f[3]={x:+a[0],y:+a[1]}:e-2==d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[e-2],y:+a[e-1]}:e-4==d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]}),c.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}returnc}functioni(a,b,c,d,e){varf=-3*b+9*c-9*d+3*e,g=a*f+6*b-12*c+6*d;returna*g-3*b+3*c}functionj(a,b,c,d,e,f,g,h,j)