@htmlbricks/hb-gauge 0.19.34 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
- package/release/release.js.map +1 -1
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function i(){return Object.create(null)}function n(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e,i){t.insertBefore(e,i||null)}function o(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function h(t){const e={};for(const i of t)e[i.name]=i.value;return e}let c;function u(t){c=t}function f(){if(!c)throw new Error("Function called outside component initialization");return c}const p=[],d=[],g=[],m=[],x=Promise.resolve();let v=!1;function y(t){g.push(t)}const b=new Set;let w=0;function _(){if(0!==w)return;const t=c;do{try{for(;w<p.length;){const t=p[w];w++,u(t),k(t.$$)}}catch(t){throw p.length=0,w=0,t}for(u(null),p.length=0,w=0;d.length;)d.pop()();for(let t=0;t<g.length;t+=1){const e=g[t];b.has(e)||(b.add(e),e())}g.length=0}while(p.length);for(;m.length;)m.pop()();v=!1,b.clear(),u(t)}function k(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(y)}}const S=new Set;function M(t,e){-1===t.$$.dirty[0]&&(p.push(t),v||(v=!0,x.then(_)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function C(s,a,l,h,f,p,d,g=[-1]){const m=c;u(s);const x=s.$$={fragment:null,ctx:[],props:p,update:t,not_equal:f,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:i(),dirty:g,skip_bound:!1,root:a.target||m.$$.root};d&&d(x.root);let v=!1;if(x.ctx=l?l(s,a.props||{},((t,e,...i)=>{const n=i.length?i[0]:e;return x.ctx&&f(x.ctx[t],x.ctx[t]=n)&&(!x.skip_bound&&x.bound[t]&&x.bound[t](n),v&&M(s,t)),e})):[],x.update(),v=!0,n(x.before_update),x.fragment=!!h&&h(x.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);x.fragment&&x.fragment.l(t),t.forEach(o)}else x.fragment&&x.fragment.c();a.intro&&((b=s.$$.fragment)&&b.i&&(S.delete(b),b.i(w))),function(t,i,s,a){const{fragment:o,after_update:l}=t.$$;o&&o.m(i,s),a||y((()=>{const i=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...i):n(i),t.$$.on_mount=[]})),l.forEach(y)}(s,a.target,a.anchor,a.customElement),_()}var b,w;u(m)}let B;function A(t,e,i){var n,r,s,a,o;function l(){var h=Date.now()-a;h<e&&h>=0?n=setTimeout(l,e-h):(n=null,i||(o=t.apply(s,r),s=r=null))}null==e&&(e=100);var h=function(){s=this,r=arguments,a=Date.now();var h=i&&!n;return n||(n=setTimeout(l,e)),h&&(o=t.apply(s,r),s=r=null),o};return h.clear=function(){n&&(clearTimeout(n),n=null)},h.flush=function(){n&&(o=t.apply(s,r),s=r=null,clearTimeout(n),n=null)},h}"function"==typeof HTMLElement&&(B=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,i){this[t]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(t,e){const i=t.$$;null!==i.fragment&&(n(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}(this,1),this.$destroy=t}$on(e,i){if(!r(i))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const t=n.indexOf(i);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}),A.debounce=A;var F=A;function T(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var z,E,N=(z=function(t,e){window,t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e,i){var n,r;n=[i(2)],void 0===(r=function(t){function e(n){if(e.is(n,"function"))return i?n():t.on("raphael.DOMload",n);if(e.is(n,T))return e._engine.create[p](e,n.splice(0,3+e.is(n[0],F))).add(n);var r=Array.prototype.slice.call(arguments,0);if(e.is(r[r.length-1],"function")){var s=r.pop();return i?s.call(e._engine.create[p](e,r)):t.on("raphael.DOMload",(function(){s.call(e._engine.create[p](e,r))}))}return e._engine.create[p](e,arguments)}e.version="2.3.0",e.eve=t;var i,n,r,s,a=/[, ]+/,o={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},l=/\{(\d+)\}/g,h="hasOwnProperty",c={doc:document,win:window},u={was:Object.prototype[h].call(c.win,"Raphael"),is:c.win.Raphael},f=function(){this.ca=this.customAttributes={}},p="apply",d="concat",g="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,m="",x=" ",v=String,y="split",b="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[y](x),w={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},_=v.prototype.toLowerCase,k=Math,S=k.max,M=k.min,C=k.abs,B=k.pow,A=k.PI,F="number",T="array",z=Object.prototype.toString,E=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),N={NaN:1,Infinity:1,"-Infinity":1},L=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,$=k.round,P=parseFloat,V=parseInt,O=v.prototype.toUpperCase,R=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},j=e._availableAnimAttrs={blur:F,"clip-rect":"csv",cx:F,cy:F,fill:"colour","fill-opacity":F,"font-size":F,height:F,opacity:F,path:"path",r:F,rx:F,ry:F,stroke:"colour","stroke-opacity":F,"stroke-width":F,transform:"transform",width:F,x:F,y:F},I=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,D={hs:1,rg:1},Y=/,?([achlmqrstvxz]),?/gi,q=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,W=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,G=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,H=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),X=function(t,e){return P(t)-P(e)},U=function(t){return t},Z=e._rectPath=function(t,e,i,n,r){return r?[["M",t+r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},Q=function(t,e,i,n){return null==n&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},J=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Q(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Q(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)}},K=e.mapPath=function(t,e){if(!e)return t;var i,n,r,s,a,o,l;for(r=0,a=(t=Bt(t)).length;r<a;r++)for(s=1,o=(l=t[r]).length;s<o;s+=2)i=e.x(l[s],l[s+1]),n=e.y(l[s],l[s+1]),l[s]=i,l[s+1]=n;return t};if(e._g=c,e.type=c.win.SVGAngle||c.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var tt,et=c.doc.createElement("div");if(et.innerHTML='<v:shape adj="1"/>',(tt=et.firstChild).style.behavior="url(#default#VML)",!tt||"object"!=typeof tt.adj)return e.type=m;et=null}function it(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[h](i)&&(e[i]=it(t[i]));return e}e.svg=!(e.vml="VML"==e.type),e._Paper=f,e.fn=n=f.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=_.call(e))?!N[h](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||z.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,n,r,s,a){if(null==s){var o=t-n,l=i-r;return o||l?(180+180*k.atan2(-l,-o)/A+360)%360:0}return e.angle(t,i,s,a)-e.angle(n,r,s,a)},e.rad=function(t){return t%360*A/180},e.deg=function(t){return Math.round(180*t/A%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,T)){for(var r=t.length;r--;)if(C(t[r]-i)<=n)return t[r]}else{var s=i%(t=+t);if(s<n)return i-s;if(s>t-n)return i-s+t}return i},e.createUUID=(r=/[xy]/g,s=function(t){var e=16*k.random()|0;return("x"==t?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(r,s).toUpperCase()}),e.setWindow=function(i){t("raphael.setWindow",e,c.win,i),c.win=i,c.doc=c.win.document,e._engine.initWin&&e._engine.initWin(c.win)};var nt=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),i=r.body}catch(t){i=createPopup().document.body}var s=i.createTextRange();nt=ht((function(t){try{i.style.color=v(t).replace(n,m);var e=s.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var a=c.doc.createElement("i");a.title="Raphaël Colour Picker",a.style.display="none",c.doc.body.appendChild(a),nt=ht((function(t){return a.style.color=t,c.doc.defaultView.getComputedStyle(a,m).getPropertyValue("color")}))}return nt(t)},rt=function(){return"hsb("+[this.h,this.s,this.b]+")"},st=function(){return"hsl("+[this.h,this.s,this.l]+")"},at=function(){return this.hex},ot=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,"string")){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},lt=function(t,i,n,r){var s={r:t*=255,g:i*=255,b:n*=255,hex:e.rgb(t,i,n),toString:at};return e.is(r,"finite")&&(s.opacity=r),s};function ht(t,e,i){return function n(){var r=Array.prototype.slice.call(arguments,0),s=r.join("␀"),a=n.cache=n.cache||{},o=n.count=n.count||[];return a[h](s)?(function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}(o,s),i?i(a[s]):a[s]):(o.length>=1e3&&delete a[o.shift()],o.push(s),a[s]=t[p](e,r),i?i(a[s]):a[s])}}function ct(){return this.hex}function ut(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var s=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?s[3]={x:+t[0],y:+t[1]}:r-2==n&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?s[3]=s[2]:n||(s[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return i}e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=at,t},e.hsb2rgb=function(t,e,i,n){var r,s,a,o,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),o=(l=i*e)*(1-C((t=(t*=360)%360/60)%2-1)),r=s=a=i-l,lt(r+=[l,o,0,0,o,l][t=~~t],s+=[o,l,l,o,0,0][t],a+=[0,0,o,l,l,o][t],n)},e.hsl2rgb=function(t,e,i,n){var r,s,a,o,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),o=(l=2*e*(i<.5?i:1-i))*(1-C((t=(t*=360)%360/60)%2-1)),r=s=a=i-l/2,lt(r+=[l,o,0,0,o,l][t=~~t],s+=[o,l,l,o,0,0][t],a+=[0,0,o,l,l,o][t],n)},e.rgb2hsb=function(t,e,i){var n,r;return t=(i=ot(t,e,i))[0],e=i[1],i=i[2],{h:((0==(r=(n=S(t,e,i))-M(t,e,i))?null:n==t?(e-i)/r:n==e?(i-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/n,b:n,toString:rt}},e.rgb2hsl=function(t,e,i){var n,r,s,a;return t=(i=ot(t,e,i))[0],e=i[1],i=i[2],n=((r=S(t,e,i))+(s=M(t,e,i)))/2,{h:((0==(a=r-s)?null:r==t?(e-i)/a:r==e?(i-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:n<.5?a/(2*n):a/(2-2*n),l:n,toString:st}},e._path2string=function(){return this.join(",").replace(Y,"$1")},e._preload=function(t,e){var i=c.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,c.doc.body.removeChild(this)},i.onerror=function(){c.doc.body.removeChild(this)},c.doc.body.appendChild(i),i.src=t},e.getRGB=ht((function(t){if(!t||(t=v(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ct};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:ct};!D[h](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=nt(t));var i,n,r,s,a,o,l=t.match(E);return l?(l[2]&&(r=V(l[2].substring(5),16),n=V(l[2].substring(3,5),16),i=V(l[2].substring(1,3),16)),l[3]&&(r=V((a=l[3].charAt(3))+a,16),n=V((a=l[3].charAt(2))+a,16),i=V((a=l[3].charAt(1))+a,16)),l[4]&&(o=l[4][y](I),i=P(o[0]),"%"==o[0].slice(-1)&&(i*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(s=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(s/=100)),l[5]?(o=l[5][y](I),i=P(o[0]),"%"==o[0].slice(-1)&&(i*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),("deg"==o[0].slice(-3)||"°"==o[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(s=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(s/=100),e.hsb2rgb(i,n,r,s)):l[6]?(o=l[6][y](I),i=P(o[0]),"%"==o[0].slice(-1)&&(i*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),("deg"==o[0].slice(-3)||"°"==o[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(s=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(s/=100),e.hsl2rgb(i,n,r,s)):((l={r:i,g:n,b:r,toString:ct}).hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(s,"finite")&&(l.opacity=s),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ct}}),e),e.hsb=ht((function(t,i,n){return e.hsb2rgb(t,i,n).hex})),e.hsl=ht((function(t,i,n){return e.hsl2rgb(t,i,n).hex})),e.rgb=ht((function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)})),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=ft(t);if(i.arr)return yt(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,T)&&e.is(t[0],T)&&(r=yt(t)),r.length||v(t).replace(q,(function(t,e,i){var s=[],a=e.toLowerCase();if(i.replace(G,(function(t,e){e&&s.push(+e)})),"m"==a&&s.length>2&&(r.push([e][d](s.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][d](s));else for(;s.length>=n[a]&&(r.push([e][d](s.splice(0,n[a]))),n[a]););})),r.toString=e._path2string,i.arr=yt(r),r},e.parseTransformString=ht((function(t){if(!t)return null;var i=[];return e.is(t,T)&&e.is(t[0],T)&&(i=yt(t)),i.length||v(t).replace(W,(function(t,e,n){var r=[];_.call(e),n.replace(G,(function(t,e){e&&r.push(+e)})),i.push([e][d](r))})),i.toString=e._path2string,i}),this,(function(t){if(!t)return t;for(var e=[],i=0;i<t.length;i++){for(var n=[],r=0;r<t[i].length;r++)n.push(t[i][r]);e.push(n)}return e}));var ft=function(t){var e=ft.ps=ft.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var i in e)e[h](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])})),e[t]};function pt(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i}function dt(t,e,i,n,r,s,a,o,l){null==l&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=h*c[p]+h,g=pt(d,t,i,r,a),m=pt(d,e,n,s,o),x=g*g+m*m;f+=u[p]*k.sqrt(x)}return h*f}function gt(t,e,i,n,r,s,a,o){if(!(S(t,i)<M(r,a)||M(t,i)>S(r,a)||S(e,n)<M(s,o)||M(e,n)>S(s,o))){var l=(t-i)*(s-o)-(e-n)*(r-a);if(l){var h=((t*n-e*i)*(r-a)-(t-i)*(r*o-s*a))/l,c=((t*n-e*i)*(s-o)-(e-n)*(r*o-s*a))/l,u=+h.toFixed(2),f=+c.toFixed(2);if(!(u<+M(t,i).toFixed(2)||u>+S(t,i).toFixed(2)||u<+M(r,a).toFixed(2)||u>+S(r,a).toFixed(2)||f<+M(e,n).toFixed(2)||f>+S(e,n).toFixed(2)||f<+M(s,o).toFixed(2)||f>+S(s,o).toFixed(2)))return{x:h,y:c}}}}function mt(t,i,n){var r=e.bezierBBox(t),s=e.bezierBBox(i);if(!e.isBBoxIntersect(r,s))return n?0:[];for(var a=dt.apply(0,t),o=dt.apply(0,i),l=S(~~(a/5),1),h=S(~~(o/5),1),c=[],u=[],f={},p=n?0:[],d=0;d<l+1;d++){var g=e.findDotsAtSegment.apply(e,t.concat(d/l));c.push({x:g.x,y:g.y,t:d/l})}for(d=0;d<h+1;d++)g=e.findDotsAtSegment.apply(e,i.concat(d/h)),u.push({x:g.x,y:g.y,t:d/h});for(d=0;d<l;d++)for(var m=0;m<h;m++){var x=c[d],v=c[d+1],y=u[m],b=u[m+1],w=C(v.x-x.x)<.001?"y":"x",_=C(b.x-y.x)<.001?"y":"x",k=gt(x.x,x.y,v.x,v.y,y.x,y.y,b.x,b.y);if(k){if(f[k.x.toFixed(4)]==k.y.toFixed(4))continue;f[k.x.toFixed(4)]=k.y.toFixed(4);var B=x.t+C((k[w]-x[w])/(v[w]-x[w]))*(v.t-x.t),A=y.t+C((k[_]-y[_])/(b[_]-y[_]))*(b.t-y.t);B>=0&&B<=1.001&&A>=0&&A<=1.001&&(n?p++:p.push({x:k.x,y:k.y,t1:M(B,1),t2:M(A,1)}))}}return p}function xt(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,s,a,o,l,h,c,u,f,p,d=n?0:[],g=0,m=t.length;g<m;g++){var x=t[g];if("M"==x[0])r=l=x[1],s=h=x[2];else{"C"==x[0]?(f=[r,s].concat(x.slice(1)),r=f[6],s=f[7]):(f=[r,s,r,s,l,h,l,h],r=l,s=h);for(var v=0,y=i.length;v<y;v++){var b=i[v];if("M"==b[0])a=c=b[1],o=u=b[2];else{"C"==b[0]?(p=[a,o].concat(b.slice(1)),a=p[6],o=p[7]):(p=[a,o,a,o,c,u,c,u],a=c,o=u);var w=mt(f,p,n);if(n)d+=w;else{for(var _=0,k=w.length;_<k;_++)w[_].segment1=g,w[_].segment2=v,w[_].bez1=f,w[_].bez2=p;d=d.concat(w)}}}}}return d}e.findDotsAtSegment=function(t,e,i,n,r,s,a,o,l){var h=1-l,c=B(h,3),u=B(h,2),f=l*l,p=f*l,d=c*t+3*u*l*i+3*h*l*l*r+p*a,g=c*e+3*u*l*n+3*h*l*l*s+p*o,m=t+2*l*(i-t)+f*(r-2*i+t),x=e+2*l*(n-e)+f*(s-2*n+e),v=i+2*l*(r-i)+f*(a-2*r+i),y=n+2*l*(s-n)+f*(o-2*s+n),b=h*t+l*i,w=h*e+l*n,_=h*r+l*a,S=h*s+l*o,M=90-180*k.atan2(m-v,x-y)/A;return(m>v||x<y)&&(M+=180),{x:d,y:g,m:{x:m,y:x},n:{x:v,y:y},start:{x:b,y:w},end:{x:_,y:S},alpha:M}},e.bezierBBox=function(t,i,n,r,s,a,o,l){e.is(t,"array")||(t=[t,i,n,r,s,a,o,l]);var h=Ct.apply(null,t);return{x:h.min.x,y:h.min.y,x2:h.max.x,y2:h.max.y,width:h.max.x-h.min.x,height:h.max.y-h.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.x<i.x2&&t.x>i.x||i.x<t.x2&&i.x>t.x)&&(t.y<i.y2&&t.y>i.y||i.y<t.y2&&i.y>t.y)},e.pathIntersection=function(t,e){return xt(t,e)},e.pathIntersectionNumber=function(t,e){return xt(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&xt(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var vt=e.pathBBox=function(t){var e=ft(t);if(e.bbox)return it(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,r=0,s=[],a=[],o=0,l=(t=Bt(t)).length;o<l;o++)if("M"==(i=t[o])[0])n=i[1],r=i[2],s.push(n),a.push(r);else{var h=Ct(n,r,i[1],i[2],i[3],i[4],i[5],i[6]);s=s[d](h.min.x,h.max.x),a=a[d](h.min.y,h.max.y),n=i[5],r=i[6]}var c=M[p](0,s),u=M[p](0,a),f=S[p](0,s),g=S[p](0,a),m=f-c,x=g-u,v={x:c,y:u,x2:f,y2:g,width:m,height:x,cx:c+m/2,cy:u+x/2};return e.bbox=it(v),v},yt=function(t){var i=it(t);return i.toString=e._path2string,i},bt=e._pathToRelative=function(t){var i=ft(t);if(i.rel)return yt(i.rel);e.is(t,T)&&e.is(t&&t[0],T)||(t=e.parsePathString(t));var n=[],r=0,s=0,a=0,o=0,l=0;"M"==t[0][0]&&(a=r=t[0][1],o=s=t[0][2],l++,n.push(["M",r,s]));for(var h=l,c=t.length;h<c;h++){var u=n[h]=[],f=t[h];if(f[0]!=_.call(f[0]))switch(u[0]=_.call(f[0]),u[0]){case"a":u[1]=f[1],u[2]=f[2],u[3]=f[3],u[4]=f[4],u[5]=f[5],u[6]=+(f[6]-r).toFixed(3),u[7]=+(f[7]-s).toFixed(3);break;case"v":u[1]=+(f[1]-s).toFixed(3);break;case"m":a=f[1],o=f[2];default:for(var p=1,d=f.length;p<d;p++)u[p]=+(f[p]-(p%2?r:s)).toFixed(3)}else{u=n[h]=[],"m"==f[0]&&(a=f[1]+r,o=f[2]+s);for(var g=0,m=f.length;g<m;g++)n[h][g]=f[g]}var x=n[h].length;switch(n[h][0]){case"z":r=a,s=o;break;case"h":r+=+n[h][x-1];break;case"v":s+=+n[h][x-1];break;default:r+=+n[h][x-2],s+=+n[h][x-1]}}return n.toString=e._path2string,i.rel=yt(n),n},wt=e._pathToAbsolute=function(t){var i=ft(t);if(i.abs)return yt(i.abs);if(e.is(t,T)&&e.is(t&&t[0],T)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],r=0,s=0,a=0,o=0,l=0;"M"==t[0][0]&&(a=r=+t[0][1],o=s=+t[0][2],l++,n[0]=["M",r,s]);for(var h,c,u=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),f=l,p=t.length;f<p;f++){if(n.push(h=[]),(c=t[f])[0]!=O.call(c[0]))switch(h[0]=O.call(c[0]),h[0]){case"A":h[1]=c[1],h[2]=c[2],h[3]=c[3],h[4]=c[4],h[5]=c[5],h[6]=+(c[6]+r),h[7]=+(c[7]+s);break;case"V":h[1]=+c[1]+s;break;case"H":h[1]=+c[1]+r;break;case"R":for(var g=[r,s][d](c.slice(1)),m=2,x=g.length;m<x;m++)g[m]=+g[m]+r,g[++m]=+g[m]+s;n.pop(),n=n[d](ut(g,u));break;case"M":a=+c[1]+r,o=+c[2]+s;default:for(m=1,x=c.length;m<x;m++)h[m]=+c[m]+(m%2?r:s)}else if("R"==c[0])g=[r,s][d](c.slice(1)),n.pop(),n=n[d](ut(g,u)),h=["R"][d](c.slice(-2));else for(var v=0,y=c.length;v<y;v++)h[v]=c[v];switch(h[0]){case"Z":r=a,s=o;break;case"H":r=h[1];break;case"V":s=h[1];break;case"M":a=h[h.length-2],o=h[h.length-1];default:r=h[h.length-2],s=h[h.length-1]}}return n.toString=e._path2string,i.abs=yt(n),n},_t=function(t,e,i,n){return[t,e,i,n,i,n]},kt=function(t,e,i,n,r,s){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*r+2/3*i,1/3*s+2/3*n,r,s]},St=function(t,e,i,n,r,s,a,o,l,h){var c,u=120*A/180,f=A/180*(+r||0),p=[],g=ht((function(t,e,i){return{x:t*k.cos(i)-e*k.sin(i),y:t*k.sin(i)+e*k.cos(i)}}));if(h)B=h[0],F=h[1],S=h[2],M=h[3];else{t=(c=g(t,e,-f)).x,e=c.y;var m=(t-(o=(c=g(o,l,-f)).x))/2,x=(e-(l=c.y))/2,v=m*m/(i*i)+x*x/(n*n);v>1&&(i*=v=k.sqrt(v),n*=v);var b=i*i,w=n*n,_=(s==a?-1:1)*k.sqrt(C((b*w-b*x*x-w*m*m)/(b*x*x+w*m*m))),S=_*i*x/n+(t+o)/2,M=_*-n*m/i+(e+l)/2,B=k.asin(((e-M)/n).toFixed(9)),F=k.asin(((l-M)/n).toFixed(9));(B=t<S?A-B:B)<0&&(B=2*A+B),(F=o<S?A-F:F)<0&&(F=2*A+F),a&&B>F&&(B-=2*A),!a&&F>B&&(F-=2*A)}var T=F-B;if(C(T)>u){var z=F,E=o,N=l;F=B+u*(a&&F>B?1:-1),o=S+i*k.cos(F),l=M+n*k.sin(F),p=St(o,l,i,n,r,0,a,E,N,[F,z,S,M])}T=F-B;var L=k.cos(B),$=k.sin(B),P=k.cos(F),V=k.sin(F),O=k.tan(T/4),R=4/3*i*O,j=4/3*n*O,I=[t,e],D=[t+R*$,e-j*L],Y=[o+R*V,l-j*P],q=[o,l];if(D[0]=2*I[0]-D[0],D[1]=2*I[1]-D[1],h)return[D,Y,q][d](p);for(var W=[],G=0,H=(p=[D,Y,q][d](p).join()[y](",")).length;G<H;G++)W[G]=G%2?g(p[G-1],p[G],f).y:g(p[G],p[G+1],f).x;return W},Mt=function(t,e,i,n,r,s,a,o,l){var h=1-l;return{x:B(h,3)*t+3*B(h,2)*l*i+3*h*l*l*r+B(l,3)*a,y:B(h,3)*e+3*B(h,2)*l*n+3*h*l*l*s+B(l,3)*o}},Ct=ht((function(t,e,i,n,r,s,a,o){var l,h=r-2*i+t-(a-2*r+i),c=2*(i-t)-2*(r-i),u=t-i,f=(-c+k.sqrt(c*c-4*h*u))/2/h,d=(-c-k.sqrt(c*c-4*h*u))/2/h,g=[e,o],m=[t,a];return C(f)>"1e12"&&(f=.5),C(d)>"1e12"&&(d=.5),f>0&&f<1&&(l=Mt(t,e,i,n,r,s,a,o,f),m.push(l.x),g.push(l.y)),d>0&&d<1&&(l=Mt(t,e,i,n,r,s,a,o,d),m.push(l.x),g.push(l.y)),h=s-2*n+e-(o-2*s+n),u=e-n,f=(-(c=2*(n-e)-2*(s-n))+k.sqrt(c*c-4*h*u))/2/h,d=(-c-k.sqrt(c*c-4*h*u))/2/h,C(f)>"1e12"&&(f=.5),C(d)>"1e12"&&(d=.5),f>0&&f<1&&(l=Mt(t,e,i,n,r,s,a,o,f),m.push(l.x),g.push(l.y)),d>0&&d<1&&(l=Mt(t,e,i,n,r,s,a,o,d),m.push(l.x),g.push(l.y)),{min:{x:M[p](0,m),y:M[p](0,g)},max:{x:S[p](0,m),y:S[p](0,g)}}})),Bt=e._path2curve=ht((function(t,e){var i=!e&&ft(t);if(!e&&i.curve)return yt(i.curve);for(var n=wt(t),r=e&&wt(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(t,e,i){var n,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][d](St[p](0,[e.x,e.y][d](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][d](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][d](kt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][d](kt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][d](_t(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][d](_t(e.x,e.y,t[1],e.y));break;case"V":t=["C"][d](_t(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][d](_t(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",r&&(u[e]="A"),t.splice(e++,0,["C"][d](i.splice(0,6)));t.splice(e,1),x=S(n.length,r&&r.length||0)}},h=function(t,e,i,s,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",s.x,s.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],x=S(n.length,r&&r.length||0))},c=[],u=[],f="",g="",m=0,x=S(n.length,r&&r.length||0);m<x;m++){n[m]&&(f=n[m][0]),"C"!=f&&(c[m]=f,m&&(g=c[m-1])),n[m]=o(n[m],s,g),"A"!=c[m]&&"C"==f&&(c[m]="C"),l(n,m),r&&(r[m]&&(f=r[m][0]),"C"!=f&&(u[m]=f,m&&(g=u[m-1])),r[m]=o(r[m],a,g),"A"!=u[m]&&"C"==f&&(u[m]="C"),l(r,m)),h(n,r,s,a,m),h(r,n,a,s,m);var v=n[m],y=r&&r[m],b=v.length,w=r&&y.length;s.x=v[b-2],s.y=v[b-1],s.bx=P(v[b-4])||s.x,s.by=P(v[b-3])||s.y,a.bx=r&&(P(y[w-4])||a.x),a.by=r&&(P(y[w-3])||a.y),a.x=r&&y[w-2],a.y=r&&y[w-1]}return r||(i.curve=yt(n)),r?[n,r]:n}),null,yt),At=(e._parseDots=ht((function(t){for(var i=[],n=0,r=t.length;n<r;n++){var s={},a=t[n].match(/^([^:]*):?([\d\.]*)/);if(s.color=e.getRGB(a[1]),s.color.error)return null;s.opacity=s.color.opacity,s.color=s.color.hex,a[2]&&(s.offset=a[2]+"%"),i.push(s)}for(n=1,r=i.length-1;n<r;n++)if(!i[n].offset){for(var o=P(i[n-1].offset||0),l=0,h=n+1;h<r;h++)if(i[h].offset){l=i[h].offset;break}l||(l=100,h=r);for(var c=((l=P(l))-o)/(h-n+1);n<h;n++)o+=c,i[n].offset=o+"%"}return i})),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Ft=(e._tofront=function(t,e){e.top!==t&&(At(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(At(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,i){At(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,i){At(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var i=vt(t),n={_:{transform:m},getBBox:function(){return i}};return Tt(n,e),n.matrix}),Tt=(e.transformPath=function(t,e){return K(t,Ft(t,e))},e._extractTransform=function(t,i){if(null==i)return t._.transform;i=v(i).replace(/\.{3}|\u2026/g,t._.transform||m);var n,r,s=e.parseTransformString(i),a=0,o=1,l=1,h=t._,c=new Nt;if(h.transform=s||[],s)for(var u=0,f=s.length;u<f;u++){var p,d,g,x,y,b=s[u],w=b.length,_=v(b[0]).toLowerCase(),k=b[0]!=_,S=k?c.invert():0;"t"==_&&3==w?k?(p=S.x(0,0),d=S.y(0,0),g=S.x(b[1],b[2]),x=S.y(b[1],b[2]),c.translate(g-p,x-d)):c.translate(b[1],b[2]):"r"==_?2==w?(y=y||t.getBBox(1),c.rotate(b[1],y.x+y.width/2,y.y+y.height/2),a+=b[1]):4==w&&(k?(g=S.x(b[2],b[3]),x=S.y(b[2],b[3]),c.rotate(b[1],g,x)):c.rotate(b[1],b[2],b[3]),a+=b[1]):"s"==_?2==w||3==w?(y=y||t.getBBox(1),c.scale(b[1],b[w-1],y.x+y.width/2,y.y+y.height/2),o*=b[1],l*=b[w-1]):5==w&&(k?(g=S.x(b[3],b[4]),x=S.y(b[3],b[4]),c.scale(b[1],b[2],g,x)):c.scale(b[1],b[2],b[3],b[4]),o*=b[1],l*=b[2]):"m"==_&&7==w&&c.add(b[1],b[2],b[3],b[4],b[5],b[6]),h.dirtyT=1,t.matrix=c}t.matrix=c,h.sx=o,h.sy=l,h.deg=a,h.dx=n=c.e,h.dy=r=c.f,1==o&&1==l&&!a&&h.bbox?(h.bbox.x+=+n,h.bbox.y+=+r):h.dirtyT=1}),zt=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Et=e._equaliseTransform=function(t,i){i=v(i).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],i=e.parseTransformString(i)||[];for(var n,r,s,a,o=S(t.length,i.length),l=[],h=[],c=0;c<o;c++){if(s=t[c]||zt(i[c]),a=i[c]||zt(s),s[0]!=a[0]||"r"==s[0].toLowerCase()&&(s[2]!=a[2]||s[3]!=a[3])||"s"==s[0].toLowerCase()&&(s[3]!=a[3]||s[4]!=a[4]))return;for(l[c]=[],h[c]=[],n=0,r=S(s.length,a.length);n<r;n++)n in s&&(l[c][n]=s[n]),n in a&&(h[c][n]=a[n])}return{from:l,to:h}};function Nt(t,e,i,n,r,s){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+s):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}e._getContainer=function(t,i,n,r){var s;if(null!=(s=null!=r||e.is(t,"object")?t:c.doc.getElementById(t)))return s.tagName?null==i?{container:s,width:s.style.pixelWidth||s.offsetWidth,height:s.style.pixelHeight||s.offsetHeight}:{container:s,width:i,height:n}:{container:1,x:t,y:i,width:n,height:r}},e.pathToRelative=bt,e._engine={},e.path2curve=Bt,e.matrix=function(t,e,i,n,r,s){return new Nt(t,e,i,n,r,s)},function(t){function i(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var e=k.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,i,n,r,s){var a,o,l,h,c=[[],[],[]],u=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[t,i,r],[e,n,s],[0,0,1]];for(t&&t instanceof Nt&&(f=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;a<3;a++)for(o=0;o<3;o++){for(h=0,l=0;l<3;l++)h+=u[a][l]*f[l][o];c[a][o]=h}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new Nt(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new Nt(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},t.rotate=function(t,i,n){t=e.rad(t),i=i||0,n=n||0;var r=+k.cos(t).toFixed(9),s=+k.sin(t).toFixed(9);this.add(r,s,-s,r,i,n),this.add(1,0,0,1,-i,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[v.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=k.sqrt(i(r[0])),n(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=k.sqrt(i(r[1])),n(r[1]),t.shear/=t.scaley;var s=-r[0][1],a=r[1][1];return a<0?(t.rotate=e.deg(k.acos(a)),s<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(k.asin(s)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[y]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:m)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:m)+(e.rotate?"r"+[e.rotate,0,0]:m)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Nt.prototype);for(var Lt=function(){this.returnValue=!1},$t=function(){return this.originalEvent.preventDefault()},Pt=function(){this.cancelBubble=!0},Vt=function(){return this.originalEvent.stopPropagation()},Ot=function(t){var e=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,i=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Rt=c.doc.addEventListener?function(t,e,i,n){var r=function(t){var e=Ot(t);return i.call(n,t,e.x,e.y)};if(t.addEventListener(e,r,!1),g&&w[e]){var s=function(e){for(var r=Ot(e),s=e,a=0,o=e.targetTouches&&e.targetTouches.length;a<o;a++)if(e.targetTouches[a].target==t){(e=e.targetTouches[a]).originalEvent=s,e.preventDefault=$t,e.stopPropagation=Vt;break}return i.call(n,e,r.x,r.y)};t.addEventListener(w[e],s,!1)}return function(){return t.removeEventListener(e,r,!1),g&&w[e]&&t.removeEventListener(w[e],s,!1),!0}}:c.doc.attachEvent?function(t,e,i,n){var r=function(t){t=t||c.win.event;var e=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,r=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,s=t.clientX+r,a=t.clientY+e;return t.preventDefault=t.preventDefault||Lt,t.stopPropagation=t.stopPropagation||Pt,i.call(n,t,s,a)};return t.attachEvent("on"+e,r),function(){return t.detachEvent("on"+e,r),!0}}:void 0,jt=[],It=function(e){for(var i,n=e.clientX,r=e.clientY,s=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,a=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,o=jt.length;o--;){if(i=jt[o],g&&e.touches){for(var l,h=e.touches.length;h--;)if((l=e.touches[h]).identifier==i.el._drag.id){n=l.clientX,r=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var u,f=i.el.node,p=f.nextSibling,d=f.parentNode,m=f.style.display;c.win.opera&&d.removeChild(f),f.style.display="none",u=i.el.paper.getElementByPoint(n,r),f.style.display=m,c.win.opera&&(p?d.insertBefore(f,p):d.appendChild(f)),u&&t("raphael.drag.over."+i.el.id,i.el,u),n+=a,r+=s,t("raphael.drag.move."+i.el.id,i.move_scope||i.el,n-i.el._drag.x,r-i.el._drag.y,n,r,e)}},Dt=function(i){e.unmousemove(It).unmouseup(Dt);for(var n,r=jt.length;r--;)(n=jt[r]).el._drag={},t("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,i);jt=[]},Yt=e.el={},qt=b.length;qt--;)!function(t){e[t]=Yt[t]=function(i,n){return e.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:Rt(this.shape||this.node||c.doc,t,i,n||this)})),this},e["un"+t]=Yt["un"+t]=function(i){for(var n=this.events||[],r=n.length;r--;)n[r].name!=t||!e.is(i,"undefined")&&n[r].f!=i||(n[r].unbind(),n.splice(r,1),!n.length&&delete this.events);return this}}(b[qt]);Yt.data=function(i,n){var r=H[this.id]=H[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(e.is(i,"object")){for(var s in i)i[h](s)&&this.data(s,i[s]);return this}return t("raphael.data.get."+this.id,this,r[i],i),r[i]}return r[i]=n,t("raphael.data.set."+this.id,this,n,i),this},Yt.removeData=function(t){return null==t?delete H[this.id]:H[this.id]&&delete H[this.id][t],this},Yt.getData=function(){return it(H[this.id]||{})},Yt.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},Yt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Wt=[];function Gt(){return this.x+x+this.y+x+this.width+" × "+this.height}Yt.drag=function(i,n,r,s,a,o){function l(l){(l.originalEvent||l).preventDefault();var h=l.clientX,u=l.clientY,f=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,p=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;if(this._drag.id=l.identifier,g&&l.touches)for(var d,m=l.touches.length;m--;)if(d=l.touches[m],this._drag.id=d.identifier,d.identifier==this._drag.id){h=d.clientX,u=d.clientY;break}this._drag.x=h+p,this._drag.y=u+f,!jt.length&&e.mousemove(It).mouseup(Dt),jt.push({el:this,move_scope:s,start_scope:a,end_scope:o}),n&&t.on("raphael.drag.start."+this.id,n),i&&t.on("raphael.drag.move."+this.id,i),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,a||s||this,this._drag.x,this._drag.y,l)}return this._drag={},Wt.push({el:this,start:l}),this.mousedown(l),this},Yt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},Yt.undrag=function(){for(var i=Wt.length;i--;)Wt[i].el==this&&(this.unmousedown(Wt[i].start),Wt.splice(i,1),t.unbind("raphael.drag.*."+this.id));!Wt.length&&e.unmousemove(It).unmouseup(Dt),jt=[]},n.circle=function(t,i,n){var r=e._engine.circle(this,t||0,i||0,n||0);return this.__set__&&this.__set__.push(r),r},n.rect=function(t,i,n,r,s){var a=e._engine.rect(this,t||0,i||0,n||0,r||0,s||0);return this.__set__&&this.__set__.push(a),a},n.ellipse=function(t,i,n,r){var s=e._engine.ellipse(this,t||0,i||0,n||0,r||0);return this.__set__&&this.__set__.push(s),s},n.path=function(t){t&&!e.is(t,"string")&&!e.is(t[0],T)&&(t+=m);var i=e._engine.path(e.format[p](e,arguments),this);return this.__set__&&this.__set__.push(i),i},n.image=function(t,i,n,r,s){var a=e._engine.image(this,t||"about:blank",i||0,n||0,r||0,s||0);return this.__set__&&this.__set__.push(a),a},n.text=function(t,i,n){var r=e._engine.text(this,t||0,i||0,v(n));return this.__set__&&this.__set__.push(r),r},n.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var i=new ue(t);return this.__set__&&this.__set__.push(i),i.paper=this,i.type="set",i},n.setStart=function(t){this.__set__=t||this.set()},n.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},n.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},n.setSize=function(t,i){return e._engine.setSize.call(this,t,i)},n.setViewBox=function(t,i,n,r,s){return e._engine.setViewBox.call(this,t,i,n,r,s)},n.top=n.bottom=null,n.raphael=e,n.getElementByPoint=function(t,e){var i,n,r,s,a,o,l,h=this.canvas,u=c.doc.elementFromPoint(t,e);if(c.win.opera&&"svg"==u.tagName){var f=(n=(i=h).getBoundingClientRect(),s=(r=i.ownerDocument).body,o=(a=r.documentElement).clientTop||s.clientTop||0,l=a.clientLeft||s.clientLeft||0,{y:n.top+(c.win.pageYOffset||a.scrollTop||s.scrollTop)-o,x:n.left+(c.win.pageXOffset||a.scrollLeft||s.scrollLeft)-l}),p=h.createSVGRect();p.x=t-f.x,p.y=e-f.y,p.width=p.height=1;var d=h.getIntersectionList(p,null);d.length&&(u=d[d.length-1])}if(!u)return null;for(;u.parentNode&&u!=h.parentNode&&!u.raphael;)u=u.parentNode;return u==this.canvas.parentNode&&(u=h),u&&u.raphael?this.getById(u.raphaelid):null},n.getElementsByBBox=function(t){var i=this.set();return this.forEach((function(n){e.isBBoxIntersect(n.getBBox(),t)&&i.push(n)})),i},n.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},n.forEach=function(t,e){for(var i=this.bottom;i;){if(!1===t.call(e,i))return this;i=i.next}return this},n.getElementsByPoint=function(t,e){var i=this.set();return this.forEach((function(n){n.isPointInside(t,e)&&i.push(n)})),i},Yt.isPointInside=function(t,i){var n=this.realPath=J[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=e.transformPath(n,this.attr("transform"))),e.isPointInsidePath(n,t,i)},Yt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=J[this.type](this),e.bboxwt=vt(this.realPath),e.bboxwt.toString=Gt,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=J[this.type](this)),e.bbox=vt(K(this.realPath,this.matrix)),e.bbox.toString=Gt,e.dirty=e.dirtyT=0),e.bbox)},Yt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Yt.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,r=n.set(),s=this.realPath||J[this.type](this);s=this.matrix?K(s,this.matrix):s;for(var a=1;a<i+1;a++)r.push(n.path(s).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*a).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var Ht=function(t,i,n,r,s,a,o,l,h){return null==h?dt(t,i,n,r,s,a,o,l):e.findDotsAtSegment(t,i,n,r,s,a,o,l,function(t,e,i,n,r,s,a,o,l){if(!(l<0||dt(t,e,i,n,r,s,a,o)<l)){var h,c=.5,u=1-c;for(h=dt(t,e,i,n,r,s,a,o,u);C(h-l)>.01;)h=dt(t,e,i,n,r,s,a,o,u+=(h<l?1:-1)*(c/=2));return u}}(t,i,n,r,s,a,o,l,h))},Xt=function(t,i){return function(n,r,s){for(var a,o,l,h,c,u="",f={},p=0,d=0,g=(n=Bt(n)).length;d<g;d++){if("M"==(l=n[d])[0])a=+l[1],o=+l[2];else{if(p+(h=Ht(a,o,l[1],l[2],l[3],l[4],l[5],l[6]))>r){if(i&&!f.start){if(u+=["C"+(c=Ht(a,o,l[1],l[2],l[3],l[4],l[5],l[6],r-p)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],s)return u;f.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),p+=h,a=+l[5],o=+l[6];continue}if(!t&&!i)return{x:(c=Ht(a,o,l[1],l[2],l[3],l[4],l[5],l[6],r-p)).x,y:c.y,alpha:c.alpha}}p+=h,a=+l[5],o=+l[6]}u+=l.shift()+l}return f.end=u,(c=t?p:i?f:e.findDotsAtSegment(a,o,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},Ut=Xt(1),Zt=Xt(),Qt=Xt(0,1);e.getTotalLength=Ut,e.getPointAtLength=Zt,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return Qt(t,e).end;var n=Qt(t,i,1);return e?Qt(n,e).end:n},Yt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Ut(t)},Yt.getPointAtLength=function(t){var e=this.getPath();if(e)return Zt(e,t)},Yt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},Yt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var Jt=e.easing_formulas={linear:function(t){return t},"<":function(t){return B(t,1.7)},">":function(t){return B(t,.48)},"<>":function(t){var e=.48-t/1.04,i=k.sqrt(.1734+e*e),n=i-e,r=-i-e,s=B(C(n),1/3)*(n<0?-1:1)+B(C(r),1/3)*(r<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:B(2,-10*t)*k.sin(2*A*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};Jt.easeIn=Jt["ease-in"]=Jt["<"],Jt.easeOut=Jt["ease-out"]=Jt[">"],Jt.easeInOut=Jt["ease-in-out"]=Jt["<>"],Jt["back-in"]=Jt.backIn,Jt["back-out"]=Jt.backOut;var Kt=[],te=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ee=function(){for(var i=+new Date,n=0;n<Kt.length;n++){var r=Kt[n];if(!r.el.removed&&!r.paused){var s,a,o=i-r.start,l=r.ms,c=r.easing,u=r.from,f=r.diff,p=r.to,g=(r.t,r.el),m={},v={};if(r.initstatus?(o=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*l,r.status=r.initstatus,delete r.initstatus,r.stop&&Kt.splice(n--,1)):r.status=(r.prev+(r.percent-r.prev)*(o/l))/r.anim.top,!(o<0))if(o<l){var y=c(o/l);for(var b in u)if(u[h](b)){switch(j[b]){case F:s=+u[b]+y*l*f[b];break;case"colour":s="rgb("+[ie($(u[b].r+y*l*f[b].r)),ie($(u[b].g+y*l*f[b].g)),ie($(u[b].b+y*l*f[b].b))].join(",")+")";break;case"path":s=[];for(var w=0,_=u[b].length;w<_;w++){s[w]=[u[b][w][0]];for(var k=1,S=u[b][w].length;k<S;k++)s[w][k]=+u[b][w][k]+y*l*f[b][w][k];s[w]=s[w].join(x)}s=s.join(x);break;case"transform":if(f[b].real)for(s=[],w=0,_=u[b].length;w<_;w++)for(s[w]=[u[b][w][0]],k=1,S=u[b][w].length;k<S;k++)s[w][k]=u[b][w][k]+y*l*f[b][w][k];else{var M=function(t){return+u[b][t]+y*l*f[b][t]};s=[["m",M(0),M(1),M(2),M(3),M(4),M(5)]]}break;case"csv":if("clip-rect"==b)for(s=[],w=4;w--;)s[w]=+u[b][w]+y*l*f[b][w];break;default:var C=[][d](u[b]);for(s=[],w=g.paper.customAttributes[b].length;w--;)s[w]=+C[w]+y*l*f[b][w]}m[b]=s}g.attr(m),function(e,i,n){setTimeout((function(){t("raphael.anim.frame."+e,i,n)}))}(g.id,g,r.anim)}else{if(function(i,n,r){setTimeout((function(){t("raphael.anim.frame."+n.id,n,r),t("raphael.anim.finish."+n.id,n,r),e.is(i,"function")&&i.call(n)}))}(r.callback,g,r.anim),g.attr(p),Kt.splice(n--,1),r.repeat>1&&!r.next){for(a in p)p[h](a)&&(v[a]=r.totalOrigin[a]);r.el.attr(v),se(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&se(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}Kt.length&&te(ee)},ie=function(t){return t>255?255:t<0?0:t};function ne(t,e,i,n,r,s){var a=3*e,o=3*(n-e)-a,l=1-a-o,h=3*i,c=3*(r-i)-h,u=1-h-c;function f(t){return((l*t+o)*t+a)*t}return function(t,e){var i=function(t,e){var i,n,r,s,h,c;for(r=t,c=0;c<8;c++){if(s=f(r)-t,C(s)<e)return r;if(C(h=(3*l*r+2*o)*r+a)<1e-6)break;r-=s/h}if((r=t)<(i=0))return i;if(r>(n=1))return n;for(;i<n;){if(s=f(r),C(s-t)<e)return r;t>s?i=r:n=r,r=(n-i)/2+i}return r}(t,e);return((u*i+c)*i+h)*i}(t,1/(200*s))}function re(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[h](r)&&(n[P(r)]=t[r],i.push(P(r)));i.sort(X)}this.anim=n,this.top=i[i.length-1],this.percents=i}function se(i,n,r,s,o,l){r=P(r);var c,u,f,p,g,m,x=i.ms,b={},w={},_={};if(s)for(S=0,M=Kt.length;S<M;S++){var k=Kt[S];if(k.el.id==n.id&&k.anim==i){k.percent!=r?(Kt.splice(S,1),f=1):u=k,n.attr(k.totalOrigin);break}}else s=+w;for(var S=0,M=i.percents.length;S<M;S++){if(i.percents[S]==r||i.percents[S]>s*i.top){r=i.percents[S],g=i.percents[S-1]||0,x=x/i.top*(r-g),p=i.percents[S+1],c=i.anim[r];break}s&&n.attr(i.anim[i.percents[S]])}if(c){if(u)u.initstatus=s,u.start=new Date-u.ms*s;else{for(var C in c)if(c[h](C)&&(j[h](C)||n.paper.customAttributes[h](C)))switch(b[C]=n.attr(C),null==b[C]&&(b[C]=R[C]),w[C]=c[C],j[C]){case F:_[C]=(w[C]-b[C])/x;break;case"colour":b[C]=e.getRGB(b[C]);var B=e.getRGB(w[C]);_[C]={r:(B.r-b[C].r)/x,g:(B.g-b[C].g)/x,b:(B.b-b[C].b)/x};break;case"path":var A=Bt(b[C],w[C]),T=A[1];for(b[C]=A[0],_[C]=[],S=0,M=b[C].length;S<M;S++){_[C][S]=[0];for(var z=1,E=b[C][S].length;z<E;z++)_[C][S][z]=(T[S][z]-b[C][S][z])/x}break;case"transform":var N=n._,$=Et(N[C],w[C]);if($)for(b[C]=$.from,w[C]=$.to,_[C]=[],_[C].real=!0,S=0,M=b[C].length;S<M;S++)for(_[C][S]=[b[C][S][0]],z=1,E=b[C][S].length;z<E;z++)_[C][S][z]=(w[C][S][z]-b[C][S][z])/x;else{var V=n.matrix||new Nt,O={_:{transform:N.transform},getBBox:function(){return n.getBBox(1)}};b[C]=[V.a,V.b,V.c,V.d,V.e,V.f],Tt(O,w[C]),w[C]=O._.transform,_[C]=[(O.matrix.a-V.a)/x,(O.matrix.b-V.b)/x,(O.matrix.c-V.c)/x,(O.matrix.d-V.d)/x,(O.matrix.e-V.e)/x,(O.matrix.f-V.f)/x]}break;case"csv":var I=v(c[C])[y](a),D=v(b[C])[y](a);if("clip-rect"==C)for(b[C]=D,_[C]=[],S=D.length;S--;)_[C][S]=(I[S]-b[C][S])/x;w[C]=I;break;default:for(I=[][d](c[C]),D=[][d](b[C]),_[C]=[],S=n.paper.customAttributes[C].length;S--;)_[C][S]=((I[S]||0)-(D[S]||0))/x}var Y=c.easing,q=e.easing_formulas[Y];if(!q)if((q=v(Y).match(L))&&5==q.length){var W=q;q=function(t){return ne(t,+W[1],+W[2],+W[3],+W[4],x)}}else q=U;if(k={anim:i,percent:r,timestamp:m=c.start||i.start||+new Date,start:m+(i.del||0),status:0,initstatus:s||0,stop:!1,ms:x,easing:q,from:b,diff:_,to:w,el:n,callback:c.callback,prev:g,next:p,repeat:l||i.times,origin:n.attr(),totalOrigin:o},Kt.push(k),s&&!u&&!f&&(k.stop=!0,k.start=new Date-x*s,1==Kt.length))return ee();f&&(k.start=new Date-k.ms*s),1==Kt.length&&te(ee)}t("raphael.anim.start."+n.id,n,i)}}function ae(t){for(var e=0;e<Kt.length;e++)Kt[e].el.paper==t&&Kt.splice(e--,1)}Yt.animateWith=function(t,i,n,r,s,a){if(this.removed)return a&&a.call(this),this;var o=n instanceof re?n:e.animation(n,r,s,a);se(o,this,o.percents[0],null,this.attr());for(var l=0,h=Kt.length;l<h;l++)if(Kt[l].anim==i&&Kt[l].el==t){Kt[h-1].start=Kt[l].start;break}return this},Yt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},re.prototype.delay=function(t){var e=new re(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},re.prototype.repeat=function(t){var e=new re(this.anim,this.ms);return e.del=this.del,e.times=k.floor(S(t,0))||1,e},e.animation=function(t,i,n,r){if(t instanceof re)return t;!e.is(n,"function")&&n||(r=r||n||null,n=null),t=Object(t),i=+i||0;var s,a,o={};for(a in t)t[h](a)&&P(a)!=a&&P(a)+"%"!=a&&(s=!0,o[a]=t[a]);if(s)return n&&(o.easing=n),r&&(o.callback=r),new re({100:o},i);if(r){var l=0;for(var c in t){var u=V(c);t[h](c)&&u>l&&(l=u)}!t[l+="%"].callback&&(t[l].callback=r)}return new re(t,i)},Yt.animate=function(t,i,n,r){if(this.removed)return r&&r.call(this),this;var s=t instanceof re?t:e.animation(t,i,n,r);return se(s,this,s.percents[0],null,this.attr()),this},Yt.setTime=function(t,e){return t&&null!=e&&this.status(t,M(e,t.ms)/t.ms),this},Yt.status=function(t,e){var i,n,r=[],s=0;if(null!=e)return se(t,this,-1,M(e,1)),this;for(i=Kt.length;s<i;s++)if((n=Kt[s]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;r.push({anim:n.anim,status:n.status})}return t?0:r},Yt.pause=function(e){for(var i=0;i<Kt.length;i++)Kt[i].el.id!=this.id||e&&Kt[i].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,Kt[i].anim)&&(Kt[i].paused=!0);return this},Yt.resume=function(e){for(var i=0;i<Kt.length;i++)if(Kt[i].el.id==this.id&&(!e||Kt[i].anim==e)){var n=Kt[i];!1!==t("raphael.anim.resume."+this.id,this,n.anim)&&(delete n.paused,this.status(n.anim,n.status))}return this},Yt.stop=function(e){for(var i=0;i<Kt.length;i++)Kt[i].el.id!=this.id||e&&Kt[i].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,Kt[i].anim)&&Kt.splice(i--,1);return this},t.on("raphael.remove",ae),t.on("raphael.clear",ae),Yt.toString=function(){return"Raphaël’s object"};var oe,le,he,ce,ue=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=Yt.constructor&&t[e].constructor!=ue||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},fe=ue.prototype;for(var pe in fe.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)!(t=arguments[i])||t.constructor!=Yt.constructor&&t.constructor!=ue||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},fe.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},fe.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(!1===t.call(e,this.items[i],i))return this;return this},Yt)Yt[h](pe)&&(fe[pe]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t][p](i,e)}))}}(pe));return fe.attr=function(t,i){if(t&&e.is(t,T)&&e.is(t[0],"object"))for(var n=0,r=t.length;n<r;n++)this.items[n].attr(t[n]);else for(var s=0,a=this.items.length;s<a;s++)this.items[s].attr(t,i);return this},fe.clear=function(){for(;this.length;)this.pop()},fe.splice=function(t,e,i){t=t<0?S(this.length+t,0):t,e=S(0,M(this.length-t,e));var n,r=[],s=[],a=[];for(n=2;n<arguments.length;n++)a.push(arguments[n]);for(n=0;n<e;n++)s.push(this[t+n]);for(;n<this.length-t;n++)r.push(this[t+n]);var o=a.length;for(n=0;n<o+r.length;n++)this.items[t+n]=this[t+n]=n<o?a[n]:r[n-o];for(n=this.items.length=this.length-=e-o;this[n];)delete this[n++];return new ue(s)},fe.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},fe.animate=function(t,i,n,r){(e.is(n,"function")||!n)&&(r=n||null);var s,a,o=this.items.length,l=o,h=this;if(!o)return this;r&&(a=function(){!--o&&r.call(h)}),n=e.is(n,"string")?n:a;var c=e.animation(t,i,n,a);for(s=this.items[--l].animate(c);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(s,c,c),this.items[l]&&!this.items[l].removed||o--;return this},fe.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},fe.getBBox=function(){for(var t=[],e=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var s=this.items[r].getBBox();t.push(s.x),e.push(s.y),i.push(s.x+s.width),n.push(s.y+s.height)}return{x:t=M[p](0,t),y:e=M[p](0,e),x2:i=S[p](0,i),y2:n=S[p](0,n),width:i-t,height:n-e}},fe.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},fe.toString=function(){return"Raphaël‘s set"},fe.glow=function(t){var e=this.paper.set();return this.forEach((function(i,n){var r=i.glow(t);null!=r&&r.forEach((function(t,i){e.push(t)}))})),e},fe.isPointInside=function(t,e){var i=!1;return this.forEach((function(n){if(n.isPointInside(t,e))return i=!0,!1})),i},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var n in t.face)t.face[h](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg)for(var r in e.face["units-per-em"]=V(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[h](r)){var s=t.glyphs[r];if(e.glyphs[r]={w:s.w,k:{},d:s.d&&"M"+s.d.replace(/[mlcxtrv]/g,(function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"}))+"z"},s.k)for(var a in s.k)s[h](a)&&(e.glyphs[r].k[a]=s.k[a])}return t},n.getFont=function(t,i,n,r){if(r=r||"normal",n=n||"normal",i=+i||{normal:400,bold:700,lighter:300,bolder:800}[i]||400,e.fonts){var s,a=e.fonts[t];if(!a){var o=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,m)+"(\\s|$)","i");for(var l in e.fonts)if(e.fonts[h](l)&&o.test(l)){a=e.fonts[l];break}}if(a)for(var c=0,u=a.length;c<u&&((s=a[c]).face["font-weight"]!=i||s.face["font-style"]!=n&&s.face["font-style"]||s.face["font-stretch"]!=r);c++);return s}},n.print=function(t,i,n,r,s,o,l,h){o=o||"middle",l=S(M(l||0,1),-1),h=S(M(h||1,3),1);var c,u=v(n)[y](m),f=0,p=0,d=m;if(e.is(r,"string")&&(r=this.getFont(r)),r){c=(s||16)/r.face["units-per-em"];for(var g=r.face.bbox[y](a),x=+g[0],b=g[3]-g[1],w=0,_=+g[1]+("baseline"==o?b+ +r.face.descent:b/2),k=0,C=u.length;k<C;k++){if("\n"==u[k])f=0,A=0,p=0,w+=b*h;else{var B=p&&r.glyphs[u[k-1]]||{},A=r.glyphs[u[k]];f+=p?(B.w||r.w)+(B.k&&B.k[u[k]]||0)+r.w*l:0,p=1}A&&A.d&&(d+=e.transformPath(A.d,["t",f*c,w*c,"s",c,c,x,_,"t",(t-x)/c,(i-_)/c]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},n.add=function(t){if(e.is(t,"array"))for(var i,n=this.set(),r=0,s=t.length;r<s;r++)i=t[r]||{},o[h](i.type)&&n.push(this[i.type]().attr(i));return n},e.format=function(t,i){var n=e.is(i,T)?[0][d](i):arguments;return t&&e.is(t,"string")&&n.length-1&&(t=t.replace(l,(function(t,e){return null==n[++e]?m:n[e]}))),t||m},e.fullfill=(oe=/\{([^\}]+)\}/g,le=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(oe,(function(t,i){return function(t,e,i){var n=i;return e.replace(le,(function(t,e,i,r,s){e=e||r,n&&(e in n&&(n=n[e]),"function"==typeof n&&s&&(n=n()))})),n=(null==n||n==i?t:n)+""}(t,i,e)}))}),e.ninja=function(){if(u.was)c.win.Raphael=u.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=fe,t.on("raphael.DOMload",(function(){i=!0})),null==(he=document).readyState&&he.addEventListener&&(he.addEventListener("DOMContentLoaded",ce=function(){he.removeEventListener("DOMContentLoaded",ce,!1),he.readyState="complete"},!1),he.readyState="loading"),function t(){/in/.test(he.readyState)?setTimeout(t,9):e.eve("raphael.DOMload")}(),e}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r;n=[i(0),i(3),i(4)],void 0===(r=function(t){return t}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r,s,a,o,l,h,c,u,f,p,d,g,m;a="hasOwnProperty",o=/[\.\/]/,l=/\s*,\s*/,h=function(t,e){return t-e},c={n:{}},u=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},f=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},p=Object.prototype.toString,d=String,g=Array.isArray||function(t){return t instanceof Array||"[object Array]"==p.call(t)},(m=function(t,e){var i,n=s,a=Array.prototype.slice.call(arguments,2),o=m.listeners(t),l=0,c=[],p={},d=[],g=r;d.firstDefined=u,d.lastDefined=f,r=t,s=0;for(var x=0,v=o.length;x<v;x++)"zIndex"in o[x]&&(c.push(o[x].zIndex),o[x].zIndex<0&&(p[o[x].zIndex]=o[x]));for(c.sort(h);c[l]<0;)if(i=p[c[l++]],d.push(i.apply(e,a)),s)return s=n,d;for(x=0;x<v;x++)if("zIndex"in(i=o[x]))if(i.zIndex==c[l]){if(d.push(i.apply(e,a)),s)break;do{if((i=p[c[++l]])&&d.push(i.apply(e,a)),s)break}while(i)}else p[i.zIndex]=i;else if(d.push(i.apply(e,a)),s)break;return s=n,r=g,d})._events=c,m.listeners=function(t){var e,i,n,r,s,a,l,h,u=g(t)?t:t.split(o),f=c,p=[f],d=[];for(r=0,s=u.length;r<s;r++){for(h=[],a=0,l=p.length;a<l;a++)for(i=[(f=p[a].n)[u[r]],f["*"]],n=2;n--;)(e=i[n])&&(h.push(e),d=d.concat(e.f||[]));p=h}return d},m.separator=function(t){t?(t="["+(t=d(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",o=new RegExp(t)):o=/[\.\/]/},m.on=function(t,e){if("function"!=typeof e)return function(){};for(var i=g(t)?g(t[0])?t:[t]:d(t).split(l),n=0,r=i.length;n<r;n++)!function(t){for(var i,n=g(t)?t:d(t).split(o),r=c,s=0,a=n.length;s<a;s++)r=(r=r.n).hasOwnProperty(n[s])&&r[n[s]]||(r[n[s]]={n:{}});for(r.f=r.f||[],s=0,a=r.f.length;s<a;s++)if(r.f[s]==e){i=!0;break}!i&&r.f.push(e)}(i[n]);return function(t){+t==+t&&(e.zIndex=+t)}},m.f=function(t){var e=[].slice.call(arguments,1);return function(){m.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},m.stop=function(){s=1},m.nt=function(t){var e=g(r)?r.join("."):r;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},m.nts=function(){return g(r)?r:r.split(o)},m.off=m.unbind=function(t,e){if(t){var i=g(t)?g(t[0])?t:[t]:d(t).split(l);if(i.length>1)for(var n=0,r=i.length;n<r;n++)m.off(i[n],e);else{i=g(t)?t:d(t).split(o);var s,h,u,f,p,x=[c];for(n=0,r=i.length;n<r;n++)for(f=0;f<x.length;f+=u.length-2){if(u=[f,1],s=x[f].n,"*"!=i[n])s[i[n]]&&u.push(s[i[n]]);else for(h in s)s[a](h)&&u.push(s[h]);x.splice.apply(x,u)}for(n=0,r=x.length;n<r;n++)for(s=x[n];s.n;){if(e){if(s.f){for(f=0,p=s.f.length;f<p;f++)if(s.f[f]==e){s.f.splice(f,1);break}!s.f.length&&delete s.f}for(h in s.n)if(s.n[a](h)&&s.n[h].f){var v=s.n[h].f;for(f=0,p=v.length;f<p;f++)if(v[f]==e){v.splice(f,1);break}!v.length&&delete s.n[h].f}}else for(h in delete s.f,s.n)s.n[a](h)&&s.n[h].f&&delete s.n[h].f;s=s.n}}}else m._events=c={n:{}}},m.once=function(t,e){var i=function(){return m.off(t,i),e.apply(this,arguments)};return m.on(t,i)},m.version="0.5.0",m.toString=function(){return"You are running Eve 0.5.0"},t.exports?t.exports=m:void 0===(n=function(){return m}.apply(e,[]))||(t.exports=n)},function(t,e,i){var n,r;n=[i(0)],void 0===(r=function(t){if(!t||t.svg){var e="hasOwnProperty",i=String,n=parseFloat,r=parseInt,s=Math,a=s.max,o=s.abs,l=s.pow,h=/[, ]+/,c=t.eve,u="",f=" ",p="http://www.w3.org/1999/xlink",d={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var m=function(n,r){if(r)for(var s in"string"==typeof n&&(n=m(n)),r)r[e](s)&&("xlink:"==s.substring(0,6)?n.setAttributeNS(p,s.substring(6),i(r[s])):n.setAttribute(s,i(r[s])));else(n=t._g.doc.createElementNS("http://www.w3.org/2000/svg",n)).style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},x=function(e,r){var h="linear",c=e.id+r,f=.5,p=.5,d=e.node,g=e.paper,x=d.style,y=t._g.doc.getElementById(c);if(!y){if(r=(r=i(r).replace(t._radial_gradient,(function(t,e,i){if(h="radial",e&&i){f=n(e);var r=2*((p=n(i))>.5)-1;l(f-.5,2)+l(p-.5,2)>.25&&(p=s.sqrt(.25-l(f-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return u}))).split(/\s*\-\s*/),"linear"==h){var b=r.shift();if(b=-n(b),isNaN(b))return null;var w=[0,0,s.cos(t.rad(b)),s.sin(t.rad(b))],_=1/(a(o(w[2]),o(w[3]))||1);w[2]*=_,w[3]*=_,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var k=t._parseDots(r);if(!k)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){y=m(h+"Gradient",{id:c}),e.gradient=y,m(y,"radial"==h?{fx:f,fy:p}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(y);for(var S=0,M=k.length;S<M;S++)y.appendChild(m("stop",{offset:k[S].offset?k[S].offset:S?"100%":"0%","stop-color":k[S].color||"#fff","stop-opacity":isFinite(k[S].opacity)?k[S].opacity:1}))}}return m(d,{fill:v(c),opacity:1,"fill-opacity":1}),x.fill=u,x.opacity=1,x.fillOpacity=1,1},v=function(t){if((e=document.documentMode)&&(9===e||10===e))return"url('#"+t+"')";var e,i=document.location;return"url('"+i.protocol+"//"+i.host+i.pathname+i.search+"#"+t+"')"},y=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},b=function(n,r,s){if("path"==n.type){for(var a,o,l,h,c,f=i(r).toLowerCase().split("-"),p=n.paper,x=s?"end":"start",v=n.node,y=n.attrs,b=y["stroke-width"],w=f.length,_="classic",k=3,S=3,M=5;w--;)switch(f[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=f[w];break;case"wide":S=5;break;case"narrow":S=2;break;case"long":k=5;break;case"short":k=2}if("open"==_?(k+=2,S+=2,M+=2,l=1,h=s?4:1,c={fill:"none",stroke:y.stroke}):(h=l=k/2,c={fill:y.stroke,stroke:"none"}),n._.arrows?s?(n._.arrows.endPath&&g[n._.arrows.endPath]--,n._.arrows.endMarker&&g[n._.arrows.endMarker]--):(n._.arrows.startPath&&g[n._.arrows.startPath]--,n._.arrows.startMarker&&g[n._.arrows.startMarker]--):n._.arrows={},"none"!=_){var C="raphael-marker-"+_,B="raphael-marker-"+x+_+k+S+"-obj"+n.id;t._g.doc.getElementById(C)?g[C]++:(p.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:d[_],id:C})),g[C]=1);var A,F=t._g.doc.getElementById(B);F?(g[B]++,A=F.getElementsByTagName("use")[0]):(F=m(m("marker"),{id:B,markerHeight:S,markerWidth:k,orient:"auto",refX:h,refY:S/2}),A=m(m("use"),{"xlink:href":"#"+C,transform:(s?"rotate(180 "+k/2+" "+S/2+") ":u)+"scale("+k/M+","+S/M+")","stroke-width":(1/((k/M+S/M)/2)).toFixed(4)}),F.appendChild(A),p.defs.appendChild(F),g[B]=1),m(A,c);var T=l*("diamond"!=_&&"oval"!=_);s?(a=n._.arrows.startdx*b||0,o=t.getTotalLength(y.path)-T*b):(a=T*b,o=t.getTotalLength(y.path)-(n._.arrows.enddx*b||0)),(c={})["marker-"+x]="url(#"+B+")",(o||a)&&(c.d=t.getSubpath(y.path,a,o)),m(v,c),n._.arrows[x+"Path"]=C,n._.arrows[x+"Marker"]=B,n._.arrows[x+"dx"]=T,n._.arrows[x+"Type"]=_,n._.arrows[x+"String"]=r}else s?(a=n._.arrows.startdx*b||0,o=t.getTotalLength(y.path)-a):(a=0,o=t.getTotalLength(y.path)-(n._.arrows.enddx*b||0)),n._.arrows[x+"Path"]&&m(v,{d:t.getSubpath(y.path,a,o)}),delete n._.arrows[x+"Path"],delete n._.arrows[x+"Marker"],delete n._.arrows[x+"dx"],delete n._.arrows[x+"Type"],delete n._.arrows[x+"String"];for(c in g)if(g[e](c)&&!g[c]){var z=t._g.doc.getElementById(c);z&&z.parentNode.removeChild(z)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(t,e,n){if(e=w[i(e).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",s={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,a=[],o=e.length;o--;)a[o]=e[o]*r+(o%2?1:-1)*s;m(t.node,{"stroke-dasharray":a.join(",")})}else m(t.node,{"stroke-dasharray":"none"})},k=function(n,s){var l=n.node,c=n.attrs,f=l.style.visibility;for(var d in l.style.visibility="hidden",s)if(s[e](d)){if(!t._availableAttrs[e](d))continue;var g=s[d];switch(c[d]=g,d){case"blur":n.blur(g);break;case"title":var v=l.getElementsByTagName("title");if(v.length&&(v=v[0]))v.firstChild.nodeValue=g;else{v=m("title");var w=t._g.doc.createTextNode(g);v.appendChild(w),l.appendChild(v)}break;case"href":case"target":var k=l.parentNode;if("a"!=k.tagName.toLowerCase()){var M=m("a");k.insertBefore(M,l),M.appendChild(l),k=M}"target"==d?k.setAttributeNS(p,"show","blank"==g?"new":g):k.setAttributeNS(p,d,g);break;case"cursor":l.style.cursor=g;break;case"transform":n.transform(g);break;case"arrow-start":b(n,g);break;case"arrow-end":b(n,g,1);break;case"clip-rect":var C=i(g).split(h);if(4==C.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var B=m("clipPath"),A=m("rect");B.id=t.createUUID(),m(A,{x:C[0],y:C[1],width:C[2],height:C[3]}),B.appendChild(A),n.paper.defs.appendChild(B),m(l,{"clip-path":"url(#"+B.id+")"}),n.clip=A}if(!g){var F=l.getAttribute("clip-path");if(F){var T=t._g.doc.getElementById(F.replace(/(^url\(#|\)$)/g,u));T&&T.parentNode.removeChild(T),m(l,{"clip-path":u}),delete n.clip}}break;case"path":"path"==n.type&&(m(l,{d:g?c.path=t._pathToAbsolute(g):"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(l.setAttribute(d,g),n._.dirty=1,!c.fx)break;d="x",g=c.x;case"x":c.fx&&(g=-c.x-(c.width||0));case"rx":if("rx"==d&&"rect"==n.type)break;case"cx":l.setAttribute(d,g),n.pattern&&y(n),n._.dirty=1;break;case"height":if(l.setAttribute(d,g),n._.dirty=1,!c.fy)break;d="y",g=c.y;case"y":c.fy&&(g=-c.y-(c.height||0));case"ry":if("ry"==d&&"rect"==n.type)break;case"cy":l.setAttribute(d,g),n.pattern&&y(n),n._.dirty=1;break;case"r":"rect"==n.type?m(l,{rx:g,ry:g}):l.setAttribute(d,g),n._.dirty=1;break;case"src":"image"==n.type&&l.setAttributeNS(p,"href",g);break;case"stroke-width":1==n._.sx&&1==n._.sy||(g/=a(o(n._.sx),o(n._.sy))||1),l.setAttribute(d,g),c["stroke-dasharray"]&&_(n,c["stroke-dasharray"],s),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":_(n,g,s);break;case"fill":var z=i(g).match(t._ISURL);if(z){B=m("pattern");var E=m("image");B.id=t.createUUID(),m(B,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(E,{x:0,y:0,"xlink:href":z[1]}),B.appendChild(E),function(e){t._preload(z[1],(function(){var t=this.offsetWidth,i=this.offsetHeight;m(e,{width:t,height:i}),m(E,{width:t,height:i})}))}(B),n.paper.defs.appendChild(B),m(l,{fill:"url(#"+B.id+")"}),n.pattern=B,n.pattern&&y(n);break}var N=t.getRGB(g);if(N.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&x(n,g)){if("opacity"in c||"fill-opacity"in c){var L=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u));if(L){var $=L.getElementsByTagName("stop");m($[$.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=g,c.fill="none";break}}else delete s.gradient,delete c.gradient,!t.is(c.opacity,"undefined")&&t.is(s.opacity,"undefined")&&m(l,{opacity:c.opacity}),!t.is(c["fill-opacity"],"undefined")&&t.is(s["fill-opacity"],"undefined")&&m(l,{"fill-opacity":c["fill-opacity"]});N[e]("opacity")&&m(l,{"fill-opacity":N.opacity>1?N.opacity/100:N.opacity});case"stroke":N=t.getRGB(g),l.setAttribute(d,N.hex),"stroke"==d&&N[e]("opacity")&&m(l,{"stroke-opacity":N.opacity>1?N.opacity/100:N.opacity}),"stroke"==d&&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"!=i(g).charAt())&&x(n,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&m(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){(L=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u)))&&($=L.getElementsByTagName("stop"),m($[$.length-1],{"stop-opacity":g}));break}default:"font-size"==d&&(g=r(g,10)+"px");var P=d.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));l.style[P]=g,n._.dirty=1,l.setAttribute(d,g)}}S(n,s),l.style.visibility=f},S=function(n,s){if("text"==n.type&&(s[e]("text")||s[e]("font")||s[e]("font-size")||s[e]("x")||s[e]("y"))){var a=n.attrs,o=n.node,l=o.firstChild?r(t._g.doc.defaultView.getComputedStyle(o.firstChild,u).getPropertyValue("font-size"),10):10;if(s[e]("text")){for(a.text=s.text;o.firstChild;)o.removeChild(o.firstChild);for(var h,c=i(s.text).split("\n"),f=[],p=0,d=c.length;p<d;p++)h=m("tspan"),p&&m(h,{dy:1.2*l,x:a.x}),h.appendChild(t._g.doc.createTextNode(c[p])),o.appendChild(h),f[p]=h}else for(p=0,d=(f=o.getElementsByTagName("tspan")).length;p<d;p++)p?m(f[p],{dy:1.2*l,x:a.x}):m(f[0],{dy:0});m(o,{x:a.x,y:a.y}),n._.dirty=1;var g=n._getBBox(),x=a.y-(g.y+g.height/2);x&&t.is(x,"finite")&&m(f[0],{dy:x})}},M=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},C=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=i,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},B=t.el;C.prototype=B,B.constructor=C,t._engine.path=function(t,e){var i=m("path");e.canvas&&e.canvas.appendChild(i);var n=new C(i,e);return n.type="path",k(n,{fill:"none",stroke:"#000",path:t}),n},B.rotate=function(t,e,r){if(this.removed)return this;if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var s=this.getBBox(1);e=s.x+s.width/2,r=s.y+s.height/2}return this.transform(this._.transform.concat([["r",t,e,r]])),this},B.scale=function(t,e,r,s){if(this.removed)return this;if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2]),s=n(t[3])),t=n(t[0]),null==e&&(e=t),null==s&&(r=s),null==r||null==s)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,s=null==s?a.y+a.height/2:s,this.transform(this._.transform.concat([["s",t,e,r,s]])),this},B.translate=function(t,e){return this.removed||((t=i(t).split(h)).length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]]))),this},B.transform=function(i){var n=this._;if(null==i)return n.transform;if(t._extractTransform(this,i),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&m(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},B.hide=function(){return this.removed||(this.node.style.display="none"),this},B.show=function(){return this.removed||(this.node.style.display=""),this},B.remove=function(){var e=M(this.node);if(!this.removed&&e.parentNode){var i=this.paper;for(var n in i.__set__&&i.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),this.gradient&&i.defs.removeChild(this.gradient),t._tear(this,i),e.parentNode.removeChild(e),this.removeData(),this)this[n]="function"==typeof this[n]?t._removedFactory(n):null;this.removed=!0}},B._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,i=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(i=!0,e.display="");var n={};try{n=this.node.getBBox()}catch(t){n={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{n=n||{},i&&(e.display="none")}return t&&this.hide(),n},B.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var s in this.attrs)this.attrs[e](s)&&(r[s]=this.attrs[s]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==i)return this._.transform;for(var a=i.split(h),o={},l=0,u=a.length;l<u;l++)(i=a[l])in this.attrs?o[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?o[i]=this.paper.customAttributes[i].def:o[i]=t._availableAttrs[i];return u-1?o:o[a[0]]}if(null==n&&t.is(i,"array")){for(o={},l=0,u=i.length;l<u;l++)o[i[l]]=this.attr(i[l]);return o}if(null!=n){var f={};f[i]=n}else null!=i&&t.is(i,"object")&&(f=i);for(var p in f)c("raphael.attr."+p+"."+this.id,this,f[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&f[e](p)&&t.is(this.paper.customAttributes[p],"function")){var d=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var g in this.attrs[p]=f[p],d)d[e](g)&&(f[g]=d[g])}return k(this,f),this},B.toFront=function(){if(this.removed)return this;var e=M(this.node);e.parentNode.appendChild(e);var i=this.paper;return i.top!=this&&t._tofront(this,i),this},B.toBack=function(){if(this.removed)return this;var e=M(this.node),i=e.parentNode;return i.insertBefore(e,i.firstChild),t._toback(this,this.paper),this.paper,this},B.insertAfter=function(e){if(this.removed||!e)return this;var i=M(this.node),n=M(e.node||e[e.length-1].node);return n.nextSibling?n.parentNode.insertBefore(i,n.nextSibling):n.parentNode.appendChild(i),t._insertafter(this,e,this.paper),this},B.insertBefore=function(e){if(this.removed||!e)return this;var i=M(this.node),n=M(e.node||e[0].node);return n.parentNode.insertBefore(i,n),t._insertbefore(this,e,this.paper),this},B.blur=function(e){var i=this;if(0!=+e){var n=m("filter"),r=m("feGaussianBlur");i.attrs.blur=e,n.id=t.createUUID(),m(r,{stdDeviation:+e||1.5}),n.appendChild(r),i.paper.defs.appendChild(n),i._blur=n,m(i.node,{filter:"url(#"+n.id+")"})}else i._blur&&(i._blur.parentNode.removeChild(i._blur),delete i._blur,delete i.attrs.blur),i.node.removeAttribute("filter");return i},t._engine.circle=function(t,e,i,n){var r=m("circle");t.canvas&&t.canvas.appendChild(r);var s=new C(r,t);return s.attrs={cx:e,cy:i,r:n,fill:"none",stroke:"#000"},s.type="circle",m(r,s.attrs),s},t._engine.rect=function(t,e,i,n,r,s){var a=m("rect");t.canvas&&t.canvas.appendChild(a);var o=new C(a,t);return o.attrs={x:e,y:i,width:n,height:r,rx:s||0,ry:s||0,fill:"none",stroke:"#000"},o.type="rect",m(a,o.attrs),o},t._engine.ellipse=function(t,e,i,n,r){var s=m("ellipse");t.canvas&&t.canvas.appendChild(s);var a=new C(s,t);return a.attrs={cx:e,cy:i,rx:n,ry:r,fill:"none",stroke:"#000"},a.type="ellipse",m(s,a.attrs),a},t._engine.image=function(t,e,i,n,r,s){var a=m("image");m(a,{x:i,y:n,width:r,height:s,preserveAspectRatio:"none"}),a.setAttributeNS(p,"href",e),t.canvas&&t.canvas.appendChild(a);var o=new C(a,t);return o.attrs={x:i,y:n,width:r,height:s,src:e},o.type="image",o},t._engine.text=function(e,i,n,r){var s=m("text");e.canvas&&e.canvas.appendChild(s);var a=new C(s,e);return a.attrs={x:i,y:n,"text-anchor":"middle",text:r,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},a.type="text",k(a,a.attrs),a},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e&&e.container;if(!i)throw new Error("SVG container not found.");var n,r=e.x,s=e.y,a=e.width,o=e.height,l=m("svg"),h="overflow:hidden;";return r=r||0,s=s||0,m(l,{height:o=o||342,version:1.1,width:a=a||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==i?(l.style.cssText=h+"position:absolute;left:"+r+"px;top:"+s+"px",t._g.doc.body.appendChild(l),n=1):(l.style.cssText=h+"position:relative",i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l)),(i=new t._Paper).width=a,i.height=o,i.canvas=l,i.clear(),i._left=i._top=0,n&&(i.renderfix=function(){}),i.renderfix(),i},t._engine.setViewBox=function(t,e,i,n,r){c("raphael.setViewBox",this,this._viewBox,[t,e,i,n,r]);var s,o,l=this.getSize(),h=a(i/l.width,n/l.height),u=this.top,p=r?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(h=1),delete this._vbSize,s="0 0 "+this.width+f+this.height):(this._vbSize=h,s=t+f+e+f+i+f+n),m(this.canvas,{viewBox:s,preserveAspectRatio:p});h&&u;)o="stroke-width"in u.attrs?u.attrs["stroke-width"]:1,u.attr({"stroke-width":o}),u._.dirty=1,u._.dirtyT=1,u=u.prev;return this._viewBox=[t,e,i,n,!!r],this},t.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(i){t=e.createSVGMatrix()}var n=-t.e%1,r=-t.f%1;(n||r)&&(n&&(this._left=(this._left+n)%1,i.left=this._left+"px"),r&&(this._top=(this._top+r)%1,i.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=m("defs"))},t.prototype.remove=function(){for(var e in c("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var A=t.st;for(var F in B)B[e](F)&&!A[e](F)&&(A[F]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(F))}}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r;n=[i(0)],void 0===(r=function(t){if(!t||t.vml){var e="hasOwnProperty",i=String,n=parseFloat,r=Math,s=r.round,a=r.max,o=r.min,l=r.abs,h=/[, ]+/,c=t.eve,u=" ",f="",p={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},d=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,m=/-?[^,\s-]+/g,x="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",v=21600,y={path:1,rect:1,image:1},b={circle:1,ellipse:1},w=function(e,i,n){var r=t.matrix();return r.rotate(-e,.5,.5),{dx:r.x(i,n),dy:r.y(i,n)}},_=function(t,e,i,n,r,s){var a=t._,o=t.matrix,h=a.fillpos,c=t.node,f=c.style,p=1,d="",g=v/e,m=v/i;if(f.visibility="hidden",e&&i){if(c.coordsize=l(g)+u+l(m),f.rotation=s*(e*i<0?-1:1),s){var x=w(s,n,r);n=x.dx,r=x.dy}if(e<0&&(d+="x"),i<0&&(d+=" y")&&(p=-1),f.flip=d,c.coordorigin=n*-g+u+r*-m,h||a.fillsize){var y=c.getElementsByTagName("fill");y=y&&y[0],c.removeChild(y),h&&(x=w(s,o.x(h[0],h[1]),o.y(h[0],h[1])),y.position=x.dx*p+u+x.dy*p),a.fillsize&&(y.size=a.fillsize[0]*l(e)+u+a.fillsize[1]*l(i)),c.appendChild(y)}f.visibility="visible"}};t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var k,S=function(t,e,n){for(var r=i(e).toLowerCase().split("-"),s=n?"end":"start",a=r.length,o="classic",l="medium",h="medium";a--;)switch(r[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":o=r[a];break;case"wide":case"narrow":h=r[a];break;case"long":case"short":l=r[a]}var c=t.node.getElementsByTagName("stroke")[0];c[s+"arrow"]=o,c[s+"arrowlength"]=l,c[s+"arrowwidth"]=h},M=function(r,l){r.attrs=r.attrs||{};var c=r.node,g=r.attrs,x=c.style,w=y[r.type]&&(l.x!=g.x||l.y!=g.y||l.width!=g.width||l.height!=g.height||l.cx!=g.cx||l.cy!=g.cy||l.rx!=g.rx||l.ry!=g.ry||l.r!=g.r),M=b[r.type]&&(g.cx!=l.cx||g.cy!=l.cy||g.r!=l.r||g.rx!=l.rx||g.ry!=l.ry),B=r;for(var A in l)l[e](A)&&(g[A]=l[A]);if(w&&(g.path=t._getPath[r.type](r),r._.dirty=1),l.href&&(c.href=l.href),l.title&&(c.title=l.title),l.target&&(c.target=l.target),l.cursor&&(x.cursor=l.cursor),"blur"in l&&r.blur(l.blur),(l.path&&"path"==r.type||w)&&(c.path=function(e){var n=/[ahqstv]/gi,r=t._pathToAbsolute;if(i(e).match(n)&&(r=t._path2curve),n=/[clmz]/g,r==t._pathToAbsolute&&!i(e).match(n)){var a=i(e).replace(d,(function(t,e,i){var n=[],r="m"==e.toLowerCase(),a=p[e];return i.replace(m,(function(t){r&&2==n.length&&(a+=n+p["m"==e?"l":"L"],n=[]),n.push(s(t*v))})),a+n}));return a}var o,l,h=r(e);a=[];for(var c=0,g=h.length;c<g;c++){o=h[c],"z"==(l=h[c][0].toLowerCase())&&(l="x");for(var x=1,y=o.length;x<y;x++)l+=s(o[x]*v)+(x!=y-1?",":f);a.push(l)}return a.join(u)}(~i(g.path).toLowerCase().indexOf("r")?t._pathToAbsolute(g.path):g.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[g.x,g.y],r._.fillsize=[g.width,g.height],_(r,1,1,0,0,0))),"transform"in l&&r.transform(l.transform),M){var F=+g.cx,T=+g.cy,z=+g.rx||+g.r||0,E=+g.ry||+g.r||0;c.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s((F-z)*v),s((T-E)*v),s((F+z)*v),s((T+E)*v),s(F*v)),r._.dirty=1}if("clip-rect"in l){var N=i(l["clip-rect"]).split(h);if(4==N.length){N[2]=+N[2]+ +N[0],N[3]=+N[3]+ +N[1];var L=c.clipRect||t._g.doc.createElement("div"),$=L.style;$.clip=t.format("rect({1}px {2}px {3}px {0}px)",N),c.clipRect||($.position="absolute",$.top=0,$.left=0,$.width=r.paper.width+"px",$.height=r.paper.height+"px",c.parentNode.insertBefore(L,c),L.appendChild(c),c.clipRect=L)}l["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(r.textpath){var P=r.textpath.style;l.font&&(P.font=l.font),l["font-family"]&&(P.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,f)+'"'),l["font-size"]&&(P.fontSize=l["font-size"]),l["font-weight"]&&(P.fontWeight=l["font-weight"]),l["font-style"]&&(P.fontStyle=l["font-style"])}if("arrow-start"in l&&S(B,l["arrow-start"]),"arrow-end"in l&&S(B,l["arrow-end"],1),null!=l.opacity||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var V=c.getElementsByTagName("fill");if(!(V=V&&V[0])&&(V=k("fill")),"image"==r.type&&l.src&&(V.src=l.src),l.fill&&(V.on=!0),null!=V.on&&"none"!=l.fill&&null!==l.fill||(V.on=!1),V.on&&l.fill){var O=i(l.fill).match(t._ISURL);if(O){V.parentNode==c&&c.removeChild(V),V.rotate=!0,V.src=O[1],V.type="tile";var R=r.getBBox(1);V.position=R.x+u+R.y,r._.fillpos=[R.x,R.y],t._preload(O[1],(function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else V.color=t.getRGB(l.fill).hex,V.src=f,V.type="solid",t.getRGB(l.fill).error&&(B.type in{circle:1,ellipse:1}||"r"!=i(l.fill).charAt())&&C(B,l.fill,V)&&(g.fill="none",g.gradient=l.fill,V.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var j=((+g["fill-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+t.getRGB(l.fill).o+1||2)-1);j=o(a(j,0),1),V.opacity=j,V.src&&(V.color="none")}c.appendChild(V);var I=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],D=!1;!I&&(D=I=k("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(I.on=!0),("none"==l.stroke||null===l.stroke||null==I.on||0==l.stroke||0==l["stroke-width"])&&(I.on=!1);var Y=t.getRGB(l.stroke);I.on&&l.stroke&&(I.color=Y.hex),j=((+g["stroke-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+Y.o+1||2)-1);var q=.75*(n(l["stroke-width"])||1);if(j=o(a(j,0),1),null==l["stroke-width"]&&(q=g["stroke-width"]),l["stroke-width"]&&(I.weight=q),q&&q<1&&(j*=q)&&(I.weight=1),I.opacity=j,l["stroke-linejoin"]&&(I.joinstyle=l["stroke-linejoin"]||"miter"),I.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(I.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var W={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};I.dashstyle=W[e](l["stroke-dasharray"])?W[l["stroke-dasharray"]]:f}D&&c.appendChild(I)}if("text"==B.type){B.paper.canvas.style.display=f;var G=B.paper.span,H=g.font&&g.font.match(/\d+(?:\.\d*)?(?=px)/);x=G.style,g.font&&(x.font=g.font),g["font-family"]&&(x.fontFamily=g["font-family"]),g["font-weight"]&&(x.fontWeight=g["font-weight"]),g["font-style"]&&(x.fontStyle=g["font-style"]),H=n(g["font-size"]||H&&H[0])||10,x.fontSize=100*H+"px",B.textpath.string&&(G.innerHTML=i(B.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var X=G.getBoundingClientRect();B.W=g.w=(X.right-X.left)/100,B.H=g.h=(X.bottom-X.top)/100,B.X=g.x,B.Y=g.y+B.H/2,("x"in l||"y"in l)&&(B.path.v=t.format("m{0},{1}l{2},{1}",s(g.x*v),s(g.y*v),s(g.x*v)+1));for(var U=["x","y","text","font","font-family","font-weight","font-style","font-size"],Z=0,Q=U.length;Z<Q;Z++)if(U[Z]in l){B._.dirty=1;break}switch(g["text-anchor"]){case"start":B.textpath.style["v-text-align"]="left",B.bbx=B.W/2;break;case"end":B.textpath.style["v-text-align"]="right",B.bbx=-B.W/2;break;default:B.textpath.style["v-text-align"]="center",B.bbx=0}B.textpath.style["v-text-kern"]=!0}},C=function(e,s,a){e.attrs=e.attrs||{},e.attrs;var o=Math.pow,l="linear",h=".5 .5";if(e.attrs.gradient=s,s=(s=i(s).replace(t._radial_gradient,(function(t,e,i){return l="radial",e&&i&&(e=n(e),i=n(i),o(e-.5,2)+o(i-.5,2)>.25&&(i=r.sqrt(.25-o(e-.5,2))*(2*(i>.5)-1)+.5),h=e+u+i),f}))).split(/\s*\-\s*/),"linear"==l){var c=s.shift();if(c=-n(c),isNaN(c))return null}var p=t._parseDots(s);if(!p)return null;if(e=e.shape||e.node,p.length){e.removeChild(a),a.on=!0,a.method="none",a.color=p[0].color,a.color2=p[p.length-1].color;for(var d=[],g=0,m=p.length;g<m;g++)p[g].offset&&d.push(p[g].offset+u+p[g].color);a.colors=d.length?d.join():"0% "+a.color,"radial"==l?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=h,a.angle=0):(a.type="gradient",a.angle=(270-c)%360),e.appendChild(a)}return 1},B=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=i,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},A=t.el;B.prototype=A,A.constructor=B,A.transform=function(e){if(null==e)return this._.transform;var n,r=this.paper._viewBoxShift,s=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:f;r&&(n=e=i(e).replace(/\.{3}|\u2026/g,this._.transform||f)),t._extractTransform(this,s+e);var a,o=this.matrix.clone(),l=this.skew,h=this.node,c=~i(this.attrs.fill).indexOf("-"),p=!i(this.attrs.fill).indexOf("url(");if(o.translate(1,1),p||c||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",a=o.split(),c&&a.noRotation||!a.isSimple){h.style.filter=o.toFilter();var d=this.getBBox(),g=this.getBBox(1),m=d.x-g.x,x=d.y-g.y;h.coordorigin=m*-v+u+x*-v,_(this,1,1,m,x,0)}else h.style.filter=f,_(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else h.style.filter=f,l.matrix=i(o),l.offset=o.offset();return null!==n&&(this._.transform=n,t._extractTransform(this,n)),this},A.rotate=function(t,e,r){if(this.removed)return this;if(null!=t){if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var s=this.getBBox(1);e=s.x+s.width/2,r=s.y+s.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,r]])),this}},A.translate=function(t,e){return this.removed||((t=i(t).split(h)).length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]]))),this},A.scale=function(t,e,r,s){if(this.removed)return this;if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2]),s=n(t[3]),isNaN(r)&&(r=null),isNaN(s)&&(s=null)),t=n(t[0]),null==e&&(e=t),null==s&&(r=s),null==r||null==s)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,s=null==s?a.y+a.height/2:s,this.transform(this._.transform.concat([["s",t,e,r,s]])),this._.dirtyT=1,this},A.hide=function(){return!this.removed&&(this.node.style.display="none"),this},A.show=function(){return!this.removed&&(this.node.style.display=f),this},A.auxGetBBox=t.el.getBBox,A.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},i=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=i,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=i,e.width=t.width*i,e.height=t.height*i,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},A._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}},A.remove=function(){if(!this.removed&&this.node.parentNode){for(var e in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},A.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var s in this.attrs)this.attrs[e](s)&&(r[s]=this.attrs[s]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=i.split(h),o={},l=0,u=a.length;l<u;l++)(i=a[l])in this.attrs?o[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?o[i]=this.paper.customAttributes[i].def:o[i]=t._availableAttrs[i];return u-1?o:o[a[0]]}if(this.attrs&&null==n&&t.is(i,"array")){for(o={},l=0,u=i.length;l<u;l++)o[i[l]]=this.attr(i[l]);return o}var f;for(var p in null!=n&&((f={})[i]=n),null==n&&t.is(i,"object")&&(f=i),f)c("raphael.attr."+p+"."+this.id,this,f[p]);if(f){for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&f[e](p)&&t.is(this.paper.customAttributes[p],"function")){var d=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var g in this.attrs[p]=f[p],d)d[e](g)&&(f[g]=d[g])}f.text&&"text"==this.type&&(this.textpath.string=f.text),M(this,f)}return this},A.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},A.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this},A.insertAfter=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper)),this},A.insertBefore=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper)),this},A.blur=function(e){var i=this.node.runtimeStyle,n=i.filter;return n=n.replace(g,f),0!=+e?(this.attrs.blur=e,i.filter=n+u+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",i.margin=t.format("-{0}px 0 0 -{0}px",s(+e||1.5))):(i.filter=n,i.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var i=k("shape");i.style.cssText=x,i.coordsize=v+u+v,i.coordorigin=e.coordorigin;var n=new B(i,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),n.type="path",n.path=[],n.Path=f,M(n,r),e.canvas&&e.canvas.appendChild(i);var s=k("skew");return s.on=!0,i.appendChild(s),n.skew=s,n.transform(f),n},t._engine.rect=function(e,i,n,r,s,a){var o=t._rectPath(i,n,r,s,a),l=e.path(o),h=l.attrs;return l.X=h.x=i,l.Y=h.y=n,l.W=h.width=r,l.H=h.height=s,h.r=a,h.path=o,l.type="rect",l},t._engine.ellipse=function(t,e,i,n,r){var s=t.path();return s.attrs,s.X=e-n,s.Y=i-r,s.W=2*n,s.H=2*r,s.type="ellipse",M(s,{cx:e,cy:i,rx:n,ry:r}),s},t._engine.circle=function(t,e,i,n){var r=t.path();return r.attrs,r.X=e-n,r.Y=i-n,r.W=r.H=2*n,r.type="circle",M(r,{cx:e,cy:i,r:n}),r},t._engine.image=function(e,i,n,r,s,a){var o=t._rectPath(n,r,s,a),l=e.path(o).attr({stroke:"none"}),h=l.attrs,c=l.node,u=c.getElementsByTagName("fill")[0];return h.src=i,l.X=h.x=n,l.Y=h.y=r,l.W=h.width=s,l.H=h.height=a,h.path=o,l.type="image",u.parentNode==c&&c.removeChild(u),u.rotate=!0,u.src=i,u.type="tile",l._.fillpos=[n,r],l._.fillsize=[s,a],c.appendChild(u),_(l,1,1,0,0,0),l},t._engine.text=function(e,n,r,a){var o=k("shape"),l=k("path"),h=k("textpath");n=n||0,r=r||0,a=a||"",l.v=t.format("m{0},{1}l{2},{1}",s(n*v),s(r*v),s(n*v)+1),l.textpathok=!0,h.string=i(a),h.on=!0,o.style.cssText=x,o.coordsize=v+u+v,o.coordorigin="0 0";var c=new B(o,e),p={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:a};c.shape=o,c.path=l,c.textpath=h,c.type="text",c.attrs.text=i(a),c.attrs.x=n,c.attrs.y=r,c.attrs.w=1,c.attrs.h=1,M(c,p),o.appendChild(h),o.appendChild(l),e.canvas.appendChild(o);var d=k("skew");return d.on=!0,o.appendChild(d),c.skew=d,c.transform(f),c},t._engine.setSize=function(e,i){var n=this.canvas.style;return this.width=e,this.height=i,e==+e&&(e+="px"),i==+i&&(i+="px"),n.width=e,n.height=i,n.clip="rect(0 "+e+" "+i+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,i,n,r,s){t.eve("raphael.setViewBox",this,this._viewBox,[e,i,n,r,s]);var a,o,l=this.getSize(),h=l.width,c=l.height;return s&&(n*(a=c/r)<h&&(e-=(h-n*a)/2/a),r*(o=h/n)<c&&(i-=(c-r*o)/2/o)),this._viewBox=[e,i,n,r,!!s],this._viewBoxShift={dx:-e,dy:-i,scale:l},this.forEach((function(t){t.transform("...")})),this},t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),k=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(t){k=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,s=e.x,a=e.y;if(!i)throw new Error("VML container not found.");var o=new t._Paper,l=o.canvas=t._g.doc.createElement("div"),h=l.style;return s=s||0,a=a||0,r=r||512,n=n||342,o.width=r,o.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),o.coordsize=216e5+u+216e5,o.coordorigin="0 0",o.span=t._g.doc.createElement("span"),o.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(o.span),h.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(l),h.left=s+"px",h.top=a+"px",h.position="absolute"):i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),o.renderfix=function(){},o},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var F=t.st;for(var T in A)A[e](T)&&!F[e](T)&&(F[T]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(T))}}.apply(e,n))||(t.exports=r)}])},z(E={exports:{}},E.exports),E.exports),L=T(N);class ${constructor(t){if(O(t))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=t.element;const e=this.node.dataset?this.node.dataset:{};let i,n,r,s,a,o,l,h,c,u,f,p,d,g,m,x,v,y,b;!1!==(!O(t.defaults)&&t.defaults)&&(t=function(t){t=t||{};for(let e=1;e<arguments.length;e++)if(arguments[e])for(const i in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],i)&&(t[i]=arguments[e][i]);return t}({}),delete t.defaults),this.config={element:t.element,classId:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0,i="x"===t?e:3&e|8;return i.toString(16)})),value:V("value",t,e,0,"float"),defaults:V("defaults",t,e,0,!1),parentNode:V("parentNode",t,e,null),width:V("width",t,e,null),height:V("height",t,e,null),valueFontColor:V("valueFontColor",t,e,"#010101"),valueFontFamily:V("valueFontFamily",t,e,"Arial"),symbol:V("symbol",t,e,""),min:V("min",t,e,0,"float"),minTxt:V("minTxt",t,e,!1),max:V("max",t,e,100,"float"),maxTxt:V("maxTxt",t,e,!1),reverse:V("reverse",t,e,!1),humanFriendlyDecimal:V("humanFriendlyDecimal",t,e,0),textRenderer:V("textRenderer",t,e,null),onAnimationEnd:V("onAnimationEnd",t,e,null),gaugeWidthScale:V("gaugeWidthScale",t,e,1),gaugeColor:V("gaugeColor",t,e,"#edebeb"),label:V("label",t,e,""),labelFontColor:V("labelFontColor",t,e,"#b3b3b3"),labelFontFamily:V("labelFontFamily",t,e,"Arial"),shadowOpacity:V("shadowOpacity",t,e,.2),shadowSize:V("shadowSize",t,e,5),shadowVerticalOffset:V("shadowVerticalOffset",t,e,3),levelColors:V("levelColors",t,e,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:V("startAnimationTime",t,e,700),startAnimationType:V("startAnimationType",t,e,">"),refreshAnimationTime:V("refreshAnimationTime",t,e,700),refreshAnimationType:V("refreshAnimationType",t,e,">"),donutStartAngle:V("donutStartAngle",t,e,90),valueMinFontSize:V("valueMinFontSize",t,e,16),labelMinFontSize:V("labelMinFontSize",t,e,10),minLabelMinFontSize:V("minLabelMinFontSize",t,e,10),maxLabelMinFontSize:V("maxLabelMinFontSize",t,e,10),hideValue:V("hideValue",t,e,!1),hideMinMax:V("hideMinMax",t,e,!1),showInnerShadow:V("showInnerShadow",t,e,!1),humanFriendly:V("humanFriendly",t,e,!1),noGradient:V("noGradient",t,e,!1),donut:V("donut",t,e,!1),relativeGaugeSize:V("relativeGaugeSize",t,e,!1),counter:V("counter",t,e,!1),decimals:V("decimals",t,e,0),customSectors:V("customSectors",t,e,{}),formatNumber:V("formatNumber",t,e,!1),pointer:V("pointer",t,e,!1),pointerOptions:V("pointerOptions",t,e,{}),displayRemaining:V("displayRemaining",t,e,!1)},this.config.value>this.config.max&&(this.config.value=this.config.max),this.config.value<this.config.min&&(this.config.value=this.config.min),this.originalValue=V("value",t,e,-1,"float"),this.canvas=L(this.config.element,"100%","100%"),!0===this.config.relativeGaugeSize?!0===this.config.donut?(this.canvas.setViewBox(0,0,200,200,!0),i=200,n=200):(this.canvas.setViewBox(0,0,200,100,!0),i=200,n=100):null!==this.config.width&&null!==this.config.height?(i=this.config.width,n=this.config.height):null!==this.config.parentNode?(this.canvas.setViewBox(0,0,200,100,!0),i=200,n=100):(i=1*Number(W(this.config.element,"width").slice(0,-2)),n=1*Number(W(this.config.element,"height").slice(0,-2))),!0===this.config.donut?(i>n?(s=n,r=s):(r=i,s=r),o=(i-r)/2,l=(n-s)/2,h=s/6.4>16?s/5.4:18,c=o+r/2,u=""!==this.config.label?l+s/1.85:l+s/1.7,f=s/16>10?s/16:10,p=o+r/2,d=u+f,g=s/16>10?s/16:10,m=o+r/10+r/6.666666666666667*this.config.gaugeWidthScale/2,x=d,v=s/16>10?s/16:10,y=o+r-r/10-r/6.666666666666667*this.config.gaugeWidthScale/2,b=d):(i>n?(s=n,r=2*s,r>i&&(a=r/i,r/=a,s/=a)):i<n?(r=i,s=r/2):(r=i,s=.5*r),o=(i-r)/2,l=(n-s)/2,h=s/6.5>this.config.valueMinFontSize?s/6.5:this.config.valueMinFontSize,c=o+r/2,u=l+s/1.275,f=s/16>this.config.labelMinFontSize?s/16:this.config.labelMinFontSize,p=o+r/2,d=u+h/2+5,g=s/16>this.config.minLabelMinFontSize?s/16:this.config.minLabelMinFontSize,m=o+r/10+r/6.666666666666667*this.config.gaugeWidthScale/2,x=d,v=s/16>this.config.maxLabelMinFontSize?s/16:this.config.maxLabelMinFontSize,y=o+r-r/10-r/6.666666666666667*this.config.gaugeWidthScale/2,b=d),this.params={canvasW:i,canvasH:n,widgetW:r,widgetH:s,dx:o,dy:l,valueFontSize:h,valueX:c,valueY:u,labelFontSize:f,labelX:p,labelY:d,minFontSize:g,minX:m,minY:x,maxFontSize:v,maxX:y,maxY:b},this.canvas.customAttributes.pki=t=>{let e=this.config.min,i=this.config.max;const n=this.params.widgetW,r=this.params.widgetH,s=this.params.dx,a=this.params.dy,o=this.config.gaugeWidthScale;let l,h,c,u,f,p,d,g,m,x;return e<0&&(i-=e,t-=e,e=0),this.config.donut?(l=(1-2*(t-e)/(i-e))*Math.PI,h=n/2-n/30,c=h-n/6.666666666666667*o,u=n/2+s,f=r/2+a,p=u+h*Math.cos(l),d=f-h*Math.sin(l),g=u+c*Math.cos(l),m=f-c*Math.sin(l),x="M"+(u-c)+","+f+" ",x+="L"+(u-h)+","+f+" ",t-e>(i-e)/2&&(x+="A"+h+","+h+" 0 0 1 "+(u+h)+","+f+" "),x+="A"+h+","+h+" 0 0 1 "+p+","+d+" ",x+="L"+g+","+m+" ",t-e>(i-e)/2&&(x+="A"+c+","+c+" 0 0 0 "+(u+c)+","+f+" "),x+="A"+c+","+c+" 0 0 0 "+(u-c)+","+f+" ",x+="Z ",{path:x}):(l=(1-(t-e)/(i-e))*Math.PI,h=n/2-n/10,c=h-n/6.666666666666667*o,u=n/2+s,f=r/1.25+a,p=u+h*Math.cos(l),d=f-h*Math.sin(l),g=u+c*Math.cos(l),m=f-c*Math.sin(l),x="M"+(u-c)+","+f+" ",x+="L"+(u-h)+","+f+" ",x+="A"+h+","+h+" 0 0 1 "+p+","+d+" ",x+="L"+g+","+m+" ",x+="A"+c+","+c+" 0 0 0 "+(u-c)+","+f+" ",x+="Z ",{path:x})},this.canvas.customAttributes.ndl=function(t){const e=this.config.min,i=this.config.max,n=this.params.widgetW,r=this.params.widgetH,s=this.params.dx,a=this.params.dy,o=this.config.gaugeWidthScale,l=this.config.donut;let h,c,u,f,p,d,g,m,x,v,y,b,w,_,k,S,M,C=3.5*n/100,B=n/15,A=n/100;return null!=this.config.pointerOptions.toplength&&void 0!==this.config.pointerOptions.toplength&&(C=this.config.pointerOptions.toplength),null!=this.config.pointerOptions.bottomlength&&void 0!==this.config.pointerOptions.bottomlength&&(B=this.config.pointerOptions.bottomlength),null!=this.config.pointerOptions.bottomwidth&&void 0!==this.config.pointerOptions.bottomwidth&&(A=this.config.pointerOptions.bottomwidth),l?(h=(1-2*(t-e)/(i-e))*Math.PI,c=n/2-n/30,u=c-n/6.666666666666667*o,f=r/2+a,p=n/2+s+c*Math.cos(h),d=r-(r-f)-c*Math.sin(h),g=n/2+s+u*Math.cos(h),m=r-(r-f)-u*Math.sin(h),x=p+C*Math.cos(h),v=d-C*Math.sin(h),y=g-B*Math.cos(h),b=m+B*Math.sin(h),w=y+A*Math.sin(h),_=b+A*Math.cos(h),k=y-A*Math.sin(h),S=b-A*Math.cos(h),M="M"+w+","+_+" ",M+="L"+k+","+S+" ",M+="L"+x+","+v+" ",M+="Z ",{path:M}):(h=(1-(t-e)/(i-e))*Math.PI,c=n/2-n/10,u=c-n/6.666666666666667*o,f=r/1.25+a,p=n/2+s+c*Math.cos(h),d=r-(r-f)-c*Math.sin(h),g=n/2+s+u*Math.cos(h),m=r-(r-f)-u*Math.sin(h),x=p+C*Math.cos(h),v=d-C*Math.sin(h),y=g-B*Math.cos(h),b=m+B*Math.sin(h),w=y+A*Math.sin(h),_=b+A*Math.cos(h),k=y-A*Math.sin(h),S=b-A*Math.cos(h),M="M"+w+","+_+" ",M+="L"+k+","+S+" ",M+="L"+x+","+v+" ",M+="Z ",{path:M})},this.gauge=this.canvas.path().attr({stroke:"none",fill:this.config.gaugeColor,pki:[this.config.max]}),this.level=this.canvas.path().attr({stroke:"none",fill:R(this.config.value,(this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors),pki:[this.config.min]}),this.config.donut&&this.level.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy)),this.config.pointer&&(this.needle=this.canvas.path().attr({stroke:O(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":O(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":O(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:O(this.config.pointerOptions.color)?"#000000":this.config.pointerOptions.color,ndl:[this.config.min]}),this.config.donut&&this.needle.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy))),this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,0),this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":"bold","font-family":this.config.valueFontFamily,fill:this.config.valueFontColor,"fill-opacity":"0"}),j(this.txtValue,this.params.valueFontSize,this.params.valueY),this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label),this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":"0"}),j(this.txtLabel,this.params.labelFontSize,this.params.labelY);let w=this.config.min;this.config.reverse&&(w=this.config.max),this.txtMinimum=w,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Y(w,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=q(w)),this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.txtMinimum),this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),j(this.txtMin,this.params.minFontSize,this.params.minY);let _=this.config.max;this.config.reverse&&(_=this.config.min),this.txtMaximum=_,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Y(_,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=q(_)),this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.txtMaximum),this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),j(this.txtMax,this.params.maxFontSize,this.params.maxY);const k=this.canvas.canvas.childNodes[1],S="http://www.w3.org/2000/svg";if(void 0!==H&&H<9||(void 0!==H?G((()=>{this.generateShadow(S,k)})):this.generateShadow(S,k)),this.config.textRenderer&&!1!==this.config.textRenderer(this.originalValue)?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=Y(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=q(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=(1*(this.config.max-this.originalValue)).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(1*this.originalValue).toFixed(this.config.decimals)+this.config.symbol,!0===this.config.counter){const t=()=>{let t=this.level.attr("pki")[0];this.config.reverse&&(t=1*this.config.max+1*this.config.min-1*this.level.attr("pki")[0]),this.config.textRenderer&&!1!==this.config.textRenderer(Math.floor(t))?this.txtValue.attr("text",this.config.textRenderer(Math.floor(t))):this.config.humanFriendly?this.txtValue.attr("text",Y(Math.floor(t),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",q(Math.floor(t))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",(1*(this.config.max-t)).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(1*t).toFixed(this.config.decimals)+this.config.symbol),j(this.txtValue,this.params.valueFontSize,this.params.valueY),t=null},e=()=>{this.txtValue.attr({text:this.originalValue}),j(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",e),this.bindEvent("raphael.anim.frame",t)}else{const t=()=>{this.txtValue.attr({text:this.originalValue}),j(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",t)}let M=this.config.value;this.config.reverse&&(M=1*this.config.max+1*this.config.min-1*this.config.value),this.level.animate({pki:[M]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[M]},this.config.startAnimationTime,this.config.startAnimationType),this.txtValue.animate({"fill-opacity":this.config.hideValue?"0":"1"},this.config.startAnimationTime,this.config.startAnimationType),this.txtLabel.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType)}bindEvent(t,e){t+="."+this.level.id,this.events[t]&&L.eve.off(t,this.events[t]),L.eve.on(t,e),this.events[t]=e}refresh(t,e,i,n){let r;e=X(e)?e:null,i=X(i)?i:null,null!==(n=n||null)&&(this.config.label=n,this.txtLabel.attr({text:this.config.label}),j(this.txtLabel,this.params.labelFontSize,this.params.labelY)),null!==i&&(this.config.min=i,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Y(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=q(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),j(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),j(this.txtMin,this.params.minFontSize,this.params.minY))),null!==e&&(this.config.max=e,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Y(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=q(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),j(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),j(this.txtMax,this.params.maxFontSize,this.params.maxY))),r=t,1*t>1*this.config.max&&(t=1*this.config.max),1*t<1*this.config.min&&(t=1*this.config.min);const s=R(t,(t-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);r=this.config.textRenderer&&!1!==this.config.textRenderer(r)?this.config.textRenderer(r):this.config.humanFriendly?Y(r,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?q((1*r).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?(1*(this.config.max-r)).toFixed(this.config.decimals)+this.config.symbol:(1*r).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=r,this.config.value=1*t,this.config.counter||(this.txtValue.attr({text:r}),j(this.txtValue,this.params.valueFontSize,this.params.valueY));let a=this.config.value;this.config.reverse&&(a=1*this.config.max+1*this.config.min-1*this.config.value),this.level.animate({pki:[a],fill:s},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[a]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(t,e){const i=this;if(t instanceof Object)for(const n in t)P(i,n,e=t[n]);else P(i,t,e)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const t in this.events)L.eve.off(t,this.events[t]);this.events={}}generateShadow(t,e){const i="inner-shadow-"+(this.config.element.id||this.config.classId),n=document.createElementNS(t,"filter");n.setAttribute("id",i),e.appendChild(n);const r=document.createElementNS(t,"feOffset");r.setAttribute("dx","0"),r.setAttribute("dy",this.config.shadowVerticalOffset),n.appendChild(r);const s=document.createElementNS(t,"feGaussianBlur");s.setAttribute("result","offset-blur"),s.setAttribute("stdDeviation",this.config.shadowSize),n.appendChild(s);const a=document.createElementNS(t,"feComposite");a.setAttribute("operator","out"),a.setAttribute("in","SourceGraphic"),a.setAttribute("in2","offset-blur"),a.setAttribute("result","inverse"),n.appendChild(a);const o=document.createElementNS(t,"feFlood");o.setAttribute("flood-color","black"),o.setAttribute("flood-opacity",this.config.shadowOpacity),o.setAttribute("result","color"),n.appendChild(o);const l=document.createElementNS(t,"feComposite");l.setAttribute("operator","in"),l.setAttribute("in","color"),l.setAttribute("in2","inverse"),l.setAttribute("result","shadow"),n.appendChild(l);const h=document.createElementNS(t,"feComposite");h.setAttribute("operator","over"),h.setAttribute("in","shadow"),h.setAttribute("in2","SourceGraphic"),n.appendChild(h),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+i+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+i+")"))}}function P(t,e,i){switch(e){case"valueFontColor":if(!D(i)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}t.txtValue.attr({fill:i});break;case"labelFontColor":if(!D(i)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}t.txtMin.attr({fill:i}),t.txtMax.attr({fill:i}),t.txtLabel.attr({fill:i});break;default:console.log(`* justgage: "${e}" is not a supported update setting`)}}function V(t,e,i,n,r,s){let a=n,o=!1;if(!O(t)&&(!O(i)&&"object"==typeof i&&t in i?(a=i[t],o=!0):!O(e)&&"object"==typeof e&&t in e?(a=e[t],o=!0):a=n,!0===o&&!O(r)))switch(r){case"int":a=parseInt(a,10);break;case"float":a=parseFloat(a)}return a}function O(t){return null==t}function R(t,e,i,n,r){let s,a,o,l,h,c,u,f,p,d,g;const m=r&&r.ranges&&r.ranges.length>0;if(n=n||m,m){!0===r.percents&&(t=100*e);for(let e=0;e<r.ranges.length;e++)if(t>=r.ranges[e].lo&&t<=r.ranges[e].hi)return r.ranges[e].color}const x=i.length;if(1===x)return i[0];const v=n?1/x:1/(x-1),y=[];for(let t=0;t<i.length;t++)s=n?v*(t+1):v*t,a=parseInt(I(i[t]).substring(0,2),16),o=parseInt(I(i[t]).substring(2,4),16),l=parseInt(I(i[t]).substring(4,6),16),y[t]={pct:s,color:{r:a,g:o,b:l}};if(0===e)return"rgb("+[y[0].color.r,y[0].color.g,y[0].color.b].join(",")+")";for(let t=0;t<y.length;t++)if(e<=y[t].pct)return n?"rgb("+[y[t].color.r,y[t].color.g,y[t].color.b].join(",")+")":(h=y[t-1],c=y[t],u=c.pct-h.pct,f=(e-h.pct)/u,p=1-f,d=f,g={r:Math.floor(h.color.r*p+c.color.r*d),g:Math.floor(h.color.g*p+c.color.g*d),b:Math.floor(h.color.b*p+c.color.b*d)},"rgb("+[g.r,g.g,g.b].join(",")+")")}function j(t,e,i){(!H||H>9)&&t.node.firstChild.attributes.dy&&(t.node.firstChild.attributes.dy.value=0)}function I(t){return"#"===t.charAt(0)?t.substring(1,7):t}function D(t){return"string"==typeof t&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(t)}function Y(t,e){const i=Math.pow(10,e),n=" KMGTPE";let r=0;const s=1e3;for(;(t>=s||t<=-s)&&++r<n.length;)t/=s;return r=r>=n.length?n.length-1:r,Math.round(t*i)/i+n[r]}function q(t){const e=t.toString().split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}function W(t,e){let i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,"").getPropertyValue(e):t.currentStyle&&(e=e.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()})),i=t.currentStyle[e]),i}function G(t){void 0!==document.createElementNS?t():setTimeout((function(){G(t)}),100)}const H=function(){let t=3;const e=document.createElement("div"),i=e.getElementsByTagName("i");for(;i[0];)e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e";return t>4?t:void 0}();function X(t){return null!=t&&!isNaN(t)}function U(e){let i,n,r;return{c(){var e,n,r,s,a;e="div",i=document.createElement(e),this.c=t,l(i,"part","gauge"),n=i,r="width",null===(s="100%")?n.style.removeProperty(r):n.style.setProperty(r,s,a?"important":""),l(i,"id","gauge")},m(t,s){var o,l,h,c;a(t,i,s),n||(o=window,l="resize",h=F(e[0],200),o.addEventListener(l,h,c),r=()=>o.removeEventListener(l,h,c),n=!0)},p:t,i:t,o:t,d(t){t&&o(i),n=!1,r()}}}function Z(t,e,i){const n=f();let r,s,{id:a}=e,{options:o}=e;function l(){s&&s.destroy(),i(4,s=null),h()}function h(){if(!o||!r)return console.error("cannot create gauge");if(s)console.error("cannot create html gauge");else{const t=Object.assign({element:r},o);i(4,s=new $(t))}}return function(t){f().$$.on_mount.push(t)}((()=>{i(3,r=n.shadowRoot.getElementById("gauge")),h()})),function(t){f().$$.on_destroy.push(t)}((()=>{s&&s.destroy(),i(4,s=null)})),t.$$set=t=>{"id"in t&&i(1,a=t.id),"options"in t&&i(2,o=t.options)},t.$$.update=()=>{30&t.$$.dirty&&(a||i(1,a=""),o&&"string"==typeof o&&i(2,o=JSON.parse(o)),r&&s&&l())},[l,a,o,r,s]}class Q extends B{constructor(t){super(),C(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},Z,U,s,{id:1,options:2},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["id","options"]}get id(){return this.$$.ctx[1]}set id(t){this.$$set({id:t}),_()}get options(){return this.$$.ctx[2]}set options(t){this.$$set({options:t}),_()}}return customElements.define("hb-gauge",Q),Q}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function i(){return Object.create(null)}function n(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e,i){t.insertBefore(e,i||null)}function o(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function h(t){const e={};for(const i of t)e[i.name]=i.value;return e}let c;function u(t){c=t}function f(){if(!c)throw new Error("Function called outside component initialization");return c}const p=[],d=[];let g=[];const m=[],x=Promise.resolve();let v=!1;function y(t){g.push(t)}const b=new Set;let w=0;function _(){if(0!==w)return;const t=c;do{try{for(;w<p.length;){const t=p[w];w++,u(t),k(t.$$)}}catch(t){throw p.length=0,w=0,t}for(u(null),p.length=0,w=0;d.length;)d.pop()();for(let t=0;t<g.length;t+=1){const e=g[t];b.has(e)||(b.add(e),e())}g.length=0}while(p.length);for(;m.length;)m.pop()();v=!1,b.clear(),u(t)}function k(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(y)}}const S=new Set;function M(t,e){const i=t.$$;null!==i.fragment&&(!function(t){const e=[],i=[];g.forEach((n=>-1===t.indexOf(n)?e.push(n):i.push(n))),i.forEach((t=>t())),g=e}(i.after_update),n(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function C(t,e){-1===t.$$.dirty[0]&&(p.push(t),v||(v=!0,x.then(_)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function B(s,a,l,h,f,p,d,g=[-1]){const m=c;u(s);const x=s.$$={fragment:null,ctx:[],props:p,update:t,not_equal:f,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:i(),dirty:g,skip_bound:!1,root:a.target||m.$$.root};d&&d(x.root);let v=!1;if(x.ctx=l?l(s,a.props||{},((t,e,...i)=>{const n=i.length?i[0]:e;return x.ctx&&f(x.ctx[t],x.ctx[t]=n)&&(!x.skip_bound&&x.bound[t]&&x.bound[t](n),v&&C(s,t)),e})):[],x.update(),v=!0,n(x.before_update),x.fragment=!!h&&h(x.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);x.fragment&&x.fragment.l(t),t.forEach(o)}else x.fragment&&x.fragment.c();a.intro&&((b=s.$$.fragment)&&b.i&&(S.delete(b),b.i(w))),function(t,i,s,a){const{fragment:o,after_update:l}=t.$$;o&&o.m(i,s),a||y((()=>{const i=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...i):n(i),t.$$.on_mount=[]})),l.forEach(y)}(s,a.target,a.anchor,a.customElement),_()}var b,w;u(m)}let A;function F(t,e,i){var n,r,s,a,o;function l(){var h=Date.now()-a;h<e&&h>=0?n=setTimeout(l,e-h):(n=null,i||(o=t.apply(s,r),s=r=null))}null==e&&(e=100);var h=function(){s=this,r=arguments,a=Date.now();var h=i&&!n;return n||(n=setTimeout(l,e)),h&&(o=t.apply(s,r),s=r=null),o};return h.clear=function(){n&&(clearTimeout(n),n=null)},h.flush=function(){n&&(o=t.apply(s,r),s=r=null,clearTimeout(n),n=null)},h}"function"==typeof HTMLElement&&(A=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,i){this[t]=i}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){M(this,1),this.$destroy=t}$on(e,i){if(!r(i))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const t=n.indexOf(i);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}),F.debounce=F;var T=F;function z(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var E,N,L=(E=function(t,e){window,t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e,i){var n,r;n=[i(2)],void 0===(r=function(t){function e(n){if(e.is(n,"function"))return i?n():t.on("raphael.DOMload",n);if(e.is(n,T))return e._engine.create[p](e,n.splice(0,3+e.is(n[0],F))).add(n);var r=Array.prototype.slice.call(arguments,0);if(e.is(r[r.length-1],"function")){var s=r.pop();return i?s.call(e._engine.create[p](e,r)):t.on("raphael.DOMload",(function(){s.call(e._engine.create[p](e,r))}))}return e._engine.create[p](e,arguments)}e.version="2.3.0",e.eve=t;var i,n,r,s,a=/[, ]+/,o={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},l=/\{(\d+)\}/g,h="hasOwnProperty",c={doc:document,win:window},u={was:Object.prototype[h].call(c.win,"Raphael"),is:c.win.Raphael},f=function(){this.ca=this.customAttributes={}},p="apply",d="concat",g="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,m="",x=" ",v=String,y="split",b="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[y](x),w={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},_=v.prototype.toLowerCase,k=Math,S=k.max,M=k.min,C=k.abs,B=k.pow,A=k.PI,F="number",T="array",z=Object.prototype.toString,E=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),N={NaN:1,Infinity:1,"-Infinity":1},L=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,$=k.round,P=parseFloat,V=parseInt,O=v.prototype.toUpperCase,R=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},j=e._availableAnimAttrs={blur:F,"clip-rect":"csv",cx:F,cy:F,fill:"colour","fill-opacity":F,"font-size":F,height:F,opacity:F,path:"path",r:F,rx:F,ry:F,stroke:"colour","stroke-opacity":F,"stroke-width":F,transform:"transform",width:F,x:F,y:F},I=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,D={hs:1,rg:1},Y=/,?([achlmqrstvxz]),?/gi,q=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,W=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,G=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,H=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),X=function(t,e){return P(t)-P(e)},U=function(t){return t},Z=e._rectPath=function(t,e,i,n,r){return r?[["M",t+r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},Q=function(t,e,i,n){return null==n&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},J=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Q(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Q(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)}},K=e.mapPath=function(t,e){if(!e)return t;var i,n,r,s,a,o,l;for(r=0,a=(t=Bt(t)).length;r<a;r++)for(s=1,o=(l=t[r]).length;s<o;s+=2)i=e.x(l[s],l[s+1]),n=e.y(l[s],l[s+1]),l[s]=i,l[s+1]=n;return t};if(e._g=c,e.type=c.win.SVGAngle||c.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var tt,et=c.doc.createElement("div");if(et.innerHTML='<v:shape adj="1"/>',(tt=et.firstChild).style.behavior="url(#default#VML)",!tt||"object"!=typeof tt.adj)return e.type=m;et=null}function it(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[h](i)&&(e[i]=it(t[i]));return e}e.svg=!(e.vml="VML"==e.type),e._Paper=f,e.fn=n=f.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=_.call(e))?!N[h](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||z.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,n,r,s,a){if(null==s){var o=t-n,l=i-r;return o||l?(180+180*k.atan2(-l,-o)/A+360)%360:0}return e.angle(t,i,s,a)-e.angle(n,r,s,a)},e.rad=function(t){return t%360*A/180},e.deg=function(t){return Math.round(180*t/A%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,T)){for(var r=t.length;r--;)if(C(t[r]-i)<=n)return t[r]}else{var s=i%(t=+t);if(s<n)return i-s;if(s>t-n)return i-s+t}return i},e.createUUID=(r=/[xy]/g,s=function(t){var e=16*k.random()|0;return("x"==t?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(r,s).toUpperCase()}),e.setWindow=function(i){t("raphael.setWindow",e,c.win,i),c.win=i,c.doc=c.win.document,e._engine.initWin&&e._engine.initWin(c.win)};var nt=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),i=r.body}catch(t){i=createPopup().document.body}var s=i.createTextRange();nt=ht((function(t){try{i.style.color=v(t).replace(n,m);var e=s.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var a=c.doc.createElement("i");a.title="Raphaël Colour Picker",a.style.display="none",c.doc.body.appendChild(a),nt=ht((function(t){return a.style.color=t,c.doc.defaultView.getComputedStyle(a,m).getPropertyValue("color")}))}return nt(t)},rt=function(){return"hsb("+[this.h,this.s,this.b]+")"},st=function(){return"hsl("+[this.h,this.s,this.l]+")"},at=function(){return this.hex},ot=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,"string")){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},lt=function(t,i,n,r){var s={r:t*=255,g:i*=255,b:n*=255,hex:e.rgb(t,i,n),toString:at};return e.is(r,"finite")&&(s.opacity=r),s};function ht(t,e,i){return function n(){var r=Array.prototype.slice.call(arguments,0),s=r.join("␀"),a=n.cache=n.cache||{},o=n.count=n.count||[];return a[h](s)?(function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}(o,s),i?i(a[s]):a[s]):(o.length>=1e3&&delete a[o.shift()],o.push(s),a[s]=t[p](e,r),i?i(a[s]):a[s])}}function ct(){return this.hex}function ut(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var s=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?s[3]={x:+t[0],y:+t[1]}:r-2==n&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?s[3]=s[2]:n||(s[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return i}e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=at,t},e.hsb2rgb=function(t,e,i,n){var r,s,a,o,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),o=(l=i*e)*(1-C((t=(t*=360)%360/60)%2-1)),r=s=a=i-l,lt(r+=[l,o,0,0,o,l][t=~~t],s+=[o,l,l,o,0,0][t],a+=[0,0,o,l,l,o][t],n)},e.hsl2rgb=function(t,e,i,n){var r,s,a,o,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),o=(l=2*e*(i<.5?i:1-i))*(1-C((t=(t*=360)%360/60)%2-1)),r=s=a=i-l/2,lt(r+=[l,o,0,0,o,l][t=~~t],s+=[o,l,l,o,0,0][t],a+=[0,0,o,l,l,o][t],n)},e.rgb2hsb=function(t,e,i){var n,r;return t=(i=ot(t,e,i))[0],e=i[1],i=i[2],{h:((0==(r=(n=S(t,e,i))-M(t,e,i))?null:n==t?(e-i)/r:n==e?(i-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/n,b:n,toString:rt}},e.rgb2hsl=function(t,e,i){var n,r,s,a;return t=(i=ot(t,e,i))[0],e=i[1],i=i[2],n=((r=S(t,e,i))+(s=M(t,e,i)))/2,{h:((0==(a=r-s)?null:r==t?(e-i)/a:r==e?(i-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:n<.5?a/(2*n):a/(2-2*n),l:n,toString:st}},e._path2string=function(){return this.join(",").replace(Y,"$1")},e._preload=function(t,e){var i=c.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,c.doc.body.removeChild(this)},i.onerror=function(){c.doc.body.removeChild(this)},c.doc.body.appendChild(i),i.src=t},e.getRGB=ht((function(t){if(!t||(t=v(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ct};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:ct};!D[h](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=nt(t));var i,n,r,s,a,o,l=t.match(E);return l?(l[2]&&(r=V(l[2].substring(5),16),n=V(l[2].substring(3,5),16),i=V(l[2].substring(1,3),16)),l[3]&&(r=V((a=l[3].charAt(3))+a,16),n=V((a=l[3].charAt(2))+a,16),i=V((a=l[3].charAt(1))+a,16)),l[4]&&(o=l[4][y](I),i=P(o[0]),"%"==o[0].slice(-1)&&(i*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(s=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(s/=100)),l[5]?(o=l[5][y](I),i=P(o[0]),"%"==o[0].slice(-1)&&(i*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),("deg"==o[0].slice(-3)||"°"==o[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(s=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(s/=100),e.hsb2rgb(i,n,r,s)):l[6]?(o=l[6][y](I),i=P(o[0]),"%"==o[0].slice(-1)&&(i*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),("deg"==o[0].slice(-3)||"°"==o[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(s=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(s/=100),e.hsl2rgb(i,n,r,s)):((l={r:i,g:n,b:r,toString:ct}).hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(s,"finite")&&(l.opacity=s),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ct}}),e),e.hsb=ht((function(t,i,n){return e.hsb2rgb(t,i,n).hex})),e.hsl=ht((function(t,i,n){return e.hsl2rgb(t,i,n).hex})),e.rgb=ht((function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)})),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=ft(t);if(i.arr)return yt(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,T)&&e.is(t[0],T)&&(r=yt(t)),r.length||v(t).replace(q,(function(t,e,i){var s=[],a=e.toLowerCase();if(i.replace(G,(function(t,e){e&&s.push(+e)})),"m"==a&&s.length>2&&(r.push([e][d](s.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][d](s));else for(;s.length>=n[a]&&(r.push([e][d](s.splice(0,n[a]))),n[a]););})),r.toString=e._path2string,i.arr=yt(r),r},e.parseTransformString=ht((function(t){if(!t)return null;var i=[];return e.is(t,T)&&e.is(t[0],T)&&(i=yt(t)),i.length||v(t).replace(W,(function(t,e,n){var r=[];_.call(e),n.replace(G,(function(t,e){e&&r.push(+e)})),i.push([e][d](r))})),i.toString=e._path2string,i}),this,(function(t){if(!t)return t;for(var e=[],i=0;i<t.length;i++){for(var n=[],r=0;r<t[i].length;r++)n.push(t[i][r]);e.push(n)}return e}));var ft=function(t){var e=ft.ps=ft.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var i in e)e[h](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])})),e[t]};function pt(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i}function dt(t,e,i,n,r,s,a,o,l){null==l&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=h*c[p]+h,g=pt(d,t,i,r,a),m=pt(d,e,n,s,o),x=g*g+m*m;f+=u[p]*k.sqrt(x)}return h*f}function gt(t,e,i,n,r,s,a,o){if(!(S(t,i)<M(r,a)||M(t,i)>S(r,a)||S(e,n)<M(s,o)||M(e,n)>S(s,o))){var l=(t-i)*(s-o)-(e-n)*(r-a);if(l){var h=((t*n-e*i)*(r-a)-(t-i)*(r*o-s*a))/l,c=((t*n-e*i)*(s-o)-(e-n)*(r*o-s*a))/l,u=+h.toFixed(2),f=+c.toFixed(2);if(!(u<+M(t,i).toFixed(2)||u>+S(t,i).toFixed(2)||u<+M(r,a).toFixed(2)||u>+S(r,a).toFixed(2)||f<+M(e,n).toFixed(2)||f>+S(e,n).toFixed(2)||f<+M(s,o).toFixed(2)||f>+S(s,o).toFixed(2)))return{x:h,y:c}}}}function mt(t,i,n){var r=e.bezierBBox(t),s=e.bezierBBox(i);if(!e.isBBoxIntersect(r,s))return n?0:[];for(var a=dt.apply(0,t),o=dt.apply(0,i),l=S(~~(a/5),1),h=S(~~(o/5),1),c=[],u=[],f={},p=n?0:[],d=0;d<l+1;d++){var g=e.findDotsAtSegment.apply(e,t.concat(d/l));c.push({x:g.x,y:g.y,t:d/l})}for(d=0;d<h+1;d++)g=e.findDotsAtSegment.apply(e,i.concat(d/h)),u.push({x:g.x,y:g.y,t:d/h});for(d=0;d<l;d++)for(var m=0;m<h;m++){var x=c[d],v=c[d+1],y=u[m],b=u[m+1],w=C(v.x-x.x)<.001?"y":"x",_=C(b.x-y.x)<.001?"y":"x",k=gt(x.x,x.y,v.x,v.y,y.x,y.y,b.x,b.y);if(k){if(f[k.x.toFixed(4)]==k.y.toFixed(4))continue;f[k.x.toFixed(4)]=k.y.toFixed(4);var B=x.t+C((k[w]-x[w])/(v[w]-x[w]))*(v.t-x.t),A=y.t+C((k[_]-y[_])/(b[_]-y[_]))*(b.t-y.t);B>=0&&B<=1.001&&A>=0&&A<=1.001&&(n?p++:p.push({x:k.x,y:k.y,t1:M(B,1),t2:M(A,1)}))}}return p}function xt(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,s,a,o,l,h,c,u,f,p,d=n?0:[],g=0,m=t.length;g<m;g++){var x=t[g];if("M"==x[0])r=l=x[1],s=h=x[2];else{"C"==x[0]?(f=[r,s].concat(x.slice(1)),r=f[6],s=f[7]):(f=[r,s,r,s,l,h,l,h],r=l,s=h);for(var v=0,y=i.length;v<y;v++){var b=i[v];if("M"==b[0])a=c=b[1],o=u=b[2];else{"C"==b[0]?(p=[a,o].concat(b.slice(1)),a=p[6],o=p[7]):(p=[a,o,a,o,c,u,c,u],a=c,o=u);var w=mt(f,p,n);if(n)d+=w;else{for(var _=0,k=w.length;_<k;_++)w[_].segment1=g,w[_].segment2=v,w[_].bez1=f,w[_].bez2=p;d=d.concat(w)}}}}}return d}e.findDotsAtSegment=function(t,e,i,n,r,s,a,o,l){var h=1-l,c=B(h,3),u=B(h,2),f=l*l,p=f*l,d=c*t+3*u*l*i+3*h*l*l*r+p*a,g=c*e+3*u*l*n+3*h*l*l*s+p*o,m=t+2*l*(i-t)+f*(r-2*i+t),x=e+2*l*(n-e)+f*(s-2*n+e),v=i+2*l*(r-i)+f*(a-2*r+i),y=n+2*l*(s-n)+f*(o-2*s+n),b=h*t+l*i,w=h*e+l*n,_=h*r+l*a,S=h*s+l*o,M=90-180*k.atan2(m-v,x-y)/A;return(m>v||x<y)&&(M+=180),{x:d,y:g,m:{x:m,y:x},n:{x:v,y:y},start:{x:b,y:w},end:{x:_,y:S},alpha:M}},e.bezierBBox=function(t,i,n,r,s,a,o,l){e.is(t,"array")||(t=[t,i,n,r,s,a,o,l]);var h=Ct.apply(null,t);return{x:h.min.x,y:h.min.y,x2:h.max.x,y2:h.max.y,width:h.max.x-h.min.x,height:h.max.y-h.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.x<i.x2&&t.x>i.x||i.x<t.x2&&i.x>t.x)&&(t.y<i.y2&&t.y>i.y||i.y<t.y2&&i.y>t.y)},e.pathIntersection=function(t,e){return xt(t,e)},e.pathIntersectionNumber=function(t,e){return xt(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&xt(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var vt=e.pathBBox=function(t){var e=ft(t);if(e.bbox)return it(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,r=0,s=[],a=[],o=0,l=(t=Bt(t)).length;o<l;o++)if("M"==(i=t[o])[0])n=i[1],r=i[2],s.push(n),a.push(r);else{var h=Ct(n,r,i[1],i[2],i[3],i[4],i[5],i[6]);s=s[d](h.min.x,h.max.x),a=a[d](h.min.y,h.max.y),n=i[5],r=i[6]}var c=M[p](0,s),u=M[p](0,a),f=S[p](0,s),g=S[p](0,a),m=f-c,x=g-u,v={x:c,y:u,x2:f,y2:g,width:m,height:x,cx:c+m/2,cy:u+x/2};return e.bbox=it(v),v},yt=function(t){var i=it(t);return i.toString=e._path2string,i},bt=e._pathToRelative=function(t){var i=ft(t);if(i.rel)return yt(i.rel);e.is(t,T)&&e.is(t&&t[0],T)||(t=e.parsePathString(t));var n=[],r=0,s=0,a=0,o=0,l=0;"M"==t[0][0]&&(a=r=t[0][1],o=s=t[0][2],l++,n.push(["M",r,s]));for(var h=l,c=t.length;h<c;h++){var u=n[h]=[],f=t[h];if(f[0]!=_.call(f[0]))switch(u[0]=_.call(f[0]),u[0]){case"a":u[1]=f[1],u[2]=f[2],u[3]=f[3],u[4]=f[4],u[5]=f[5],u[6]=+(f[6]-r).toFixed(3),u[7]=+(f[7]-s).toFixed(3);break;case"v":u[1]=+(f[1]-s).toFixed(3);break;case"m":a=f[1],o=f[2];default:for(var p=1,d=f.length;p<d;p++)u[p]=+(f[p]-(p%2?r:s)).toFixed(3)}else{u=n[h]=[],"m"==f[0]&&(a=f[1]+r,o=f[2]+s);for(var g=0,m=f.length;g<m;g++)n[h][g]=f[g]}var x=n[h].length;switch(n[h][0]){case"z":r=a,s=o;break;case"h":r+=+n[h][x-1];break;case"v":s+=+n[h][x-1];break;default:r+=+n[h][x-2],s+=+n[h][x-1]}}return n.toString=e._path2string,i.rel=yt(n),n},wt=e._pathToAbsolute=function(t){var i=ft(t);if(i.abs)return yt(i.abs);if(e.is(t,T)&&e.is(t&&t[0],T)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],r=0,s=0,a=0,o=0,l=0;"M"==t[0][0]&&(a=r=+t[0][1],o=s=+t[0][2],l++,n[0]=["M",r,s]);for(var h,c,u=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),f=l,p=t.length;f<p;f++){if(n.push(h=[]),(c=t[f])[0]!=O.call(c[0]))switch(h[0]=O.call(c[0]),h[0]){case"A":h[1]=c[1],h[2]=c[2],h[3]=c[3],h[4]=c[4],h[5]=c[5],h[6]=+(c[6]+r),h[7]=+(c[7]+s);break;case"V":h[1]=+c[1]+s;break;case"H":h[1]=+c[1]+r;break;case"R":for(var g=[r,s][d](c.slice(1)),m=2,x=g.length;m<x;m++)g[m]=+g[m]+r,g[++m]=+g[m]+s;n.pop(),n=n[d](ut(g,u));break;case"M":a=+c[1]+r,o=+c[2]+s;default:for(m=1,x=c.length;m<x;m++)h[m]=+c[m]+(m%2?r:s)}else if("R"==c[0])g=[r,s][d](c.slice(1)),n.pop(),n=n[d](ut(g,u)),h=["R"][d](c.slice(-2));else for(var v=0,y=c.length;v<y;v++)h[v]=c[v];switch(h[0]){case"Z":r=a,s=o;break;case"H":r=h[1];break;case"V":s=h[1];break;case"M":a=h[h.length-2],o=h[h.length-1];default:r=h[h.length-2],s=h[h.length-1]}}return n.toString=e._path2string,i.abs=yt(n),n},_t=function(t,e,i,n){return[t,e,i,n,i,n]},kt=function(t,e,i,n,r,s){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*r+2/3*i,1/3*s+2/3*n,r,s]},St=function(t,e,i,n,r,s,a,o,l,h){var c,u=120*A/180,f=A/180*(+r||0),p=[],g=ht((function(t,e,i){return{x:t*k.cos(i)-e*k.sin(i),y:t*k.sin(i)+e*k.cos(i)}}));if(h)B=h[0],F=h[1],S=h[2],M=h[3];else{t=(c=g(t,e,-f)).x,e=c.y;var m=(t-(o=(c=g(o,l,-f)).x))/2,x=(e-(l=c.y))/2,v=m*m/(i*i)+x*x/(n*n);v>1&&(i*=v=k.sqrt(v),n*=v);var b=i*i,w=n*n,_=(s==a?-1:1)*k.sqrt(C((b*w-b*x*x-w*m*m)/(b*x*x+w*m*m))),S=_*i*x/n+(t+o)/2,M=_*-n*m/i+(e+l)/2,B=k.asin(((e-M)/n).toFixed(9)),F=k.asin(((l-M)/n).toFixed(9));(B=t<S?A-B:B)<0&&(B=2*A+B),(F=o<S?A-F:F)<0&&(F=2*A+F),a&&B>F&&(B-=2*A),!a&&F>B&&(F-=2*A)}var T=F-B;if(C(T)>u){var z=F,E=o,N=l;F=B+u*(a&&F>B?1:-1),o=S+i*k.cos(F),l=M+n*k.sin(F),p=St(o,l,i,n,r,0,a,E,N,[F,z,S,M])}T=F-B;var L=k.cos(B),$=k.sin(B),P=k.cos(F),V=k.sin(F),O=k.tan(T/4),R=4/3*i*O,j=4/3*n*O,I=[t,e],D=[t+R*$,e-j*L],Y=[o+R*V,l-j*P],q=[o,l];if(D[0]=2*I[0]-D[0],D[1]=2*I[1]-D[1],h)return[D,Y,q][d](p);for(var W=[],G=0,H=(p=[D,Y,q][d](p).join()[y](",")).length;G<H;G++)W[G]=G%2?g(p[G-1],p[G],f).y:g(p[G],p[G+1],f).x;return W},Mt=function(t,e,i,n,r,s,a,o,l){var h=1-l;return{x:B(h,3)*t+3*B(h,2)*l*i+3*h*l*l*r+B(l,3)*a,y:B(h,3)*e+3*B(h,2)*l*n+3*h*l*l*s+B(l,3)*o}},Ct=ht((function(t,e,i,n,r,s,a,o){var l,h=r-2*i+t-(a-2*r+i),c=2*(i-t)-2*(r-i),u=t-i,f=(-c+k.sqrt(c*c-4*h*u))/2/h,d=(-c-k.sqrt(c*c-4*h*u))/2/h,g=[e,o],m=[t,a];return C(f)>"1e12"&&(f=.5),C(d)>"1e12"&&(d=.5),f>0&&f<1&&(l=Mt(t,e,i,n,r,s,a,o,f),m.push(l.x),g.push(l.y)),d>0&&d<1&&(l=Mt(t,e,i,n,r,s,a,o,d),m.push(l.x),g.push(l.y)),h=s-2*n+e-(o-2*s+n),u=e-n,f=(-(c=2*(n-e)-2*(s-n))+k.sqrt(c*c-4*h*u))/2/h,d=(-c-k.sqrt(c*c-4*h*u))/2/h,C(f)>"1e12"&&(f=.5),C(d)>"1e12"&&(d=.5),f>0&&f<1&&(l=Mt(t,e,i,n,r,s,a,o,f),m.push(l.x),g.push(l.y)),d>0&&d<1&&(l=Mt(t,e,i,n,r,s,a,o,d),m.push(l.x),g.push(l.y)),{min:{x:M[p](0,m),y:M[p](0,g)},max:{x:S[p](0,m),y:S[p](0,g)}}})),Bt=e._path2curve=ht((function(t,e){var i=!e&&ft(t);if(!e&&i.curve)return yt(i.curve);for(var n=wt(t),r=e&&wt(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(t,e,i){var n,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][d](St[p](0,[e.x,e.y][d](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][d](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][d](kt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][d](kt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][d](_t(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][d](_t(e.x,e.y,t[1],e.y));break;case"V":t=["C"][d](_t(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][d](_t(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",r&&(u[e]="A"),t.splice(e++,0,["C"][d](i.splice(0,6)));t.splice(e,1),x=S(n.length,r&&r.length||0)}},h=function(t,e,i,s,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",s.x,s.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],x=S(n.length,r&&r.length||0))},c=[],u=[],f="",g="",m=0,x=S(n.length,r&&r.length||0);m<x;m++){n[m]&&(f=n[m][0]),"C"!=f&&(c[m]=f,m&&(g=c[m-1])),n[m]=o(n[m],s,g),"A"!=c[m]&&"C"==f&&(c[m]="C"),l(n,m),r&&(r[m]&&(f=r[m][0]),"C"!=f&&(u[m]=f,m&&(g=u[m-1])),r[m]=o(r[m],a,g),"A"!=u[m]&&"C"==f&&(u[m]="C"),l(r,m)),h(n,r,s,a,m),h(r,n,a,s,m);var v=n[m],y=r&&r[m],b=v.length,w=r&&y.length;s.x=v[b-2],s.y=v[b-1],s.bx=P(v[b-4])||s.x,s.by=P(v[b-3])||s.y,a.bx=r&&(P(y[w-4])||a.x),a.by=r&&(P(y[w-3])||a.y),a.x=r&&y[w-2],a.y=r&&y[w-1]}return r||(i.curve=yt(n)),r?[n,r]:n}),null,yt),At=(e._parseDots=ht((function(t){for(var i=[],n=0,r=t.length;n<r;n++){var s={},a=t[n].match(/^([^:]*):?([\d\.]*)/);if(s.color=e.getRGB(a[1]),s.color.error)return null;s.opacity=s.color.opacity,s.color=s.color.hex,a[2]&&(s.offset=a[2]+"%"),i.push(s)}for(n=1,r=i.length-1;n<r;n++)if(!i[n].offset){for(var o=P(i[n-1].offset||0),l=0,h=n+1;h<r;h++)if(i[h].offset){l=i[h].offset;break}l||(l=100,h=r);for(var c=((l=P(l))-o)/(h-n+1);n<h;n++)o+=c,i[n].offset=o+"%"}return i})),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Ft=(e._tofront=function(t,e){e.top!==t&&(At(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(At(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,i){At(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,i){At(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var i=vt(t),n={_:{transform:m},getBBox:function(){return i}};return Tt(n,e),n.matrix}),Tt=(e.transformPath=function(t,e){return K(t,Ft(t,e))},e._extractTransform=function(t,i){if(null==i)return t._.transform;i=v(i).replace(/\.{3}|\u2026/g,t._.transform||m);var n,r,s=e.parseTransformString(i),a=0,o=1,l=1,h=t._,c=new Nt;if(h.transform=s||[],s)for(var u=0,f=s.length;u<f;u++){var p,d,g,x,y,b=s[u],w=b.length,_=v(b[0]).toLowerCase(),k=b[0]!=_,S=k?c.invert():0;"t"==_&&3==w?k?(p=S.x(0,0),d=S.y(0,0),g=S.x(b[1],b[2]),x=S.y(b[1],b[2]),c.translate(g-p,x-d)):c.translate(b[1],b[2]):"r"==_?2==w?(y=y||t.getBBox(1),c.rotate(b[1],y.x+y.width/2,y.y+y.height/2),a+=b[1]):4==w&&(k?(g=S.x(b[2],b[3]),x=S.y(b[2],b[3]),c.rotate(b[1],g,x)):c.rotate(b[1],b[2],b[3]),a+=b[1]):"s"==_?2==w||3==w?(y=y||t.getBBox(1),c.scale(b[1],b[w-1],y.x+y.width/2,y.y+y.height/2),o*=b[1],l*=b[w-1]):5==w&&(k?(g=S.x(b[3],b[4]),x=S.y(b[3],b[4]),c.scale(b[1],b[2],g,x)):c.scale(b[1],b[2],b[3],b[4]),o*=b[1],l*=b[2]):"m"==_&&7==w&&c.add(b[1],b[2],b[3],b[4],b[5],b[6]),h.dirtyT=1,t.matrix=c}t.matrix=c,h.sx=o,h.sy=l,h.deg=a,h.dx=n=c.e,h.dy=r=c.f,1==o&&1==l&&!a&&h.bbox?(h.bbox.x+=+n,h.bbox.y+=+r):h.dirtyT=1}),zt=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Et=e._equaliseTransform=function(t,i){i=v(i).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],i=e.parseTransformString(i)||[];for(var n,r,s,a,o=S(t.length,i.length),l=[],h=[],c=0;c<o;c++){if(s=t[c]||zt(i[c]),a=i[c]||zt(s),s[0]!=a[0]||"r"==s[0].toLowerCase()&&(s[2]!=a[2]||s[3]!=a[3])||"s"==s[0].toLowerCase()&&(s[3]!=a[3]||s[4]!=a[4]))return;for(l[c]=[],h[c]=[],n=0,r=S(s.length,a.length);n<r;n++)n in s&&(l[c][n]=s[n]),n in a&&(h[c][n]=a[n])}return{from:l,to:h}};function Nt(t,e,i,n,r,s){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+s):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}e._getContainer=function(t,i,n,r){var s;if(null!=(s=null!=r||e.is(t,"object")?t:c.doc.getElementById(t)))return s.tagName?null==i?{container:s,width:s.style.pixelWidth||s.offsetWidth,height:s.style.pixelHeight||s.offsetHeight}:{container:s,width:i,height:n}:{container:1,x:t,y:i,width:n,height:r}},e.pathToRelative=bt,e._engine={},e.path2curve=Bt,e.matrix=function(t,e,i,n,r,s){return new Nt(t,e,i,n,r,s)},function(t){function i(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var e=k.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,i,n,r,s){var a,o,l,h,c=[[],[],[]],u=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[t,i,r],[e,n,s],[0,0,1]];for(t&&t instanceof Nt&&(f=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;a<3;a++)for(o=0;o<3;o++){for(h=0,l=0;l<3;l++)h+=u[a][l]*f[l][o];c[a][o]=h}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new Nt(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new Nt(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},t.rotate=function(t,i,n){t=e.rad(t),i=i||0,n=n||0;var r=+k.cos(t).toFixed(9),s=+k.sin(t).toFixed(9);this.add(r,s,-s,r,i,n),this.add(1,0,0,1,-i,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[v.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=k.sqrt(i(r[0])),n(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=k.sqrt(i(r[1])),n(r[1]),t.shear/=t.scaley;var s=-r[0][1],a=r[1][1];return a<0?(t.rotate=e.deg(k.acos(a)),s<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(k.asin(s)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[y]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:m)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:m)+(e.rotate?"r"+[e.rotate,0,0]:m)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Nt.prototype);for(var Lt=function(){this.returnValue=!1},$t=function(){return this.originalEvent.preventDefault()},Pt=function(){this.cancelBubble=!0},Vt=function(){return this.originalEvent.stopPropagation()},Ot=function(t){var e=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,i=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Rt=c.doc.addEventListener?function(t,e,i,n){var r=function(t){var e=Ot(t);return i.call(n,t,e.x,e.y)};if(t.addEventListener(e,r,!1),g&&w[e]){var s=function(e){for(var r=Ot(e),s=e,a=0,o=e.targetTouches&&e.targetTouches.length;a<o;a++)if(e.targetTouches[a].target==t){(e=e.targetTouches[a]).originalEvent=s,e.preventDefault=$t,e.stopPropagation=Vt;break}return i.call(n,e,r.x,r.y)};t.addEventListener(w[e],s,!1)}return function(){return t.removeEventListener(e,r,!1),g&&w[e]&&t.removeEventListener(w[e],s,!1),!0}}:c.doc.attachEvent?function(t,e,i,n){var r=function(t){t=t||c.win.event;var e=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,r=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,s=t.clientX+r,a=t.clientY+e;return t.preventDefault=t.preventDefault||Lt,t.stopPropagation=t.stopPropagation||Pt,i.call(n,t,s,a)};return t.attachEvent("on"+e,r),function(){return t.detachEvent("on"+e,r),!0}}:void 0,jt=[],It=function(e){for(var i,n=e.clientX,r=e.clientY,s=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,a=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,o=jt.length;o--;){if(i=jt[o],g&&e.touches){for(var l,h=e.touches.length;h--;)if((l=e.touches[h]).identifier==i.el._drag.id){n=l.clientX,r=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var u,f=i.el.node,p=f.nextSibling,d=f.parentNode,m=f.style.display;c.win.opera&&d.removeChild(f),f.style.display="none",u=i.el.paper.getElementByPoint(n,r),f.style.display=m,c.win.opera&&(p?d.insertBefore(f,p):d.appendChild(f)),u&&t("raphael.drag.over."+i.el.id,i.el,u),n+=a,r+=s,t("raphael.drag.move."+i.el.id,i.move_scope||i.el,n-i.el._drag.x,r-i.el._drag.y,n,r,e)}},Dt=function(i){e.unmousemove(It).unmouseup(Dt);for(var n,r=jt.length;r--;)(n=jt[r]).el._drag={},t("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,i);jt=[]},Yt=e.el={},qt=b.length;qt--;)!function(t){e[t]=Yt[t]=function(i,n){return e.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:Rt(this.shape||this.node||c.doc,t,i,n||this)})),this},e["un"+t]=Yt["un"+t]=function(i){for(var n=this.events||[],r=n.length;r--;)n[r].name!=t||!e.is(i,"undefined")&&n[r].f!=i||(n[r].unbind(),n.splice(r,1),!n.length&&delete this.events);return this}}(b[qt]);Yt.data=function(i,n){var r=H[this.id]=H[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(e.is(i,"object")){for(var s in i)i[h](s)&&this.data(s,i[s]);return this}return t("raphael.data.get."+this.id,this,r[i],i),r[i]}return r[i]=n,t("raphael.data.set."+this.id,this,n,i),this},Yt.removeData=function(t){return null==t?delete H[this.id]:H[this.id]&&delete H[this.id][t],this},Yt.getData=function(){return it(H[this.id]||{})},Yt.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},Yt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Wt=[];function Gt(){return this.x+x+this.y+x+this.width+" × "+this.height}Yt.drag=function(i,n,r,s,a,o){function l(l){(l.originalEvent||l).preventDefault();var h=l.clientX,u=l.clientY,f=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,p=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;if(this._drag.id=l.identifier,g&&l.touches)for(var d,m=l.touches.length;m--;)if(d=l.touches[m],this._drag.id=d.identifier,d.identifier==this._drag.id){h=d.clientX,u=d.clientY;break}this._drag.x=h+p,this._drag.y=u+f,!jt.length&&e.mousemove(It).mouseup(Dt),jt.push({el:this,move_scope:s,start_scope:a,end_scope:o}),n&&t.on("raphael.drag.start."+this.id,n),i&&t.on("raphael.drag.move."+this.id,i),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,a||s||this,this._drag.x,this._drag.y,l)}return this._drag={},Wt.push({el:this,start:l}),this.mousedown(l),this},Yt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},Yt.undrag=function(){for(var i=Wt.length;i--;)Wt[i].el==this&&(this.unmousedown(Wt[i].start),Wt.splice(i,1),t.unbind("raphael.drag.*."+this.id));!Wt.length&&e.unmousemove(It).unmouseup(Dt),jt=[]},n.circle=function(t,i,n){var r=e._engine.circle(this,t||0,i||0,n||0);return this.__set__&&this.__set__.push(r),r},n.rect=function(t,i,n,r,s){var a=e._engine.rect(this,t||0,i||0,n||0,r||0,s||0);return this.__set__&&this.__set__.push(a),a},n.ellipse=function(t,i,n,r){var s=e._engine.ellipse(this,t||0,i||0,n||0,r||0);return this.__set__&&this.__set__.push(s),s},n.path=function(t){t&&!e.is(t,"string")&&!e.is(t[0],T)&&(t+=m);var i=e._engine.path(e.format[p](e,arguments),this);return this.__set__&&this.__set__.push(i),i},n.image=function(t,i,n,r,s){var a=e._engine.image(this,t||"about:blank",i||0,n||0,r||0,s||0);return this.__set__&&this.__set__.push(a),a},n.text=function(t,i,n){var r=e._engine.text(this,t||0,i||0,v(n));return this.__set__&&this.__set__.push(r),r},n.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var i=new ue(t);return this.__set__&&this.__set__.push(i),i.paper=this,i.type="set",i},n.setStart=function(t){this.__set__=t||this.set()},n.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},n.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},n.setSize=function(t,i){return e._engine.setSize.call(this,t,i)},n.setViewBox=function(t,i,n,r,s){return e._engine.setViewBox.call(this,t,i,n,r,s)},n.top=n.bottom=null,n.raphael=e,n.getElementByPoint=function(t,e){var i,n,r,s,a,o,l,h=this.canvas,u=c.doc.elementFromPoint(t,e);if(c.win.opera&&"svg"==u.tagName){var f=(n=(i=h).getBoundingClientRect(),s=(r=i.ownerDocument).body,o=(a=r.documentElement).clientTop||s.clientTop||0,l=a.clientLeft||s.clientLeft||0,{y:n.top+(c.win.pageYOffset||a.scrollTop||s.scrollTop)-o,x:n.left+(c.win.pageXOffset||a.scrollLeft||s.scrollLeft)-l}),p=h.createSVGRect();p.x=t-f.x,p.y=e-f.y,p.width=p.height=1;var d=h.getIntersectionList(p,null);d.length&&(u=d[d.length-1])}if(!u)return null;for(;u.parentNode&&u!=h.parentNode&&!u.raphael;)u=u.parentNode;return u==this.canvas.parentNode&&(u=h),u&&u.raphael?this.getById(u.raphaelid):null},n.getElementsByBBox=function(t){var i=this.set();return this.forEach((function(n){e.isBBoxIntersect(n.getBBox(),t)&&i.push(n)})),i},n.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},n.forEach=function(t,e){for(var i=this.bottom;i;){if(!1===t.call(e,i))return this;i=i.next}return this},n.getElementsByPoint=function(t,e){var i=this.set();return this.forEach((function(n){n.isPointInside(t,e)&&i.push(n)})),i},Yt.isPointInside=function(t,i){var n=this.realPath=J[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=e.transformPath(n,this.attr("transform"))),e.isPointInsidePath(n,t,i)},Yt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=J[this.type](this),e.bboxwt=vt(this.realPath),e.bboxwt.toString=Gt,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=J[this.type](this)),e.bbox=vt(K(this.realPath,this.matrix)),e.bbox.toString=Gt,e.dirty=e.dirtyT=0),e.bbox)},Yt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Yt.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,r=n.set(),s=this.realPath||J[this.type](this);s=this.matrix?K(s,this.matrix):s;for(var a=1;a<i+1;a++)r.push(n.path(s).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*a).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var Ht=function(t,i,n,r,s,a,o,l,h){return null==h?dt(t,i,n,r,s,a,o,l):e.findDotsAtSegment(t,i,n,r,s,a,o,l,function(t,e,i,n,r,s,a,o,l){if(!(l<0||dt(t,e,i,n,r,s,a,o)<l)){var h,c=.5,u=1-c;for(h=dt(t,e,i,n,r,s,a,o,u);C(h-l)>.01;)h=dt(t,e,i,n,r,s,a,o,u+=(h<l?1:-1)*(c/=2));return u}}(t,i,n,r,s,a,o,l,h))},Xt=function(t,i){return function(n,r,s){for(var a,o,l,h,c,u="",f={},p=0,d=0,g=(n=Bt(n)).length;d<g;d++){if("M"==(l=n[d])[0])a=+l[1],o=+l[2];else{if(p+(h=Ht(a,o,l[1],l[2],l[3],l[4],l[5],l[6]))>r){if(i&&!f.start){if(u+=["C"+(c=Ht(a,o,l[1],l[2],l[3],l[4],l[5],l[6],r-p)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],s)return u;f.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),p+=h,a=+l[5],o=+l[6];continue}if(!t&&!i)return{x:(c=Ht(a,o,l[1],l[2],l[3],l[4],l[5],l[6],r-p)).x,y:c.y,alpha:c.alpha}}p+=h,a=+l[5],o=+l[6]}u+=l.shift()+l}return f.end=u,(c=t?p:i?f:e.findDotsAtSegment(a,o,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},Ut=Xt(1),Zt=Xt(),Qt=Xt(0,1);e.getTotalLength=Ut,e.getPointAtLength=Zt,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return Qt(t,e).end;var n=Qt(t,i,1);return e?Qt(n,e).end:n},Yt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Ut(t)},Yt.getPointAtLength=function(t){var e=this.getPath();if(e)return Zt(e,t)},Yt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},Yt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var Jt=e.easing_formulas={linear:function(t){return t},"<":function(t){return B(t,1.7)},">":function(t){return B(t,.48)},"<>":function(t){var e=.48-t/1.04,i=k.sqrt(.1734+e*e),n=i-e,r=-i-e,s=B(C(n),1/3)*(n<0?-1:1)+B(C(r),1/3)*(r<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:B(2,-10*t)*k.sin(2*A*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};Jt.easeIn=Jt["ease-in"]=Jt["<"],Jt.easeOut=Jt["ease-out"]=Jt[">"],Jt.easeInOut=Jt["ease-in-out"]=Jt["<>"],Jt["back-in"]=Jt.backIn,Jt["back-out"]=Jt.backOut;var Kt=[],te=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ee=function(){for(var i=+new Date,n=0;n<Kt.length;n++){var r=Kt[n];if(!r.el.removed&&!r.paused){var s,a,o=i-r.start,l=r.ms,c=r.easing,u=r.from,f=r.diff,p=r.to,g=(r.t,r.el),m={},v={};if(r.initstatus?(o=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*l,r.status=r.initstatus,delete r.initstatus,r.stop&&Kt.splice(n--,1)):r.status=(r.prev+(r.percent-r.prev)*(o/l))/r.anim.top,!(o<0))if(o<l){var y=c(o/l);for(var b in u)if(u[h](b)){switch(j[b]){case F:s=+u[b]+y*l*f[b];break;case"colour":s="rgb("+[ie($(u[b].r+y*l*f[b].r)),ie($(u[b].g+y*l*f[b].g)),ie($(u[b].b+y*l*f[b].b))].join(",")+")";break;case"path":s=[];for(var w=0,_=u[b].length;w<_;w++){s[w]=[u[b][w][0]];for(var k=1,S=u[b][w].length;k<S;k++)s[w][k]=+u[b][w][k]+y*l*f[b][w][k];s[w]=s[w].join(x)}s=s.join(x);break;case"transform":if(f[b].real)for(s=[],w=0,_=u[b].length;w<_;w++)for(s[w]=[u[b][w][0]],k=1,S=u[b][w].length;k<S;k++)s[w][k]=u[b][w][k]+y*l*f[b][w][k];else{var M=function(t){return+u[b][t]+y*l*f[b][t]};s=[["m",M(0),M(1),M(2),M(3),M(4),M(5)]]}break;case"csv":if("clip-rect"==b)for(s=[],w=4;w--;)s[w]=+u[b][w]+y*l*f[b][w];break;default:var C=[][d](u[b]);for(s=[],w=g.paper.customAttributes[b].length;w--;)s[w]=+C[w]+y*l*f[b][w]}m[b]=s}g.attr(m),function(e,i,n){setTimeout((function(){t("raphael.anim.frame."+e,i,n)}))}(g.id,g,r.anim)}else{if(function(i,n,r){setTimeout((function(){t("raphael.anim.frame."+n.id,n,r),t("raphael.anim.finish."+n.id,n,r),e.is(i,"function")&&i.call(n)}))}(r.callback,g,r.anim),g.attr(p),Kt.splice(n--,1),r.repeat>1&&!r.next){for(a in p)p[h](a)&&(v[a]=r.totalOrigin[a]);r.el.attr(v),se(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&se(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}Kt.length&&te(ee)},ie=function(t){return t>255?255:t<0?0:t};function ne(t,e,i,n,r,s){var a=3*e,o=3*(n-e)-a,l=1-a-o,h=3*i,c=3*(r-i)-h,u=1-h-c;function f(t){return((l*t+o)*t+a)*t}return function(t,e){var i=function(t,e){var i,n,r,s,h,c;for(r=t,c=0;c<8;c++){if(s=f(r)-t,C(s)<e)return r;if(C(h=(3*l*r+2*o)*r+a)<1e-6)break;r-=s/h}if((r=t)<(i=0))return i;if(r>(n=1))return n;for(;i<n;){if(s=f(r),C(s-t)<e)return r;t>s?i=r:n=r,r=(n-i)/2+i}return r}(t,e);return((u*i+c)*i+h)*i}(t,1/(200*s))}function re(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[h](r)&&(n[P(r)]=t[r],i.push(P(r)));i.sort(X)}this.anim=n,this.top=i[i.length-1],this.percents=i}function se(i,n,r,s,o,l){r=P(r);var c,u,f,p,g,m,x=i.ms,b={},w={},_={};if(s)for(S=0,M=Kt.length;S<M;S++){var k=Kt[S];if(k.el.id==n.id&&k.anim==i){k.percent!=r?(Kt.splice(S,1),f=1):u=k,n.attr(k.totalOrigin);break}}else s=+w;for(var S=0,M=i.percents.length;S<M;S++){if(i.percents[S]==r||i.percents[S]>s*i.top){r=i.percents[S],g=i.percents[S-1]||0,x=x/i.top*(r-g),p=i.percents[S+1],c=i.anim[r];break}s&&n.attr(i.anim[i.percents[S]])}if(c){if(u)u.initstatus=s,u.start=new Date-u.ms*s;else{for(var C in c)if(c[h](C)&&(j[h](C)||n.paper.customAttributes[h](C)))switch(b[C]=n.attr(C),null==b[C]&&(b[C]=R[C]),w[C]=c[C],j[C]){case F:_[C]=(w[C]-b[C])/x;break;case"colour":b[C]=e.getRGB(b[C]);var B=e.getRGB(w[C]);_[C]={r:(B.r-b[C].r)/x,g:(B.g-b[C].g)/x,b:(B.b-b[C].b)/x};break;case"path":var A=Bt(b[C],w[C]),T=A[1];for(b[C]=A[0],_[C]=[],S=0,M=b[C].length;S<M;S++){_[C][S]=[0];for(var z=1,E=b[C][S].length;z<E;z++)_[C][S][z]=(T[S][z]-b[C][S][z])/x}break;case"transform":var N=n._,$=Et(N[C],w[C]);if($)for(b[C]=$.from,w[C]=$.to,_[C]=[],_[C].real=!0,S=0,M=b[C].length;S<M;S++)for(_[C][S]=[b[C][S][0]],z=1,E=b[C][S].length;z<E;z++)_[C][S][z]=(w[C][S][z]-b[C][S][z])/x;else{var V=n.matrix||new Nt,O={_:{transform:N.transform},getBBox:function(){return n.getBBox(1)}};b[C]=[V.a,V.b,V.c,V.d,V.e,V.f],Tt(O,w[C]),w[C]=O._.transform,_[C]=[(O.matrix.a-V.a)/x,(O.matrix.b-V.b)/x,(O.matrix.c-V.c)/x,(O.matrix.d-V.d)/x,(O.matrix.e-V.e)/x,(O.matrix.f-V.f)/x]}break;case"csv":var I=v(c[C])[y](a),D=v(b[C])[y](a);if("clip-rect"==C)for(b[C]=D,_[C]=[],S=D.length;S--;)_[C][S]=(I[S]-b[C][S])/x;w[C]=I;break;default:for(I=[][d](c[C]),D=[][d](b[C]),_[C]=[],S=n.paper.customAttributes[C].length;S--;)_[C][S]=((I[S]||0)-(D[S]||0))/x}var Y=c.easing,q=e.easing_formulas[Y];if(!q)if((q=v(Y).match(L))&&5==q.length){var W=q;q=function(t){return ne(t,+W[1],+W[2],+W[3],+W[4],x)}}else q=U;if(k={anim:i,percent:r,timestamp:m=c.start||i.start||+new Date,start:m+(i.del||0),status:0,initstatus:s||0,stop:!1,ms:x,easing:q,from:b,diff:_,to:w,el:n,callback:c.callback,prev:g,next:p,repeat:l||i.times,origin:n.attr(),totalOrigin:o},Kt.push(k),s&&!u&&!f&&(k.stop=!0,k.start=new Date-x*s,1==Kt.length))return ee();f&&(k.start=new Date-k.ms*s),1==Kt.length&&te(ee)}t("raphael.anim.start."+n.id,n,i)}}function ae(t){for(var e=0;e<Kt.length;e++)Kt[e].el.paper==t&&Kt.splice(e--,1)}Yt.animateWith=function(t,i,n,r,s,a){if(this.removed)return a&&a.call(this),this;var o=n instanceof re?n:e.animation(n,r,s,a);se(o,this,o.percents[0],null,this.attr());for(var l=0,h=Kt.length;l<h;l++)if(Kt[l].anim==i&&Kt[l].el==t){Kt[h-1].start=Kt[l].start;break}return this},Yt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},re.prototype.delay=function(t){var e=new re(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},re.prototype.repeat=function(t){var e=new re(this.anim,this.ms);return e.del=this.del,e.times=k.floor(S(t,0))||1,e},e.animation=function(t,i,n,r){if(t instanceof re)return t;!e.is(n,"function")&&n||(r=r||n||null,n=null),t=Object(t),i=+i||0;var s,a,o={};for(a in t)t[h](a)&&P(a)!=a&&P(a)+"%"!=a&&(s=!0,o[a]=t[a]);if(s)return n&&(o.easing=n),r&&(o.callback=r),new re({100:o},i);if(r){var l=0;for(var c in t){var u=V(c);t[h](c)&&u>l&&(l=u)}!t[l+="%"].callback&&(t[l].callback=r)}return new re(t,i)},Yt.animate=function(t,i,n,r){if(this.removed)return r&&r.call(this),this;var s=t instanceof re?t:e.animation(t,i,n,r);return se(s,this,s.percents[0],null,this.attr()),this},Yt.setTime=function(t,e){return t&&null!=e&&this.status(t,M(e,t.ms)/t.ms),this},Yt.status=function(t,e){var i,n,r=[],s=0;if(null!=e)return se(t,this,-1,M(e,1)),this;for(i=Kt.length;s<i;s++)if((n=Kt[s]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;r.push({anim:n.anim,status:n.status})}return t?0:r},Yt.pause=function(e){for(var i=0;i<Kt.length;i++)Kt[i].el.id!=this.id||e&&Kt[i].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,Kt[i].anim)&&(Kt[i].paused=!0);return this},Yt.resume=function(e){for(var i=0;i<Kt.length;i++)if(Kt[i].el.id==this.id&&(!e||Kt[i].anim==e)){var n=Kt[i];!1!==t("raphael.anim.resume."+this.id,this,n.anim)&&(delete n.paused,this.status(n.anim,n.status))}return this},Yt.stop=function(e){for(var i=0;i<Kt.length;i++)Kt[i].el.id!=this.id||e&&Kt[i].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,Kt[i].anim)&&Kt.splice(i--,1);return this},t.on("raphael.remove",ae),t.on("raphael.clear",ae),Yt.toString=function(){return"Raphaël’s object"};var oe,le,he,ce,ue=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=Yt.constructor&&t[e].constructor!=ue||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},fe=ue.prototype;for(var pe in fe.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)!(t=arguments[i])||t.constructor!=Yt.constructor&&t.constructor!=ue||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},fe.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},fe.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(!1===t.call(e,this.items[i],i))return this;return this},Yt)Yt[h](pe)&&(fe[pe]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t][p](i,e)}))}}(pe));return fe.attr=function(t,i){if(t&&e.is(t,T)&&e.is(t[0],"object"))for(var n=0,r=t.length;n<r;n++)this.items[n].attr(t[n]);else for(var s=0,a=this.items.length;s<a;s++)this.items[s].attr(t,i);return this},fe.clear=function(){for(;this.length;)this.pop()},fe.splice=function(t,e,i){t=t<0?S(this.length+t,0):t,e=S(0,M(this.length-t,e));var n,r=[],s=[],a=[];for(n=2;n<arguments.length;n++)a.push(arguments[n]);for(n=0;n<e;n++)s.push(this[t+n]);for(;n<this.length-t;n++)r.push(this[t+n]);var o=a.length;for(n=0;n<o+r.length;n++)this.items[t+n]=this[t+n]=n<o?a[n]:r[n-o];for(n=this.items.length=this.length-=e-o;this[n];)delete this[n++];return new ue(s)},fe.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},fe.animate=function(t,i,n,r){(e.is(n,"function")||!n)&&(r=n||null);var s,a,o=this.items.length,l=o,h=this;if(!o)return this;r&&(a=function(){! --o&&r.call(h)}),n=e.is(n,"string")?n:a;var c=e.animation(t,i,n,a);for(s=this.items[--l].animate(c);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(s,c,c),this.items[l]&&!this.items[l].removed||o--;return this},fe.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},fe.getBBox=function(){for(var t=[],e=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var s=this.items[r].getBBox();t.push(s.x),e.push(s.y),i.push(s.x+s.width),n.push(s.y+s.height)}return{x:t=M[p](0,t),y:e=M[p](0,e),x2:i=S[p](0,i),y2:n=S[p](0,n),width:i-t,height:n-e}},fe.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},fe.toString=function(){return"Raphaël‘s set"},fe.glow=function(t){var e=this.paper.set();return this.forEach((function(i,n){var r=i.glow(t);null!=r&&r.forEach((function(t,i){e.push(t)}))})),e},fe.isPointInside=function(t,e){var i=!1;return this.forEach((function(n){if(n.isPointInside(t,e))return i=!0,!1})),i},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var n in t.face)t.face[h](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg)for(var r in e.face["units-per-em"]=V(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[h](r)){var s=t.glyphs[r];if(e.glyphs[r]={w:s.w,k:{},d:s.d&&"M"+s.d.replace(/[mlcxtrv]/g,(function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"}))+"z"},s.k)for(var a in s.k)s[h](a)&&(e.glyphs[r].k[a]=s.k[a])}return t},n.getFont=function(t,i,n,r){if(r=r||"normal",n=n||"normal",i=+i||{normal:400,bold:700,lighter:300,bolder:800}[i]||400,e.fonts){var s,a=e.fonts[t];if(!a){var o=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,m)+"(\\s|$)","i");for(var l in e.fonts)if(e.fonts[h](l)&&o.test(l)){a=e.fonts[l];break}}if(a)for(var c=0,u=a.length;c<u&&((s=a[c]).face["font-weight"]!=i||s.face["font-style"]!=n&&s.face["font-style"]||s.face["font-stretch"]!=r);c++);return s}},n.print=function(t,i,n,r,s,o,l,h){o=o||"middle",l=S(M(l||0,1),-1),h=S(M(h||1,3),1);var c,u=v(n)[y](m),f=0,p=0,d=m;if(e.is(r,"string")&&(r=this.getFont(r)),r){c=(s||16)/r.face["units-per-em"];for(var g=r.face.bbox[y](a),x=+g[0],b=g[3]-g[1],w=0,_=+g[1]+("baseline"==o?b+ +r.face.descent:b/2),k=0,C=u.length;k<C;k++){if("\n"==u[k])f=0,A=0,p=0,w+=b*h;else{var B=p&&r.glyphs[u[k-1]]||{},A=r.glyphs[u[k]];f+=p?(B.w||r.w)+(B.k&&B.k[u[k]]||0)+r.w*l:0,p=1}A&&A.d&&(d+=e.transformPath(A.d,["t",f*c,w*c,"s",c,c,x,_,"t",(t-x)/c,(i-_)/c]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},n.add=function(t){if(e.is(t,"array"))for(var i,n=this.set(),r=0,s=t.length;r<s;r++)i=t[r]||{},o[h](i.type)&&n.push(this[i.type]().attr(i));return n},e.format=function(t,i){var n=e.is(i,T)?[0][d](i):arguments;return t&&e.is(t,"string")&&n.length-1&&(t=t.replace(l,(function(t,e){return null==n[++e]?m:n[e]}))),t||m},e.fullfill=(oe=/\{([^\}]+)\}/g,le=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(oe,(function(t,i){return function(t,e,i){var n=i;return e.replace(le,(function(t,e,i,r,s){e=e||r,n&&(e in n&&(n=n[e]),"function"==typeof n&&s&&(n=n()))})),n=(null==n||n==i?t:n)+""}(t,i,e)}))}),e.ninja=function(){if(u.was)c.win.Raphael=u.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=fe,t.on("raphael.DOMload",(function(){i=!0})),null==(he=document).readyState&&he.addEventListener&&(he.addEventListener("DOMContentLoaded",ce=function(){he.removeEventListener("DOMContentLoaded",ce,!1),he.readyState="complete"},!1),he.readyState="loading"),function t(){/in/.test(he.readyState)?setTimeout(t,9):e.eve("raphael.DOMload")}(),e}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r;n=[i(0),i(3),i(4)],void 0===(r=function(t){return t}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r,s,a,o,l,h,c,u,f,p,d,g,m;a="hasOwnProperty",o=/[\.\/]/,l=/\s*,\s*/,h=function(t,e){return t-e},c={n:{}},u=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},f=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},p=Object.prototype.toString,d=String,g=Array.isArray||function(t){return t instanceof Array||"[object Array]"==p.call(t)},(m=function(t,e){var i,n=s,a=Array.prototype.slice.call(arguments,2),o=m.listeners(t),l=0,c=[],p={},d=[],g=r;d.firstDefined=u,d.lastDefined=f,r=t,s=0;for(var x=0,v=o.length;x<v;x++)"zIndex"in o[x]&&(c.push(o[x].zIndex),o[x].zIndex<0&&(p[o[x].zIndex]=o[x]));for(c.sort(h);c[l]<0;)if(i=p[c[l++]],d.push(i.apply(e,a)),s)return s=n,d;for(x=0;x<v;x++)if("zIndex"in(i=o[x]))if(i.zIndex==c[l]){if(d.push(i.apply(e,a)),s)break;do{if((i=p[c[++l]])&&d.push(i.apply(e,a)),s)break}while(i)}else p[i.zIndex]=i;else if(d.push(i.apply(e,a)),s)break;return s=n,r=g,d})._events=c,m.listeners=function(t){var e,i,n,r,s,a,l,h,u=g(t)?t:t.split(o),f=c,p=[f],d=[];for(r=0,s=u.length;r<s;r++){for(h=[],a=0,l=p.length;a<l;a++)for(i=[(f=p[a].n)[u[r]],f["*"]],n=2;n--;)(e=i[n])&&(h.push(e),d=d.concat(e.f||[]));p=h}return d},m.separator=function(t){t?(t="["+(t=d(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",o=new RegExp(t)):o=/[\.\/]/},m.on=function(t,e){if("function"!=typeof e)return function(){};for(var i=g(t)?g(t[0])?t:[t]:d(t).split(l),n=0,r=i.length;n<r;n++)!function(t){for(var i,n=g(t)?t:d(t).split(o),r=c,s=0,a=n.length;s<a;s++)r=(r=r.n).hasOwnProperty(n[s])&&r[n[s]]||(r[n[s]]={n:{}});for(r.f=r.f||[],s=0,a=r.f.length;s<a;s++)if(r.f[s]==e){i=!0;break}!i&&r.f.push(e)}(i[n]);return function(t){+t==+t&&(e.zIndex=+t)}},m.f=function(t){var e=[].slice.call(arguments,1);return function(){m.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},m.stop=function(){s=1},m.nt=function(t){var e=g(r)?r.join("."):r;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},m.nts=function(){return g(r)?r:r.split(o)},m.off=m.unbind=function(t,e){if(t){var i=g(t)?g(t[0])?t:[t]:d(t).split(l);if(i.length>1)for(var n=0,r=i.length;n<r;n++)m.off(i[n],e);else{i=g(t)?t:d(t).split(o);var s,h,u,f,p,x=[c];for(n=0,r=i.length;n<r;n++)for(f=0;f<x.length;f+=u.length-2){if(u=[f,1],s=x[f].n,"*"!=i[n])s[i[n]]&&u.push(s[i[n]]);else for(h in s)s[a](h)&&u.push(s[h]);x.splice.apply(x,u)}for(n=0,r=x.length;n<r;n++)for(s=x[n];s.n;){if(e){if(s.f){for(f=0,p=s.f.length;f<p;f++)if(s.f[f]==e){s.f.splice(f,1);break}!s.f.length&&delete s.f}for(h in s.n)if(s.n[a](h)&&s.n[h].f){var v=s.n[h].f;for(f=0,p=v.length;f<p;f++)if(v[f]==e){v.splice(f,1);break}!v.length&&delete s.n[h].f}}else for(h in delete s.f,s.n)s.n[a](h)&&s.n[h].f&&delete s.n[h].f;s=s.n}}}else m._events=c={n:{}}},m.once=function(t,e){var i=function(){return m.off(t,i),e.apply(this,arguments)};return m.on(t,i)},m.version="0.5.0",m.toString=function(){return"You are running Eve 0.5.0"},t.exports?t.exports=m:void 0===(n=function(){return m}.apply(e,[]))||(t.exports=n)},function(t,e,i){var n,r;n=[i(0)],void 0===(r=function(t){if(!t||t.svg){var e="hasOwnProperty",i=String,n=parseFloat,r=parseInt,s=Math,a=s.max,o=s.abs,l=s.pow,h=/[, ]+/,c=t.eve,u="",f=" ",p="http://www.w3.org/1999/xlink",d={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var m=function(n,r){if(r)for(var s in"string"==typeof n&&(n=m(n)),r)r[e](s)&&("xlink:"==s.substring(0,6)?n.setAttributeNS(p,s.substring(6),i(r[s])):n.setAttribute(s,i(r[s])));else(n=t._g.doc.createElementNS("http://www.w3.org/2000/svg",n)).style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},x=function(e,r){var h="linear",c=e.id+r,f=.5,p=.5,d=e.node,g=e.paper,x=d.style,y=t._g.doc.getElementById(c);if(!y){if(r=(r=i(r).replace(t._radial_gradient,(function(t,e,i){if(h="radial",e&&i){f=n(e);var r=2*((p=n(i))>.5)-1;l(f-.5,2)+l(p-.5,2)>.25&&(p=s.sqrt(.25-l(f-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return u}))).split(/\s*\-\s*/),"linear"==h){var b=r.shift();if(b=-n(b),isNaN(b))return null;var w=[0,0,s.cos(t.rad(b)),s.sin(t.rad(b))],_=1/(a(o(w[2]),o(w[3]))||1);w[2]*=_,w[3]*=_,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var k=t._parseDots(r);if(!k)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){y=m(h+"Gradient",{id:c}),e.gradient=y,m(y,"radial"==h?{fx:f,fy:p}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(y);for(var S=0,M=k.length;S<M;S++)y.appendChild(m("stop",{offset:k[S].offset?k[S].offset:S?"100%":"0%","stop-color":k[S].color||"#fff","stop-opacity":isFinite(k[S].opacity)?k[S].opacity:1}))}}return m(d,{fill:v(c),opacity:1,"fill-opacity":1}),x.fill=u,x.opacity=1,x.fillOpacity=1,1},v=function(t){if((e=document.documentMode)&&(9===e||10===e))return"url('#"+t+"')";var e,i=document.location;return"url('"+i.protocol+"//"+i.host+i.pathname+i.search+"#"+t+"')"},y=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},b=function(n,r,s){if("path"==n.type){for(var a,o,l,h,c,f=i(r).toLowerCase().split("-"),p=n.paper,x=s?"end":"start",v=n.node,y=n.attrs,b=y["stroke-width"],w=f.length,_="classic",k=3,S=3,M=5;w--;)switch(f[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=f[w];break;case"wide":S=5;break;case"narrow":S=2;break;case"long":k=5;break;case"short":k=2}if("open"==_?(k+=2,S+=2,M+=2,l=1,h=s?4:1,c={fill:"none",stroke:y.stroke}):(h=l=k/2,c={fill:y.stroke,stroke:"none"}),n._.arrows?s?(n._.arrows.endPath&&g[n._.arrows.endPath]--,n._.arrows.endMarker&&g[n._.arrows.endMarker]--):(n._.arrows.startPath&&g[n._.arrows.startPath]--,n._.arrows.startMarker&&g[n._.arrows.startMarker]--):n._.arrows={},"none"!=_){var C="raphael-marker-"+_,B="raphael-marker-"+x+_+k+S+"-obj"+n.id;t._g.doc.getElementById(C)?g[C]++:(p.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:d[_],id:C})),g[C]=1);var A,F=t._g.doc.getElementById(B);F?(g[B]++,A=F.getElementsByTagName("use")[0]):(F=m(m("marker"),{id:B,markerHeight:S,markerWidth:k,orient:"auto",refX:h,refY:S/2}),A=m(m("use"),{"xlink:href":"#"+C,transform:(s?"rotate(180 "+k/2+" "+S/2+") ":u)+"scale("+k/M+","+S/M+")","stroke-width":(1/((k/M+S/M)/2)).toFixed(4)}),F.appendChild(A),p.defs.appendChild(F),g[B]=1),m(A,c);var T=l*("diamond"!=_&&"oval"!=_);s?(a=n._.arrows.startdx*b||0,o=t.getTotalLength(y.path)-T*b):(a=T*b,o=t.getTotalLength(y.path)-(n._.arrows.enddx*b||0)),(c={})["marker-"+x]="url(#"+B+")",(o||a)&&(c.d=t.getSubpath(y.path,a,o)),m(v,c),n._.arrows[x+"Path"]=C,n._.arrows[x+"Marker"]=B,n._.arrows[x+"dx"]=T,n._.arrows[x+"Type"]=_,n._.arrows[x+"String"]=r}else s?(a=n._.arrows.startdx*b||0,o=t.getTotalLength(y.path)-a):(a=0,o=t.getTotalLength(y.path)-(n._.arrows.enddx*b||0)),n._.arrows[x+"Path"]&&m(v,{d:t.getSubpath(y.path,a,o)}),delete n._.arrows[x+"Path"],delete n._.arrows[x+"Marker"],delete n._.arrows[x+"dx"],delete n._.arrows[x+"Type"],delete n._.arrows[x+"String"];for(c in g)if(g[e](c)&&!g[c]){var z=t._g.doc.getElementById(c);z&&z.parentNode.removeChild(z)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(t,e,n){if(e=w[i(e).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",s={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,a=[],o=e.length;o--;)a[o]=e[o]*r+(o%2?1:-1)*s;m(t.node,{"stroke-dasharray":a.join(",")})}else m(t.node,{"stroke-dasharray":"none"})},k=function(n,s){var l=n.node,c=n.attrs,f=l.style.visibility;for(var d in l.style.visibility="hidden",s)if(s[e](d)){if(!t._availableAttrs[e](d))continue;var g=s[d];switch(c[d]=g,d){case"blur":n.blur(g);break;case"title":var v=l.getElementsByTagName("title");if(v.length&&(v=v[0]))v.firstChild.nodeValue=g;else{v=m("title");var w=t._g.doc.createTextNode(g);v.appendChild(w),l.appendChild(v)}break;case"href":case"target":var k=l.parentNode;if("a"!=k.tagName.toLowerCase()){var M=m("a");k.insertBefore(M,l),M.appendChild(l),k=M}"target"==d?k.setAttributeNS(p,"show","blank"==g?"new":g):k.setAttributeNS(p,d,g);break;case"cursor":l.style.cursor=g;break;case"transform":n.transform(g);break;case"arrow-start":b(n,g);break;case"arrow-end":b(n,g,1);break;case"clip-rect":var C=i(g).split(h);if(4==C.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var B=m("clipPath"),A=m("rect");B.id=t.createUUID(),m(A,{x:C[0],y:C[1],width:C[2],height:C[3]}),B.appendChild(A),n.paper.defs.appendChild(B),m(l,{"clip-path":"url(#"+B.id+")"}),n.clip=A}if(!g){var F=l.getAttribute("clip-path");if(F){var T=t._g.doc.getElementById(F.replace(/(^url\(#|\)$)/g,u));T&&T.parentNode.removeChild(T),m(l,{"clip-path":u}),delete n.clip}}break;case"path":"path"==n.type&&(m(l,{d:g?c.path=t._pathToAbsolute(g):"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(l.setAttribute(d,g),n._.dirty=1,!c.fx)break;d="x",g=c.x;case"x":c.fx&&(g=-c.x-(c.width||0));case"rx":if("rx"==d&&"rect"==n.type)break;case"cx":l.setAttribute(d,g),n.pattern&&y(n),n._.dirty=1;break;case"height":if(l.setAttribute(d,g),n._.dirty=1,!c.fy)break;d="y",g=c.y;case"y":c.fy&&(g=-c.y-(c.height||0));case"ry":if("ry"==d&&"rect"==n.type)break;case"cy":l.setAttribute(d,g),n.pattern&&y(n),n._.dirty=1;break;case"r":"rect"==n.type?m(l,{rx:g,ry:g}):l.setAttribute(d,g),n._.dirty=1;break;case"src":"image"==n.type&&l.setAttributeNS(p,"href",g);break;case"stroke-width":1==n._.sx&&1==n._.sy||(g/=a(o(n._.sx),o(n._.sy))||1),l.setAttribute(d,g),c["stroke-dasharray"]&&_(n,c["stroke-dasharray"],s),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":_(n,g,s);break;case"fill":var z=i(g).match(t._ISURL);if(z){B=m("pattern");var E=m("image");B.id=t.createUUID(),m(B,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(E,{x:0,y:0,"xlink:href":z[1]}),B.appendChild(E),function(e){t._preload(z[1],(function(){var t=this.offsetWidth,i=this.offsetHeight;m(e,{width:t,height:i}),m(E,{width:t,height:i})}))}(B),n.paper.defs.appendChild(B),m(l,{fill:"url(#"+B.id+")"}),n.pattern=B,n.pattern&&y(n);break}var N=t.getRGB(g);if(N.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&x(n,g)){if("opacity"in c||"fill-opacity"in c){var L=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u));if(L){var $=L.getElementsByTagName("stop");m($[$.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=g,c.fill="none";break}}else delete s.gradient,delete c.gradient,!t.is(c.opacity,"undefined")&&t.is(s.opacity,"undefined")&&m(l,{opacity:c.opacity}),!t.is(c["fill-opacity"],"undefined")&&t.is(s["fill-opacity"],"undefined")&&m(l,{"fill-opacity":c["fill-opacity"]});N[e]("opacity")&&m(l,{"fill-opacity":N.opacity>1?N.opacity/100:N.opacity});case"stroke":N=t.getRGB(g),l.setAttribute(d,N.hex),"stroke"==d&&N[e]("opacity")&&m(l,{"stroke-opacity":N.opacity>1?N.opacity/100:N.opacity}),"stroke"==d&&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"!=i(g).charAt())&&x(n,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&m(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){(L=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u)))&&($=L.getElementsByTagName("stop"),m($[$.length-1],{"stop-opacity":g}));break}default:"font-size"==d&&(g=r(g,10)+"px");var P=d.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));l.style[P]=g,n._.dirty=1,l.setAttribute(d,g)}}S(n,s),l.style.visibility=f},S=function(n,s){if("text"==n.type&&(s[e]("text")||s[e]("font")||s[e]("font-size")||s[e]("x")||s[e]("y"))){var a=n.attrs,o=n.node,l=o.firstChild?r(t._g.doc.defaultView.getComputedStyle(o.firstChild,u).getPropertyValue("font-size"),10):10;if(s[e]("text")){for(a.text=s.text;o.firstChild;)o.removeChild(o.firstChild);for(var h,c=i(s.text).split("\n"),f=[],p=0,d=c.length;p<d;p++)h=m("tspan"),p&&m(h,{dy:1.2*l,x:a.x}),h.appendChild(t._g.doc.createTextNode(c[p])),o.appendChild(h),f[p]=h}else for(p=0,d=(f=o.getElementsByTagName("tspan")).length;p<d;p++)p?m(f[p],{dy:1.2*l,x:a.x}):m(f[0],{dy:0});m(o,{x:a.x,y:a.y}),n._.dirty=1;var g=n._getBBox(),x=a.y-(g.y+g.height/2);x&&t.is(x,"finite")&&m(f[0],{dy:x})}},M=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},C=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=i,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},B=t.el;C.prototype=B,B.constructor=C,t._engine.path=function(t,e){var i=m("path");e.canvas&&e.canvas.appendChild(i);var n=new C(i,e);return n.type="path",k(n,{fill:"none",stroke:"#000",path:t}),n},B.rotate=function(t,e,r){if(this.removed)return this;if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var s=this.getBBox(1);e=s.x+s.width/2,r=s.y+s.height/2}return this.transform(this._.transform.concat([["r",t,e,r]])),this},B.scale=function(t,e,r,s){if(this.removed)return this;if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2]),s=n(t[3])),t=n(t[0]),null==e&&(e=t),null==s&&(r=s),null==r||null==s)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,s=null==s?a.y+a.height/2:s,this.transform(this._.transform.concat([["s",t,e,r,s]])),this},B.translate=function(t,e){return this.removed||((t=i(t).split(h)).length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]]))),this},B.transform=function(i){var n=this._;if(null==i)return n.transform;if(t._extractTransform(this,i),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&m(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},B.hide=function(){return this.removed||(this.node.style.display="none"),this},B.show=function(){return this.removed||(this.node.style.display=""),this},B.remove=function(){var e=M(this.node);if(!this.removed&&e.parentNode){var i=this.paper;for(var n in i.__set__&&i.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),this.gradient&&i.defs.removeChild(this.gradient),t._tear(this,i),e.parentNode.removeChild(e),this.removeData(),this)this[n]="function"==typeof this[n]?t._removedFactory(n):null;this.removed=!0}},B._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,i=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(i=!0,e.display="");var n={};try{n=this.node.getBBox()}catch(t){n={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{n=n||{},i&&(e.display="none")}return t&&this.hide(),n},B.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var s in this.attrs)this.attrs[e](s)&&(r[s]=this.attrs[s]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==i)return this._.transform;for(var a=i.split(h),o={},l=0,u=a.length;l<u;l++)(i=a[l])in this.attrs?o[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?o[i]=this.paper.customAttributes[i].def:o[i]=t._availableAttrs[i];return u-1?o:o[a[0]]}if(null==n&&t.is(i,"array")){for(o={},l=0,u=i.length;l<u;l++)o[i[l]]=this.attr(i[l]);return o}if(null!=n){var f={};f[i]=n}else null!=i&&t.is(i,"object")&&(f=i);for(var p in f)c("raphael.attr."+p+"."+this.id,this,f[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&f[e](p)&&t.is(this.paper.customAttributes[p],"function")){var d=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var g in this.attrs[p]=f[p],d)d[e](g)&&(f[g]=d[g])}return k(this,f),this},B.toFront=function(){if(this.removed)return this;var e=M(this.node);e.parentNode.appendChild(e);var i=this.paper;return i.top!=this&&t._tofront(this,i),this},B.toBack=function(){if(this.removed)return this;var e=M(this.node),i=e.parentNode;return i.insertBefore(e,i.firstChild),t._toback(this,this.paper),this.paper,this},B.insertAfter=function(e){if(this.removed||!e)return this;var i=M(this.node),n=M(e.node||e[e.length-1].node);return n.nextSibling?n.parentNode.insertBefore(i,n.nextSibling):n.parentNode.appendChild(i),t._insertafter(this,e,this.paper),this},B.insertBefore=function(e){if(this.removed||!e)return this;var i=M(this.node),n=M(e.node||e[0].node);return n.parentNode.insertBefore(i,n),t._insertbefore(this,e,this.paper),this},B.blur=function(e){var i=this;if(0!=+e){var n=m("filter"),r=m("feGaussianBlur");i.attrs.blur=e,n.id=t.createUUID(),m(r,{stdDeviation:+e||1.5}),n.appendChild(r),i.paper.defs.appendChild(n),i._blur=n,m(i.node,{filter:"url(#"+n.id+")"})}else i._blur&&(i._blur.parentNode.removeChild(i._blur),delete i._blur,delete i.attrs.blur),i.node.removeAttribute("filter");return i},t._engine.circle=function(t,e,i,n){var r=m("circle");t.canvas&&t.canvas.appendChild(r);var s=new C(r,t);return s.attrs={cx:e,cy:i,r:n,fill:"none",stroke:"#000"},s.type="circle",m(r,s.attrs),s},t._engine.rect=function(t,e,i,n,r,s){var a=m("rect");t.canvas&&t.canvas.appendChild(a);var o=new C(a,t);return o.attrs={x:e,y:i,width:n,height:r,rx:s||0,ry:s||0,fill:"none",stroke:"#000"},o.type="rect",m(a,o.attrs),o},t._engine.ellipse=function(t,e,i,n,r){var s=m("ellipse");t.canvas&&t.canvas.appendChild(s);var a=new C(s,t);return a.attrs={cx:e,cy:i,rx:n,ry:r,fill:"none",stroke:"#000"},a.type="ellipse",m(s,a.attrs),a},t._engine.image=function(t,e,i,n,r,s){var a=m("image");m(a,{x:i,y:n,width:r,height:s,preserveAspectRatio:"none"}),a.setAttributeNS(p,"href",e),t.canvas&&t.canvas.appendChild(a);var o=new C(a,t);return o.attrs={x:i,y:n,width:r,height:s,src:e},o.type="image",o},t._engine.text=function(e,i,n,r){var s=m("text");e.canvas&&e.canvas.appendChild(s);var a=new C(s,e);return a.attrs={x:i,y:n,"text-anchor":"middle",text:r,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},a.type="text",k(a,a.attrs),a},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e&&e.container;if(!i)throw new Error("SVG container not found.");var n,r=e.x,s=e.y,a=e.width,o=e.height,l=m("svg"),h="overflow:hidden;";return r=r||0,s=s||0,m(l,{height:o=o||342,version:1.1,width:a=a||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==i?(l.style.cssText=h+"position:absolute;left:"+r+"px;top:"+s+"px",t._g.doc.body.appendChild(l),n=1):(l.style.cssText=h+"position:relative",i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l)),(i=new t._Paper).width=a,i.height=o,i.canvas=l,i.clear(),i._left=i._top=0,n&&(i.renderfix=function(){}),i.renderfix(),i},t._engine.setViewBox=function(t,e,i,n,r){c("raphael.setViewBox",this,this._viewBox,[t,e,i,n,r]);var s,o,l=this.getSize(),h=a(i/l.width,n/l.height),u=this.top,p=r?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(h=1),delete this._vbSize,s="0 0 "+this.width+f+this.height):(this._vbSize=h,s=t+f+e+f+i+f+n),m(this.canvas,{viewBox:s,preserveAspectRatio:p});h&&u;)o="stroke-width"in u.attrs?u.attrs["stroke-width"]:1,u.attr({"stroke-width":o}),u._.dirty=1,u._.dirtyT=1,u=u.prev;return this._viewBox=[t,e,i,n,!!r],this},t.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(i){t=e.createSVGMatrix()}var n=-t.e%1,r=-t.f%1;(n||r)&&(n&&(this._left=(this._left+n)%1,i.left=this._left+"px"),r&&(this._top=(this._top+r)%1,i.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=m("defs"))},t.prototype.remove=function(){for(var e in c("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var A=t.st;for(var F in B)B[e](F)&&!A[e](F)&&(A[F]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(F))}}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r;n=[i(0)],void 0===(r=function(t){if(!t||t.vml){var e="hasOwnProperty",i=String,n=parseFloat,r=Math,s=r.round,a=r.max,o=r.min,l=r.abs,h=/[, ]+/,c=t.eve,u=" ",f="",p={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},d=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,m=/-?[^,\s-]+/g,x="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",v=21600,y={path:1,rect:1,image:1},b={circle:1,ellipse:1},w=function(e,i,n){var r=t.matrix();return r.rotate(-e,.5,.5),{dx:r.x(i,n),dy:r.y(i,n)}},_=function(t,e,i,n,r,s){var a=t._,o=t.matrix,h=a.fillpos,c=t.node,f=c.style,p=1,d="",g=v/e,m=v/i;if(f.visibility="hidden",e&&i){if(c.coordsize=l(g)+u+l(m),f.rotation=s*(e*i<0?-1:1),s){var x=w(s,n,r);n=x.dx,r=x.dy}if(e<0&&(d+="x"),i<0&&(d+=" y")&&(p=-1),f.flip=d,c.coordorigin=n*-g+u+r*-m,h||a.fillsize){var y=c.getElementsByTagName("fill");y=y&&y[0],c.removeChild(y),h&&(x=w(s,o.x(h[0],h[1]),o.y(h[0],h[1])),y.position=x.dx*p+u+x.dy*p),a.fillsize&&(y.size=a.fillsize[0]*l(e)+u+a.fillsize[1]*l(i)),c.appendChild(y)}f.visibility="visible"}};t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var k,S=function(t,e,n){for(var r=i(e).toLowerCase().split("-"),s=n?"end":"start",a=r.length,o="classic",l="medium",h="medium";a--;)switch(r[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":o=r[a];break;case"wide":case"narrow":h=r[a];break;case"long":case"short":l=r[a]}var c=t.node.getElementsByTagName("stroke")[0];c[s+"arrow"]=o,c[s+"arrowlength"]=l,c[s+"arrowwidth"]=h},M=function(r,l){r.attrs=r.attrs||{};var c=r.node,g=r.attrs,x=c.style,w=y[r.type]&&(l.x!=g.x||l.y!=g.y||l.width!=g.width||l.height!=g.height||l.cx!=g.cx||l.cy!=g.cy||l.rx!=g.rx||l.ry!=g.ry||l.r!=g.r),M=b[r.type]&&(g.cx!=l.cx||g.cy!=l.cy||g.r!=l.r||g.rx!=l.rx||g.ry!=l.ry),B=r;for(var A in l)l[e](A)&&(g[A]=l[A]);if(w&&(g.path=t._getPath[r.type](r),r._.dirty=1),l.href&&(c.href=l.href),l.title&&(c.title=l.title),l.target&&(c.target=l.target),l.cursor&&(x.cursor=l.cursor),"blur"in l&&r.blur(l.blur),(l.path&&"path"==r.type||w)&&(c.path=function(e){var n=/[ahqstv]/gi,r=t._pathToAbsolute;if(i(e).match(n)&&(r=t._path2curve),n=/[clmz]/g,r==t._pathToAbsolute&&!i(e).match(n)){var a=i(e).replace(d,(function(t,e,i){var n=[],r="m"==e.toLowerCase(),a=p[e];return i.replace(m,(function(t){r&&2==n.length&&(a+=n+p["m"==e?"l":"L"],n=[]),n.push(s(t*v))})),a+n}));return a}var o,l,h=r(e);a=[];for(var c=0,g=h.length;c<g;c++){o=h[c],"z"==(l=h[c][0].toLowerCase())&&(l="x");for(var x=1,y=o.length;x<y;x++)l+=s(o[x]*v)+(x!=y-1?",":f);a.push(l)}return a.join(u)}(~i(g.path).toLowerCase().indexOf("r")?t._pathToAbsolute(g.path):g.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[g.x,g.y],r._.fillsize=[g.width,g.height],_(r,1,1,0,0,0))),"transform"in l&&r.transform(l.transform),M){var F=+g.cx,T=+g.cy,z=+g.rx||+g.r||0,E=+g.ry||+g.r||0;c.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s((F-z)*v),s((T-E)*v),s((F+z)*v),s((T+E)*v),s(F*v)),r._.dirty=1}if("clip-rect"in l){var N=i(l["clip-rect"]).split(h);if(4==N.length){N[2]=+N[2]+ +N[0],N[3]=+N[3]+ +N[1];var L=c.clipRect||t._g.doc.createElement("div"),$=L.style;$.clip=t.format("rect({1}px {2}px {3}px {0}px)",N),c.clipRect||($.position="absolute",$.top=0,$.left=0,$.width=r.paper.width+"px",$.height=r.paper.height+"px",c.parentNode.insertBefore(L,c),L.appendChild(c),c.clipRect=L)}l["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(r.textpath){var P=r.textpath.style;l.font&&(P.font=l.font),l["font-family"]&&(P.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,f)+'"'),l["font-size"]&&(P.fontSize=l["font-size"]),l["font-weight"]&&(P.fontWeight=l["font-weight"]),l["font-style"]&&(P.fontStyle=l["font-style"])}if("arrow-start"in l&&S(B,l["arrow-start"]),"arrow-end"in l&&S(B,l["arrow-end"],1),null!=l.opacity||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var V=c.getElementsByTagName("fill");if(!(V=V&&V[0])&&(V=k("fill")),"image"==r.type&&l.src&&(V.src=l.src),l.fill&&(V.on=!0),null!=V.on&&"none"!=l.fill&&null!==l.fill||(V.on=!1),V.on&&l.fill){var O=i(l.fill).match(t._ISURL);if(O){V.parentNode==c&&c.removeChild(V),V.rotate=!0,V.src=O[1],V.type="tile";var R=r.getBBox(1);V.position=R.x+u+R.y,r._.fillpos=[R.x,R.y],t._preload(O[1],(function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else V.color=t.getRGB(l.fill).hex,V.src=f,V.type="solid",t.getRGB(l.fill).error&&(B.type in{circle:1,ellipse:1}||"r"!=i(l.fill).charAt())&&C(B,l.fill,V)&&(g.fill="none",g.gradient=l.fill,V.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var j=((+g["fill-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+t.getRGB(l.fill).o+1||2)-1);j=o(a(j,0),1),V.opacity=j,V.src&&(V.color="none")}c.appendChild(V);var I=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],D=!1;!I&&(D=I=k("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(I.on=!0),("none"==l.stroke||null===l.stroke||null==I.on||0==l.stroke||0==l["stroke-width"])&&(I.on=!1);var Y=t.getRGB(l.stroke);I.on&&l.stroke&&(I.color=Y.hex),j=((+g["stroke-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+Y.o+1||2)-1);var q=.75*(n(l["stroke-width"])||1);if(j=o(a(j,0),1),null==l["stroke-width"]&&(q=g["stroke-width"]),l["stroke-width"]&&(I.weight=q),q&&q<1&&(j*=q)&&(I.weight=1),I.opacity=j,l["stroke-linejoin"]&&(I.joinstyle=l["stroke-linejoin"]||"miter"),I.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(I.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var W={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};I.dashstyle=W[e](l["stroke-dasharray"])?W[l["stroke-dasharray"]]:f}D&&c.appendChild(I)}if("text"==B.type){B.paper.canvas.style.display=f;var G=B.paper.span,H=g.font&&g.font.match(/\d+(?:\.\d*)?(?=px)/);x=G.style,g.font&&(x.font=g.font),g["font-family"]&&(x.fontFamily=g["font-family"]),g["font-weight"]&&(x.fontWeight=g["font-weight"]),g["font-style"]&&(x.fontStyle=g["font-style"]),H=n(g["font-size"]||H&&H[0])||10,x.fontSize=100*H+"px",B.textpath.string&&(G.innerHTML=i(B.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var X=G.getBoundingClientRect();B.W=g.w=(X.right-X.left)/100,B.H=g.h=(X.bottom-X.top)/100,B.X=g.x,B.Y=g.y+B.H/2,("x"in l||"y"in l)&&(B.path.v=t.format("m{0},{1}l{2},{1}",s(g.x*v),s(g.y*v),s(g.x*v)+1));for(var U=["x","y","text","font","font-family","font-weight","font-style","font-size"],Z=0,Q=U.length;Z<Q;Z++)if(U[Z]in l){B._.dirty=1;break}switch(g["text-anchor"]){case"start":B.textpath.style["v-text-align"]="left",B.bbx=B.W/2;break;case"end":B.textpath.style["v-text-align"]="right",B.bbx=-B.W/2;break;default:B.textpath.style["v-text-align"]="center",B.bbx=0}B.textpath.style["v-text-kern"]=!0}},C=function(e,s,a){e.attrs=e.attrs||{},e.attrs;var o=Math.pow,l="linear",h=".5 .5";if(e.attrs.gradient=s,s=(s=i(s).replace(t._radial_gradient,(function(t,e,i){return l="radial",e&&i&&(e=n(e),i=n(i),o(e-.5,2)+o(i-.5,2)>.25&&(i=r.sqrt(.25-o(e-.5,2))*(2*(i>.5)-1)+.5),h=e+u+i),f}))).split(/\s*\-\s*/),"linear"==l){var c=s.shift();if(c=-n(c),isNaN(c))return null}var p=t._parseDots(s);if(!p)return null;if(e=e.shape||e.node,p.length){e.removeChild(a),a.on=!0,a.method="none",a.color=p[0].color,a.color2=p[p.length-1].color;for(var d=[],g=0,m=p.length;g<m;g++)p[g].offset&&d.push(p[g].offset+u+p[g].color);a.colors=d.length?d.join():"0% "+a.color,"radial"==l?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=h,a.angle=0):(a.type="gradient",a.angle=(270-c)%360),e.appendChild(a)}return 1},B=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=i,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},A=t.el;B.prototype=A,A.constructor=B,A.transform=function(e){if(null==e)return this._.transform;var n,r=this.paper._viewBoxShift,s=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:f;r&&(n=e=i(e).replace(/\.{3}|\u2026/g,this._.transform||f)),t._extractTransform(this,s+e);var a,o=this.matrix.clone(),l=this.skew,h=this.node,c=~i(this.attrs.fill).indexOf("-"),p=!i(this.attrs.fill).indexOf("url(");if(o.translate(1,1),p||c||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",a=o.split(),c&&a.noRotation||!a.isSimple){h.style.filter=o.toFilter();var d=this.getBBox(),g=this.getBBox(1),m=d.x-g.x,x=d.y-g.y;h.coordorigin=m*-v+u+x*-v,_(this,1,1,m,x,0)}else h.style.filter=f,_(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else h.style.filter=f,l.matrix=i(o),l.offset=o.offset();return null!==n&&(this._.transform=n,t._extractTransform(this,n)),this},A.rotate=function(t,e,r){if(this.removed)return this;if(null!=t){if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var s=this.getBBox(1);e=s.x+s.width/2,r=s.y+s.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,r]])),this}},A.translate=function(t,e){return this.removed||((t=i(t).split(h)).length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]]))),this},A.scale=function(t,e,r,s){if(this.removed)return this;if((t=i(t).split(h)).length-1&&(e=n(t[1]),r=n(t[2]),s=n(t[3]),isNaN(r)&&(r=null),isNaN(s)&&(s=null)),t=n(t[0]),null==e&&(e=t),null==s&&(r=s),null==r||null==s)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,s=null==s?a.y+a.height/2:s,this.transform(this._.transform.concat([["s",t,e,r,s]])),this._.dirtyT=1,this},A.hide=function(){return!this.removed&&(this.node.style.display="none"),this},A.show=function(){return!this.removed&&(this.node.style.display=f),this},A.auxGetBBox=t.el.getBBox,A.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},i=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=i,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=i,e.width=t.width*i,e.height=t.height*i,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},A._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}},A.remove=function(){if(!this.removed&&this.node.parentNode){for(var e in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},A.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var s in this.attrs)this.attrs[e](s)&&(r[s]=this.attrs[s]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=i.split(h),o={},l=0,u=a.length;l<u;l++)(i=a[l])in this.attrs?o[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?o[i]=this.paper.customAttributes[i].def:o[i]=t._availableAttrs[i];return u-1?o:o[a[0]]}if(this.attrs&&null==n&&t.is(i,"array")){for(o={},l=0,u=i.length;l<u;l++)o[i[l]]=this.attr(i[l]);return o}var f;for(var p in null!=n&&((f={})[i]=n),null==n&&t.is(i,"object")&&(f=i),f)c("raphael.attr."+p+"."+this.id,this,f[p]);if(f){for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&f[e](p)&&t.is(this.paper.customAttributes[p],"function")){var d=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var g in this.attrs[p]=f[p],d)d[e](g)&&(f[g]=d[g])}f.text&&"text"==this.type&&(this.textpath.string=f.text),M(this,f)}return this},A.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},A.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this},A.insertAfter=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper)),this},A.insertBefore=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper)),this},A.blur=function(e){var i=this.node.runtimeStyle,n=i.filter;return n=n.replace(g,f),0!=+e?(this.attrs.blur=e,i.filter=n+u+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",i.margin=t.format("-{0}px 0 0 -{0}px",s(+e||1.5))):(i.filter=n,i.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var i=k("shape");i.style.cssText=x,i.coordsize=v+u+v,i.coordorigin=e.coordorigin;var n=new B(i,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),n.type="path",n.path=[],n.Path=f,M(n,r),e.canvas&&e.canvas.appendChild(i);var s=k("skew");return s.on=!0,i.appendChild(s),n.skew=s,n.transform(f),n},t._engine.rect=function(e,i,n,r,s,a){var o=t._rectPath(i,n,r,s,a),l=e.path(o),h=l.attrs;return l.X=h.x=i,l.Y=h.y=n,l.W=h.width=r,l.H=h.height=s,h.r=a,h.path=o,l.type="rect",l},t._engine.ellipse=function(t,e,i,n,r){var s=t.path();return s.attrs,s.X=e-n,s.Y=i-r,s.W=2*n,s.H=2*r,s.type="ellipse",M(s,{cx:e,cy:i,rx:n,ry:r}),s},t._engine.circle=function(t,e,i,n){var r=t.path();return r.attrs,r.X=e-n,r.Y=i-n,r.W=r.H=2*n,r.type="circle",M(r,{cx:e,cy:i,r:n}),r},t._engine.image=function(e,i,n,r,s,a){var o=t._rectPath(n,r,s,a),l=e.path(o).attr({stroke:"none"}),h=l.attrs,c=l.node,u=c.getElementsByTagName("fill")[0];return h.src=i,l.X=h.x=n,l.Y=h.y=r,l.W=h.width=s,l.H=h.height=a,h.path=o,l.type="image",u.parentNode==c&&c.removeChild(u),u.rotate=!0,u.src=i,u.type="tile",l._.fillpos=[n,r],l._.fillsize=[s,a],c.appendChild(u),_(l,1,1,0,0,0),l},t._engine.text=function(e,n,r,a){var o=k("shape"),l=k("path"),h=k("textpath");n=n||0,r=r||0,a=a||"",l.v=t.format("m{0},{1}l{2},{1}",s(n*v),s(r*v),s(n*v)+1),l.textpathok=!0,h.string=i(a),h.on=!0,o.style.cssText=x,o.coordsize=v+u+v,o.coordorigin="0 0";var c=new B(o,e),p={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:a};c.shape=o,c.path=l,c.textpath=h,c.type="text",c.attrs.text=i(a),c.attrs.x=n,c.attrs.y=r,c.attrs.w=1,c.attrs.h=1,M(c,p),o.appendChild(h),o.appendChild(l),e.canvas.appendChild(o);var d=k("skew");return d.on=!0,o.appendChild(d),c.skew=d,c.transform(f),c},t._engine.setSize=function(e,i){var n=this.canvas.style;return this.width=e,this.height=i,e==+e&&(e+="px"),i==+i&&(i+="px"),n.width=e,n.height=i,n.clip="rect(0 "+e+" "+i+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,i,n,r,s){t.eve("raphael.setViewBox",this,this._viewBox,[e,i,n,r,s]);var a,o,l=this.getSize(),h=l.width,c=l.height;return s&&(n*(a=c/r)<h&&(e-=(h-n*a)/2/a),r*(o=h/n)<c&&(i-=(c-r*o)/2/o)),this._viewBox=[e,i,n,r,!!s],this._viewBoxShift={dx:-e,dy:-i,scale:l},this.forEach((function(t){t.transform("...")})),this},t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),k=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(t){k=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,s=e.x,a=e.y;if(!i)throw new Error("VML container not found.");var o=new t._Paper,l=o.canvas=t._g.doc.createElement("div"),h=l.style;return s=s||0,a=a||0,r=r||512,n=n||342,o.width=r,o.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),o.coordsize=216e5+u+216e5,o.coordorigin="0 0",o.span=t._g.doc.createElement("span"),o.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(o.span),h.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(l),h.left=s+"px",h.top=a+"px",h.position="absolute"):i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),o.renderfix=function(){},o},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var F=t.st;for(var T in A)A[e](T)&&!F[e](T)&&(F[T]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(T))}}.apply(e,n))||(t.exports=r)}])},E(N={exports:{}},N.exports),N.exports),$=z(L);class P{constructor(t){if(R(t))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=t.element;const e=this.node.dataset?this.node.dataset:{};let i,n,r,s,a,o,l,h,c,u,f,p,d,g,m,x,v,y,b;!1!==(!R(t.defaults)&&t.defaults)&&(t=function(t){t=t||{};for(let e=1;e<arguments.length;e++)if(arguments[e])for(const i in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],i)&&(t[i]=arguments[e][i]);return t}({}),delete t.defaults),this.config={element:t.element,classId:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0,i="x"===t?e:3&e|8;return i.toString(16)})),value:O("value",t,e,0,"float"),defaults:O("defaults",t,e,0,!1),parentNode:O("parentNode",t,e,null),width:O("width",t,e,null),height:O("height",t,e,null),valueFontColor:O("valueFontColor",t,e,"#010101"),valueFontFamily:O("valueFontFamily",t,e,"Arial"),symbol:O("symbol",t,e,""),min:O("min",t,e,0,"float"),minTxt:O("minTxt",t,e,!1),max:O("max",t,e,100,"float"),maxTxt:O("maxTxt",t,e,!1),reverse:O("reverse",t,e,!1),humanFriendlyDecimal:O("humanFriendlyDecimal",t,e,0),textRenderer:O("textRenderer",t,e,null),onAnimationEnd:O("onAnimationEnd",t,e,null),gaugeWidthScale:O("gaugeWidthScale",t,e,1),gaugeColor:O("gaugeColor",t,e,"#edebeb"),label:O("label",t,e,""),labelFontColor:O("labelFontColor",t,e,"#b3b3b3"),labelFontFamily:O("labelFontFamily",t,e,"Arial"),shadowOpacity:O("shadowOpacity",t,e,.2),shadowSize:O("shadowSize",t,e,5),shadowVerticalOffset:O("shadowVerticalOffset",t,e,3),levelColors:O("levelColors",t,e,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:O("startAnimationTime",t,e,700),startAnimationType:O("startAnimationType",t,e,">"),refreshAnimationTime:O("refreshAnimationTime",t,e,700),refreshAnimationType:O("refreshAnimationType",t,e,">"),donutStartAngle:O("donutStartAngle",t,e,90),valueMinFontSize:O("valueMinFontSize",t,e,16),labelMinFontSize:O("labelMinFontSize",t,e,10),minLabelMinFontSize:O("minLabelMinFontSize",t,e,10),maxLabelMinFontSize:O("maxLabelMinFontSize",t,e,10),hideValue:O("hideValue",t,e,!1),hideMinMax:O("hideMinMax",t,e,!1),showInnerShadow:O("showInnerShadow",t,e,!1),humanFriendly:O("humanFriendly",t,e,!1),noGradient:O("noGradient",t,e,!1),donut:O("donut",t,e,!1),relativeGaugeSize:O("relativeGaugeSize",t,e,!1),counter:O("counter",t,e,!1),decimals:O("decimals",t,e,0),customSectors:O("customSectors",t,e,{}),formatNumber:O("formatNumber",t,e,!1),pointer:O("pointer",t,e,!1),pointerOptions:O("pointerOptions",t,e,{}),displayRemaining:O("displayRemaining",t,e,!1)},this.config.value>this.config.max&&(this.config.value=this.config.max),this.config.value<this.config.min&&(this.config.value=this.config.min),this.originalValue=O("value",t,e,-1,"float"),this.canvas=$(this.config.element,"100%","100%"),!0===this.config.relativeGaugeSize?!0===this.config.donut?(this.canvas.setViewBox(0,0,200,200,!0),i=200,n=200):(this.canvas.setViewBox(0,0,200,100,!0),i=200,n=100):null!==this.config.width&&null!==this.config.height?(i=this.config.width,n=this.config.height):null!==this.config.parentNode?(this.canvas.setViewBox(0,0,200,100,!0),i=200,n=100):(i=1*Number(G(this.config.element,"width").slice(0,-2)),n=1*Number(G(this.config.element,"height").slice(0,-2))),!0===this.config.donut?(i>n?(s=n,r=s):(r=i,s=r),o=(i-r)/2,l=(n-s)/2,h=s/6.4>16?s/5.4:18,c=o+r/2,u=""!==this.config.label?l+s/1.85:l+s/1.7,f=s/16>10?s/16:10,p=o+r/2,d=u+f,g=s/16>10?s/16:10,m=o+r/10+r/6.666666666666667*this.config.gaugeWidthScale/2,x=d,v=s/16>10?s/16:10,y=o+r-r/10-r/6.666666666666667*this.config.gaugeWidthScale/2,b=d):(i>n?(s=n,r=2*s,r>i&&(a=r/i,r/=a,s/=a)):i<n?(r=i,s=r/2):(r=i,s=.5*r),o=(i-r)/2,l=(n-s)/2,h=s/6.5>this.config.valueMinFontSize?s/6.5:this.config.valueMinFontSize,c=o+r/2,u=l+s/1.275,f=s/16>this.config.labelMinFontSize?s/16:this.config.labelMinFontSize,p=o+r/2,d=u+h/2+5,g=s/16>this.config.minLabelMinFontSize?s/16:this.config.minLabelMinFontSize,m=o+r/10+r/6.666666666666667*this.config.gaugeWidthScale/2,x=d,v=s/16>this.config.maxLabelMinFontSize?s/16:this.config.maxLabelMinFontSize,y=o+r-r/10-r/6.666666666666667*this.config.gaugeWidthScale/2,b=d),this.params={canvasW:i,canvasH:n,widgetW:r,widgetH:s,dx:o,dy:l,valueFontSize:h,valueX:c,valueY:u,labelFontSize:f,labelX:p,labelY:d,minFontSize:g,minX:m,minY:x,maxFontSize:v,maxX:y,maxY:b},this.canvas.customAttributes.pki=t=>{let e=this.config.min,i=this.config.max;const n=this.params.widgetW,r=this.params.widgetH,s=this.params.dx,a=this.params.dy,o=this.config.gaugeWidthScale;let l,h,c,u,f,p,d,g,m,x;return e<0&&(i-=e,t-=e,e=0),this.config.donut?(l=(1-2*(t-e)/(i-e))*Math.PI,h=n/2-n/30,c=h-n/6.666666666666667*o,u=n/2+s,f=r/2+a,p=u+h*Math.cos(l),d=f-h*Math.sin(l),g=u+c*Math.cos(l),m=f-c*Math.sin(l),x="M"+(u-c)+","+f+" ",x+="L"+(u-h)+","+f+" ",t-e>(i-e)/2&&(x+="A"+h+","+h+" 0 0 1 "+(u+h)+","+f+" "),x+="A"+h+","+h+" 0 0 1 "+p+","+d+" ",x+="L"+g+","+m+" ",t-e>(i-e)/2&&(x+="A"+c+","+c+" 0 0 0 "+(u+c)+","+f+" "),x+="A"+c+","+c+" 0 0 0 "+(u-c)+","+f+" ",x+="Z ",{path:x}):(l=(1-(t-e)/(i-e))*Math.PI,h=n/2-n/10,c=h-n/6.666666666666667*o,u=n/2+s,f=r/1.25+a,p=u+h*Math.cos(l),d=f-h*Math.sin(l),g=u+c*Math.cos(l),m=f-c*Math.sin(l),x="M"+(u-c)+","+f+" ",x+="L"+(u-h)+","+f+" ",x+="A"+h+","+h+" 0 0 1 "+p+","+d+" ",x+="L"+g+","+m+" ",x+="A"+c+","+c+" 0 0 0 "+(u-c)+","+f+" ",x+="Z ",{path:x})},this.canvas.customAttributes.ndl=function(t){const e=this.config.min,i=this.config.max,n=this.params.widgetW,r=this.params.widgetH,s=this.params.dx,a=this.params.dy,o=this.config.gaugeWidthScale,l=this.config.donut;let h,c,u,f,p,d,g,m,x,v,y,b,w,_,k,S,M,C=3.5*n/100,B=n/15,A=n/100;return null!=this.config.pointerOptions.toplength&&void 0!==this.config.pointerOptions.toplength&&(C=this.config.pointerOptions.toplength),null!=this.config.pointerOptions.bottomlength&&void 0!==this.config.pointerOptions.bottomlength&&(B=this.config.pointerOptions.bottomlength),null!=this.config.pointerOptions.bottomwidth&&void 0!==this.config.pointerOptions.bottomwidth&&(A=this.config.pointerOptions.bottomwidth),l?(h=(1-2*(t-e)/(i-e))*Math.PI,c=n/2-n/30,u=c-n/6.666666666666667*o,f=r/2+a,p=n/2+s+c*Math.cos(h),d=r-(r-f)-c*Math.sin(h),g=n/2+s+u*Math.cos(h),m=r-(r-f)-u*Math.sin(h),x=p+C*Math.cos(h),v=d-C*Math.sin(h),y=g-B*Math.cos(h),b=m+B*Math.sin(h),w=y+A*Math.sin(h),_=b+A*Math.cos(h),k=y-A*Math.sin(h),S=b-A*Math.cos(h),M="M"+w+","+_+" ",M+="L"+k+","+S+" ",M+="L"+x+","+v+" ",M+="Z ",{path:M}):(h=(1-(t-e)/(i-e))*Math.PI,c=n/2-n/10,u=c-n/6.666666666666667*o,f=r/1.25+a,p=n/2+s+c*Math.cos(h),d=r-(r-f)-c*Math.sin(h),g=n/2+s+u*Math.cos(h),m=r-(r-f)-u*Math.sin(h),x=p+C*Math.cos(h),v=d-C*Math.sin(h),y=g-B*Math.cos(h),b=m+B*Math.sin(h),w=y+A*Math.sin(h),_=b+A*Math.cos(h),k=y-A*Math.sin(h),S=b-A*Math.cos(h),M="M"+w+","+_+" ",M+="L"+k+","+S+" ",M+="L"+x+","+v+" ",M+="Z ",{path:M})},this.gauge=this.canvas.path().attr({stroke:"none",fill:this.config.gaugeColor,pki:[this.config.max]}),this.level=this.canvas.path().attr({stroke:"none",fill:j(this.config.value,(this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors),pki:[this.config.min]}),this.config.donut&&this.level.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy)),this.config.pointer&&(this.needle=this.canvas.path().attr({stroke:R(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":R(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":R(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:R(this.config.pointerOptions.color)?"#000000":this.config.pointerOptions.color,ndl:[this.config.min]}),this.config.donut&&this.needle.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy))),this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,0),this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":"bold","font-family":this.config.valueFontFamily,fill:this.config.valueFontColor,"fill-opacity":"0"}),I(this.txtValue,this.params.valueFontSize,this.params.valueY),this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label),this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":"0"}),I(this.txtLabel,this.params.labelFontSize,this.params.labelY);let w=this.config.min;this.config.reverse&&(w=this.config.max),this.txtMinimum=w,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=q(w,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=W(w)),this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.txtMinimum),this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),I(this.txtMin,this.params.minFontSize,this.params.minY);let _=this.config.max;this.config.reverse&&(_=this.config.min),this.txtMaximum=_,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=q(_,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=W(_)),this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.txtMaximum),this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),I(this.txtMax,this.params.maxFontSize,this.params.maxY);const k=this.canvas.canvas.childNodes[1],S="http://www.w3.org/2000/svg";if(void 0!==X&&X<9||(void 0!==X?H((()=>{this.generateShadow(S,k)})):this.generateShadow(S,k)),this.config.textRenderer&&!1!==this.config.textRenderer(this.originalValue)?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=q(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=W(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=(1*(this.config.max-this.originalValue)).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(1*this.originalValue).toFixed(this.config.decimals)+this.config.symbol,!0===this.config.counter){const t=()=>{let t=this.level.attr("pki")[0];this.config.reverse&&(t=1*this.config.max+1*this.config.min-1*this.level.attr("pki")[0]),this.config.textRenderer&&!1!==this.config.textRenderer(Math.floor(t))?this.txtValue.attr("text",this.config.textRenderer(Math.floor(t))):this.config.humanFriendly?this.txtValue.attr("text",q(Math.floor(t),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",W(Math.floor(t))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",(1*(this.config.max-t)).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(1*t).toFixed(this.config.decimals)+this.config.symbol),I(this.txtValue,this.params.valueFontSize,this.params.valueY),t=null},e=()=>{this.txtValue.attr({text:this.originalValue}),I(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",e),this.bindEvent("raphael.anim.frame",t)}else{const t=()=>{this.txtValue.attr({text:this.originalValue}),I(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",t)}let M=this.config.value;this.config.reverse&&(M=1*this.config.max+1*this.config.min-1*this.config.value),this.level.animate({pki:[M]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[M]},this.config.startAnimationTime,this.config.startAnimationType),this.txtValue.animate({"fill-opacity":this.config.hideValue?"0":"1"},this.config.startAnimationTime,this.config.startAnimationType),this.txtLabel.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType)}bindEvent(t,e){t+="."+this.level.id,this.events[t]&&$.eve.off(t,this.events[t]),$.eve.on(t,e),this.events[t]=e}refresh(t,e,i,n){let r;e=U(e)?e:null,i=U(i)?i:null,null!==(n=n||null)&&(this.config.label=n,this.txtLabel.attr({text:this.config.label}),I(this.txtLabel,this.params.labelFontSize,this.params.labelY)),null!==i&&(this.config.min=i,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=q(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=W(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),I(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),I(this.txtMin,this.params.minFontSize,this.params.minY))),null!==e&&(this.config.max=e,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=q(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=W(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),I(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),I(this.txtMax,this.params.maxFontSize,this.params.maxY))),r=t,1*t>1*this.config.max&&(t=1*this.config.max),1*t<1*this.config.min&&(t=1*this.config.min);const s=j(t,(t-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);r=this.config.textRenderer&&!1!==this.config.textRenderer(r)?this.config.textRenderer(r):this.config.humanFriendly?q(r,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?W((1*r).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?(1*(this.config.max-r)).toFixed(this.config.decimals)+this.config.symbol:(1*r).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=r,this.config.value=1*t,this.config.counter||(this.txtValue.attr({text:r}),I(this.txtValue,this.params.valueFontSize,this.params.valueY));let a=this.config.value;this.config.reverse&&(a=1*this.config.max+1*this.config.min-1*this.config.value),this.level.animate({pki:[a],fill:s},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[a]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(t,e){const i=this;if(t instanceof Object)for(const n in t)V(i,n,e=t[n]);else V(i,t,e)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const t in this.events)$.eve.off(t,this.events[t]);this.events={}}generateShadow(t,e){const i="inner-shadow-"+(this.config.element.id||this.config.classId),n=document.createElementNS(t,"filter");n.setAttribute("id",i),e.appendChild(n);const r=document.createElementNS(t,"feOffset");r.setAttribute("dx","0"),r.setAttribute("dy",this.config.shadowVerticalOffset),n.appendChild(r);const s=document.createElementNS(t,"feGaussianBlur");s.setAttribute("result","offset-blur"),s.setAttribute("stdDeviation",this.config.shadowSize),n.appendChild(s);const a=document.createElementNS(t,"feComposite");a.setAttribute("operator","out"),a.setAttribute("in","SourceGraphic"),a.setAttribute("in2","offset-blur"),a.setAttribute("result","inverse"),n.appendChild(a);const o=document.createElementNS(t,"feFlood");o.setAttribute("flood-color","black"),o.setAttribute("flood-opacity",this.config.shadowOpacity),o.setAttribute("result","color"),n.appendChild(o);const l=document.createElementNS(t,"feComposite");l.setAttribute("operator","in"),l.setAttribute("in","color"),l.setAttribute("in2","inverse"),l.setAttribute("result","shadow"),n.appendChild(l);const h=document.createElementNS(t,"feComposite");h.setAttribute("operator","over"),h.setAttribute("in","shadow"),h.setAttribute("in2","SourceGraphic"),n.appendChild(h),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+i+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+i+")"))}}function V(t,e,i){switch(e){case"valueFontColor":if(!Y(i)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}t.txtValue.attr({fill:i});break;case"labelFontColor":if(!Y(i)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}t.txtMin.attr({fill:i}),t.txtMax.attr({fill:i}),t.txtLabel.attr({fill:i});break;default:console.log(`* justgage: "${e}" is not a supported update setting`)}}function O(t,e,i,n,r,s){let a=n,o=!1;if(!R(t)&&(!R(i)&&"object"==typeof i&&t in i?(a=i[t],o=!0):!R(e)&&"object"==typeof e&&t in e?(a=e[t],o=!0):a=n,!0===o&&!R(r)))switch(r){case"int":a=parseInt(a,10);break;case"float":a=parseFloat(a)}return a}function R(t){return null==t}function j(t,e,i,n,r){let s,a,o,l,h,c,u,f,p,d,g;const m=r&&r.ranges&&r.ranges.length>0;if(n=n||m,m){!0===r.percents&&(t=100*e);for(let e=0;e<r.ranges.length;e++)if(t>=r.ranges[e].lo&&t<=r.ranges[e].hi)return r.ranges[e].color}const x=i.length;if(1===x)return i[0];const v=n?1/x:1/(x-1),y=[];for(let t=0;t<i.length;t++)s=n?v*(t+1):v*t,a=parseInt(D(i[t]).substring(0,2),16),o=parseInt(D(i[t]).substring(2,4),16),l=parseInt(D(i[t]).substring(4,6),16),y[t]={pct:s,color:{r:a,g:o,b:l}};if(0===e)return"rgb("+[y[0].color.r,y[0].color.g,y[0].color.b].join(",")+")";for(let t=0;t<y.length;t++)if(e<=y[t].pct)return n?"rgb("+[y[t].color.r,y[t].color.g,y[t].color.b].join(",")+")":(h=y[t-1],c=y[t],u=c.pct-h.pct,f=(e-h.pct)/u,p=1-f,d=f,g={r:Math.floor(h.color.r*p+c.color.r*d),g:Math.floor(h.color.g*p+c.color.g*d),b:Math.floor(h.color.b*p+c.color.b*d)},"rgb("+[g.r,g.g,g.b].join(",")+")")}function I(t,e,i){(!X||X>9)&&t.node.firstChild.attributes.dy&&(t.node.firstChild.attributes.dy.value=0)}function D(t){return"#"===t.charAt(0)?t.substring(1,7):t}function Y(t){return"string"==typeof t&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(t)}function q(t,e){const i=Math.pow(10,e),n=" KMGTPE";let r=0;const s=1e3;for(;(t>=s||t<=-s)&&++r<7;)t/=s;return r=r>=7?6:r,Math.round(t*i)/i+n[r]}function W(t){const e=t.toString().split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}function G(t,e){let i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,"").getPropertyValue(e):t.currentStyle&&(e=e.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()})),i=t.currentStyle[e]),i}function H(t){void 0!==document.createElementNS?t():setTimeout((function(){H(t)}),100)}const X=function(){let t=3;const e=document.createElement("div"),i=e.getElementsByTagName("i");for(;i[0];)e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e";return t>4?t:void 0}();function U(t){return null!=t&&!isNaN(t)}function Z(e){let i,n,r;return{c(){var e,n,r,s,a;e="div",i=document.createElement(e),this.c=t,l(i,"part","gauge"),n=i,r="width",null==(s="100%")?n.style.removeProperty(r):n.style.setProperty(r,s,a?"important":""),l(i,"id","gauge")},m(t,s){var o,l,h,c;a(t,i,s),n||(o=window,l="resize",h=T(e[0],200),o.addEventListener(l,h,c),r=()=>o.removeEventListener(l,h,c),n=!0)},p:t,i:t,o:t,d(t){t&&o(i),n=!1,r()}}}function Q(t,e,i){const n=f();let r,s,{id:a}=e,{options:o}=e;function l(){s&&s.destroy(),i(4,s=null),h()}function h(){if(!o||!r)return console.error("cannot create gauge");if(s)console.error("cannot create html gauge");else{const t=Object.assign({element:r},o);i(4,s=new P(t))}}return function(t){f().$$.on_mount.push(t)}((()=>{i(3,r=n.shadowRoot.getElementById("gauge")),h()})),function(t){f().$$.on_destroy.push(t)}((()=>{s&&s.destroy(),i(4,s=null)})),t.$$set=t=>{"id"in t&&i(1,a=t.id),"options"in t&&i(2,o=t.options)},t.$$.update=()=>{30&t.$$.dirty&&(a||i(1,a=""),o&&"string"==typeof o&&i(2,o=JSON.parse(o)),r&&s&&l())},[l,a,o,r,s]}class J extends A{constructor(t){super(),B(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},Q,Z,s,{id:1,options:2},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["id","options"]}get id(){return this.$$.ctx[1]}set id(t){this.$$set({id:t}),_()}get options(){return this.$$.ctx[2]}set options(t){this.$$set({options:t}),_()}}return customElements.define("hb-gauge",J),J}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|