@htmlbricks/hb-gauge 0.50.0-alpha.9 → 0.60.1

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/main.iife.js CHANGED
@@ -1,5 +1,7 @@
1
- var _a=Object.defineProperty;var Dr=Lt=>{throw TypeError(Lt)};var ba=(Lt,zt,Pt)=>zt in Lt?_a(Lt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):Lt[zt]=Pt;var ae=(Lt,zt,Pt)=>ba(Lt,typeof zt!="symbol"?zt+"":zt,Pt),jr=(Lt,zt,Pt)=>zt.has(Lt)||Dr("Cannot "+Pt);var Gt=(Lt,zt,Pt)=>(jr(Lt,zt,"read from private field"),Pt?Pt.call(Lt):zt.get(Lt)),vn=(Lt,zt,Pt)=>zt.has(Lt)?Dr("Cannot add the same private member more than once"):zt instanceof WeakSet?zt.add(Lt):zt.set(Lt,Pt),xn=(Lt,zt,Pt,yi)=>(jr(Lt,zt,"write to private field"),yi?yi.call(Lt,Pt):zt.set(Lt,Pt),Pt);(function(Lt){"use strict";var ge,ie;const zt="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zt);const Pt=2,yi="[",Yr="]",_i={},Ut=Symbol(),Xi=!1,re=2,yn=4,Hi=8,_n=16,xe=32,Ve=64,bi=128,ee=256,wi=512,Wt=1024,ye=2048,Ie=4096,ki=8192,Ci=16384,qr=32768,Xr=65536,Hr=1<<19,bn=1<<20,Gi=Symbol("$state"),Gr=Symbol("legacy props");var wn=Array.isArray,Ur=Array.prototype.indexOf,Wr=Array.from,$i=Object.keys,Mi=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Zr=Object.prototype,Kr=Array.prototype,Qr=Object.getPrototypeOf;function Jr(s){for(var r=0;r<s.length;r++)s[r]()}let Ei=!1,Ui=[];function kn(){Ei=!1;const s=Ui.slice();Ui=[],Jr(s)}function Cn(s){Ei||(Ei=!0,queueMicrotask(kn)),Ui.push(s)}function ts(){Ei&&kn()}function $n(s){return s===this.v}function es(s,r){return s!=s?r==r:s!==r||s!==null&&typeof s=="object"||typeof s=="function"}function is(s){return!es(s,this.v)}function ns(s){throw new Error("https://svelte.dev/e/effect_in_teardown")}function rs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ss(s){throw new Error("https://svelte.dev/e/effect_orphan")}function as(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function os(){throw new Error("https://svelte.dev/e/hydration_failed")}function ls(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function us(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function hs(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function fs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let cs=!1;function oe(s,r){var f={f:0,v:s,reactions:null,equals:$n,rv:0,wv:0};return f}function Mn(s){return ds(oe(s))}function En(s,r=!1){const f=oe(s);return r||(f.equals=is),f}function ds(s){return Tt!==null&&!ue&&Tt.f&re&&(he===null?_s([s]):he.push(s)),s}function qt(s,r){return Tt!==null&&!ue&&rr()&&Tt.f&(re|_n)&&(he===null||!he.includes(s))&&fs(),ps(s,r)}function ps(s,r){return s.equals(r)||(s.v,s.v=r,s.wv=Yn(),Fn(s,ye),Nt!==null&&Nt.f&Wt&&!(Nt.f&(xe|Ve))&&(de===null?bs([s]):de.push(s))),r}function Fn(s,r){var f=s.reactions;if(f!==null)for(var w=f.length,y=0;y<w;y++){var _=f[y],k=_.f;k&ye||(pe(_,r),k&(Wt|ee)&&(k&re?Fn(_,Ie):en(_)))}}function Sn(s){var r=re|ye,f=Tt!==null&&Tt.f&re?Tt:null;return Nt===null||f!==null&&f.f&ee?r|=ee:Nt.f|=bn,{ctx:jt,deps:null,effects:null,equals:$n,f:r,fn:s,reactions:null,rv:0,v:null,wv:0,parent:f??Nt}}function An(s){var r=s.effects;if(r!==null){s.effects=null;for(var f=0;f<r.length;f+=1)ke(r[f])}}function gs(s){for(var r=s.parent;r!==null;){if(!(r.f&re))return r;r=r.parent}return null}function ms(s){var r,f=Nt;be(gs(s));try{An(s),r=Xn(s)}finally{be(f)}return r}function Tn(s){var r=ms(s),f=(we||s.f&ee)&&s.deps!==null?Ie:Wt;pe(s,f),s.equals(r)||(s.v=r,s.wv=Yn())}function Nn(s){console.warn("https://svelte.dev/e/hydration_mismatch")}let je=!1;function Fi(s){je=s}let le;function Wi(s){if(s===null)throw Nn(),_i;return le=s}function Ln(){return Wi(Qi(le))}function Te(s,r=null,f){if(typeof s!="object"||s===null||Gi in s)return s;const w=Qr(s);if(w!==Zr&&w!==Kr)return s;var y=new Map,_=wn(s),k=oe(0);_&&y.set("length",oe(s.length));var u;return new Proxy(s,{defineProperty(h,M,F){(!("value"in F)||F.configurable===!1||F.enumerable===!1||F.writable===!1)&&ls();var X=y.get(M);return X===void 0?(X=oe(F.value),y.set(M,X)):qt(X,Te(F.value,u)),!0},deleteProperty(h,M){var F=y.get(M);if(F===void 0)M in h&&y.set(M,oe(Ut));else{if(_&&typeof M=="string"){var X=y.get("length"),P=Number(M);Number.isInteger(P)&&P<X.v&&qt(X,P)}qt(F,Ut),zn(k)}return!0},get(h,M,F){var et;if(M===Gi)return s;var X=y.get(M),P=M in h;if(X===void 0&&(!P||(et=De(h,M))!=null&&et.writable)&&(X=oe(Te(P?h[M]:Ut,u)),y.set(M,X)),X!==void 0){var K=Rt(X);return K===Ut?void 0:K}return Reflect.get(h,M,F)},getOwnPropertyDescriptor(h,M){var F=Reflect.getOwnPropertyDescriptor(h,M);if(F&&"value"in F){var X=y.get(M);X&&(F.value=Rt(X))}else if(F===void 0){var P=y.get(M),K=P==null?void 0:P.v;if(P!==void 0&&K!==Ut)return{enumerable:!0,configurable:!0,value:K,writable:!0}}return F},has(h,M){var K;if(M===Gi)return!0;var F=y.get(M),X=F!==void 0&&F.v!==Ut||Reflect.has(h,M);if(F!==void 0||Nt!==null&&(!X||(K=De(h,M))!=null&&K.writable)){F===void 0&&(F=oe(X?Te(h[M],u):Ut),y.set(M,F));var P=Rt(F);if(P===Ut)return!1}return X},set(h,M,F,X){var L;var P=y.get(M),K=M in h;if(_&&M==="length")for(var et=F;et<P.v;et+=1){var G=y.get(et+"");G!==void 0?qt(G,Ut):et in h&&(G=oe(Ut),y.set(et+"",G))}P===void 0?(!K||(L=De(h,M))!=null&&L.writable)&&(P=oe(void 0),qt(P,Te(F,u)),y.set(M,P)):(K=P.v!==Ut,qt(P,Te(F,u)));var _t=Reflect.getOwnPropertyDescriptor(h,M);if(_t!=null&&_t.set&&_t.set.call(X,F),!K){if(_&&typeof M=="string"){var Mt=y.get("length"),W=Number(M);Number.isInteger(W)&&W>=Mt.v&&qt(Mt,W+1)}zn(k)}return!0},ownKeys(h){Rt(k);var M=Reflect.ownKeys(h).filter(P=>{var K=y.get(P);return K===void 0||K.v!==Ut});for(var[F,X]of y)X.v!==Ut&&!(F in h)&&M.push(F);return M},setPrototypeOf(){us()}})}function zn(s,r=1){qt(s,s.v+r)}var Zi,Bn,Rn,On;function Ki(){if(Zi===void 0){Zi=window,Bn=/Firefox/.test(navigator.userAgent);var s=Element.prototype,r=Node.prototype;Rn=De(r,"firstChild").get,On=De(r,"nextSibling").get,s.__click=void 0,s.__className="",s.__attributes=null,s.__styles=null,s.__e=void 0,Text.prototype.__t=void 0}}function vs(s=""){return document.createTextNode(s)}function Pn(s){return Rn.call(s)}function Qi(s){return On.call(s)}function xs(s){s.textContent=""}const Vn=0,ys=1;let Si=!1,Ai=Vn,ai=!1,oi=null,Ye=!1,Ji=!1;function In(s){Ye=s}function Dn(s){Ji=s}let Ne=[],qe=0,wa=[],Tt=null,ue=!1;function _e(s){Tt=s}let Nt=null;function be(s){Nt=s}let he=null;function _s(s){he=s}let Dt=null,Zt=0,de=null;function bs(s){de=s}let jn=1,Ti=0,we=!1;function Yn(){return++jn}function Ni(s){var X;var r=s.f;if(r&ye)return!0;if(r&Ie){var f=s.deps,w=(r&ee)!==0;if(f!==null){var y,_,k=(r&wi)!==0,u=w&&Nt!==null&&!we,h=f.length;if(k||u){var M=s,F=M.parent;for(y=0;y<h;y++)_=f[y],(k||!((X=_==null?void 0:_.reactions)!=null&&X.includes(M)))&&(_.reactions??(_.reactions=[])).push(M);k&&(M.f^=wi),u&&F!==null&&!(F.f&ee)&&(M.f^=ee)}for(y=0;y<h;y++)if(_=f[y],Ni(_)&&Tn(_),_.wv>s.wv)return!0}(!w||Nt!==null&&!we)&&pe(s,Wt)}return!1}function ws(s,r){for(var f=r;f!==null;){if(f.f&bi)try{f.fn(s);return}catch{f.f^=bi}f=f.parent}throw Si=!1,s}function ks(s){return(s.f&Ci)===0&&(s.parent===null||(s.parent.f&bi)===0)}function Li(s,r,f,w){if(Si){if(f===null&&(Si=!1),ks(r))throw s;return}f!==null&&(Si=!0);{ws(s,r);return}}function qn(s,r,f=!0){var w=s.reactions;if(w!==null)for(var y=0;y<w.length;y++){var _=w[y];_.f&re?qn(_,r,!1):r===_&&(f?pe(_,ye):_.f&Wt&&pe(_,Ie),en(_))}}function Xn(s){var K;var r=Dt,f=Zt,w=de,y=Tt,_=we,k=he,u=jt,h=ue,M=s.f;Dt=null,Zt=0,de=null,Tt=M&(xe|Ve)?null:s,we=(M&ee)!==0&&(!Ye||y===null||h),he=null,er(s.ctx),ue=!1,Ti++;try{var F=(0,s.fn)(),X=s.deps;if(Dt!==null){var P;if(zi(s,Zt),X!==null&&Zt>0)for(X.length=Zt+Dt.length,P=0;P<Dt.length;P++)X[Zt+P]=Dt[P];else s.deps=X=Dt;if(!we)for(P=Zt;P<X.length;P++)((K=X[P]).reactions??(K.reactions=[])).push(s)}else X!==null&&Zt<X.length&&(zi(s,Zt),X.length=Zt);if(rr()&&de!==null&&!ue&&X!==null&&!(s.f&(re|Ie|ye)))for(P=0;P<de.length;P++)qn(de[P],s);return y!==null&&Ti++,F}finally{Dt=r,Zt=f,de=w,Tt=y,we=_,he=k,er(u),ue=h}}function Cs(s,r){let f=r.reactions;if(f!==null){var w=Ur.call(f,s);if(w!==-1){var y=f.length-1;y===0?f=r.reactions=null:(f[w]=f[y],f.pop())}}f===null&&r.f&re&&(Dt===null||!Dt.includes(r))&&(pe(r,Ie),r.f&(ee|wi)||(r.f^=wi),An(r),zi(r,0))}function zi(s,r){var f=s.deps;if(f!==null)for(var w=r;w<f.length;w++)Cs(s,f[w])}function tn(s){var r=s.f;if(!(r&Ci)){pe(s,Wt);var f=Nt,w=jt;Nt=s;try{r&_n?Rs(s):Kn(s),Zn(s);var y=Xn(s);s.teardown=typeof y=="function"?y:null,s.wv=jn;var _=s.deps,k;Xi&&cs&&s.f&ye}catch(u){Li(u,s,f,w||s.ctx)}finally{Nt=f}}}function Hn(){if(qe>1e3){qe=0;try{as()}catch(s){if(oi!==null)Li(s,oi,null);else throw s}}qe++}function Gn(s){var r=s.length;if(r!==0){Hn();var f=Ye;Ye=!0;try{for(var w=0;w<r;w++){var y=s[w];y.f&Wt||(y.f^=Wt);var _=Es(y);$s(_)}}finally{Ye=f}}}function $s(s){var r=s.length;if(r!==0)for(var f=0;f<r;f++){var w=s[f];if(!(w.f&(Ci|ki)))try{Ni(w)&&(tn(w),w.deps===null&&w.first===null&&w.nodes_start===null&&(w.teardown===null?Qn(w):w.fn=null))}catch(y){Li(y,w,null,w.ctx)}}}function Ms(){if(ai=!1,qe>1001)return;const s=Ne;Ne=[],Gn(s),ai||(qe=0,oi=null)}function en(s){Ai===Vn&&(ai||(ai=!0,queueMicrotask(Ms))),oi=s;for(var r=s;r.parent!==null;){r=r.parent;var f=r.f;if(f&(Ve|xe)){if(!(f&Wt))return;r.f^=Wt}}Ne.push(r)}function Es(s){var r=[],f=s.first;t:for(;f!==null;){var w=f.f,y=(w&xe)!==0,_=y&&(w&Wt)!==0,k=f.next;if(!_&&!(w&ki)){if(w&yn)r.push(f);else if(y)f.f^=Wt;else{var u=Tt;try{Tt=f,Ni(f)&&tn(f)}catch(F){Li(F,f,null,f.ctx)}finally{Tt=u}}var h=f.first;if(h!==null){f=h;continue}}if(k===null){let F=f.parent;for(;F!==null;){if(s===F)break t;var M=F.next;if(M!==null){f=M;continue t}F=F.parent}}f=k}return r}function li(s){var r=Ai,f=Ne;try{Hn();const y=[];Ai=ys,Ne=y,ai=!1,Gn(f);var w=s==null?void 0:s();return ts(),(Ne.length>0||y.length>0)&&li(),qe=0,oi=null,w}finally{Ai=r,Ne=f}}function Rt(s){var r=s.f,f=(r&re)!==0;if(Tt!==null&&!ue){he!==null&&he.includes(s)&&hs();var w=Tt.deps;s.rv<Ti&&(s.rv=Ti,Dt===null&&w!==null&&w[Zt]===s?Zt++:Dt===null?Dt=[s]:(!we||!Dt.includes(s))&&Dt.push(s))}else if(f&&s.deps===null&&s.effects===null){var y=s,_=y.parent;_!==null&&!(_.f&ee)&&(y.f^=ee)}return f&&(y=s,Ni(y)&&Tn(y)),s.v}function nn(s){var r=ue;try{return ue=!0,s()}finally{ue=r}}const Fs=-7169;function pe(s,r){s.f=s.f&Fs|r}function Ss(s){Nt===null&&Tt===null&&ss(),Tt!==null&&Tt.f&ee&&Nt===null&&rs(),Ji&&ns()}function As(s,r){var f=r.last;f===null?r.last=r.first=s:(f.next=s,s.prev=f,r.last=s)}function Xe(s,r,f,w=!0){var y=(s&Ve)!==0,_=Nt,k={ctx:jt,deps:null,nodes_start:null,nodes_end:null,f:s|ye,first:null,fn:r,last:null,next:null,parent:y?null:_,prev:null,teardown:null,transitions:null,wv:0};if(f){var u=Ye;try{In(!0),tn(k),k.f|=qr}catch(F){throw ke(k),F}finally{In(u)}}else r!==null&&en(k);var h=f&&k.deps===null&&k.first===null&&k.nodes_start===null&&k.teardown===null&&(k.f&(bn|bi))===0;if(!h&&!y&&w&&(_!==null&&As(k,_),Tt!==null&&Tt.f&re)){var M=Tt;(M.effects??(M.effects=[])).push(k)}return k}function Ts(s){const r=Xe(Hi,null,!1);return pe(r,Wt),r.teardown=s,r}function Un(s){Ss();var r=Nt!==null&&(Nt.f&xe)!==0&&jt!==null&&!jt.m;if(r){var f=jt;(f.e??(f.e=[])).push({fn:s,effect:Nt,reaction:Tt})}else{var w=Wn(s);return w}}function Ns(s){const r=Xe(Ve,s,!0);return()=>{ke(r)}}function Ls(s){const r=Xe(Ve,s,!0);return(f={})=>new Promise(w=>{f.outro?Os(r,()=>{ke(r),w(void 0)}):(ke(r),w(void 0))})}function Wn(s){return Xe(yn,s,!1)}function zs(s){return Xe(Hi,s,!0)}function Bs(s,r=!0){return Xe(Hi|xe,s,!0,r)}function Zn(s){var r=s.teardown;if(r!==null){const f=Ji,w=Tt;Dn(!0),_e(null);try{r.call(null)}finally{Dn(f),_e(w)}}}function Kn(s,r=!1){var f=s.first;for(s.first=s.last=null;f!==null;){var w=f.next;ke(f,r),f=w}}function Rs(s){for(var r=s.first;r!==null;){var f=r.next;r.f&xe||ke(r),r=f}}function ke(s,r=!0){var f=!1;if((r||s.f&Hr)&&s.nodes_start!==null){for(var w=s.nodes_start,y=s.nodes_end;w!==null;){var _=w===y?null:Qi(w);w.remove(),w=_}f=!0}Kn(s,r&&!f),zi(s,0),pe(s,Ci);var k=s.transitions;if(k!==null)for(const h of k)h.stop();Zn(s);var u=s.parent;u!==null&&u.first!==null&&Qn(s),s.next=s.prev=s.teardown=s.ctx=s.deps=s.fn=s.nodes_start=s.nodes_end=null}function Qn(s){var r=s.parent,f=s.prev,w=s.next;f!==null&&(f.next=w),w!==null&&(w.prev=f),r!==null&&(r.first===s&&(r.first=w),r.last===s&&(r.last=f))}function Os(s,r){var f=[];Jn(s,f,!0),Ps(f,()=>{ke(s),r&&r()})}function Ps(s,r){var f=s.length;if(f>0){var w=()=>--f||r();for(var y of s)y.out(w)}else r()}function Jn(s,r,f){if(!(s.f&ki)){if(s.f^=ki,s.transitions!==null)for(const k of s.transitions)(k.is_global||f)&&r.push(k);for(var w=s.first;w!==null;){var y=w.next,_=(w.f&Xr)!==0||(w.f&xe)!==0;Jn(w,r,_?f:!1),w=y}}}function tr(s){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let jt=null;function er(s){jt=s}function ir(s,r=!1,f){jt={p:jt,c:null,e:null,m:!1,s,x:null,l:null}}function nr(s){const r=jt;if(r!==null){s!==void 0&&(r.x=s);const k=r.e;if(k!==null){var f=Nt,w=Tt;r.e=null;try{for(var y=0;y<k.length;y++){var _=k[y];be(_.effect),_e(_.reaction),Wn(_.fn)}}finally{be(f),_e(w)}}jt=r.p,r.m=!0}return s||{}}function rr(){return!0}const Vs=["touchstart","touchmove"];function Is(s){return Vs.includes(s)}function Ds(s){var r=Tt,f=Nt;_e(null),be(null);try{return s()}finally{_e(r),be(f)}}const js=new Set,sr=new Set;function Ys(s,r,f,w={}){function y(_){if(w.capture||ui.call(r,_),!_.cancelBubble)return Ds(()=>f==null?void 0:f.call(this,_))}return s.startsWith("pointer")||s.startsWith("touch")||s==="wheel"?Cn(()=>{r.addEventListener(s,y,w)}):r.addEventListener(s,y,w),y}function qs(s,r,f,w,y){var _={capture:w,passive:y},k=Ys(s,r,f,_);(r===document.body||r===window||r===document)&&Ts(()=>{r.removeEventListener(s,k,_)})}function ui(s){var W;var r=this,f=r.ownerDocument,w=s.type,y=((W=s.composedPath)==null?void 0:W.call(s))||[],_=y[0]||s.target,k=0,u=s.__root;if(u){var h=y.indexOf(u);if(h!==-1&&(r===document||r===window)){s.__root=r;return}var M=y.indexOf(r);if(M===-1)return;h<=M&&(k=h)}if(_=y[k]||s.target,_!==r){Mi(s,"currentTarget",{configurable:!0,get(){return _||f}});var F=Tt,X=Nt;_e(null),be(null);try{for(var P,K=[];_!==null;){var et=_.assignedSlot||_.parentNode||_.host||null;try{var G=_["__"+w];if(G!==void 0&&!_.disabled)if(wn(G)){var[_t,...Mt]=G;_t.apply(_,[s,...Mt])}else G.call(_,s)}catch(L){P?K.push(L):P=L}if(s.cancelBubble||et===r||et===null)break;_=et}if(P){for(let L of K)queueMicrotask(()=>{throw L});throw P}}finally{s.__root=r,delete s.currentTarget,_e(F),be(X)}}}function Xs(s){var r=document.createElement("template");return r.innerHTML=s,r.content}function rn(s,r){var f=Nt;f.nodes_start===null&&(f.nodes_start=s,f.nodes_end=r)}function Hs(s,r){var f=(r&Pt)!==0,w,y=!s.startsWith("<!>");return()=>{if(je)return rn(le,null),le;w===void 0&&(w=Xs(y?s:"<!>"+s),w=Pn(w));var _=f||Bn?document.importNode(w,!0):w.cloneNode(!0);return rn(_,_),_}}function ar(s,r){if(je){Nt.nodes_end=le,Ln();return}s!==null&&s.before(r)}function or(s,r){return lr(s,r)}function Gs(s,r){Ki(),r.intro=r.intro??!1;const f=r.target,w=je,y=le;try{for(var _=Pn(f);_&&(_.nodeType!==8||_.data!==yi);)_=Qi(_);if(!_)throw _i;Fi(!0),Wi(_),Ln();const k=lr(s,{...r,anchor:_});if(le===null||le.nodeType!==8||le.data!==Yr)throw Nn(),_i;return Fi(!1),k}catch(k){if(k===_i)return r.recover===!1&&os(),Ki(),xs(f),Fi(!1),or(s,r);throw k}finally{Fi(w),Wi(y)}}const He=new Map;function lr(s,{target:r,anchor:f,props:w={},events:y,context:_,intro:k=!0}){Ki();var u=new Set,h=X=>{for(var P=0;P<X.length;P++){var K=X[P];if(!u.has(K)){u.add(K);var et=Is(K);r.addEventListener(K,ui,{passive:et});var G=He.get(K);G===void 0?(document.addEventListener(K,ui,{passive:et}),He.set(K,1)):He.set(K,G+1)}}};h(Wr(js)),sr.add(h);var M=void 0,F=Ls(()=>{var X=f??r.appendChild(vs());return Bs(()=>{if(_){ir({});var P=jt;P.c=_}y&&(w.$$events=y),je&&rn(X,null),M=s(X,w)||{},je&&(Nt.nodes_end=le),_&&nr()}),()=>{var et;for(var P of u){r.removeEventListener(P,ui);var K=He.get(P);--K===0?(document.removeEventListener(P,ui),He.delete(P)):He.set(P,K)}sr.delete(h),X!==f&&((et=X.parentNode)==null||et.removeChild(X))}});return sn.set(M,F),M}let sn=new WeakMap;function Us(s,r){const f=sn.get(s);return f?(sn.delete(s),f(r)):Promise.resolve()}function Ws(s,r){Cn(()=>{var f=s.getRootNode(),w=f.host?f:f.head??f.ownerDocument.head;if(!w.querySelector("#"+r.hash)){const y=document.createElement("style");y.id=r.hash,y.textContent=r.code,w.appendChild(y)}})}function ur(s){jt===null&&tr(),Un(()=>{const r=nn(s);if(typeof r=="function")return r})}function Zs(s){jt===null&&tr(),ur(()=>()=>nn(s))}function an(s,r,f,w){var y;y=s[r];var _=w,k=!0,u=!1,h=()=>(u=!0,k&&(k=!1,_=w),_);y===void 0&&w!==void 0&&(y=h());var M;M=()=>{var K=s[r];return K===void 0?h():(k=!0,u=!1,K)};var F=!1,X=En(y),P=Sn(()=>{var K=M(),et=Rt(X);return F?(F=!1,et):X.v=K});return function(K,et){if(arguments.length>0){const G=et?Rt(P):K;return P.equals(G)||(F=!0,qt(X,G),u&&_!==void 0&&(_=G),nn(()=>Rt(P))),K}return Rt(P)}}function Ks(s){return new Qs(s)}class Qs{constructor(r){vn(this,ge);vn(this,ie);var _;var f=new Map,w=(k,u)=>{var h=En(u);return f.set(k,h),h};const y=new Proxy({...r.props||{},$$events:{}},{get(k,u){return Rt(f.get(u)??w(u,Reflect.get(k,u)))},has(k,u){return u===Gr?!0:(Rt(f.get(u)??w(u,Reflect.get(k,u))),Reflect.has(k,u))},set(k,u,h){return qt(f.get(u)??w(u,h),h),Reflect.set(k,u,h)}});xn(this,ie,(r.hydrate?Gs:or)(r.component,{target:r.target,anchor:r.anchor,props:y,context:r.context,intro:r.intro??!1,recover:r.recover})),(!((_=r==null?void 0:r.props)!=null&&_.$$host)||r.sync===!1)&&li(),xn(this,ge,y.$$events);for(const k of Object.keys(Gt(this,ie)))k==="$set"||k==="$destroy"||k==="$on"||Mi(this,k,{get(){return Gt(this,ie)[k]},set(u){Gt(this,ie)[k]=u},enumerable:!0});Gt(this,ie).$set=k=>{Object.assign(y,k)},Gt(this,ie).$destroy=()=>{Us(Gt(this,ie))}}$set(r){Gt(this,ie).$set(r)}$on(r,f){Gt(this,ge)[r]=Gt(this,ge)[r]||[];const w=(...y)=>f.call(this,...y);return Gt(this,ge)[r].push(w),()=>{Gt(this,ge)[r]=Gt(this,ge)[r].filter(y=>y!==w)}}$destroy(){Gt(this,ie).$destroy()}}ge=new WeakMap,ie=new WeakMap;let hr;typeof HTMLElement=="function"&&(hr=class extends HTMLElement{constructor(r,f,w){super();ae(this,"$$ctor");ae(this,"$$s");ae(this,"$$c");ae(this,"$$cn",!1);ae(this,"$$d",{});ae(this,"$$r",!1);ae(this,"$$p_d",{});ae(this,"$$l",{});ae(this,"$$l_u",new Map);ae(this,"$$me");this.$$ctor=r,this.$$s=f,w&&this.attachShadow({mode:"open"})}addEventListener(r,f,w){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(f),this.$$c){const y=this.$$c.$on(r,f);this.$$l_u.set(f,y)}super.addEventListener(r,f,w)}removeEventListener(r,f,w){if(super.removeEventListener(r,f,w),this.$$c){const y=this.$$l_u.get(f);y&&(y(),this.$$l_u.delete(f))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(y){return _=>{const k=document.createElement("slot");y!=="default"&&(k.name=y),ar(_,k)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const f={},w=Js(this);for(const y of this.$$s)y in w&&(y==="default"&&!this.$$d.children?(this.$$d.children=r(y),f.default=!0):f[y]=r(y));for(const y of this.attributes){const _=this.$$g_p(y.name);_ in this.$$d||(this.$$d[_]=Bi(_,y.value,this.$$p_d,"toProp"))}for(const y in this.$$p_d)!(y in this.$$d)&&this[y]!==void 0&&(this.$$d[y]=this[y],delete this[y]);this.$$c=Ks({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:f,$$host:this}}),this.$$me=Ns(()=>{zs(()=>{var y;this.$$r=!0;for(const _ of $i(this.$$c)){if(!((y=this.$$p_d[_])!=null&&y.reflect))continue;this.$$d[_]=this.$$c[_];const k=Bi(_,this.$$d[_],this.$$p_d,"toAttribute");k==null?this.removeAttribute(this.$$p_d[_].attribute||_):this.setAttribute(this.$$p_d[_].attribute||_,k)}this.$$r=!1})});for(const y in this.$$l)for(const _ of this.$$l[y]){const k=this.$$c.$on(y,_);this.$$l_u.set(_,k)}this.$$l={}}}attributeChangedCallback(r,f,w){var y;this.$$r||(r=this.$$g_p(r),this.$$d[r]=Bi(r,w,this.$$p_d,"toProp"),(y=this.$$c)==null||y.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return $i(this.$$p_d).find(f=>this.$$p_d[f].attribute===r||!this.$$p_d[f].attribute&&f.toLowerCase()===r)||r}});function Bi(s,r,f,w){var _;const y=(_=f[s])==null?void 0:_.type;if(r=y==="Boolean"&&typeof r!="boolean"?r!=null:r,!w||!f[s])return r;if(w==="toAttribute")switch(y){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r??null;default:return r}else switch(y){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function Js(s){const r={};return s.childNodes.forEach(f=>{r[f.slot||"default"]=!0}),r}function ta(s,r,f,w,y,_){let k=class extends hr{constructor(){super(s,f,y),this.$$p_d=r}static get observedAttributes(){return $i(r).map(u=>(r[u].attribute||u).toLowerCase())}};return $i(r).forEach(u=>{Mi(k.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(h){var X;h=Bi(u,h,r),this.$$d[u]=h;var M=this.$$c;if(M){var F=(X=De(M,u))==null?void 0:X.get;F?M[u]=h:M.$set({[u]:h})}}})}),w.forEach(u=>{Mi(k.prototype,u,{get(){var h;return(h=this.$$c)==null?void 0:h[u]}})}),s.element=k,k}function fr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Ri={exports:{}},cr;function ea(){if(cr)return Ri.exports;cr=1;function s(r,f=100,w={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(f<0)throw new RangeError("`wait` must not be negative.");const{immediate:y}=typeof w=="boolean"?{immediate:w}:w;let _,k,u,h,M;function F(){const K=_,et=k;return _=void 0,k=void 0,M=r.apply(K,et),M}function X(){const K=Date.now()-h;K<f&&K>=0?u=setTimeout(X,f-K):(u=void 0,y||(M=F()))}const P=function(...K){if(_&&this!==_&&Object.getPrototypeOf(this)===Object.getPrototypeOf(_))throw new Error("Debounced method called with different contexts of the same prototype.");_=this,k=K,h=Date.now();const et=y&&!u;return u||(u=setTimeout(X,f)),et&&(M=F()),M};return Object.defineProperty(P,"isPending",{get(){return u!==void 0}}),P.clear=()=>{u&&(clearTimeout(u),u=void 0)},P.flush=()=>{u&&P.trigger()},P.trigger=()=>{M=F(),P.clear()},P}return Ri.exports.debounce=s,Ri.exports=s,Ri.exports}var ia=ea();const na=fr(ia);var on={exports:{}},dr;function ra(){return dr||(dr=1,function(s,r){(function(f,w){s.exports=w()})(window,function(){return function(f){var w={};function y(_){if(w[_])return w[_].exports;var k=w[_]={i:_,l:!1,exports:{}};return f[_].call(k.exports,k,k.exports,y),k.l=!0,k.exports}return y.m=f,y.c=w,y.d=function(_,k,u){y.o(_,k)||Object.defineProperty(_,k,{enumerable:!0,get:u})},y.r=function(_){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})},y.t=function(_,k){if(1&k&&(_=y(_)),8&k||4&k&&typeof _=="object"&&_&&_.__esModule)return _;var u=Object.create(null);if(y.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:_}),2&k&&typeof _!="string")for(var h in _)y.d(u,h,(function(M){return _[M]}).bind(null,h));return u},y.n=function(_){var k=_&&_.__esModule?function(){return _.default}:function(){return _};return y.d(k,"a",k),k},y.o=function(_,k){return Object.prototype.hasOwnProperty.call(_,k)},y.p="",y(y.s=1)}([function(f,w,y){var _,k;_=[y(2)],(k=(function(u){function h(t){if(h.is(t,"function"))return M?t():u.on("raphael.DOMload",t);if(h.is(t,xt))return h._engine.create[W](h,t.splice(0,3+h.is(t[0],ct))).add(t);var e=Array.prototype.slice.call(arguments,0);if(h.is(e[e.length-1],"function")){var i=e.pop();return M?i.call(h._engine.create[W](h,e)):u.on("raphael.DOMload",function(){i.call(h._engine.create[W](h,e))})}return h._engine.create[W](h,arguments)}h.version="2.3.0",h.eve=u;var M,F,X=/[, ]+/,P={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},K=/\{(\d+)\}/g,et="hasOwnProperty",G={doc:document,win:window},_t={was:Object.prototype[et].call(G.win,"Raphael"),is:G.win.Raphael},Mt=function(){this.ca=this.customAttributes={}},W="apply",L="concat",J="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ft=" ",I=String,it="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[it](ft),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=I.prototype.toLowerCase,U=Math,Q=U.max,Z=U.min,ot=U.abs,yt=U.pow,Et=U.PI,ct="number",xt="array",Qt=Object.prototype.toString,p=(h._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),l={NaN:1,Infinity:1,"-Infinity":1},a=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=U.round,x=parseFloat,C=parseInt,$=I.prototype.toUpperCase,B=h._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:""},E=h._availableAnimAttrs={blur:ct,"clip-rect":"csv",cx:ct,cy:ct,fill:"colour","fill-opacity":ct,"font-size":ct,height:ct,opacity:ct,path:"path",r:ct,rx:ct,ry:ct,stroke:"colour","stroke-opacity":ct,"stroke-width":ct,transform:"transform",width:ct,x:ct,y:ct},z=/[\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]*/,H={hs:1,rg:1},nt=/,?([achlmqrstvxz]),?/gi,pt=/([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,vt=/([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,dt=/(-?\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,kt=(h._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]*([^\)]+?)\))?/,{}),$t=function(t,e){return x(t)-x(e)},bt=function(t){return t},at=h._rectPath=function(t,e,i,n,o){return o?[["M",t+o,e],["l",i-2*o,0],["a",o,o,0,0,1,o,o],["l",0,n-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-i,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-n],["a",o,o,0,0,1,o,-o],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},Ft=function(t,e,i,n){return n==null&&(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"]]},Bt=h._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)}},Ot=h.mapPath=function(t,e){if(!e)return t;var i,n,o,d,m,g,v;for(o=0,m=(t=gi(t)).length;o<m;o++)for(d=1,g=(v=t[o]).length;d<g;d+=2)i=e.x(v[d],v[d+1]),n=e.y(v[d],v[d+1]),v[d]=i,v[d+1]=n;return t};if(h._g=G,h.type=G.win.SVGAngle||G.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",h.type=="VML"){var At,Jt=G.doc.createElement("div");if(Jt.innerHTML='<v:shape adj="1"/>',(At=Jt.firstChild).style.behavior="url(#default#VML)",!At||typeof At.adj!="object")return h.type=lt;Jt=null}function Yt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[et](i)&&(e[i]=Yt(t[i]));return e}h.svg=!(h.vml=h.type=="VML"),h._Paper=Mt,h.fn=F=Mt.prototype=h.prototype,h._id=0,h.is=function(t,e){return(e=st.call(e))=="finite"?!l[et](+t):e=="array"?t instanceof Array:e=="null"&&t===null||e==typeof t&&t!==null||e=="object"&&t===Object(t)||e=="array"&&Array.isArray&&Array.isArray(t)||Qt.call(t).slice(8,-1).toLowerCase()==e},h.angle=function(t,e,i,n,o,d){if(o==null){var m=t-i,g=e-n;return m||g?(180+180*U.atan2(-g,-m)/Et+360)%360:0}return h.angle(t,e,o,d)-h.angle(i,n,o,d)},h.rad=function(t){return t%360*Et/180},h.deg=function(t){return Math.round(180*t/Et%360*1e3)/1e3},h.snapTo=function(t,e,i){if(i=h.is(i,"finite")?i:10,h.is(t,xt)){for(var n=t.length;n--;)if(ot(t[n]-e)<=i)return t[n]}else{var o=e%(t=+t);if(o<i)return e-o;if(o>t-i)return e-o+t}return e};var Ce,fi;h.createUUID=(Ce=/[xy]/g,fi=function(t){var e=16*U.random()|0;return(t=="x"?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ce,fi).toUpperCase()}),h.setWindow=function(t){u("raphael.setWindow",h,G.win,t),G.win=t,G.doc=G.win.document,h._engine.initWin&&h._engine.initWin(G.win)};var $e=function(t){if(h.vml){var e,i=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write("<body>"),n.close(),e=n.body}catch{e=createPopup().document.body}var o=e.createTextRange();$e=Vt(function(m){try{e.style.color=I(m).replace(i,lt);var g=o.queryCommandValue("ForeColor");return"#"+("000000"+(g=(255&g)<<16|65280&g|(16711680&g)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=G.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",G.doc.body.appendChild(d),$e=Vt(function(m){return d.style.color=m,G.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return $e(t)},Ge=function(){return"hsb("+[this.h,this.s,this.b]+")"},Ue=function(){return"hsl("+[this.h,this.s,this.l]+")"},ci=function(){return this.hex},We=function(t,e,i){if(e==null&&h.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),e==null&&h.is(t,"string")){var n=h.getRGB(t);t=n.r,e=n.g,i=n.b}return(t>1||e>1||i>1)&&(t/=255,e/=255,i/=255),[t,e,i]},Pi=function(t,e,i,n){var o={r:t*=255,g:e*=255,b:i*=255,hex:h.rgb(t,e,i),toString:ci};return h.is(n,"finite")&&(o.opacity=n),o};function Vt(t,e,i){return function n(){var o=Array.prototype.slice.call(arguments,0),d=o.join("␀"),m=n.cache=n.cache||{},g=n.count=n.count||[];return m[et](d)?(function(v,b){for(var A=0,V=v.length;A<V;A++)if(v[A]===b)return v.push(v.splice(A,1)[0])}(g,d),i?i(m[d]):m[d]):(g.length>=1e3&&delete m[g.shift()],g.push(d),m[d]=t[W](e,o),i?i(m[d]):m[d])}}h.color=function(t){var e;return h.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=h.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):h.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=h.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(h.is(t,"string")&&(t=h.getRGB(t)),h.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=h.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=h.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=ci,t},h.hsb2rgb=function(t,e,i,n){var o,d,m,g,v;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),g=(v=i*e)*(1-ot((t=(t*=360)%360/60)%2-1)),o=d=m=i-v,Pi(o+=[v,g,0,0,g,v][t=~~t],d+=[g,v,v,g,0,0][t],m+=[0,0,g,v,v,g][t],n)},h.hsl2rgb=function(t,e,i,n){var o,d,m,g,v;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),g=(v=2*e*(i<.5?i:1-i))*(1-ot((t=(t*=360)%360/60)%2-1)),o=d=m=i-v/2,Pi(o+=[v,g,0,0,g,v][t=~~t],d+=[g,v,v,g,0,0][t],m+=[0,0,g,v,v,g][t],n)},h.rgb2hsb=function(t,e,i){var n,o;return t=(i=We(t,e,i))[0],e=i[1],i=i[2],{h:(((o=(n=Q(t,e,i))-Z(t,e,i))==0?null:n==t?(e-i)/o:n==e?(i-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:o==0?0:o/n,b:n,toString:Ge}},h.rgb2hsl=function(t,e,i){var n,o,d,m;return t=(i=We(t,e,i))[0],e=i[1],i=i[2],n=((o=Q(t,e,i))+(d=Z(t,e,i)))/2,{h:(((m=o-d)==0?null:o==t?(e-i)/m:o==e?(i-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:n<.5?m/(2*n):m/(2-2*n),l:n,toString:Ue}},h._path2string=function(){return this.join(",").replace(nt,"$1")},h._preload=function(t,e){var i=G.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,G.doc.body.removeChild(this)},i.onerror=function(){G.doc.body.removeChild(this)},G.doc.body.appendChild(i),i.src=t};function Me(){return this.hex}function Ze(t,e){for(var i=[],n=0,o=t.length;o-2*!e>n;n+=2){var d=[{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?o-4==n?d[3]={x:+t[0],y:+t[1]}:o-2==n&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[o-2],y:+t[o-1]}:o-4==n?d[3]=d[2]:n||(d[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-d[0].x+6*d[1].x+d[2].x)/6,(-d[0].y+6*d[1].y+d[2].y)/6,(d[1].x+6*d[2].x-d[3].x)/6,(d[1].y+6*d[2].y-d[3].y)/6,d[2].x,d[2].y])}return i}h.getRGB=Vt(function(t){if(!t||(t=I(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Me};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Me};!H[et](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=$e(t));var e,i,n,o,d,m,g=t.match(p);return g?(g[2]&&(n=C(g[2].substring(5),16),i=C(g[2].substring(3,5),16),e=C(g[2].substring(1,3),16)),g[3]&&(n=C((d=g[3].charAt(3))+d,16),i=C((d=g[3].charAt(2))+d,16),e=C((d=g[3].charAt(1))+d,16)),g[4]&&(m=g[4][it](z),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),g[1].toLowerCase().slice(0,4)=="rgba"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100)),g[5]?(m=g[5][it](z),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),g[1].toLowerCase().slice(0,4)=="hsba"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100),h.hsb2rgb(e,i,n,o)):g[6]?(m=g[6][it](z),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),g[1].toLowerCase().slice(0,4)=="hsla"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100),h.hsl2rgb(e,i,n,o)):((g={r:e,g:i,b:n,toString:Me}).hex="#"+(16777216|n|i<<8|e<<16).toString(16).slice(1),h.is(o,"finite")&&(g.opacity=o),g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Me}},h),h.hsb=Vt(function(t,e,i){return h.hsb2rgb(t,e,i).hex}),h.hsl=Vt(function(t,e,i){return h.hsl2rgb(t,e,i).hex}),h.rgb=Vt(function(t,e,i){function n(o){return o+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),h.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},h.getColor.reset=function(){delete this.start},h.parsePathString=function(t){if(!t)return null;var e=ne(t);if(e.arr)return Xt(e.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return h.is(t,xt)&&h.is(t[0],xt)&&(n=Xt(t)),n.length||I(t).replace(pt,function(o,d,m){var g=[],v=d.toLowerCase();if(m.replace(dt,function(b,A){A&&g.push(+A)}),v=="m"&&g.length>2&&(n.push([d][L](g.splice(0,2))),v="l",d=d=="m"?"l":"L"),v=="r")n.push([d][L](g));else for(;g.length>=i[v]&&(n.push([d][L](g.splice(0,i[v]))),i[v]););}),n.toString=h._path2string,e.arr=Xt(n),n},h.parseTransformString=Vt(function(t){if(!t)return null;var e=[];return h.is(t,xt)&&h.is(t[0],xt)&&(e=Xt(t)),e.length||I(t).replace(vt,function(i,n,o){var d=[];st.call(n),o.replace(dt,function(m,g){g&&d.push(+g)}),e.push([n][L](d))}),e.toString=h._path2string,e},this,function(t){if(!t)return t;for(var e=[],i=0;i<t.length;i++){for(var n=[],o=0;o<t[i].length;o++)n.push(t[i][o]);e.push(n)}return e});var ne=function(t){var e=ne.ps=ne.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[et](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};function Ke(t,e,i,n,o){return t*(t*(-3*e+9*i-9*n+3*o)+6*e-12*i+6*n)-3*e+3*i}function se(t,e,i,n,o,d,m,g,v){v==null&&(v=1);for(var b=(v=v>1?1:v<0?0:v)/2,A=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],V=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],N=0,S=0;S<12;S++){var R=b*A[S]+b,D=Ke(R,t,i,o,m),O=Ke(R,e,n,d,g),T=D*D+O*O;N+=V[S]*U.sqrt(T)}return b*N}function di(t,e,i,n,o,d,m,g){if(!(Q(t,i)<Z(o,m)||Z(t,i)>Q(o,m)||Q(e,n)<Z(d,g)||Z(e,n)>Q(d,g))){var v=(t-i)*(d-g)-(e-n)*(o-m);if(v){var b=((t*n-e*i)*(o-m)-(t-i)*(o*g-d*m))/v,A=((t*n-e*i)*(d-g)-(e-n)*(o*g-d*m))/v,V=+b.toFixed(2),N=+A.toFixed(2);if(!(V<+Z(t,i).toFixed(2)||V>+Q(t,i).toFixed(2)||V<+Z(o,m).toFixed(2)||V>+Q(o,m).toFixed(2)||N<+Z(e,n).toFixed(2)||N>+Q(e,n).toFixed(2)||N<+Z(d,g).toFixed(2)||N>+Q(d,g).toFixed(2)))return{x:b,y:A}}}}function Qe(t,e,i){var n=h.bezierBBox(t),o=h.bezierBBox(e);if(!h.isBBoxIntersect(n,o))return i?0:[];for(var d=se.apply(0,t),m=se.apply(0,e),g=Q(~~(d/5),1),v=Q(~~(m/5),1),b=[],A=[],V={},N=i?0:[],S=0;S<g+1;S++){var R=h.findDotsAtSegment.apply(h,t.concat(S/g));b.push({x:R.x,y:R.y,t:S/g})}for(S=0;S<v+1;S++)R=h.findDotsAtSegment.apply(h,e.concat(S/v)),A.push({x:R.x,y:R.y,t:S/v});for(S=0;S<g;S++)for(var D=0;D<v;D++){var O=b[S],T=b[S+1],tt=A[D],j=A[D+1],q=ot(T.x-O.x)<.001?"y":"x",Y=ot(j.x-tt.x)<.001?"y":"x",gt=di(O.x,O.y,T.x,T.y,tt.x,tt.y,j.x,j.y);if(gt){if(V[gt.x.toFixed(4)]==gt.y.toFixed(4))continue;V[gt.x.toFixed(4)]=gt.y.toFixed(4);var ut=O.t+ot((gt[q]-O[q])/(T[q]-O[q]))*(T.t-O.t),mt=tt.t+ot((gt[Y]-tt[Y])/(j[Y]-tt[Y]))*(j.t-tt.t);ut>=0&&ut<=1.001&&mt>=0&&mt<=1.001&&(i?N++:N.push({x:gt.x,y:gt.y,t1:Z(ut,1),t2:Z(mt,1)}))}}return N}function pi(t,e,i){t=h._path2curve(t),e=h._path2curve(e);for(var n,o,d,m,g,v,b,A,V,N,S=i?0:[],R=0,D=t.length;R<D;R++){var O=t[R];if(O[0]=="M")n=g=O[1],o=v=O[2];else{O[0]=="C"?(V=[n,o].concat(O.slice(1)),n=V[6],o=V[7]):(V=[n,o,n,o,g,v,g,v],n=g,o=v);for(var T=0,tt=e.length;T<tt;T++){var j=e[T];if(j[0]=="M")d=b=j[1],m=A=j[2];else{j[0]=="C"?(N=[d,m].concat(j.slice(1)),d=N[6],m=N[7]):(N=[d,m,d,m,b,A,b,A],d=b,m=A);var q=Qe(V,N,i);if(i)S+=q;else{for(var Y=0,gt=q.length;Y<gt;Y++)q[Y].segment1=R,q[Y].segment2=T,q[Y].bez1=V,q[Y].bez2=N;S=S.concat(q)}}}}}return S}h.findDotsAtSegment=function(t,e,i,n,o,d,m,g,v){var b=1-v,A=yt(b,3),V=yt(b,2),N=v*v,S=N*v,R=A*t+3*V*v*i+3*b*v*v*o+S*m,D=A*e+3*V*v*n+3*b*v*v*d+S*g,O=t+2*v*(i-t)+N*(o-2*i+t),T=e+2*v*(n-e)+N*(d-2*n+e),tt=i+2*v*(o-i)+N*(m-2*o+i),j=n+2*v*(d-n)+N*(g-2*d+n),q=b*t+v*i,Y=b*e+v*n,gt=b*o+v*m,ut=b*d+v*g,mt=90-180*U.atan2(O-tt,T-j)/Et;return(O>tt||T<j)&&(mt+=180),{x:R,y:D,m:{x:O,y:T},n:{x:tt,y:j},start:{x:q,y:Y},end:{x:gt,y:ut},alpha:mt}},h.bezierBBox=function(t,e,i,n,o,d,m,g){h.is(t,"array")||(t=[t,e,i,n,o,d,m,g]);var v=Ii.apply(null,t);return{x:v.min.x,y:v.min.y,x2:v.max.x,y2:v.max.y,width:v.max.x-v.min.x,height:v.max.y-v.min.y}},h.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},h.isBBoxIntersect=function(t,e){var i=h.isPointInsideBBox;return i(e,t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},h.pathIntersection=function(t,e){return pi(t,e)},h.pathIntersectionNumber=function(t,e){return pi(t,e,1)},h.isPointInsidePath=function(t,e,i){var n=h.pathBBox(t);return h.isPointInsideBBox(n,e,i)&&pi(t,[["M",e,i],["H",n.x2+10]],1)%2==1},h._removedFactory=function(t){return function(){u("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var Ee=h.pathBBox=function(t){var e=ne(t);if(e.bbox)return Yt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,o=0,d=[],m=[],g=0,v=(t=gi(t)).length;g<v;g++)if((i=t[g])[0]=="M")n=i[1],o=i[2],d.push(n),m.push(o);else{var b=Ii(n,o,i[1],i[2],i[3],i[4],i[5],i[6]);d=d[L](b.min.x,b.max.x),m=m[L](b.min.y,b.max.y),n=i[5],o=i[6]}var A=Z[W](0,d),V=Z[W](0,m),N=Q[W](0,d),S=Q[W](0,m),R=N-A,D=S-V,O={x:A,y:V,x2:N,y2:S,width:R,height:D,cx:A+R/2,cy:V+D/2};return e.bbox=Yt(O),O},Xt=function(t){var e=Yt(t);return e.toString=h._path2string,e},br=h._pathToRelative=function(t){var e=ne(t);if(e.rel)return Xt(e.rel);h.is(t,xt)&&h.is(t&&t[0],xt)||(t=h.parsePathString(t));var i=[],n=0,o=0,d=0,m=0,g=0;t[0][0]=="M"&&(d=n=t[0][1],m=o=t[0][2],g++,i.push(["M",n,o]));for(var v=g,b=t.length;v<b;v++){var A=i[v]=[],V=t[v];if(V[0]!=st.call(V[0]))switch(A[0]=st.call(V[0]),A[0]){case"a":A[1]=V[1],A[2]=V[2],A[3]=V[3],A[4]=V[4],A[5]=V[5],A[6]=+(V[6]-n).toFixed(3),A[7]=+(V[7]-o).toFixed(3);break;case"v":A[1]=+(V[1]-o).toFixed(3);break;case"m":d=V[1],m=V[2];default:for(var N=1,S=V.length;N<S;N++)A[N]=+(V[N]-(N%2?n:o)).toFixed(3)}else{A=i[v]=[],V[0]=="m"&&(d=V[1]+n,m=V[2]+o);for(var R=0,D=V.length;R<D;R++)i[v][R]=V[R]}var O=i[v].length;switch(i[v][0]){case"z":n=d,o=m;break;case"h":n+=+i[v][O-1];break;case"v":o+=+i[v][O-1];break;default:n+=+i[v][O-2],o+=+i[v][O-1]}}return i.toString=h._path2string,e.rel=Xt(i),i},Je=h._pathToAbsolute=function(t){var e=ne(t);if(e.abs)return Xt(e.abs);if(h.is(t,xt)&&h.is(t&&t[0],xt)||(t=h.parsePathString(t)),!t||!t.length)return[["M",0,0]];var i=[],n=0,o=0,d=0,m=0,g=0;t[0][0]=="M"&&(d=n=+t[0][1],m=o=+t[0][2],g++,i[0]=["M",n,o]);for(var v,b,A=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",V=g,N=t.length;V<N;V++){if(i.push(v=[]),(b=t[V])[0]!=$.call(b[0]))switch(v[0]=$.call(b[0]),v[0]){case"A":v[1]=b[1],v[2]=b[2],v[3]=b[3],v[4]=b[4],v[5]=b[5],v[6]=+(b[6]+n),v[7]=+(b[7]+o);break;case"V":v[1]=+b[1]+o;break;case"H":v[1]=+b[1]+n;break;case"R":for(var S=[n,o][L](b.slice(1)),R=2,D=S.length;R<D;R++)S[R]=+S[R]+n,S[++R]=+S[R]+o;i.pop(),i=i[L](Ze(S,A));break;case"M":d=+b[1]+n,m=+b[2]+o;default:for(R=1,D=b.length;R<D;R++)v[R]=+b[R]+(R%2?n:o)}else if(b[0]=="R")S=[n,o][L](b.slice(1)),i.pop(),i=i[L](Ze(S,A)),v=["R"][L](b.slice(-2));else for(var O=0,T=b.length;O<T;O++)v[O]=b[O];switch(v[0]){case"Z":n=d,o=m;break;case"H":n=v[1];break;case"V":o=v[1];break;case"M":d=v[v.length-2],m=v[v.length-1];default:n=v[v.length-2],o=v[v.length-1]}}return i.toString=h._path2string,e.abs=Xt(i),i},ti=function(t,e,i,n){return[t,e,i,n,i,n]},Fe=function(t,e,i,n,o,d){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*o+2/3*i,1/3*d+2/3*n,o,d]},Vi=function(t,e,i,n,o,d,m,g,v,b){var A,V=120*Et/180,N=Et/180*(+o||0),S=[],R=Vt(function(Vr,Ir,qi){return{x:Vr*U.cos(qi)-Ir*U.sin(qi),y:Vr*U.sin(qi)+Ir*U.cos(qi)}});if(b)ut=b[0],mt=b[1],Y=b[2],gt=b[3];else{t=(A=R(t,e,-N)).x,e=A.y,g=(A=R(g,v,-N)).x,v=A.y;var D=(t-g)/2,O=(e-v)/2,T=D*D/(i*i)+O*O/(n*n);T>1&&(i*=T=U.sqrt(T),n*=T);var tt=i*i,j=n*n,q=(d==m?-1:1)*U.sqrt(ot((tt*j-tt*O*O-j*D*D)/(tt*O*O+j*D*D))),Y=q*i*O/n+(t+g)/2,gt=q*-n*D/i+(e+v)/2,ut=U.asin(((e-gt)/n).toFixed(9)),mt=U.asin(((v-gt)/n).toFixed(9));(ut=t<Y?Et-ut:ut)<0&&(ut=2*Et+ut),(mt=g<Y?Et-mt:mt)<0&&(mt=2*Et+mt),m&&ut>mt&&(ut-=2*Et),!m&&mt>ut&&(mt-=2*Et)}var ii=mt-ut;if(ot(ii)>V){var xi=mt,Ht=g,ce=v;mt=ut+V*(m&&mt>ut?1:-1),g=Y+i*U.cos(mt),v=gt+n*U.sin(mt),S=Vi(g,v,i,n,o,0,m,Ht,ce,[mt,xi,Y,gt])}ii=mt-ut;var ni=U.cos(ut),ri=U.sin(ut),ji=U.cos(mt),ve=U.sin(mt),Pe=U.tan(ii/4),Yi=4/3*i*Pe,zr=4/3*n*Pe,Br=[t,e],si=[t+Yi*ri,e-zr*ni],Rr=[g+Yi*ve,v-zr*ji],Or=[g,v];if(si[0]=2*Br[0]-si[0],si[1]=2*Br[1]-si[1],b)return[si,Rr,Or][L](S);for(var Pr=[],Ae=0,ya=(S=[si,Rr,Or][L](S).join()[it](",")).length;Ae<ya;Ae++)Pr[Ae]=Ae%2?R(S[Ae-1],S[Ae],N).y:R(S[Ae],S[Ae+1],N).x;return Pr},Be=function(t,e,i,n,o,d,m,g,v){var b=1-v;return{x:yt(b,3)*t+3*yt(b,2)*v*i+3*b*v*v*o+yt(v,3)*m,y:yt(b,3)*e+3*yt(b,2)*v*n+3*b*v*v*d+yt(v,3)*g}},Ii=Vt(function(t,e,i,n,o,d,m,g){var v,b=o-2*i+t-(m-2*o+i),A=2*(i-t)-2*(o-i),V=t-i,N=(-A+U.sqrt(A*A-4*b*V))/2/b,S=(-A-U.sqrt(A*A-4*b*V))/2/b,R=[e,g],D=[t,m];return ot(N)>"1e12"&&(N=.5),ot(S)>"1e12"&&(S=.5),N>0&&N<1&&(v=Be(t,e,i,n,o,d,m,g,N),D.push(v.x),R.push(v.y)),S>0&&S<1&&(v=Be(t,e,i,n,o,d,m,g,S),D.push(v.x),R.push(v.y)),b=d-2*n+e-(g-2*d+n),V=e-n,N=(-(A=2*(n-e)-2*(d-n))+U.sqrt(A*A-4*b*V))/2/b,S=(-A-U.sqrt(A*A-4*b*V))/2/b,ot(N)>"1e12"&&(N=.5),ot(S)>"1e12"&&(S=.5),N>0&&N<1&&(v=Be(t,e,i,n,o,d,m,g,N),D.push(v.x),R.push(v.y)),S>0&&S<1&&(v=Be(t,e,i,n,o,d,m,g,S),D.push(v.x),R.push(v.y)),{min:{x:Z[W](0,D),y:Z[W](0,R)},max:{x:Q[W](0,D),y:Q[W](0,R)}}}),gi=h._path2curve=Vt(function(t,e){var i=!e&&ne(t);if(!e&&i.curve)return Xt(i.curve);for(var n=Je(t),o=e&&Je(e),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},g=function(q,Y,gt){var ut,mt;if(!q)return["C",Y.x,Y.y,Y.x,Y.y,Y.x,Y.y];switch(!(q[0]in{T:1,Q:1})&&(Y.qx=Y.qy=null),q[0]){case"M":Y.X=q[1],Y.Y=q[2];break;case"A":q=["C"][L](Vi[W](0,[Y.x,Y.y][L](q.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*Y.x-Y.bx,mt=2*Y.y-Y.by):(ut=Y.x,mt=Y.y),q=["C",ut,mt][L](q.slice(1));break;case"T":gt=="Q"||gt=="T"?(Y.qx=2*Y.x-Y.qx,Y.qy=2*Y.y-Y.qy):(Y.qx=Y.x,Y.qy=Y.y),q=["C"][L](Fe(Y.x,Y.y,Y.qx,Y.qy,q[1],q[2]));break;case"Q":Y.qx=q[1],Y.qy=q[2],q=["C"][L](Fe(Y.x,Y.y,q[1],q[2],q[3],q[4]));break;case"L":q=["C"][L](ti(Y.x,Y.y,q[1],q[2]));break;case"H":q=["C"][L](ti(Y.x,Y.y,q[1],Y.y));break;case"V":q=["C"][L](ti(Y.x,Y.y,Y.x,q[1]));break;case"Z":q=["C"][L](ti(Y.x,Y.y,Y.X,Y.Y))}return q},v=function(q,Y){if(q[Y].length>7){q[Y].shift();for(var gt=q[Y];gt.length;)A[Y]="A",o&&(V[Y]="A"),q.splice(Y++,0,["C"][L](gt.splice(0,6)));q.splice(Y,1),D=Q(n.length,o&&o.length||0)}},b=function(q,Y,gt,ut,mt){q&&Y&&q[mt][0]=="M"&&Y[mt][0]!="M"&&(Y.splice(mt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=q[mt][1],gt.y=q[mt][2],D=Q(n.length,o&&o.length||0))},A=[],V=[],N="",S="",R=0,D=Q(n.length,o&&o.length||0);R<D;R++){n[R]&&(N=n[R][0]),N!="C"&&(A[R]=N,R&&(S=A[R-1])),n[R]=g(n[R],d,S),A[R]!="A"&&N=="C"&&(A[R]="C"),v(n,R),o&&(o[R]&&(N=o[R][0]),N!="C"&&(V[R]=N,R&&(S=V[R-1])),o[R]=g(o[R],m,S),V[R]!="A"&&N=="C"&&(V[R]="C"),v(o,R)),b(n,o,d,m,R),b(o,n,m,d,R);var O=n[R],T=o&&o[R],tt=O.length,j=o&&T.length;d.x=O[tt-2],d.y=O[tt-1],d.bx=x(O[tt-4])||d.x,d.by=x(O[tt-3])||d.y,m.bx=o&&(x(T[j-4])||m.x),m.by=o&&(x(T[j-3])||m.y),m.x=o&&T[j-2],m.y=o&&T[j-1]}return o||(i.curve=Xt(n)),o?[n,o]:n},null,Xt),Di=(h._parseDots=Vt(function(t){for(var e=[],i=0,n=t.length;i<n;i++){var o={},d=t[i].match(/^([^:]*):?([\d\.]*)/);if(o.color=h.getRGB(d[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,d[2]&&(o.offset=d[2]+"%"),e.push(o)}for(i=1,n=e.length-1;i<n;i++)if(!e[i].offset){for(var m=x(e[i-1].offset||0),g=0,v=i+1;v<n;v++)if(e[v].offset){g=e[v].offset;break}g||(g=100,v=n);for(var b=((g=x(g))-m)/(v-i+1);i<v;i++)m+=b,e[i].offset=m+"%"}return e}),h._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)}),fa=(h._tofront=function(t,e){e.top!==t&&(Di(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},h._toback=function(t,e){e.bottom!==t&&(Di(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},h._insertafter=function(t,e,i){Di(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},h._insertbefore=function(t,e,i){Di(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},h.toMatrix=function(t,e){var i=Ee(t),n={_:{transform:lt},getBBox:function(){return i}};return wr(n,e),n.matrix}),wr=(h.transformPath=function(t,e){return Ot(t,fa(t,e))},h._extractTransform=function(t,e){if(e==null)return t._.transform;e=I(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var i,n,o=h.parseTransformString(e),d=0,m=1,g=1,v=t._,b=new Re;if(v.transform=o||[],o)for(var A=0,V=o.length;A<V;A++){var N,S,R,D,O,T=o[A],tt=T.length,j=I(T[0]).toLowerCase(),q=T[0]!=j,Y=q?b.invert():0;j=="t"&&tt==3?q?(N=Y.x(0,0),S=Y.y(0,0),R=Y.x(T[1],T[2]),D=Y.y(T[1],T[2]),b.translate(R-N,D-S)):b.translate(T[1],T[2]):j=="r"?tt==2?(O=O||t.getBBox(1),b.rotate(T[1],O.x+O.width/2,O.y+O.height/2),d+=T[1]):tt==4&&(q?(R=Y.x(T[2],T[3]),D=Y.y(T[2],T[3]),b.rotate(T[1],R,D)):b.rotate(T[1],T[2],T[3]),d+=T[1]):j=="s"?tt==2||tt==3?(O=O||t.getBBox(1),b.scale(T[1],T[tt-1],O.x+O.width/2,O.y+O.height/2),m*=T[1],g*=T[tt-1]):tt==5&&(q?(R=Y.x(T[3],T[4]),D=Y.y(T[3],T[4]),b.scale(T[1],T[2],R,D)):b.scale(T[1],T[2],T[3],T[4]),m*=T[1],g*=T[2]):j=="m"&&tt==7&&b.add(T[1],T[2],T[3],T[4],T[5],T[6]),v.dirtyT=1,t.matrix=b}t.matrix=b,v.sx=m,v.sy=g,v.deg=d,v.dx=i=b.e,v.dy=n=b.f,m==1&&g==1&&!d&&v.bbox?(v.bbox.x+=+i,v.bbox.y+=+n):v.dirtyT=1}),kr=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 t.length==4?[e,0,t[2],t[3]]:[e,0];case"s":return t.length==5?[e,1,1,t[3],t[4]]:t.length==3?[e,1,1]:[e,1]}},ca=h._equaliseTransform=function(t,e){e=I(e).replace(/\.{3}|\u2026/g,t),t=h.parseTransformString(t)||[],e=h.parseTransformString(e)||[];for(var i,n,o,d,m=Q(t.length,e.length),g=[],v=[],b=0;b<m;b++){if(o=t[b]||kr(e[b]),d=e[b]||kr(o),o[0]!=d[0]||o[0].toLowerCase()=="r"&&(o[2]!=d[2]||o[3]!=d[3])||o[0].toLowerCase()=="s"&&(o[3]!=d[3]||o[4]!=d[4]))return;for(g[b]=[],v[b]=[],i=0,n=Q(o.length,d.length);i<n;i++)i in o&&(g[b][i]=o[i]),i in d&&(v[b][i]=d[i])}return{from:g,to:v}};function Re(t,e,i,n,o,d){t!=null?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+o,this.f=+d):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}h._getContainer=function(t,e,i,n){var o;if((o=n!=null||h.is(t,"object")?t:G.doc.getElementById(t))!=null)return o.tagName?e==null?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:e,height:i}:{container:1,x:t,y:e,width:i,height:n}},h.pathToRelative=br,h._engine={},h.path2curve=gi,h.matrix=function(t,e,i,n,o,d){return new Re(t,e,i,n,o,d)},function(t){function e(n){return n[0]*n[0]+n[1]*n[1]}function i(n){var o=U.sqrt(e(n));n[0]&&(n[0]/=o),n[1]&&(n[1]/=o)}t.add=function(n,o,d,m,g,v){var b,A,V,N,S=[[],[],[]],R=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],D=[[n,d,g],[o,m,v],[0,0,1]];for(n&&n instanceof Re&&(D=[[n.a,n.c,n.e],[n.b,n.d,n.f],[0,0,1]]),b=0;b<3;b++)for(A=0;A<3;A++){for(N=0,V=0;V<3;V++)N+=R[b][V]*D[V][A];S[b][A]=N}this.a=S[0][0],this.b=S[1][0],this.c=S[0][1],this.d=S[1][1],this.e=S[0][2],this.f=S[1][2]},t.invert=function(){var n=this,o=n.a*n.d-n.b*n.c;return new Re(n.d/o,-n.b/o,-n.c/o,n.a/o,(n.c*n.f-n.d*n.e)/o,(n.b*n.e-n.a*n.f)/o)},t.clone=function(){return new Re(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(n,o){this.add(1,0,0,1,n,o)},t.scale=function(n,o,d,m){o==null&&(o=n),(d||m)&&this.add(1,0,0,1,d,m),this.add(n,0,0,o,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(n,o,d){n=h.rad(n),o=o||0,d=d||0;var m=+U.cos(n).toFixed(9),g=+U.sin(n).toFixed(9);this.add(m,g,-g,m,o,d),this.add(1,0,0,1,-o,-d)},t.x=function(n,o){return n*this.a+o*this.c+this.e},t.y=function(n,o){return n*this.b+o*this.d+this.f},t.get=function(n){return+this[I.fromCharCode(97+n)].toFixed(4)},t.toString=function(){return h.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 n={};n.dx=this.e,n.dy=this.f;var o=[[this.a,this.c],[this.b,this.d]];n.scalex=U.sqrt(e(o[0])),i(o[0]),n.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*n.shear,o[1][1]-o[0][1]*n.shear],n.scaley=U.sqrt(e(o[1])),i(o[1]),n.shear/=n.scaley;var d=-o[0][1],m=o[1][1];return m<0?(n.rotate=h.deg(U.acos(m)),d<0&&(n.rotate=360-n.rotate)):n.rotate=h.deg(U.asin(d)),n.isSimple=!(+n.shear.toFixed(9)||n.scalex.toFixed(9)!=n.scaley.toFixed(9)&&n.rotate),n.isSuperSimple=!+n.shear.toFixed(9)&&n.scalex.toFixed(9)==n.scaley.toFixed(9)&&!n.rotate,n.noRotation=!+n.shear.toFixed(9)&&!n.rotate,n},t.toTransformString=function(n){var o=n||this[it]();return o.isSimple?(o.scalex=+o.scalex.toFixed(4),o.scaley=+o.scaley.toFixed(4),o.rotate=+o.rotate.toFixed(4),(o.dx||o.dy?"t"+[o.dx,o.dy]:lt)+(o.scalex!=1||o.scaley!=1?"s"+[o.scalex,o.scaley,0,0]:lt)+(o.rotate?"r"+[o.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Re.prototype);for(var da=function(){this.returnValue=!1},pa=function(){return this.originalEvent.preventDefault()},ga=function(){this.cancelBubble=!0},ma=function(){return this.originalEvent.stopPropagation()},Cr=function(t){var e=G.doc.documentElement.scrollTop||G.doc.body.scrollTop,i=G.doc.documentElement.scrollLeft||G.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},va=G.doc.addEventListener?function(t,e,i,n){var o=function(m){var g=Cr(m);return i.call(n,m,g.x,g.y)};if(t.addEventListener(e,o,!1),J&&wt[e]){var d=function(m){for(var g=Cr(m),v=m,b=0,A=m.targetTouches&&m.targetTouches.length;b<A;b++)if(m.targetTouches[b].target==t){(m=m.targetTouches[b]).originalEvent=v,m.preventDefault=pa,m.stopPropagation=ma;break}return i.call(n,m,g.x,g.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,o,!1),J&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:G.doc.attachEvent?function(t,e,i,n){var o=function(d){d=d||G.win.event;var m=G.doc.documentElement.scrollTop||G.doc.body.scrollTop,g=G.doc.documentElement.scrollLeft||G.doc.body.scrollLeft,v=d.clientX+g,b=d.clientY+m;return d.preventDefault=d.preventDefault||da,d.stopPropagation=d.stopPropagation||ga,i.call(n,d,v,b)};return t.attachEvent("on"+e,o),function(){return t.detachEvent("on"+e,o),!0}}:void 0,Se=[],un=function(t){for(var e,i=t.clientX,n=t.clientY,o=G.doc.documentElement.scrollTop||G.doc.body.scrollTop,d=G.doc.documentElement.scrollLeft||G.doc.body.scrollLeft,m=Se.length;m--;){if(e=Se[m],J&&t.touches){for(var g,v=t.touches.length;v--;)if((g=t.touches[v]).identifier==e.el._drag.id){i=g.clientX,n=g.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var b,A=e.el.node,V=A.nextSibling,N=A.parentNode,S=A.style.display;G.win.opera&&N.removeChild(A),A.style.display="none",b=e.el.paper.getElementByPoint(i,n),A.style.display=S,G.win.opera&&(V?N.insertBefore(A,V):N.appendChild(A)),b&&u("raphael.drag.over."+e.el.id,e.el,b),i+=d,n+=o,u("raphael.drag.move."+e.el.id,e.move_scope||e.el,i-e.el._drag.x,n-e.el._drag.y,i,n,t)}},hn=function(t){h.unmousemove(un).unmouseup(hn);for(var e,i=Se.length;i--;)(e=Se[i]).el._drag={},u("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);Se=[]},St=h.el={},$r=rt.length;$r--;)(function(t){h[t]=St[t]=function(e,i){return h.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:va(this.shape||this.node||G.doc,t,e,i||this)})),this},h["un"+t]=St["un"+t]=function(e){for(var i=this.events||[],n=i.length;n--;)i[n].name!=t||!h.is(e,"undefined")&&i[n].f!=e||(i[n].unbind(),i.splice(n,1),!i.length&&delete this.events);return this}})(rt[$r]);St.data=function(t,e){var i=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return i;if(arguments.length==1){if(h.is(t,"object")){for(var n in t)t[et](n)&&this.data(n,t[n]);return this}return u("raphael.data.get."+this.id,this,i[t],t),i[t]}return i[t]=e,u("raphael.data.set."+this.id,this,e,t),this},St.removeData=function(t){return t==null?delete kt[this.id]:kt[this.id]&&delete kt[this.id][t],this},St.getData=function(){return Yt(kt[this.id]||{})},St.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},St.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var ei=[];St.drag=function(t,e,i,n,o,d){function m(g){(g.originalEvent||g).preventDefault();var v=g.clientX,b=g.clientY,A=G.doc.documentElement.scrollTop||G.doc.body.scrollTop,V=G.doc.documentElement.scrollLeft||G.doc.body.scrollLeft;if(this._drag.id=g.identifier,J&&g.touches){for(var N,S=g.touches.length;S--;)if(N=g.touches[S],this._drag.id=N.identifier,N.identifier==this._drag.id){v=N.clientX,b=N.clientY;break}}this._drag.x=v+V,this._drag.y=b+A,!Se.length&&h.mousemove(un).mouseup(hn),Se.push({el:this,move_scope:n,start_scope:o,end_scope:d}),e&&u.on("raphael.drag.start."+this.id,e),t&&u.on("raphael.drag.move."+this.id,t),i&&u.on("raphael.drag.end."+this.id,i),u("raphael.drag.start."+this.id,o||n||this,this._drag.x,this._drag.y,g)}return this._drag={},ei.push({el:this,start:m}),this.mousedown(m),this},St.onDragOver=function(t){t?u.on("raphael.drag.over."+this.id,t):u.unbind("raphael.drag.over."+this.id)},St.undrag=function(){for(var t=ei.length;t--;)ei[t].el==this&&(this.unmousedown(ei[t].start),ei.splice(t,1),u.unbind("raphael.drag.*."+this.id));!ei.length&&h.unmousemove(un).unmouseup(hn),Se=[]},F.circle=function(t,e,i){var n=h._engine.circle(this,t||0,e||0,i||0);return this.__set__&&this.__set__.push(n),n},F.rect=function(t,e,i,n,o){var d=h._engine.rect(this,t||0,e||0,i||0,n||0,o||0);return this.__set__&&this.__set__.push(d),d},F.ellipse=function(t,e,i,n){var o=h._engine.ellipse(this,t||0,e||0,i||0,n||0);return this.__set__&&this.__set__.push(o),o},F.path=function(t){t&&!h.is(t,"string")&&!h.is(t[0],xt)&&(t+=lt);var e=h._engine.path(h.format[W](h,arguments),this);return this.__set__&&this.__set__.push(e),e},F.image=function(t,e,i,n,o){var d=h._engine.image(this,t||"about:blank",e||0,i||0,n||0,o||0);return this.__set__&&this.__set__.push(d),d},F.text=function(t,e,i){var n=h._engine.text(this,t||0,e||0,I(i));return this.__set__&&this.__set__.push(n),n},F.set=function(t){!h.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new vi(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},F.setStart=function(t){this.__set__=t||this.set()},F.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},F.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},F.setSize=function(t,e){return h._engine.setSize.call(this,t,e)},F.setViewBox=function(t,e,i,n,o){return h._engine.setViewBox.call(this,t,e,i,n,o)},F.top=F.bottom=null,F.raphael=h;function Mr(){return this.x+ft+this.y+ft+this.width+" × "+this.height}F.getElementByPoint=function(t,e){var i,n,o,d,m,g,v,b=this.canvas,A=G.doc.elementFromPoint(t,e);if(G.win.opera&&A.tagName=="svg"){var V=(n=(i=b).getBoundingClientRect(),o=i.ownerDocument,d=o.body,m=o.documentElement,g=m.clientTop||d.clientTop||0,v=m.clientLeft||d.clientLeft||0,{y:n.top+(G.win.pageYOffset||m.scrollTop||d.scrollTop)-g,x:n.left+(G.win.pageXOffset||m.scrollLeft||d.scrollLeft)-v}),N=b.createSVGRect();N.x=t-V.x,N.y=e-V.y,N.width=N.height=1;var S=b.getIntersectionList(N,null);S.length&&(A=S[S.length-1])}if(!A)return null;for(;A.parentNode&&A!=b.parentNode&&!A.raphael;)A=A.parentNode;return A==this.canvas.parentNode&&(A=b),A=A&&A.raphael?this.getById(A.raphaelid):null},F.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(i){h.isBBoxIntersect(i.getBBox(),t)&&e.push(i)}),e},F.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},F.forEach=function(t,e){for(var i=this.bottom;i;){if(t.call(e,i)===!1)return this;i=i.next}return this},F.getElementsByPoint=function(t,e){var i=this.set();return this.forEach(function(n){n.isPointInside(t,e)&&i.push(n)}),i},St.isPointInside=function(t,e){var i=this.realPath=Bt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(i=h.transformPath(i,this.attr("transform"))),h.isPointInsidePath(i,t,e)},St.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Bt[this.type](this),e.bboxwt=Ee(this.realPath),e.bboxwt.toString=Mr,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Bt[this.type](this)),e.bbox=Ee(Ot(this.realPath,this.matrix)),e.bbox.toString=Mr,e.dirty=e.dirtyT=0),e.bbox)},St.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},St.glow=function(t){if(this.type=="text")return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity==null?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,o=n.set(),d=this.realPath||Bt[this.type](this);d=this.matrix?Ot(d,this.matrix):d;for(var m=1;m<i+1;m++)o.push(n.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*m).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return o.insertBefore(this).translate(e.offsetx,e.offsety)};var fn=function(t,e,i,n,o,d,m,g,v){return v==null?se(t,e,i,n,o,d,m,g):h.findDotsAtSegment(t,e,i,n,o,d,m,g,function(b,A,V,N,S,R,D,O,T){if(!(T<0||se(b,A,V,N,S,R,D,O)<T)){var tt,j=.5,q=1-j;for(tt=se(b,A,V,N,S,R,D,O,q);ot(tt-T)>.01;)tt=se(b,A,V,N,S,R,D,O,q+=(tt<T?1:-1)*(j/=2));return q}}(t,e,i,n,o,d,m,g,v))},cn=function(t,e){return function(i,n,o){for(var d,m,g,v,b,A="",V={},N=0,S=0,R=(i=gi(i)).length;S<R;S++){if((g=i[S])[0]=="M")d=+g[1],m=+g[2];else{if(N+(v=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6]))>n){if(e&&!V.start){if(A+=["C"+(b=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6],n-N)).start.x,b.start.y,b.m.x,b.m.y,b.x,b.y],o)return A;V.start=A,A=["M"+b.x,b.y+"C"+b.n.x,b.n.y,b.end.x,b.end.y,g[5],g[6]].join(),N+=v,d=+g[5],m=+g[6];continue}if(!t&&!e)return{x:(b=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6],n-N)).x,y:b.y,alpha:b.alpha}}N+=v,d=+g[5],m=+g[6]}A+=g.shift()+g}return V.end=A,(b=t?N:e?V:h.findDotsAtSegment(d,m,g[0],g[1],g[2],g[3],g[4],g[5],1)).alpha&&(b={x:b.x,y:b.y,alpha:b.alpha}),b}},Er=cn(1),Fr=cn(),dn=cn(0,1);h.getTotalLength=Er,h.getPointAtLength=Fr,h.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return dn(t,e).end;var n=dn(t,i,1);return e?dn(n,e).end:n},St.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Er(t)},St.getPointAtLength=function(t){var e=this.getPath();if(e)return Fr(e,t)},St.getPath=function(){var t,e=h._getPath[this.type];if(this.type!="text"&&this.type!="set")return e&&(t=e(this)),t},St.getSubpath=function(t,e){var i=this.getPath();if(i)return h.getSubpath(i,t,e)};var te=h.easing_formulas={linear:function(t){return t},"<":function(t){return yt(t,1.7)},">":function(t){return yt(t,.48)},"<>":function(t){var e=.48-t/1.04,i=U.sqrt(.1734+e*e),n=i-e,o=-i-e,d=yt(ot(n),1/3)*(n<0?-1:1)+yt(ot(o),1/3)*(o<0?-1:1)+.5;return 3*(1-d)*d*d+d*d*d},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:yt(2,-10*t)*U.sin(2*Et*(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}};te.easeIn=te["ease-in"]=te["<"],te.easeOut=te["ease-out"]=te[">"],te.easeInOut=te["ease-in-out"]=te["<>"],te["back-in"]=te.backIn,te["back-out"]=te.backOut;var Ct=[],Sr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},pn=function(){for(var t=+new Date,e=0;e<Ct.length;e++){var i=Ct[e];if(!i.el.removed&&!i.paused){var n,o,d=t-i.start,m=i.ms,g=i.easing,v=i.from,b=i.diff,A=i.to,V=(i.t,i.el),N={},S={};if(i.initstatus?(d=(i.initstatus*i.anim.top-i.prev)/(i.percent-i.prev)*m,i.status=i.initstatus,delete i.initstatus,i.stop&&Ct.splice(e--,1)):i.status=(i.prev+(i.percent-i.prev)*(d/m))/i.anim.top,!(d<0))if(d<m){var R=g(d/m);for(var D in v)if(v[et](D)){switch(E[D]){case ct:n=+v[D]+R*m*b[D];break;case"colour":n="rgb("+[gn(c(v[D].r+R*m*b[D].r)),gn(c(v[D].g+R*m*b[D].g)),gn(c(v[D].b+R*m*b[D].b))].join(",")+")";break;case"path":n=[];for(var O=0,T=v[D].length;O<T;O++){n[O]=[v[D][O][0]];for(var tt=1,j=v[D][O].length;tt<j;tt++)n[O][tt]=+v[D][O][tt]+R*m*b[D][O][tt];n[O]=n[O].join(ft)}n=n.join(ft);break;case"transform":if(b[D].real)for(n=[],O=0,T=v[D].length;O<T;O++)for(n[O]=[v[D][O][0]],tt=1,j=v[D][O].length;tt<j;tt++)n[O][tt]=v[D][O][tt]+R*m*b[D][O][tt];else{var q=function(gt){return+v[D][gt]+R*m*b[D][gt]};n=[["m",q(0),q(1),q(2),q(3),q(4),q(5)]]}break;case"csv":if(D=="clip-rect")for(n=[],O=4;O--;)n[O]=+v[D][O]+R*m*b[D][O];break;default:var Y=[][L](v[D]);for(n=[],O=V.paper.customAttributes[D].length;O--;)n[O]=+Y[O]+R*m*b[D][O]}N[D]=n}V.attr(N),function(gt,ut,mt){setTimeout(function(){u("raphael.anim.frame."+gt,ut,mt)})}(V.id,V,i.anim)}else{if(function(gt,ut,mt){setTimeout(function(){u("raphael.anim.frame."+ut.id,ut,mt),u("raphael.anim.finish."+ut.id,ut,mt),h.is(gt,"function")&&gt.call(ut)})}(i.callback,V,i.anim),V.attr(A),Ct.splice(e--,1),i.repeat>1&&!i.next){for(o in A)A[et](o)&&(S[o]=i.totalOrigin[o]);i.el.attr(S),mi(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&mi(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}Ct.length&&Sr(pn)},gn=function(t){return t>255?255:t<0?0:t};function xa(t,e,i,n,o,d){var m=3*e,g=3*(n-e)-m,v=1-m-g,b=3*i,A=3*(o-i)-b,V=1-b-A;function N(S){return((v*S+g)*S+m)*S}return function(S,R){var D=function(O,T){var tt,j,q,Y,gt,ut;for(q=O,ut=0;ut<8;ut++){if(Y=N(q)-O,ot(Y)<T)return q;if(ot(gt=(3*v*q+2*g)*q+m)<1e-6)break;q-=Y/gt}if(j=1,(q=O)<(tt=0))return tt;if(q>j)return j;for(;tt<j;){if(Y=N(q),ot(Y-O)<T)return q;O>Y?tt=q:j=q,q=(j-tt)/2+tt}return q}(S,R);return((V*D+A)*D+b)*D}(t,1/(200*d))}function me(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var o in t)t[et](o)&&(n[x(o)]=t[o],i.push(x(o)));i.sort($t)}this.anim=n,this.top=i[i.length-1],this.percents=i}function mi(t,e,i,n,o,d){i=x(i);var m,g,v,b,A,V,N=t.ms,S={},R={},D={};if(n)for(T=0,tt=Ct.length;T<tt;T++){var O=Ct[T];if(O.el.id==e.id&&O.anim==t){O.percent!=i?(Ct.splice(T,1),v=1):g=O,e.attr(O.totalOrigin);break}}else n=+R;for(var T=0,tt=t.percents.length;T<tt;T++){if(t.percents[T]==i||t.percents[T]>n*t.top){i=t.percents[T],A=t.percents[T-1]||0,N=N/t.top*(i-A),b=t.percents[T+1],m=t.anim[i];break}n&&e.attr(t.anim[t.percents[T]])}if(m){if(g)g.initstatus=n,g.start=new Date-g.ms*n;else{for(var j in m)if(m[et](j)&&(E[et](j)||e.paper.customAttributes[et](j)))switch(S[j]=e.attr(j),S[j]==null&&(S[j]=B[j]),R[j]=m[j],E[j]){case ct:D[j]=(R[j]-S[j])/N;break;case"colour":S[j]=h.getRGB(S[j]);var q=h.getRGB(R[j]);D[j]={r:(q.r-S[j].r)/N,g:(q.g-S[j].g)/N,b:(q.b-S[j].b)/N};break;case"path":var Y=gi(S[j],R[j]),gt=Y[1];for(S[j]=Y[0],D[j]=[],T=0,tt=S[j].length;T<tt;T++){D[j][T]=[0];for(var ut=1,mt=S[j][T].length;ut<mt;ut++)D[j][T][ut]=(gt[T][ut]-S[j][T][ut])/N}break;case"transform":var ii=e._,xi=ca(ii[j],R[j]);if(xi)for(S[j]=xi.from,R[j]=xi.to,D[j]=[],D[j].real=!0,T=0,tt=S[j].length;T<tt;T++)for(D[j][T]=[S[j][T][0]],ut=1,mt=S[j][T].length;ut<mt;ut++)D[j][T][ut]=(R[j][T][ut]-S[j][T][ut])/N;else{var Ht=e.matrix||new Re,ce={_:{transform:ii.transform},getBBox:function(){return e.getBBox(1)}};S[j]=[Ht.a,Ht.b,Ht.c,Ht.d,Ht.e,Ht.f],wr(ce,R[j]),R[j]=ce._.transform,D[j]=[(ce.matrix.a-Ht.a)/N,(ce.matrix.b-Ht.b)/N,(ce.matrix.c-Ht.c)/N,(ce.matrix.d-Ht.d)/N,(ce.matrix.e-Ht.e)/N,(ce.matrix.f-Ht.f)/N]}break;case"csv":var ni=I(m[j])[it](X),ri=I(S[j])[it](X);if(j=="clip-rect")for(S[j]=ri,D[j]=[],T=ri.length;T--;)D[j][T]=(ni[T]-S[j][T])/N;R[j]=ni;break;default:for(ni=[][L](m[j]),ri=[][L](S[j]),D[j]=[],T=e.paper.customAttributes[j].length;T--;)D[j][T]=((ni[T]||0)-(ri[T]||0))/N}var ji=m.easing,ve=h.easing_formulas[ji];if(!ve)if((ve=I(ji).match(a))&&ve.length==5){var Pe=ve;ve=function(Yi){return xa(Yi,+Pe[1],+Pe[2],+Pe[3],+Pe[4],N)}}else ve=bt;if(O={anim:t,percent:i,timestamp:V=m.start||t.start||+new Date,start:V+(t.del||0),status:0,initstatus:n||0,stop:!1,ms:N,easing:ve,from:S,diff:D,to:R,el:e,callback:m.callback,prev:A,next:b,repeat:d||t.times,origin:e.attr(),totalOrigin:o},Ct.push(O),n&&!g&&!v&&(O.stop=!0,O.start=new Date-N*n,Ct.length==1))return pn();v&&(O.start=new Date-O.ms*n),Ct.length==1&&Sr(pn)}u("raphael.anim.start."+e.id,e,t)}}function Ar(t){for(var e=0;e<Ct.length;e++)Ct[e].el.paper==t&&Ct.splice(e--,1)}St.animateWith=function(t,e,i,n,o,d){if(this.removed)return d&&d.call(this),this;var m=i instanceof me?i:h.animation(i,n,o,d);mi(m,this,m.percents[0],null,this.attr());for(var g=0,v=Ct.length;g<v;g++)if(Ct[g].anim==e&&Ct[g].el==t){Ct[v-1].start=Ct[g].start;break}return this},St.onAnimation=function(t){return t?u.on("raphael.anim.frame."+this.id,t):u.unbind("raphael.anim.frame."+this.id),this},me.prototype.delay=function(t){var e=new me(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},me.prototype.repeat=function(t){var e=new me(this.anim,this.ms);return e.del=this.del,e.times=U.floor(Q(t,0))||1,e},h.animation=function(t,e,i,n){if(t instanceof me)return t;!h.is(i,"function")&&i||(n=n||i||null,i=null),t=Object(t),e=+e||0;var o,d,m={};for(d in t)t[et](d)&&x(d)!=d&&x(d)+"%"!=d&&(o=!0,m[d]=t[d]);if(o)return i&&(m.easing=i),n&&(m.callback=n),new me({100:m},e);if(n){var g=0;for(var v in t){var b=C(v);t[et](v)&&b>g&&(g=b)}!t[g+="%"].callback&&(t[g].callback=n)}return new me(t,e)},St.animate=function(t,e,i,n){if(this.removed)return n&&n.call(this),this;var o=t instanceof me?t:h.animation(t,e,i,n);return mi(o,this,o.percents[0],null,this.attr()),this},St.setTime=function(t,e){return t&&e!=null&&this.status(t,Z(e,t.ms)/t.ms),this},St.status=function(t,e){var i,n,o=[],d=0;if(e!=null)return mi(t,this,-1,Z(e,1)),this;for(i=Ct.length;d<i;d++)if((n=Ct[d]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;o.push({anim:n.anim,status:n.status})}return t?0:o},St.pause=function(t){for(var e=0;e<Ct.length;e++)Ct[e].el.id!=this.id||t&&Ct[e].anim!=t||u("raphael.anim.pause."+this.id,this,Ct[e].anim)!==!1&&(Ct[e].paused=!0);return this},St.resume=function(t){for(var e=0;e<Ct.length;e++)if(Ct[e].el.id==this.id&&(!t||Ct[e].anim==t)){var i=Ct[e];u("raphael.anim.resume."+this.id,this,i.anim)!==!1&&(delete i.paused,this.status(i.anim,i.status))}return this},St.stop=function(t){for(var e=0;e<Ct.length;e++)Ct[e].el.id!=this.id||t&&Ct[e].anim!=t||u("raphael.anim.stop."+this.id,this,Ct[e].anim)!==!1&&Ct.splice(e--,1);return this},u.on("raphael.remove",Ar),u.on("raphael.clear",Ar),St.toString=function(){return"Raphaël’s object"};var Tr,Nr,Oe,Lr,vi=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!=St.constructor&&t[e].constructor!=vi||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},It=vi.prototype;for(var mn in It.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)!(t=arguments[i])||t.constructor!=St.constructor&&t.constructor!=vi||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},It.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},It.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(t.call(e,this.items[i],i)===!1)return this;return this},St)St[et](mn)&&(It[mn]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t][W](i,e)})}}(mn));return It.attr=function(t,e){if(t&&h.is(t,xt)&&h.is(t[0],"object"))for(var i=0,n=t.length;i<n;i++)this.items[i].attr(t[i]);else for(var o=0,d=this.items.length;o<d;o++)this.items[o].attr(t,e);return this},It.clear=function(){for(;this.length;)this.pop()},It.splice=function(t,e,i){t=t<0?Q(this.length+t,0):t,e=Q(0,Z(this.length-t,e));var n,o=[],d=[],m=[];for(n=2;n<arguments.length;n++)m.push(arguments[n]);for(n=0;n<e;n++)d.push(this[t+n]);for(;n<this.length-t;n++)o.push(this[t+n]);var g=m.length;for(n=0;n<g+o.length;n++)this.items[t+n]=this[t+n]=n<g?m[n]:o[n-g];for(n=this.items.length=this.length-=e-g;this[n];)delete this[n++];return new vi(d)},It.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},It.animate=function(t,e,i,n){(h.is(i,"function")||!i)&&(n=i||null);var o,d,m=this.items.length,g=m,v=this;if(!m)return this;n&&(d=function(){!--m&&n.call(v)}),i=h.is(i,"string")?i:d;var b=h.animation(t,e,i,d);for(o=this.items[--g].animate(b);g--;)this.items[g]&&!this.items[g].removed&&this.items[g].animateWith(o,b,b),this.items[g]&&!this.items[g].removed||m--;return this},It.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},It.getBBox=function(){for(var t=[],e=[],i=[],n=[],o=this.items.length;o--;)if(!this.items[o].removed){var d=this.items[o].getBBox();t.push(d.x),e.push(d.y),i.push(d.x+d.width),n.push(d.y+d.height)}return{x:t=Z[W](0,t),y:e=Z[W](0,e),x2:i=Q[W](0,i),y2:n=Q[W](0,n),width:i-t,height:n-e}},It.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},It.toString=function(){return"Raphaël‘s set"},It.glow=function(t){var e=this.paper.set();return this.forEach(function(i,n){var o=i.glow(t);o!=null&&o.forEach(function(d,m){e.push(d)})}),e},It.isPointInside=function(t,e){var i=!1;return this.forEach(function(n){if(n.isPointInside(t,e))return i=!0,!1}),i},h.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[et](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg){for(var o in e.face["units-per-em"]=C(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[et](o)){var d=t.glyphs[o];if(e.glyphs[o]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(g){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[g]||"M"})+"z"},d.k)for(var m in d.k)d[et](m)&&(e.glyphs[o].k[m]=d.k[m])}}return t},F.getFont=function(t,e,i,n){if(n=n||"normal",i=i||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,h.fonts){var o,d=h.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var g in h.fonts)if(h.fonts[et](g)&&m.test(g)){d=h.fonts[g];break}}if(d)for(var v=0,b=d.length;v<b&&((o=d[v]).face["font-weight"]!=e||o.face["font-style"]!=i&&o.face["font-style"]||o.face["font-stretch"]!=n);v++);return o}},F.print=function(t,e,i,n,o,d,m,g){d=d||"middle",m=Q(Z(m||0,1),-1),g=Q(Z(g||1,3),1);var v,b=I(i)[it](lt),A=0,V=0,N=lt;if(h.is(n,"string")&&(n=this.getFont(n)),n){v=(o||16)/n.face["units-per-em"];for(var S=n.face.bbox[it](X),R=+S[0],D=S[3]-S[1],O=0,T=+S[1]+(d=="baseline"?D+ +n.face.descent:D/2),tt=0,j=b.length;tt<j;tt++){if(b[tt]==`
2
- `)A=0,Y=0,V=0,O+=D*g;else{var q=V&&n.glyphs[b[tt-1]]||{},Y=n.glyphs[b[tt]];A+=V?(q.w||n.w)+(q.k&&q.k[b[tt]]||0)+n.w*m:0,V=1}Y&&Y.d&&(N+=h.transformPath(Y.d,["t",A*v,O*v,"s",v,v,R,T,"t",(t-R)/v,(e-T)/v]))}}return this.path(N).attr({fill:"#000",stroke:"none"})},F.add=function(t){if(h.is(t,"array"))for(var e,i=this.set(),n=0,o=t.length;n<o;n++)e=t[n]||{},P[et](e.type)&&i.push(this[e.type]().attr(e));return i},h.format=function(t,e){var i=h.is(e,xt)?[0][L](e):arguments;return t&&h.is(t,"string")&&i.length-1&&(t=t.replace(K,function(n,o){return i[++o]==null?lt:i[o]})),t||lt},h.fullfill=(Tr=/\{([^\}]+)\}/g,Nr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(Tr,function(i,n){return function(o,d,m){var g=m;return d.replace(Nr,function(v,b,A,V,N){b=b||V,g&&(b in g&&(g=g[b]),typeof g=="function"&&N&&(g=g()))}),g=(g==null||g==m?o:g)+""}(i,n,e)})}),h.ninja=function(){if(_t.was)G.win.Raphael=_t.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return h},h.st=It,u.on("raphael.DOMload",function(){M=!0}),(Oe=document).readyState==null&&Oe.addEventListener&&(Oe.addEventListener("DOMContentLoaded",Lr=function(){Oe.removeEventListener("DOMContentLoaded",Lr,!1),Oe.readyState="complete"},!1),Oe.readyState="loading"),function t(){/in/.test(Oe.readyState)?setTimeout(t,9):h.eve("raphael.DOMload")}(),h}).apply(w,_))===void 0||(f.exports=k)},function(f,w,y){var _,k;_=[y(0),y(3),y(4)],(k=(function(u){return u}).apply(w,_))===void 0||(f.exports=k)},function(f,w,y){var _,k,u,h,M,F,X,P,K,et,G,_t,Mt,W;h="hasOwnProperty",M=/[\.\/]/,F=/\s*,\s*/,X=function(L,J){return L-J},P={n:{}},K=function(){for(var L=0,J=this.length;L<J;L++)if(this[L]!==void 0)return this[L]},et=function(){for(var L=this.length;--L;)if(this[L]!==void 0)return this[L]},G=Object.prototype.toString,_t=String,Mt=Array.isArray||function(L){return L instanceof Array||G.call(L)=="[object Array]"},(W=function(L,J){var lt,ft=u,I=Array.prototype.slice.call(arguments,2),it=W.listeners(L),rt=0,wt=[],st={},U=[],Q=k;U.firstDefined=K,U.lastDefined=et,k=L,u=0;for(var Z=0,ot=it.length;Z<ot;Z++)"zIndex"in it[Z]&&(wt.push(it[Z].zIndex),it[Z].zIndex<0&&(st[it[Z].zIndex]=it[Z]));for(wt.sort(X);wt[rt]<0;)if(lt=st[wt[rt++]],U.push(lt.apply(J,I)),u)return u=ft,U;for(Z=0;Z<ot;Z++)if("zIndex"in(lt=it[Z]))if(lt.zIndex==wt[rt]){if(U.push(lt.apply(J,I)),u)break;do if((lt=st[wt[++rt]])&&U.push(lt.apply(J,I)),u)break;while(lt)}else st[lt.zIndex]=lt;else if(U.push(lt.apply(J,I)),u)break;return u=ft,k=Q,U})._events=P,W.listeners=function(L){var J,lt,ft,I,it,rt,wt,st,U=Mt(L)?L:L.split(M),Q=P,Z=[Q],ot=[];for(I=0,it=U.length;I<it;I++){for(st=[],rt=0,wt=Z.length;rt<wt;rt++)for(lt=[(Q=Z[rt].n)[U[I]],Q["*"]],ft=2;ft--;)(J=lt[ft])&&(st.push(J),ot=ot.concat(J.f||[]));Z=st}return ot},W.separator=function(L){L?(L="["+(L=_t(L).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",M=new RegExp(L)):M=/[\.\/]/},W.on=function(L,J){if(typeof J!="function")return function(){};for(var lt=Mt(L)?Mt(L[0])?L:[L]:_t(L).split(F),ft=0,I=lt.length;ft<I;ft++)(function(it){for(var rt,wt=Mt(it)?it:_t(it).split(M),st=P,U=0,Q=wt.length;U<Q;U++)st=(st=st.n).hasOwnProperty(wt[U])&&st[wt[U]]||(st[wt[U]]={n:{}});for(st.f=st.f||[],U=0,Q=st.f.length;U<Q;U++)if(st.f[U]==J){rt=!0;break}!rt&&st.f.push(J)})(lt[ft]);return function(it){+it==+it&&(J.zIndex=+it)}},W.f=function(L){var J=[].slice.call(arguments,1);return function(){W.apply(null,[L,null].concat(J).concat([].slice.call(arguments,0)))}},W.stop=function(){u=1},W.nt=function(L){var J=Mt(k)?k.join("."):k;return L?new RegExp("(?:\\.|\\/|^)"+L+"(?:\\.|\\/|$)").test(J):J},W.nts=function(){return Mt(k)?k:k.split(M)},W.off=W.unbind=function(L,J){if(L){var lt=Mt(L)?Mt(L[0])?L:[L]:_t(L).split(F);if(lt.length>1)for(var ft=0,I=lt.length;ft<I;ft++)W.off(lt[ft],J);else{lt=Mt(L)?L:_t(L).split(M);var it,rt,wt,st,U,Q=[P];for(ft=0,I=lt.length;ft<I;ft++)for(st=0;st<Q.length;st+=wt.length-2){if(wt=[st,1],it=Q[st].n,lt[ft]!="*")it[lt[ft]]&&wt.push(it[lt[ft]]);else for(rt in it)it[h](rt)&&wt.push(it[rt]);Q.splice.apply(Q,wt)}for(ft=0,I=Q.length;ft<I;ft++)for(it=Q[ft];it.n;){if(J){if(it.f){for(st=0,U=it.f.length;st<U;st++)if(it.f[st]==J){it.f.splice(st,1);break}!it.f.length&&delete it.f}for(rt in it.n)if(it.n[h](rt)&&it.n[rt].f){var Z=it.n[rt].f;for(st=0,U=Z.length;st<U;st++)if(Z[st]==J){Z.splice(st,1);break}!Z.length&&delete it.n[rt].f}}else for(rt in delete it.f,it.n)it.n[h](rt)&&it.n[rt].f&&delete it.n[rt].f;it=it.n}}}else W._events=P={n:{}}},W.once=function(L,J){var lt=function(){return W.off(L,lt),J.apply(this,arguments)};return W.on(L,lt)},W.version="0.5.0",W.toString=function(){return"You are running Eve 0.5.0"},f.exports?f.exports=W:(_=(function(){return W}).apply(w,[]))===void 0||(f.exports=_)},function(f,w,y){var _,k;_=[y(0)],(k=(function(u){if(!u||u.svg){var h="hasOwnProperty",M=String,F=parseFloat,X=parseInt,P=Math,K=P.max,et=P.abs,G=P.pow,_t=/[, ]+/,Mt=u.eve,W="",L=" ",J="http://www.w3.org/1999/xlink",lt={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"},ft={};u.toString=function(){return`Your browser supports SVG.
3
- You are running Raphaël `+this.version};var I=function(p,l){if(l)for(var a in typeof p=="string"&&(p=I(p)),l)l[h](a)&&(a.substring(0,6)=="xlink:"?p.setAttributeNS(J,a.substring(6),M(l[a])):p.setAttribute(a,M(l[a])));else(p=u._g.doc.createElementNS("http://www.w3.org/2000/svg",p)).style&&(p.style.webkitTapHighlightColor="rgba(0,0,0,0)");return p},it=function(p,l){var a="linear",c=p.id+l,x=.5,C=.5,$=p.node,B=p.paper,E=$.style,z=u._g.doc.getElementById(c);if(!z){if(l=(l=M(l).replace(u._radial_gradient,function($t,bt,at){if(a="radial",bt&&at){x=F(bt);var Ft=2*((C=F(at))>.5)-1;G(x-.5,2)+G(C-.5,2)>.25&&(C=P.sqrt(.25-G(x-.5,2))*Ft+.5)&&C!=.5&&(C=C.toFixed(5)-1e-5*Ft)}return W})).split(/\s*\-\s*/),a=="linear"){var H=l.shift();if(H=-F(H),isNaN(H))return null;var nt=[0,0,P.cos(u.rad(H)),P.sin(u.rad(H))],pt=1/(K(et(nt[2]),et(nt[3]))||1);nt[2]*=pt,nt[3]*=pt,nt[2]<0&&(nt[0]=-nt[2],nt[2]=0),nt[3]<0&&(nt[1]=-nt[3],nt[3]=0)}var vt=u._parseDots(l);if(!vt)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),p.gradient&&c!=p.gradient.id&&(B.defs.removeChild(p.gradient),delete p.gradient),!p.gradient){z=I(a+"Gradient",{id:c}),p.gradient=z,I(z,a=="radial"?{fx:x,fy:C}:{x1:nt[0],y1:nt[1],x2:nt[2],y2:nt[3],gradientTransform:p.matrix.invert()}),B.defs.appendChild(z);for(var dt=0,kt=vt.length;dt<kt;dt++)z.appendChild(I("stop",{offset:vt[dt].offset?vt[dt].offset:dt?"100%":"0%","stop-color":vt[dt].color||"#fff","stop-opacity":isFinite(vt[dt].opacity)?vt[dt].opacity:1}))}}return I($,{fill:rt(c),opacity:1,"fill-opacity":1}),E.fill=W,E.opacity=1,E.fillOpacity=1,1},rt=function(p){if((l=document.documentMode)&&(l===9||l===10))return"url('#"+p+"')";var l,a=document.location;return"url('"+(a.protocol+"//"+a.host+a.pathname+a.search)+"#"+p+"')"},wt=function(p){var l=p.getBBox(1);I(p.pattern,{patternTransform:p.matrix.invert()+" translate("+l.x+","+l.y+")"})},st=function(p,l,a){if(p.type=="path"){for(var c,x,C,$,B,E=M(l).toLowerCase().split("-"),z=p.paper,H=a?"end":"start",nt=p.node,pt=p.attrs,vt=pt["stroke-width"],dt=E.length,kt="classic",$t=3,bt=3,at=5;dt--;)switch(E[dt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":kt=E[dt];break;case"wide":bt=5;break;case"narrow":bt=2;break;case"long":$t=5;break;case"short":$t=2}if(kt=="open"?($t+=2,bt+=2,at+=2,C=1,$=a?4:1,B={fill:"none",stroke:pt.stroke}):($=C=$t/2,B={fill:pt.stroke,stroke:"none"}),p._.arrows?a?(p._.arrows.endPath&&ft[p._.arrows.endPath]--,p._.arrows.endMarker&&ft[p._.arrows.endMarker]--):(p._.arrows.startPath&&ft[p._.arrows.startPath]--,p._.arrows.startMarker&&ft[p._.arrows.startMarker]--):p._.arrows={},kt!="none"){var Ft="raphael-marker-"+kt,Bt="raphael-marker-"+H+kt+$t+bt+"-obj"+p.id;u._g.doc.getElementById(Ft)?ft[Ft]++:(z.defs.appendChild(I(I("path"),{"stroke-linecap":"round",d:lt[kt],id:Ft})),ft[Ft]=1);var Ot,At=u._g.doc.getElementById(Bt);At?(ft[Bt]++,Ot=At.getElementsByTagName("use")[0]):(At=I(I("marker"),{id:Bt,markerHeight:bt,markerWidth:$t,orient:"auto",refX:$,refY:bt/2}),Ot=I(I("use"),{"xlink:href":"#"+Ft,transform:(a?"rotate(180 "+$t/2+" "+bt/2+") ":W)+"scale("+$t/at+","+bt/at+")","stroke-width":(1/(($t/at+bt/at)/2)).toFixed(4)}),At.appendChild(Ot),z.defs.appendChild(At),ft[Bt]=1),I(Ot,B);var Jt=C*(kt!="diamond"&&kt!="oval");a?(c=p._.arrows.startdx*vt||0,x=u.getTotalLength(pt.path)-Jt*vt):(c=Jt*vt,x=u.getTotalLength(pt.path)-(p._.arrows.enddx*vt||0)),(B={})["marker-"+H]="url(#"+Bt+")",(x||c)&&(B.d=u.getSubpath(pt.path,c,x)),I(nt,B),p._.arrows[H+"Path"]=Ft,p._.arrows[H+"Marker"]=Bt,p._.arrows[H+"dx"]=Jt,p._.arrows[H+"Type"]=kt,p._.arrows[H+"String"]=l}else a?(c=p._.arrows.startdx*vt||0,x=u.getTotalLength(pt.path)-c):(c=0,x=u.getTotalLength(pt.path)-(p._.arrows.enddx*vt||0)),p._.arrows[H+"Path"]&&I(nt,{d:u.getSubpath(pt.path,c,x)}),delete p._.arrows[H+"Path"],delete p._.arrows[H+"Marker"],delete p._.arrows[H+"dx"],delete p._.arrows[H+"Type"],delete p._.arrows[H+"String"];for(B in ft)if(ft[h](B)&&!ft[B]){var Yt=u._g.doc.getElementById(B);Yt&&Yt.parentNode.removeChild(Yt)}}},U={"-":[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]},Q=function(p,l,a){if(l=U[M(l).toLowerCase()]){for(var c=p.attrs["stroke-width"]||"1",x={round:c,square:c,butt:0}[p.attrs["stroke-linecap"]||a["stroke-linecap"]]||0,C=[],$=l.length;$--;)C[$]=l[$]*c+($%2?1:-1)*x;I(p.node,{"stroke-dasharray":C.join(",")})}else I(p.node,{"stroke-dasharray":"none"})},Z=function(p,l){var a=p.node,c=p.attrs,x=a.style.visibility;for(var C in a.style.visibility="hidden",l)if(l[h](C)){if(!u._availableAttrs[h](C))continue;var $=l[C];switch(c[C]=$,C){case"blur":p.blur($);break;case"title":var B=a.getElementsByTagName("title");if(B.length&&(B=B[0]))B.firstChild.nodeValue=$;else{B=I("title");var E=u._g.doc.createTextNode($);B.appendChild(E),a.appendChild(B)}break;case"href":case"target":var z=a.parentNode;if(z.tagName.toLowerCase()!="a"){var H=I("a");z.insertBefore(H,a),H.appendChild(a),z=H}C=="target"?z.setAttributeNS(J,"show",$=="blank"?"new":$):z.setAttributeNS(J,C,$);break;case"cursor":a.style.cursor=$;break;case"transform":p.transform($);break;case"arrow-start":st(p,$);break;case"arrow-end":st(p,$,1);break;case"clip-rect":var nt=M($).split(_t);if(nt.length==4){p.clip&&p.clip.parentNode.parentNode.removeChild(p.clip.parentNode);var pt=I("clipPath"),vt=I("rect");pt.id=u.createUUID(),I(vt,{x:nt[0],y:nt[1],width:nt[2],height:nt[3]}),pt.appendChild(vt),p.paper.defs.appendChild(pt),I(a,{"clip-path":"url(#"+pt.id+")"}),p.clip=vt}if(!$){var dt=a.getAttribute("clip-path");if(dt){var kt=u._g.doc.getElementById(dt.replace(/(^url\(#|\)$)/g,W));kt&&kt.parentNode.removeChild(kt),I(a,{"clip-path":W}),delete p.clip}}break;case"path":p.type=="path"&&(I(a,{d:$?c.path=u._pathToAbsolute($):"M0,0"}),p._.dirty=1,p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1)));break;case"width":if(a.setAttribute(C,$),p._.dirty=1,!c.fx)break;C="x",$=c.x;case"x":c.fx&&($=-c.x-(c.width||0));case"rx":if(C=="rx"&&p.type=="rect")break;case"cx":a.setAttribute(C,$),p.pattern&&wt(p),p._.dirty=1;break;case"height":if(a.setAttribute(C,$),p._.dirty=1,!c.fy)break;C="y",$=c.y;case"y":c.fy&&($=-c.y-(c.height||0));case"ry":if(C=="ry"&&p.type=="rect")break;case"cy":a.setAttribute(C,$),p.pattern&&wt(p),p._.dirty=1;break;case"r":p.type=="rect"?I(a,{rx:$,ry:$}):a.setAttribute(C,$),p._.dirty=1;break;case"src":p.type=="image"&&a.setAttributeNS(J,"href",$);break;case"stroke-width":p._.sx==1&&p._.sy==1||($/=K(et(p._.sx),et(p._.sy))||1),a.setAttribute(C,$),c["stroke-dasharray"]&&Q(p,c["stroke-dasharray"],l),p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"stroke-dasharray":Q(p,$,l);break;case"fill":var $t=M($).match(u._ISURL);if($t){pt=I("pattern");var bt=I("image");pt.id=u.createUUID(),I(pt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),I(bt,{x:0,y:0,"xlink:href":$t[1]}),pt.appendChild(bt),function(At){u._preload($t[1],function(){var Jt=this.offsetWidth,Yt=this.offsetHeight;I(At,{width:Jt,height:Yt}),I(bt,{width:Jt,height:Yt})})}(pt),p.paper.defs.appendChild(pt),I(a,{fill:"url(#"+pt.id+")"}),p.pattern=pt,p.pattern&&wt(p);break}var at=u.getRGB($);if(at.error){if((p.type=="circle"||p.type=="ellipse"||M($).charAt()!="r")&&it(p,$)){if("opacity"in c||"fill-opacity"in c){var Ft=u._g.doc.getElementById(a.getAttribute("fill").replace(/^url\(#|\)$/g,W));if(Ft){var Bt=Ft.getElementsByTagName("stop");I(Bt[Bt.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=$,c.fill="none";break}}else delete l.gradient,delete c.gradient,!u.is(c.opacity,"undefined")&&u.is(l.opacity,"undefined")&&I(a,{opacity:c.opacity}),!u.is(c["fill-opacity"],"undefined")&&u.is(l["fill-opacity"],"undefined")&&I(a,{"fill-opacity":c["fill-opacity"]});at[h]("opacity")&&I(a,{"fill-opacity":at.opacity>1?at.opacity/100:at.opacity});case"stroke":at=u.getRGB($),a.setAttribute(C,at.hex),C=="stroke"&&at[h]("opacity")&&I(a,{"stroke-opacity":at.opacity>1?at.opacity/100:at.opacity}),C=="stroke"&&p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"gradient":(p.type=="circle"||p.type=="ellipse"||M($).charAt()!="r")&&it(p,$);break;case"opacity":c.gradient&&!c[h]("stroke-opacity")&&I(a,{"stroke-opacity":$>1?$/100:$});case"fill-opacity":if(c.gradient){(Ft=u._g.doc.getElementById(a.getAttribute("fill").replace(/^url\(#|\)$/g,W)))&&(Bt=Ft.getElementsByTagName("stop"),I(Bt[Bt.length-1],{"stop-opacity":$}));break}default:C=="font-size"&&($=X($,10)+"px");var Ot=C.replace(/(\-.)/g,function(At){return At.substring(1).toUpperCase()});a.style[Ot]=$,p._.dirty=1,a.setAttribute(C,$)}}ot(p,l),a.style.visibility=x},ot=function(p,l){if(p.type=="text"&&(l[h]("text")||l[h]("font")||l[h]("font-size")||l[h]("x")||l[h]("y"))){var a=p.attrs,c=p.node,x=c.firstChild?X(u._g.doc.defaultView.getComputedStyle(c.firstChild,W).getPropertyValue("font-size"),10):10;if(l[h]("text")){for(a.text=l.text;c.firstChild;)c.removeChild(c.firstChild);for(var C,$=M(l.text).split(`
4
- `),B=[],E=0,z=$.length;E<z;E++)C=I("tspan"),E&&I(C,{dy:1.2*x,x:a.x}),C.appendChild(u._g.doc.createTextNode($[E])),c.appendChild(C),B[E]=C}else for(E=0,z=(B=c.getElementsByTagName("tspan")).length;E<z;E++)E?I(B[E],{dy:1.2*x,x:a.x}):I(B[0],{dy:0});I(c,{x:a.x,y:a.y}),p._.dirty=1;var H=p._getBBox(),nt=a.y-(H.y+H.height/2);nt&&u.is(nt,"finite")&&I(B[0],{dy:nt})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},Et=function(p,l){this[0]=this.node=p,p.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),p.raphaelid=this.id,this.matrix=u.matrix(),this.realPath=null,this.paper=l,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!l.bottom&&(l.bottom=this),this.prev=l.top,l.top&&(l.top.next=this),l.top=this,this.next=null},ct=u.el;Et.prototype=ct,ct.constructor=Et,u._engine.path=function(p,l){var a=I("path");l.canvas&&l.canvas.appendChild(a);var c=new Et(a,l);return c.type="path",Z(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,l,a){if(this.removed)return this;if((p=M(p).split(_t)).length-1&&(l=F(p[1]),a=F(p[2])),p=F(p[0]),a==null&&(l=a),l==null||a==null){var c=this.getBBox(1);l=c.x+c.width/2,a=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,l,a]])),this},ct.scale=function(p,l,a,c){if(this.removed)return this;if((p=M(p).split(_t)).length-1&&(l=F(p[1]),a=F(p[2]),c=F(p[3])),p=F(p[0]),l==null&&(l=p),c==null&&(a=c),a==null||c==null)var x=this.getBBox(1);return a=a??x.x+x.width/2,c=c??x.y+x.height/2,this.transform(this._.transform.concat([["s",p,l,a,c]])),this},ct.translate=function(p,l){return this.removed?this:((p=M(p).split(_t)).length-1&&(l=F(p[1])),p=F(p[0])||0,l=+l||0,this.transform(this._.transform.concat([["t",p,l]])),this)},ct.transform=function(p){var l=this._;if(p==null)return l.transform;if(u._extractTransform(this,p),this.clip&&I(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&I(this.node,{transform:this.matrix}),l.sx!=1||l.sy!=1){var a=this.attrs[h]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":a})}return this},ct.hide=function(){return this.removed||(this.node.style.display="none"),this},ct.show=function(){return this.removed||(this.node.style.display=""),this},ct.remove=function(){var p=yt(this.node);if(!this.removed&&p.parentNode){var l=this.paper;for(var a in l.__set__&&l.__set__.exclude(this),Mt.unbind("raphael.*.*."+this.id),this.gradient&&l.defs.removeChild(this.gradient),u._tear(this,l),p.parentNode.removeChild(p),this.removeData(),this)this[a]=typeof this[a]=="function"?u._removedFactory(a):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var l,a=!1;this.paper.canvas.parentElement?l=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(l=this.paper.canvas.parentNode.style),l&&l.display=="none"&&(a=!0,l.display="");var c={};try{c=this.node.getBBox()}catch{c={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{c=c||{},a&&(l.display="none")}return p&&this.hide(),c},ct.attr=function(p,l){if(this.removed)return this;if(p==null){var a={};for(var c in this.attrs)this.attrs[h](c)&&(a[c]=this.attrs[c]);return a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient,a.transform=this._.transform,a}if(l==null&&u.is(p,"string")){if(p=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(p=="transform")return this._.transform;for(var x=p.split(_t),C={},$=0,B=x.length;$<B;$++)(p=x[$])in this.attrs?C[p]=this.attrs[p]:u.is(this.paper.customAttributes[p],"function")?C[p]=this.paper.customAttributes[p].def:C[p]=u._availableAttrs[p];return B-1?C:C[x[0]]}if(l==null&&u.is(p,"array")){for(C={},$=0,B=p.length;$<B;$++)C[p[$]]=this.attr(p[$]);return C}if(l!=null){var E={};E[p]=l}else p!=null&&u.is(p,"object")&&(E=p);for(var z in E)Mt("raphael.attr."+z+"."+this.id,this,E[z]);for(z in this.paper.customAttributes)if(this.paper.customAttributes[h](z)&&E[h](z)&&u.is(this.paper.customAttributes[z],"function")){var H=this.paper.customAttributes[z].apply(this,[].concat(E[z]));for(var nt in this.attrs[z]=E[z],H)H[h](nt)&&(E[nt]=H[nt])}return Z(this,E),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var l=this.paper;return l.top!=this&&u._tofront(this,l),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),l=p.parentNode;return l.insertBefore(p,l.firstChild),u._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var l=yt(this.node),a=yt(p.node||p[p.length-1].node);return a.nextSibling?a.parentNode.insertBefore(l,a.nextSibling):a.parentNode.appendChild(l),u._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var l=yt(this.node),a=yt(p.node||p[0].node);return a.parentNode.insertBefore(l,a),u._insertbefore(this,p,this.paper),this},ct.blur=function(p){var l=this;if(+p!=0){var a=I("filter"),c=I("feGaussianBlur");l.attrs.blur=p,a.id=u.createUUID(),I(c,{stdDeviation:+p||1.5}),a.appendChild(c),l.paper.defs.appendChild(a),l._blur=a,I(l.node,{filter:"url(#"+a.id+")"})}else l._blur&&(l._blur.parentNode.removeChild(l._blur),delete l._blur,delete l.attrs.blur),l.node.removeAttribute("filter");return l},u._engine.circle=function(p,l,a,c){var x=I("circle");p.canvas&&p.canvas.appendChild(x);var C=new Et(x,p);return C.attrs={cx:l,cy:a,r:c,fill:"none",stroke:"#000"},C.type="circle",I(x,C.attrs),C},u._engine.rect=function(p,l,a,c,x,C){var $=I("rect");p.canvas&&p.canvas.appendChild($);var B=new Et($,p);return B.attrs={x:l,y:a,width:c,height:x,rx:C||0,ry:C||0,fill:"none",stroke:"#000"},B.type="rect",I($,B.attrs),B},u._engine.ellipse=function(p,l,a,c,x){var C=I("ellipse");p.canvas&&p.canvas.appendChild(C);var $=new Et(C,p);return $.attrs={cx:l,cy:a,rx:c,ry:x,fill:"none",stroke:"#000"},$.type="ellipse",I(C,$.attrs),$},u._engine.image=function(p,l,a,c,x,C){var $=I("image");I($,{x:a,y:c,width:x,height:C,preserveAspectRatio:"none"}),$.setAttributeNS(J,"href",l),p.canvas&&p.canvas.appendChild($);var B=new Et($,p);return B.attrs={x:a,y:c,width:x,height:C,src:l},B.type="image",B},u._engine.text=function(p,l,a,c){var x=I("text");p.canvas&&p.canvas.appendChild(x);var C=new Et(x,p);return C.attrs={x:l,y:a,"text-anchor":"middle",text:c,"font-family":u._availableAttrs["font-family"],"font-size":u._availableAttrs["font-size"],stroke:"none",fill:"#000"},C.type="text",Z(C,C.attrs),C},u._engine.setSize=function(p,l){return this.width=p||this.width,this.height=l||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},u._engine.create=function(){var p=u._getContainer.apply(0,arguments),l=p&&p.container;if(!l)throw new Error("SVG container not found.");var a,c=p.x,x=p.y,C=p.width,$=p.height,B=I("svg"),E="overflow:hidden;";return c=c||0,x=x||0,I(B,{height:$=$||342,version:1.1,width:C=C||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),l==1?(B.style.cssText=E+"position:absolute;left:"+c+"px;top:"+x+"px",u._g.doc.body.appendChild(B),a=1):(B.style.cssText=E+"position:relative",l.firstChild?l.insertBefore(B,l.firstChild):l.appendChild(B)),(l=new u._Paper).width=C,l.height=$,l.canvas=B,l.clear(),l._left=l._top=0,a&&(l.renderfix=function(){}),l.renderfix(),l},u._engine.setViewBox=function(p,l,a,c,x){Mt("raphael.setViewBox",this,this._viewBox,[p,l,a,c,x]);var C,$,B=this.getSize(),E=K(a/B.width,c/B.height),z=this.top,H=x?"xMidYMid meet":"xMinYMin";for(p==null?(this._vbSize&&(E=1),delete this._vbSize,C="0 0 "+this.width+L+this.height):(this._vbSize=E,C=p+L+l+L+a+L+c),I(this.canvas,{viewBox:C,preserveAspectRatio:H});E&&z;)$="stroke-width"in z.attrs?z.attrs["stroke-width"]:1,z.attr({"stroke-width":$}),z._.dirty=1,z._.dirtyT=1,z=z.prev;return this._viewBox=[p,l,a,c,!!x],this},u.prototype.renderfix=function(){var p,l=this.canvas,a=l.style;try{p=l.getScreenCTM()||l.createSVGMatrix()}catch{p=l.createSVGMatrix()}var c=-p.e%1,x=-p.f%1;(c||x)&&(c&&(this._left=(this._left+c)%1,a.left=this._left+"px"),x&&(this._top=(this._top+x)%1,a.top=this._top+"px"))},u.prototype.clear=function(){u.eve("raphael.clear",this);for(var p=this.canvas;p.firstChild;)p.removeChild(p.firstChild);this.bottom=this.top=null,(this.desc=I("desc")).appendChild(u._g.doc.createTextNode("Created with Raphaël "+u.version)),p.appendChild(this.desc),p.appendChild(this.defs=I("defs"))},u.prototype.remove=function(){for(var p in Mt("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[p]=typeof this[p]=="function"?u._removedFactory(p):null};var xt=u.st;for(var Qt in ct)ct[h](Qt)&&!xt[h](Qt)&&(xt[Qt]=function(p){return function(){var l=arguments;return this.forEach(function(a){a[p].apply(a,l)})}}(Qt))}}).apply(w,_))===void 0||(f.exports=k)},function(f,w,y){var _,k;_=[y(0)],(k=(function(u){if(!u||u.vml){var h="hasOwnProperty",M=String,F=parseFloat,X=Math,P=X.round,K=X.max,et=X.min,G=X.abs,_t=/[, ]+/,Mt=u.eve,W=" ",L="",J={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ft=/ progid:\S+Blur\([^\)]+\)/g,I=/-?[^,\s-]+/g,it="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",rt=21600,wt={path:1,rect:1,image:1},st={circle:1,ellipse:1},U=function(l,a,c){var x=u.matrix();return x.rotate(-l,.5,.5),{dx:x.x(a,c),dy:x.y(a,c)}},Q=function(l,a,c,x,C,$){var B=l._,E=l.matrix,z=B.fillpos,H=l.node,nt=H.style,pt=1,vt="",dt=rt/a,kt=rt/c;if(nt.visibility="hidden",a&&c){if(H.coordsize=G(dt)+W+G(kt),nt.rotation=$*(a*c<0?-1:1),$){var $t=U($,x,C);x=$t.dx,C=$t.dy}if(a<0&&(vt+="x"),c<0&&(vt+=" y")&&(pt=-1),nt.flip=vt,H.coordorigin=x*-dt+W+C*-kt,z||B.fillsize){var bt=H.getElementsByTagName("fill");bt=bt&&bt[0],H.removeChild(bt),z&&($t=U($,E.x(z[0],z[1]),E.y(z[0],z[1])),bt.position=$t.dx*pt+W+$t.dy*pt),B.fillsize&&(bt.size=B.fillsize[0]*G(a)+W+B.fillsize[1]*G(c)),H.appendChild(bt)}nt.visibility="visible"}};u.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
5
- You are running Raphaël `+this.version};var Z,ot=function(l,a,c){for(var x=M(a).toLowerCase().split("-"),C=c?"end":"start",$=x.length,B="classic",E="medium",z="medium";$--;)switch(x[$]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":B=x[$];break;case"wide":case"narrow":z=x[$];break;case"long":case"short":E=x[$]}var H=l.node.getElementsByTagName("stroke")[0];H[C+"arrow"]=B,H[C+"arrowlength"]=E,H[C+"arrowwidth"]=z},yt=function(l,a){l.attrs=l.attrs||{};var c=l.node,x=l.attrs,C=c.style,$=wt[l.type]&&(a.x!=x.x||a.y!=x.y||a.width!=x.width||a.height!=x.height||a.cx!=x.cx||a.cy!=x.cy||a.rx!=x.rx||a.ry!=x.ry||a.r!=x.r),B=st[l.type]&&(x.cx!=a.cx||x.cy!=a.cy||x.r!=a.r||x.rx!=a.rx||x.ry!=a.ry),E=l;for(var z in a)a[h](z)&&(x[z]=a[z]);if($&&(x.path=u._getPath[l.type](l),l._.dirty=1),a.href&&(c.href=a.href),a.title&&(c.title=a.title),a.target&&(c.target=a.target),a.cursor&&(C.cursor=a.cursor),"blur"in a&&l.blur(a.blur),(a.path&&l.type=="path"||$)&&(c.path=function(Vt){var Me=/[ahqstv]/gi,Ze=u._pathToAbsolute;if(M(Vt).match(Me)&&(Ze=u._path2curve),Me=/[clmz]/g,Ze==u._pathToAbsolute&&!M(Vt).match(Me)){var ne=M(Vt).replace(lt,function(br,Je,ti){var Fe=[],Vi=Je.toLowerCase()=="m",Be=J[Je];return ti.replace(I,function(Ii){Vi&&Fe.length==2&&(Be+=Fe+J[Je=="m"?"l":"L"],Fe=[]),Fe.push(P(Ii*rt))}),Be+Fe});return ne}var Ke,se,di=Ze(Vt);ne=[];for(var Qe=0,pi=di.length;Qe<pi;Qe++){Ke=di[Qe],(se=di[Qe][0].toLowerCase())=="z"&&(se="x");for(var Ee=1,Xt=Ke.length;Ee<Xt;Ee++)se+=P(Ke[Ee]*rt)+(Ee!=Xt-1?",":L);ne.push(se)}return ne.join(W)}(~M(x.path).toLowerCase().indexOf("r")?u._pathToAbsolute(x.path):x.path),l._.dirty=1,l.type=="image"&&(l._.fillpos=[x.x,x.y],l._.fillsize=[x.width,x.height],Q(l,1,1,0,0,0))),"transform"in a&&l.transform(a.transform),B){var H=+x.cx,nt=+x.cy,pt=+x.rx||+x.r||0,vt=+x.ry||+x.r||0;c.path=u.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",P((H-pt)*rt),P((nt-vt)*rt),P((H+pt)*rt),P((nt+vt)*rt),P(H*rt)),l._.dirty=1}if("clip-rect"in a){var dt=M(a["clip-rect"]).split(_t);if(dt.length==4){dt[2]=+dt[2]+ +dt[0],dt[3]=+dt[3]+ +dt[1];var kt=c.clipRect||u._g.doc.createElement("div"),$t=kt.style;$t.clip=u.format("rect({1}px {2}px {3}px {0}px)",dt),c.clipRect||($t.position="absolute",$t.top=0,$t.left=0,$t.width=l.paper.width+"px",$t.height=l.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}a["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(l.textpath){var bt=l.textpath.style;a.font&&(bt.font=a.font),a["font-family"]&&(bt.fontFamily='"'+a["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,L)+'"'),a["font-size"]&&(bt.fontSize=a["font-size"]),a["font-weight"]&&(bt.fontWeight=a["font-weight"]),a["font-style"]&&(bt.fontStyle=a["font-style"])}if("arrow-start"in a&&ot(E,a["arrow-start"]),"arrow-end"in a&&ot(E,a["arrow-end"],1),a.opacity!=null||a.fill!=null||a.src!=null||a.stroke!=null||a["stroke-width"]!=null||a["stroke-opacity"]!=null||a["fill-opacity"]!=null||a["stroke-dasharray"]!=null||a["stroke-miterlimit"]!=null||a["stroke-linejoin"]!=null||a["stroke-linecap"]!=null){var at=c.getElementsByTagName("fill");if(!(at=at&&at[0])&&(at=Z("fill")),l.type=="image"&&a.src&&(at.src=a.src),a.fill&&(at.on=!0),at.on!=null&&a.fill!="none"&&a.fill!==null||(at.on=!1),at.on&&a.fill){var Ft=M(a.fill).match(u._ISURL);if(Ft){at.parentNode==c&&c.removeChild(at),at.rotate=!0,at.src=Ft[1],at.type="tile";var Bt=l.getBBox(1);at.position=Bt.x+W+Bt.y,l._.fillpos=[Bt.x,Bt.y],u._preload(Ft[1],function(){l._.fillsize=[this.offsetWidth,this.offsetHeight]})}else at.color=u.getRGB(a.fill).hex,at.src=L,at.type="solid",u.getRGB(a.fill).error&&(E.type in{circle:1,ellipse:1}||M(a.fill).charAt()!="r")&&Et(E,a.fill,at)&&(x.fill="none",x.gradient=a.fill,at.rotate=!1)}if("fill-opacity"in a||"opacity"in a){var Ot=((+x["fill-opacity"]+1||2)-1)*((+x.opacity+1||2)-1)*((+u.getRGB(a.fill).o+1||2)-1);Ot=et(K(Ot,0),1),at.opacity=Ot,at.src&&(at.color="none")}c.appendChild(at);var At=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],Jt=!1;!At&&(Jt=At=Z("stroke")),(a.stroke&&a.stroke!="none"||a["stroke-width"]||a["stroke-opacity"]!=null||a["stroke-dasharray"]||a["stroke-miterlimit"]||a["stroke-linejoin"]||a["stroke-linecap"])&&(At.on=!0),(a.stroke=="none"||a.stroke===null||At.on==null||a.stroke==0||a["stroke-width"]==0)&&(At.on=!1);var Yt=u.getRGB(a.stroke);At.on&&a.stroke&&(At.color=Yt.hex),Ot=((+x["stroke-opacity"]+1||2)-1)*((+x.opacity+1||2)-1)*((+Yt.o+1||2)-1);var Ce=.75*(F(a["stroke-width"])||1);if(Ot=et(K(Ot,0),1),a["stroke-width"]==null&&(Ce=x["stroke-width"]),a["stroke-width"]&&(At.weight=Ce),Ce&&Ce<1&&(Ot*=Ce)&&(At.weight=1),At.opacity=Ot,a["stroke-linejoin"]&&(At.joinstyle=a["stroke-linejoin"]||"miter"),At.miterlimit=a["stroke-miterlimit"]||8,a["stroke-linecap"]&&(At.endcap=a["stroke-linecap"]=="butt"?"flat":a["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in a){var fi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};At.dashstyle=fi[h](a["stroke-dasharray"])?fi[a["stroke-dasharray"]]:L}Jt&&c.appendChild(At)}if(E.type=="text"){E.paper.canvas.style.display=L;var $e=E.paper.span,Ge=x.font&&x.font.match(/\d+(?:\.\d*)?(?=px)/);C=$e.style,x.font&&(C.font=x.font),x["font-family"]&&(C.fontFamily=x["font-family"]),x["font-weight"]&&(C.fontWeight=x["font-weight"]),x["font-style"]&&(C.fontStyle=x["font-style"]),Ge=F(x["font-size"]||Ge&&Ge[0])||10,C.fontSize=100*Ge+"px",E.textpath.string&&($e.innerHTML=M(E.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var Ue=$e.getBoundingClientRect();E.W=x.w=(Ue.right-Ue.left)/100,E.H=x.h=(Ue.bottom-Ue.top)/100,E.X=x.x,E.Y=x.y+E.H/2,("x"in a||"y"in a)&&(E.path.v=u.format("m{0},{1}l{2},{1}",P(x.x*rt),P(x.y*rt),P(x.x*rt)+1));for(var ci=["x","y","text","font","font-family","font-weight","font-style","font-size"],We=0,Pi=ci.length;We<Pi;We++)if(ci[We]in a){E._.dirty=1;break}switch(x["text-anchor"]){case"start":E.textpath.style["v-text-align"]="left",E.bbx=E.W/2;break;case"end":E.textpath.style["v-text-align"]="right",E.bbx=-E.W/2;break;default:E.textpath.style["v-text-align"]="center",E.bbx=0}E.textpath.style["v-text-kern"]=!0}},Et=function(l,a,c){l.attrs=l.attrs||{},l.attrs;var x=Math.pow,C="linear",$=".5 .5";if(l.attrs.gradient=a,a=(a=M(a).replace(u._radial_gradient,function(pt,vt,dt){return C="radial",vt&&dt&&(vt=F(vt),dt=F(dt),x(vt-.5,2)+x(dt-.5,2)>.25&&(dt=X.sqrt(.25-x(vt-.5,2))*(2*(dt>.5)-1)+.5),$=vt+W+dt),L})).split(/\s*\-\s*/),C=="linear"){var B=a.shift();if(B=-F(B),isNaN(B))return null}var E=u._parseDots(a);if(!E)return null;if(l=l.shape||l.node,E.length){l.removeChild(c),c.on=!0,c.method="none",c.color=E[0].color,c.color2=E[E.length-1].color;for(var z=[],H=0,nt=E.length;H<nt;H++)E[H].offset&&z.push(E[H].offset+W+E[H].color);c.colors=z.length?z.join():"0% "+c.color,C=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=$,c.angle=0):(c.type="gradient",c.angle=(270-B)%360),l.appendChild(c)}return 1},ct=function(l,a){this[0]=this.node=l,l.raphael=!0,this.id=u._oid++,l.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=a,this.matrix=u.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!a.bottom&&(a.bottom=this),this.prev=a.top,a.top&&(a.top.next=this),a.top=this,this.next=null},xt=u.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(l){if(l==null)return this._.transform;var a,c=this.paper._viewBoxShift,x=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:L;c&&(a=l=M(l).replace(/\.{3}|\u2026/g,this._.transform||L)),u._extractTransform(this,x+l);var C,$=this.matrix.clone(),B=this.skew,E=this.node,z=~M(this.attrs.fill).indexOf("-"),H=!M(this.attrs.fill).indexOf("url(");if($.translate(1,1),H||z||this.type=="image")if(B.matrix="1 0 0 1",B.offset="0 0",C=$.split(),z&&C.noRotation||!C.isSimple){E.style.filter=$.toFilter();var nt=this.getBBox(),pt=this.getBBox(1),vt=nt.x-pt.x,dt=nt.y-pt.y;E.coordorigin=vt*-rt+W+dt*-rt,Q(this,1,1,vt,dt,0)}else E.style.filter=L,Q(this,C.scalex,C.scaley,C.dx,C.dy,C.rotate);else E.style.filter=L,B.matrix=M($),B.offset=$.offset();return a!==null&&(this._.transform=a,u._extractTransform(this,a)),this},xt.rotate=function(l,a,c){if(this.removed)return this;if(l!=null){if((l=M(l).split(_t)).length-1&&(a=F(l[1]),c=F(l[2])),l=F(l[0]),c==null&&(a=c),a==null||c==null){var x=this.getBBox(1);a=x.x+x.width/2,c=x.y+x.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",l,a,c]])),this}},xt.translate=function(l,a){return this.removed?this:((l=M(l).split(_t)).length-1&&(a=F(l[1])),l=F(l[0])||0,a=+a||0,this._.bbox&&(this._.bbox.x+=l,this._.bbox.y+=a),this.transform(this._.transform.concat([["t",l,a]])),this)},xt.scale=function(l,a,c,x){if(this.removed)return this;if((l=M(l).split(_t)).length-1&&(a=F(l[1]),c=F(l[2]),x=F(l[3]),isNaN(c)&&(c=null),isNaN(x)&&(x=null)),l=F(l[0]),a==null&&(a=l),x==null&&(c=x),c==null||x==null)var C=this.getBBox(1);return c=c??C.x+C.width/2,x=x??C.y+C.height/2,this.transform(this._.transform.concat([["s",l,a,c,x]])),this._.dirtyT=1,this},xt.hide=function(){return!this.removed&&(this.node.style.display="none"),this},xt.show=function(){return!this.removed&&(this.node.style.display=L),this},xt.auxGetBBox=u.el.getBBox,xt.getBBox=function(){var l=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var a={},c=1/this.paper._viewBoxShift.scale;return a.x=l.x-this.paper._viewBoxShift.dx,a.x*=c,a.y=l.y-this.paper._viewBoxShift.dy,a.y*=c,a.width=l.width*c,a.height=l.height*c,a.x2=a.x+a.width,a.y2=a.y+a.height,a}return l},xt._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}},xt.remove=function(){if(!this.removed&&this.node.parentNode){for(var l in this.paper.__set__&&this.paper.__set__.exclude(this),u.eve.unbind("raphael.*.*."+this.id),u._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[l]=typeof this[l]=="function"?u._removedFactory(l):null;this.removed=!0}},xt.attr=function(l,a){if(this.removed)return this;if(l==null){var c={};for(var x in this.attrs)this.attrs[h](x)&&(c[x]=this.attrs[x]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(a==null&&u.is(l,"string")){if(l=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var C=l.split(_t),$={},B=0,E=C.length;B<E;B++)(l=C[B])in this.attrs?$[l]=this.attrs[l]:u.is(this.paper.customAttributes[l],"function")?$[l]=this.paper.customAttributes[l].def:$[l]=u._availableAttrs[l];return E-1?$:$[C[0]]}if(this.attrs&&a==null&&u.is(l,"array")){for($={},B=0,E=l.length;B<E;B++)$[l[B]]=this.attr(l[B]);return $}var z;for(var H in a!=null&&((z={})[l]=a),a==null&&u.is(l,"object")&&(z=l),z)Mt("raphael.attr."+H+"."+this.id,this,z[H]);if(z){for(H in this.paper.customAttributes)if(this.paper.customAttributes[h](H)&&z[h](H)&&u.is(this.paper.customAttributes[H],"function")){var nt=this.paper.customAttributes[H].apply(this,[].concat(z[H]));for(var pt in this.attrs[H]=z[H],nt)nt[h](pt)&&(z[pt]=nt[pt])}z.text&&this.type=="text"&&(this.textpath.string=z.text),yt(this,z)}return this},xt.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&u._tofront(this,this.paper),this},xt.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),u._toback(this,this.paper)),this)},xt.insertAfter=function(l){return this.removed?this:(l.constructor==u.st.constructor&&(l=l[l.length-1]),l.node.nextSibling?l.node.parentNode.insertBefore(this.node,l.node.nextSibling):l.node.parentNode.appendChild(this.node),u._insertafter(this,l,this.paper),this)},xt.insertBefore=function(l){return this.removed?this:(l.constructor==u.st.constructor&&(l=l[0]),l.node.parentNode.insertBefore(this.node,l.node),u._insertbefore(this,l,this.paper),this)},xt.blur=function(l){var a=this.node.runtimeStyle,c=a.filter;return c=c.replace(ft,L),+l!=0?(this.attrs.blur=l,a.filter=c+W+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+l||1.5)+")",a.margin=u.format("-{0}px 0 0 -{0}px",P(+l||1.5))):(a.filter=c,a.margin=0,delete this.attrs.blur),this},u._engine.path=function(l,a){var c=Z("shape");c.style.cssText=it,c.coordsize=rt+W+rt,c.coordorigin=a.coordorigin;var x=new ct(c,a),C={fill:"none",stroke:"#000"};l&&(C.path=l),x.type="path",x.path=[],x.Path=L,yt(x,C),a.canvas&&a.canvas.appendChild(c);var $=Z("skew");return $.on=!0,c.appendChild($),x.skew=$,x.transform(L),x},u._engine.rect=function(l,a,c,x,C,$){var B=u._rectPath(a,c,x,C,$),E=l.path(B),z=E.attrs;return E.X=z.x=a,E.Y=z.y=c,E.W=z.width=x,E.H=z.height=C,z.r=$,z.path=B,E.type="rect",E},u._engine.ellipse=function(l,a,c,x,C){var $=l.path();return $.attrs,$.X=a-x,$.Y=c-C,$.W=2*x,$.H=2*C,$.type="ellipse",yt($,{cx:a,cy:c,rx:x,ry:C}),$},u._engine.circle=function(l,a,c,x){var C=l.path();return C.attrs,C.X=a-x,C.Y=c-x,C.W=C.H=2*x,C.type="circle",yt(C,{cx:a,cy:c,r:x}),C},u._engine.image=function(l,a,c,x,C,$){var B=u._rectPath(c,x,C,$),E=l.path(B).attr({stroke:"none"}),z=E.attrs,H=E.node,nt=H.getElementsByTagName("fill")[0];return z.src=a,E.X=z.x=c,E.Y=z.y=x,E.W=z.width=C,E.H=z.height=$,z.path=B,E.type="image",nt.parentNode==H&&H.removeChild(nt),nt.rotate=!0,nt.src=a,nt.type="tile",E._.fillpos=[c,x],E._.fillsize=[C,$],H.appendChild(nt),Q(E,1,1,0,0,0),E},u._engine.text=function(l,a,c,x){var C=Z("shape"),$=Z("path"),B=Z("textpath");a=a||0,c=c||0,x=x||"",$.v=u.format("m{0},{1}l{2},{1}",P(a*rt),P(c*rt),P(a*rt)+1),$.textpathok=!0,B.string=M(x),B.on=!0,C.style.cssText=it,C.coordsize=rt+W+rt,C.coordorigin="0 0";var E=new ct(C,l),z={fill:"#000",stroke:"none",font:u._availableAttrs.font,text:x};E.shape=C,E.path=$,E.textpath=B,E.type="text",E.attrs.text=M(x),E.attrs.x=a,E.attrs.y=c,E.attrs.w=1,E.attrs.h=1,yt(E,z),C.appendChild(B),C.appendChild($),l.canvas.appendChild(C);var H=Z("skew");return H.on=!0,C.appendChild(H),E.skew=H,E.transform(L),E},u._engine.setSize=function(l,a){var c=this.canvas.style;return this.width=l,this.height=a,l==+l&&(l+="px"),a==+a&&(a+="px"),c.width=l,c.height=a,c.clip="rect(0 "+l+" "+a+" 0)",this._viewBox&&u._engine.setViewBox.apply(this,this._viewBox),this},u._engine.setViewBox=function(l,a,c,x,C){u.eve("raphael.setViewBox",this,this._viewBox,[l,a,c,x,C]);var $,B,E=this.getSize(),z=E.width,H=E.height;return C&&(c*($=H/x)<z&&(l-=(z-c*$)/2/$),x*(B=z/c)<H&&(a-=(H-x*B)/2/B)),this._viewBox=[l,a,c,x,!!C],this._viewBoxShift={dx:-l,dy:-a,scale:E},this.forEach(function(nt){nt.transform("...")}),this},u._engine.initWin=function(l){var a=l.document;a.styleSheets.length<31?a.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):a.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!a.namespaces.rvml&&a.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),Z=function(c){return a.createElement("<rvml:"+c+' class="rvml">')}}catch{Z=function(x){return a.createElement("<"+x+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},u._engine.initWin(u._g.win),u._engine.create=function(){var l=u._getContainer.apply(0,arguments),a=l.container,c=l.height,x=l.width,C=l.x,$=l.y;if(!a)throw new Error("VML container not found.");var B=new u._Paper,E=B.canvas=u._g.doc.createElement("div"),z=E.style;return C=C||0,$=$||0,x=x||512,c=c||342,B.width=x,B.height=c,x==+x&&(x+="px"),c==+c&&(c+="px"),B.coordsize=216e5+W+216e5,B.coordorigin="0 0",B.span=u._g.doc.createElement("span"),B.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",E.appendChild(B.span),z.cssText=u.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",x,c),a==1?(u._g.doc.body.appendChild(E),z.left=C+"px",z.top=$+"px",z.position="absolute"):a.firstChild?a.insertBefore(E,a.firstChild):a.appendChild(E),B.renderfix=function(){},B},u.prototype.clear=function(){u.eve("raphael.clear",this),this.canvas.innerHTML=L,this.span=u._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},u.prototype.remove=function(){for(var l in u.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[l]=typeof this[l]=="function"?u._removedFactory(l):null;return!0};var Qt=u.st;for(var p in xt)xt[h](p)&&!Qt[h](p)&&(Qt[p]=function(l){return function(){var a=arguments;return this.forEach(function(c){c[l].apply(c,a)})}}(p))}}).apply(w,_))===void 0||(f.exports=k)}])})}(on)),on.exports}var sa=ra();const Oi=fr(sa);class aa{constructor(r){if(fe(r))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=r.element;const f=this.node.dataset?this.node.dataset:{};(fe(r.defaults)?!1:r.defaults)!==!1&&(r=oa({}),delete r.defaults),this.config={element:r.element,classId:la(),value:ht("value",r,f,0,"float"),defaults:ht("defaults",r,f,0,!1),parentNode:ht("parentNode",r,f,null),width:ht("width",r,f,null),height:ht("height",r,f,null),valueFontColor:ht("valueFontColor",r,f,"#010101"),valueFontFamily:ht("valueFontFamily",r,f,"Arial"),symbol:ht("symbol",r,f,""),min:ht("min",r,f,0,"float"),minTxt:ht("minTxt",r,f,!1),max:ht("max",r,f,100,"float"),maxTxt:ht("maxTxt",r,f,!1),reverse:ht("reverse",r,f,!1),humanFriendlyDecimal:ht("humanFriendlyDecimal",r,f,0),textRenderer:ht("textRenderer",r,f,null),onAnimationEnd:ht("onAnimationEnd",r,f,null),gaugeWidthScale:ht("gaugeWidthScale",r,f,1),gaugeColor:ht("gaugeColor",r,f,"#edebeb"),label:ht("label",r,f,""),labelFontColor:ht("labelFontColor",r,f,"#b3b3b3"),labelFontFamily:ht("labelFontFamily",r,f,"Arial"),shadowOpacity:ht("shadowOpacity",r,f,.2),shadowSize:ht("shadowSize",r,f,5),shadowVerticalOffset:ht("shadowVerticalOffset",r,f,3),levelColors:ht("levelColors",r,f,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ht("startAnimationTime",r,f,700),startAnimationType:ht("startAnimationType",r,f,">"),refreshAnimationTime:ht("refreshAnimationTime",r,f,700),refreshAnimationType:ht("refreshAnimationType",r,f,">"),donutStartAngle:ht("donutStartAngle",r,f,90),valueMinFontSize:ht("valueMinFontSize",r,f,16),labelMinFontSize:ht("labelMinFontSize",r,f,10),minLabelMinFontSize:ht("minLabelMinFontSize",r,f,10),maxLabelMinFontSize:ht("maxLabelMinFontSize",r,f,10),hideValue:ht("hideValue",r,f,!1),hideMinMax:ht("hideMinMax",r,f,!1),showInnerShadow:ht("showInnerShadow",r,f,!1),humanFriendly:ht("humanFriendly",r,f,!1),noGradient:ht("noGradient",r,f,!1),donut:ht("donut",r,f,!1),relativeGaugeSize:ht("relativeGaugeSize",r,f,!1),counter:ht("counter",r,f,!1),decimals:ht("decimals",r,f,0),customSectors:ht("customSectors",r,f,{}),formatNumber:ht("formatNumber",r,f,!1),pointer:ht("pointer",r,f,!1),pointerOptions:ht("pointerOptions",r,f,{}),displayRemaining:ht("displayRemaining",r,f,!1)};let y,_,k,u,h,M,F,X,P,K,et,G,_t,Mt,W,L,J,lt,ft;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=ht("value",r,f,-1,"float"),this.canvas=Oi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),y=200,_=200):(this.canvas.setViewBox(0,0,200,100,!0),y=200,_=100):this.config.width!==null&&this.config.height!==null?(y=this.config.width,_=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),y=200,_=100):(y=Number(vr(this.config.element,"width").slice(0,-2))*1,_=Number(vr(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(y>_?(u=_,k=u):(y<_,k=y,u=k),M=(y-k)/2,F=(_-u)/2,X=u/6.4>16?u/5.4:18,P=M+k/2,this.config.label!==""?K=F+u/1.85:K=F+u/1.7,et=u/16>10?u/16:10,G=M+k/2,_t=K+et,Mt=u/16>10?u/16:10,W=M+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,L=_t,J=u/16>10?u/16:10,lt=M+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ft=_t):(y>_?(u=_,k=u*2,k>y&&(h=k/y,k=k/h,u=u/h)):y<_?(k=y,u=k/2):(k=y,u=k*.5),M=(y-k)/2,F=(_-u)/2,X=u/6.5>this.config.valueMinFontSize?u/6.5:this.config.valueMinFontSize,P=M+k/2,K=F+u/1.275,et=u/16>this.config.labelMinFontSize?u/16:this.config.labelMinFontSize,G=M+k/2,_t=K+X/2+5,Mt=u/16>this.config.minLabelMinFontSize?u/16:this.config.minLabelMinFontSize,W=M+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,L=_t,J=u/16>this.config.maxLabelMinFontSize?u/16:this.config.maxLabelMinFontSize,lt=M+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ft=_t),this.params={canvasW:y,canvasH:_,widgetW:k,widgetH:u,dx:M,dy:F,valueFontSize:X,valueX:P,valueY:K,labelFontSize:et,labelX:G,labelY:_t,minFontSize:Mt,minX:W,minY:L,maxFontSize:J,maxX:lt,maxY:ft},this.canvas.customAttributes.pki=U=>{let Q=this.config.min,Z=this.config.max;const ot=this.params.widgetW,yt=this.params.widgetH,Et=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Qt=this.config.donut;let p,l,a,c,x,C,$,B,E,z;return Q<0&&(Z-=Q,U-=Q,Q=0),Qt?(p=(1-2*(U-Q)/(Z-Q))*Math.PI,l=ot/2-ot/30,a=l-ot/6.666666666666667*xt,c=ot/2+Et,x=yt/2+ct,C=c+l*Math.cos(p),$=x-l*Math.sin(p),B=c+a*Math.cos(p),E=x-a*Math.sin(p),z="M"+(c-a)+","+x+" ",z+="L"+(c-l)+","+x+" ",U-Q>(Z-Q)/2&&(z+="A"+l+","+l+" 0 0 1 "+(c+l)+","+x+" "),z+="A"+l+","+l+" 0 0 1 "+C+","+$+" ",z+="L"+B+","+E+" ",U-Q>(Z-Q)/2&&(z+="A"+a+","+a+" 0 0 0 "+(c+a)+","+x+" "),z+="A"+a+","+a+" 0 0 0 "+(c-a)+","+x+" ",z+="Z ",{path:z}):(p=(1-(U-Q)/(Z-Q))*Math.PI,l=ot/2-ot/10,a=l-ot/6.666666666666667*xt,c=ot/2+Et,x=yt/1.25+ct,C=c+l*Math.cos(p),$=x-l*Math.sin(p),B=c+a*Math.cos(p),E=x-a*Math.sin(p),z="M"+(c-a)+","+x+" ",z+="L"+(c-l)+","+x+" ",z+="A"+l+","+l+" 0 0 1 "+C+","+$+" ",z+="L"+B+","+E+" ",z+="A"+a+","+a+" 0 0 0 "+(c-a)+","+x+" ",z+="Z ",{path:z})},this.canvas.customAttributes.ndl=function(U){const Q=this.config.min,Z=this.config.max,ot=this.params.widgetW,yt=this.params.widgetH,Et=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Qt=this.config.donut;let p=ot*3.5/100,l=ot/15,a=ot/100;this.config.pointerOptions.toplength!=null&&this.config.pointerOptions.toplength!==void 0&&(p=this.config.pointerOptions.toplength),this.config.pointerOptions.bottomlength!=null&&this.config.pointerOptions.bottomlength!==void 0&&(l=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(a=this.config.pointerOptions.bottomwidth);let c,x,C,$,B,E,z,H,nt,pt,vt,dt,kt,$t,bt,at,Ft;return Qt?(c=(1-2*(U-Q)/(Z-Q))*Math.PI,x=ot/2-ot/30,C=x-ot/6.666666666666667*xt,$=yt/2+ct,B=ot/2+Et+x*Math.cos(c),E=yt-(yt-$)-x*Math.sin(c),z=ot/2+Et+C*Math.cos(c),H=yt-(yt-$)-C*Math.sin(c),nt=B+p*Math.cos(c),pt=E-p*Math.sin(c),vt=z-l*Math.cos(c),dt=H+l*Math.sin(c),kt=vt+a*Math.sin(c),$t=dt+a*Math.cos(c),bt=vt-a*Math.sin(c),at=dt-a*Math.cos(c),Ft="M"+kt+","+$t+" ",Ft+="L"+bt+","+at+" ",Ft+="L"+nt+","+pt+" ",Ft+="Z ",{path:Ft}):(c=(1-(U-Q)/(Z-Q))*Math.PI,x=ot/2-ot/10,C=x-ot/6.666666666666667*xt,$=yt/1.25+ct,B=ot/2+Et+x*Math.cos(c),E=yt-(yt-$)-x*Math.sin(c),z=ot/2+Et+C*Math.cos(c),H=yt-(yt-$)-C*Math.sin(c),nt=B+p*Math.cos(c),pt=E-p*Math.sin(c),vt=z-l*Math.cos(c),dt=H+l*Math.sin(c),kt=vt+a*Math.sin(c),$t=dt+a*Math.cos(c),bt=vt-a*Math.sin(c),at=dt-a*Math.cos(c),Ft="M"+kt+","+$t+" ",Ft+="L"+bt+","+at+" ",Ft+="L"+nt+","+pt+" ",Ft+="Z ",{path:Ft})},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:gr(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:fe(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":fe(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":fe(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:fe(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"}),Kt(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"}),Kt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let I=this.config.min;this.config.reverse&&(I=this.config.max),this.txtMinimum=I,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Le(I,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=ze(I)),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"}),Kt(this.txtMin,this.params.minFontSize,this.params.minY);let it=this.config.max;this.config.reverse&&(it=this.config.min),this.txtMaximum=it,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Le(it,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=ze(it)),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"}),Kt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],wt="http://www.w3.org/2000/svg";if(hi!==void 0&&hi<9||(hi!==void 0?xr(()=>{this.generateShadow(wt,rt)}):this.generateShadow(wt,rt)),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=Le(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=ze(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=((this.config.max-this.originalValue)*1).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(this.originalValue*1).toFixed(this.config.decimals)+this.config.symbol,this.config.counter===!0){const U=()=>{let Z=this.level.attr("pki")[0];this.config.reverse&&(Z=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(Z))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(Z))):this.config.humanFriendly?this.txtValue.attr("text",Le(Math.floor(Z),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",ze(Math.floor(Z))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-Z)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(Z*1).toFixed(this.config.decimals)+this.config.symbol),Kt(this.txtValue,this.params.valueFontSize,this.params.valueY),Z=null},Q=()=>{this.txtValue.attr({text:this.originalValue}),Kt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",Q),this.bindEvent("raphael.anim.frame",U)}else{const U=()=>{this.txtValue.attr({text:this.originalValue}),Kt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",U)}let st=this.config.value;this.config.reverse&&(st=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[st]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[st]},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(r,f){r+="."+this.level.id,this.events[r]&&Oi.eve.off(r,this.events[r]),Oi.eve.on(r,f),this.events[r]=f}refresh(r,f,w,y){let _;f=yr(f)?f:null,w=yr(w)?w:null,y=y||null,y!==null&&(this.config.label=y,this.txtLabel.attr({text:this.config.label}),Kt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),w!==null&&(this.config.min=w,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Le(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=ze(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Kt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Kt(this.txtMin,this.params.minFontSize,this.params.minY))),f!==null&&(this.config.max=f,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Le(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=ze(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Kt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Kt(this.txtMax,this.params.maxFontSize,this.params.maxY))),_=r,r*1>this.config.max*1&&(r=this.config.max*1),r*1<this.config.min*1&&(r=this.config.min*1);const k=gr(r,(r-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(_)!==!1?_=this.config.textRenderer(_):this.config.humanFriendly?_=Le(_,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?_=ze((_*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?_=((this.config.max-_)*1).toFixed(this.config.decimals)+this.config.symbol:_=(_*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=_,this.config.value=r*1,this.config.counter||(this.txtValue.attr({text:_}),Kt(this.txtValue,this.params.valueFontSize,this.params.valueY));let u=this.config.value;this.config.reverse&&(u=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[u],fill:k},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[u]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(r,f){const w=this;if(r instanceof Object)for(const y in r)f=r[y],pr(w,y,f);else pr(w,r,f)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const r in this.events)Oi.eve.off(r,this.events[r]);this.events={}}generateShadow(r,f){const w="inner-shadow-"+(this.config.element.id||this.config.classId),y=document.createElementNS(r,"filter");y.setAttribute("id",w),f.appendChild(y);const _=document.createElementNS(r,"feOffset");_.setAttribute("dx","0"),_.setAttribute("dy",this.config.shadowVerticalOffset),y.appendChild(_);const k=document.createElementNS(r,"feGaussianBlur");k.setAttribute("result","offset-blur"),k.setAttribute("stdDeviation",this.config.shadowSize),y.appendChild(k);const u=document.createElementNS(r,"feComposite");u.setAttribute("operator","out"),u.setAttribute("in","SourceGraphic"),u.setAttribute("in2","offset-blur"),u.setAttribute("result","inverse"),y.appendChild(u);const h=document.createElementNS(r,"feFlood");h.setAttribute("flood-color","black"),h.setAttribute("flood-opacity",this.config.shadowOpacity),h.setAttribute("result","color"),y.appendChild(h);const M=document.createElementNS(r,"feComposite");M.setAttribute("operator","in"),M.setAttribute("in","color"),M.setAttribute("in2","inverse"),M.setAttribute("result","shadow"),y.appendChild(M);const F=document.createElementNS(r,"feComposite");F.setAttribute("operator","over"),F.setAttribute("in","shadow"),F.setAttribute("in2","SourceGraphic"),y.appendChild(F),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+w+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+w+")"))}}function pr(s,r,f){switch(r){case"valueFontColor":if(!mr(f)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}s.txtValue.attr({fill:f});break;case"labelFontColor":if(!mr(f)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}s.txtMin.attr({fill:f}),s.txtMax.attr({fill:f}),s.txtLabel.attr({fill:f});break;default:console.log(`* justgage: "${r}" is not a supported update setting`)}}function ht(s,r,f,w,y,_){let k=w,u=!1;if(!fe(s)&&(!fe(f)&&typeof f=="object"&&s in f?(k=f[s],u=!0):!fe(r)&&typeof r=="object"&&s in r?(k=r[s],u=!0):k=w,u===!0&&!fe(y)))switch(y){case"int":k=parseInt(k,10);break;case"float":k=parseFloat(k);break}return k}function fe(s){return s==null}function gr(s,r,f,w,y){let _,k,u,h,M,F,X,P,K,et,G;const _t=y&&y.ranges&&y.ranges.length>0;if(w=w||_t,_t){y.percents===!0&&(s=r*100);for(let J=0;J<y.ranges.length;J++)if(s>=y.ranges[J].lo&&s<=y.ranges[J].hi)return y.ranges[J].color}const Mt=f.length;if(Mt===1)return f[0];const W=w?1/Mt:1/(Mt-1),L=[];for(let J=0;J<f.length;J++)_=w?W*(J+1):W*J,k=parseInt(ln(f[J]).substring(0,2),16),u=parseInt(ln(f[J]).substring(2,4),16),h=parseInt(ln(f[J]).substring(4,6),16),L[J]={pct:_,color:{r:k,g:u,b:h}};if(r===0)return"rgb("+[L[0].color.r,L[0].color.g,L[0].color.b].join(",")+")";for(let J=0;J<L.length;J++)if(r<=L[J].pct)return w?"rgb("+[L[J].color.r,L[J].color.g,L[J].color.b].join(",")+")":(M=L[J-1],F=L[J],X=F.pct-M.pct,P=(r-M.pct)/X,K=1-P,et=P,G={r:Math.floor(M.color.r*K+F.color.r*et),g:Math.floor(M.color.g*K+F.color.g*et),b:Math.floor(M.color.b*K+F.color.b*et)},"rgb("+[G.r,G.g,G.b].join(",")+")")}function Kt(s,r,f){(!hi||hi>9)&&s.node.firstChild.attributes.dy&&(s.node.firstChild.attributes.dy.value=0)}function ln(s){return s.charAt(0)==="#"?s.substring(1,7):s}function mr(s){return typeof s=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(s)}function Le(s,r){const f=Math.pow(10,r),w=" KMGTPE";let y=0;const _=1e3;for(;(s>=_||s<=-1e3)&&++y<w.length;)s=s/_;return y=y>=w.length?w.length-1:y,Math.round(s*f)/f+w[y]}function ze(s){const r=s.toString().split(".");return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r.join(".")}function vr(s,r){let f="";return document.defaultView&&document.defaultView.getComputedStyle?f=document.defaultView.getComputedStyle(s,"").getPropertyValue(r):s.currentStyle&&(r=r.replace(/-(\w)/g,function(w,y){return y.toUpperCase()}),f=s.currentStyle[r]),f}function xr(s){document.createElementNS!==void 0?s():setTimeout(function(){xr(s)},100)}const hi=function(){let s=3;const r=document.createElement("div"),f=r.getElementsByTagName("i");for(;f[0];)r.innerHTML="<!--[if gt IE "+ ++s+"]><i></i><![endif]-->";return s>4?s:void 0}();function oa(s){s=s||{};for(let r=1;r<arguments.length;r++)if(arguments[r])for(const f in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],f)&&(s[f]=arguments[r][f]);return s}function yr(s){return s!=null&&!isNaN(s)}function la(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){const r=Math.random()*16|0;return(s==="x"?r:r&3|8).toString(16)})}var ua=Hs('<div part="gauge" style="width:100%" id="gauge"></div>');const ha={hash:"svelte-45h",code:""};function _r(s,r){ir(r,!0),Ws(s,ha);let f=Mn(void 0),w=Mn(void 0),y=an(r,"id",7,""),_=an(r,"style"),k=an(r,"options");Un(()=>{k()&&typeof k()=="string"&&k(JSON.parse(k())),Rt(f)&&Rt(w)&&u()});function u(){Rt(w)&&Rt(w).destroy(),qt(w,void 0),h()}function h(){if(!k()||!Rt(f))return console.error("cannot create gauge");if(Rt(w))console.error("cannot create html gauge");else{const X=Object.assign({element:Rt(f)},k());qt(w,Te(new aa(X)))}}ur(()=>{qt(f,Te(r.$$host.querySelector("#gauge"))),h()}),Zs(()=>{Rt(w)&&Rt(w).destroy(),qt(w,void 0)});var M=ua(),F=Sn(()=>na(u,200));return qs("resize",Zi,function(...X){var P;(P=Rt(F))==null||P.apply(this,X)}),ar(s,M),nr({get id(){return y()},set id(X=""){y(X),li()},get style(){return _()},set style(X){_(X),li()},get options(){return k()},set options(X){k(X),li()}})}customElements.define("hb-gauge",ta(_r,{id:{},style:{},options:{}},[],[],!0)),Lt.Component=_r,Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
1
+ (function(vn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Kr=2,Jr="[",ts="]",ki={},Pt=Symbol(),xn=!1;var yn=Array.isArray,es=Array.prototype.indexOf,is=Array.from,Ei=Object.keys,Ie=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,ns=Object.prototype,rs=Array.prototype,ss=Object.getPrototypeOf,_n=Object.isExtensible;function bn(r){for(var s=0;s<r.length;s++)r[s]()}function as(){var r,s,u=new Promise((y,b)=>{r=y,s=b});return{promise:u,resolve:r,reject:s}}const qt=2,Yi=4,wn=8,oi=16,de=32,pe=64,kn=128,Jt=256,Ci=512,It=1024,ne=2048,ge=4096,De=8192,je=16384,qi=32768,os=65536,En=1<<17,ls=1<<18,li=1<<19,us=1<<20,Xi=1<<21,Cn=1<<22,Mi=1<<23,Hi=Symbol("$state"),hs=Symbol("legacy props"),Mn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},$n=8;function Fn(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function fs(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function cs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ds(r){throw new Error("https://svelte.dev/e/effect_orphan")}function ps(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function vs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function xs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Sn(r){console.warn("https://svelte.dev/e/hydration_mismatch")}let Ye=!1;function $i(r){Ye=r}let se;function Gi(r){if(r===null)throw Sn(),ki;return se=r}function An(){return Gi(nn(se))}function Tn(r){return r===this.v}function ys(r,s){return r!=r?s==s:r!==s||r!==null&&typeof r=="object"||typeof r=="function"}function _s(r){return!ys(r,this.v)}let bs=!1,te=null;function Nn(r){te=r}function Ln(r,s=!1,u){te={p:te,c:null,e:null,s:r,x:null,l:null}}function Rn(r){var s=te,u=s.e;if(u!==null){s.e=null;for(var y of u)Jn(y)}return r!==void 0&&(s.x=r),te=s.p,r??{}}function zn(){return!0}const ws=new WeakMap;function ks(r){var s=Tt;if(s===null)return St.f|=Mi,r;if((s.f&qi)===0){if((s.f&kn)===0)throw!s.parent&&r instanceof Error&&On(r),r;s.b.error(r)}else Bn(r,s)}function Bn(r,s){for(;s!==null;){if((s.f&kn)!==0)try{s.b.error(r);return}catch(u){r=u}s=s.parent}throw r instanceof Error&&On(r),r}function On(r){const s=ws.get(r);s&&(Ie(r,"message",{value:s.message}),Ie(r,"stack",{value:s.stack}))}let ui=[],Ui=[];function Pn(){var r=ui;ui=[],bn(r)}function Es(){var r=Ui;Ui=[],bn(r)}function Cs(r){ui.length===0&&queueMicrotask(Pn),ui.push(r)}function Ms(){ui.length>0&&Pn(),Ui.length>0&&Es()}function In(r){var s=qt|ne,u=St!==null&&(St.f&qt)!==0?St:null;return Tt===null||u!==null&&(u.f&Jt)!==0?s|=Jt:Tt.f|=li,{ctx:te,deps:null,effects:null,equals:Tn,f:s,fn:r,reactions:null,rv:0,v:Pt,wv:0,parent:u??Tt,ac:null}}function $s(r){const s=In(r);return ar(s),s}function Vn(r){var s=r.effects;if(s!==null){r.effects=null;for(var u=0;u<s.length;u+=1)ve(s[u])}}function Fs(r){for(var s=r.parent;s!==null;){if((s.f&qt)===0)return s;s=s.parent}return null}function Wi(r){var s,u=Tt;Xe(Fs(r));try{Vn(r),s=fr(r)}finally{Xe(u)}return s}function Dn(r){var s=Wi(r);if(r.equals(s)||(r.v=s,r.wv=ur()),!Te){var u=(ye||(r.f&Jt)!==0)&&r.deps!==null?ge:It;Ut(r,u)}}const Zi=new Set;let Xt=null,jn=new Set,Fi=[];function Yn(){const r=Fi.shift();Fi.length>0&&queueMicrotask(Yn),r()}let $e=[],Si=null,Qi=!1,Ai=!1;class Fe{current=new Map;#e=new Map;#t=new Set;#i=0;#u=null;#h=!1;#r=[];#a=[];#s=[];#n=[];#o=[];#f=[];#c=[];skipped_effects=new Set;process(s){$e=[];for(const b of s)this.#p(b);if(this.#r.length===0&&this.#i===0){this.#d();var u=this.#s,y=this.#n;this.#s=[],this.#n=[],this.#o=[],Xt=null,Xn(u),Xn(y),Xt===null?Xt=this:Zi.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const b of this.#r)He(b);for(const b of this.#a)He(b);this.#r=[],this.#a=[]}#p(s){s.f^=It;for(var u=s.first;u!==null;){var y=u.f,b=(y&(de|pe))!==0,_=b&&(y&It)!==0,k=_||(y&De)!==0||this.skipped_effects.has(u);if(!k&&u.fn!==null){if(b)u.f^=It;else if((y&Yi)!==0)this.#n.push(u);else if((y&It)===0)if((y&Cn)!==0){var h=u.b?.is_pending()?this.#a:this.#r;h.push(u)}else Ti(u)&&((u.f&oi)!==0&&this.#o.push(u),He(u));var f=u.first;if(f!==null){u=f;continue}}var $=u.parent;for(u=u.next;u===null&&$!==null;)u=$.next,$=$.parent}}#l(s){for(const u of s)((u.f&ne)!==0?this.#f:this.#c).push(u),Ut(u,It);s.length=0}capture(s,u){this.#e.has(s)||this.#e.set(s,u),this.current.set(s,s.v)}activate(){Xt=this}deactivate(){Xt=null;for(const s of jn)if(jn.delete(s),s(),Xt!==null)break}neuter(){this.#h=!0}flush(){$e.length>0?qn():this.#d(),Xt===this&&(this.#i===0&&Zi.delete(this),this.deactivate())}#d(){if(!this.#h)for(const s of this.#t)s();this.#t.clear()}increment(){this.#i+=1}decrement(){if(this.#i-=1,this.#i===0){for(const s of this.#f)Ut(s,ne),hi(s);for(const s of this.#c)Ut(s,ge),hi(s);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(s){this.#t.add(s)}settled(){return(this.#u??=as()).promise}static ensure(){if(Xt===null){const s=Xt=new Fe;Zi.add(Xt),Ai||Fe.enqueue(()=>{Xt===s&&s.flush()})}return Xt}static enqueue(s){Fi.length===0&&queueMicrotask(Yn),Fi.unshift(s)}}function Ki(r){var s=Ai;Ai=!0;try{for(var u;;){if(Ms(),$e.length===0&&(Xt?.flush(),$e.length===0))return Si=null,u;qn()}}finally{Ai=s}}function qn(){var r=qe;Qi=!0;try{var s=0;for(rr(!0);$e.length>0;){var u=Fe.ensure();if(s++>1e3){var y,b;Ss()}u.process($e),me.clear()}}finally{Qi=!1,rr(r),Si=null}}function Ss(){try{ps()}catch(r){Bn(r,Si)}}let Se=null;function Xn(r){var s=r.length;if(s!==0){for(var u=0;u<s;){var y=r[u++];if((y.f&(je|De))===0&&Ti(y)&&(Se=[],He(y),y.deps===null&&y.first===null&&y.nodes_start===null&&(y.teardown===null&&y.ac===null?ir(y):y.fn=null),Se?.length>0)){me.clear();for(const b of Se)He(b);Se=[]}}Se=null}}function hi(r){for(var s=Si=r;s.parent!==null;){s=s.parent;var u=s.f;if(Qi&&s===Tt&&(u&oi)!==0)return;if((u&(pe|de))!==0){if((u&It)===0)return;s.f^=It}}$e.push(s)}const me=new Map;function Hn(r,s){var u={f:0,v:r,reactions:null,equals:Tn,rv:0,wv:0};return u}function ae(r,s){const u=Hn(r);return ar(u),u}function As(r,s=!1,u=!0){const y=Hn(r);return s||(y.equals=_s),y}function Ht(r,s,u=!1){St!==null&&(!oe||(St.f&En)!==0)&&zn()&&(St.f&(qt|oi|Cn|En))!==0&&!he?.includes(r)&&xs();let y=u?fi(s):s;return Ts(r,y)}function Ts(r,s){if(!r.equals(s)){var u=r.v;Te?me.set(r,s):me.set(r,u),r.v=s;var y=Fe.ensure();y.capture(r,u),(r.f&qt)!==0&&((r.f&ne)!==0&&Wi(r),Ut(r,(r.f&Jt)===0?It:ge)),r.wv=ur(),Gn(r,ne),Tt!==null&&(Tt.f&It)!==0&&(Tt.f&(de|pe))===0&&(ee===null?Hs([r]):ee.push(r))}return s}function Ji(r){Ht(r,r.v+1)}function Gn(r,s){var u=r.reactions;if(u!==null)for(var y=u.length,b=0;b<y;b++){var _=u[b],k=_.f,h=(k&ne)===0;h&&Ut(_,s),(k&qt)!==0?Gn(_,ge):h&&((k&oi)!==0&&Se!==null&&Se.push(_),hi(_))}}function fi(r){if(typeof r!="object"||r===null||Hi in r)return r;const s=ss(r);if(s!==ns&&s!==rs)return r;var u=new Map,y=yn(r),b=ae(0),_=Ne,k=h=>{if(Ne===_)return h();var f=St,$=Ne;xe(null),lr(_);var L=h();return xe(f),lr($),L};return y&&u.set("length",ae(r.length)),new Proxy(r,{defineProperty(h,f,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&ms();var L=u.get(f);return L===void 0?L=k(()=>{var tt=ae($.value);return u.set(f,tt),tt}):Ht(L,$.value,!0),!0},deleteProperty(h,f){var $=u.get(f);if($===void 0){if(f in h){const L=k(()=>ae(Pt));u.set(f,L),Ji(b)}}else Ht($,Pt),Ji(b);return!0},get(h,f,$){if(f===Hi)return r;var L=u.get(f),tt=f in h;if(L===void 0&&(!tt||Ve(h,f)?.writable)&&(L=k(()=>{var et=fi(tt?h[f]:Pt),W=ae(et);return W}),u.set(f,L)),L!==void 0){var q=Rt(L);return q===Pt?void 0:q}return Reflect.get(h,f,$)},getOwnPropertyDescriptor(h,f){var $=Reflect.getOwnPropertyDescriptor(h,f);if($&&"value"in $){var L=u.get(f);L&&($.value=Rt(L))}else if($===void 0){var tt=u.get(f),q=tt?.v;if(tt!==void 0&&q!==Pt)return{enumerable:!0,configurable:!0,value:q,writable:!0}}return $},has(h,f){if(f===Hi)return!0;var $=u.get(f),L=$!==void 0&&$.v!==Pt||Reflect.has(h,f);if($!==void 0||Tt!==null&&(!L||Ve(h,f)?.writable)){$===void 0&&($=k(()=>{var q=L?fi(h[f]):Pt,et=ae(q);return et}),u.set(f,$));var tt=Rt($);if(tt===Pt)return!1}return L},set(h,f,$,L){var tt=u.get(f),q=f in h;if(y&&f==="length")for(var et=$;et<tt.v;et+=1){var W=u.get(et+"");W!==void 0?Ht(W,Pt):et in h&&(W=k(()=>ae(Pt)),u.set(et+"",W))}if(tt===void 0)(!q||Ve(h,f)?.writable)&&(tt=k(()=>ae(void 0)),Ht(tt,fi($)),u.set(f,tt));else{q=tt.v!==Pt;var U=k(()=>fi($));Ht(tt,U)}var _t=Reflect.getOwnPropertyDescriptor(h,f);if(_t?.set&&_t.set.call(L,$),!q){if(y&&typeof f=="string"){var Mt=u.get("length"),G=Number(f);Number.isInteger(G)&&G>=Mt.v&&Ht(Mt,G+1)}Ji(b)}return!0},ownKeys(h){Rt(b);var f=Reflect.ownKeys(h).filter(tt=>{var q=u.get(tt);return q===void 0||q.v!==Pt});for(var[$,L]of u)L.v!==Pt&&!($ in h)&&f.push($);return f},setPrototypeOf(){vs()}})}var tn,Un,Wn,Zn;function en(){if(tn===void 0){tn=window,Un=/Firefox/.test(navigator.userAgent);var r=Element.prototype,s=Node.prototype,u=Text.prototype;Wn=Ve(s,"firstChild").get,Zn=Ve(s,"nextSibling").get,_n(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),_n(u)&&(u.__t=void 0)}}function Ns(r=""){return document.createTextNode(r)}function Qn(r){return Wn.call(r)}function nn(r){return Zn.call(r)}function Ls(r){r.textContent=""}function rn(r){var s=St,u=Tt;xe(null),Xe(null);try{return r()}finally{xe(s),Xe(u)}}function Rs(r){Tt===null&&St===null&&ds(),St!==null&&(St.f&Jt)!==0&&Tt===null&&cs(),Te&&fs()}function zs(r,s){var u=s.last;u===null?s.last=s.first=r:(u.next=r,r.prev=u,s.last=r)}function Ae(r,s,u,y=!0){var b=Tt;b!==null&&(b.f&De)!==0&&(r|=De);var _={ctx:te,deps:null,nodes_start:null,nodes_end:null,f:r|ne,first:null,fn:s,last:null,next:null,parent:b,b:b&&b.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{He(_),_.f|=qi}catch(f){throw ve(_),f}else s!==null&&hi(_);if(y){var k=_;if(u&&k.deps===null&&k.teardown===null&&k.nodes_start===null&&k.first===k.last&&(k.f&li)===0&&(k=k.first),k!==null&&(k.parent=b,b!==null&&zs(k,b),St!==null&&(St.f&qt)!==0&&(r&pe)===0)){var h=St;(h.effects??=[]).push(k)}}return _}function Bs(r){const s=Ae(wn,null,!1);return Ut(s,It),s.teardown=r,s}function Kn(r){Rs();var s=Tt.f,u=!St&&(s&de)!==0&&(s&qi)===0;if(u){var y=te;(y.e??=[]).push(r)}else return Jn(r)}function Jn(r){return Ae(Yi|us,r,!1)}function Os(r){Fe.ensure();const s=Ae(pe|li,r,!0);return()=>{ve(s)}}function Ps(r){Fe.ensure();const s=Ae(pe|li,r,!0);return(u={})=>new Promise(y=>{u.outro?qs(s,()=>{ve(s),y(void 0)}):(ve(s),y(void 0))})}function Is(r){return Ae(Yi,r,!1)}function Vs(r,s=0){return Ae(wn|s,r,!0)}function Ds(r,s=!0){return Ae(de|li,r,!0,s)}function tr(r){var s=r.teardown;if(s!==null){const u=Te,y=St;sr(!0),xe(null);try{s.call(null)}finally{sr(u),xe(y)}}}function er(r,s=!1){var u=r.first;for(r.first=r.last=null;u!==null;){const b=u.ac;b!==null&&rn(()=>{b.abort(Mn)});var y=u.next;(u.f&pe)!==0?u.parent=null:ve(u,s),u=y}}function js(r){for(var s=r.first;s!==null;){var u=s.next;(s.f&de)===0&&ve(s),s=u}}function ve(r,s=!0){var u=!1;(s||(r.f&ls)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(Ys(r.nodes_start,r.nodes_end),u=!0),er(r,s&&!u),Ni(r,0),Ut(r,je);var y=r.transitions;if(y!==null)for(const _ of y)_.stop();tr(r);var b=r.parent;b!==null&&b.first!==null&&ir(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function Ys(r,s){for(;r!==null;){var u=r===s?null:nn(r);r.remove(),r=u}}function ir(r){var s=r.parent,u=r.prev,y=r.next;u!==null&&(u.next=y),y!==null&&(y.prev=u),s!==null&&(s.first===r&&(s.first=y),s.last===r&&(s.last=u))}function qs(r,s){var u=[];nr(r,u,!0),Xs(u,()=>{ve(r),s&&s()})}function Xs(r,s){var u=r.length;if(u>0){var y=()=>--u||s();for(var b of r)b.out(y)}else s()}function nr(r,s,u){if((r.f&De)===0){if(r.f^=De,r.transitions!==null)for(const k of r.transitions)(k.is_global||u)&&s.push(k);for(var y=r.first;y!==null;){var b=y.next,_=(y.f&os)!==0||(y.f&de)!==0;nr(y,s,_?u:!1),y=b}}}let qe=!1;function rr(r){qe=r}let Te=!1;function sr(r){Te=r}let St=null,oe=!1;function xe(r){St=r}let Tt=null;function Xe(r){Tt=r}let he=null;function ar(r){St!==null&&(he===null?he=[r]:he.push(r))}let Vt=null,Gt=0,ee=null;function Hs(r){ee=r}let or=1,ci=0,Ne=ci;function lr(r){Ne=r}let ye=!1;function ur(){return++or}function Ti(r){var s=r.f;if((s&ne)!==0)return!0;if((s&ge)!==0){var u=r.deps,y=(s&Jt)!==0;if(u!==null){var b,_,k=(s&Ci)!==0,h=y&&Tt!==null&&!ye,f=u.length;if((k||h)&&(Tt===null||(Tt.f&je)===0)){var $=r,L=$.parent;for(b=0;b<f;b++)_=u[b],(k||!_?.reactions?.includes($))&&(_.reactions??=[]).push($);k&&($.f^=Ci),h&&L!==null&&(L.f&Jt)===0&&($.f^=Jt)}for(b=0;b<f;b++)if(_=u[b],Ti(_)&&Dn(_),_.wv>r.wv)return!0}(!y||Tt!==null&&!ye)&&Ut(r,It)}return!1}function hr(r,s,u=!0){var y=r.reactions;if(y!==null&&!he?.includes(r))for(var b=0;b<y.length;b++){var _=y[b];(_.f&qt)!==0?hr(_,s,!1):s===_&&(u?Ut(_,ne):(_.f&It)!==0&&Ut(_,ge),hi(_))}}function fr(r){var s=Vt,u=Gt,y=ee,b=St,_=ye,k=he,h=te,f=oe,$=Ne,L=r.f;Vt=null,Gt=0,ee=null,ye=(L&Jt)!==0&&(oe||!qe||St===null),St=(L&(de|pe))===0?r:null,he=null,Nn(r.ctx),oe=!1,Ne=++ci,r.ac!==null&&(rn(()=>{r.ac.abort(Mn)}),r.ac=null);try{r.f|=Xi;var tt=r.fn,q=tt(),et=r.deps;if(Vt!==null){var W;if(Ni(r,Gt),et!==null&&Gt>0)for(et.length=Gt+Vt.length,W=0;W<Vt.length;W++)et[Gt+W]=Vt[W];else r.deps=et=Vt;if(!ye||(L&qt)!==0&&r.reactions!==null)for(W=Gt;W<et.length;W++)(et[W].reactions??=[]).push(r)}else et!==null&&Gt<et.length&&(Ni(r,Gt),et.length=Gt);if(zn()&&ee!==null&&!oe&&et!==null&&(r.f&(qt|ge|ne))===0)for(W=0;W<ee.length;W++)hr(ee[W],r);return b!==null&&b!==r&&(ci++,ee!==null&&(y===null?y=ee:y.push(...ee))),(r.f&Mi)!==0&&(r.f^=Mi),q}catch(U){return ks(U)}finally{r.f^=Xi,Vt=s,Gt=u,ee=y,St=b,ye=_,he=k,Nn(h),oe=f,Ne=$}}function Gs(r,s){let u=s.reactions;if(u!==null){var y=es.call(u,r);if(y!==-1){var b=u.length-1;b===0?u=s.reactions=null:(u[y]=u[b],u.pop())}}u===null&&(s.f&qt)!==0&&(Vt===null||!Vt.includes(s))&&(Ut(s,ge),(s.f&(Jt|Ci))===0&&(s.f^=Ci),Vn(s),Ni(s,0))}function Ni(r,s){var u=r.deps;if(u!==null)for(var y=s;y<u.length;y++)Gs(r,u[y])}function He(r){var s=r.f;if((s&je)===0){Ut(r,It);var u=Tt,y=qe;Tt=r,qe=!0;try{(s&oi)!==0?js(r):er(r),tr(r);var b=fr(r);r.teardown=typeof b=="function"?b:null,r.wv=or;var _;xn&&bs&&(r.f&ne)!==0&&r.deps}finally{qe=y,Tt=u}}}function Rt(r){var s=r.f,u=(s&qt)!==0;if(St!==null&&!oe){var y=Tt!==null&&(Tt.f&je)!==0;if(!y&&!he?.includes(r)){var b=St.deps;if((St.f&Xi)!==0)r.rv<ci&&(r.rv=ci,Vt===null&&b!==null&&b[Gt]===r?Gt++:Vt===null?Vt=[r]:(!ye||!Vt.includes(r))&&Vt.push(r));else{(St.deps??=[]).push(r);var _=r.reactions;_===null?r.reactions=[St]:_.includes(St)||_.push(St)}}}else if(u&&r.deps===null&&r.effects===null){var k=r,h=k.parent;h!==null&&(h.f&Jt)===0&&(k.f^=Jt)}if(Te){if(me.has(r))return me.get(r);if(u){k=r;var f=k.v;return((k.f&It)===0&&k.reactions!==null||cr(k))&&(f=Wi(k)),me.set(k,f),f}}else u&&(k=r,Ti(k)&&Dn(k));if((r.f&Mi)!==0)throw r.v;return r.v}function cr(r){if(r.v===Pt)return!0;if(r.deps===null)return!1;for(const s of r.deps)if(me.has(s)||(s.f&qt)!==0&&cr(s))return!0;return!1}function dr(r){var s=oe;try{return oe=!0,r()}finally{oe=s}}const Us=-7169;function Ut(r,s){r.f=r.f&Us|s}const Ws=new Set,pr=new Set;function Zs(r,s,u,y={}){function b(_){if(y.capture||di.call(s,_),!_.cancelBubble)return rn(()=>u?.call(this,_))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Cs(()=>{s.addEventListener(r,b,y)}):s.addEventListener(r,b,y),b}function Qs(r,s,u,y,b){var _={capture:y,passive:b},k=Zs(r,s,u,_);(s===document.body||s===window||s===document||s instanceof HTMLMediaElement)&&Bs(()=>{s.removeEventListener(r,k,_)})}let gr=null;function di(r){var s=this,u=s.ownerDocument,y=r.type,b=r.composedPath?.()||[],_=b[0]||r.target;gr=r;var k=0,h=gr===r&&r.__root;if(h){var f=b.indexOf(h);if(f!==-1&&(s===document||s===window)){r.__root=s;return}var $=b.indexOf(s);if($===-1)return;f<=$&&(k=f)}if(_=b[k]||r.target,_!==s){Ie(r,"currentTarget",{configurable:!0,get(){return _||u}});var L=St,tt=Tt;xe(null),Xe(null);try{for(var q,et=[];_!==null;){var W=_.assignedSlot||_.parentNode||_.host||null;try{var U=_["__"+y];if(U!=null&&(!_.disabled||r.target===_))if(yn(U)){var[_t,...Mt]=U;_t.apply(_,[r,...Mt])}else U.call(_,r)}catch(G){q?et.push(G):q=G}if(r.cancelBubble||W===s||W===null)break;_=W}if(q){for(let G of et)queueMicrotask(()=>{throw G});throw q}}finally{r.__root=s,delete r.currentTarget,xe(L),Xe(tt)}}}function Ks(r){var s=document.createElement("template");return s.innerHTML=r.replaceAll("<!>","<!---->"),s.content}function sn(r,s){var u=Tt;u.nodes_start===null&&(u.nodes_start=r,u.nodes_end=s)}function Js(r,s){var u=(s&Kr)!==0,y,b=!r.startsWith("<!>");return()=>{if(Ye)return sn(se,null),se;y===void 0&&(y=Ks(b?r:"<!>"+r),y=Qn(y));var _=u||Un?document.importNode(y,!0):y.cloneNode(!0);return sn(_,_),_}}function mr(r,s){if(Ye){Tt.nodes_end=se,An();return}r!==null&&r.before(s)}const ta=["touchstart","touchmove"];function ea(r){return ta.includes(r)}function vr(r,s){return xr(r,s)}function ia(r,s){en(),s.intro=s.intro??!1;const u=s.target,y=Ye,b=se;try{for(var _=Qn(u);_&&(_.nodeType!==$n||_.data!==Jr);)_=nn(_);if(!_)throw ki;$i(!0),Gi(_),An();const k=xr(r,{...s,anchor:_});if(se===null||se.nodeType!==$n||se.data!==ts)throw Sn(),ki;return $i(!1),k}catch(k){if(k instanceof Error&&k.message.split(`
2
+ `).some(h=>h.startsWith("https://svelte.dev/e/")))throw k;return k!==ki&&console.warn("Failed to hydrate: ",k),s.recover===!1&&gs(),en(),Ls(u),$i(!1),vr(r,s)}finally{$i(y),Gi(b)}}const Ge=new Map;function xr(r,{target:s,anchor:u,props:y={},events:b,context:_,intro:k=!0}){en();var h=new Set,f=tt=>{for(var q=0;q<tt.length;q++){var et=tt[q];if(!h.has(et)){h.add(et);var W=ea(et);s.addEventListener(et,di,{passive:W});var U=Ge.get(et);U===void 0?(document.addEventListener(et,di,{passive:W}),Ge.set(et,1)):Ge.set(et,U+1)}}};f(is(Ws)),pr.add(f);var $=void 0,L=Ps(()=>{var tt=u??s.appendChild(Ns());return Ds(()=>{if(_){Ln({});var q=te;q.c=_}b&&(y.$$events=b),Ye&&sn(tt,null),$=r(tt,y)||{},Ye&&(Tt.nodes_end=se),_&&Rn()}),()=>{for(var q of h){s.removeEventListener(q,di);var et=Ge.get(q);--et===0?(document.removeEventListener(q,di),Ge.delete(q)):Ge.set(q,et)}pr.delete(f),tt!==u&&tt.parentNode?.removeChild(tt)}});return an.set($,L),$}let an=new WeakMap;function na(r,s){const u=an.get(r);return u?(an.delete(r),u(s)):Promise.resolve()}function yr(r){te===null&&Fn(),Kn(()=>{const s=dr(r);if(typeof s=="function")return s})}function ra(r){te===null&&Fn(),yr(()=>()=>dr(r))}function sa(r,s){Is(()=>{var u=r.getRootNode(),y=u.host?u:u.head??u.ownerDocument.head;if(!y.querySelector("#"+s.hash)){const b=document.createElement("style");b.id=s.hash,b.textContent=s.code,y.appendChild(b)}})}function _r(r,s,u,y){var b=y,_=!0,k=()=>(_&&(_=!1,b=y),b),h;h=r[s],h===void 0&&y!==void 0&&(h=k());var f;f=()=>{var q=r[s];return q===void 0?k():(_=!0,q)};var $=!1,L=In(()=>($=!1,f())),tt=Tt;return(function(q,et){if(arguments.length>0){const W=et?Rt(L):q;return Ht(L,W),$=!0,b!==void 0&&(b=W),q}return Te&&$||(tt.f&je)!==0?L.v:Rt(L)})}function aa(r){return new oa(r)}class oa{#e;#t;constructor(s){var u=new Map,y=(_,k)=>{var h=As(k,!1,!1);return u.set(_,h),h};const b=new Proxy({...s.props||{},$$events:{}},{get(_,k){return Rt(u.get(k)??y(k,Reflect.get(_,k)))},has(_,k){return k===hs?!0:(Rt(u.get(k)??y(k,Reflect.get(_,k))),Reflect.has(_,k))},set(_,k,h){return Ht(u.get(k)??y(k,h),h),Reflect.set(_,k,h)}});this.#t=(s.hydrate?ia:vr)(s.component,{target:s.target,anchor:s.anchor,props:b,context:s.context,intro:s.intro??!1,recover:s.recover}),(!s?.props?.$$host||s.sync===!1)&&Ki(),this.#e=b.$$events;for(const _ of Object.keys(this.#t))_==="$set"||_==="$destroy"||_==="$on"||Ie(this,_,{get(){return this.#t[_]},set(k){this.#t[_]=k},enumerable:!0});this.#t.$set=_=>{Object.assign(b,_)},this.#t.$destroy=()=>{na(this.#t)}}$set(s){this.#t.$set(s)}$on(s,u){this.#e[s]=this.#e[s]||[];const y=(...b)=>u.call(this,...b);return this.#e[s].push(y),()=>{this.#e[s]=this.#e[s].filter(b=>b!==y)}}$destroy(){this.#t.$destroy()}}let br;typeof HTMLElement=="function"&&(br=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,s,u){super(),this.$$ctor=r,this.$$s=s,u&&this.attachShadow({mode:"open"})}addEventListener(r,s,u){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(s),this.$$c){const y=this.$$c.$on(r,s);this.$$l_u.set(s,y)}super.addEventListener(r,s,u)}removeEventListener(r,s,u){if(super.removeEventListener(r,s,u),this.$$c){const y=this.$$l_u.get(s);y&&(y(),this.$$l_u.delete(s))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(y){return b=>{const _=document.createElement("slot");y!=="default"&&(_.name=y),mr(b,_)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const s={},u=la(this);for(const y of this.$$s)y in u&&(y==="default"&&!this.$$d.children?(this.$$d.children=r(y),s.default=!0):s[y]=r(y));for(const y of this.attributes){const b=this.$$g_p(y.name);b in this.$$d||(this.$$d[b]=Li(b,y.value,this.$$p_d,"toProp"))}for(const y in this.$$p_d)!(y in this.$$d)&&this[y]!==void 0&&(this.$$d[y]=this[y],delete this[y]);this.$$c=aa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:s,$$host:this}}),this.$$me=Os(()=>{Vs(()=>{this.$$r=!0;for(const y of Ei(this.$$c)){if(!this.$$p_d[y]?.reflect)continue;this.$$d[y]=this.$$c[y];const b=Li(y,this.$$d[y],this.$$p_d,"toAttribute");b==null?this.removeAttribute(this.$$p_d[y].attribute||y):this.setAttribute(this.$$p_d[y].attribute||y,b)}this.$$r=!1})});for(const y in this.$$l)for(const b of this.$$l[y]){const _=this.$$c.$on(y,b);this.$$l_u.set(b,_)}this.$$l={}}}attributeChangedCallback(r,s,u){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Li(r,u,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return Ei(this.$$p_d).find(s=>this.$$p_d[s].attribute===r||!this.$$p_d[s].attribute&&s.toLowerCase()===r)||r}});function Li(r,s,u,y){const b=u[r]?.type;if(s=b==="Boolean"&&typeof s!="boolean"?s!=null:s,!y||!u[r])return s;if(y==="toAttribute")switch(b){case"Object":case"Array":return s==null?null:JSON.stringify(s);case"Boolean":return s?"":null;case"Number":return s??null;default:return s}else switch(b){case"Object":case"Array":return s&&JSON.parse(s);case"Boolean":return s;case"Number":return s!=null?+s:s;default:return s}}function la(r){const s={};return r.childNodes.forEach(u=>{s[u.slot||"default"]=!0}),s}function ua(r,s,u,y,b,_){let k=class extends br{constructor(){super(r,u,b),this.$$p_d=s}static get observedAttributes(){return Ei(s).map(h=>(s[h].attribute||h).toLowerCase())}};return Ei(s).forEach(h=>{Ie(k.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(f){f=Li(h,f,s),this.$$d[h]=f;var $=this.$$c;if($){var L=Ve($,h)?.get;L?$[h]=f:$.$set({[h]:f})}}})}),y.forEach(h=>{Ie(k.prototype,h,{get(){return this.$$c?.[h]}})}),r.element=k,k}function wr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ri={exports:{}},kr;function ha(){if(kr)return Ri.exports;kr=1;function r(s,u=100,y={}){if(typeof s!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof s}\`.`);if(u<0)throw new RangeError("`wait` must not be negative.");const{immediate:b}=typeof y=="boolean"?{immediate:y}:y;let _,k,h,f,$;function L(){const et=_,W=k;return _=void 0,k=void 0,$=s.apply(et,W),$}function tt(){const et=Date.now()-f;et<u&&et>=0?h=setTimeout(tt,u-et):(h=void 0,b||($=L()))}const q=function(...et){if(_&&this!==_&&Object.getPrototypeOf(this)===Object.getPrototypeOf(_))throw new Error("Debounced method called with different contexts of the same prototype.");_=this,k=et,f=Date.now();const W=b&&!h;return h||(h=setTimeout(tt,u)),W&&($=L()),$};return Object.defineProperty(q,"isPending",{get(){return h!==void 0}}),q.clear=()=>{h&&(clearTimeout(h),h=void 0)},q.flush=()=>{h&&q.trigger()},q.trigger=()=>{$=L(),q.clear()},q}return Ri.exports.debounce=r,Ri.exports=r,Ri.exports}var fa=ha();const ca=wr(fa);var on={exports:{}},Er;function da(){return Er||(Er=1,(function(r,s){(function(u,y){r.exports=y()})(window,function(){return(function(u){var y={};function b(_){if(y[_])return y[_].exports;var k=y[_]={i:_,l:!1,exports:{}};return u[_].call(k.exports,k,k.exports,b),k.l=!0,k.exports}return b.m=u,b.c=y,b.d=function(_,k,h){b.o(_,k)||Object.defineProperty(_,k,{enumerable:!0,get:h})},b.r=function(_){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})},b.t=function(_,k){if(1&k&&(_=b(_)),8&k||4&k&&typeof _=="object"&&_&&_.__esModule)return _;var h=Object.create(null);if(b.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:_}),2&k&&typeof _!="string")for(var f in _)b.d(h,f,(function($){return _[$]}).bind(null,f));return h},b.n=function(_){var k=_&&_.__esModule?function(){return _.default}:function(){return _};return b.d(k,"a",k),k},b.o=function(_,k){return Object.prototype.hasOwnProperty.call(_,k)},b.p="",b(b.s=1)})([function(u,y,b){var _,k;_=[b(2)],(k=(function(h){function f(t){if(f.is(t,"function"))return $?t():h.on("raphael.DOMload",t);if(f.is(t,xt))return f._engine.create[G](f,t.splice(0,3+f.is(t[0],ct))).add(t);var e=Array.prototype.slice.call(arguments,0);if(f.is(e[e.length-1],"function")){var i=e.pop();return $?i.call(f._engine.create[G](f,e)):h.on("raphael.DOMload",function(){i.call(f._engine.create[G](f,e))})}return f._engine.create[G](f,arguments)}f.version="2.3.0",f.eve=h;var $,L,tt=/[, ]+/,q={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},et=/\{(\d+)\}/g,W="hasOwnProperty",U={doc:document,win:window},_t={was:Object.prototype[W].call(U.win,"Raphael"),is:U.win.Raphael},Mt=function(){this.ca=this.customAttributes={}},G="apply",B="concat",K="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ft=" ",I=String,it="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[it](ft),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=I.prototype.toLowerCase,H=Math,Q=H.max,Z=H.min,ot=H.abs,yt=H.pow,$t=H.PI,ct="number",xt="array",Zt=Object.prototype.toString,p=(f._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),l={NaN:1,Infinity:1,"-Infinity":1},a=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=H.round,x=parseFloat,E=parseInt,C=I.prototype.toUpperCase,R=f._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:""},M=f._availableAnimAttrs={blur:ct,"clip-rect":"csv",cx:ct,cy:ct,fill:"colour","fill-opacity":ct,"font-size":ct,height:ct,opacity:ct,path:"path",r:ct,rx:ct,ry:ct,stroke:"colour","stroke-opacity":ct,"stroke-width":ct,transform:"transform",width:ct,x:ct,y:ct},N=/[\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={hs:1,rg:1},nt=/,?([achlmqrstvxz]),?/gi,pt=/([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,vt=/([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,dt=/(-?\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,kt=(f._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]*([^\)]+?)\))?/,{}),Ct=function(t,e){return x(t)-x(e)},bt=function(t){return t},at=f._rectPath=function(t,e,i,n,o){return o?[["M",t+o,e],["l",i-2*o,0],["a",o,o,0,0,1,o,o],["l",0,n-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-i,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-n],["a",o,o,0,0,1,o,-o],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},Ft=function(t,e,i,n){return n==null&&(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"]]},Lt=f._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)}},zt=f.mapPath=function(t,e){if(!e)return t;var i,n,o,d,m,g,v;for(o=0,m=(t=yi(t)).length;o<m;o++)for(d=1,g=(v=t[o]).length;d<g;d+=2)i=e.x(v[d],v[d+1]),n=e.y(v[d],v[d+1]),v[d]=i,v[d+1]=n;return t};if(f._g=U,f.type=U.win.SVGAngle||U.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",f.type=="VML"){var Nt,Qt=U.doc.createElement("div");if(Qt.innerHTML='<v:shape adj="1"/>',(Nt=Qt.firstChild).style.behavior="url(#default#VML)",!Nt||typeof Nt.adj!="object")return f.type=lt;Qt=null}function Dt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[W](i)&&(e[i]=Dt(t[i]));return e}f.svg=!(f.vml=f.type=="VML"),f._Paper=Mt,f.fn=L=Mt.prototype=f.prototype,f._id=0,f.is=function(t,e){return(e=st.call(e))=="finite"?!l[W](+t):e=="array"?t instanceof Array:e=="null"&&t===null||e==typeof t&&t!==null||e=="object"&&t===Object(t)||e=="array"&&Array.isArray&&Array.isArray(t)||Zt.call(t).slice(8,-1).toLowerCase()==e},f.angle=function(t,e,i,n,o,d){if(o==null){var m=t-i,g=e-n;return m||g?(180+180*H.atan2(-g,-m)/$t+360)%360:0}return f.angle(t,e,o,d)-f.angle(i,n,o,d)},f.rad=function(t){return t%360*$t/180},f.deg=function(t){return Math.round(180*t/$t%360*1e3)/1e3},f.snapTo=function(t,e,i){if(i=f.is(i,"finite")?i:10,f.is(t,xt)){for(var n=t.length;n--;)if(ot(t[n]-e)<=i)return t[n]}else{var o=e%(t=+t);if(o<i)return e-o;if(o>t-i)return e-o+t}return e};var _e,gi;f.createUUID=(_e=/[xy]/g,gi=function(t){var e=16*H.random()|0;return(t=="x"?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(_e,gi).toUpperCase()}),f.setWindow=function(t){h("raphael.setWindow",f,U.win,t),U.win=t,U.doc=U.win.document,f._engine.initWin&&f._engine.initWin(U.win)};var be=function(t){if(f.vml){var e,i=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write("<body>"),n.close(),e=n.body}catch{e=createPopup().document.body}var o=e.createTextRange();be=Bt(function(m){try{e.style.color=I(m).replace(i,lt);var g=o.queryCommandValue("ForeColor");return"#"+("000000"+(g=(255&g)<<16|65280&g|(16711680&g)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=U.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",U.doc.body.appendChild(d),be=Bt(function(m){return d.style.color=m,U.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return be(t)},Ue=function(){return"hsb("+[this.h,this.s,this.b]+")"},We=function(){return"hsl("+[this.h,this.s,this.l]+")"},mi=function(){return this.hex},Ze=function(t,e,i){if(e==null&&f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),e==null&&f.is(t,"string")){var n=f.getRGB(t);t=n.r,e=n.g,i=n.b}return(t>1||e>1||i>1)&&(t/=255,e/=255,i/=255),[t,e,i]},Bi=function(t,e,i,n){var o={r:t*=255,g:e*=255,b:i*=255,hex:f.rgb(t,e,i),toString:mi};return f.is(n,"finite")&&(o.opacity=n),o};function Bt(t,e,i){return function n(){var o=Array.prototype.slice.call(arguments,0),d=o.join("␀"),m=n.cache=n.cache||{},g=n.count=n.count||[];return m[W](d)?((function(v,w){for(var S=0,P=v.length;S<P;S++)if(v[S]===w)return v.push(v.splice(S,1)[0])})(g,d),i?i(m[d]):m[d]):(g.length>=1e3&&delete m[g.shift()],g.push(d),m[d]=t[G](e,o),i?i(m[d]):m[d])}}f.color=function(t){var e;return f.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=f.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):f.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=f.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(f.is(t,"string")&&(t=f.getRGB(t)),f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=f.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=f.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=mi,t},f.hsb2rgb=function(t,e,i,n){var o,d,m,g,v;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),g=(v=i*e)*(1-ot((t=(t*=360)%360/60)%2-1)),o=d=m=i-v,Bi(o+=[v,g,0,0,g,v][t=~~t],d+=[g,v,v,g,0,0][t],m+=[0,0,g,v,v,g][t],n)},f.hsl2rgb=function(t,e,i,n){var o,d,m,g,v;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),g=(v=2*e*(i<.5?i:1-i))*(1-ot((t=(t*=360)%360/60)%2-1)),o=d=m=i-v/2,Bi(o+=[v,g,0,0,g,v][t=~~t],d+=[g,v,v,g,0,0][t],m+=[0,0,g,v,v,g][t],n)},f.rgb2hsb=function(t,e,i){var n,o;return t=(i=Ze(t,e,i))[0],e=i[1],i=i[2],{h:(((o=(n=Q(t,e,i))-Z(t,e,i))==0?null:n==t?(e-i)/o:n==e?(i-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:o==0?0:o/n,b:n,toString:Ue}},f.rgb2hsl=function(t,e,i){var n,o,d,m;return t=(i=Ze(t,e,i))[0],e=i[1],i=i[2],n=((o=Q(t,e,i))+(d=Z(t,e,i)))/2,{h:(((m=o-d)==0?null:o==t?(e-i)/m:o==e?(i-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:n<.5?m/(2*n):m/(2-2*n),l:n,toString:We}},f._path2string=function(){return this.join(",").replace(nt,"$1")},f._preload=function(t,e){var i=U.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,U.doc.body.removeChild(this)},i.onerror=function(){U.doc.body.removeChild(this)},U.doc.body.appendChild(i),i.src=t};function we(){return this.hex}function Qe(t,e){for(var i=[],n=0,o=t.length;o-2*!e>n;n+=2){var d=[{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?o-4==n?d[3]={x:+t[0],y:+t[1]}:o-2==n&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[o-2],y:+t[o-1]}:o-4==n?d[3]=d[2]:n||(d[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-d[0].x+6*d[1].x+d[2].x)/6,(-d[0].y+6*d[1].y+d[2].y)/6,(d[1].x+6*d[2].x-d[3].x)/6,(d[1].y+6*d[2].y-d[3].y)/6,d[2].x,d[2].y])}return i}f.getRGB=Bt(function(t){if(!t||(t=I(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:we};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:we};!X[W](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=be(t));var e,i,n,o,d,m,g=t.match(p);return g?(g[2]&&(n=E(g[2].substring(5),16),i=E(g[2].substring(3,5),16),e=E(g[2].substring(1,3),16)),g[3]&&(n=E((d=g[3].charAt(3))+d,16),i=E((d=g[3].charAt(2))+d,16),e=E((d=g[3].charAt(1))+d,16)),g[4]&&(m=g[4][it](N),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),g[1].toLowerCase().slice(0,4)=="rgba"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100)),g[5]?(m=g[5][it](N),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),g[1].toLowerCase().slice(0,4)=="hsba"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100),f.hsb2rgb(e,i,n,o)):g[6]?(m=g[6][it](N),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),g[1].toLowerCase().slice(0,4)=="hsla"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100),f.hsl2rgb(e,i,n,o)):((g={r:e,g:i,b:n,toString:we}).hex="#"+(16777216|n|i<<8|e<<16).toString(16).slice(1),f.is(o,"finite")&&(g.opacity=o),g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:we}},f),f.hsb=Bt(function(t,e,i){return f.hsb2rgb(t,e,i).hex}),f.hsl=Bt(function(t,e,i){return f.hsl2rgb(t,e,i).hex}),f.rgb=Bt(function(t,e,i){function n(o){return o+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),f.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},f.getColor.reset=function(){delete this.start},f.parsePathString=function(t){if(!t)return null;var e=ie(t);if(e.arr)return jt(e.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return f.is(t,xt)&&f.is(t[0],xt)&&(n=jt(t)),n.length||I(t).replace(pt,function(o,d,m){var g=[],v=d.toLowerCase();if(m.replace(dt,function(w,S){S&&g.push(+S)}),v=="m"&&g.length>2&&(n.push([d][B](g.splice(0,2))),v="l",d=d=="m"?"l":"L"),v=="r")n.push([d][B](g));else for(;g.length>=i[v]&&(n.push([d][B](g.splice(0,i[v]))),i[v]););}),n.toString=f._path2string,e.arr=jt(n),n},f.parseTransformString=Bt(function(t){if(!t)return null;var e=[];return f.is(t,xt)&&f.is(t[0],xt)&&(e=jt(t)),e.length||I(t).replace(vt,function(i,n,o){var d=[];st.call(n),o.replace(dt,function(m,g){g&&d.push(+g)}),e.push([n][B](d))}),e.toString=f._path2string,e},this,function(t){if(!t)return t;for(var e=[],i=0;i<t.length;i++){for(var n=[],o=0;o<t[i].length;o++)n.push(t[i][o]);e.push(n)}return e});var ie=function(t){var e=ie.ps=ie.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[W](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};function Ke(t,e,i,n,o){return t*(t*(-3*e+9*i-9*n+3*o)+6*e-12*i+6*n)-3*e+3*i}function re(t,e,i,n,o,d,m,g,v){v==null&&(v=1);for(var w=(v=v>1?1:v<0?0:v)/2,S=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],P=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],T=0,F=0;F<12;F++){var z=w*S[F]+w,V=Ke(z,t,i,o,m),O=Ke(z,e,n,d,g),A=V*V+O*O;T+=P[F]*H.sqrt(A)}return w*T}function vi(t,e,i,n,o,d,m,g){if(!(Q(t,i)<Z(o,m)||Z(t,i)>Q(o,m)||Q(e,n)<Z(d,g)||Z(e,n)>Q(d,g))){var v=(t-i)*(d-g)-(e-n)*(o-m);if(v){var w=((t*n-e*i)*(o-m)-(t-i)*(o*g-d*m))/v,S=((t*n-e*i)*(d-g)-(e-n)*(o*g-d*m))/v,P=+w.toFixed(2),T=+S.toFixed(2);if(!(P<+Z(t,i).toFixed(2)||P>+Q(t,i).toFixed(2)||P<+Z(o,m).toFixed(2)||P>+Q(o,m).toFixed(2)||T<+Z(e,n).toFixed(2)||T>+Q(e,n).toFixed(2)||T<+Z(d,g).toFixed(2)||T>+Q(d,g).toFixed(2)))return{x:w,y:S}}}}function Je(t,e,i){var n=f.bezierBBox(t),o=f.bezierBBox(e);if(!f.isBBoxIntersect(n,o))return i?0:[];for(var d=re.apply(0,t),m=re.apply(0,e),g=Q(~~(d/5),1),v=Q(~~(m/5),1),w=[],S=[],P={},T=i?0:[],F=0;F<g+1;F++){var z=f.findDotsAtSegment.apply(f,t.concat(F/g));w.push({x:z.x,y:z.y,t:F/g})}for(F=0;F<v+1;F++)z=f.findDotsAtSegment.apply(f,e.concat(F/v)),S.push({x:z.x,y:z.y,t:F/v});for(F=0;F<g;F++)for(var V=0;V<v;V++){var O=w[F],A=w[F+1],J=S[V],D=S[V+1],Y=ot(A.x-O.x)<.001?"y":"x",j=ot(D.x-J.x)<.001?"y":"x",gt=vi(O.x,O.y,A.x,A.y,J.x,J.y,D.x,D.y);if(gt){if(P[gt.x.toFixed(4)]==gt.y.toFixed(4))continue;P[gt.x.toFixed(4)]=gt.y.toFixed(4);var ut=O.t+ot((gt[Y]-O[Y])/(A[Y]-O[Y]))*(A.t-O.t),mt=J.t+ot((gt[j]-J[j])/(D[j]-J[j]))*(D.t-J.t);ut>=0&&ut<=1.001&&mt>=0&&mt<=1.001&&(i?T++:T.push({x:gt.x,y:gt.y,t1:Z(ut,1),t2:Z(mt,1)}))}}return T}function xi(t,e,i){t=f._path2curve(t),e=f._path2curve(e);for(var n,o,d,m,g,v,w,S,P,T,F=i?0:[],z=0,V=t.length;z<V;z++){var O=t[z];if(O[0]=="M")n=g=O[1],o=v=O[2];else{O[0]=="C"?(P=[n,o].concat(O.slice(1)),n=P[6],o=P[7]):(P=[n,o,n,o,g,v,g,v],n=g,o=v);for(var A=0,J=e.length;A<J;A++){var D=e[A];if(D[0]=="M")d=w=D[1],m=S=D[2];else{D[0]=="C"?(T=[d,m].concat(D.slice(1)),d=T[6],m=T[7]):(T=[d,m,d,m,w,S,w,S],d=w,m=S);var Y=Je(P,T,i);if(i)F+=Y;else{for(var j=0,gt=Y.length;j<gt;j++)Y[j].segment1=z,Y[j].segment2=A,Y[j].bez1=P,Y[j].bez2=T;F=F.concat(Y)}}}}}return F}f.findDotsAtSegment=function(t,e,i,n,o,d,m,g,v){var w=1-v,S=yt(w,3),P=yt(w,2),T=v*v,F=T*v,z=S*t+3*P*v*i+3*w*v*v*o+F*m,V=S*e+3*P*v*n+3*w*v*v*d+F*g,O=t+2*v*(i-t)+T*(o-2*i+t),A=e+2*v*(n-e)+T*(d-2*n+e),J=i+2*v*(o-i)+T*(m-2*o+i),D=n+2*v*(d-n)+T*(g-2*d+n),Y=w*t+v*i,j=w*e+v*n,gt=w*o+v*m,ut=w*d+v*g,mt=90-180*H.atan2(O-J,A-D)/$t;return(O>J||A<D)&&(mt+=180),{x:z,y:V,m:{x:O,y:A},n:{x:J,y:D},start:{x:Y,y:j},end:{x:gt,y:ut},alpha:mt}},f.bezierBBox=function(t,e,i,n,o,d,m,g){f.is(t,"array")||(t=[t,e,i,n,o,d,m,g]);var v=Pi.apply(null,t);return{x:v.min.x,y:v.min.y,x2:v.max.x,y2:v.max.y,width:v.max.x-v.min.x,height:v.max.y-v.min.y}},f.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},f.isBBoxIntersect=function(t,e){var i=f.isPointInsideBBox;return i(e,t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},f.pathIntersection=function(t,e){return xi(t,e)},f.pathIntersectionNumber=function(t,e){return xi(t,e,1)},f.isPointInsidePath=function(t,e,i){var n=f.pathBBox(t);return f.isPointInsideBBox(n,e,i)&&xi(t,[["M",e,i],["H",n.x2+10]],1)%2==1},f._removedFactory=function(t){return function(){h("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var ke=f.pathBBox=function(t){var e=ie(t);if(e.bbox)return Dt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,o=0,d=[],m=[],g=0,v=(t=yi(t)).length;g<v;g++)if((i=t[g])[0]=="M")n=i[1],o=i[2],d.push(n),m.push(o);else{var w=Pi(n,o,i[1],i[2],i[3],i[4],i[5],i[6]);d=d[B](w.min.x,w.max.x),m=m[B](w.min.y,w.max.y),n=i[5],o=i[6]}var S=Z[G](0,d),P=Z[G](0,m),T=Q[G](0,d),F=Q[G](0,m),z=T-S,V=F-P,O={x:S,y:P,x2:T,y2:F,width:z,height:V,cx:S+z/2,cy:P+V/2};return e.bbox=Dt(O),O},jt=function(t){var e=Dt(t);return e.toString=f._path2string,e},Nr=f._pathToRelative=function(t){var e=ie(t);if(e.rel)return jt(e.rel);f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t));var i=[],n=0,o=0,d=0,m=0,g=0;t[0][0]=="M"&&(d=n=t[0][1],m=o=t[0][2],g++,i.push(["M",n,o]));for(var v=g,w=t.length;v<w;v++){var S=i[v]=[],P=t[v];if(P[0]!=st.call(P[0]))switch(S[0]=st.call(P[0]),S[0]){case"a":S[1]=P[1],S[2]=P[2],S[3]=P[3],S[4]=P[4],S[5]=P[5],S[6]=+(P[6]-n).toFixed(3),S[7]=+(P[7]-o).toFixed(3);break;case"v":S[1]=+(P[1]-o).toFixed(3);break;case"m":d=P[1],m=P[2];default:for(var T=1,F=P.length;T<F;T++)S[T]=+(P[T]-(T%2?n:o)).toFixed(3)}else{S=i[v]=[],P[0]=="m"&&(d=P[1]+n,m=P[2]+o);for(var z=0,V=P.length;z<V;z++)i[v][z]=P[z]}var O=i[v].length;switch(i[v][0]){case"z":n=d,o=m;break;case"h":n+=+i[v][O-1];break;case"v":o+=+i[v][O-1];break;default:n+=+i[v][O-2],o+=+i[v][O-1]}}return i.toString=f._path2string,e.rel=jt(i),i},ti=f._pathToAbsolute=function(t){var e=ie(t);if(e.abs)return jt(e.abs);if(f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t)),!t||!t.length)return[["M",0,0]];var i=[],n=0,o=0,d=0,m=0,g=0;t[0][0]=="M"&&(d=n=+t[0][1],m=o=+t[0][2],g++,i[0]=["M",n,o]);for(var v,w,S=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=g,T=t.length;P<T;P++){if(i.push(v=[]),(w=t[P])[0]!=C.call(w[0]))switch(v[0]=C.call(w[0]),v[0]){case"A":v[1]=w[1],v[2]=w[2],v[3]=w[3],v[4]=w[4],v[5]=w[5],v[6]=+(w[6]+n),v[7]=+(w[7]+o);break;case"V":v[1]=+w[1]+o;break;case"H":v[1]=+w[1]+n;break;case"R":for(var F=[n,o][B](w.slice(1)),z=2,V=F.length;z<V;z++)F[z]=+F[z]+n,F[++z]=+F[z]+o;i.pop(),i=i[B](Qe(F,S));break;case"M":d=+w[1]+n,m=+w[2]+o;default:for(z=1,V=w.length;z<V;z++)v[z]=+w[z]+(z%2?n:o)}else if(w[0]=="R")F=[n,o][B](w.slice(1)),i.pop(),i=i[B](Qe(F,S)),v=["R"][B](w.slice(-2));else for(var O=0,A=w.length;O<A;O++)v[O]=w[O];switch(v[0]){case"Z":n=d,o=m;break;case"H":n=v[1];break;case"V":o=v[1];break;case"M":d=v[v.length-2],m=v[v.length-1];default:n=v[v.length-2],o=v[v.length-1]}}return i.toString=f._path2string,e.abs=jt(i),i},ei=function(t,e,i,n){return[t,e,i,n,i,n]},Ee=function(t,e,i,n,o,d){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*o+2/3*i,1/3*d+2/3*n,o,d]},Oi=function(t,e,i,n,o,d,m,g,v,w){var S,P=120*$t/180,T=$t/180*(+o||0),F=[],z=Bt(function(Zr,Qr,ji){return{x:Zr*H.cos(ji)-Qr*H.sin(ji),y:Zr*H.sin(ji)+Qr*H.cos(ji)}});if(w)ut=w[0],mt=w[1],j=w[2],gt=w[3];else{t=(S=z(t,e,-T)).x,e=S.y,g=(S=z(g,v,-T)).x,v=S.y;var V=(t-g)/2,O=(e-v)/2,A=V*V/(i*i)+O*O/(n*n);A>1&&(i*=A=H.sqrt(A),n*=A);var J=i*i,D=n*n,Y=(d==m?-1:1)*H.sqrt(ot((J*D-J*O*O-D*V*V)/(J*O*O+D*V*V))),j=Y*i*O/n+(t+g)/2,gt=Y*-n*V/i+(e+v)/2,ut=H.asin(((e-gt)/n).toFixed(9)),mt=H.asin(((v-gt)/n).toFixed(9));(ut=t<j?$t-ut:ut)<0&&(ut=2*$t+ut),(mt=g<j?$t-mt:mt)<0&&(mt=2*$t+mt),m&&ut>mt&&(ut-=2*$t),!m&&mt>ut&&(mt-=2*$t)}var ni=mt-ut;if(ot(ni)>P){var wi=mt,Yt=g,ue=v;mt=ut+P*(m&&mt>ut?1:-1),g=j+i*H.cos(mt),v=gt+n*H.sin(mt),F=Oi(g,v,i,n,o,0,m,Yt,ue,[mt,wi,j,gt])}ni=mt-ut;var ri=H.cos(ut),si=H.sin(ut),Vi=H.cos(mt),ce=H.sin(mt),Pe=H.tan(ni/4),Di=4/3*i*Pe,Xr=4/3*n*Pe,Hr=[t,e],ai=[t+Di*si,e-Xr*ri],Gr=[g+Di*ce,v-Xr*Vi],Ur=[g,v];if(ai[0]=2*Hr[0]-ai[0],ai[1]=2*Hr[1]-ai[1],w)return[ai,Gr,Ur][B](F);for(var Wr=[],Me=0,Fa=(F=[ai,Gr,Ur][B](F).join()[it](",")).length;Me<Fa;Me++)Wr[Me]=Me%2?z(F[Me-1],F[Me],T).y:z(F[Me],F[Me+1],T).x;return Wr},ze=function(t,e,i,n,o,d,m,g,v){var w=1-v;return{x:yt(w,3)*t+3*yt(w,2)*v*i+3*w*v*v*o+yt(v,3)*m,y:yt(w,3)*e+3*yt(w,2)*v*n+3*w*v*v*d+yt(v,3)*g}},Pi=Bt(function(t,e,i,n,o,d,m,g){var v,w=o-2*i+t-(m-2*o+i),S=2*(i-t)-2*(o-i),P=t-i,T=(-S+H.sqrt(S*S-4*w*P))/2/w,F=(-S-H.sqrt(S*S-4*w*P))/2/w,z=[e,g],V=[t,m];return ot(T)>"1e12"&&(T=.5),ot(F)>"1e12"&&(F=.5),T>0&&T<1&&(v=ze(t,e,i,n,o,d,m,g,T),V.push(v.x),z.push(v.y)),F>0&&F<1&&(v=ze(t,e,i,n,o,d,m,g,F),V.push(v.x),z.push(v.y)),w=d-2*n+e-(g-2*d+n),P=e-n,T=(-(S=2*(n-e)-2*(d-n))+H.sqrt(S*S-4*w*P))/2/w,F=(-S-H.sqrt(S*S-4*w*P))/2/w,ot(T)>"1e12"&&(T=.5),ot(F)>"1e12"&&(F=.5),T>0&&T<1&&(v=ze(t,e,i,n,o,d,m,g,T),V.push(v.x),z.push(v.y)),F>0&&F<1&&(v=ze(t,e,i,n,o,d,m,g,F),V.push(v.x),z.push(v.y)),{min:{x:Z[G](0,V),y:Z[G](0,z)},max:{x:Q[G](0,V),y:Q[G](0,z)}}}),yi=f._path2curve=Bt(function(t,e){var i=!e&&ie(t);if(!e&&i.curve)return jt(i.curve);for(var n=ti(t),o=e&&ti(e),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},g=function(Y,j,gt){var ut,mt;if(!Y)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(Y[0]in{T:1,Q:1})&&(j.qx=j.qy=null),Y[0]){case"M":j.X=Y[1],j.Y=Y[2];break;case"A":Y=["C"][B](Oi[G](0,[j.x,j.y][B](Y.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*j.x-j.bx,mt=2*j.y-j.by):(ut=j.x,mt=j.y),Y=["C",ut,mt][B](Y.slice(1));break;case"T":gt=="Q"||gt=="T"?(j.qx=2*j.x-j.qx,j.qy=2*j.y-j.qy):(j.qx=j.x,j.qy=j.y),Y=["C"][B](Ee(j.x,j.y,j.qx,j.qy,Y[1],Y[2]));break;case"Q":j.qx=Y[1],j.qy=Y[2],Y=["C"][B](Ee(j.x,j.y,Y[1],Y[2],Y[3],Y[4]));break;case"L":Y=["C"][B](ei(j.x,j.y,Y[1],Y[2]));break;case"H":Y=["C"][B](ei(j.x,j.y,Y[1],j.y));break;case"V":Y=["C"][B](ei(j.x,j.y,j.x,Y[1]));break;case"Z":Y=["C"][B](ei(j.x,j.y,j.X,j.Y))}return Y},v=function(Y,j){if(Y[j].length>7){Y[j].shift();for(var gt=Y[j];gt.length;)S[j]="A",o&&(P[j]="A"),Y.splice(j++,0,["C"][B](gt.splice(0,6)));Y.splice(j,1),V=Q(n.length,o&&o.length||0)}},w=function(Y,j,gt,ut,mt){Y&&j&&Y[mt][0]=="M"&&j[mt][0]!="M"&&(j.splice(mt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=Y[mt][1],gt.y=Y[mt][2],V=Q(n.length,o&&o.length||0))},S=[],P=[],T="",F="",z=0,V=Q(n.length,o&&o.length||0);z<V;z++){n[z]&&(T=n[z][0]),T!="C"&&(S[z]=T,z&&(F=S[z-1])),n[z]=g(n[z],d,F),S[z]!="A"&&T=="C"&&(S[z]="C"),v(n,z),o&&(o[z]&&(T=o[z][0]),T!="C"&&(P[z]=T,z&&(F=P[z-1])),o[z]=g(o[z],m,F),P[z]!="A"&&T=="C"&&(P[z]="C"),v(o,z)),w(n,o,d,m,z),w(o,n,m,d,z);var O=n[z],A=o&&o[z],J=O.length,D=o&&A.length;d.x=O[J-2],d.y=O[J-1],d.bx=x(O[J-4])||d.x,d.by=x(O[J-3])||d.y,m.bx=o&&(x(A[D-4])||m.x),m.by=o&&(x(A[D-3])||m.y),m.x=o&&A[D-2],m.y=o&&A[D-1]}return o||(i.curve=jt(n)),o?[n,o]:n},null,jt),Ii=(f._parseDots=Bt(function(t){for(var e=[],i=0,n=t.length;i<n;i++){var o={},d=t[i].match(/^([^:]*):?([\d\.]*)/);if(o.color=f.getRGB(d[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,d[2]&&(o.offset=d[2]+"%"),e.push(o)}for(i=1,n=e.length-1;i<n;i++)if(!e[i].offset){for(var m=x(e[i-1].offset||0),g=0,v=i+1;v<n;v++)if(e[v].offset){g=e[v].offset;break}g||(g=100,v=n);for(var w=((g=x(g))-m)/(v-i+1);i<v;i++)m+=w,e[i].offset=m+"%"}return e}),f._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)}),_a=(f._tofront=function(t,e){e.top!==t&&(Ii(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},f._toback=function(t,e){e.bottom!==t&&(Ii(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},f._insertafter=function(t,e,i){Ii(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},f._insertbefore=function(t,e,i){Ii(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},f.toMatrix=function(t,e){var i=ke(t),n={_:{transform:lt},getBBox:function(){return i}};return Lr(n,e),n.matrix}),Lr=(f.transformPath=function(t,e){return zt(t,_a(t,e))},f._extractTransform=function(t,e){if(e==null)return t._.transform;e=I(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var i,n,o=f.parseTransformString(e),d=0,m=1,g=1,v=t._,w=new Be;if(v.transform=o||[],o)for(var S=0,P=o.length;S<P;S++){var T,F,z,V,O,A=o[S],J=A.length,D=I(A[0]).toLowerCase(),Y=A[0]!=D,j=Y?w.invert():0;D=="t"&&J==3?Y?(T=j.x(0,0),F=j.y(0,0),z=j.x(A[1],A[2]),V=j.y(A[1],A[2]),w.translate(z-T,V-F)):w.translate(A[1],A[2]):D=="r"?J==2?(O=O||t.getBBox(1),w.rotate(A[1],O.x+O.width/2,O.y+O.height/2),d+=A[1]):J==4&&(Y?(z=j.x(A[2],A[3]),V=j.y(A[2],A[3]),w.rotate(A[1],z,V)):w.rotate(A[1],A[2],A[3]),d+=A[1]):D=="s"?J==2||J==3?(O=O||t.getBBox(1),w.scale(A[1],A[J-1],O.x+O.width/2,O.y+O.height/2),m*=A[1],g*=A[J-1]):J==5&&(Y?(z=j.x(A[3],A[4]),V=j.y(A[3],A[4]),w.scale(A[1],A[2],z,V)):w.scale(A[1],A[2],A[3],A[4]),m*=A[1],g*=A[2]):D=="m"&&J==7&&w.add(A[1],A[2],A[3],A[4],A[5],A[6]),v.dirtyT=1,t.matrix=w}t.matrix=w,v.sx=m,v.sy=g,v.deg=d,v.dx=i=w.e,v.dy=n=w.f,m==1&&g==1&&!d&&v.bbox?(v.bbox.x+=+i,v.bbox.y+=+n):v.dirtyT=1}),Rr=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 t.length==4?[e,0,t[2],t[3]]:[e,0];case"s":return t.length==5?[e,1,1,t[3],t[4]]:t.length==3?[e,1,1]:[e,1]}},ba=f._equaliseTransform=function(t,e){e=I(e).replace(/\.{3}|\u2026/g,t),t=f.parseTransformString(t)||[],e=f.parseTransformString(e)||[];for(var i,n,o,d,m=Q(t.length,e.length),g=[],v=[],w=0;w<m;w++){if(o=t[w]||Rr(e[w]),d=e[w]||Rr(o),o[0]!=d[0]||o[0].toLowerCase()=="r"&&(o[2]!=d[2]||o[3]!=d[3])||o[0].toLowerCase()=="s"&&(o[3]!=d[3]||o[4]!=d[4]))return;for(g[w]=[],v[w]=[],i=0,n=Q(o.length,d.length);i<n;i++)i in o&&(g[w][i]=o[i]),i in d&&(v[w][i]=d[i])}return{from:g,to:v}};function Be(t,e,i,n,o,d){t!=null?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+o,this.f=+d):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}f._getContainer=function(t,e,i,n){var o;if((o=n!=null||f.is(t,"object")?t:U.doc.getElementById(t))!=null)return o.tagName?e==null?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:e,height:i}:{container:1,x:t,y:e,width:i,height:n}},f.pathToRelative=Nr,f._engine={},f.path2curve=yi,f.matrix=function(t,e,i,n,o,d){return new Be(t,e,i,n,o,d)},(function(t){function e(n){return n[0]*n[0]+n[1]*n[1]}function i(n){var o=H.sqrt(e(n));n[0]&&(n[0]/=o),n[1]&&(n[1]/=o)}t.add=function(n,o,d,m,g,v){var w,S,P,T,F=[[],[],[]],z=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],V=[[n,d,g],[o,m,v],[0,0,1]];for(n&&n instanceof Be&&(V=[[n.a,n.c,n.e],[n.b,n.d,n.f],[0,0,1]]),w=0;w<3;w++)for(S=0;S<3;S++){for(T=0,P=0;P<3;P++)T+=z[w][P]*V[P][S];F[w][S]=T}this.a=F[0][0],this.b=F[1][0],this.c=F[0][1],this.d=F[1][1],this.e=F[0][2],this.f=F[1][2]},t.invert=function(){var n=this,o=n.a*n.d-n.b*n.c;return new Be(n.d/o,-n.b/o,-n.c/o,n.a/o,(n.c*n.f-n.d*n.e)/o,(n.b*n.e-n.a*n.f)/o)},t.clone=function(){return new Be(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(n,o){this.add(1,0,0,1,n,o)},t.scale=function(n,o,d,m){o==null&&(o=n),(d||m)&&this.add(1,0,0,1,d,m),this.add(n,0,0,o,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(n,o,d){n=f.rad(n),o=o||0,d=d||0;var m=+H.cos(n).toFixed(9),g=+H.sin(n).toFixed(9);this.add(m,g,-g,m,o,d),this.add(1,0,0,1,-o,-d)},t.x=function(n,o){return n*this.a+o*this.c+this.e},t.y=function(n,o){return n*this.b+o*this.d+this.f},t.get=function(n){return+this[I.fromCharCode(97+n)].toFixed(4)},t.toString=function(){return f.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 n={};n.dx=this.e,n.dy=this.f;var o=[[this.a,this.c],[this.b,this.d]];n.scalex=H.sqrt(e(o[0])),i(o[0]),n.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*n.shear,o[1][1]-o[0][1]*n.shear],n.scaley=H.sqrt(e(o[1])),i(o[1]),n.shear/=n.scaley;var d=-o[0][1],m=o[1][1];return m<0?(n.rotate=f.deg(H.acos(m)),d<0&&(n.rotate=360-n.rotate)):n.rotate=f.deg(H.asin(d)),n.isSimple=!(+n.shear.toFixed(9)||n.scalex.toFixed(9)!=n.scaley.toFixed(9)&&n.rotate),n.isSuperSimple=!+n.shear.toFixed(9)&&n.scalex.toFixed(9)==n.scaley.toFixed(9)&&!n.rotate,n.noRotation=!+n.shear.toFixed(9)&&!n.rotate,n},t.toTransformString=function(n){var o=n||this[it]();return o.isSimple?(o.scalex=+o.scalex.toFixed(4),o.scaley=+o.scaley.toFixed(4),o.rotate=+o.rotate.toFixed(4),(o.dx||o.dy?"t"+[o.dx,o.dy]:lt)+(o.scalex!=1||o.scaley!=1?"s"+[o.scalex,o.scaley,0,0]:lt)+(o.rotate?"r"+[o.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(Be.prototype);for(var wa=function(){this.returnValue=!1},ka=function(){return this.originalEvent.preventDefault()},Ea=function(){this.cancelBubble=!0},Ca=function(){return this.originalEvent.stopPropagation()},zr=function(t){var e=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,i=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Ma=U.doc.addEventListener?function(t,e,i,n){var o=function(m){var g=zr(m);return i.call(n,m,g.x,g.y)};if(t.addEventListener(e,o,!1),K&&wt[e]){var d=function(m){for(var g=zr(m),v=m,w=0,S=m.targetTouches&&m.targetTouches.length;w<S;w++)if(m.targetTouches[w].target==t){(m=m.targetTouches[w]).originalEvent=v,m.preventDefault=ka,m.stopPropagation=Ca;break}return i.call(n,m,g.x,g.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,o,!1),K&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:U.doc.attachEvent?function(t,e,i,n){var o=function(d){d=d||U.win.event;var m=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,g=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft,v=d.clientX+g,w=d.clientY+m;return d.preventDefault=d.preventDefault||wa,d.stopPropagation=d.stopPropagation||Ea,i.call(n,d,v,w)};return t.attachEvent("on"+e,o),function(){return t.detachEvent("on"+e,o),!0}}:void 0,Ce=[],un=function(t){for(var e,i=t.clientX,n=t.clientY,o=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,d=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft,m=Ce.length;m--;){if(e=Ce[m],K&&t.touches){for(var g,v=t.touches.length;v--;)if((g=t.touches[v]).identifier==e.el._drag.id){i=g.clientX,n=g.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var w,S=e.el.node,P=S.nextSibling,T=S.parentNode,F=S.style.display;U.win.opera&&T.removeChild(S),S.style.display="none",w=e.el.paper.getElementByPoint(i,n),S.style.display=F,U.win.opera&&(P?T.insertBefore(S,P):T.appendChild(S)),w&&h("raphael.drag.over."+e.el.id,e.el,w),i+=d,n+=o,h("raphael.drag.move."+e.el.id,e.move_scope||e.el,i-e.el._drag.x,n-e.el._drag.y,i,n,t)}},hn=function(t){f.unmousemove(un).unmouseup(hn);for(var e,i=Ce.length;i--;)(e=Ce[i]).el._drag={},h("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);Ce=[]},At=f.el={},Br=rt.length;Br--;)(function(t){f[t]=At[t]=function(e,i){return f.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Ma(this.shape||this.node||U.doc,t,e,i||this)})),this},f["un"+t]=At["un"+t]=function(e){for(var i=this.events||[],n=i.length;n--;)i[n].name!=t||!f.is(e,"undefined")&&i[n].f!=e||(i[n].unbind(),i.splice(n,1),!i.length&&delete this.events);return this}})(rt[Br]);At.data=function(t,e){var i=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return i;if(arguments.length==1){if(f.is(t,"object")){for(var n in t)t[W](n)&&this.data(n,t[n]);return this}return h("raphael.data.get."+this.id,this,i[t],t),i[t]}return i[t]=e,h("raphael.data.set."+this.id,this,e,t),this},At.removeData=function(t){return t==null?delete kt[this.id]:kt[this.id]&&delete kt[this.id][t],this},At.getData=function(){return Dt(kt[this.id]||{})},At.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},At.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var ii=[];At.drag=function(t,e,i,n,o,d){function m(g){(g.originalEvent||g).preventDefault();var v=g.clientX,w=g.clientY,S=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,P=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft;if(this._drag.id=g.identifier,K&&g.touches){for(var T,F=g.touches.length;F--;)if(T=g.touches[F],this._drag.id=T.identifier,T.identifier==this._drag.id){v=T.clientX,w=T.clientY;break}}this._drag.x=v+P,this._drag.y=w+S,!Ce.length&&f.mousemove(un).mouseup(hn),Ce.push({el:this,move_scope:n,start_scope:o,end_scope:d}),e&&h.on("raphael.drag.start."+this.id,e),t&&h.on("raphael.drag.move."+this.id,t),i&&h.on("raphael.drag.end."+this.id,i),h("raphael.drag.start."+this.id,o||n||this,this._drag.x,this._drag.y,g)}return this._drag={},ii.push({el:this,start:m}),this.mousedown(m),this},At.onDragOver=function(t){t?h.on("raphael.drag.over."+this.id,t):h.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var t=ii.length;t--;)ii[t].el==this&&(this.unmousedown(ii[t].start),ii.splice(t,1),h.unbind("raphael.drag.*."+this.id));!ii.length&&f.unmousemove(un).unmouseup(hn),Ce=[]},L.circle=function(t,e,i){var n=f._engine.circle(this,t||0,e||0,i||0);return this.__set__&&this.__set__.push(n),n},L.rect=function(t,e,i,n,o){var d=f._engine.rect(this,t||0,e||0,i||0,n||0,o||0);return this.__set__&&this.__set__.push(d),d},L.ellipse=function(t,e,i,n){var o=f._engine.ellipse(this,t||0,e||0,i||0,n||0);return this.__set__&&this.__set__.push(o),o},L.path=function(t){t&&!f.is(t,"string")&&!f.is(t[0],xt)&&(t+=lt);var e=f._engine.path(f.format[G](f,arguments),this);return this.__set__&&this.__set__.push(e),e},L.image=function(t,e,i,n,o){var d=f._engine.image(this,t||"about:blank",e||0,i||0,n||0,o||0);return this.__set__&&this.__set__.push(d),d},L.text=function(t,e,i){var n=f._engine.text(this,t||0,e||0,I(i));return this.__set__&&this.__set__.push(n),n},L.set=function(t){!f.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new bi(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},L.setStart=function(t){this.__set__=t||this.set()},L.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},L.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},L.setSize=function(t,e){return f._engine.setSize.call(this,t,e)},L.setViewBox=function(t,e,i,n,o){return f._engine.setViewBox.call(this,t,e,i,n,o)},L.top=L.bottom=null,L.raphael=f;function Or(){return this.x+ft+this.y+ft+this.width+" × "+this.height}L.getElementByPoint=function(t,e){var i,n,o,d,m,g,v,w=this.canvas,S=U.doc.elementFromPoint(t,e);if(U.win.opera&&S.tagName=="svg"){var P=(n=(i=w).getBoundingClientRect(),o=i.ownerDocument,d=o.body,m=o.documentElement,g=m.clientTop||d.clientTop||0,v=m.clientLeft||d.clientLeft||0,{y:n.top+(U.win.pageYOffset||m.scrollTop||d.scrollTop)-g,x:n.left+(U.win.pageXOffset||m.scrollLeft||d.scrollLeft)-v}),T=w.createSVGRect();T.x=t-P.x,T.y=e-P.y,T.width=T.height=1;var F=w.getIntersectionList(T,null);F.length&&(S=F[F.length-1])}if(!S)return null;for(;S.parentNode&&S!=w.parentNode&&!S.raphael;)S=S.parentNode;return S==this.canvas.parentNode&&(S=w),S=S&&S.raphael?this.getById(S.raphaelid):null},L.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(i){f.isBBoxIntersect(i.getBBox(),t)&&e.push(i)}),e},L.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},L.forEach=function(t,e){for(var i=this.bottom;i;){if(t.call(e,i)===!1)return this;i=i.next}return this},L.getElementsByPoint=function(t,e){var i=this.set();return this.forEach(function(n){n.isPointInside(t,e)&&i.push(n)}),i},At.isPointInside=function(t,e){var i=this.realPath=Lt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(i=f.transformPath(i,this.attr("transform"))),f.isPointInsidePath(i,t,e)},At.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Lt[this.type](this),e.bboxwt=ke(this.realPath),e.bboxwt.toString=Or,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Lt[this.type](this)),e.bbox=ke(zt(this.realPath,this.matrix)),e.bbox.toString=Or,e.dirty=e.dirtyT=0),e.bbox)},At.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},At.glow=function(t){if(this.type=="text")return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity==null?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,o=n.set(),d=this.realPath||Lt[this.type](this);d=this.matrix?zt(d,this.matrix):d;for(var m=1;m<i+1;m++)o.push(n.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*m).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return o.insertBefore(this).translate(e.offsetx,e.offsety)};var fn=function(t,e,i,n,o,d,m,g,v){return v==null?re(t,e,i,n,o,d,m,g):f.findDotsAtSegment(t,e,i,n,o,d,m,g,(function(w,S,P,T,F,z,V,O,A){if(!(A<0||re(w,S,P,T,F,z,V,O)<A)){var J,D=.5,Y=1-D;for(J=re(w,S,P,T,F,z,V,O,Y);ot(J-A)>.01;)J=re(w,S,P,T,F,z,V,O,Y+=(J<A?1:-1)*(D/=2));return Y}})(t,e,i,n,o,d,m,g,v))},cn=function(t,e){return function(i,n,o){for(var d,m,g,v,w,S="",P={},T=0,F=0,z=(i=yi(i)).length;F<z;F++){if((g=i[F])[0]=="M")d=+g[1],m=+g[2];else{if(T+(v=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6]))>n){if(e&&!P.start){if(S+=["C"+(w=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6],n-T)).start.x,w.start.y,w.m.x,w.m.y,w.x,w.y],o)return S;P.start=S,S=["M"+w.x,w.y+"C"+w.n.x,w.n.y,w.end.x,w.end.y,g[5],g[6]].join(),T+=v,d=+g[5],m=+g[6];continue}if(!t&&!e)return{x:(w=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6],n-T)).x,y:w.y,alpha:w.alpha}}T+=v,d=+g[5],m=+g[6]}S+=g.shift()+g}return P.end=S,(w=t?T:e?P:f.findDotsAtSegment(d,m,g[0],g[1],g[2],g[3],g[4],g[5],1)).alpha&&(w={x:w.x,y:w.y,alpha:w.alpha}),w}},Pr=cn(1),Ir=cn(),dn=cn(0,1);f.getTotalLength=Pr,f.getPointAtLength=Ir,f.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return dn(t,e).end;var n=dn(t,i,1);return e?dn(n,e).end:n},At.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Pr(t)},At.getPointAtLength=function(t){var e=this.getPath();if(e)return Ir(e,t)},At.getPath=function(){var t,e=f._getPath[this.type];if(this.type!="text"&&this.type!="set")return e&&(t=e(this)),t},At.getSubpath=function(t,e){var i=this.getPath();if(i)return f.getSubpath(i,t,e)};var Kt=f.easing_formulas={linear:function(t){return t},"<":function(t){return yt(t,1.7)},">":function(t){return yt(t,.48)},"<>":function(t){var e=.48-t/1.04,i=H.sqrt(.1734+e*e),n=i-e,o=-i-e,d=yt(ot(n),1/3)*(n<0?-1:1)+yt(ot(o),1/3)*(o<0?-1:1)+.5;return 3*(1-d)*d*d+d*d*d},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:yt(2,-10*t)*H.sin(2*$t*(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}};Kt.easeIn=Kt["ease-in"]=Kt["<"],Kt.easeOut=Kt["ease-out"]=Kt[">"],Kt.easeInOut=Kt["ease-in-out"]=Kt["<>"],Kt["back-in"]=Kt.backIn,Kt["back-out"]=Kt.backOut;var Et=[],Vr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},pn=function(){for(var t=+new Date,e=0;e<Et.length;e++){var i=Et[e];if(!i.el.removed&&!i.paused){var n,o,d=t-i.start,m=i.ms,g=i.easing,v=i.from,w=i.diff,S=i.to,P=(i.t,i.el),T={},F={};if(i.initstatus?(d=(i.initstatus*i.anim.top-i.prev)/(i.percent-i.prev)*m,i.status=i.initstatus,delete i.initstatus,i.stop&&Et.splice(e--,1)):i.status=(i.prev+(i.percent-i.prev)*(d/m))/i.anim.top,!(d<0))if(d<m){var z=g(d/m);for(var V in v)if(v[W](V)){switch(M[V]){case ct:n=+v[V]+z*m*w[V];break;case"colour":n="rgb("+[gn(c(v[V].r+z*m*w[V].r)),gn(c(v[V].g+z*m*w[V].g)),gn(c(v[V].b+z*m*w[V].b))].join(",")+")";break;case"path":n=[];for(var O=0,A=v[V].length;O<A;O++){n[O]=[v[V][O][0]];for(var J=1,D=v[V][O].length;J<D;J++)n[O][J]=+v[V][O][J]+z*m*w[V][O][J];n[O]=n[O].join(ft)}n=n.join(ft);break;case"transform":if(w[V].real)for(n=[],O=0,A=v[V].length;O<A;O++)for(n[O]=[v[V][O][0]],J=1,D=v[V][O].length;J<D;J++)n[O][J]=v[V][O][J]+z*m*w[V][O][J];else{var Y=function(gt){return+v[V][gt]+z*m*w[V][gt]};n=[["m",Y(0),Y(1),Y(2),Y(3),Y(4),Y(5)]]}break;case"csv":if(V=="clip-rect")for(n=[],O=4;O--;)n[O]=+v[V][O]+z*m*w[V][O];break;default:var j=[][B](v[V]);for(n=[],O=P.paper.customAttributes[V].length;O--;)n[O]=+j[O]+z*m*w[V][O]}T[V]=n}P.attr(T),(function(gt,ut,mt){setTimeout(function(){h("raphael.anim.frame."+gt,ut,mt)})})(P.id,P,i.anim)}else{if((function(gt,ut,mt){setTimeout(function(){h("raphael.anim.frame."+ut.id,ut,mt),h("raphael.anim.finish."+ut.id,ut,mt),f.is(gt,"function")&&gt.call(ut)})})(i.callback,P,i.anim),P.attr(S),Et.splice(e--,1),i.repeat>1&&!i.next){for(o in S)S[W](o)&&(F[o]=i.totalOrigin[o]);i.el.attr(F),_i(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&_i(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}Et.length&&Vr(pn)},gn=function(t){return t>255?255:t<0?0:t};function $a(t,e,i,n,o,d){var m=3*e,g=3*(n-e)-m,v=1-m-g,w=3*i,S=3*(o-i)-w,P=1-w-S;function T(F){return((v*F+g)*F+m)*F}return(function(F,z){var V=(function(O,A){var J,D,Y,j,gt,ut;for(Y=O,ut=0;ut<8;ut++){if(j=T(Y)-O,ot(j)<A)return Y;if(ot(gt=(3*v*Y+2*g)*Y+m)<1e-6)break;Y-=j/gt}if(D=1,(Y=O)<(J=0))return J;if(Y>D)return D;for(;J<D;){if(j=T(Y),ot(j-O)<A)return Y;O>j?J=Y:D=Y,Y=(D-J)/2+J}return Y})(F,z);return((P*V+S)*V+w)*V})(t,1/(200*d))}function fe(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var o in t)t[W](o)&&(n[x(o)]=t[o],i.push(x(o)));i.sort(Ct)}this.anim=n,this.top=i[i.length-1],this.percents=i}function _i(t,e,i,n,o,d){i=x(i);var m,g,v,w,S,P,T=t.ms,F={},z={},V={};if(n)for(A=0,J=Et.length;A<J;A++){var O=Et[A];if(O.el.id==e.id&&O.anim==t){O.percent!=i?(Et.splice(A,1),v=1):g=O,e.attr(O.totalOrigin);break}}else n=+z;for(var A=0,J=t.percents.length;A<J;A++){if(t.percents[A]==i||t.percents[A]>n*t.top){i=t.percents[A],S=t.percents[A-1]||0,T=T/t.top*(i-S),w=t.percents[A+1],m=t.anim[i];break}n&&e.attr(t.anim[t.percents[A]])}if(m){if(g)g.initstatus=n,g.start=new Date-g.ms*n;else{for(var D in m)if(m[W](D)&&(M[W](D)||e.paper.customAttributes[W](D)))switch(F[D]=e.attr(D),F[D]==null&&(F[D]=R[D]),z[D]=m[D],M[D]){case ct:V[D]=(z[D]-F[D])/T;break;case"colour":F[D]=f.getRGB(F[D]);var Y=f.getRGB(z[D]);V[D]={r:(Y.r-F[D].r)/T,g:(Y.g-F[D].g)/T,b:(Y.b-F[D].b)/T};break;case"path":var j=yi(F[D],z[D]),gt=j[1];for(F[D]=j[0],V[D]=[],A=0,J=F[D].length;A<J;A++){V[D][A]=[0];for(var ut=1,mt=F[D][A].length;ut<mt;ut++)V[D][A][ut]=(gt[A][ut]-F[D][A][ut])/T}break;case"transform":var ni=e._,wi=ba(ni[D],z[D]);if(wi)for(F[D]=wi.from,z[D]=wi.to,V[D]=[],V[D].real=!0,A=0,J=F[D].length;A<J;A++)for(V[D][A]=[F[D][A][0]],ut=1,mt=F[D][A].length;ut<mt;ut++)V[D][A][ut]=(z[D][A][ut]-F[D][A][ut])/T;else{var Yt=e.matrix||new Be,ue={_:{transform:ni.transform},getBBox:function(){return e.getBBox(1)}};F[D]=[Yt.a,Yt.b,Yt.c,Yt.d,Yt.e,Yt.f],Lr(ue,z[D]),z[D]=ue._.transform,V[D]=[(ue.matrix.a-Yt.a)/T,(ue.matrix.b-Yt.b)/T,(ue.matrix.c-Yt.c)/T,(ue.matrix.d-Yt.d)/T,(ue.matrix.e-Yt.e)/T,(ue.matrix.f-Yt.f)/T]}break;case"csv":var ri=I(m[D])[it](tt),si=I(F[D])[it](tt);if(D=="clip-rect")for(F[D]=si,V[D]=[],A=si.length;A--;)V[D][A]=(ri[A]-F[D][A])/T;z[D]=ri;break;default:for(ri=[][B](m[D]),si=[][B](F[D]),V[D]=[],A=e.paper.customAttributes[D].length;A--;)V[D][A]=((ri[A]||0)-(si[A]||0))/T}var Vi=m.easing,ce=f.easing_formulas[Vi];if(!ce)if((ce=I(Vi).match(a))&&ce.length==5){var Pe=ce;ce=function(Di){return $a(Di,+Pe[1],+Pe[2],+Pe[3],+Pe[4],T)}}else ce=bt;if(O={anim:t,percent:i,timestamp:P=m.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:n||0,stop:!1,ms:T,easing:ce,from:F,diff:V,to:z,el:e,callback:m.callback,prev:S,next:w,repeat:d||t.times,origin:e.attr(),totalOrigin:o},Et.push(O),n&&!g&&!v&&(O.stop=!0,O.start=new Date-T*n,Et.length==1))return pn();v&&(O.start=new Date-O.ms*n),Et.length==1&&Vr(pn)}h("raphael.anim.start."+e.id,e,t)}}function Dr(t){for(var e=0;e<Et.length;e++)Et[e].el.paper==t&&Et.splice(e--,1)}At.animateWith=function(t,e,i,n,o,d){if(this.removed)return d&&d.call(this),this;var m=i instanceof fe?i:f.animation(i,n,o,d);_i(m,this,m.percents[0],null,this.attr());for(var g=0,v=Et.length;g<v;g++)if(Et[g].anim==e&&Et[g].el==t){Et[v-1].start=Et[g].start;break}return this},At.onAnimation=function(t){return t?h.on("raphael.anim.frame."+this.id,t):h.unbind("raphael.anim.frame."+this.id),this},fe.prototype.delay=function(t){var e=new fe(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},fe.prototype.repeat=function(t){var e=new fe(this.anim,this.ms);return e.del=this.del,e.times=H.floor(Q(t,0))||1,e},f.animation=function(t,e,i,n){if(t instanceof fe)return t;!f.is(i,"function")&&i||(n=n||i||null,i=null),t=Object(t),e=+e||0;var o,d,m={};for(d in t)t[W](d)&&x(d)!=d&&x(d)+"%"!=d&&(o=!0,m[d]=t[d]);if(o)return i&&(m.easing=i),n&&(m.callback=n),new fe({100:m},e);if(n){var g=0;for(var v in t){var w=E(v);t[W](v)&&w>g&&(g=w)}!t[g+="%"].callback&&(t[g].callback=n)}return new fe(t,e)},At.animate=function(t,e,i,n){if(this.removed)return n&&n.call(this),this;var o=t instanceof fe?t:f.animation(t,e,i,n);return _i(o,this,o.percents[0],null,this.attr()),this},At.setTime=function(t,e){return t&&e!=null&&this.status(t,Z(e,t.ms)/t.ms),this},At.status=function(t,e){var i,n,o=[],d=0;if(e!=null)return _i(t,this,-1,Z(e,1)),this;for(i=Et.length;d<i;d++)if((n=Et[d]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;o.push({anim:n.anim,status:n.status})}return t?0:o},At.pause=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.pause."+this.id,this,Et[e].anim)!==!1&&(Et[e].paused=!0);return this},At.resume=function(t){for(var e=0;e<Et.length;e++)if(Et[e].el.id==this.id&&(!t||Et[e].anim==t)){var i=Et[e];h("raphael.anim.resume."+this.id,this,i.anim)!==!1&&(delete i.paused,this.status(i.anim,i.status))}return this},At.stop=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.stop."+this.id,this,Et[e].anim)!==!1&&Et.splice(e--,1);return this},h.on("raphael.remove",Dr),h.on("raphael.clear",Dr),At.toString=function(){return"Raphaël’s object"};var jr,Yr,Oe,qr,bi=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!=At.constructor&&t[e].constructor!=bi||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},Ot=bi.prototype;for(var mn in Ot.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)!(t=arguments[i])||t.constructor!=At.constructor&&t.constructor!=bi||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},Ot.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Ot.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(t.call(e,this.items[i],i)===!1)return this;return this},At)At[W](mn)&&(Ot[mn]=(function(t){return function(){var e=arguments;return this.forEach(function(i){i[t][G](i,e)})}})(mn));return Ot.attr=function(t,e){if(t&&f.is(t,xt)&&f.is(t[0],"object"))for(var i=0,n=t.length;i<n;i++)this.items[i].attr(t[i]);else for(var o=0,d=this.items.length;o<d;o++)this.items[o].attr(t,e);return this},Ot.clear=function(){for(;this.length;)this.pop()},Ot.splice=function(t,e,i){t=t<0?Q(this.length+t,0):t,e=Q(0,Z(this.length-t,e));var n,o=[],d=[],m=[];for(n=2;n<arguments.length;n++)m.push(arguments[n]);for(n=0;n<e;n++)d.push(this[t+n]);for(;n<this.length-t;n++)o.push(this[t+n]);var g=m.length;for(n=0;n<g+o.length;n++)this.items[t+n]=this[t+n]=n<g?m[n]:o[n-g];for(n=this.items.length=this.length-=e-g;this[n];)delete this[n++];return new bi(d)},Ot.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},Ot.animate=function(t,e,i,n){(f.is(i,"function")||!i)&&(n=i||null);var o,d,m=this.items.length,g=m,v=this;if(!m)return this;n&&(d=function(){!--m&&n.call(v)}),i=f.is(i,"string")?i:d;var w=f.animation(t,e,i,d);for(o=this.items[--g].animate(w);g--;)this.items[g]&&!this.items[g].removed&&this.items[g].animateWith(o,w,w),this.items[g]&&!this.items[g].removed||m--;return this},Ot.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},Ot.getBBox=function(){for(var t=[],e=[],i=[],n=[],o=this.items.length;o--;)if(!this.items[o].removed){var d=this.items[o].getBBox();t.push(d.x),e.push(d.y),i.push(d.x+d.width),n.push(d.y+d.height)}return{x:t=Z[G](0,t),y:e=Z[G](0,e),x2:i=Q[G](0,i),y2:n=Q[G](0,n),width:i-t,height:n-e}},Ot.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},Ot.toString=function(){return"Raphaël‘s set"},Ot.glow=function(t){var e=this.paper.set();return this.forEach(function(i,n){var o=i.glow(t);o?.forEach(function(d,m){e.push(d)})}),e},Ot.isPointInside=function(t,e){var i=!1;return this.forEach(function(n){if(n.isPointInside(t,e))return i=!0,!1}),i},f.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[W](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg){for(var o in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[W](o)){var d=t.glyphs[o];if(e.glyphs[o]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(g){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[g]||"M"})+"z"},d.k)for(var m in d.k)d[W](m)&&(e.glyphs[o].k[m]=d.k[m])}}return t},L.getFont=function(t,e,i,n){if(n=n||"normal",i=i||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,f.fonts){var o,d=f.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var g in f.fonts)if(f.fonts[W](g)&&m.test(g)){d=f.fonts[g];break}}if(d)for(var v=0,w=d.length;v<w&&((o=d[v]).face["font-weight"]!=e||o.face["font-style"]!=i&&o.face["font-style"]||o.face["font-stretch"]!=n);v++);return o}},L.print=function(t,e,i,n,o,d,m,g){d=d||"middle",m=Q(Z(m||0,1),-1),g=Q(Z(g||1,3),1);var v,w=I(i)[it](lt),S=0,P=0,T=lt;if(f.is(n,"string")&&(n=this.getFont(n)),n){v=(o||16)/n.face["units-per-em"];for(var F=n.face.bbox[it](tt),z=+F[0],V=F[3]-F[1],O=0,A=+F[1]+(d=="baseline"?V+ +n.face.descent:V/2),J=0,D=w.length;J<D;J++){if(w[J]==`
3
+ `)S=0,j=0,P=0,O+=V*g;else{var Y=P&&n.glyphs[w[J-1]]||{},j=n.glyphs[w[J]];S+=P?(Y.w||n.w)+(Y.k&&Y.k[w[J]]||0)+n.w*m:0,P=1}j&&j.d&&(T+=f.transformPath(j.d,["t",S*v,O*v,"s",v,v,z,A,"t",(t-z)/v,(e-A)/v]))}}return this.path(T).attr({fill:"#000",stroke:"none"})},L.add=function(t){if(f.is(t,"array"))for(var e,i=this.set(),n=0,o=t.length;n<o;n++)e=t[n]||{},q[W](e.type)&&i.push(this[e.type]().attr(e));return i},f.format=function(t,e){var i=f.is(e,xt)?[0][B](e):arguments;return t&&f.is(t,"string")&&i.length-1&&(t=t.replace(et,function(n,o){return i[++o]==null?lt:i[o]})),t||lt},f.fullfill=(jr=/\{([^\}]+)\}/g,Yr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(jr,function(i,n){return(function(o,d,m){var g=m;return d.replace(Yr,function(v,w,S,P,T){w=w||P,g&&(w in g&&(g=g[w]),typeof g=="function"&&T&&(g=g()))}),g=(g==null||g==m?o:g)+""})(i,n,e)})}),f.ninja=function(){if(_t.was)U.win.Raphael=_t.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return f},f.st=Ot,h.on("raphael.DOMload",function(){$=!0}),(Oe=document).readyState==null&&Oe.addEventListener&&(Oe.addEventListener("DOMContentLoaded",qr=function(){Oe.removeEventListener("DOMContentLoaded",qr,!1),Oe.readyState="complete"},!1),Oe.readyState="loading"),(function t(){/in/.test(Oe.readyState)?setTimeout(t,9):f.eve("raphael.DOMload")})(),f}).apply(y,_))===void 0||(u.exports=k)},function(u,y,b){var _,k;_=[b(0),b(3),b(4)],(k=(function(h){return h}).apply(y,_))===void 0||(u.exports=k)},function(u,y,b){var _,k,h,f,$,L,tt,q,et,W,U,_t,Mt,G;f="hasOwnProperty",$=/[\.\/]/,L=/\s*,\s*/,tt=function(B,K){return B-K},q={n:{}},et=function(){for(var B=0,K=this.length;B<K;B++)if(this[B]!==void 0)return this[B]},W=function(){for(var B=this.length;--B;)if(this[B]!==void 0)return this[B]},U=Object.prototype.toString,_t=String,Mt=Array.isArray||function(B){return B instanceof Array||U.call(B)=="[object Array]"},(G=function(B,K){var lt,ft=h,I=Array.prototype.slice.call(arguments,2),it=G.listeners(B),rt=0,wt=[],st={},H=[],Q=k;H.firstDefined=et,H.lastDefined=W,k=B,h=0;for(var Z=0,ot=it.length;Z<ot;Z++)"zIndex"in it[Z]&&(wt.push(it[Z].zIndex),it[Z].zIndex<0&&(st[it[Z].zIndex]=it[Z]));for(wt.sort(tt);wt[rt]<0;)if(lt=st[wt[rt++]],H.push(lt.apply(K,I)),h)return h=ft,H;for(Z=0;Z<ot;Z++)if("zIndex"in(lt=it[Z]))if(lt.zIndex==wt[rt]){if(H.push(lt.apply(K,I)),h)break;do if((lt=st[wt[++rt]])&&H.push(lt.apply(K,I)),h)break;while(lt)}else st[lt.zIndex]=lt;else if(H.push(lt.apply(K,I)),h)break;return h=ft,k=Q,H})._events=q,G.listeners=function(B){var K,lt,ft,I,it,rt,wt,st,H=Mt(B)?B:B.split($),Q=q,Z=[Q],ot=[];for(I=0,it=H.length;I<it;I++){for(st=[],rt=0,wt=Z.length;rt<wt;rt++)for(lt=[(Q=Z[rt].n)[H[I]],Q["*"]],ft=2;ft--;)(K=lt[ft])&&(st.push(K),ot=ot.concat(K.f||[]));Z=st}return ot},G.separator=function(B){B?(B="["+(B=_t(B).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",$=new RegExp(B)):$=/[\.\/]/},G.on=function(B,K){if(typeof K!="function")return function(){};for(var lt=Mt(B)?Mt(B[0])?B:[B]:_t(B).split(L),ft=0,I=lt.length;ft<I;ft++)(function(it){for(var rt,wt=Mt(it)?it:_t(it).split($),st=q,H=0,Q=wt.length;H<Q;H++)st=(st=st.n).hasOwnProperty(wt[H])&&st[wt[H]]||(st[wt[H]]={n:{}});for(st.f=st.f||[],H=0,Q=st.f.length;H<Q;H++)if(st.f[H]==K){rt=!0;break}!rt&&st.f.push(K)})(lt[ft]);return function(it){+it==+it&&(K.zIndex=+it)}},G.f=function(B){var K=[].slice.call(arguments,1);return function(){G.apply(null,[B,null].concat(K).concat([].slice.call(arguments,0)))}},G.stop=function(){h=1},G.nt=function(B){var K=Mt(k)?k.join("."):k;return B?new RegExp("(?:\\.|\\/|^)"+B+"(?:\\.|\\/|$)").test(K):K},G.nts=function(){return Mt(k)?k:k.split($)},G.off=G.unbind=function(B,K){if(B){var lt=Mt(B)?Mt(B[0])?B:[B]:_t(B).split(L);if(lt.length>1)for(var ft=0,I=lt.length;ft<I;ft++)G.off(lt[ft],K);else{lt=Mt(B)?B:_t(B).split($);var it,rt,wt,st,H,Q=[q];for(ft=0,I=lt.length;ft<I;ft++)for(st=0;st<Q.length;st+=wt.length-2){if(wt=[st,1],it=Q[st].n,lt[ft]!="*")it[lt[ft]]&&wt.push(it[lt[ft]]);else for(rt in it)it[f](rt)&&wt.push(it[rt]);Q.splice.apply(Q,wt)}for(ft=0,I=Q.length;ft<I;ft++)for(it=Q[ft];it.n;){if(K){if(it.f){for(st=0,H=it.f.length;st<H;st++)if(it.f[st]==K){it.f.splice(st,1);break}!it.f.length&&delete it.f}for(rt in it.n)if(it.n[f](rt)&&it.n[rt].f){var Z=it.n[rt].f;for(st=0,H=Z.length;st<H;st++)if(Z[st]==K){Z.splice(st,1);break}!Z.length&&delete it.n[rt].f}}else for(rt in delete it.f,it.n)it.n[f](rt)&&it.n[rt].f&&delete it.n[rt].f;it=it.n}}}else G._events=q={n:{}}},G.once=function(B,K){var lt=function(){return G.off(B,lt),K.apply(this,arguments)};return G.on(B,lt)},G.version="0.5.0",G.toString=function(){return"You are running Eve 0.5.0"},u.exports?u.exports=G:(_=(function(){return G}).apply(y,[]))===void 0||(u.exports=_)},function(u,y,b){var _,k;_=[b(0)],(k=(function(h){if(!h||h.svg){var f="hasOwnProperty",$=String,L=parseFloat,tt=parseInt,q=Math,et=q.max,W=q.abs,U=q.pow,_t=/[, ]+/,Mt=h.eve,G="",B=" ",K="http://www.w3.org/1999/xlink",lt={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"},ft={};h.toString=function(){return`Your browser supports SVG.
4
+ You are running Raphaël `+this.version};var I=function(p,l){if(l)for(var a in typeof p=="string"&&(p=I(p)),l)l[f](a)&&(a.substring(0,6)=="xlink:"?p.setAttributeNS(K,a.substring(6),$(l[a])):p.setAttribute(a,$(l[a])));else(p=h._g.doc.createElementNS("http://www.w3.org/2000/svg",p)).style&&(p.style.webkitTapHighlightColor="rgba(0,0,0,0)");return p},it=function(p,l){var a="linear",c=p.id+l,x=.5,E=.5,C=p.node,R=p.paper,M=C.style,N=h._g.doc.getElementById(c);if(!N){if(l=(l=$(l).replace(h._radial_gradient,function(Ct,bt,at){if(a="radial",bt&&at){x=L(bt);var Ft=2*((E=L(at))>.5)-1;U(x-.5,2)+U(E-.5,2)>.25&&(E=q.sqrt(.25-U(x-.5,2))*Ft+.5)&&E!=.5&&(E=E.toFixed(5)-1e-5*Ft)}return G})).split(/\s*\-\s*/),a=="linear"){var X=l.shift();if(X=-L(X),isNaN(X))return null;var nt=[0,0,q.cos(h.rad(X)),q.sin(h.rad(X))],pt=1/(et(W(nt[2]),W(nt[3]))||1);nt[2]*=pt,nt[3]*=pt,nt[2]<0&&(nt[0]=-nt[2],nt[2]=0),nt[3]<0&&(nt[1]=-nt[3],nt[3]=0)}var vt=h._parseDots(l);if(!vt)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),p.gradient&&c!=p.gradient.id&&(R.defs.removeChild(p.gradient),delete p.gradient),!p.gradient){N=I(a+"Gradient",{id:c}),p.gradient=N,I(N,a=="radial"?{fx:x,fy:E}:{x1:nt[0],y1:nt[1],x2:nt[2],y2:nt[3],gradientTransform:p.matrix.invert()}),R.defs.appendChild(N);for(var dt=0,kt=vt.length;dt<kt;dt++)N.appendChild(I("stop",{offset:vt[dt].offset?vt[dt].offset:dt?"100%":"0%","stop-color":vt[dt].color||"#fff","stop-opacity":isFinite(vt[dt].opacity)?vt[dt].opacity:1}))}}return I(C,{fill:rt(c),opacity:1,"fill-opacity":1}),M.fill=G,M.opacity=1,M.fillOpacity=1,1},rt=function(p){if((l=document.documentMode)&&(l===9||l===10))return"url('#"+p+"')";var l,a=document.location;return"url('"+(a.protocol+"//"+a.host+a.pathname+a.search)+"#"+p+"')"},wt=function(p){var l=p.getBBox(1);I(p.pattern,{patternTransform:p.matrix.invert()+" translate("+l.x+","+l.y+")"})},st=function(p,l,a){if(p.type=="path"){for(var c,x,E,C,R,M=$(l).toLowerCase().split("-"),N=p.paper,X=a?"end":"start",nt=p.node,pt=p.attrs,vt=pt["stroke-width"],dt=M.length,kt="classic",Ct=3,bt=3,at=5;dt--;)switch(M[dt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":kt=M[dt];break;case"wide":bt=5;break;case"narrow":bt=2;break;case"long":Ct=5;break;case"short":Ct=2}if(kt=="open"?(Ct+=2,bt+=2,at+=2,E=1,C=a?4:1,R={fill:"none",stroke:pt.stroke}):(C=E=Ct/2,R={fill:pt.stroke,stroke:"none"}),p._.arrows?a?(p._.arrows.endPath&&ft[p._.arrows.endPath]--,p._.arrows.endMarker&&ft[p._.arrows.endMarker]--):(p._.arrows.startPath&&ft[p._.arrows.startPath]--,p._.arrows.startMarker&&ft[p._.arrows.startMarker]--):p._.arrows={},kt!="none"){var Ft="raphael-marker-"+kt,Lt="raphael-marker-"+X+kt+Ct+bt+"-obj"+p.id;h._g.doc.getElementById(Ft)?ft[Ft]++:(N.defs.appendChild(I(I("path"),{"stroke-linecap":"round",d:lt[kt],id:Ft})),ft[Ft]=1);var zt,Nt=h._g.doc.getElementById(Lt);Nt?(ft[Lt]++,zt=Nt.getElementsByTagName("use")[0]):(Nt=I(I("marker"),{id:Lt,markerHeight:bt,markerWidth:Ct,orient:"auto",refX:C,refY:bt/2}),zt=I(I("use"),{"xlink:href":"#"+Ft,transform:(a?"rotate(180 "+Ct/2+" "+bt/2+") ":G)+"scale("+Ct/at+","+bt/at+")","stroke-width":(1/((Ct/at+bt/at)/2)).toFixed(4)}),Nt.appendChild(zt),N.defs.appendChild(Nt),ft[Lt]=1),I(zt,R);var Qt=E*(kt!="diamond"&&kt!="oval");a?(c=p._.arrows.startdx*vt||0,x=h.getTotalLength(pt.path)-Qt*vt):(c=Qt*vt,x=h.getTotalLength(pt.path)-(p._.arrows.enddx*vt||0)),(R={})["marker-"+X]="url(#"+Lt+")",(x||c)&&(R.d=h.getSubpath(pt.path,c,x)),I(nt,R),p._.arrows[X+"Path"]=Ft,p._.arrows[X+"Marker"]=Lt,p._.arrows[X+"dx"]=Qt,p._.arrows[X+"Type"]=kt,p._.arrows[X+"String"]=l}else a?(c=p._.arrows.startdx*vt||0,x=h.getTotalLength(pt.path)-c):(c=0,x=h.getTotalLength(pt.path)-(p._.arrows.enddx*vt||0)),p._.arrows[X+"Path"]&&I(nt,{d:h.getSubpath(pt.path,c,x)}),delete p._.arrows[X+"Path"],delete p._.arrows[X+"Marker"],delete p._.arrows[X+"dx"],delete p._.arrows[X+"Type"],delete p._.arrows[X+"String"];for(R in ft)if(ft[f](R)&&!ft[R]){var Dt=h._g.doc.getElementById(R);Dt&&Dt.parentNode.removeChild(Dt)}}},H={"-":[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]},Q=function(p,l,a){if(l=H[$(l).toLowerCase()]){for(var c=p.attrs["stroke-width"]||"1",x={round:c,square:c,butt:0}[p.attrs["stroke-linecap"]||a["stroke-linecap"]]||0,E=[],C=l.length;C--;)E[C]=l[C]*c+(C%2?1:-1)*x;I(p.node,{"stroke-dasharray":E.join(",")})}else I(p.node,{"stroke-dasharray":"none"})},Z=function(p,l){var a=p.node,c=p.attrs,x=a.style.visibility;for(var E in a.style.visibility="hidden",l)if(l[f](E)){if(!h._availableAttrs[f](E))continue;var C=l[E];switch(c[E]=C,E){case"blur":p.blur(C);break;case"title":var R=a.getElementsByTagName("title");if(R.length&&(R=R[0]))R.firstChild.nodeValue=C;else{R=I("title");var M=h._g.doc.createTextNode(C);R.appendChild(M),a.appendChild(R)}break;case"href":case"target":var N=a.parentNode;if(N.tagName.toLowerCase()!="a"){var X=I("a");N.insertBefore(X,a),X.appendChild(a),N=X}E=="target"?N.setAttributeNS(K,"show",C=="blank"?"new":C):N.setAttributeNS(K,E,C);break;case"cursor":a.style.cursor=C;break;case"transform":p.transform(C);break;case"arrow-start":st(p,C);break;case"arrow-end":st(p,C,1);break;case"clip-rect":var nt=$(C).split(_t);if(nt.length==4){p.clip&&p.clip.parentNode.parentNode.removeChild(p.clip.parentNode);var pt=I("clipPath"),vt=I("rect");pt.id=h.createUUID(),I(vt,{x:nt[0],y:nt[1],width:nt[2],height:nt[3]}),pt.appendChild(vt),p.paper.defs.appendChild(pt),I(a,{"clip-path":"url(#"+pt.id+")"}),p.clip=vt}if(!C){var dt=a.getAttribute("clip-path");if(dt){var kt=h._g.doc.getElementById(dt.replace(/(^url\(#|\)$)/g,G));kt&&kt.parentNode.removeChild(kt),I(a,{"clip-path":G}),delete p.clip}}break;case"path":p.type=="path"&&(I(a,{d:C?c.path=h._pathToAbsolute(C):"M0,0"}),p._.dirty=1,p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1)));break;case"width":if(a.setAttribute(E,C),p._.dirty=1,!c.fx)break;E="x",C=c.x;case"x":c.fx&&(C=-c.x-(c.width||0));case"rx":if(E=="rx"&&p.type=="rect")break;case"cx":a.setAttribute(E,C),p.pattern&&wt(p),p._.dirty=1;break;case"height":if(a.setAttribute(E,C),p._.dirty=1,!c.fy)break;E="y",C=c.y;case"y":c.fy&&(C=-c.y-(c.height||0));case"ry":if(E=="ry"&&p.type=="rect")break;case"cy":a.setAttribute(E,C),p.pattern&&wt(p),p._.dirty=1;break;case"r":p.type=="rect"?I(a,{rx:C,ry:C}):a.setAttribute(E,C),p._.dirty=1;break;case"src":p.type=="image"&&a.setAttributeNS(K,"href",C);break;case"stroke-width":p._.sx==1&&p._.sy==1||(C/=et(W(p._.sx),W(p._.sy))||1),a.setAttribute(E,C),c["stroke-dasharray"]&&Q(p,c["stroke-dasharray"],l),p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"stroke-dasharray":Q(p,C,l);break;case"fill":var Ct=$(C).match(h._ISURL);if(Ct){pt=I("pattern");var bt=I("image");pt.id=h.createUUID(),I(pt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),I(bt,{x:0,y:0,"xlink:href":Ct[1]}),pt.appendChild(bt),(function(Nt){h._preload(Ct[1],function(){var Qt=this.offsetWidth,Dt=this.offsetHeight;I(Nt,{width:Qt,height:Dt}),I(bt,{width:Qt,height:Dt})})})(pt),p.paper.defs.appendChild(pt),I(a,{fill:"url(#"+pt.id+")"}),p.pattern=pt,p.pattern&&wt(p);break}var at=h.getRGB(C);if(at.error){if((p.type=="circle"||p.type=="ellipse"||$(C).charAt()!="r")&&it(p,C)){if("opacity"in c||"fill-opacity"in c){var Ft=h._g.doc.getElementById(a.getAttribute("fill").replace(/^url\(#|\)$/g,G));if(Ft){var Lt=Ft.getElementsByTagName("stop");I(Lt[Lt.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=C,c.fill="none";break}}else delete l.gradient,delete c.gradient,!h.is(c.opacity,"undefined")&&h.is(l.opacity,"undefined")&&I(a,{opacity:c.opacity}),!h.is(c["fill-opacity"],"undefined")&&h.is(l["fill-opacity"],"undefined")&&I(a,{"fill-opacity":c["fill-opacity"]});at[f]("opacity")&&I(a,{"fill-opacity":at.opacity>1?at.opacity/100:at.opacity});case"stroke":at=h.getRGB(C),a.setAttribute(E,at.hex),E=="stroke"&&at[f]("opacity")&&I(a,{"stroke-opacity":at.opacity>1?at.opacity/100:at.opacity}),E=="stroke"&&p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"gradient":(p.type=="circle"||p.type=="ellipse"||$(C).charAt()!="r")&&it(p,C);break;case"opacity":c.gradient&&!c[f]("stroke-opacity")&&I(a,{"stroke-opacity":C>1?C/100:C});case"fill-opacity":if(c.gradient){(Ft=h._g.doc.getElementById(a.getAttribute("fill").replace(/^url\(#|\)$/g,G)))&&(Lt=Ft.getElementsByTagName("stop"),I(Lt[Lt.length-1],{"stop-opacity":C}));break}default:E=="font-size"&&(C=tt(C,10)+"px");var zt=E.replace(/(\-.)/g,function(Nt){return Nt.substring(1).toUpperCase()});a.style[zt]=C,p._.dirty=1,a.setAttribute(E,C)}}ot(p,l),a.style.visibility=x},ot=function(p,l){if(p.type=="text"&&(l[f]("text")||l[f]("font")||l[f]("font-size")||l[f]("x")||l[f]("y"))){var a=p.attrs,c=p.node,x=c.firstChild?tt(h._g.doc.defaultView.getComputedStyle(c.firstChild,G).getPropertyValue("font-size"),10):10;if(l[f]("text")){for(a.text=l.text;c.firstChild;)c.removeChild(c.firstChild);for(var E,C=$(l.text).split(`
5
+ `),R=[],M=0,N=C.length;M<N;M++)E=I("tspan"),M&&I(E,{dy:1.2*x,x:a.x}),E.appendChild(h._g.doc.createTextNode(C[M])),c.appendChild(E),R[M]=E}else for(M=0,N=(R=c.getElementsByTagName("tspan")).length;M<N;M++)M?I(R[M],{dy:1.2*x,x:a.x}):I(R[0],{dy:0});I(c,{x:a.x,y:a.y}),p._.dirty=1;var X=p._getBBox(),nt=a.y-(X.y+X.height/2);nt&&h.is(nt,"finite")&&I(R[0],{dy:nt})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},$t=function(p,l){this[0]=this.node=p,p.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),p.raphaelid=this.id,this.matrix=h.matrix(),this.realPath=null,this.paper=l,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!l.bottom&&(l.bottom=this),this.prev=l.top,l.top&&(l.top.next=this),l.top=this,this.next=null},ct=h.el;$t.prototype=ct,ct.constructor=$t,h._engine.path=function(p,l){var a=I("path");l.canvas&&l.canvas.appendChild(a);var c=new $t(a,l);return c.type="path",Z(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,l,a){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(l=L(p[1]),a=L(p[2])),p=L(p[0]),a==null&&(l=a),l==null||a==null){var c=this.getBBox(1);l=c.x+c.width/2,a=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,l,a]])),this},ct.scale=function(p,l,a,c){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(l=L(p[1]),a=L(p[2]),c=L(p[3])),p=L(p[0]),l==null&&(l=p),c==null&&(a=c),a==null||c==null)var x=this.getBBox(1);return a=a??x.x+x.width/2,c=c??x.y+x.height/2,this.transform(this._.transform.concat([["s",p,l,a,c]])),this},ct.translate=function(p,l){return this.removed?this:((p=$(p).split(_t)).length-1&&(l=L(p[1])),p=L(p[0])||0,l=+l||0,this.transform(this._.transform.concat([["t",p,l]])),this)},ct.transform=function(p){var l=this._;if(p==null)return l.transform;if(h._extractTransform(this,p),this.clip&&I(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&I(this.node,{transform:this.matrix}),l.sx!=1||l.sy!=1){var a=this.attrs[f]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":a})}return this},ct.hide=function(){return this.removed||(this.node.style.display="none"),this},ct.show=function(){return this.removed||(this.node.style.display=""),this},ct.remove=function(){var p=yt(this.node);if(!this.removed&&p.parentNode){var l=this.paper;for(var a in l.__set__&&l.__set__.exclude(this),Mt.unbind("raphael.*.*."+this.id),this.gradient&&l.defs.removeChild(this.gradient),h._tear(this,l),p.parentNode.removeChild(p),this.removeData(),this)this[a]=typeof this[a]=="function"?h._removedFactory(a):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var l,a=!1;this.paper.canvas.parentElement?l=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(l=this.paper.canvas.parentNode.style),l&&l.display=="none"&&(a=!0,l.display="");var c={};try{c=this.node.getBBox()}catch{c={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{c=c||{},a&&(l.display="none")}return p&&this.hide(),c},ct.attr=function(p,l){if(this.removed)return this;if(p==null){var a={};for(var c in this.attrs)this.attrs[f](c)&&(a[c]=this.attrs[c]);return a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient,a.transform=this._.transform,a}if(l==null&&h.is(p,"string")){if(p=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(p=="transform")return this._.transform;for(var x=p.split(_t),E={},C=0,R=x.length;C<R;C++)(p=x[C])in this.attrs?E[p]=this.attrs[p]:h.is(this.paper.customAttributes[p],"function")?E[p]=this.paper.customAttributes[p].def:E[p]=h._availableAttrs[p];return R-1?E:E[x[0]]}if(l==null&&h.is(p,"array")){for(E={},C=0,R=p.length;C<R;C++)E[p[C]]=this.attr(p[C]);return E}if(l!=null){var M={};M[p]=l}else p!=null&&h.is(p,"object")&&(M=p);for(var N in M)Mt("raphael.attr."+N+"."+this.id,this,M[N]);for(N in this.paper.customAttributes)if(this.paper.customAttributes[f](N)&&M[f](N)&&h.is(this.paper.customAttributes[N],"function")){var X=this.paper.customAttributes[N].apply(this,[].concat(M[N]));for(var nt in this.attrs[N]=M[N],X)X[f](nt)&&(M[nt]=X[nt])}return Z(this,M),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var l=this.paper;return l.top!=this&&h._tofront(this,l),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),l=p.parentNode;return l.insertBefore(p,l.firstChild),h._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var l=yt(this.node),a=yt(p.node||p[p.length-1].node);return a.nextSibling?a.parentNode.insertBefore(l,a.nextSibling):a.parentNode.appendChild(l),h._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var l=yt(this.node),a=yt(p.node||p[0].node);return a.parentNode.insertBefore(l,a),h._insertbefore(this,p,this.paper),this},ct.blur=function(p){var l=this;if(+p!=0){var a=I("filter"),c=I("feGaussianBlur");l.attrs.blur=p,a.id=h.createUUID(),I(c,{stdDeviation:+p||1.5}),a.appendChild(c),l.paper.defs.appendChild(a),l._blur=a,I(l.node,{filter:"url(#"+a.id+")"})}else l._blur&&(l._blur.parentNode.removeChild(l._blur),delete l._blur,delete l.attrs.blur),l.node.removeAttribute("filter");return l},h._engine.circle=function(p,l,a,c){var x=I("circle");p.canvas&&p.canvas.appendChild(x);var E=new $t(x,p);return E.attrs={cx:l,cy:a,r:c,fill:"none",stroke:"#000"},E.type="circle",I(x,E.attrs),E},h._engine.rect=function(p,l,a,c,x,E){var C=I("rect");p.canvas&&p.canvas.appendChild(C);var R=new $t(C,p);return R.attrs={x:l,y:a,width:c,height:x,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},R.type="rect",I(C,R.attrs),R},h._engine.ellipse=function(p,l,a,c,x){var E=I("ellipse");p.canvas&&p.canvas.appendChild(E);var C=new $t(E,p);return C.attrs={cx:l,cy:a,rx:c,ry:x,fill:"none",stroke:"#000"},C.type="ellipse",I(E,C.attrs),C},h._engine.image=function(p,l,a,c,x,E){var C=I("image");I(C,{x:a,y:c,width:x,height:E,preserveAspectRatio:"none"}),C.setAttributeNS(K,"href",l),p.canvas&&p.canvas.appendChild(C);var R=new $t(C,p);return R.attrs={x:a,y:c,width:x,height:E,src:l},R.type="image",R},h._engine.text=function(p,l,a,c){var x=I("text");p.canvas&&p.canvas.appendChild(x);var E=new $t(x,p);return E.attrs={x:l,y:a,"text-anchor":"middle",text:c,"font-family":h._availableAttrs["font-family"],"font-size":h._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",Z(E,E.attrs),E},h._engine.setSize=function(p,l){return this.width=p||this.width,this.height=l||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},h._engine.create=function(){var p=h._getContainer.apply(0,arguments),l=p&&p.container;if(!l)throw new Error("SVG container not found.");var a,c=p.x,x=p.y,E=p.width,C=p.height,R=I("svg"),M="overflow:hidden;";return c=c||0,x=x||0,I(R,{height:C=C||342,version:1.1,width:E=E||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),l==1?(R.style.cssText=M+"position:absolute;left:"+c+"px;top:"+x+"px",h._g.doc.body.appendChild(R),a=1):(R.style.cssText=M+"position:relative",l.firstChild?l.insertBefore(R,l.firstChild):l.appendChild(R)),(l=new h._Paper).width=E,l.height=C,l.canvas=R,l.clear(),l._left=l._top=0,a&&(l.renderfix=function(){}),l.renderfix(),l},h._engine.setViewBox=function(p,l,a,c,x){Mt("raphael.setViewBox",this,this._viewBox,[p,l,a,c,x]);var E,C,R=this.getSize(),M=et(a/R.width,c/R.height),N=this.top,X=x?"xMidYMid meet":"xMinYMin";for(p==null?(this._vbSize&&(M=1),delete this._vbSize,E="0 0 "+this.width+B+this.height):(this._vbSize=M,E=p+B+l+B+a+B+c),I(this.canvas,{viewBox:E,preserveAspectRatio:X});M&&N;)C="stroke-width"in N.attrs?N.attrs["stroke-width"]:1,N.attr({"stroke-width":C}),N._.dirty=1,N._.dirtyT=1,N=N.prev;return this._viewBox=[p,l,a,c,!!x],this},h.prototype.renderfix=function(){var p,l=this.canvas,a=l.style;try{p=l.getScreenCTM()||l.createSVGMatrix()}catch{p=l.createSVGMatrix()}var c=-p.e%1,x=-p.f%1;(c||x)&&(c&&(this._left=(this._left+c)%1,a.left=this._left+"px"),x&&(this._top=(this._top+x)%1,a.top=this._top+"px"))},h.prototype.clear=function(){h.eve("raphael.clear",this);for(var p=this.canvas;p.firstChild;)p.removeChild(p.firstChild);this.bottom=this.top=null,(this.desc=I("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version)),p.appendChild(this.desc),p.appendChild(this.defs=I("defs"))},h.prototype.remove=function(){for(var p in Mt("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[p]=typeof this[p]=="function"?h._removedFactory(p):null};var xt=h.st;for(var Zt in ct)ct[f](Zt)&&!xt[f](Zt)&&(xt[Zt]=(function(p){return function(){var l=arguments;return this.forEach(function(a){a[p].apply(a,l)})}})(Zt))}}).apply(y,_))===void 0||(u.exports=k)},function(u,y,b){var _,k;_=[b(0)],(k=(function(h){if(!h||h.vml){var f="hasOwnProperty",$=String,L=parseFloat,tt=Math,q=tt.round,et=tt.max,W=tt.min,U=tt.abs,_t=/[, ]+/,Mt=h.eve,G=" ",B="",K={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ft=/ progid:\S+Blur\([^\)]+\)/g,I=/-?[^,\s-]+/g,it="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",rt=21600,wt={path:1,rect:1,image:1},st={circle:1,ellipse:1},H=function(l,a,c){var x=h.matrix();return x.rotate(-l,.5,.5),{dx:x.x(a,c),dy:x.y(a,c)}},Q=function(l,a,c,x,E,C){var R=l._,M=l.matrix,N=R.fillpos,X=l.node,nt=X.style,pt=1,vt="",dt=rt/a,kt=rt/c;if(nt.visibility="hidden",a&&c){if(X.coordsize=U(dt)+G+U(kt),nt.rotation=C*(a*c<0?-1:1),C){var Ct=H(C,x,E);x=Ct.dx,E=Ct.dy}if(a<0&&(vt+="x"),c<0&&(vt+=" y")&&(pt=-1),nt.flip=vt,X.coordorigin=x*-dt+G+E*-kt,N||R.fillsize){var bt=X.getElementsByTagName("fill");bt=bt&&bt[0],X.removeChild(bt),N&&(Ct=H(C,M.x(N[0],N[1]),M.y(N[0],N[1])),bt.position=Ct.dx*pt+G+Ct.dy*pt),R.fillsize&&(bt.size=R.fillsize[0]*U(a)+G+R.fillsize[1]*U(c)),X.appendChild(bt)}nt.visibility="visible"}};h.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
6
+ You are running Raphaël `+this.version};var Z,ot=function(l,a,c){for(var x=$(a).toLowerCase().split("-"),E=c?"end":"start",C=x.length,R="classic",M="medium",N="medium";C--;)switch(x[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":R=x[C];break;case"wide":case"narrow":N=x[C];break;case"long":case"short":M=x[C]}var X=l.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=R,X[E+"arrowlength"]=M,X[E+"arrowwidth"]=N},yt=function(l,a){l.attrs=l.attrs||{};var c=l.node,x=l.attrs,E=c.style,C=wt[l.type]&&(a.x!=x.x||a.y!=x.y||a.width!=x.width||a.height!=x.height||a.cx!=x.cx||a.cy!=x.cy||a.rx!=x.rx||a.ry!=x.ry||a.r!=x.r),R=st[l.type]&&(x.cx!=a.cx||x.cy!=a.cy||x.r!=a.r||x.rx!=a.rx||x.ry!=a.ry),M=l;for(var N in a)a[f](N)&&(x[N]=a[N]);if(C&&(x.path=h._getPath[l.type](l),l._.dirty=1),a.href&&(c.href=a.href),a.title&&(c.title=a.title),a.target&&(c.target=a.target),a.cursor&&(E.cursor=a.cursor),"blur"in a&&l.blur(a.blur),(a.path&&l.type=="path"||C)&&(c.path=(function(Bt){var we=/[ahqstv]/gi,Qe=h._pathToAbsolute;if($(Bt).match(we)&&(Qe=h._path2curve),we=/[clmz]/g,Qe==h._pathToAbsolute&&!$(Bt).match(we)){var ie=$(Bt).replace(lt,function(Nr,ti,ei){var Ee=[],Oi=ti.toLowerCase()=="m",ze=K[ti];return ei.replace(I,function(Pi){Oi&&Ee.length==2&&(ze+=Ee+K[ti=="m"?"l":"L"],Ee=[]),Ee.push(q(Pi*rt))}),ze+Ee});return ie}var Ke,re,vi=Qe(Bt);ie=[];for(var Je=0,xi=vi.length;Je<xi;Je++){Ke=vi[Je],(re=vi[Je][0].toLowerCase())=="z"&&(re="x");for(var ke=1,jt=Ke.length;ke<jt;ke++)re+=q(Ke[ke]*rt)+(ke!=jt-1?",":B);ie.push(re)}return ie.join(G)})(~$(x.path).toLowerCase().indexOf("r")?h._pathToAbsolute(x.path):x.path),l._.dirty=1,l.type=="image"&&(l._.fillpos=[x.x,x.y],l._.fillsize=[x.width,x.height],Q(l,1,1,0,0,0))),"transform"in a&&l.transform(a.transform),R){var X=+x.cx,nt=+x.cy,pt=+x.rx||+x.r||0,vt=+x.ry||+x.r||0;c.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",q((X-pt)*rt),q((nt-vt)*rt),q((X+pt)*rt),q((nt+vt)*rt),q(X*rt)),l._.dirty=1}if("clip-rect"in a){var dt=$(a["clip-rect"]).split(_t);if(dt.length==4){dt[2]=+dt[2]+ +dt[0],dt[3]=+dt[3]+ +dt[1];var kt=c.clipRect||h._g.doc.createElement("div"),Ct=kt.style;Ct.clip=h.format("rect({1}px {2}px {3}px {0}px)",dt),c.clipRect||(Ct.position="absolute",Ct.top=0,Ct.left=0,Ct.width=l.paper.width+"px",Ct.height=l.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}a["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(l.textpath){var bt=l.textpath.style;a.font&&(bt.font=a.font),a["font-family"]&&(bt.fontFamily='"'+a["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,B)+'"'),a["font-size"]&&(bt.fontSize=a["font-size"]),a["font-weight"]&&(bt.fontWeight=a["font-weight"]),a["font-style"]&&(bt.fontStyle=a["font-style"])}if("arrow-start"in a&&ot(M,a["arrow-start"]),"arrow-end"in a&&ot(M,a["arrow-end"],1),a.opacity!=null||a.fill!=null||a.src!=null||a.stroke!=null||a["stroke-width"]!=null||a["stroke-opacity"]!=null||a["fill-opacity"]!=null||a["stroke-dasharray"]!=null||a["stroke-miterlimit"]!=null||a["stroke-linejoin"]!=null||a["stroke-linecap"]!=null){var at=c.getElementsByTagName("fill");if(!(at=at&&at[0])&&(at=Z("fill")),l.type=="image"&&a.src&&(at.src=a.src),a.fill&&(at.on=!0),at.on!=null&&a.fill!="none"&&a.fill!==null||(at.on=!1),at.on&&a.fill){var Ft=$(a.fill).match(h._ISURL);if(Ft){at.parentNode==c&&c.removeChild(at),at.rotate=!0,at.src=Ft[1],at.type="tile";var Lt=l.getBBox(1);at.position=Lt.x+G+Lt.y,l._.fillpos=[Lt.x,Lt.y],h._preload(Ft[1],function(){l._.fillsize=[this.offsetWidth,this.offsetHeight]})}else at.color=h.getRGB(a.fill).hex,at.src=B,at.type="solid",h.getRGB(a.fill).error&&(M.type in{circle:1,ellipse:1}||$(a.fill).charAt()!="r")&&$t(M,a.fill,at)&&(x.fill="none",x.gradient=a.fill,at.rotate=!1)}if("fill-opacity"in a||"opacity"in a){var zt=((+x["fill-opacity"]+1||2)-1)*((+x.opacity+1||2)-1)*((+h.getRGB(a.fill).o+1||2)-1);zt=W(et(zt,0),1),at.opacity=zt,at.src&&(at.color="none")}c.appendChild(at);var Nt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],Qt=!1;!Nt&&(Qt=Nt=Z("stroke")),(a.stroke&&a.stroke!="none"||a["stroke-width"]||a["stroke-opacity"]!=null||a["stroke-dasharray"]||a["stroke-miterlimit"]||a["stroke-linejoin"]||a["stroke-linecap"])&&(Nt.on=!0),(a.stroke=="none"||a.stroke===null||Nt.on==null||a.stroke==0||a["stroke-width"]==0)&&(Nt.on=!1);var Dt=h.getRGB(a.stroke);Nt.on&&a.stroke&&(Nt.color=Dt.hex),zt=((+x["stroke-opacity"]+1||2)-1)*((+x.opacity+1||2)-1)*((+Dt.o+1||2)-1);var _e=.75*(L(a["stroke-width"])||1);if(zt=W(et(zt,0),1),a["stroke-width"]==null&&(_e=x["stroke-width"]),a["stroke-width"]&&(Nt.weight=_e),_e&&_e<1&&(zt*=_e)&&(Nt.weight=1),Nt.opacity=zt,a["stroke-linejoin"]&&(Nt.joinstyle=a["stroke-linejoin"]||"miter"),Nt.miterlimit=a["stroke-miterlimit"]||8,a["stroke-linecap"]&&(Nt.endcap=a["stroke-linecap"]=="butt"?"flat":a["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in a){var gi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Nt.dashstyle=gi[f](a["stroke-dasharray"])?gi[a["stroke-dasharray"]]:B}Qt&&c.appendChild(Nt)}if(M.type=="text"){M.paper.canvas.style.display=B;var be=M.paper.span,Ue=x.font&&x.font.match(/\d+(?:\.\d*)?(?=px)/);E=be.style,x.font&&(E.font=x.font),x["font-family"]&&(E.fontFamily=x["font-family"]),x["font-weight"]&&(E.fontWeight=x["font-weight"]),x["font-style"]&&(E.fontStyle=x["font-style"]),Ue=L(x["font-size"]||Ue&&Ue[0])||10,E.fontSize=100*Ue+"px",M.textpath.string&&(be.innerHTML=$(M.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var We=be.getBoundingClientRect();M.W=x.w=(We.right-We.left)/100,M.H=x.h=(We.bottom-We.top)/100,M.X=x.x,M.Y=x.y+M.H/2,("x"in a||"y"in a)&&(M.path.v=h.format("m{0},{1}l{2},{1}",q(x.x*rt),q(x.y*rt),q(x.x*rt)+1));for(var mi=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ze=0,Bi=mi.length;Ze<Bi;Ze++)if(mi[Ze]in a){M._.dirty=1;break}switch(x["text-anchor"]){case"start":M.textpath.style["v-text-align"]="left",M.bbx=M.W/2;break;case"end":M.textpath.style["v-text-align"]="right",M.bbx=-M.W/2;break;default:M.textpath.style["v-text-align"]="center",M.bbx=0}M.textpath.style["v-text-kern"]=!0}},$t=function(l,a,c){l.attrs=l.attrs||{},l.attrs;var x=Math.pow,E="linear",C=".5 .5";if(l.attrs.gradient=a,a=(a=$(a).replace(h._radial_gradient,function(pt,vt,dt){return E="radial",vt&&dt&&(vt=L(vt),dt=L(dt),x(vt-.5,2)+x(dt-.5,2)>.25&&(dt=tt.sqrt(.25-x(vt-.5,2))*(2*(dt>.5)-1)+.5),C=vt+G+dt),B})).split(/\s*\-\s*/),E=="linear"){var R=a.shift();if(R=-L(R),isNaN(R))return null}var M=h._parseDots(a);if(!M)return null;if(l=l.shape||l.node,M.length){l.removeChild(c),c.on=!0,c.method="none",c.color=M[0].color,c.color2=M[M.length-1].color;for(var N=[],X=0,nt=M.length;X<nt;X++)M[X].offset&&N.push(M[X].offset+G+M[X].color);c.colors=N.length?N.join():"0% "+c.color,E=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=C,c.angle=0):(c.type="gradient",c.angle=(270-R)%360),l.appendChild(c)}return 1},ct=function(l,a){this[0]=this.node=l,l.raphael=!0,this.id=h._oid++,l.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=a,this.matrix=h.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!a.bottom&&(a.bottom=this),this.prev=a.top,a.top&&(a.top.next=this),a.top=this,this.next=null},xt=h.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(l){if(l==null)return this._.transform;var a,c=this.paper._viewBoxShift,x=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:B;c&&(a=l=$(l).replace(/\.{3}|\u2026/g,this._.transform||B)),h._extractTransform(this,x+l);var E,C=this.matrix.clone(),R=this.skew,M=this.node,N=~$(this.attrs.fill).indexOf("-"),X=!$(this.attrs.fill).indexOf("url(");if(C.translate(1,1),X||N||this.type=="image")if(R.matrix="1 0 0 1",R.offset="0 0",E=C.split(),N&&E.noRotation||!E.isSimple){M.style.filter=C.toFilter();var nt=this.getBBox(),pt=this.getBBox(1),vt=nt.x-pt.x,dt=nt.y-pt.y;M.coordorigin=vt*-rt+G+dt*-rt,Q(this,1,1,vt,dt,0)}else M.style.filter=B,Q(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else M.style.filter=B,R.matrix=$(C),R.offset=C.offset();return a!==null&&(this._.transform=a,h._extractTransform(this,a)),this},xt.rotate=function(l,a,c){if(this.removed)return this;if(l!=null){if((l=$(l).split(_t)).length-1&&(a=L(l[1]),c=L(l[2])),l=L(l[0]),c==null&&(a=c),a==null||c==null){var x=this.getBBox(1);a=x.x+x.width/2,c=x.y+x.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",l,a,c]])),this}},xt.translate=function(l,a){return this.removed?this:((l=$(l).split(_t)).length-1&&(a=L(l[1])),l=L(l[0])||0,a=+a||0,this._.bbox&&(this._.bbox.x+=l,this._.bbox.y+=a),this.transform(this._.transform.concat([["t",l,a]])),this)},xt.scale=function(l,a,c,x){if(this.removed)return this;if((l=$(l).split(_t)).length-1&&(a=L(l[1]),c=L(l[2]),x=L(l[3]),isNaN(c)&&(c=null),isNaN(x)&&(x=null)),l=L(l[0]),a==null&&(a=l),x==null&&(c=x),c==null||x==null)var E=this.getBBox(1);return c=c??E.x+E.width/2,x=x??E.y+E.height/2,this.transform(this._.transform.concat([["s",l,a,c,x]])),this._.dirtyT=1,this},xt.hide=function(){return!this.removed&&(this.node.style.display="none"),this},xt.show=function(){return!this.removed&&(this.node.style.display=B),this},xt.auxGetBBox=h.el.getBBox,xt.getBBox=function(){var l=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var a={},c=1/this.paper._viewBoxShift.scale;return a.x=l.x-this.paper._viewBoxShift.dx,a.x*=c,a.y=l.y-this.paper._viewBoxShift.dy,a.y*=c,a.width=l.width*c,a.height=l.height*c,a.x2=a.x+a.width,a.y2=a.y+a.height,a}return l},xt._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}},xt.remove=function(){if(!this.removed&&this.node.parentNode){for(var l in this.paper.__set__&&this.paper.__set__.exclude(this),h.eve.unbind("raphael.*.*."+this.id),h._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[l]=typeof this[l]=="function"?h._removedFactory(l):null;this.removed=!0}},xt.attr=function(l,a){if(this.removed)return this;if(l==null){var c={};for(var x in this.attrs)this.attrs[f](x)&&(c[x]=this.attrs[x]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(a==null&&h.is(l,"string")){if(l=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=l.split(_t),C={},R=0,M=E.length;R<M;R++)(l=E[R])in this.attrs?C[l]=this.attrs[l]:h.is(this.paper.customAttributes[l],"function")?C[l]=this.paper.customAttributes[l].def:C[l]=h._availableAttrs[l];return M-1?C:C[E[0]]}if(this.attrs&&a==null&&h.is(l,"array")){for(C={},R=0,M=l.length;R<M;R++)C[l[R]]=this.attr(l[R]);return C}var N;for(var X in a!=null&&((N={})[l]=a),a==null&&h.is(l,"object")&&(N=l),N)Mt("raphael.attr."+X+"."+this.id,this,N[X]);if(N){for(X in this.paper.customAttributes)if(this.paper.customAttributes[f](X)&&N[f](X)&&h.is(this.paper.customAttributes[X],"function")){var nt=this.paper.customAttributes[X].apply(this,[].concat(N[X]));for(var pt in this.attrs[X]=N[X],nt)nt[f](pt)&&(N[pt]=nt[pt])}N.text&&this.type=="text"&&(this.textpath.string=N.text),yt(this,N)}return this},xt.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&h._tofront(this,this.paper),this},xt.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),h._toback(this,this.paper)),this)},xt.insertAfter=function(l){return this.removed?this:(l.constructor==h.st.constructor&&(l=l[l.length-1]),l.node.nextSibling?l.node.parentNode.insertBefore(this.node,l.node.nextSibling):l.node.parentNode.appendChild(this.node),h._insertafter(this,l,this.paper),this)},xt.insertBefore=function(l){return this.removed?this:(l.constructor==h.st.constructor&&(l=l[0]),l.node.parentNode.insertBefore(this.node,l.node),h._insertbefore(this,l,this.paper),this)},xt.blur=function(l){var a=this.node.runtimeStyle,c=a.filter;return c=c.replace(ft,B),+l!=0?(this.attrs.blur=l,a.filter=c+G+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+l||1.5)+")",a.margin=h.format("-{0}px 0 0 -{0}px",q(+l||1.5))):(a.filter=c,a.margin=0,delete this.attrs.blur),this},h._engine.path=function(l,a){var c=Z("shape");c.style.cssText=it,c.coordsize=rt+G+rt,c.coordorigin=a.coordorigin;var x=new ct(c,a),E={fill:"none",stroke:"#000"};l&&(E.path=l),x.type="path",x.path=[],x.Path=B,yt(x,E),a.canvas&&a.canvas.appendChild(c);var C=Z("skew");return C.on=!0,c.appendChild(C),x.skew=C,x.transform(B),x},h._engine.rect=function(l,a,c,x,E,C){var R=h._rectPath(a,c,x,E,C),M=l.path(R),N=M.attrs;return M.X=N.x=a,M.Y=N.y=c,M.W=N.width=x,M.H=N.height=E,N.r=C,N.path=R,M.type="rect",M},h._engine.ellipse=function(l,a,c,x,E){var C=l.path();return C.attrs,C.X=a-x,C.Y=c-E,C.W=2*x,C.H=2*E,C.type="ellipse",yt(C,{cx:a,cy:c,rx:x,ry:E}),C},h._engine.circle=function(l,a,c,x){var E=l.path();return E.attrs,E.X=a-x,E.Y=c-x,E.W=E.H=2*x,E.type="circle",yt(E,{cx:a,cy:c,r:x}),E},h._engine.image=function(l,a,c,x,E,C){var R=h._rectPath(c,x,E,C),M=l.path(R).attr({stroke:"none"}),N=M.attrs,X=M.node,nt=X.getElementsByTagName("fill")[0];return N.src=a,M.X=N.x=c,M.Y=N.y=x,M.W=N.width=E,M.H=N.height=C,N.path=R,M.type="image",nt.parentNode==X&&X.removeChild(nt),nt.rotate=!0,nt.src=a,nt.type="tile",M._.fillpos=[c,x],M._.fillsize=[E,C],X.appendChild(nt),Q(M,1,1,0,0,0),M},h._engine.text=function(l,a,c,x){var E=Z("shape"),C=Z("path"),R=Z("textpath");a=a||0,c=c||0,x=x||"",C.v=h.format("m{0},{1}l{2},{1}",q(a*rt),q(c*rt),q(a*rt)+1),C.textpathok=!0,R.string=$(x),R.on=!0,E.style.cssText=it,E.coordsize=rt+G+rt,E.coordorigin="0 0";var M=new ct(E,l),N={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:x};M.shape=E,M.path=C,M.textpath=R,M.type="text",M.attrs.text=$(x),M.attrs.x=a,M.attrs.y=c,M.attrs.w=1,M.attrs.h=1,yt(M,N),E.appendChild(R),E.appendChild(C),l.canvas.appendChild(E);var X=Z("skew");return X.on=!0,E.appendChild(X),M.skew=X,M.transform(B),M},h._engine.setSize=function(l,a){var c=this.canvas.style;return this.width=l,this.height=a,l==+l&&(l+="px"),a==+a&&(a+="px"),c.width=l,c.height=a,c.clip="rect(0 "+l+" "+a+" 0)",this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox),this},h._engine.setViewBox=function(l,a,c,x,E){h.eve("raphael.setViewBox",this,this._viewBox,[l,a,c,x,E]);var C,R,M=this.getSize(),N=M.width,X=M.height;return E&&(c*(C=X/x)<N&&(l-=(N-c*C)/2/C),x*(R=N/c)<X&&(a-=(X-x*R)/2/R)),this._viewBox=[l,a,c,x,!!E],this._viewBoxShift={dx:-l,dy:-a,scale:M},this.forEach(function(nt){nt.transform("...")}),this},h._engine.initWin=function(l){var a=l.document;a.styleSheets.length<31?a.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):a.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!a.namespaces.rvml&&a.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),Z=function(c){return a.createElement("<rvml:"+c+' class="rvml">')}}catch{Z=function(x){return a.createElement("<"+x+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},h._engine.initWin(h._g.win),h._engine.create=function(){var l=h._getContainer.apply(0,arguments),a=l.container,c=l.height,x=l.width,E=l.x,C=l.y;if(!a)throw new Error("VML container not found.");var R=new h._Paper,M=R.canvas=h._g.doc.createElement("div"),N=M.style;return E=E||0,C=C||0,x=x||512,c=c||342,R.width=x,R.height=c,x==+x&&(x+="px"),c==+c&&(c+="px"),R.coordsize=216e5+G+216e5,R.coordorigin="0 0",R.span=h._g.doc.createElement("span"),R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",M.appendChild(R.span),N.cssText=h.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",x,c),a==1?(h._g.doc.body.appendChild(M),N.left=E+"px",N.top=C+"px",N.position="absolute"):a.firstChild?a.insertBefore(M,a.firstChild):a.appendChild(M),R.renderfix=function(){},R},h.prototype.clear=function(){h.eve("raphael.clear",this),this.canvas.innerHTML=B,this.span=h._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},h.prototype.remove=function(){for(var l in h.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[l]=typeof this[l]=="function"?h._removedFactory(l):null;return!0};var Zt=h.st;for(var p in xt)xt[f](p)&&!Zt[f](p)&&(Zt[p]=(function(l){return function(){var a=arguments;return this.forEach(function(c){c[l].apply(c,a)})}})(p))}}).apply(y,_))===void 0||(u.exports=k)}])})})(on)),on.exports}var pa=da();const zi=wr(pa);class ga{constructor(s){if(le(s))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=s.element;const u=this.node.dataset?this.node.dataset:{};(le(s.defaults)?!1:s.defaults)!==!1&&(s=ma({}),delete s.defaults),this.config={element:s.element,classId:va(),value:ht("value",s,u,0,"float"),defaults:ht("defaults",s,u,0,!1),parentNode:ht("parentNode",s,u,null),width:ht("width",s,u,null),height:ht("height",s,u,null),valueFontColor:ht("valueFontColor",s,u,"#010101"),valueFontFamily:ht("valueFontFamily",s,u,"Arial"),symbol:ht("symbol",s,u,""),min:ht("min",s,u,0,"float"),minTxt:ht("minTxt",s,u,!1),max:ht("max",s,u,100,"float"),maxTxt:ht("maxTxt",s,u,!1),reverse:ht("reverse",s,u,!1),humanFriendlyDecimal:ht("humanFriendlyDecimal",s,u,0),textRenderer:ht("textRenderer",s,u,null),onAnimationEnd:ht("onAnimationEnd",s,u,null),gaugeWidthScale:ht("gaugeWidthScale",s,u,1),gaugeColor:ht("gaugeColor",s,u,"#edebeb"),label:ht("label",s,u,""),labelFontColor:ht("labelFontColor",s,u,"#b3b3b3"),labelFontFamily:ht("labelFontFamily",s,u,"Arial"),shadowOpacity:ht("shadowOpacity",s,u,.2),shadowSize:ht("shadowSize",s,u,5),shadowVerticalOffset:ht("shadowVerticalOffset",s,u,3),levelColors:ht("levelColors",s,u,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ht("startAnimationTime",s,u,700),startAnimationType:ht("startAnimationType",s,u,">"),refreshAnimationTime:ht("refreshAnimationTime",s,u,700),refreshAnimationType:ht("refreshAnimationType",s,u,">"),donutStartAngle:ht("donutStartAngle",s,u,90),valueMinFontSize:ht("valueMinFontSize",s,u,16),labelMinFontSize:ht("labelMinFontSize",s,u,10),minLabelMinFontSize:ht("minLabelMinFontSize",s,u,10),maxLabelMinFontSize:ht("maxLabelMinFontSize",s,u,10),hideValue:ht("hideValue",s,u,!1),hideMinMax:ht("hideMinMax",s,u,!1),showInnerShadow:ht("showInnerShadow",s,u,!1),humanFriendly:ht("humanFriendly",s,u,!1),noGradient:ht("noGradient",s,u,!1),donut:ht("donut",s,u,!1),relativeGaugeSize:ht("relativeGaugeSize",s,u,!1),counter:ht("counter",s,u,!1),decimals:ht("decimals",s,u,0),customSectors:ht("customSectors",s,u,{}),formatNumber:ht("formatNumber",s,u,!1),pointer:ht("pointer",s,u,!1),pointerOptions:ht("pointerOptions",s,u,{}),displayRemaining:ht("displayRemaining",s,u,!1)};let b,_,k,h,f,$,L,tt,q,et,W,U,_t,Mt,G,B,K,lt,ft;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=ht("value",s,u,-1,"float"),this.canvas=zi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),b=200,_=200):(this.canvas.setViewBox(0,0,200,100,!0),b=200,_=100):this.config.width!==null&&this.config.height!==null?(b=this.config.width,_=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),b=200,_=100):(b=Number(Fr(this.config.element,"width").slice(0,-2))*1,_=Number(Fr(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(b>_?(h=_,k=h):(b<_,k=b,h=k),$=(b-k)/2,L=(_-h)/2,tt=h/6.4>16?h/5.4:18,q=$+k/2,this.config.label!==""?et=L+h/1.85:et=L+h/1.7,W=h/16>10?h/16:10,U=$+k/2,_t=et+W,Mt=h/16>10?h/16:10,G=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,K=h/16>10?h/16:10,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ft=_t):(b>_?(h=_,k=h*2,k>b&&(f=k/b,k=k/f,h=h/f)):b<_?(k=b,h=k/2):(k=b,h=k*.5),$=(b-k)/2,L=(_-h)/2,tt=h/6.5>this.config.valueMinFontSize?h/6.5:this.config.valueMinFontSize,q=$+k/2,et=L+h/1.275,W=h/16>this.config.labelMinFontSize?h/16:this.config.labelMinFontSize,U=$+k/2,_t=et+tt/2+5,Mt=h/16>this.config.minLabelMinFontSize?h/16:this.config.minLabelMinFontSize,G=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,K=h/16>this.config.maxLabelMinFontSize?h/16:this.config.maxLabelMinFontSize,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ft=_t),this.params={canvasW:b,canvasH:_,widgetW:k,widgetH:h,dx:$,dy:L,valueFontSize:tt,valueX:q,valueY:et,labelFontSize:W,labelX:U,labelY:_t,minFontSize:Mt,minX:G,minY:B,maxFontSize:K,maxX:lt,maxY:ft},this.canvas.customAttributes.pki=H=>{let Q=this.config.min,Z=this.config.max;const ot=this.params.widgetW,yt=this.params.widgetH,$t=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Zt=this.config.donut;let p,l,a,c,x,E,C,R,M,N;return Q<0&&(Z-=Q,H-=Q,Q=0),Zt?(p=(1-2*(H-Q)/(Z-Q))*Math.PI,l=ot/2-ot/30,a=l-ot/6.666666666666667*xt,c=ot/2+$t,x=yt/2+ct,E=c+l*Math.cos(p),C=x-l*Math.sin(p),R=c+a*Math.cos(p),M=x-a*Math.sin(p),N="M"+(c-a)+","+x+" ",N+="L"+(c-l)+","+x+" ",H-Q>(Z-Q)/2&&(N+="A"+l+","+l+" 0 0 1 "+(c+l)+","+x+" "),N+="A"+l+","+l+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",H-Q>(Z-Q)/2&&(N+="A"+a+","+a+" 0 0 0 "+(c+a)+","+x+" "),N+="A"+a+","+a+" 0 0 0 "+(c-a)+","+x+" ",N+="Z ",{path:N}):(p=(1-(H-Q)/(Z-Q))*Math.PI,l=ot/2-ot/10,a=l-ot/6.666666666666667*xt,c=ot/2+$t,x=yt/1.25+ct,E=c+l*Math.cos(p),C=x-l*Math.sin(p),R=c+a*Math.cos(p),M=x-a*Math.sin(p),N="M"+(c-a)+","+x+" ",N+="L"+(c-l)+","+x+" ",N+="A"+l+","+l+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",N+="A"+a+","+a+" 0 0 0 "+(c-a)+","+x+" ",N+="Z ",{path:N})},this.canvas.customAttributes.ndl=function(H){const Q=this.config.min,Z=this.config.max,ot=this.params.widgetW,yt=this.params.widgetH,$t=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Zt=this.config.donut;let p=ot*3.5/100,l=ot/15,a=ot/100;this.config.pointerOptions.toplength!=null&&this.config.pointerOptions.toplength!==void 0&&(p=this.config.pointerOptions.toplength),this.config.pointerOptions.bottomlength!=null&&this.config.pointerOptions.bottomlength!==void 0&&(l=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(a=this.config.pointerOptions.bottomwidth);let c,x,E,C,R,M,N,X,nt,pt,vt,dt,kt,Ct,bt,at,Ft;return Zt?(c=(1-2*(H-Q)/(Z-Q))*Math.PI,x=ot/2-ot/30,E=x-ot/6.666666666666667*xt,C=yt/2+ct,R=ot/2+$t+x*Math.cos(c),M=yt-(yt-C)-x*Math.sin(c),N=ot/2+$t+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),nt=R+p*Math.cos(c),pt=M-p*Math.sin(c),vt=N-l*Math.cos(c),dt=X+l*Math.sin(c),kt=vt+a*Math.sin(c),Ct=dt+a*Math.cos(c),bt=vt-a*Math.sin(c),at=dt-a*Math.cos(c),Ft="M"+kt+","+Ct+" ",Ft+="L"+bt+","+at+" ",Ft+="L"+nt+","+pt+" ",Ft+="Z ",{path:Ft}):(c=(1-(H-Q)/(Z-Q))*Math.PI,x=ot/2-ot/10,E=x-ot/6.666666666666667*xt,C=yt/1.25+ct,R=ot/2+$t+x*Math.cos(c),M=yt-(yt-C)-x*Math.sin(c),N=ot/2+$t+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),nt=R+p*Math.cos(c),pt=M-p*Math.sin(c),vt=N-l*Math.cos(c),dt=X+l*Math.sin(c),kt=vt+a*Math.sin(c),Ct=dt+a*Math.cos(c),bt=vt-a*Math.sin(c),at=dt-a*Math.cos(c),Ft="M"+kt+","+Ct+" ",Ft+="L"+bt+","+at+" ",Ft+="L"+nt+","+pt+" ",Ft+="Z ",{path:Ft})},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:Mr(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:le(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":le(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":le(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:le(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"}),Wt(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"}),Wt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let I=this.config.min;this.config.reverse&&(I=this.config.max),this.txtMinimum=I,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Le(I,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Re(I)),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"}),Wt(this.txtMin,this.params.minFontSize,this.params.minY);let it=this.config.max;this.config.reverse&&(it=this.config.min),this.txtMaximum=it,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Le(it,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Re(it)),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"}),Wt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],wt="http://www.w3.org/2000/svg";if(pi!==void 0&&pi<9||(pi!==void 0?Sr(()=>{this.generateShadow(wt,rt)}):this.generateShadow(wt,rt)),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=Le(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=Re(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=((this.config.max-this.originalValue)*1).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(this.originalValue*1).toFixed(this.config.decimals)+this.config.symbol,this.config.counter===!0){const H=()=>{let Z=this.level.attr("pki")[0];this.config.reverse&&(Z=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(Z))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(Z))):this.config.humanFriendly?this.txtValue.attr("text",Le(Math.floor(Z),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",Re(Math.floor(Z))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-Z)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(Z*1).toFixed(this.config.decimals)+this.config.symbol),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY),Z=null},Q=()=>{this.txtValue.attr({text:this.originalValue}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",Q),this.bindEvent("raphael.anim.frame",H)}else{const H=()=>{this.txtValue.attr({text:this.originalValue}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",H)}let st=this.config.value;this.config.reverse&&(st=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[st]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[st]},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(s,u){s+="."+this.level.id,this.events[s]&&zi.eve.off(s,this.events[s]),zi.eve.on(s,u),this.events[s]=u}refresh(s,u,y,b){let _;u=Ar(u)?u:null,y=Ar(y)?y:null,b=b||null,b!==null&&(this.config.label=b,this.txtLabel.attr({text:this.config.label}),Wt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),y!==null&&(this.config.min=y,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Le(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Re(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Wt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Wt(this.txtMin,this.params.minFontSize,this.params.minY))),u!==null&&(this.config.max=u,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Le(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Re(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Wt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Wt(this.txtMax,this.params.maxFontSize,this.params.maxY))),_=s,s*1>this.config.max*1&&(s=this.config.max*1),s*1<this.config.min*1&&(s=this.config.min*1);const k=Mr(s,(s-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(_)!==!1?_=this.config.textRenderer(_):this.config.humanFriendly?_=Le(_,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?_=Re((_*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?_=((this.config.max-_)*1).toFixed(this.config.decimals)+this.config.symbol:_=(_*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=_,this.config.value=s*1,this.config.counter||(this.txtValue.attr({text:_}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY));let h=this.config.value;this.config.reverse&&(h=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[h],fill:k},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[h]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(s,u){const y=this;if(s instanceof Object)for(const b in s)u=s[b],Cr(y,b,u);else Cr(y,s,u)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const s in this.events)zi.eve.off(s,this.events[s]);this.events={}}generateShadow(s,u){const y="inner-shadow-"+(this.config.element.id||this.config.classId),b=document.createElementNS(s,"filter");b.setAttribute("id",y),u.appendChild(b);const _=document.createElementNS(s,"feOffset");_.setAttribute("dx","0"),_.setAttribute("dy",this.config.shadowVerticalOffset),b.appendChild(_);const k=document.createElementNS(s,"feGaussianBlur");k.setAttribute("result","offset-blur"),k.setAttribute("stdDeviation",this.config.shadowSize),b.appendChild(k);const h=document.createElementNS(s,"feComposite");h.setAttribute("operator","out"),h.setAttribute("in","SourceGraphic"),h.setAttribute("in2","offset-blur"),h.setAttribute("result","inverse"),b.appendChild(h);const f=document.createElementNS(s,"feFlood");f.setAttribute("flood-color","black"),f.setAttribute("flood-opacity",this.config.shadowOpacity),f.setAttribute("result","color"),b.appendChild(f);const $=document.createElementNS(s,"feComposite");$.setAttribute("operator","in"),$.setAttribute("in","color"),$.setAttribute("in2","inverse"),$.setAttribute("result","shadow"),b.appendChild($);const L=document.createElementNS(s,"feComposite");L.setAttribute("operator","over"),L.setAttribute("in","shadow"),L.setAttribute("in2","SourceGraphic"),b.appendChild(L),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+y+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+y+")"))}}function Cr(r,s,u){switch(s){case"valueFontColor":if(!$r(u)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}r.txtValue.attr({fill:u});break;case"labelFontColor":if(!$r(u)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}r.txtMin.attr({fill:u}),r.txtMax.attr({fill:u}),r.txtLabel.attr({fill:u});break;default:console.log(`* justgage: "${s}" is not a supported update setting`)}}function ht(r,s,u,y,b,_){let k=y,h=!1;if(!le(r)&&(!le(u)&&typeof u=="object"&&r in u?(k=u[r],h=!0):!le(s)&&typeof s=="object"&&r in s?(k=s[r],h=!0):k=y,h===!0&&!le(b)))switch(b){case"int":k=parseInt(k,10);break;case"float":k=parseFloat(k);break}return k}function le(r){return r==null}function Mr(r,s,u,y,b){let _,k,h,f,$,L,tt,q,et,W,U;const _t=b&&b.ranges&&b.ranges.length>0;if(y=y||_t,_t){b.percents===!0&&(r=s*100);for(let K=0;K<b.ranges.length;K++)if(r>=b.ranges[K].lo&&r<=b.ranges[K].hi)return b.ranges[K].color}const Mt=u.length;if(Mt===1)return u[0];const G=y?1/Mt:1/(Mt-1),B=[];for(let K=0;K<u.length;K++)_=y?G*(K+1):G*K,k=parseInt(ln(u[K]).substring(0,2),16),h=parseInt(ln(u[K]).substring(2,4),16),f=parseInt(ln(u[K]).substring(4,6),16),B[K]={pct:_,color:{r:k,g:h,b:f}};if(s===0)return"rgb("+[B[0].color.r,B[0].color.g,B[0].color.b].join(",")+")";for(let K=0;K<B.length;K++)if(s<=B[K].pct)return y?"rgb("+[B[K].color.r,B[K].color.g,B[K].color.b].join(",")+")":($=B[K-1],L=B[K],tt=L.pct-$.pct,q=(s-$.pct)/tt,et=1-q,W=q,U={r:Math.floor($.color.r*et+L.color.r*W),g:Math.floor($.color.g*et+L.color.g*W),b:Math.floor($.color.b*et+L.color.b*W)},"rgb("+[U.r,U.g,U.b].join(",")+")")}function Wt(r,s,u){(!pi||pi>9)&&r.node.firstChild.attributes.dy&&(r.node.firstChild.attributes.dy.value=0)}function ln(r){return r.charAt(0)==="#"?r.substring(1,7):r}function $r(r){return typeof r=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(r)}function Le(r,s){const u=Math.pow(10,s),y=" KMGTPE";let b=0;const _=1e3;for(;(r>=_||r<=-_)&&++b<y.length;)r=r/_;return b=b>=y.length?y.length-1:b,Math.round(r*u)/u+y[b]}function Re(r){const s=r.toString().split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),s.join(".")}function Fr(r,s){let u="";return document.defaultView&&document.defaultView.getComputedStyle?u=document.defaultView.getComputedStyle(r,"").getPropertyValue(s):r.currentStyle&&(s=s.replace(/-(\w)/g,function(y,b){return b.toUpperCase()}),u=r.currentStyle[s]),u}function Sr(r){document.createElementNS!==void 0?r():setTimeout(function(){Sr(r)},100)}const pi=(function(){let r=3;const s=document.createElement("div"),u=s.getElementsByTagName("i");for(;u[0];)s.innerHTML="<!--[if gt IE "+ ++r+"]><i></i><![endif]-->";return r>4?r:void 0})();function ma(r){r=r||{};for(let s=1;s<arguments.length;s++)if(arguments[s])for(const u in arguments[s])Object.prototype.hasOwnProperty.call(arguments[s],u)&&(r[u]=arguments[s][u]);return r}function Ar(r){return r!=null&&!isNaN(r)}function va(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const s=Math.random()*16|0;return(r==="x"?s:s&3|8).toString(16)})}var xa=Js('<div part="gauge" style="width:100%" id="gauge"></div>');const ya={hash:"svelte-45h",code:""};function Tr(r,s){Ln(s,!0),sa(r,ya);let u=ae(void 0),y=ae(void 0),b=_r(s,"id",7,""),_=_r(s,"options");Kn(()=>{_()&&typeof _()=="string"&&(_(JSON.parse(_())),Rt(u)&&Rt(y)&&k())});function k(){if(!Rt(u))return console.error("cannot recreateGauge gauge");Rt(y)&&Rt(y).destroy(),Ht(y,void 0),h()}function h(){if(!_()||!Rt(u))return console.error("cannot create gauge");if(Rt(y))console.error("cannot create html gauge");else{const tt=Object.assign({element:Rt(u)},_());Ht(y,new ga(tt),!0)}}yr(()=>{Ht(u,s.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Rt(u)),h()}),ra(()=>{Rt(y)&&Rt(y).destroy(),Ht(y,void 0)});var f={get id(){return b()},set id(tt=""){b(tt),Ki()},get options(){return _()},set options(tt){_(tt),Ki()}},$=xa(),L=$s(()=>ca(k,200));return Qs("resize",tn,function(...tt){Rt(L)?.apply(this,tt)}),mr(r,$),Rn(f)}customElements.define("hb-gauge",ua(Tr,{id:{},options:{}},[],[],!0)),vn.Component=Tr,Object.defineProperty(vn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
7
+ //# sourceMappingURL=main.iife.js.map