@htmlbricks/hb-gauge 0.62.0 → 0.62.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 +6 -6
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(Mn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const os=2,$n="[",Sn="[!",Fn="]",Ai={},Vt=Symbol(),An=!1;var as=Array.isArray,ls=Array.prototype.indexOf,us=Array.from,Ti=Object.keys,Ni=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,fs=Object.prototype,hs=Array.prototype,cs=Object.getPrototypeOf,Tn=Object.isExtensible;function ds(r){for(var i=0;i<r.length;i++)r[i]()}function ps(){var r,i,l=new Promise((g,_)=>{r=g,i=_});return{promise:l,resolve:r,reject:i}}const Bt=2,en=4,Nn=8,ve=16,we=32,ke=64,Li=128,oe=512,It=1024,Gt=2048,me=4096,Ee=8192,ze=16384,nn=32768,Ri=65536,Ln=1<<17,Rn=1<<18,Ue=1<<19,gs=1<<20,hi=32768,rn=1<<21,zn=1<<22,ci=1<<23,sn=Symbol("$state"),vs=Symbol("legacy props"),Bn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},zi=8;function On(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ms(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ys(r){throw new Error("https://svelte.dev/e/effect_orphan")}function _s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Pn(r){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ae=!1;function Bi(r){ae=r}let Dt;function di(r){if(r===null)throw Pn(),Ai;return Dt=r}function Vn(){return di(Ze(Dt))}function $s(r=1){if(ae){for(var i=r,l=Dt;i--;)l=Ze(l);Dt=l}}function Ss(r=!0){for(var i=0,l=Dt;;){if(l.nodeType===zi){var g=l.data;if(g===Fn){if(i===0)return l;i-=1}else(g===$n||g===Sn)&&(i+=1)}var _=Ze(l);r&&l.remove(),l=_}}function In(r){return r===this.v}function Fs(r,i){return r!=r?i==i:r!==i||r!==null&&typeof r=="object"||typeof r=="function"}function As(r){return!Fs(r,this.v)}let Ts=!1,Ut=null;function Oi(r){Ut=r}function Dn(r,i=!1,l){Ut={p:Ut,i:!1,c:null,e:null,s:r,x:null,l:null}}function jn(r){var i=Ut,l=i.e;if(l!==null){i.e=null;for(var g of l)lr(g)}return r!==void 0&&(i.x=r),i.i=!0,Ut=i.p,r??{}}function Yn(){return!0}let Be=[];function qn(){var r=Be;Be=[],ds(r)}function Pi(r){if(Be.length===0&&!pi){var i=Be;queueMicrotask(()=>{i===Be&&qn()})}Be.push(r)}function Ns(){for(;Be.length>0;)qn()}function Xn(r){var i=Nt;if(i===null)return St.f|=ci,r;if((i.f&nn)===0){if((i.f&Li)===0)throw r;i.b.error(r)}else Vi(r,i)}function Vi(r,i){for(;i!==null;){if((i.f&Li)!==0)try{i.b.error(r);return}catch(l){r=l}i=i.parent}throw r}const Ii=new Set;let Wt=null,Zt=null,he=[],Di=null,on=!1,pi=!1;class le{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#l=0;#s=0;#u=null;#o=[];#r=[];skipped_effects=new Set;is_fork=!1;process(i){he=[],this.apply();var l={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const g of i)this.#i(g,l);this.is_fork||this.#a(),this.#s>0||this.is_fork?(this.#n(l.effects),this.#n(l.render_effects),this.#n(l.block_effects)):(Wt=null,Gn(l.render_effects),Gn(l.effects),this.#u?.resolve()),Zt=null}#i(i,l){i.f^=It;for(var g=i.first;g!==null;){var _=g.f,b=(_&(we|ke))!==0,w=b&&(_&It)!==0,h=w||(_&Ee)!==0||this.skipped_effects.has(g);if((g.f&Li)!==0&&g.b?.is_pending()&&(l={parent:l,effect:g,effects:[],render_effects:[],block_effects:[]}),!h&&g.fn!==null){b?g.f^=It:(_&en)!==0?l.effects.push(g):xi(g)&&((g.f&ve)!==0&&l.block_effects.push(g),yi(g));var f=g.first;if(f!==null){g=f;continue}}var $=g.parent;for(g=g.next;g===null&&$!==null;)$===l.effect&&(this.#n(l.effects),this.#n(l.render_effects),this.#n(l.block_effects),l=l.parent),g=$.next,$=$.parent}}#n(i){for(const l of i)((l.f&Gt)!==0?this.#o:this.#r).push(l),Yt(l,It)}capture(i,l){this.previous.has(i)||this.previous.set(i,l),(i.f&ci)===0&&(this.current.set(i,i.v),Zt?.set(i,i.v))}activate(){Wt=this,this.apply()}deactivate(){Wt=null,Zt=null}flush(){if(this.activate(),he.length>0){if(Hn(),Wt!==null&&Wt!==this)return}else this.#l===0&&this.process([]);this.deactivate()}discard(){for(const i of this.#t)i(this);this.#t.clear()}#a(){if(this.#s===0){for(const i of this.#e)i();this.#e.clear()}this.#l===0&&this.#f()}#f(){if(Ii.size>1){this.previous.clear();var i=Zt,l=!0,g={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const _ of Ii){if(_===this){l=!1;continue}const b=[];for(const[h,f]of this.current){if(_.current.has(h))if(l&&f!==_.current.get(h))_.current.set(h,f);else continue;b.push(h)}if(b.length===0)continue;const w=[..._.current.keys()].filter(h=>!this.current.has(h));if(w.length>0){const h=new Set,f=new Map;for(const $ of b)Un($,w,h,f);if(he.length>0){Wt=_,_.apply();for(const $ of he)_.#i($,g);he=[],_.deactivate()}}}Wt=null,Zt=i}this.committed=!0,Ii.delete(this)}increment(i){this.#l+=1,i&&(this.#s+=1)}decrement(i){this.#l-=1,i&&(this.#s-=1),this.revive()}revive(){for(const i of this.#o)Yt(i,Gt),We(i);for(const i of this.#r)Yt(i,me),We(i);this.#o=[],this.#r=[],this.flush()}oncommit(i){this.#e.add(i)}ondiscard(i){this.#t.add(i)}settled(){return(this.#u??=ps()).promise}static ensure(){if(Wt===null){const i=Wt=new le;Ii.add(Wt),pi||le.enqueue(()=>{Wt===i&&i.flush()})}return Wt}static enqueue(i){Pi(i)}apply(){}}function an(r){var i=pi;pi=!0;try{for(var l;;){if(Ns(),he.length===0&&(Wt?.flush(),he.length===0))return Di=null,l;Hn()}}finally{pi=i}}function Hn(){var r=Pe;on=!0;try{var i=0;for(pr(!0);he.length>0;){var l=le.ensure();if(i++>1e3){var g,_;Ls()}l.process(he),Ce.clear()}}finally{on=!1,pr(r),Di=null}}function Ls(){try{_s()}catch(r){Vi(r,Di)}}let xe=null;function Gn(r){var i=r.length;if(i!==0){for(var l=0;l<i;){var g=r[l++];if((g.f&(ze|Ee))===0&&xi(g)&&(xe=new Set,yi(g),g.deps===null&&g.first===null&&g.nodes_start===null&&(g.teardown===null&&g.ac===null?cr(g):g.fn=null),xe?.size>0)){Ce.clear();for(const _ of xe){if((_.f&(ze|Ee))!==0)continue;const b=[_];let w=_.parent;for(;w!==null;)xe.has(w)&&(xe.delete(w),b.push(w)),w=w.parent;for(let h=b.length-1;h>=0;h--){const f=b[h];(f.f&(ze|Ee))===0&&yi(f)}}xe.clear()}}xe=null}}function Un(r,i,l,g){if(!l.has(r)&&(l.add(r),r.reactions!==null))for(const _ of r.reactions){const b=_.f;(b&Bt)!==0?Un(_,i,l,g):(b&(zn|ve))!==0&&(b&Gt)===0&&Wn(_,i,g)&&(Yt(_,Gt),We(_))}}function Wn(r,i,l){const g=l.get(r);if(g!==void 0)return g;if(r.deps!==null)for(const _ of r.deps){if(i.includes(_))return!0;if((_.f&Bt)!==0&&Wn(_,i,l))return l.set(_,!0),!0}return l.set(r,!1),!1}function We(r){for(var i=Di=r;i.parent!==null;){i=i.parent;var l=i.f;if(on&&i===Nt&&(l&ve)!==0&&(l&Rn)===0)return;if((l&(ke|we))!==0){if((l&It)===0)return;i.f^=It}}he.push(i)}function Rs(r){let i=0,l=ji(0),g;return()=>{Yi()&&(Lt(l),ur(()=>(i===0&&(g=dn(()=>r(()=>gi(l)))),i+=1,()=>{Pi(()=>{i-=1,i===0&&(g?.(),g=void 0,gi(l))})})))}}var zs=Ri|Ue|Li;function Bs(r,i,l){new Os(r,i,l)}class Os{parent;#e=!1;#t;#l=ae?Dt:null;#s;#u;#o;#r=null;#i=null;#n=null;#a=null;#f=null;#d=0;#h=0;#p=!1;#c=null;#y=Rs(()=>(this.#c=ji(this.#d),()=>{this.#c=null}));constructor(i,l,g){this.#t=i,this.#s=l,this.#u=g,this.parent=Nt.b,this.#e=!!this.#s.pending,this.#o=Ws(()=>{if(Nt.b=this,ae){const b=this.#l;Vn(),b.nodeType===zi&&b.data===Sn?this.#b():this.#_()}else{var _=this.#m();try{this.#r=Oe(()=>g(_))}catch(b){this.error(b)}this.#h>0?this.#v():this.#e=!1}return()=>{this.#f?.remove()}},zs),ae&&(this.#t=Dt)}#_(){try{this.#r=Oe(()=>this.#u(this.#t))}catch(i){this.error(i)}this.#e=!1}#b(){const i=this.#s.pending;i&&(this.#i=Oe(()=>i(this.#t)),le.enqueue(()=>{var l=this.#m();this.#r=this.#g(()=>(le.ensure(),Oe(()=>this.#u(l)))),this.#h>0?this.#v():(qi(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#m(){var i=this.#t;return this.#e&&(this.#f=sr(),this.#t.before(this.#f),i=this.#f),i}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#g(i){var l=Nt,g=St,_=Ut;$e(this.#o),ne(this.#o),Oi(this.#o.ctx);try{return i()}catch(b){return Xn(b),null}finally{$e(l),ne(g),Oi(_)}}#v(){const i=this.#s.pending;this.#r!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#f),Js(this.#r,this.#a)),this.#i===null&&(this.#i=Oe(()=>i(this.#t)))}#x(i){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(i);return}this.#h+=i,this.#h===0&&(this.#e=!1,this.#i&&qi(this.#i,()=>{this.#i=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(i){this.#x(i),this.#d+=i,this.#c&&tr(this.#c,this.#d)}get_effect_pending(){return this.#y(),Lt(this.#c)}error(i){var l=this.#s.onerror;let g=this.#s.failed;if(this.#p||!l&&!g)throw i;this.#r&&(ue(this.#r),this.#r=null),this.#i&&(ue(this.#i),this.#i=null),this.#n&&(ue(this.#n),this.#n=null),ae&&(di(this.#l),$s(),di(Ss()));var _=!1,b=!1;const w=()=>{if(_){Ms();return}_=!0,b&&Cs(),le.ensure(),this.#d=0,this.#n!==null&&qi(this.#n,()=>{this.#n=null}),this.#e=this.has_pending_snippet(),this.#r=this.#g(()=>(this.#p=!1,Oe(()=>this.#u(this.#t)))),this.#h>0?this.#v():this.#e=!1};var h=St;try{ne(null),b=!0,l?.(i,w),b=!1}catch(f){Vi(f,this.#o&&this.#o.parent)}finally{ne(h)}g&&Pi(()=>{this.#n=this.#g(()=>{le.ensure(),this.#p=!0;try{return Oe(()=>{g(this.#t,()=>i,()=>w)})}catch(f){return Vi(f,this.#o.parent),null}finally{this.#p=!1}})})}}function Zn(r){var i=Bt|Gt,l=St!==null&&(St.f&Bt)!==0?St:null;return Nt!==null&&(Nt.f|=Ue),{ctx:Ut,deps:null,effects:null,equals:In,f:i,fn:r,reactions:null,rv:0,v:Vt,wv:0,parent:l??Nt,ac:null}}function Ps(r){const i=Zn(r);return vr(i),i}function Kn(r){var i=r.effects;if(i!==null){r.effects=null;for(var l=0;l<i.length;l+=1)ue(i[l])}}function Vs(r){for(var i=r.parent;i!==null;){if((i.f&Bt)===0)return i;i=i.parent}return null}function ln(r){var i,l=Nt;$e(Vs(r));try{r.f&=~hi,Kn(r),i=br(r)}finally{$e(l)}return i}function Qn(r){var i=ln(r);if(r.equals(i)||(r.v=i,r.wv=yr()),!Ve)if(Zt!==null)Yi()&&Zt.set(r,r.v);else{var l=(r.f&oe)===0?me:It;Yt(r,l)}}let un=new Set;const Ce=new Map;let Jn=!1;function ji(r,i){var l={f:0,v:r,reactions:null,equals:In,rv:0,wv:0};return l}function ce(r,i){const l=ji(r);return vr(l),l}function Is(r,i=!1,l=!0){const g=ji(r);return i||(g.equals=As),g}function Kt(r,i,l=!1){St!==null&&(!de||(St.f&Ln)!==0)&&Yn()&&(St.f&(Bt|ve|zn|Ln))!==0&&!ye?.includes(r)&&Es();let g=l?vi(i):i;return tr(r,g)}function tr(r,i){if(!r.equals(i)){var l=r.v;Ve?Ce.set(r,i):Ce.set(r,l),r.v=i;var g=le.ensure();g.capture(r,l),(r.f&Bt)!==0&&((r.f&Gt)!==0&&ln(r),Yt(r,(r.f&oe)!==0?It:me)),r.wv=yr(),er(r,Gt),Nt!==null&&(Nt.f&It)!==0&&(Nt.f&(we|ke))===0&&(re===null?to([r]):re.push(r)),!g.is_fork&&un.size>0&&!Jn&&Ds()}return i}function Ds(){Jn=!1;const r=Array.from(un);for(const i of r)(i.f&It)!==0&&Yt(i,me),xi(i)&&yi(i);un.clear()}function gi(r){Kt(r,r.v+1)}function er(r,i){var l=r.reactions;if(l!==null)for(var g=l.length,_=0;_<g;_++){var b=l[_],w=b.f,h=(w&Gt)===0;if(h&&Yt(b,i),(w&Bt)!==0){var f=b;Zt?.delete(f),(w&hi)===0&&(w&oe&&(b.f|=hi),er(f,me))}else h&&((w&ve)!==0&&xe!==null&&xe.add(b),We(b))}}function vi(r){if(typeof r!="object"||r===null||sn in r)return r;const i=cs(r);if(i!==fs&&i!==hs)return r;var l=new Map,g=as(r),_=ce(0),b=Ie,w=h=>{if(Ie===b)return h();var f=St,$=Ie;ne(null),xr(b);var z=h();return ne(f),xr($),z};return g&&l.set("length",ce(r.length)),new Proxy(r,{defineProperty(h,f,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&ws();var z=l.get(f);return z===void 0?z=w(()=>{var Z=ce($.value);return l.set(f,Z),Z}):Kt(z,$.value,!0),!0},deleteProperty(h,f){var $=l.get(f);if($===void 0){if(f in h){const z=w(()=>ce(Vt));l.set(f,z),gi(_)}}else Kt($,Vt),gi(_);return!0},get(h,f,$){if(f===sn)return r;var z=l.get(f),Z=f in h;if(z===void 0&&(!Z||Ge(h,f)?.writable)&&(z=w(()=>{var tt=vi(Z?h[f]:Vt),nt=ce(tt);return nt}),l.set(f,z)),z!==void 0){var Y=Lt(z);return Y===Vt?void 0:Y}return Reflect.get(h,f,$)},getOwnPropertyDescriptor(h,f){var $=Reflect.getOwnPropertyDescriptor(h,f);if($&&"value"in $){var z=l.get(f);z&&($.value=Lt(z))}else if($===void 0){var Z=l.get(f),Y=Z?.v;if(Z!==void 0&&Y!==Vt)return{enumerable:!0,configurable:!0,value:Y,writable:!0}}return $},has(h,f){if(f===sn)return!0;var $=l.get(f),z=$!==void 0&&$.v!==Vt||Reflect.has(h,f);if($!==void 0||Nt!==null&&(!z||Ge(h,f)?.writable)){$===void 0&&($=w(()=>{var Y=z?vi(h[f]):Vt,tt=ce(Y);return tt}),l.set(f,$));var Z=Lt($);if(Z===Vt)return!1}return z},set(h,f,$,z){var Z=l.get(f),Y=f in h;if(g&&f==="length")for(var tt=$;tt<Z.v;tt+=1){var nt=l.get(tt+"");nt!==void 0?Kt(nt,Vt):tt in h&&(nt=w(()=>ce(Vt)),l.set(tt+"",nt))}if(Z===void 0)(!Y||Ge(h,f)?.writable)&&(Z=w(()=>ce(void 0)),Kt(Z,vi($)),l.set(f,Z));else{Y=Z.v!==Vt;var W=w(()=>vi($));Kt(Z,W)}var _t=Reflect.getOwnPropertyDescriptor(h,f);if(_t?.set&&_t.set.call(z,$),!Y){if(g&&typeof f=="string"){var Ft=l.get("length"),U=Number(f);Number.isInteger(U)&&U>=Ft.v&&Kt(Ft,U+1)}gi(_)}return!0},ownKeys(h){Lt(_);var f=Reflect.ownKeys(h).filter(Z=>{var Y=l.get(Z);return Y===void 0||Y.v!==Vt});for(var[$,z]of l)z.v!==Vt&&!($ in h)&&f.push($);return f},setPrototypeOf(){ks()}})}var fn,ir,nr,rr;function hn(){if(fn===void 0){fn=window,ir=/Firefox/.test(navigator.userAgent);var r=Element.prototype,i=Node.prototype,l=Text.prototype;nr=Ge(i,"firstChild").get,rr=Ge(i,"nextSibling").get,Tn(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),Tn(l)&&(l.__t=void 0)}}function sr(r=""){return document.createTextNode(r)}function or(r){return nr.call(r)}function Ze(r){return rr.call(r)}function js(r){r.textContent=""}function cn(r){var i=St,l=Nt;ne(null),$e(null);try{return r()}finally{ne(i),$e(l)}}function Ys(r){Nt===null&&(St===null&&ys(),xs()),Ve&&ms()}function qs(r,i){var l=i.last;l===null?i.last=i.first=r:(l.next=r,r.prev=l,i.last=r)}function Me(r,i,l,g=!0){var _=Nt;_!==null&&(_.f&Ee)!==0&&(r|=Ee);var b={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:r|Gt|oe,first:null,fn:i,last:null,next:null,parent:_,b:_&&_.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(l)try{yi(b),b.f|=nn}catch(f){throw ue(b),f}else i!==null&&We(b);if(g){var w=b;if(l&&w.deps===null&&w.teardown===null&&w.nodes_start===null&&w.first===w.last&&(w.f&Ue)===0&&(w=w.first,(r&ve)!==0&&(r&Ri)!==0&&w!==null&&(w.f|=Ri)),w!==null&&(w.parent=_,_!==null&&qs(w,_),St!==null&&(St.f&Bt)!==0&&(r&ke)===0)){var h=St;(h.effects??=[]).push(w)}}return b}function Yi(){return St!==null&&!de}function Xs(r){const i=Me(Nn,null,!1);return Yt(i,It),i.teardown=r,i}function ar(r){Ys();var i=Nt.f,l=!St&&(i&we)!==0&&(i&nn)===0;if(l){var g=Ut;(g.e??=[]).push(r)}else return lr(r)}function lr(r){return Me(en|gs,r,!1)}function Hs(r){le.ensure();const i=Me(ke|Ue,r,!0);return()=>{ue(i)}}function Gs(r){le.ensure();const i=Me(ke|Ue,r,!0);return(l={})=>new Promise(g=>{l.outro?qi(i,()=>{ue(i),g(void 0)}):(ue(i),g(void 0))})}function Us(r){return Me(en,r,!1)}function ur(r,i=0){return Me(Nn|i,r,!0)}function Ws(r,i=0){var l=Me(ve|i,r,!0);return l}function Oe(r,i=!0){return Me(we|Ue,r,!0,i)}function fr(r){var i=r.teardown;if(i!==null){const l=Ve,g=St;gr(!0),ne(null);try{i.call(null)}finally{gr(l),ne(g)}}}function hr(r,i=!1){var l=r.first;for(r.first=r.last=null;l!==null;){const _=l.ac;_!==null&&cn(()=>{_.abort(Bn)});var g=l.next;(l.f&ke)!==0?l.parent=null:ue(l,i),l=g}}function Zs(r){for(var i=r.first;i!==null;){var l=i.next;(i.f&we)===0&&ue(i),i=l}}function ue(r,i=!0){var l=!1;(i||(r.f&Rn)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(Ks(r.nodes_start,r.nodes_end),l=!0),hr(r,i&&!l),Xi(r,0),Yt(r,ze);var g=r.transitions;if(g!==null)for(const b of g)b.stop();fr(r);var _=r.parent;_!==null&&_.first!==null&&cr(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function Ks(r,i){for(;r!==null;){var l=r===i?null:Ze(r);r.remove(),r=l}}function cr(r){var i=r.parent,l=r.prev,g=r.next;l!==null&&(l.next=g),g!==null&&(g.prev=l),i!==null&&(i.first===r&&(i.first=g),i.last===r&&(i.last=l))}function qi(r,i,l=!0){var g=[];dr(r,g,!0),Qs(g,()=>{l&&ue(r),i&&i()})}function Qs(r,i){var l=r.length;if(l>0){var g=()=>--l||i();for(var _ of r)_.out(g)}else i()}function dr(r,i,l){if((r.f&Ee)===0){if(r.f^=Ee,r.transitions!==null)for(const w of r.transitions)(w.is_global||l)&&i.push(w);for(var g=r.first;g!==null;){var _=g.next,b=(g.f&Ri)!==0||(g.f&we)!==0&&(r.f&ve)!==0;dr(g,i,b?l:!1),g=_}}}function Js(r,i){for(var l=r.nodes_start,g=r.nodes_end;l!==null;){var _=l===g?null:Ze(l);i.append(l),l=_}}let Pe=!1;function pr(r){Pe=r}let Ve=!1;function gr(r){Ve=r}let St=null,de=!1;function ne(r){St=r}let Nt=null;function $e(r){Nt=r}let ye=null;function vr(r){St!==null&&(ye===null?ye=[r]:ye.push(r))}let jt=null,Qt=0,re=null;function to(r){re=r}let mr=1,mi=0,Ie=mi;function xr(r){Ie=r}function yr(){return++mr}function xi(r){var i=r.f;if((i&Gt)!==0)return!0;if(i&Bt&&(r.f&=~hi),(i&me)!==0){var l=r.deps;if(l!==null)for(var g=l.length,_=0;_<g;_++){var b=l[_];if(xi(b)&&Qn(b),b.wv>r.wv)return!0}(i&oe)!==0&&Zt===null&&Yt(r,It)}return!1}function _r(r,i,l=!0){var g=r.reactions;if(g!==null&&!ye?.includes(r))for(var _=0;_<g.length;_++){var b=g[_];(b.f&Bt)!==0?_r(b,i,!1):i===b&&(l?Yt(b,Gt):(b.f&It)!==0&&Yt(b,me),We(b))}}function br(r){var i=jt,l=Qt,g=re,_=St,b=ye,w=Ut,h=de,f=Ie,$=r.f;jt=null,Qt=0,re=null,St=($&(we|ke))===0?r:null,ye=null,Oi(r.ctx),de=!1,Ie=++mi,r.ac!==null&&(cn(()=>{r.ac.abort(Bn)}),r.ac=null);try{r.f|=rn;var z=r.fn,Z=z(),Y=r.deps;if(jt!==null){var tt;if(Xi(r,Qt),Y!==null&&Qt>0)for(Y.length=Qt+jt.length,tt=0;tt<jt.length;tt++)Y[Qt+tt]=jt[tt];else r.deps=Y=jt;if(Pe&&Yi()&&(r.f&oe)!==0)for(tt=Qt;tt<Y.length;tt++)(Y[tt].reactions??=[]).push(r)}else Y!==null&&Qt<Y.length&&(Xi(r,Qt),Y.length=Qt);if(Yn()&&re!==null&&!de&&Y!==null&&(r.f&(Bt|me|Gt))===0)for(tt=0;tt<re.length;tt++)_r(re[tt],r);return _!==null&&_!==r&&(mi++,re!==null&&(g===null?g=re:g.push(...re))),(r.f&ci)!==0&&(r.f^=ci),Z}catch(nt){return Xn(nt)}finally{r.f^=rn,jt=i,Qt=l,re=g,St=_,ye=b,Oi(w),de=h,Ie=f}}function eo(r,i){let l=i.reactions;if(l!==null){var g=ls.call(l,r);if(g!==-1){var _=l.length-1;_===0?l=i.reactions=null:(l[g]=l[_],l.pop())}}l===null&&(i.f&Bt)!==0&&(jt===null||!jt.includes(i))&&(Yt(i,me),(i.f&oe)!==0&&(i.f^=oe,i.f&=~hi),Kn(i),Xi(i,0))}function Xi(r,i){var l=r.deps;if(l!==null)for(var g=i;g<l.length;g++)eo(r,l[g])}function yi(r){var i=r.f;if((i&ze)===0){Yt(r,It);var l=Nt,g=Pe;Nt=r,Pe=!0;try{(i&ve)!==0?Zs(r):hr(r),fr(r);var _=br(r);r.teardown=typeof _=="function"?_:null,r.wv=mr;var b;An&&Ts&&(r.f&Gt)!==0&&r.deps}finally{Pe=g,Nt=l}}}function Lt(r){var i=r.f,l=(i&Bt)!==0;if(St!==null&&!de){var g=Nt!==null&&(Nt.f&ze)!==0;if(!g&&!ye?.includes(r)){var _=St.deps;if((St.f&rn)!==0)r.rv<mi&&(r.rv=mi,jt===null&&_!==null&&_[Qt]===r?Qt++:jt===null?jt=[r]:jt.includes(r)||jt.push(r));else{(St.deps??=[]).push(r);var b=r.reactions;b===null?r.reactions=[St]:b.includes(St)||b.push(St)}}}if(Ve){if(Ce.has(r))return Ce.get(r);if(l){var w=r,h=w.v;return((w.f&It)===0&&w.reactions!==null||kr(w))&&(h=ln(w)),Ce.set(w,h),h}}else if(l){if(w=r,Zt?.has(w))return Zt.get(w);xi(w)&&Qn(w),Pe&&Yi()&&(w.f&oe)===0&&wr(w)}else if(Zt?.has(r))return Zt.get(r);if((r.f&ci)!==0)throw r.v;return r.v}function wr(r){if(r.deps!==null){r.f^=oe;for(const i of r.deps)(i.reactions??=[]).push(r),(i.f&Bt)!==0&&(i.f&oe)===0&&wr(i)}}function kr(r){if(r.v===Vt)return!0;if(r.deps===null)return!1;for(const i of r.deps)if(Ce.has(i)||(i.f&Bt)!==0&&kr(i))return!0;return!1}function dn(r){var i=de;try{return de=!0,r()}finally{de=i}}const io=-7169;function Yt(r,i){r.f=r.f&io|i}const no=new Set,Er=new Set;function ro(r,i,l,g={}){function _(b){if(g.capture||_i.call(i,b),!b.cancelBubble)return cn(()=>l?.call(this,b))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Pi(()=>{i.addEventListener(r,_,g)}):i.addEventListener(r,_,g),_}function so(r,i,l,g,_){var b={capture:g,passive:_},w=ro(r,i,l,b);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&Xs(()=>{i.removeEventListener(r,w,b)})}let Cr=null;function _i(r){var i=this,l=i.ownerDocument,g=r.type,_=r.composedPath?.()||[],b=_[0]||r.target;Cr=r;var w=0,h=Cr===r&&r.__root;if(h){var f=_.indexOf(h);if(f!==-1&&(i===document||i===window)){r.__root=i;return}var $=_.indexOf(i);if($===-1)return;f<=$&&(w=f)}if(b=_[w]||r.target,b!==i){Ni(r,"currentTarget",{configurable:!0,get(){return b||l}});var z=St,Z=Nt;ne(null),$e(null);try{for(var Y,tt=[];b!==null;){var nt=b.assignedSlot||b.parentNode||b.host||null;try{var W=b["__"+g];W!=null&&(!b.disabled||r.target===b)&&W.call(b,r)}catch(_t){Y?tt.push(_t):Y=_t}if(r.cancelBubble||nt===i||nt===null)break;b=nt}if(Y){for(let _t of tt)queueMicrotask(()=>{throw _t});throw Y}}finally{r.__root=i,delete r.currentTarget,ne(z),$e(Z)}}}function oo(r){var i=document.createElement("template");return i.innerHTML=r.replaceAll("<!>","<!---->"),i.content}function pn(r,i){var l=Nt;l.nodes_start===null&&(l.nodes_start=r,l.nodes_end=i)}function ao(r,i){var l=(i&os)!==0,g,_=!r.startsWith("<!>");return()=>{if(ae)return pn(Dt,null),Dt;g===void 0&&(g=oo(_?r:"<!>"+r),g=or(g));var b=l||ir?document.importNode(g,!0):g.cloneNode(!0);return pn(b,b),b}}function Mr(r,i){if(ae){Nt.nodes_end=Dt,Vn();return}r!==null&&r.before(i)}const lo=["touchstart","touchmove"];function uo(r){return lo.includes(r)}function $r(r,i){return Sr(r,i)}function fo(r,i){hn(),i.intro=i.intro??!1;const l=i.target,g=ae,_=Dt;try{for(var b=or(l);b&&(b.nodeType!==zi||b.data!==$n);)b=Ze(b);if(!b)throw Ai;Bi(!0),di(b);const w=Sr(r,{...i,anchor:b});return Bi(!1),w}catch(w){if(w instanceof Error&&w.message.split(`
|
|
2
|
-
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw w;return w!==Ai&&console.warn("Failed to hydrate: ",w),i.recover===!1&&bs(),hn(),js(l),Bi(!1),$r(r,i)}finally{Bi(g),di(_)}}const Ke=new Map;function Sr(r,{target:i,anchor:l,props:g={},events:_,context:b,intro:w=!0}){hn();var h=new Set,f=Z=>{for(var Y=0;Y<Z.length;Y++){var tt=Z[Y];if(!h.has(tt)){h.add(tt);var nt=uo(tt);i.addEventListener(tt,_i,{passive:nt});var W=Ke.get(tt);W===void 0?(document.addEventListener(tt,_i,{passive:nt}),Ke.set(tt,1)):Ke.set(tt,W+1)}}};f(us(no)),Er.add(f);var $=void 0,z=Gs(()=>{var Z=l??i.appendChild(sr());return Bs(Z,{pending:()=>{}},Y=>{if(b){Dn({});var tt=Ut;tt.c=b}if(_&&(g.$$events=_),ae&&pn(Y,null),$=r(Y,g)||{},ae&&(Nt.nodes_end=Dt,Dt===null||Dt.nodeType!==zi||Dt.data!==Fn))throw Pn(),Ai;b&&jn()}),()=>{for(var Y of h){i.removeEventListener(Y,_i);var tt=Ke.get(Y);--tt===0?(document.removeEventListener(Y,_i),Ke.delete(Y)):Ke.set(Y,tt)}Er.delete(f),Z!==l&&Z.parentNode?.removeChild(Z)}});return gn.set($,z),$}let gn=new WeakMap;function ho(r,i){const l=gn.get(r);return l?(gn.delete(r),l(i)):Promise.resolve()}function Fr(r){Ut===null&&On(),ar(()=>{const i=dn(r);if(typeof i=="function")return i})}function co(r){Ut===null&&On(),Fr(()=>()=>dn(r))}function po(r,i){Us(()=>{var l=r.getRootNode(),g=l.host?l:l.head??l.ownerDocument.head;if(!g.querySelector("#"+i.hash)){const _=document.createElement("style");_.id=i.hash,_.textContent=i.code,g.appendChild(_)}})}function Ar(r,i,l,g){var _=g,b=!0,w=()=>(b&&(b=!1,_=g),_),h;h=r[i],h===void 0&&g!==void 0&&(h=w());var f;f=()=>{var Y=r[i];return Y===void 0?w():(b=!0,Y)};var $=!1,z=Zn(()=>($=!1,f())),Z=Nt;return(function(Y,tt){if(arguments.length>0){const nt=tt?Lt(z):Y;return Kt(z,nt),$=!0,_!==void 0&&(_=nt),Y}return Ve&&$||(Z.f&ze)!==0?z.v:Lt(z)})}function go(r){return new vo(r)}class vo{#e;#t;constructor(i){var l=new Map,g=(b,w)=>{var h=Is(w,!1,!1);return l.set(b,h),h};const _=new Proxy({...i.props||{},$$events:{}},{get(b,w){return Lt(l.get(w)??g(w,Reflect.get(b,w)))},has(b,w){return w===vs?!0:(Lt(l.get(w)??g(w,Reflect.get(b,w))),Reflect.has(b,w))},set(b,w,h){return Kt(l.get(w)??g(w,h),h),Reflect.set(b,w,h)}});this.#t=(i.hydrate?fo:$r)(i.component,{target:i.target,anchor:i.anchor,props:_,context:i.context,intro:i.intro??!1,recover:i.recover}),(!i?.props?.$$host||i.sync===!1)&&an(),this.#e=_.$$events;for(const b of Object.keys(this.#t))b==="$set"||b==="$destroy"||b==="$on"||Ni(this,b,{get(){return this.#t[b]},set(w){this.#t[b]=w},enumerable:!0});this.#t.$set=b=>{Object.assign(_,b)},this.#t.$destroy=()=>{ho(this.#t)}}$set(i){this.#t.$set(i)}$on(i,l){this.#e[i]=this.#e[i]||[];const g=(..._)=>l.call(this,..._);return this.#e[i].push(g),()=>{this.#e[i]=this.#e[i].filter(_=>_!==g)}}$destroy(){this.#t.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,i,l){super(),this.$$ctor=r,this.$$s=i,l&&this.attachShadow({mode:"open"})}addEventListener(r,i,l){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(i),this.$$c){const g=this.$$c.$on(r,i);this.$$l_u.set(i,g)}super.addEventListener(r,i,l)}removeEventListener(r,i,l){if(super.removeEventListener(r,i,l),this.$$c){const g=this.$$l_u.get(i);g&&(g(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(g){return _=>{const b=document.createElement("slot");g!=="default"&&(b.name=g),Mr(_,b)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},l=mo(this);for(const g of this.$$s)g in l&&(g==="default"&&!this.$$d.children?(this.$$d.children=r(g),i.default=!0):i[g]=r(g));for(const g of this.attributes){const _=this.$$g_p(g.name);_ in this.$$d||(this.$$d[_]=Hi(_,g.value,this.$$p_d,"toProp"))}for(const g in this.$$p_d)!(g in this.$$d)&&this[g]!==void 0&&(this.$$d[g]=this[g],delete this[g]);this.$$c=go({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Hs(()=>{ur(()=>{this.$$r=!0;for(const g of Ti(this.$$c)){if(!this.$$p_d[g]?.reflect)continue;this.$$d[g]=this.$$c[g];const _=Hi(g,this.$$d[g],this.$$p_d,"toAttribute");_==null?this.removeAttribute(this.$$p_d[g].attribute||g):this.setAttribute(this.$$p_d[g].attribute||g,_)}this.$$r=!1})});for(const g in this.$$l)for(const _ of this.$$l[g]){const b=this.$$c.$on(g,_);this.$$l_u.set(_,b)}this.$$l={}}}attributeChangedCallback(r,i,l){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Hi(r,l,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 Ti(this.$$p_d).find(i=>this.$$p_d[i].attribute===r||!this.$$p_d[i].attribute&&i.toLowerCase()===r)||r}});function Hi(r,i,l,g){const _=l[r]?.type;if(i=_==="Boolean"&&typeof i!="boolean"?i!=null:i,!g||!l[r])return i;if(g==="toAttribute")switch(_){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i??null;default:return i}else switch(_){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function mo(r){const i={};return r.childNodes.forEach(l=>{i[l.slot||"default"]=!0}),i}function xo(r,i,l,g,_,b){let w=class extends Tr{constructor(){super(r,l,_),this.$$p_d=i}static get observedAttributes(){return Ti(i).map(h=>(i[h].attribute||h).toLowerCase())}};return Ti(i).forEach(h=>{Ni(w.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(f){f=Hi(h,f,i),this.$$d[h]=f;var $=this.$$c;if($){var z=Ge($,h)?.get;z?$[h]=f:$.$set({[h]:f})}}})}),g.forEach(h=>{Ni(w.prototype,h,{get(){return this.$$c?.[h]}})}),r.element=w,w}function yo(r,i=100,l={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");if(typeof l=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:g}=l;let _,b,w,h,f;function $(){const Y=_,tt=b;return _=void 0,b=void 0,f=r.apply(Y,tt),f}function z(){const Y=Date.now()-h;Y<i&&Y>=0?w=setTimeout(z,i-Y):(w=void 0,g||(f=$()))}const Z=function(...Y){if(_&&this!==_&&Object.getPrototypeOf(this)===Object.getPrototypeOf(_))throw new Error("Debounced method called with different contexts of the same prototype.");_=this,b=Y,h=Date.now();const tt=g&&!w;if(w||(w=setTimeout(z,i)),tt)return f=$(),f};return Object.defineProperty(Z,"isPending",{get(){return w!==void 0}}),Z.clear=()=>{w&&(clearTimeout(w),w=void 0,_=void 0,b=void 0)},Z.flush=()=>{w&&Z.trigger()},Z.trigger=()=>{f=$(),Z.clear()},Z}function _o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vn={exports:{}},Nr;function bo(){return Nr||(Nr=1,(function(r,i){(function(l,g){r.exports=g()})(window,function(){return(function(l){var g={};function _(b){if(g[b])return g[b].exports;var w=g[b]={i:b,l:!1,exports:{}};return l[b].call(w.exports,w,w.exports,_),w.l=!0,w.exports}return _.m=l,_.c=g,_.d=function(b,w,h){_.o(b,w)||Object.defineProperty(b,w,{enumerable:!0,get:h})},_.r=function(b){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},_.t=function(b,w){if(1&w&&(b=_(b)),8&w||4&w&&typeof b=="object"&&b&&b.__esModule)return b;var h=Object.create(null);if(_.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:b}),2&w&&typeof b!="string")for(var f in b)_.d(h,f,(function($){return b[$]}).bind(null,f));return h},_.n=function(b){var w=b&&b.__esModule?function(){return b.default}:function(){return b};return _.d(w,"a",w),w},_.o=function(b,w){return Object.prototype.hasOwnProperty.call(b,w)},_.p="",_(_.s=1)})([function(l,g,_){var b,w;b=[_(2)],(w=(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[U](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 n=e.pop();return $?n.call(f._engine.create[U](f,e)):h.on("raphael.DOMload",function(){n.call(f._engine.create[U](f,e))})}return f._engine.create[U](f,arguments)}f.version="2.3.0",f.eve=h;var $,z,Z=/[, ]+/,Y={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},tt=/\{(\d+)\}/g,nt="hasOwnProperty",W={doc:document,win:window},_t={was:Object.prototype[nt].call(W.win,"Raphael"),is:W.win.Raphael},Ft=function(){this.ca=this.customAttributes={}},U="apply",B="concat",Q="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ht=" ",V=String,et="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[et](ht),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=V.prototype.toLowerCase,H=Math,K=H.max,G=H.min,at=H.abs,yt=H.pow,Mt=H.PI,ct="number",xt="array",te=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),u={NaN:1,Infinity:1,"-Infinity":1},o=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=H.round,y=parseFloat,E=parseInt,C=V.prototype.toUpperCase,L=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},it=/,?([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,mt=/([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 y(t)-y(e)},bt=function(t){return t},ot=f._rectPath=function(t,e,n,s,a){return a?[["M",t+a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,s-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-s],["a",a,a,0,0,1,a,-a],["z"]]:[["M",t,e],["l",n,0],["l",0,s],["l",-n,0],["z"]]},$t=function(t,e,n,s){return s==null&&(s=n),[["M",t,e],["m",0,-s],["a",n,s,0,1,1,0,2*s],["a",n,s,0,1,1,0,-2*s],["z"]]},Rt=f._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)}},zt=f.mapPath=function(t,e){if(!e)return t;var n,s,a,d,m,v,x;for(a=0,m=(t=Mi(t)).length;a<m;a++)for(d=1,v=(x=t[a]).length;d<v;d+=2)n=e.x(x[d],x[d+1]),s=e.y(x[d],x[d+1]),x[d]=n,x[d+1]=s;return t};if(f._g=W,f.type=W.win.SVGAngle||W.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",f.type=="VML"){var Tt,ee=W.doc.createElement("div");if(ee.innerHTML='<v:shape adj="1"/>',(Tt=ee.firstChild).style.behavior="url(#default#VML)",!Tt||typeof Tt.adj!="object")return f.type=lt;ee=null}function qt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[nt](n)&&(e[n]=qt(t[n]));return e}f.svg=!(f.vml=f.type=="VML"),f._Paper=Ft,f.fn=z=Ft.prototype=f.prototype,f._id=0,f.is=function(t,e){return(e=st.call(e))=="finite"?!u[nt](+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)||te.call(t).slice(8,-1).toLowerCase()==e},f.angle=function(t,e,n,s,a,d){if(a==null){var m=t-n,v=e-s;return m||v?(180+180*H.atan2(-v,-m)/Mt+360)%360:0}return f.angle(t,e,a,d)-f.angle(n,s,a,d)},f.rad=function(t){return t%360*Mt/180},f.deg=function(t){return Math.round(180*t/Mt%360*1e3)/1e3},f.snapTo=function(t,e,n){if(n=f.is(n,"finite")?n:10,f.is(t,xt)){for(var s=t.length;s--;)if(at(t[s]-e)<=n)return t[s]}else{var a=e%(t=+t);if(a<n)return e-a;if(a>t-n)return e-a+t}return e};var Se,wi;f.createUUID=(Se=/[xy]/g,wi=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(Se,wi).toUpperCase()}),f.setWindow=function(t){h("raphael.setWindow",f,W.win,t),W.win=t,W.doc=W.win.document,f._engine.initWin&&f._engine.initWin(W.win)};var Fe=function(t){if(f.vml){var e,n=/^\s+|\s+$/g;try{var s=new ActiveXObject("htmlfile");s.write("<body>"),s.close(),e=s.body}catch{e=createPopup().document.body}var a=e.createTextRange();Fe=Ot(function(m){try{e.style.color=V(m).replace(n,lt);var v=a.queryCommandValue("ForeColor");return"#"+("000000"+(v=(255&v)<<16|65280&v|(16711680&v)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=W.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",W.doc.body.appendChild(d),Fe=Ot(function(m){return d.style.color=m,W.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return Fe(t)},Qe=function(){return"hsb("+[this.h,this.s,this.b]+")"},Je=function(){return"hsl("+[this.h,this.s,this.l]+")"},ki=function(){return this.hex},ti=function(t,e,n){if(e==null&&f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),e==null&&f.is(t,"string")){var s=f.getRGB(t);t=s.r,e=s.g,n=s.b}return(t>1||e>1||n>1)&&(t/=255,e/=255,n/=255),[t,e,n]},Ui=function(t,e,n,s){var a={r:t*=255,g:e*=255,b:n*=255,hex:f.rgb(t,e,n),toString:ki};return f.is(s,"finite")&&(a.opacity=s),a};function Ot(t,e,n){return function s(){var a=Array.prototype.slice.call(arguments,0),d=a.join("␀"),m=s.cache=s.cache||{},v=s.count=s.count||[];return m[nt](d)?((function(x,k){for(var F=0,P=x.length;F<P;F++)if(x[F]===k)return x.push(x.splice(F,1)[0])})(v,d),n?n(m[d]):m[d]):(v.length>=1e3&&delete m[v.shift()],v.push(d),m[d]=t[U](e,a),n?n(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=ki,t},f.hsb2rgb=function(t,e,n,s){var a,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,s=t.o,t=t.h),v=(x=n*e)*(1-at((t=(t*=360)%360/60)%2-1)),a=d=m=n-x,Ui(a+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.hsl2rgb=function(t,e,n,s){var a,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),v=(x=2*e*(n<.5?n:1-n))*(1-at((t=(t*=360)%360/60)%2-1)),a=d=m=n-x/2,Ui(a+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.rgb2hsb=function(t,e,n){var s,a;return t=(n=ti(t,e,n))[0],e=n[1],n=n[2],{h:(((a=(s=K(t,e,n))-G(t,e,n))==0?null:s==t?(e-n)/a:s==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:a==0?0:a/s,b:s,toString:Qe}},f.rgb2hsl=function(t,e,n){var s,a,d,m;return t=(n=ti(t,e,n))[0],e=n[1],n=n[2],s=((a=K(t,e,n))+(d=G(t,e,n)))/2,{h:(((m=a-d)==0?null:a==t?(e-n)/m:a==e?(n-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:s<.5?m/(2*s):m/(2-2*s),l:s,toString:Je}},f._path2string=function(){return this.join(",").replace(it,"$1")},f._preload=function(t,e){var n=W.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,W.doc.body.removeChild(this)},n.onerror=function(){W.doc.body.removeChild(this)},W.doc.body.appendChild(n),n.src=t};function Ae(){return this.hex}function ei(t,e){for(var n=[],s=0,a=t.length;a-2*!e>s;s+=2){var d=[{x:+t[s-2],y:+t[s-1]},{x:+t[s],y:+t[s+1]},{x:+t[s+2],y:+t[s+3]},{x:+t[s+4],y:+t[s+5]}];e?s?a-4==s?d[3]={x:+t[0],y:+t[1]}:a-2==s&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[a-2],y:+t[a-1]}:a-4==s?d[3]=d[2]:s||(d[0]={x:+t[s],y:+t[s+1]}),n.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 n}f.getRGB=Ot(function(t){if(!t||(t=V(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ae};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ae};!X[nt](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=Fe(t));var e,n,s,a,d,m,v=t.match(p);return v?(v[2]&&(s=E(v[2].substring(5),16),n=E(v[2].substring(3,5),16),e=E(v[2].substring(1,3),16)),v[3]&&(s=E((d=v[3].charAt(3))+d,16),n=E((d=v[3].charAt(2))+d,16),e=E((d=v[3].charAt(1))+d,16)),v[4]&&(m=v[4][et](N),e=y(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=y(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=y(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),v[1].toLowerCase().slice(0,4)=="rgba"&&(a=y(m[3])),m[3]&&m[3].slice(-1)=="%"&&(a/=100)),v[5]?(m=v[5][et](N),e=y(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=y(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=y(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsba"&&(a=y(m[3])),m[3]&&m[3].slice(-1)=="%"&&(a/=100),f.hsb2rgb(e,n,s,a)):v[6]?(m=v[6][et](N),e=y(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=y(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=y(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsla"&&(a=y(m[3])),m[3]&&m[3].slice(-1)=="%"&&(a/=100),f.hsl2rgb(e,n,s,a)):((v={r:e,g:n,b:s,toString:Ae}).hex="#"+(16777216|s|n<<8|e<<16).toString(16).slice(1),f.is(a,"finite")&&(v.opacity=a),v)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ae}},f),f.hsb=Ot(function(t,e,n){return f.hsb2rgb(t,e,n).hex}),f.hsl=Ot(function(t,e,n){return f.hsl2rgb(t,e,n).hex}),f.rgb=Ot(function(t,e,n){function s(a){return a+.5|0}return"#"+(16777216|s(n)|s(e)<<8|s(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},n=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})),n.hex},f.getColor.reset=function(){delete this.start},f.parsePathString=function(t){if(!t)return null;var e=se(t);if(e.arr)return Xt(e.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];return f.is(t,xt)&&f.is(t[0],xt)&&(s=Xt(t)),s.length||V(t).replace(pt,function(a,d,m){var v=[],x=d.toLowerCase();if(m.replace(dt,function(k,F){F&&v.push(+F)}),x=="m"&&v.length>2&&(s.push([d][B](v.splice(0,2))),x="l",d=d=="m"?"l":"L"),x=="r")s.push([d][B](v));else for(;v.length>=n[x]&&(s.push([d][B](v.splice(0,n[x]))),n[x]););}),s.toString=f._path2string,e.arr=Xt(s),s},f.parseTransformString=Ot(function(t){if(!t)return null;var e=[];return f.is(t,xt)&&f.is(t[0],xt)&&(e=Xt(t)),e.length||V(t).replace(mt,function(n,s,a){var d=[];st.call(s),a.replace(dt,function(m,v){v&&d.push(+v)}),e.push([s][B](d))}),e.toString=f._path2string,e},this,function(t){if(!t)return t;for(var e=[],n=0;n<t.length;n++){for(var s=[],a=0;a<t[n].length;a++)s.push(t[n][a]);e.push(s)}return e});var se=function(t){var e=se.ps=se.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[nt](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};function ii(t,e,n,s,a){return t*(t*(-3*e+9*n-9*s+3*a)+6*e-12*n+6*s)-3*e+3*n}function fe(t,e,n,s,a,d,m,v,x){x==null&&(x=1);for(var k=(x=x>1?1:x<0?0:x)/2,F=[-.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,S=0;S<12;S++){var R=k*F[S]+k,I=ii(R,t,n,a,m),O=ii(R,e,s,d,v),A=I*I+O*O;T+=P[S]*H.sqrt(A)}return k*T}function Ei(t,e,n,s,a,d,m,v){if(!(K(t,n)<G(a,m)||G(t,n)>K(a,m)||K(e,s)<G(d,v)||G(e,s)>K(d,v))){var x=(t-n)*(d-v)-(e-s)*(a-m);if(x){var k=((t*s-e*n)*(a-m)-(t-n)*(a*v-d*m))/x,F=((t*s-e*n)*(d-v)-(e-s)*(a*v-d*m))/x,P=+k.toFixed(2),T=+F.toFixed(2);if(!(P<+G(t,n).toFixed(2)||P>+K(t,n).toFixed(2)||P<+G(a,m).toFixed(2)||P>+K(a,m).toFixed(2)||T<+G(e,s).toFixed(2)||T>+K(e,s).toFixed(2)||T<+G(d,v).toFixed(2)||T>+K(d,v).toFixed(2)))return{x:k,y:F}}}}function ni(t,e,n){var s=f.bezierBBox(t),a=f.bezierBBox(e);if(!f.isBBoxIntersect(s,a))return n?0:[];for(var d=fe.apply(0,t),m=fe.apply(0,e),v=K(~~(d/5),1),x=K(~~(m/5),1),k=[],F=[],P={},T=n?0:[],S=0;S<v+1;S++){var R=f.findDotsAtSegment.apply(f,t.concat(S/v));k.push({x:R.x,y:R.y,t:S/v})}for(S=0;S<x+1;S++)R=f.findDotsAtSegment.apply(f,e.concat(S/x)),F.push({x:R.x,y:R.y,t:S/x});for(S=0;S<v;S++)for(var I=0;I<x;I++){var O=k[S],A=k[S+1],J=F[I],D=F[I+1],q=at(A.x-O.x)<.001?"y":"x",j=at(D.x-J.x)<.001?"y":"x",gt=Ei(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+at((gt[q]-O[q])/(A[q]-O[q]))*(A.t-O.t),vt=J.t+at((gt[j]-J[j])/(D[j]-J[j]))*(D.t-J.t);ut>=0&&ut<=1.001&&vt>=0&&vt<=1.001&&(n?T++:T.push({x:gt.x,y:gt.y,t1:G(ut,1),t2:G(vt,1)}))}}return T}function Ci(t,e,n){t=f._path2curve(t),e=f._path2curve(e);for(var s,a,d,m,v,x,k,F,P,T,S=n?0:[],R=0,I=t.length;R<I;R++){var O=t[R];if(O[0]=="M")s=v=O[1],a=x=O[2];else{O[0]=="C"?(P=[s,a].concat(O.slice(1)),s=P[6],a=P[7]):(P=[s,a,s,a,v,x,v,x],s=v,a=x);for(var A=0,J=e.length;A<J;A++){var D=e[A];if(D[0]=="M")d=k=D[1],m=F=D[2];else{D[0]=="C"?(T=[d,m].concat(D.slice(1)),d=T[6],m=T[7]):(T=[d,m,d,m,k,F,k,F],d=k,m=F);var q=ni(P,T,n);if(n)S+=q;else{for(var j=0,gt=q.length;j<gt;j++)q[j].segment1=R,q[j].segment2=A,q[j].bez1=P,q[j].bez2=T;S=S.concat(q)}}}}}return S}f.findDotsAtSegment=function(t,e,n,s,a,d,m,v,x){var k=1-x,F=yt(k,3),P=yt(k,2),T=x*x,S=T*x,R=F*t+3*P*x*n+3*k*x*x*a+S*m,I=F*e+3*P*x*s+3*k*x*x*d+S*v,O=t+2*x*(n-t)+T*(a-2*n+t),A=e+2*x*(s-e)+T*(d-2*s+e),J=n+2*x*(a-n)+T*(m-2*a+n),D=s+2*x*(d-s)+T*(v-2*d+s),q=k*t+x*n,j=k*e+x*s,gt=k*a+x*m,ut=k*d+x*v,vt=90-180*H.atan2(O-J,A-D)/Mt;return(O>J||A<D)&&(vt+=180),{x:R,y:I,m:{x:O,y:A},n:{x:J,y:D},start:{x:q,y:j},end:{x:gt,y:ut},alpha:vt}},f.bezierBBox=function(t,e,n,s,a,d,m,v){f.is(t,"array")||(t=[t,e,n,s,a,d,m,v]);var x=Zi.apply(null,t);return{x:x.min.x,y:x.min.y,x2:x.max.x,y2:x.max.y,width:x.max.x-x.min.x,height:x.max.y-x.min.y}},f.isPointInsideBBox=function(t,e,n){return e>=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},f.isBBoxIntersect=function(t,e){var n=f.isPointInsideBBox;return n(e,t.x,t.y)||n(e,t.x2,t.y)||n(e,t.x,t.y2)||n(e,t.x2,t.y2)||n(t,e.x,e.y)||n(t,e.x2,e.y)||n(t,e.x,e.y2)||n(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 Ci(t,e)},f.pathIntersectionNumber=function(t,e){return Ci(t,e,1)},f.isPointInsidePath=function(t,e,n){var s=f.pathBBox(t);return f.isPointInsideBBox(s,e,n)&&Ci(t,[["M",e,n],["H",s.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 Te=f.pathBBox=function(t){var e=se(t);if(e.bbox)return qt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,s=0,a=0,d=[],m=[],v=0,x=(t=Mi(t)).length;v<x;v++)if((n=t[v])[0]=="M")s=n[1],a=n[2],d.push(s),m.push(a);else{var k=Zi(s,a,n[1],n[2],n[3],n[4],n[5],n[6]);d=d[B](k.min.x,k.max.x),m=m[B](k.min.y,k.max.y),s=n[5],a=n[6]}var F=G[U](0,d),P=G[U](0,m),T=K[U](0,d),S=K[U](0,m),R=T-F,I=S-P,O={x:F,y:P,x2:T,y2:S,width:R,height:I,cx:F+R/2,cy:P+I/2};return e.bbox=qt(O),O},Xt=function(t){var e=qt(t);return e.toString=f._path2string,e},Ir=f._pathToRelative=function(t){var e=se(t);if(e.rel)return Xt(e.rel);f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t));var n=[],s=0,a=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=t[0][1],m=a=t[0][2],v++,n.push(["M",s,a]));for(var x=v,k=t.length;x<k;x++){var F=n[x]=[],P=t[x];if(P[0]!=st.call(P[0]))switch(F[0]=st.call(P[0]),F[0]){case"a":F[1]=P[1],F[2]=P[2],F[3]=P[3],F[4]=P[4],F[5]=P[5],F[6]=+(P[6]-s).toFixed(3),F[7]=+(P[7]-a).toFixed(3);break;case"v":F[1]=+(P[1]-a).toFixed(3);break;case"m":d=P[1],m=P[2];default:for(var T=1,S=P.length;T<S;T++)F[T]=+(P[T]-(T%2?s:a)).toFixed(3)}else{F=n[x]=[],P[0]=="m"&&(d=P[1]+s,m=P[2]+a);for(var R=0,I=P.length;R<I;R++)n[x][R]=P[R]}var O=n[x].length;switch(n[x][0]){case"z":s=d,a=m;break;case"h":s+=+n[x][O-1];break;case"v":a+=+n[x][O-1];break;default:s+=+n[x][O-2],a+=+n[x][O-1]}}return n.toString=f._path2string,e.rel=Xt(n),n},ri=f._pathToAbsolute=function(t){var e=se(t);if(e.abs)return Xt(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 n=[],s=0,a=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=+t[0][1],m=a=+t[0][2],v++,n[0]=["M",s,a]);for(var x,k,F=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=v,T=t.length;P<T;P++){if(n.push(x=[]),(k=t[P])[0]!=C.call(k[0]))switch(x[0]=C.call(k[0]),x[0]){case"A":x[1]=k[1],x[2]=k[2],x[3]=k[3],x[4]=k[4],x[5]=k[5],x[6]=+(k[6]+s),x[7]=+(k[7]+a);break;case"V":x[1]=+k[1]+a;break;case"H":x[1]=+k[1]+s;break;case"R":for(var S=[s,a][B](k.slice(1)),R=2,I=S.length;R<I;R++)S[R]=+S[R]+s,S[++R]=+S[R]+a;n.pop(),n=n[B](ei(S,F));break;case"M":d=+k[1]+s,m=+k[2]+a;default:for(R=1,I=k.length;R<I;R++)x[R]=+k[R]+(R%2?s:a)}else if(k[0]=="R")S=[s,a][B](k.slice(1)),n.pop(),n=n[B](ei(S,F)),x=["R"][B](k.slice(-2));else for(var O=0,A=k.length;O<A;O++)x[O]=k[O];switch(x[0]){case"Z":s=d,a=m;break;case"H":s=x[1];break;case"V":a=x[1];break;case"M":d=x[x.length-2],m=x[x.length-1];default:s=x[x.length-2],a=x[x.length-1]}}return n.toString=f._path2string,e.abs=Xt(n),n},si=function(t,e,n,s){return[t,e,n,s,n,s]},Ne=function(t,e,n,s,a,d){return[1/3*t+2/3*n,1/3*e+2/3*s,1/3*a+2/3*n,1/3*d+2/3*s,a,d]},Wi=function(t,e,n,s,a,d,m,v,x,k){var F,P=120*Mt/180,T=Mt/180*(+a||0),S=[],R=Ot(function(rs,ss,tn){return{x:rs*H.cos(tn)-ss*H.sin(tn),y:rs*H.sin(tn)+ss*H.cos(tn)}});if(k)ut=k[0],vt=k[1],j=k[2],gt=k[3];else{t=(F=R(t,e,-T)).x,e=F.y,v=(F=R(v,x,-T)).x,x=F.y;var I=(t-v)/2,O=(e-x)/2,A=I*I/(n*n)+O*O/(s*s);A>1&&(n*=A=H.sqrt(A),s*=A);var J=n*n,D=s*s,q=(d==m?-1:1)*H.sqrt(at((J*D-J*O*O-D*I*I)/(J*O*O+D*I*I))),j=q*n*O/s+(t+v)/2,gt=q*-s*I/n+(e+x)/2,ut=H.asin(((e-gt)/s).toFixed(9)),vt=H.asin(((x-gt)/s).toFixed(9));(ut=t<j?Mt-ut:ut)<0&&(ut=2*Mt+ut),(vt=v<j?Mt-vt:vt)<0&&(vt=2*Mt+vt),m&&ut>vt&&(ut-=2*Mt),!m&&vt>ut&&(vt-=2*Mt)}var ai=vt-ut;if(at(ai)>P){var Fi=vt,Ht=v,ge=x;vt=ut+P*(m&&vt>ut?1:-1),v=j+n*H.cos(vt),x=gt+s*H.sin(vt),S=Wi(v,x,n,s,a,0,m,Ht,ge,[vt,Fi,j,gt])}ai=vt-ut;var li=H.cos(ut),ui=H.sin(ut),Qi=H.cos(vt),be=H.sin(vt),He=H.tan(ai/4),Ji=4/3*n*He,Jr=4/3*s*He,ts=[t,e],fi=[t+Ji*ui,e-Jr*li],es=[v+Ji*be,x-Jr*Qi],is=[v,x];if(fi[0]=2*ts[0]-fi[0],fi[1]=2*ts[1]-fi[1],k)return[fi,es,is][B](S);for(var ns=[],Re=0,Bo=(S=[fi,es,is][B](S).join()[et](",")).length;Re<Bo;Re++)ns[Re]=Re%2?R(S[Re-1],S[Re],T).y:R(S[Re],S[Re+1],T).x;return ns},Ye=function(t,e,n,s,a,d,m,v,x){var k=1-x;return{x:yt(k,3)*t+3*yt(k,2)*x*n+3*k*x*x*a+yt(x,3)*m,y:yt(k,3)*e+3*yt(k,2)*x*s+3*k*x*x*d+yt(x,3)*v}},Zi=Ot(function(t,e,n,s,a,d,m,v){var x,k=a-2*n+t-(m-2*a+n),F=2*(n-t)-2*(a-n),P=t-n,T=(-F+H.sqrt(F*F-4*k*P))/2/k,S=(-F-H.sqrt(F*F-4*k*P))/2/k,R=[e,v],I=[t,m];return at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=Ye(t,e,n,s,a,d,m,v,T),I.push(x.x),R.push(x.y)),S>0&&S<1&&(x=Ye(t,e,n,s,a,d,m,v,S),I.push(x.x),R.push(x.y)),k=d-2*s+e-(v-2*d+s),P=e-s,T=(-(F=2*(s-e)-2*(d-s))+H.sqrt(F*F-4*k*P))/2/k,S=(-F-H.sqrt(F*F-4*k*P))/2/k,at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=Ye(t,e,n,s,a,d,m,v,T),I.push(x.x),R.push(x.y)),S>0&&S<1&&(x=Ye(t,e,n,s,a,d,m,v,S),I.push(x.x),R.push(x.y)),{min:{x:G[U](0,I),y:G[U](0,R)},max:{x:K[U](0,I),y:K[U](0,R)}}}),Mi=f._path2curve=Ot(function(t,e){var n=!e&&se(t);if(!e&&n.curve)return Xt(n.curve);for(var s=ri(t),a=e&&ri(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},v=function(q,j,gt){var ut,vt;if(!q)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(q[0]in{T:1,Q:1})&&(j.qx=j.qy=null),q[0]){case"M":j.X=q[1],j.Y=q[2];break;case"A":q=["C"][B](Wi[U](0,[j.x,j.y][B](q.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*j.x-j.bx,vt=2*j.y-j.by):(ut=j.x,vt=j.y),q=["C",ut,vt][B](q.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),q=["C"][B](Ne(j.x,j.y,j.qx,j.qy,q[1],q[2]));break;case"Q":j.qx=q[1],j.qy=q[2],q=["C"][B](Ne(j.x,j.y,q[1],q[2],q[3],q[4]));break;case"L":q=["C"][B](si(j.x,j.y,q[1],q[2]));break;case"H":q=["C"][B](si(j.x,j.y,q[1],j.y));break;case"V":q=["C"][B](si(j.x,j.y,j.x,q[1]));break;case"Z":q=["C"][B](si(j.x,j.y,j.X,j.Y))}return q},x=function(q,j){if(q[j].length>7){q[j].shift();for(var gt=q[j];gt.length;)F[j]="A",a&&(P[j]="A"),q.splice(j++,0,["C"][B](gt.splice(0,6)));q.splice(j,1),I=K(s.length,a&&a.length||0)}},k=function(q,j,gt,ut,vt){q&&j&&q[vt][0]=="M"&&j[vt][0]!="M"&&(j.splice(vt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=q[vt][1],gt.y=q[vt][2],I=K(s.length,a&&a.length||0))},F=[],P=[],T="",S="",R=0,I=K(s.length,a&&a.length||0);R<I;R++){s[R]&&(T=s[R][0]),T!="C"&&(F[R]=T,R&&(S=F[R-1])),s[R]=v(s[R],d,S),F[R]!="A"&&T=="C"&&(F[R]="C"),x(s,R),a&&(a[R]&&(T=a[R][0]),T!="C"&&(P[R]=T,R&&(S=P[R-1])),a[R]=v(a[R],m,S),P[R]!="A"&&T=="C"&&(P[R]="C"),x(a,R)),k(s,a,d,m,R),k(a,s,m,d,R);var O=s[R],A=a&&a[R],J=O.length,D=a&&A.length;d.x=O[J-2],d.y=O[J-1],d.bx=y(O[J-4])||d.x,d.by=y(O[J-3])||d.y,m.bx=a&&(y(A[D-4])||m.x),m.by=a&&(y(A[D-3])||m.y),m.x=a&&A[D-2],m.y=a&&A[D-1]}return a||(n.curve=Xt(s)),a?[s,a]:s},null,Xt),Ki=(f._parseDots=Ot(function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a={},d=t[n].match(/^([^:]*):?([\d\.]*)/);if(a.color=f.getRGB(d[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,d[2]&&(a.offset=d[2]+"%"),e.push(a)}for(n=1,s=e.length-1;n<s;n++)if(!e[n].offset){for(var m=y(e[n-1].offset||0),v=0,x=n+1;x<s;x++)if(e[x].offset){v=e[x].offset;break}v||(v=100,x=s);for(var k=((v=y(v))-m)/(x-n+1);n<x;n++)m+=k,e[n].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)}),So=(f._tofront=function(t,e){e.top!==t&&(Ki(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},f._toback=function(t,e){e.bottom!==t&&(Ki(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},f._insertafter=function(t,e,n){Ki(t,n),e==n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},f._insertbefore=function(t,e,n){Ki(t,n),e==n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},f.toMatrix=function(t,e){var n=Te(t),s={_:{transform:lt},getBBox:function(){return n}};return Dr(s,e),s.matrix}),Dr=(f.transformPath=function(t,e){return zt(t,So(t,e))},f._extractTransform=function(t,e){if(e==null)return t._.transform;e=V(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var n,s,a=f.parseTransformString(e),d=0,m=1,v=1,x=t._,k=new qe;if(x.transform=a||[],a)for(var F=0,P=a.length;F<P;F++){var T,S,R,I,O,A=a[F],J=A.length,D=V(A[0]).toLowerCase(),q=A[0]!=D,j=q?k.invert():0;D=="t"&&J==3?q?(T=j.x(0,0),S=j.y(0,0),R=j.x(A[1],A[2]),I=j.y(A[1],A[2]),k.translate(R-T,I-S)):k.translate(A[1],A[2]):D=="r"?J==2?(O=O||t.getBBox(1),k.rotate(A[1],O.x+O.width/2,O.y+O.height/2),d+=A[1]):J==4&&(q?(R=j.x(A[2],A[3]),I=j.y(A[2],A[3]),k.rotate(A[1],R,I)):k.rotate(A[1],A[2],A[3]),d+=A[1]):D=="s"?J==2||J==3?(O=O||t.getBBox(1),k.scale(A[1],A[J-1],O.x+O.width/2,O.y+O.height/2),m*=A[1],v*=A[J-1]):J==5&&(q?(R=j.x(A[3],A[4]),I=j.y(A[3],A[4]),k.scale(A[1],A[2],R,I)):k.scale(A[1],A[2],A[3],A[4]),m*=A[1],v*=A[2]):D=="m"&&J==7&&k.add(A[1],A[2],A[3],A[4],A[5],A[6]),x.dirtyT=1,t.matrix=k}t.matrix=k,x.sx=m,x.sy=v,x.deg=d,x.dx=n=k.e,x.dy=s=k.f,m==1&&v==1&&!d&&x.bbox?(x.bbox.x+=+n,x.bbox.y+=+s):x.dirtyT=1}),jr=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]}},Fo=f._equaliseTransform=function(t,e){e=V(e).replace(/\.{3}|\u2026/g,t),t=f.parseTransformString(t)||[],e=f.parseTransformString(e)||[];for(var n,s,a,d,m=K(t.length,e.length),v=[],x=[],k=0;k<m;k++){if(a=t[k]||jr(e[k]),d=e[k]||jr(a),a[0]!=d[0]||a[0].toLowerCase()=="r"&&(a[2]!=d[2]||a[3]!=d[3])||a[0].toLowerCase()=="s"&&(a[3]!=d[3]||a[4]!=d[4]))return;for(v[k]=[],x[k]=[],n=0,s=K(a.length,d.length);n<s;n++)n in a&&(v[k][n]=a[n]),n in d&&(x[k][n]=d[n])}return{from:v,to:x}};function qe(t,e,n,s,a,d){t!=null?(this.a=+t,this.b=+e,this.c=+n,this.d=+s,this.e=+a,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,n,s){var a;if((a=s!=null||f.is(t,"object")?t:W.doc.getElementById(t))!=null)return a.tagName?e==null?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:e,height:n}:{container:1,x:t,y:e,width:n,height:s}},f.pathToRelative=Ir,f._engine={},f.path2curve=Mi,f.matrix=function(t,e,n,s,a,d){return new qe(t,e,n,s,a,d)},(function(t){function e(s){return s[0]*s[0]+s[1]*s[1]}function n(s){var a=H.sqrt(e(s));s[0]&&(s[0]/=a),s[1]&&(s[1]/=a)}t.add=function(s,a,d,m,v,x){var k,F,P,T,S=[[],[],[]],R=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],I=[[s,d,v],[a,m,x],[0,0,1]];for(s&&s instanceof qe&&(I=[[s.a,s.c,s.e],[s.b,s.d,s.f],[0,0,1]]),k=0;k<3;k++)for(F=0;F<3;F++){for(T=0,P=0;P<3;P++)T+=R[k][P]*I[P][F];S[k][F]=T}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 s=this,a=s.a*s.d-s.b*s.c;return new qe(s.d/a,-s.b/a,-s.c/a,s.a/a,(s.c*s.f-s.d*s.e)/a,(s.b*s.e-s.a*s.f)/a)},t.clone=function(){return new qe(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(s,a){this.add(1,0,0,1,s,a)},t.scale=function(s,a,d,m){a==null&&(a=s),(d||m)&&this.add(1,0,0,1,d,m),this.add(s,0,0,a,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(s,a,d){s=f.rad(s),a=a||0,d=d||0;var m=+H.cos(s).toFixed(9),v=+H.sin(s).toFixed(9);this.add(m,v,-v,m,a,d),this.add(1,0,0,1,-a,-d)},t.x=function(s,a){return s*this.a+a*this.c+this.e},t.y=function(s,a){return s*this.b+a*this.d+this.f},t.get=function(s){return+this[V.fromCharCode(97+s)].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 s={};s.dx=this.e,s.dy=this.f;var a=[[this.a,this.c],[this.b,this.d]];s.scalex=H.sqrt(e(a[0])),n(a[0]),s.shear=a[0][0]*a[1][0]+a[0][1]*a[1][1],a[1]=[a[1][0]-a[0][0]*s.shear,a[1][1]-a[0][1]*s.shear],s.scaley=H.sqrt(e(a[1])),n(a[1]),s.shear/=s.scaley;var d=-a[0][1],m=a[1][1];return m<0?(s.rotate=f.deg(H.acos(m)),d<0&&(s.rotate=360-s.rotate)):s.rotate=f.deg(H.asin(d)),s.isSimple=!(+s.shear.toFixed(9)||s.scalex.toFixed(9)!=s.scaley.toFixed(9)&&s.rotate),s.isSuperSimple=!+s.shear.toFixed(9)&&s.scalex.toFixed(9)==s.scaley.toFixed(9)&&!s.rotate,s.noRotation=!+s.shear.toFixed(9)&&!s.rotate,s},t.toTransformString=function(s){var a=s||this[et]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:lt)+(a.scalex!=1||a.scaley!=1?"s"+[a.scalex,a.scaley,0,0]:lt)+(a.rotate?"r"+[a.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(qe.prototype);for(var Ao=function(){this.returnValue=!1},To=function(){return this.originalEvent.preventDefault()},No=function(){this.cancelBubble=!0},Lo=function(){return this.originalEvent.stopPropagation()},Yr=function(t){var e=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,n=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;return{x:t.clientX+n,y:t.clientY+e}},Ro=W.doc.addEventListener?function(t,e,n,s){var a=function(m){var v=Yr(m);return n.call(s,m,v.x,v.y)};if(t.addEventListener(e,a,!1),Q&&wt[e]){var d=function(m){for(var v=Yr(m),x=m,k=0,F=m.targetTouches&&m.targetTouches.length;k<F;k++)if(m.targetTouches[k].target==t){(m=m.targetTouches[k]).originalEvent=x,m.preventDefault=To,m.stopPropagation=Lo;break}return n.call(s,m,v.x,v.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,a,!1),Q&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:W.doc.attachEvent?function(t,e,n,s){var a=function(d){d=d||W.win.event;var m=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,v=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,x=d.clientX+v,k=d.clientY+m;return d.preventDefault=d.preventDefault||Ao,d.stopPropagation=d.stopPropagation||No,n.call(s,d,x,k)};return t.attachEvent("on"+e,a),function(){return t.detachEvent("on"+e,a),!0}}:void 0,Le=[],xn=function(t){for(var e,n=t.clientX,s=t.clientY,a=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,d=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,m=Le.length;m--;){if(e=Le[m],Q&&t.touches){for(var v,x=t.touches.length;x--;)if((v=t.touches[x]).identifier==e.el._drag.id){n=v.clientX,s=v.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var k,F=e.el.node,P=F.nextSibling,T=F.parentNode,S=F.style.display;W.win.opera&&T.removeChild(F),F.style.display="none",k=e.el.paper.getElementByPoint(n,s),F.style.display=S,W.win.opera&&(P?T.insertBefore(F,P):T.appendChild(F)),k&&h("raphael.drag.over."+e.el.id,e.el,k),n+=d,s+=a,h("raphael.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,s-e.el._drag.y,n,s,t)}},yn=function(t){f.unmousemove(xn).unmouseup(yn);for(var e,n=Le.length;n--;)(e=Le[n]).el._drag={},h("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);Le=[]},At=f.el={},qr=rt.length;qr--;)(function(t){f[t]=At[t]=function(e,n){return f.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Ro(this.shape||this.node||W.doc,t,e,n||this)})),this},f["un"+t]=At["un"+t]=function(e){for(var n=this.events||[],s=n.length;s--;)n[s].name!=t||!f.is(e,"undefined")&&n[s].f!=e||(n[s].unbind(),n.splice(s,1),!n.length&&delete this.events);return this}})(rt[qr]);At.data=function(t,e){var n=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return n;if(arguments.length==1){if(f.is(t,"object")){for(var s in t)t[nt](s)&&this.data(s,t[s]);return this}return h("raphael.data.get."+this.id,this,n[t],t),n[t]}return n[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 qt(kt[this.id]||{})},At.hover=function(t,e,n,s){return this.mouseover(t,n).mouseout(e,s||n)},At.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var oi=[];At.drag=function(t,e,n,s,a,d){function m(v){(v.originalEvent||v).preventDefault();var x=v.clientX,k=v.clientY,F=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,P=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;if(this._drag.id=v.identifier,Q&&v.touches){for(var T,S=v.touches.length;S--;)if(T=v.touches[S],this._drag.id=T.identifier,T.identifier==this._drag.id){x=T.clientX,k=T.clientY;break}}this._drag.x=x+P,this._drag.y=k+F,!Le.length&&f.mousemove(xn).mouseup(yn),Le.push({el:this,move_scope:s,start_scope:a,end_scope:d}),e&&h.on("raphael.drag.start."+this.id,e),t&&h.on("raphael.drag.move."+this.id,t),n&&h.on("raphael.drag.end."+this.id,n),h("raphael.drag.start."+this.id,a||s||this,this._drag.x,this._drag.y,v)}return this._drag={},oi.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=oi.length;t--;)oi[t].el==this&&(this.unmousedown(oi[t].start),oi.splice(t,1),h.unbind("raphael.drag.*."+this.id));!oi.length&&f.unmousemove(xn).unmouseup(yn),Le=[]},z.circle=function(t,e,n){var s=f._engine.circle(this,t||0,e||0,n||0);return this.__set__&&this.__set__.push(s),s},z.rect=function(t,e,n,s,a){var d=f._engine.rect(this,t||0,e||0,n||0,s||0,a||0);return this.__set__&&this.__set__.push(d),d},z.ellipse=function(t,e,n,s){var a=f._engine.ellipse(this,t||0,e||0,n||0,s||0);return this.__set__&&this.__set__.push(a),a},z.path=function(t){t&&!f.is(t,"string")&&!f.is(t[0],xt)&&(t+=lt);var e=f._engine.path(f.format[U](f,arguments),this);return this.__set__&&this.__set__.push(e),e},z.image=function(t,e,n,s,a){var d=f._engine.image(this,t||"about:blank",e||0,n||0,s||0,a||0);return this.__set__&&this.__set__.push(d),d},z.text=function(t,e,n){var s=f._engine.text(this,t||0,e||0,V(n));return this.__set__&&this.__set__.push(s),s},z.set=function(t){!f.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new Si(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},z.setStart=function(t){this.__set__=t||this.set()},z.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},z.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},z.setSize=function(t,e){return f._engine.setSize.call(this,t,e)},z.setViewBox=function(t,e,n,s,a){return f._engine.setViewBox.call(this,t,e,n,s,a)},z.top=z.bottom=null,z.raphael=f;function Xr(){return this.x+ht+this.y+ht+this.width+" × "+this.height}z.getElementByPoint=function(t,e){var n,s,a,d,m,v,x,k=this.canvas,F=W.doc.elementFromPoint(t,e);if(W.win.opera&&F.tagName=="svg"){var P=(s=(n=k).getBoundingClientRect(),a=n.ownerDocument,d=a.body,m=a.documentElement,v=m.clientTop||d.clientTop||0,x=m.clientLeft||d.clientLeft||0,{y:s.top+(W.win.pageYOffset||m.scrollTop||d.scrollTop)-v,x:s.left+(W.win.pageXOffset||m.scrollLeft||d.scrollLeft)-x}),T=k.createSVGRect();T.x=t-P.x,T.y=e-P.y,T.width=T.height=1;var S=k.getIntersectionList(T,null);S.length&&(F=S[S.length-1])}if(!F)return null;for(;F.parentNode&&F!=k.parentNode&&!F.raphael;)F=F.parentNode;return F==this.canvas.parentNode&&(F=k),F=F&&F.raphael?this.getById(F.raphaelid):null},z.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(n){f.isBBoxIntersect(n.getBBox(),t)&&e.push(n)}),e},z.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},z.forEach=function(t,e){for(var n=this.bottom;n;){if(t.call(e,n)===!1)return this;n=n.next}return this},z.getElementsByPoint=function(t,e){var n=this.set();return this.forEach(function(s){s.isPointInside(t,e)&&n.push(s)}),n},At.isPointInside=function(t,e){var n=this.realPath=Rt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=f.transformPath(n,this.attr("transform"))),f.isPointInsidePath(n,t,e)},At.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Rt[this.type](this),e.bboxwt=Te(this.realPath),e.bboxwt.toString=Xr,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Rt[this.type](this)),e.bbox=Te(zt(this.realPath,this.matrix)),e.bbox.toString=Xr,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"},n=e.width/2,s=this.paper,a=s.set(),d=this.realPath||Rt[this.type](this);d=this.matrix?zt(d,this.matrix):d;for(var m=1;m<n+1;m++)a.push(s.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/n*m).toFixed(3),opacity:+(e.opacity/n).toFixed(3)}));return a.insertBefore(this).translate(e.offsetx,e.offsety)};var _n=function(t,e,n,s,a,d,m,v,x){return x==null?fe(t,e,n,s,a,d,m,v):f.findDotsAtSegment(t,e,n,s,a,d,m,v,(function(k,F,P,T,S,R,I,O,A){if(!(A<0||fe(k,F,P,T,S,R,I,O)<A)){var J,D=.5,q=1-D;for(J=fe(k,F,P,T,S,R,I,O,q);at(J-A)>.01;)J=fe(k,F,P,T,S,R,I,O,q+=(J<A?1:-1)*(D/=2));return q}})(t,e,n,s,a,d,m,v,x))},bn=function(t,e){return function(n,s,a){for(var d,m,v,x,k,F="",P={},T=0,S=0,R=(n=Mi(n)).length;S<R;S++){if((v=n[S])[0]=="M")d=+v[1],m=+v[2];else{if(T+(x=_n(d,m,v[1],v[2],v[3],v[4],v[5],v[6]))>s){if(e&&!P.start){if(F+=["C"+(k=_n(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).start.x,k.start.y,k.m.x,k.m.y,k.x,k.y],a)return F;P.start=F,F=["M"+k.x,k.y+"C"+k.n.x,k.n.y,k.end.x,k.end.y,v[5],v[6]].join(),T+=x,d=+v[5],m=+v[6];continue}if(!t&&!e)return{x:(k=_n(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).x,y:k.y,alpha:k.alpha}}T+=x,d=+v[5],m=+v[6]}F+=v.shift()+v}return P.end=F,(k=t?T:e?P:f.findDotsAtSegment(d,m,v[0],v[1],v[2],v[3],v[4],v[5],1)).alpha&&(k={x:k.x,y:k.y,alpha:k.alpha}),k}},Hr=bn(1),Gr=bn(),wn=bn(0,1);f.getTotalLength=Hr,f.getPointAtLength=Gr,f.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return wn(t,e).end;var s=wn(t,n,1);return e?wn(s,e).end:s},At.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Hr(t)},At.getPointAtLength=function(t){var e=this.getPath();if(e)return Gr(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 n=this.getPath();if(n)return f.getSubpath(n,t,e)};var ie=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,n=H.sqrt(.1734+e*e),s=n-e,a=-n-e,d=yt(at(s),1/3)*(s<0?-1:1)+yt(at(a),1/3)*(a<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*Mt*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375}};ie.easeIn=ie["ease-in"]=ie["<"],ie.easeOut=ie["ease-out"]=ie[">"],ie.easeInOut=ie["ease-in-out"]=ie["<>"],ie["back-in"]=ie.backIn,ie["back-out"]=ie.backOut;var Et=[],Ur=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},kn=function(){for(var t=+new Date,e=0;e<Et.length;e++){var n=Et[e];if(!n.el.removed&&!n.paused){var s,a,d=t-n.start,m=n.ms,v=n.easing,x=n.from,k=n.diff,F=n.to,P=(n.t,n.el),T={},S={};if(n.initstatus?(d=(n.initstatus*n.anim.top-n.prev)/(n.percent-n.prev)*m,n.status=n.initstatus,delete n.initstatus,n.stop&&Et.splice(e--,1)):n.status=(n.prev+(n.percent-n.prev)*(d/m))/n.anim.top,!(d<0))if(d<m){var R=v(d/m);for(var I in x)if(x[nt](I)){switch(M[I]){case ct:s=+x[I]+R*m*k[I];break;case"colour":s="rgb("+[En(c(x[I].r+R*m*k[I].r)),En(c(x[I].g+R*m*k[I].g)),En(c(x[I].b+R*m*k[I].b))].join(",")+")";break;case"path":s=[];for(var O=0,A=x[I].length;O<A;O++){s[O]=[x[I][O][0]];for(var J=1,D=x[I][O].length;J<D;J++)s[O][J]=+x[I][O][J]+R*m*k[I][O][J];s[O]=s[O].join(ht)}s=s.join(ht);break;case"transform":if(k[I].real)for(s=[],O=0,A=x[I].length;O<A;O++)for(s[O]=[x[I][O][0]],J=1,D=x[I][O].length;J<D;J++)s[O][J]=x[I][O][J]+R*m*k[I][O][J];else{var q=function(gt){return+x[I][gt]+R*m*k[I][gt]};s=[["m",q(0),q(1),q(2),q(3),q(4),q(5)]]}break;case"csv":if(I=="clip-rect")for(s=[],O=4;O--;)s[O]=+x[I][O]+R*m*k[I][O];break;default:var j=[][B](x[I]);for(s=[],O=P.paper.customAttributes[I].length;O--;)s[O]=+j[O]+R*m*k[I][O]}T[I]=s}P.attr(T),(function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+gt,ut,vt)})})(P.id,P,n.anim)}else{if((function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+ut.id,ut,vt),h("raphael.anim.finish."+ut.id,ut,vt),f.is(gt,"function")&>.call(ut)})})(n.callback,P,n.anim),P.attr(F),Et.splice(e--,1),n.repeat>1&&!n.next){for(a in F)F[nt](a)&&(S[a]=n.totalOrigin[a]);n.el.attr(S),$i(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&$i(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}Et.length&&Ur(kn)},En=function(t){return t>255?255:t<0?0:t};function zo(t,e,n,s,a,d){var m=3*e,v=3*(s-e)-m,x=1-m-v,k=3*n,F=3*(a-n)-k,P=1-k-F;function T(S){return((x*S+v)*S+m)*S}return(function(S,R){var I=(function(O,A){var J,D,q,j,gt,ut;for(q=O,ut=0;ut<8;ut++){if(j=T(q)-O,at(j)<A)return q;if(at(gt=(3*x*q+2*v)*q+m)<1e-6)break;q-=j/gt}if(D=1,(q=O)<(J=0))return J;if(q>D)return D;for(;J<D;){if(j=T(q),at(j-O)<A)return q;O>j?J=q:D=q,q=(D-J)/2+J}return q})(S,R);return((P*I+F)*I+k)*I})(t,1/(200*d))}function _e(t,e){var n=[],s={};if(this.ms=e,this.times=1,t){for(var a in t)t[nt](a)&&(s[y(a)]=t[a],n.push(y(a)));n.sort(Ct)}this.anim=s,this.top=n[n.length-1],this.percents=n}function $i(t,e,n,s,a,d){n=y(n);var m,v,x,k,F,P,T=t.ms,S={},R={},I={};if(s)for(A=0,J=Et.length;A<J;A++){var O=Et[A];if(O.el.id==e.id&&O.anim==t){O.percent!=n?(Et.splice(A,1),x=1):v=O,e.attr(O.totalOrigin);break}}else s=+R;for(var A=0,J=t.percents.length;A<J;A++){if(t.percents[A]==n||t.percents[A]>s*t.top){n=t.percents[A],F=t.percents[A-1]||0,T=T/t.top*(n-F),k=t.percents[A+1],m=t.anim[n];break}s&&e.attr(t.anim[t.percents[A]])}if(m){if(v)v.initstatus=s,v.start=new Date-v.ms*s;else{for(var D in m)if(m[nt](D)&&(M[nt](D)||e.paper.customAttributes[nt](D)))switch(S[D]=e.attr(D),S[D]==null&&(S[D]=L[D]),R[D]=m[D],M[D]){case ct:I[D]=(R[D]-S[D])/T;break;case"colour":S[D]=f.getRGB(S[D]);var q=f.getRGB(R[D]);I[D]={r:(q.r-S[D].r)/T,g:(q.g-S[D].g)/T,b:(q.b-S[D].b)/T};break;case"path":var j=Mi(S[D],R[D]),gt=j[1];for(S[D]=j[0],I[D]=[],A=0,J=S[D].length;A<J;A++){I[D][A]=[0];for(var ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(gt[A][ut]-S[D][A][ut])/T}break;case"transform":var ai=e._,Fi=Fo(ai[D],R[D]);if(Fi)for(S[D]=Fi.from,R[D]=Fi.to,I[D]=[],I[D].real=!0,A=0,J=S[D].length;A<J;A++)for(I[D][A]=[S[D][A][0]],ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(R[D][A][ut]-S[D][A][ut])/T;else{var Ht=e.matrix||new qe,ge={_:{transform:ai.transform},getBBox:function(){return e.getBBox(1)}};S[D]=[Ht.a,Ht.b,Ht.c,Ht.d,Ht.e,Ht.f],Dr(ge,R[D]),R[D]=ge._.transform,I[D]=[(ge.matrix.a-Ht.a)/T,(ge.matrix.b-Ht.b)/T,(ge.matrix.c-Ht.c)/T,(ge.matrix.d-Ht.d)/T,(ge.matrix.e-Ht.e)/T,(ge.matrix.f-Ht.f)/T]}break;case"csv":var li=V(m[D])[et](Z),ui=V(S[D])[et](Z);if(D=="clip-rect")for(S[D]=ui,I[D]=[],A=ui.length;A--;)I[D][A]=(li[A]-S[D][A])/T;R[D]=li;break;default:for(li=[][B](m[D]),ui=[][B](S[D]),I[D]=[],A=e.paper.customAttributes[D].length;A--;)I[D][A]=((li[A]||0)-(ui[A]||0))/T}var Qi=m.easing,be=f.easing_formulas[Qi];if(!be)if((be=V(Qi).match(o))&&be.length==5){var He=be;be=function(Ji){return zo(Ji,+He[1],+He[2],+He[3],+He[4],T)}}else be=bt;if(O={anim:t,percent:n,timestamp:P=m.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:s||0,stop:!1,ms:T,easing:be,from:S,diff:I,to:R,el:e,callback:m.callback,prev:F,next:k,repeat:d||t.times,origin:e.attr(),totalOrigin:a},Et.push(O),s&&!v&&!x&&(O.stop=!0,O.start=new Date-T*s,Et.length==1))return kn();x&&(O.start=new Date-O.ms*s),Et.length==1&&Ur(kn)}h("raphael.anim.start."+e.id,e,t)}}function Wr(t){for(var e=0;e<Et.length;e++)Et[e].el.paper==t&&Et.splice(e--,1)}At.animateWith=function(t,e,n,s,a,d){if(this.removed)return d&&d.call(this),this;var m=n instanceof _e?n:f.animation(n,s,a,d);$i(m,this,m.percents[0],null,this.attr());for(var v=0,x=Et.length;v<x;v++)if(Et[v].anim==e&&Et[v].el==t){Et[x-1].start=Et[v].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},_e.prototype.delay=function(t){var e=new _e(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},_e.prototype.repeat=function(t){var e=new _e(this.anim,this.ms);return e.del=this.del,e.times=H.floor(K(t,0))||1,e},f.animation=function(t,e,n,s){if(t instanceof _e)return t;!f.is(n,"function")&&n||(s=s||n||null,n=null),t=Object(t),e=+e||0;var a,d,m={};for(d in t)t[nt](d)&&y(d)!=d&&y(d)+"%"!=d&&(a=!0,m[d]=t[d]);if(a)return n&&(m.easing=n),s&&(m.callback=s),new _e({100:m},e);if(s){var v=0;for(var x in t){var k=E(x);t[nt](x)&&k>v&&(v=k)}!t[v+="%"].callback&&(t[v].callback=s)}return new _e(t,e)},At.animate=function(t,e,n,s){if(this.removed)return s&&s.call(this),this;var a=t instanceof _e?t:f.animation(t,e,n,s);return $i(a,this,a.percents[0],null,this.attr()),this},At.setTime=function(t,e){return t&&e!=null&&this.status(t,G(e,t.ms)/t.ms),this},At.status=function(t,e){var n,s,a=[],d=0;if(e!=null)return $i(t,this,-1,G(e,1)),this;for(n=Et.length;d<n;d++)if((s=Et[d]).el.id==this.id&&(!t||s.anim==t)){if(t)return s.status;a.push({anim:s.anim,status:s.status})}return t?0:a},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 n=Et[e];h("raphael.anim.resume."+this.id,this,n.anim)!==!1&&(delete n.paused,this.status(n.anim,n.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",Wr),h.on("raphael.clear",Wr),At.toString=function(){return"Raphaël’s object"};var Zr,Kr,Xe,Qr,Si=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)!t[e]||t[e].constructor!=At.constructor&&t[e].constructor!=Si||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},Pt=Si.prototype;for(var Cn in Pt.push=function(){for(var t,e,n=0,s=arguments.length;n<s;n++)!(t=arguments[n])||t.constructor!=At.constructor&&t.constructor!=Si||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},Pt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Pt.forEach=function(t,e){for(var n=0,s=this.items.length;n<s;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},At)At[nt](Cn)&&(Pt[Cn]=(function(t){return function(){var e=arguments;return this.forEach(function(n){n[t][U](n,e)})}})(Cn));return Pt.attr=function(t,e){if(t&&f.is(t,xt)&&f.is(t[0],"object"))for(var n=0,s=t.length;n<s;n++)this.items[n].attr(t[n]);else for(var a=0,d=this.items.length;a<d;a++)this.items[a].attr(t,e);return this},Pt.clear=function(){for(;this.length;)this.pop()},Pt.splice=function(t,e,n){t=t<0?K(this.length+t,0):t,e=K(0,G(this.length-t,e));var s,a=[],d=[],m=[];for(s=2;s<arguments.length;s++)m.push(arguments[s]);for(s=0;s<e;s++)d.push(this[t+s]);for(;s<this.length-t;s++)a.push(this[t+s]);var v=m.length;for(s=0;s<v+a.length;s++)this.items[t+s]=this[t+s]=s<v?m[s]:a[s-v];for(s=this.items.length=this.length-=e-v;this[s];)delete this[s++];return new Si(d)},Pt.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0},Pt.animate=function(t,e,n,s){(f.is(n,"function")||!n)&&(s=n||null);var a,d,m=this.items.length,v=m,x=this;if(!m)return this;s&&(d=function(){!--m&&s.call(x)}),n=f.is(n,"string")?n:d;var k=f.animation(t,e,n,d);for(a=this.items[--v].animate(k);v--;)this.items[v]&&!this.items[v].removed&&this.items[v].animateWith(a,k,k),this.items[v]&&!this.items[v].removed||m--;return this},Pt.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},Pt.getBBox=function(){for(var t=[],e=[],n=[],s=[],a=this.items.length;a--;)if(!this.items[a].removed){var d=this.items[a].getBBox();t.push(d.x),e.push(d.y),n.push(d.x+d.width),s.push(d.y+d.height)}return{x:t=G[U](0,t),y:e=G[U](0,e),x2:n=K[U](0,n),y2:s=K[U](0,s),width:n-t,height:s-e}},Pt.clone=function(t){t=this.paper.set();for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},Pt.toString=function(){return"Raphaël‘s set"},Pt.glow=function(t){var e=this.paper.set();return this.forEach(function(n,s){var a=n.glow(t);a?.forEach(function(d,m){e.push(d)})}),e},Pt.isPointInside=function(t,e){var n=!1;return this.forEach(function(s){if(s.isPointInside(t,e))return n=!0,!1}),n},f.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(var s in t.face)t.face[nt](s)&&(e.face[s]=t.face[s]);if(this.fonts[n]?this.fonts[n].push(e):this.fonts[n]=[e],!t.svg){for(var a in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[nt](a)){var d=t.glyphs[a];if(e.glyphs[a]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(v){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[v]||"M"})+"z"},d.k)for(var m in d.k)d[nt](m)&&(e.glyphs[a].k[m]=d.k[m])}}return t},z.getFont=function(t,e,n,s){if(s=s||"normal",n=n||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,f.fonts){var a,d=f.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var v in f.fonts)if(f.fonts[nt](v)&&m.test(v)){d=f.fonts[v];break}}if(d)for(var x=0,k=d.length;x<k&&((a=d[x]).face["font-weight"]!=e||a.face["font-style"]!=n&&a.face["font-style"]||a.face["font-stretch"]!=s);x++);return a}},z.print=function(t,e,n,s,a,d,m,v){d=d||"middle",m=K(G(m||0,1),-1),v=K(G(v||1,3),1);var x,k=V(n)[et](lt),F=0,P=0,T=lt;if(f.is(s,"string")&&(s=this.getFont(s)),s){x=(a||16)/s.face["units-per-em"];for(var S=s.face.bbox[et](Z),R=+S[0],I=S[3]-S[1],O=0,A=+S[1]+(d=="baseline"?I+ +s.face.descent:I/2),J=0,D=k.length;J<D;J++){if(k[J]==`
|
|
3
|
-
`)F=0,j=0,P=0,O+=I*v;else{var q=P&&s.glyphs[
|
|
4
|
-
You are running Raphaël `+this.version};var V=function(p,u){if(u)for(var o in typeof p=="string"&&(p=V(p)),u)u[f](o)&&(o.substring(0,6)=="xlink:"?p.setAttributeNS(Q,o.substring(6),$(u[o])):p.setAttribute(o,$(u[o])));else(p=h._g.doc.createElementNS("http://www.w3.org/2000/svg",p)).style&&(p.style.webkitTapHighlightColor="rgba(0,0,0,0)");return p},et=function(p,u){var o="linear",c=p.id+u,
|
|
5
|
-
`),L=[],M=0,N=C.length;M<N;M++)E=V("tspan"),M&&V(E,{dy:1.2*y,x:o.x}),E.appendChild(h._g.doc.createTextNode(C[M])),c.appendChild(E),L[M]=E}else for(M=0,N=(L=c.getElementsByTagName("tspan")).length;M<N;M++)M?V(L[M],{dy:1.2*y,x:o.x}):V(L[0],{dy:0});V(c,{x:o.x,y:o.y}),p._.dirty=1;var X=p._getBBox(),it=o.y-(X.y+X.height/2);it&&h.is(it,"finite")&&V(L[0],{dy:it})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},Mt=function(p,u){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=u,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!u.bottom&&(u.bottom=this),this.prev=u.top,u.top&&(u.top.next=this),u.top=this,this.next=null},ct=h.el;Mt.prototype=ct,ct.constructor=Mt,h._engine.path=function(p,u){var o=V("path");u.canvas&&u.canvas.appendChild(o);var c=new Mt(o,u);return c.type="path",G(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,u,o){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=z(p[1]),o=z(p[2])),p=z(p[0]),o==null&&(u=o),u==null||o==null){var c=this.getBBox(1);u=c.x+c.width/2,o=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,u,o]])),this},ct.scale=function(p,u,o,c){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=z(p[1]),o=z(p[2]),c=z(p[3])),p=z(p[0]),u==null&&(u=p),c==null&&(o=c),o==null||c==null)var y=this.getBBox(1);return o=o??y.x+y.width/2,c=c??y.y+y.height/2,this.transform(this._.transform.concat([["s",p,u,o,c]])),this},ct.translate=function(p,u){return this.removed?this:((p=$(p).split(_t)).length-1&&(u=z(p[1])),p=z(p[0])||0,u=+u||0,this.transform(this._.transform.concat([["t",p,u]])),this)},ct.transform=function(p){var u=this._;if(p==null)return u.transform;if(h._extractTransform(this,p),this.clip&&V(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&V(this.node,{transform:this.matrix}),u.sx!=1||u.sy!=1){var o=this.attrs[f]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":o})}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 u=this.paper;for(var o in u.__set__&&u.__set__.exclude(this),Ft.unbind("raphael.*.*."+this.id),this.gradient&&u.defs.removeChild(this.gradient),h._tear(this,u),p.parentNode.removeChild(p),this.removeData(),this)this[o]=typeof this[o]=="function"?h._removedFactory(o):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var u,o=!1;this.paper.canvas.parentElement?u=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(u=this.paper.canvas.parentNode.style),u&&u.display=="none"&&(o=!0,u.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||{},o&&(u.display="none")}return p&&this.hide(),c},ct.attr=function(p,u){if(this.removed)return this;if(p==null){var o={};for(var c in this.attrs)this.attrs[f](c)&&(o[c]=this.attrs[c]);return o.gradient&&o.fill=="none"&&(o.fill=o.gradient)&&delete o.gradient,o.transform=this._.transform,o}if(u==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 y=p.split(_t),E={},C=0,L=y.length;C<L;C++)(p=y[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 L-1?E:E[y[0]]}if(u==null&&h.is(p,"array")){for(E={},C=0,L=p.length;C<L;C++)E[p[C]]=this.attr(p[C]);return E}if(u!=null){var M={};M[p]=u}else p!=null&&h.is(p,"object")&&(M=p);for(var N in M)Ft("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 it in this.attrs[N]=M[N],X)X[f](it)&&(M[it]=X[it])}return G(this,M),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var u=this.paper;return u.top!=this&&h._tofront(this,u),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),u=p.parentNode;return u.insertBefore(p,u.firstChild),h._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[p.length-1].node);return o.nextSibling?o.parentNode.insertBefore(u,o.nextSibling):o.parentNode.appendChild(u),h._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[0].node);return o.parentNode.insertBefore(u,o),h._insertbefore(this,p,this.paper),this},ct.blur=function(p){var u=this;if(+p!=0){var o=V("filter"),c=V("feGaussianBlur");u.attrs.blur=p,o.id=h.createUUID(),V(c,{stdDeviation:+p||1.5}),o.appendChild(c),u.paper.defs.appendChild(o),u._blur=o,V(u.node,{filter:"url(#"+o.id+")"})}else u._blur&&(u._blur.parentNode.removeChild(u._blur),delete u._blur,delete u.attrs.blur),u.node.removeAttribute("filter");return u},h._engine.circle=function(p,u,o,c){var y=V("circle");p.canvas&&p.canvas.appendChild(y);var E=new Mt(y,p);return E.attrs={cx:u,cy:o,r:c,fill:"none",stroke:"#000"},E.type="circle",V(y,E.attrs),E},h._engine.rect=function(p,u,o,c,y,E){var C=V("rect");p.canvas&&p.canvas.appendChild(C);var L=new Mt(C,p);return L.attrs={x:u,y:o,width:c,height:y,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},L.type="rect",V(C,L.attrs),L},h._engine.ellipse=function(p,u,o,c,y){var E=V("ellipse");p.canvas&&p.canvas.appendChild(E);var C=new Mt(E,p);return C.attrs={cx:u,cy:o,rx:c,ry:y,fill:"none",stroke:"#000"},C.type="ellipse",V(E,C.attrs),C},h._engine.image=function(p,u,o,c,y,E){var C=V("image");V(C,{x:o,y:c,width:y,height:E,preserveAspectRatio:"none"}),C.setAttributeNS(Q,"href",u),p.canvas&&p.canvas.appendChild(C);var L=new Mt(C,p);return L.attrs={x:o,y:c,width:y,height:E,src:u},L.type="image",L},h._engine.text=function(p,u,o,c){var y=V("text");p.canvas&&p.canvas.appendChild(y);var E=new Mt(y,p);return E.attrs={x:u,y:o,"text-anchor":"middle",text:c,"font-family":h._availableAttrs["font-family"],"font-size":h._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",G(E,E.attrs),E},h._engine.setSize=function(p,u){return this.width=p||this.width,this.height=u||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),u=p&&p.container;if(!u)throw new Error("SVG container not found.");var o,c=p.x,y=p.y,E=p.width,C=p.height,L=V("svg"),M="overflow:hidden;";return c=c||0,y=y||0,V(L,{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"}),u==1?(L.style.cssText=M+"position:absolute;left:"+c+"px;top:"+y+"px",h._g.doc.body.appendChild(L),o=1):(L.style.cssText=M+"position:relative",u.firstChild?u.insertBefore(L,u.firstChild):u.appendChild(L)),(u=new h._Paper).width=E,u.height=C,u.canvas=L,u.clear(),u._left=u._top=0,o&&(u.renderfix=function(){}),u.renderfix(),u},h._engine.setViewBox=function(p,u,o,c,y){Ft("raphael.setViewBox",this,this._viewBox,[p,u,o,c,y]);var E,C,L=this.getSize(),M=tt(o/L.width,c/L.height),N=this.top,X=y?"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+u+B+o+B+c),V(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,u,o,c,!!y],this},h.prototype.renderfix=function(){var p,u=this.canvas,o=u.style;try{p=u.getScreenCTM()||u.createSVGMatrix()}catch{p=u.createSVGMatrix()}var c=-p.e%1,y=-p.f%1;(c||y)&&(c&&(this._left=(this._left+c)%1,o.left=this._left+"px"),y&&(this._top=(this._top+y)%1,o.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=V("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version)),p.appendChild(this.desc),p.appendChild(this.defs=V("defs"))},h.prototype.remove=function(){for(var p in Ft("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 te in ct)ct[f](te)&&!xt[f](te)&&(xt[te]=(function(p){return function(){var u=arguments;return this.forEach(function(o){o[p].apply(o,u)})}})(te))}}).apply(g,b))===void 0||(l.exports=w)},function(l,g,_){var b,w;b=[_(0)],(w=(function(h){if(!h||h.vml){var f="hasOwnProperty",$=String,z=parseFloat,Z=Math,Y=Z.round,tt=Z.max,nt=Z.min,W=Z.abs,_t=/[, ]+/,Ft=h.eve,U=" ",B="",Q={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ht=/ progid:\S+Blur\([^\)]+\)/g,V=/-?[^,\s-]+/g,et="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(u,o,c){var y=h.matrix();return y.rotate(-u,.5,.5),{dx:y.x(o,c),dy:y.y(o,c)}},K=function(u,o,c,y,E,C){var L=u._,M=u.matrix,N=L.fillpos,X=u.node,it=X.style,pt=1,mt="",dt=rt/o,kt=rt/c;if(it.visibility="hidden",o&&c){if(X.coordsize=W(dt)+U+W(kt),it.rotation=C*(o*c<0?-1:1),C){var Ct=H(C,y,E);y=Ct.dx,E=Ct.dy}if(o<0&&(mt+="x"),c<0&&(mt+=" y")&&(pt=-1),it.flip=mt,X.coordorigin=y*-dt+U+E*-kt,N||L.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+U+Ct.dy*pt),L.fillsize&&(bt.size=L.fillsize[0]*W(o)+U+L.fillsize[1]*W(c)),X.appendChild(bt)}it.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 G,at=function(u,o,c){for(var y=$(o).toLowerCase().split("-"),E=c?"end":"start",C=y.length,L="classic",M="medium",N="medium";C--;)switch(y[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":L=y[C];break;case"wide":case"narrow":N=y[C];break;case"long":case"short":M=y[C]}var X=u.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=L,X[E+"arrowlength"]=M,X[E+"arrowwidth"]=N},yt=function(u,o){u.attrs=u.attrs||{};var c=u.node,y=u.attrs,E=c.style,C=wt[u.type]&&(o.x!=y.x||o.y!=y.y||o.width!=y.width||o.height!=y.height||o.cx!=y.cx||o.cy!=y.cy||o.rx!=y.rx||o.ry!=y.ry||o.r!=y.r),L=st[u.type]&&(y.cx!=o.cx||y.cy!=o.cy||y.r!=o.r||y.rx!=o.rx||y.ry!=o.ry),M=u;for(var N in o)o[f](N)&&(y[N]=o[N]);if(C&&(y.path=h._getPath[u.type](u),u._.dirty=1),o.href&&(c.href=o.href),o.title&&(c.title=o.title),o.target&&(c.target=o.target),o.cursor&&(E.cursor=o.cursor),"blur"in o&&u.blur(o.blur),(o.path&&u.type=="path"||C)&&(c.path=(function(Ot){var Ae=/[ahqstv]/gi,ei=h._pathToAbsolute;if($(Ot).match(Ae)&&(ei=h._path2curve),Ae=/[clmz]/g,ei==h._pathToAbsolute&&!$(Ot).match(Ae)){var se=$(Ot).replace(lt,function(Ir,ri,si){var Ne=[],Wi=ri.toLowerCase()=="m",Ye=Q[ri];return si.replace(V,function(Zi){Wi&&Ne.length==2&&(Ye+=Ne+Q[ri=="m"?"l":"L"],Ne=[]),Ne.push(Y(Zi*rt))}),Ye+Ne});return se}var ii,fe,Ei=ei(Ot);se=[];for(var ni=0,Ci=Ei.length;ni<Ci;ni++){ii=Ei[ni],(fe=Ei[ni][0].toLowerCase())=="z"&&(fe="x");for(var Te=1,Xt=ii.length;Te<Xt;Te++)fe+=Y(ii[Te]*rt)+(Te!=Xt-1?",":B);se.push(fe)}return se.join(U)})(~$(y.path).toLowerCase().indexOf("r")?h._pathToAbsolute(y.path):y.path),u._.dirty=1,u.type=="image"&&(u._.fillpos=[y.x,y.y],u._.fillsize=[y.width,y.height],K(u,1,1,0,0,0))),"transform"in o&&u.transform(o.transform),L){var X=+y.cx,it=+y.cy,pt=+y.rx||+y.r||0,mt=+y.ry||+y.r||0;c.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",Y((X-pt)*rt),Y((it-mt)*rt),Y((X+pt)*rt),Y((it+mt)*rt),Y(X*rt)),u._.dirty=1}if("clip-rect"in o){var dt=$(o["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=u.paper.width+"px",Ct.height=u.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}o["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(u.textpath){var bt=u.textpath.style;o.font&&(bt.font=o.font),o["font-family"]&&(bt.fontFamily='"'+o["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,B)+'"'),o["font-size"]&&(bt.fontSize=o["font-size"]),o["font-weight"]&&(bt.fontWeight=o["font-weight"]),o["font-style"]&&(bt.fontStyle=o["font-style"])}if("arrow-start"in o&&at(M,o["arrow-start"]),"arrow-end"in o&&at(M,o["arrow-end"],1),o.opacity!=null||o.fill!=null||o.src!=null||o.stroke!=null||o["stroke-width"]!=null||o["stroke-opacity"]!=null||o["fill-opacity"]!=null||o["stroke-dasharray"]!=null||o["stroke-miterlimit"]!=null||o["stroke-linejoin"]!=null||o["stroke-linecap"]!=null){var ot=c.getElementsByTagName("fill");if(!(ot=ot&&ot[0])&&(ot=G("fill")),u.type=="image"&&o.src&&(ot.src=o.src),o.fill&&(ot.on=!0),ot.on!=null&&o.fill!="none"&&o.fill!==null||(ot.on=!1),ot.on&&o.fill){var $t=$(o.fill).match(h._ISURL);if($t){ot.parentNode==c&&c.removeChild(ot),ot.rotate=!0,ot.src=$t[1],ot.type="tile";var Rt=u.getBBox(1);ot.position=Rt.x+U+Rt.y,u._.fillpos=[Rt.x,Rt.y],h._preload($t[1],function(){u._.fillsize=[this.offsetWidth,this.offsetHeight]})}else ot.color=h.getRGB(o.fill).hex,ot.src=B,ot.type="solid",h.getRGB(o.fill).error&&(M.type in{circle:1,ellipse:1}||$(o.fill).charAt()!="r")&&Mt(M,o.fill,ot)&&(y.fill="none",y.gradient=o.fill,ot.rotate=!1)}if("fill-opacity"in o||"opacity"in o){var zt=((+y["fill-opacity"]+1||2)-1)*((+y.opacity+1||2)-1)*((+h.getRGB(o.fill).o+1||2)-1);zt=nt(tt(zt,0),1),ot.opacity=zt,ot.src&&(ot.color="none")}c.appendChild(ot);var Tt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],ee=!1;!Tt&&(ee=Tt=G("stroke")),(o.stroke&&o.stroke!="none"||o["stroke-width"]||o["stroke-opacity"]!=null||o["stroke-dasharray"]||o["stroke-miterlimit"]||o["stroke-linejoin"]||o["stroke-linecap"])&&(Tt.on=!0),(o.stroke=="none"||o.stroke===null||Tt.on==null||o.stroke==0||o["stroke-width"]==0)&&(Tt.on=!1);var qt=h.getRGB(o.stroke);Tt.on&&o.stroke&&(Tt.color=qt.hex),zt=((+y["stroke-opacity"]+1||2)-1)*((+y.opacity+1||2)-1)*((+qt.o+1||2)-1);var Se=.75*(z(o["stroke-width"])||1);if(zt=nt(tt(zt,0),1),o["stroke-width"]==null&&(Se=y["stroke-width"]),o["stroke-width"]&&(Tt.weight=Se),Se&&Se<1&&(zt*=Se)&&(Tt.weight=1),Tt.opacity=zt,o["stroke-linejoin"]&&(Tt.joinstyle=o["stroke-linejoin"]||"miter"),Tt.miterlimit=o["stroke-miterlimit"]||8,o["stroke-linecap"]&&(Tt.endcap=o["stroke-linecap"]=="butt"?"flat":o["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in o){var wi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Tt.dashstyle=wi[f](o["stroke-dasharray"])?wi[o["stroke-dasharray"]]:B}ee&&c.appendChild(Tt)}if(M.type=="text"){M.paper.canvas.style.display=B;var Fe=M.paper.span,Qe=y.font&&y.font.match(/\d+(?:\.\d*)?(?=px)/);E=Fe.style,y.font&&(E.font=y.font),y["font-family"]&&(E.fontFamily=y["font-family"]),y["font-weight"]&&(E.fontWeight=y["font-weight"]),y["font-style"]&&(E.fontStyle=y["font-style"]),Qe=z(y["font-size"]||Qe&&Qe[0])||10,E.fontSize=100*Qe+"px",M.textpath.string&&(Fe.innerHTML=$(M.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var Je=Fe.getBoundingClientRect();M.W=y.w=(Je.right-Je.left)/100,M.H=y.h=(Je.bottom-Je.top)/100,M.X=y.x,M.Y=y.y+M.H/2,("x"in o||"y"in o)&&(M.path.v=h.format("m{0},{1}l{2},{1}",Y(y.x*rt),Y(y.y*rt),Y(y.x*rt)+1));for(var ki=["x","y","text","font","font-family","font-weight","font-style","font-size"],ti=0,Ui=ki.length;ti<Ui;ti++)if(ki[ti]in o){M._.dirty=1;break}switch(y["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}},Mt=function(u,o,c){u.attrs=u.attrs||{},u.attrs;var y=Math.pow,E="linear",C=".5 .5";if(u.attrs.gradient=o,o=(o=$(o).replace(h._radial_gradient,function(pt,mt,dt){return E="radial",mt&&dt&&(mt=z(mt),dt=z(dt),y(mt-.5,2)+y(dt-.5,2)>.25&&(dt=Z.sqrt(.25-y(mt-.5,2))*(2*(dt>.5)-1)+.5),C=mt+U+dt),B})).split(/\s*\-\s*/),E=="linear"){var L=o.shift();if(L=-z(L),isNaN(L))return null}var M=h._parseDots(o);if(!M)return null;if(u=u.shape||u.node,M.length){u.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,it=M.length;X<it;X++)M[X].offset&&N.push(M[X].offset+U+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-L)%360),u.appendChild(c)}return 1},ct=function(u,o){this[0]=this.node=u,u.raphael=!0,this.id=h._oid++,u.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=o,this.matrix=h.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!o.bottom&&(o.bottom=this),this.prev=o.top,o.top&&(o.top.next=this),o.top=this,this.next=null},xt=h.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(u){if(u==null)return this._.transform;var o,c=this.paper._viewBoxShift,y=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:B;c&&(o=u=$(u).replace(/\.{3}|\u2026/g,this._.transform||B)),h._extractTransform(this,y+u);var E,C=this.matrix.clone(),L=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(L.matrix="1 0 0 1",L.offset="0 0",E=C.split(),N&&E.noRotation||!E.isSimple){M.style.filter=C.toFilter();var it=this.getBBox(),pt=this.getBBox(1),mt=it.x-pt.x,dt=it.y-pt.y;M.coordorigin=mt*-rt+U+dt*-rt,K(this,1,1,mt,dt,0)}else M.style.filter=B,K(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else M.style.filter=B,L.matrix=$(C),L.offset=C.offset();return o!==null&&(this._.transform=o,h._extractTransform(this,o)),this},xt.rotate=function(u,o,c){if(this.removed)return this;if(u!=null){if((u=$(u).split(_t)).length-1&&(o=z(u[1]),c=z(u[2])),u=z(u[0]),c==null&&(o=c),o==null||c==null){var y=this.getBBox(1);o=y.x+y.width/2,c=y.y+y.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",u,o,c]])),this}},xt.translate=function(u,o){return this.removed?this:((u=$(u).split(_t)).length-1&&(o=z(u[1])),u=z(u[0])||0,o=+o||0,this._.bbox&&(this._.bbox.x+=u,this._.bbox.y+=o),this.transform(this._.transform.concat([["t",u,o]])),this)},xt.scale=function(u,o,c,y){if(this.removed)return this;if((u=$(u).split(_t)).length-1&&(o=z(u[1]),c=z(u[2]),y=z(u[3]),isNaN(c)&&(c=null),isNaN(y)&&(y=null)),u=z(u[0]),o==null&&(o=u),y==null&&(c=y),c==null||y==null)var E=this.getBBox(1);return c=c??E.x+E.width/2,y=y??E.y+E.height/2,this.transform(this._.transform.concat([["s",u,o,c,y]])),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 u=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var o={},c=1/this.paper._viewBoxShift.scale;return o.x=u.x-this.paper._viewBoxShift.dx,o.x*=c,o.y=u.y-this.paper._viewBoxShift.dy,o.y*=c,o.width=u.width*c,o.height=u.height*c,o.x2=o.x+o.width,o.y2=o.y+o.height,o}return u},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 u 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[u]=typeof this[u]=="function"?h._removedFactory(u):null;this.removed=!0}},xt.attr=function(u,o){if(this.removed)return this;if(u==null){var c={};for(var y in this.attrs)this.attrs[f](y)&&(c[y]=this.attrs[y]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(o==null&&h.is(u,"string")){if(u=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=u.split(_t),C={},L=0,M=E.length;L<M;L++)(u=E[L])in this.attrs?C[u]=this.attrs[u]:h.is(this.paper.customAttributes[u],"function")?C[u]=this.paper.customAttributes[u].def:C[u]=h._availableAttrs[u];return M-1?C:C[E[0]]}if(this.attrs&&o==null&&h.is(u,"array")){for(C={},L=0,M=u.length;L<M;L++)C[u[L]]=this.attr(u[L]);return C}var N;for(var X in o!=null&&((N={})[u]=o),o==null&&h.is(u,"object")&&(N=u),N)Ft("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 it=this.paper.customAttributes[X].apply(this,[].concat(N[X]));for(var pt in this.attrs[X]=N[X],it)it[f](pt)&&(N[pt]=it[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(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[u.length-1]),u.node.nextSibling?u.node.parentNode.insertBefore(this.node,u.node.nextSibling):u.node.parentNode.appendChild(this.node),h._insertafter(this,u,this.paper),this)},xt.insertBefore=function(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[0]),u.node.parentNode.insertBefore(this.node,u.node),h._insertbefore(this,u,this.paper),this)},xt.blur=function(u){var o=this.node.runtimeStyle,c=o.filter;return c=c.replace(ht,B),+u!=0?(this.attrs.blur=u,o.filter=c+U+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+u||1.5)+")",o.margin=h.format("-{0}px 0 0 -{0}px",Y(+u||1.5))):(o.filter=c,o.margin=0,delete this.attrs.blur),this},h._engine.path=function(u,o){var c=G("shape");c.style.cssText=et,c.coordsize=rt+U+rt,c.coordorigin=o.coordorigin;var y=new ct(c,o),E={fill:"none",stroke:"#000"};u&&(E.path=u),y.type="path",y.path=[],y.Path=B,yt(y,E),o.canvas&&o.canvas.appendChild(c);var C=G("skew");return C.on=!0,c.appendChild(C),y.skew=C,y.transform(B),y},h._engine.rect=function(u,o,c,y,E,C){var L=h._rectPath(o,c,y,E,C),M=u.path(L),N=M.attrs;return M.X=N.x=o,M.Y=N.y=c,M.W=N.width=y,M.H=N.height=E,N.r=C,N.path=L,M.type="rect",M},h._engine.ellipse=function(u,o,c,y,E){var C=u.path();return C.attrs,C.X=o-y,C.Y=c-E,C.W=2*y,C.H=2*E,C.type="ellipse",yt(C,{cx:o,cy:c,rx:y,ry:E}),C},h._engine.circle=function(u,o,c,y){var E=u.path();return E.attrs,E.X=o-y,E.Y=c-y,E.W=E.H=2*y,E.type="circle",yt(E,{cx:o,cy:c,r:y}),E},h._engine.image=function(u,o,c,y,E,C){var L=h._rectPath(c,y,E,C),M=u.path(L).attr({stroke:"none"}),N=M.attrs,X=M.node,it=X.getElementsByTagName("fill")[0];return N.src=o,M.X=N.x=c,M.Y=N.y=y,M.W=N.width=E,M.H=N.height=C,N.path=L,M.type="image",it.parentNode==X&&X.removeChild(it),it.rotate=!0,it.src=o,it.type="tile",M._.fillpos=[c,y],M._.fillsize=[E,C],X.appendChild(it),K(M,1,1,0,0,0),M},h._engine.text=function(u,o,c,y){var E=G("shape"),C=G("path"),L=G("textpath");o=o||0,c=c||0,y=y||"",C.v=h.format("m{0},{1}l{2},{1}",Y(o*rt),Y(c*rt),Y(o*rt)+1),C.textpathok=!0,L.string=$(y),L.on=!0,E.style.cssText=et,E.coordsize=rt+U+rt,E.coordorigin="0 0";var M=new ct(E,u),N={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:y};M.shape=E,M.path=C,M.textpath=L,M.type="text",M.attrs.text=$(y),M.attrs.x=o,M.attrs.y=c,M.attrs.w=1,M.attrs.h=1,yt(M,N),E.appendChild(L),E.appendChild(C),u.canvas.appendChild(E);var X=G("skew");return X.on=!0,E.appendChild(X),M.skew=X,M.transform(B),M},h._engine.setSize=function(u,o){var c=this.canvas.style;return this.width=u,this.height=o,u==+u&&(u+="px"),o==+o&&(o+="px"),c.width=u,c.height=o,c.clip="rect(0 "+u+" "+o+" 0)",this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox),this},h._engine.setViewBox=function(u,o,c,y,E){h.eve("raphael.setViewBox",this,this._viewBox,[u,o,c,y,E]);var C,L,M=this.getSize(),N=M.width,X=M.height;return E&&(c*(C=X/y)<N&&(u-=(N-c*C)/2/C),y*(L=N/c)<X&&(o-=(X-y*L)/2/L)),this._viewBox=[u,o,c,y,!!E],this._viewBoxShift={dx:-u,dy:-o,scale:M},this.forEach(function(it){it.transform("...")}),this},h._engine.initWin=function(u){var o=u.document;o.styleSheets.length<31?o.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):o.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!o.namespaces.rvml&&o.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),G=function(c){return o.createElement("<rvml:"+c+' class="rvml">')}}catch{G=function(y){return o.createElement("<"+y+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},h._engine.initWin(h._g.win),h._engine.create=function(){var u=h._getContainer.apply(0,arguments),o=u.container,c=u.height,y=u.width,E=u.x,C=u.y;if(!o)throw new Error("VML container not found.");var L=new h._Paper,M=L.canvas=h._g.doc.createElement("div"),N=M.style;return E=E||0,C=C||0,y=y||512,c=c||342,L.width=y,L.height=c,y==+y&&(y+="px"),c==+c&&(c+="px"),L.coordsize=216e5+U+216e5,L.coordorigin="0 0",L.span=h._g.doc.createElement("span"),L.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",M.appendChild(L.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",y,c),o==1?(h._g.doc.body.appendChild(M),N.left=E+"px",N.top=C+"px",N.position="absolute"):o.firstChild?o.insertBefore(M,o.firstChild):o.appendChild(M),L.renderfix=function(){},L},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 u in h.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[u]=typeof this[u]=="function"?h._removedFactory(u):null;return!0};var te=h.st;for(var p in xt)xt[f](p)&&!te[f](p)&&(te[p]=(function(u){return function(){var o=arguments;return this.forEach(function(c){c[u].apply(c,o)})}})(p))}}).apply(g,b))===void 0||(l.exports=w)}])})})(vn)),vn.exports}var wo=bo();const Gi=_o(wo);class ko{constructor(i){if(pe(i))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=i.element;const l=this.node.dataset?this.node.dataset:{};(pe(i.defaults)?!1:i.defaults)!==!1&&(i=Eo({}),delete i.defaults),this.config={element:i.element,classId:Co(),value:ft("value",i,l,0,"float"),defaults:ft("defaults",i,l,0,!1),parentNode:ft("parentNode",i,l,null),width:ft("width",i,l,null),height:ft("height",i,l,null),valueFontColor:ft("valueFontColor",i,l,"#010101"),valueFontFamily:ft("valueFontFamily",i,l,"Arial"),symbol:ft("symbol",i,l,""),min:ft("min",i,l,0,"float"),minTxt:ft("minTxt",i,l,!1),max:ft("max",i,l,100,"float"),maxTxt:ft("maxTxt",i,l,!1),reverse:ft("reverse",i,l,!1),humanFriendlyDecimal:ft("humanFriendlyDecimal",i,l,0),textRenderer:ft("textRenderer",i,l,null),onAnimationEnd:ft("onAnimationEnd",i,l,null),gaugeWidthScale:ft("gaugeWidthScale",i,l,1),gaugeColor:ft("gaugeColor",i,l,"#edebeb"),label:ft("label",i,l,""),labelFontColor:ft("labelFontColor",i,l,"#b3b3b3"),labelFontFamily:ft("labelFontFamily",i,l,"Arial"),shadowOpacity:ft("shadowOpacity",i,l,.2),shadowSize:ft("shadowSize",i,l,5),shadowVerticalOffset:ft("shadowVerticalOffset",i,l,3),levelColors:ft("levelColors",i,l,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ft("startAnimationTime",i,l,700),startAnimationType:ft("startAnimationType",i,l,">"),refreshAnimationTime:ft("refreshAnimationTime",i,l,700),refreshAnimationType:ft("refreshAnimationType",i,l,">"),donutStartAngle:ft("donutStartAngle",i,l,90),valueMinFontSize:ft("valueMinFontSize",i,l,16),labelMinFontSize:ft("labelMinFontSize",i,l,10),minLabelMinFontSize:ft("minLabelMinFontSize",i,l,10),maxLabelMinFontSize:ft("maxLabelMinFontSize",i,l,10),hideValue:ft("hideValue",i,l,!1),hideMinMax:ft("hideMinMax",i,l,!1),showInnerShadow:ft("showInnerShadow",i,l,!1),humanFriendly:ft("humanFriendly",i,l,!1),noGradient:ft("noGradient",i,l,!1),donut:ft("donut",i,l,!1),relativeGaugeSize:ft("relativeGaugeSize",i,l,!1),counter:ft("counter",i,l,!1),decimals:ft("decimals",i,l,0),customSectors:ft("customSectors",i,l,{}),formatNumber:ft("formatNumber",i,l,!1),pointer:ft("pointer",i,l,!1),pointerOptions:ft("pointerOptions",i,l,{}),displayRemaining:ft("displayRemaining",i,l,!1)};let _,b,w,h,f,$,z,Z,Y,tt,nt,W,_t,Ft,U,B,Q,lt,ht;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=ft("value",i,l,-1,"float"),this.canvas=Gi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),_=200,b=200):(this.canvas.setViewBox(0,0,200,100,!0),_=200,b=100):this.config.width!==null&&this.config.height!==null?(_=this.config.width,b=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),_=200,b=100):(_=Number(Br(this.config.element,"width").slice(0,-2))*1,b=Number(Br(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(_>b?(h=b,w=h):(_<b,w=_,h=w),$=(_-w)/2,z=(b-h)/2,Z=h/6.4>16?h/5.4:18,Y=$+w/2,this.config.label!==""?tt=z+h/1.85:tt=z+h/1.7,nt=h/16>10?h/16:10,W=$+w/2,_t=tt+nt,Ft=h/16>10?h/16:10,U=$+w/10+w/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>10?h/16:10,lt=$+w-w/10-w/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t):(_>b?(h=b,w=h*2,w>_&&(f=w/_,w=w/f,h=h/f)):_<b?(w=_,h=w/2):(w=_,h=w*.5),$=(_-w)/2,z=(b-h)/2,Z=h/6.5>this.config.valueMinFontSize?h/6.5:this.config.valueMinFontSize,Y=$+w/2,tt=z+h/1.275,nt=h/16>this.config.labelMinFontSize?h/16:this.config.labelMinFontSize,W=$+w/2,_t=tt+Z/2+5,Ft=h/16>this.config.minLabelMinFontSize?h/16:this.config.minLabelMinFontSize,U=$+w/10+w/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>this.config.maxLabelMinFontSize?h/16:this.config.maxLabelMinFontSize,lt=$+w-w/10-w/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t),this.params={canvasW:_,canvasH:b,widgetW:w,widgetH:h,dx:$,dy:z,valueFontSize:Z,valueX:Y,valueY:tt,labelFontSize:nt,labelX:W,labelY:_t,minFontSize:Ft,minX:U,minY:B,maxFontSize:Q,maxX:lt,maxY:ht},this.canvas.customAttributes.pki=H=>{let K=this.config.min,G=this.config.max;const at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,te=this.config.donut;let p,u,o,c,y,E,C,L,M,N;return K<0&&(G-=K,H-=K,K=0),te?(p=(1-2*(H-K)/(G-K))*Math.PI,u=at/2-at/30,o=u-at/6.666666666666667*xt,c=at/2+Mt,y=yt/2+ct,E=c+u*Math.cos(p),C=y-u*Math.sin(p),L=c+o*Math.cos(p),M=y-o*Math.sin(p),N="M"+(c-o)+","+y+" ",N+="L"+(c-u)+","+y+" ",H-K>(G-K)/2&&(N+="A"+u+","+u+" 0 0 1 "+(c+u)+","+y+" "),N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+L+","+M+" ",H-K>(G-K)/2&&(N+="A"+o+","+o+" 0 0 0 "+(c+o)+","+y+" "),N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+y+" ",N+="Z ",{path:N}):(p=(1-(H-K)/(G-K))*Math.PI,u=at/2-at/10,o=u-at/6.666666666666667*xt,c=at/2+Mt,y=yt/1.25+ct,E=c+u*Math.cos(p),C=y-u*Math.sin(p),L=c+o*Math.cos(p),M=y-o*Math.sin(p),N="M"+(c-o)+","+y+" ",N+="L"+(c-u)+","+y+" ",N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+L+","+M+" ",N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+y+" ",N+="Z ",{path:N})},this.canvas.customAttributes.ndl=function(H){const K=this.config.min,G=this.config.max,at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,te=this.config.donut;let p=at*3.5/100,u=at/15,o=at/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&&(u=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(o=this.config.pointerOptions.bottomwidth);let c,y,E,C,L,M,N,X,it,pt,mt,dt,kt,Ct,bt,ot,$t;return te?(c=(1-2*(H-K)/(G-K))*Math.PI,y=at/2-at/30,E=y-at/6.666666666666667*xt,C=yt/2+ct,L=at/2+Mt+y*Math.cos(c),M=yt-(yt-C)-y*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=L+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t}):(c=(1-(H-K)/(G-K))*Math.PI,y=at/2-at/10,E=y-at/6.666666666666667*xt,C=yt/1.25+ct,L=at/2+Mt+y*Math.cos(c),M=yt-(yt-C)-y*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=L+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t})},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:Rr(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:pe(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":pe(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":pe(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:pe(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"}),Jt(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"}),Jt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let V=this.config.min;this.config.reverse&&(V=this.config.max),this.txtMinimum=V,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=De(V,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=je(V)),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"}),Jt(this.txtMin,this.params.minFontSize,this.params.minY);let et=this.config.max;this.config.reverse&&(et=this.config.min),this.txtMaximum=et,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=De(et,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=je(et)),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"}),Jt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],wt="http://www.w3.org/2000/svg";if(bi!==void 0&&bi<9||(bi!==void 0?Or(()=>{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=De(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=je(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 G=this.level.attr("pki")[0];this.config.reverse&&(G=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(G))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(G))):this.config.humanFriendly?this.txtValue.attr("text",De(Math.floor(G),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",je(Math.floor(G))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-G)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(G*1).toFixed(this.config.decimals)+this.config.symbol),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY),G=null},K=()=>{this.txtValue.attr({text:this.originalValue}),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",K),this.bindEvent("raphael.anim.frame",H)}else{const H=()=>{this.txtValue.attr({text:this.originalValue}),Jt(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(i,l){i+="."+this.level.id,this.events[i]&&Gi.eve.off(i,this.events[i]),Gi.eve.on(i,l),this.events[i]=l}refresh(i,l,g,_){let b;l=Pr(l)?l:null,g=Pr(g)?g:null,_=_||null,_!==null&&(this.config.label=_,this.txtLabel.attr({text:this.config.label}),Jt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),g!==null&&(this.config.min=g,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=De(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=je(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Jt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Jt(this.txtMin,this.params.minFontSize,this.params.minY))),l!==null&&(this.config.max=l,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=De(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=je(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Jt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Jt(this.txtMax,this.params.maxFontSize,this.params.maxY))),b=i,i*1>this.config.max*1&&(i=this.config.max*1),i*1<this.config.min*1&&(i=this.config.min*1);const w=Rr(i,(i-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(b)!==!1?b=this.config.textRenderer(b):this.config.humanFriendly?b=De(b,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?b=je((b*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?b=((this.config.max-b)*1).toFixed(this.config.decimals)+this.config.symbol:b=(b*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=b,this.config.value=i*1,this.config.counter||(this.txtValue.attr({text:b}),Jt(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:w},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[h]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(i,l){const g=this;if(i instanceof Object)for(const _ in i)l=i[_],Lr(g,_,l);else Lr(g,i,l)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const i in this.events)Gi.eve.off(i,this.events[i]);this.events={}}generateShadow(i,l){const g="inner-shadow-"+(this.config.element.id||this.config.classId),_=document.createElementNS(i,"filter");_.setAttribute("id",g),l.appendChild(_);const b=document.createElementNS(i,"feOffset");b.setAttribute("dx","0"),b.setAttribute("dy",this.config.shadowVerticalOffset),_.appendChild(b);const w=document.createElementNS(i,"feGaussianBlur");w.setAttribute("result","offset-blur"),w.setAttribute("stdDeviation",this.config.shadowSize),_.appendChild(w);const h=document.createElementNS(i,"feComposite");h.setAttribute("operator","out"),h.setAttribute("in","SourceGraphic"),h.setAttribute("in2","offset-blur"),h.setAttribute("result","inverse"),_.appendChild(h);const f=document.createElementNS(i,"feFlood");f.setAttribute("flood-color","black"),f.setAttribute("flood-opacity",this.config.shadowOpacity),f.setAttribute("result","color"),_.appendChild(f);const $=document.createElementNS(i,"feComposite");$.setAttribute("operator","in"),$.setAttribute("in","color"),$.setAttribute("in2","inverse"),$.setAttribute("result","shadow"),_.appendChild($);const z=document.createElementNS(i,"feComposite");z.setAttribute("operator","over"),z.setAttribute("in","shadow"),z.setAttribute("in2","SourceGraphic"),_.appendChild(z),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+g+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+g+")"))}}function Lr(r,i,l){switch(i){case"valueFontColor":if(!zr(l)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}r.txtValue.attr({fill:l});break;case"labelFontColor":if(!zr(l)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}r.txtMin.attr({fill:l}),r.txtMax.attr({fill:l}),r.txtLabel.attr({fill:l});break;default:console.log(`* justgage: "${i}" is not a supported update setting`)}}function ft(r,i,l,g,_,b){let w=g,h=!1;if(!pe(r)&&(!pe(l)&&typeof l=="object"&&r in l?(w=l[r],h=!0):!pe(i)&&typeof i=="object"&&r in i?(w=i[r],h=!0):w=g,h===!0&&!pe(_)))switch(_){case"int":w=parseInt(w,10);break;case"float":w=parseFloat(w);break}return w}function pe(r){return r==null}function Rr(r,i,l,g,_){let b,w,h,f,$,z,Z,Y,tt,nt,W;const _t=_&&_.ranges&&_.ranges.length>0;if(g=g||_t,_t){_.percents===!0&&(r=i*100);for(let Q=0;Q<_.ranges.length;Q++)if(r>=_.ranges[Q].lo&&r<=_.ranges[Q].hi)return _.ranges[Q].color}const Ft=l.length;if(Ft===1)return l[0];const U=g?1/Ft:1/(Ft-1),B=[];for(let Q=0;Q<l.length;Q++)b=g?U*(Q+1):U*Q,w=parseInt(mn(l[Q]).substring(0,2),16),h=parseInt(mn(l[Q]).substring(2,4),16),f=parseInt(mn(l[Q]).substring(4,6),16),B[Q]={pct:b,color:{r:w,g:h,b:f}};if(i===0)return"rgb("+[B[0].color.r,B[0].color.g,B[0].color.b].join(",")+")";for(let Q=0;Q<B.length;Q++)if(i<=B[Q].pct)return g?"rgb("+[B[Q].color.r,B[Q].color.g,B[Q].color.b].join(",")+")":($=B[Q-1],z=B[Q],Z=z.pct-$.pct,Y=(i-$.pct)/Z,tt=1-Y,nt=Y,W={r:Math.floor($.color.r*tt+z.color.r*nt),g:Math.floor($.color.g*tt+z.color.g*nt),b:Math.floor($.color.b*tt+z.color.b*nt)},"rgb("+[W.r,W.g,W.b].join(",")+")")}function Jt(r,i,l){(!bi||bi>9)&&r.node.firstChild.attributes.dy&&(r.node.firstChild.attributes.dy.value=0)}function mn(r){return r.charAt(0)==="#"?r.substring(1,7):r}function zr(r){return typeof r=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(r)}function De(r,i){const l=Math.pow(10,i),g=" KMGTPE";let _=0;const b=1e3;for(;(r>=b||r<=-b)&&++_<g.length;)r=r/b;return _=_>=g.length?g.length-1:_,Math.round(r*l)/l+g[_]}function je(r){const i=r.toString().split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Br(r,i){let l="";return document.defaultView&&document.defaultView.getComputedStyle?l=document.defaultView.getComputedStyle(r,"").getPropertyValue(i):r.currentStyle&&(i=i.replace(/-(\w)/g,function(g,_){return _.toUpperCase()}),l=r.currentStyle[i]),l}function Or(r){document.createElementNS!==void 0?r():setTimeout(function(){Or(r)},100)}const bi=(function(){let r=3;const i=document.createElement("div"),l=i.getElementsByTagName("i");for(;l[0];)i.innerHTML="<!--[if gt IE "+ ++r+"]><i></i><![endif]-->";return r>4?r:void 0})();function Eo(r){r=r||{};for(let i=1;i<arguments.length;i++)if(arguments[i])for(const l in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],l)&&(r[l]=arguments[i][l]);return r}function Pr(r){return r!=null&&!isNaN(r)}function Co(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const i=Math.random()*16|0;return(r==="x"?i:i&3|8).toString(16)})}var Mo=ao('<div part="gauge" style="width:100%" id="gauge"></div>');const $o={hash:"svelte-1ozhsul",code:""};function Vr(r,i){Dn(i,!0),po(r,$o);let l=ce(void 0),g=ce(void 0),_=Ar(i,"id",7,""),b=Ar(i,"options");ar(()=>{b()&&typeof b()=="string"&&(b(JSON.parse(b())),Lt(l)&&Lt(g)&&w())});function w(){if(!Lt(l))return console.error("cannot recreateGauge gauge");Lt(g)&&Lt(g).destroy(),Kt(g,void 0),h()}function h(){if(!b()||!Lt(l))return console.error("cannot create gauge");if(Lt(g))console.error("cannot create html gauge");else{const Z=Object.assign({element:Lt(l)},b());Kt(g,new ko(Z),!0)}}Fr(()=>{Kt(l,i.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Lt(l)),h()}),co(()=>{Lt(g)&&Lt(g).destroy(),Kt(g,void 0)});var f={get id(){return _()},set id(Z=""){_(Z),an()},get options(){return b()},set options(Z){b(Z),an()}},$=Mo(),z=Ps(()=>yo(w,200));return so("resize",fn,function(...Z){Lt(z)?.apply(this,Z)}),Mr(r,$),jn(f)}customElements.define("hb-gauge",xo(Vr,{id:{},options:{}},[],[],!0)),Mn.Component=Vr,Object.defineProperty(Mn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
|
|
1
|
+
(function(Sn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const os=2,Fn="[",An="[!",Tn="]",Ai={},Vt=Symbol(),rn=!1;var as=Array.isArray,ls=Array.prototype.indexOf,us=Array.from,Ti=Object.keys,Ni=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,fs=Object.prototype,hs=Array.prototype,cs=Object.getPrototypeOf,Nn=Object.isExtensible;function ds(r){for(var i=0;i<r.length;i++)r[i]()}function ps(){var r,i,a=new Promise((g,b)=>{r=g,i=b});return{promise:a,resolve:r,reject:i}}const Bt=2,sn=4,Ln=8,ve=16,we=32,ke=64,Li=128,ae=512,It=1024,Ut=2048,me=4096,Ee=8192,Ce=16384,Ri=32768,zi=65536,Rn=1<<17,zn=1<<18,We=1<<19,gs=1<<20,Oe=32768,on=1<<21,Bn=1<<22,ci=1<<23,an=Symbol("$state"),vs=Symbol("legacy props"),On=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Bi=8;function Pn(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ms(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ys(r){throw new Error("https://svelte.dev/e/effect_orphan")}function _s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Vn(r){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let le=!1;function Oi(r){le=r}let Dt;function di(r){if(r===null)throw Vn(),Ai;return Dt=r}function In(){return di(Ke(Dt))}function $s(r=1){if(le){for(var i=r,a=Dt;i--;)a=Ke(a);Dt=a}}function Ss(r=!0){for(var i=0,a=Dt;;){if(a.nodeType===Bi){var g=a.data;if(g===Tn){if(i===0)return a;i-=1}else(g===Fn||g===An)&&(i+=1)}var b=Ke(a);r&&a.remove(),a=b}}function Dn(r){return r===this.v}function Fs(r,i){return r!=r?i==i:r!==i||r!==null&&typeof r=="object"||typeof r=="function"}function As(r){return!Fs(r,this.v)}let Ts=!1,Wt=null;function Pi(r){Wt=r}function jn(r,i=!1,a){Wt={p:Wt,i:!1,c:null,e:null,s:r,x:null,l:null}}function Yn(r){var i=Wt,a=i.e;if(a!==null){i.e=null;for(var g of a)ur(g)}return r!==void 0&&(i.x=r),i.i=!0,Wt=i.p,r??{}}function qn(){return!0}let Pe=[];function Xn(){var r=Pe;Pe=[],ds(r)}function Vi(r){if(Pe.length===0&&!pi){var i=Pe;queueMicrotask(()=>{i===Pe&&Xn()})}Pe.push(r)}function Ns(){for(;Pe.length>0;)Xn()}function Hn(r){var i=Nt;if(i===null)return St.f|=ci,r;if((i.f&Ri)===0){if((i.f&Li)===0)throw r;i.b.error(r)}else Ii(r,i)}function Ii(r,i){for(;i!==null;){if((i.f&Li)!==0)try{i.b.error(r);return}catch(a){r=a}i=i.parent}throw r}const Di=new Set;let jt=null,ie=null,ne=[],ji=null,ln=!1,pi=!1;class ue{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#l=0;#s=0;#u=null;#o=[];#r=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(i){ne=[],this.apply();var a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const g of i)this.#i(g,a);this.is_fork||this.#f(),this.is_deferred()?(this.#n(a.effects),this.#n(a.render_effects),this.#n(a.block_effects)):(jt=null,Un(a.render_effects),Un(a.effects),this.#u?.resolve()),ie=null}#i(i,a){i.f^=It;for(var g=i.first;g!==null;){var b=g.f,y=(b&(we|ke))!==0,k=y&&(b&It)!==0,h=k||(b&Ee)!==0||this.skipped_effects.has(g);if((g.f&Li)!==0&&g.b?.is_pending()&&(a={parent:a,effect:g,effects:[],render_effects:[],block_effects:[]}),!h&&g.fn!==null){y?g.f^=It:(b&sn)!==0?a.effects.push(g):xi(g)&&((g.f&ve)!==0&&a.block_effects.push(g),yi(g));var f=g.first;if(f!==null){g=f;continue}}var $=g.parent;for(g=g.next;g===null&&$!==null;)$===a.effect&&(this.#n(a.effects),this.#n(a.render_effects),this.#n(a.block_effects),a=a.parent),g=$.next,$=$.parent}}#n(i){for(const a of i)((a.f&Ut)!==0?this.#o:this.#r).push(a),this.#a(a.deps),qt(a,It)}#a(i){if(i!==null)for(const a of i)(a.f&Bt)===0||(a.f&Oe)===0||(a.f^=Oe,this.#a(a.deps))}capture(i,a){this.previous.has(i)||this.previous.set(i,a),(i.f&ci)===0&&(this.current.set(i,i.v),ie?.set(i,i.v))}activate(){jt=this,this.apply()}deactivate(){jt===this&&(jt=null,ie=null)}flush(){if(this.activate(),ne.length>0){if(Gn(),jt!==null&&jt!==this)return}else this.#l===0&&this.process([]);this.deactivate()}discard(){for(const i of this.#t)i(this);this.#t.clear()}#f(){if(this.#s===0){for(const i of this.#e)i();this.#e.clear()}this.#l===0&&this.#h()}#h(){if(Di.size>1){this.previous.clear();var i=ie,a=!0,g={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const y of Di){if(y===this){a=!1;continue}const k=[];for(const[f,$]of this.current){if(y.current.has(f))if(a&&$!==y.current.get(f))y.current.set(f,$);else continue;k.push(f)}if(k.length===0)continue;const h=[...y.current.keys()].filter(f=>!this.current.has(f));if(h.length>0){var b=ne;ne=[];const f=new Set,$=new Map;for(const L of k)Wn(L,h,f,$);if(ne.length>0){jt=y,y.apply();for(const L of ne)y.#i(L,g);y.deactivate()}ne=b}}jt=null,ie=i}this.committed=!0,Di.delete(this)}increment(i){this.#l+=1,i&&(this.#s+=1)}decrement(i){this.#l-=1,i&&(this.#s-=1),this.revive()}revive(){for(const i of this.#o)qt(i,Ut),Ze(i);for(const i of this.#r)qt(i,me),Ze(i);this.#o=[],this.#r=[],this.flush()}oncommit(i){this.#e.add(i)}ondiscard(i){this.#t.add(i)}settled(){return(this.#u??=ps()).promise}static ensure(){if(jt===null){const i=jt=new ue;Di.add(jt),pi||ue.enqueue(()=>{jt===i&&i.flush()})}return jt}static enqueue(i){Vi(i)}apply(){}}function un(r){var i=pi;pi=!0;try{for(var a;;){if(Ns(),ne.length===0&&(jt?.flush(),ne.length===0))return ji=null,a;Gn()}}finally{pi=i}}function Gn(){var r=Se;ln=!0;var i=null;try{var a=0;for(Hi(!0);ne.length>0;){var g=ue.ensure();if(a++>1e3){var b,y;Ls()}g.process(ne),Me.clear()}}finally{ln=!1,Hi(r),ji=null}}function Ls(){try{_s()}catch(r){Ii(r,ji)}}let xe=null;function Un(r){var i=r.length;if(i!==0){for(var a=0;a<i;){var g=r[a++];if((g.f&(Ce|Ee))===0&&xi(g)&&(xe=new Set,yi(g),g.deps===null&&g.first===null&&g.nodes_start===null&&(g.teardown===null&&g.ac===null?dr(g):g.fn=null),xe?.size>0)){Me.clear();for(const b of xe){if((b.f&(Ce|Ee))!==0)continue;const y=[b];let k=b.parent;for(;k!==null;)xe.has(k)&&(xe.delete(k),y.push(k)),k=k.parent;for(let h=y.length-1;h>=0;h--){const f=y[h];(f.f&(Ce|Ee))===0&&yi(f)}}xe.clear()}}xe=null}}function Wn(r,i,a,g){if(!a.has(r)&&(a.add(r),r.reactions!==null))for(const b of r.reactions){const y=b.f;(y&Bt)!==0?Wn(b,i,a,g):(y&(Bn|ve))!==0&&(y&Ut)===0&&Zn(b,i,g)&&(qt(b,Ut),Ze(b))}}function Zn(r,i,a){const g=a.get(r);if(g!==void 0)return g;if(r.deps!==null)for(const b of r.deps){if(i.includes(b))return!0;if((b.f&Bt)!==0&&Zn(b,i,a))return a.set(b,!0),!0}return a.set(r,!1),!1}function Ze(r){for(var i=ji=r;i.parent!==null;){i=i.parent;var a=i.f;if(ln&&i===Nt&&(a&ve)!==0&&(a&zn)===0)return;if((a&(ke|we))!==0){if((a&It)===0)return;i.f^=It}}ne.push(i)}function Rs(r){let i=0,a=Yi(0),g;return()=>{qi()&&(Lt(a),fr(()=>(i===0&&(g=gn(()=>r(()=>gi(a)))),i+=1,()=>{Vi(()=>{i-=1,i===0&&(g?.(),g=void 0,gi(a))})})))}}var zs=zi|We|Li;function Bs(r,i,a){new Os(r,i,a)}class Os{parent;#e=!1;#t;#l=le?Dt:null;#s;#u;#o;#r=null;#i=null;#n=null;#a=null;#f=null;#h=0;#c=0;#p=!1;#d=null;#y=Rs(()=>(this.#d=Yi(this.#h),()=>{this.#d=null}));constructor(i,a,g){this.#t=i,this.#s=a,this.#u=g,this.parent=Nt.b,this.#e=!!this.#s.pending,this.#o=Ws(()=>{if(Nt.b=this,le){const y=this.#l;In(),y.nodeType===Bi&&y.data===An?this.#b():this.#_()}else{var b=this.#m();try{this.#r=Ve(()=>g(b))}catch(y){this.error(y)}this.#c>0?this.#v():this.#e=!1}return()=>{this.#f?.remove()}},zs),le&&(this.#t=Dt)}#_(){try{this.#r=Ve(()=>this.#u(this.#t))}catch(i){this.error(i)}this.#e=!1}#b(){const i=this.#s.pending;i&&(this.#i=Ve(()=>i(this.#t)),ue.enqueue(()=>{var a=this.#m();this.#r=this.#g(()=>(ue.ensure(),Ve(()=>this.#u(a)))),this.#c>0?this.#v():(Xi(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#m(){var i=this.#t;return this.#e&&(this.#f=or(),this.#t.before(this.#f),i=this.#f),i}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#g(i){var a=Nt,g=St,b=Wt;Fe(this.#o),re(this.#o),Pi(this.#o.ctx);try{return i()}catch(y){return Hn(y),null}finally{Fe(a),re(g),Pi(b)}}#v(){const i=this.#s.pending;this.#r!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#f),Js(this.#r,this.#a)),this.#i===null&&(this.#i=Ve(()=>i(this.#t)))}#x(i){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(i);return}this.#c+=i,this.#c===0&&(this.#e=!1,this.#i&&Xi(this.#i,()=>{this.#i=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(i){this.#x(i),this.#h+=i,this.#d&&er(this.#d,this.#h)}get_effect_pending(){return this.#y(),Lt(this.#d)}error(i){var a=this.#s.onerror;let g=this.#s.failed;if(this.#p||!a&&!g)throw i;this.#r&&(fe(this.#r),this.#r=null),this.#i&&(fe(this.#i),this.#i=null),this.#n&&(fe(this.#n),this.#n=null),le&&(di(this.#l),$s(),di(Ss()));var b=!1,y=!1;const k=()=>{if(b){Ms();return}b=!0,y&&Cs(),ue.ensure(),this.#h=0,this.#n!==null&&Xi(this.#n,()=>{this.#n=null}),this.#e=this.has_pending_snippet(),this.#r=this.#g(()=>(this.#p=!1,Ve(()=>this.#u(this.#t)))),this.#c>0?this.#v():this.#e=!1};var h=St;try{re(null),y=!0,a?.(i,k),y=!1}catch(f){Ii(f,this.#o&&this.#o.parent)}finally{re(h)}g&&Vi(()=>{this.#n=this.#g(()=>{ue.ensure(),this.#p=!0;try{return Ve(()=>{g(this.#t,()=>i,()=>k)})}catch(f){return Ii(f,this.#o.parent),null}finally{this.#p=!1}})})}}function Kn(r){var i=Bt|Ut,a=St!==null&&(St.f&Bt)!==0?St:null;return Nt!==null&&(Nt.f|=We),{ctx:Wt,deps:null,effects:null,equals:Dn,f:i,fn:r,reactions:null,rv:0,v:Vt,wv:0,parent:a??Nt,ac:null}}function Ps(r){const i=Kn(r);return vr(i),i}function Qn(r){var i=r.effects;if(i!==null){r.effects=null;for(var a=0;a<i.length;a+=1)fe(i[a])}}function Vs(r){for(var i=r.parent;i!==null;){if((i.f&Bt)===0)return(i.f&Ce)===0?i:null;i=i.parent}return null}function fn(r){var i,a=Nt;Fe(Vs(r));try{r.f&=~Oe,Qn(r),i=br(r)}finally{Fe(a)}return i}function Jn(r){var i=fn(r);if(r.equals(i)||(jt?.is_fork||(r.v=i),r.wv=yr()),!Ie)if(ie!==null)qi()&&ie.set(r,i);else{var a=(r.f&ae)===0?me:It;qt(r,a)}}let hn=new Set;const Me=new Map;let tr=!1;function Yi(r,i){var a={f:0,v:r,reactions:null,equals:Dn,rv:0,wv:0};return a}function ce(r,i){const a=Yi(r);return vr(a),a}function Is(r,i=!1,a=!0){const g=Yi(r);return i||(g.equals=As),g}function Zt(r,i,a=!1){St!==null&&(!de||(St.f&Rn)!==0)&&qn()&&(St.f&(Bt|ve|Bn|Rn))!==0&&!ye?.includes(r)&&Es();let g=a?vi(i):i;return er(r,g)}function er(r,i){if(!r.equals(i)){var a=r.v;Ie?Me.set(r,i):Me.set(r,a),r.v=i;var g=ue.ensure();g.capture(r,a),(r.f&Bt)!==0&&((r.f&Ut)!==0&&fn(r),qt(r,(r.f&ae)!==0?It:me)),r.wv=yr(),ir(r,Ut),Nt!==null&&(Nt.f&It)!==0&&(Nt.f&(we|ke))===0&&(se===null?to([r]):se.push(r)),!g.is_fork&&hn.size>0&&!tr&&Ds()}return i}function Ds(){tr=!1;var r=Se;Hi(!0);const i=Array.from(hn);try{for(const a of i)(a.f&It)!==0&&qt(a,me),xi(a)&&yi(a)}finally{Hi(r)}hn.clear()}function gi(r){Zt(r,r.v+1)}function ir(r,i){var a=r.reactions;if(a!==null)for(var g=a.length,b=0;b<g;b++){var y=a[b],k=y.f,h=(k&Ut)===0;if(h&&qt(y,i),(k&Bt)!==0){var f=y;ie?.delete(f),(k&Oe)===0&&(k&ae&&(y.f|=Oe),ir(f,me))}else h&&((k&ve)!==0&&xe!==null&&xe.add(y),Ze(y))}}function vi(r){if(typeof r!="object"||r===null||an in r)return r;const i=cs(r);if(i!==fs&&i!==hs)return r;var a=new Map,g=as(r),b=ce(0),y=De,k=h=>{if(De===y)return h();var f=St,$=De;re(null),xr(y);var L=h();return re(f),xr($),L};return g&&a.set("length",ce(r.length)),new Proxy(r,{defineProperty(h,f,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&ws();var L=a.get(f);return L===void 0?L=k(()=>{var Z=ce($.value);return a.set(f,Z),Z}):Zt(L,$.value,!0),!0},deleteProperty(h,f){var $=a.get(f);if($===void 0){if(f in h){const L=k(()=>ce(Vt));a.set(f,L),gi(b)}}else Zt($,Vt),gi(b);return!0},get(h,f,$){if(f===an)return r;var L=a.get(f),Z=f in h;if(L===void 0&&(!Z||Ue(h,f)?.writable)&&(L=k(()=>{var tt=vi(Z?h[f]:Vt),nt=ce(tt);return nt}),a.set(f,L)),L!==void 0){var Y=Lt(L);return Y===Vt?void 0:Y}return Reflect.get(h,f,$)},getOwnPropertyDescriptor(h,f){var $=Reflect.getOwnPropertyDescriptor(h,f);if($&&"value"in $){var L=a.get(f);L&&($.value=Lt(L))}else if($===void 0){var Z=a.get(f),Y=Z?.v;if(Z!==void 0&&Y!==Vt)return{enumerable:!0,configurable:!0,value:Y,writable:!0}}return $},has(h,f){if(f===an)return!0;var $=a.get(f),L=$!==void 0&&$.v!==Vt||Reflect.has(h,f);if($!==void 0||Nt!==null&&(!L||Ue(h,f)?.writable)){$===void 0&&($=k(()=>{var Y=L?vi(h[f]):Vt,tt=ce(Y);return tt}),a.set(f,$));var Z=Lt($);if(Z===Vt)return!1}return L},set(h,f,$,L){var Z=a.get(f),Y=f in h;if(g&&f==="length")for(var tt=$;tt<Z.v;tt+=1){var nt=a.get(tt+"");nt!==void 0?Zt(nt,Vt):tt in h&&(nt=k(()=>ce(Vt)),a.set(tt+"",nt))}if(Z===void 0)(!Y||Ue(h,f)?.writable)&&(Z=k(()=>ce(void 0)),Zt(Z,vi($)),a.set(f,Z));else{Y=Z.v!==Vt;var W=k(()=>vi($));Zt(Z,W)}var _t=Reflect.getOwnPropertyDescriptor(h,f);if(_t?.set&&_t.set.call(L,$),!Y){if(g&&typeof f=="string"){var Ft=a.get("length"),U=Number(f);Number.isInteger(U)&&U>=Ft.v&&Zt(Ft,U+1)}gi(b)}return!0},ownKeys(h){Lt(b);var f=Reflect.ownKeys(h).filter(Z=>{var Y=a.get(Z);return Y===void 0||Y.v!==Vt});for(var[$,L]of a)L.v!==Vt&&!($ in h)&&f.push($);return f},setPrototypeOf(){ks()}})}var cn,nr,rr,sr;function dn(){if(cn===void 0){cn=window,nr=/Firefox/.test(navigator.userAgent);var r=Element.prototype,i=Node.prototype,a=Text.prototype;rr=Ue(i,"firstChild").get,sr=Ue(i,"nextSibling").get,Nn(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),Nn(a)&&(a.__t=void 0)}}function or(r=""){return document.createTextNode(r)}function ar(r){return rr.call(r)}function Ke(r){return sr.call(r)}function js(r){r.textContent=""}function pn(r){var i=St,a=Nt;re(null),Fe(null);try{return r()}finally{re(i),Fe(a)}}function Ys(r){Nt===null&&(St===null&&ys(),xs()),Ie&&ms()}function qs(r,i){var a=i.last;a===null?i.last=i.first=r:(a.next=r,r.prev=a,i.last=r)}function $e(r,i,a){var g=Nt;g!==null&&(g.f&Ee)!==0&&(r|=Ee);var b={ctx:Wt,deps:null,nodes_start:null,nodes_end:null,f:r|Ut|ae,first:null,fn:i,last:null,next:null,parent:g,b:g&&g.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(a)try{yi(b),b.f|=Ri}catch(h){throw fe(b),h}else i!==null&&Ze(b);var y=b;if(a&&y.deps===null&&y.teardown===null&&y.nodes_start===null&&y.first===y.last&&(y.f&We)===0&&(y=y.first,(r&ve)!==0&&(r&zi)!==0&&y!==null&&(y.f|=zi)),y!==null&&(y.parent=g,g!==null&&qs(y,g),St!==null&&(St.f&Bt)!==0&&(r&ke)===0)){var k=St;(k.effects??=[]).push(y)}return b}function qi(){return St!==null&&!de}function Xs(r){const i=$e(Ln,null,!1);return qt(i,It),i.teardown=r,i}function lr(r){Ys();var i=Nt.f,a=!St&&(i&we)!==0&&(i&Ri)===0;if(a){var g=Wt;(g.e??=[]).push(r)}else return ur(r)}function ur(r){return $e(sn|gs,r,!1)}function Hs(r){ue.ensure();const i=$e(ke|We,r,!0);return()=>{fe(i)}}function Gs(r){ue.ensure();const i=$e(ke|We,r,!0);return(a={})=>new Promise(g=>{a.outro?Xi(i,()=>{fe(i),g(void 0)}):(fe(i),g(void 0))})}function Us(r){return $e(sn,r,!1)}function fr(r,i=0){return $e(Ln|i,r,!0)}function Ws(r,i=0){var a=$e(ve|i,r,!0);return a}function Ve(r){return $e(we|We,r,!0)}function hr(r){var i=r.teardown;if(i!==null){const a=Ie,g=St;gr(!0),re(null);try{i.call(null)}finally{gr(a),re(g)}}}function cr(r,i=!1){var a=r.first;for(r.first=r.last=null;a!==null;){const b=a.ac;b!==null&&pn(()=>{b.abort(On)});var g=a.next;(a.f&ke)!==0?a.parent=null:fe(a,i),a=g}}function Zs(r){for(var i=r.first;i!==null;){var a=i.next;(i.f&we)===0&&fe(i),i=a}}function fe(r,i=!0){var a=!1;(i||(r.f&zn)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(Ks(r.nodes_start,r.nodes_end),a=!0),cr(r,i&&!a),Gi(r,0),qt(r,Ce);var g=r.transitions;if(g!==null)for(const y of g)y.stop();hr(r);var b=r.parent;b!==null&&b.first!==null&&dr(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function Ks(r,i){for(;r!==null;){var a=r===i?null:Ke(r);r.remove(),r=a}}function dr(r){var i=r.parent,a=r.prev,g=r.next;a!==null&&(a.next=g),g!==null&&(g.prev=a),i!==null&&(i.first===r&&(i.first=g),i.last===r&&(i.last=a))}function Xi(r,i,a=!0){var g=[];pr(r,g,!0),Qs(g,()=>{a&&fe(r),i&&i()})}function Qs(r,i){var a=r.length;if(a>0){var g=()=>--a||i();for(var b of r)b.out(g)}else i()}function pr(r,i,a){if((r.f&Ee)===0){if(r.f^=Ee,r.transitions!==null)for(const k of r.transitions)(k.is_global||a)&&i.push(k);for(var g=r.first;g!==null;){var b=g.next,y=(g.f&zi)!==0||(g.f&we)!==0&&(r.f&ve)!==0;pr(g,i,y?a:!1),g=b}}}function Js(r,i){for(var a=r.nodes_start,g=r.nodes_end;a!==null;){var b=a===g?null:Ke(a);i.append(a),a=b}}let Se=!1;function Hi(r){Se=r}let Ie=!1;function gr(r){Ie=r}let St=null,de=!1;function re(r){St=r}let Nt=null;function Fe(r){Nt=r}let ye=null;function vr(r){St!==null&&(ye===null?ye=[r]:ye.push(r))}let Yt=null,Kt=0,se=null;function to(r){se=r}let mr=1,mi=0,De=mi;function xr(r){De=r}function yr(){return++mr}function xi(r){var i=r.f;if((i&Ut)!==0)return!0;if(i&Bt&&(r.f&=~Oe),(i&me)!==0){var a=r.deps;if(a!==null)for(var g=a.length,b=0;b<g;b++){var y=a[b];if(xi(y)&&Jn(y),y.wv>r.wv)return!0}(i&ae)!==0&&ie===null&&qt(r,It)}return!1}function _r(r,i,a=!0){var g=r.reactions;if(g!==null&&!ye?.includes(r))for(var b=0;b<g.length;b++){var y=g[b];(y.f&Bt)!==0?_r(y,i,!1):i===y&&(a?qt(y,Ut):(y.f&It)!==0&&qt(y,me),Ze(y))}}function br(r){var i=Yt,a=Kt,g=se,b=St,y=ye,k=Wt,h=de,f=De,$=r.f;Yt=null,Kt=0,se=null,St=($&(we|ke))===0?r:null,ye=null,Pi(r.ctx),de=!1,De=++mi,r.ac!==null&&(pn(()=>{r.ac.abort(On)}),r.ac=null);try{r.f|=on;var L=r.fn,Z=L(),Y=r.deps;if(Yt!==null){var tt;if(Gi(r,Kt),Y!==null&&Kt>0)for(Y.length=Kt+Yt.length,tt=0;tt<Yt.length;tt++)Y[Kt+tt]=Yt[tt];else r.deps=Y=Yt;if(Se&&qi()&&(r.f&ae)!==0)for(tt=Kt;tt<Y.length;tt++)(Y[tt].reactions??=[]).push(r)}else Y!==null&&Kt<Y.length&&(Gi(r,Kt),Y.length=Kt);if(qn()&&se!==null&&!de&&Y!==null&&(r.f&(Bt|me|Ut))===0)for(tt=0;tt<se.length;tt++)_r(se[tt],r);return b!==null&&b!==r&&(mi++,se!==null&&(g===null?g=se:g.push(...se))),(r.f&ci)!==0&&(r.f^=ci),Z}catch(nt){return Hn(nt)}finally{r.f^=on,Yt=i,Kt=a,se=g,St=b,ye=y,Pi(k),de=h,De=f}}function eo(r,i){let a=i.reactions;if(a!==null){var g=ls.call(a,r);if(g!==-1){var b=a.length-1;b===0?a=i.reactions=null:(a[g]=a[b],a.pop())}}a===null&&(i.f&Bt)!==0&&(Yt===null||!Yt.includes(i))&&(qt(i,me),(i.f&ae)!==0&&(i.f^=ae,i.f&=~Oe),Qn(i),Gi(i,0))}function Gi(r,i){var a=r.deps;if(a!==null)for(var g=i;g<a.length;g++)eo(r,a[g])}function yi(r){var i=r.f;if((i&Ce)===0){qt(r,It);var a=Nt,g=Se;Nt=r,Se=!0;try{(i&ve)!==0?Zs(r):cr(r),hr(r);var b=br(r);r.teardown=typeof b=="function"?b:null,r.wv=mr;var y;rn&&Ts&&(r.f&Ut)!==0&&r.deps}finally{Se=g,Nt=a}}}function Lt(r){var i=r.f,a=(i&Bt)!==0;if(St!==null&&!de){var g=Nt!==null&&(Nt.f&Ce)!==0;if(!g&&!ye?.includes(r)){var b=St.deps;if((St.f&on)!==0)r.rv<mi&&(r.rv=mi,Yt===null&&b!==null&&b[Kt]===r?Kt++:Yt===null?Yt=[r]:Yt.includes(r)||Yt.push(r));else{(St.deps??=[]).push(r);var y=r.reactions;y===null?r.reactions=[St]:y.includes(St)||y.push(St)}}}if(Ie){if(Me.has(r))return Me.get(r);if(a){var k=r,h=k.v;return((k.f&It)===0&&k.reactions!==null||kr(k))&&(h=fn(k)),Me.set(k,h),h}}else a&&!ie?.has(r)&&(k=r,xi(k)&&Jn(k),Se&&qi()&&(k.f&ae)===0&&wr(k));if(ie?.has(r))return ie.get(r);if((r.f&ci)!==0)throw r.v;return r.v}function wr(r){if(r.deps!==null){r.f^=ae;for(const i of r.deps)(i.reactions??=[]).push(r),(i.f&Bt)!==0&&(i.f&ae)===0&&wr(i)}}function kr(r){if(r.v===Vt)return!0;if(r.deps===null)return!1;for(const i of r.deps)if(Me.has(i)||(i.f&Bt)!==0&&kr(i))return!0;return!1}function gn(r){var i=de;try{return de=!0,r()}finally{de=i}}const io=-7169;function qt(r,i){r.f=r.f&io|i}const no=new Set,Er=new Set;function ro(r,i,a,g={}){function b(y){if(g.capture||_i.call(i,y),!y.cancelBubble)return pn(()=>a?.call(this,y))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Vi(()=>{i.addEventListener(r,b,g)}):i.addEventListener(r,b,g),b}function so(r,i,a,g,b){var y={capture:g,passive:b},k=ro(r,i,a,y);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&Xs(()=>{i.removeEventListener(r,k,y)})}let Cr=null;function _i(r){var i=this,a=i.ownerDocument,g=r.type,b=r.composedPath?.()||[],y=b[0]||r.target;Cr=r;var k=0,h=Cr===r&&r.__root;if(h){var f=b.indexOf(h);if(f!==-1&&(i===document||i===window)){r.__root=i;return}var $=b.indexOf(i);if($===-1)return;f<=$&&(k=f)}if(y=b[k]||r.target,y!==i){Ni(r,"currentTarget",{configurable:!0,get(){return y||a}});var L=St,Z=Nt;re(null),Fe(null);try{for(var Y,tt=[];y!==null;){var nt=y.assignedSlot||y.parentNode||y.host||null;try{var W=y["__"+g];W!=null&&(!y.disabled||r.target===y)&&W.call(y,r)}catch(_t){Y?tt.push(_t):Y=_t}if(r.cancelBubble||nt===i||nt===null)break;y=nt}if(Y){for(let _t of tt)queueMicrotask(()=>{throw _t});throw Y}}finally{r.__root=i,delete r.currentTarget,re(L),Fe(Z)}}}function oo(r){var i=document.createElement("template");return i.innerHTML=r.replaceAll("<!>","<!---->"),i.content}function vn(r,i){var a=Nt;a.nodes_start===null&&(a.nodes_start=r,a.nodes_end=i)}function ao(r,i){var a=(i&os)!==0,g,b=!r.startsWith("<!>");return()=>{if(le)return vn(Dt,null),Dt;g===void 0&&(g=oo(b?r:"<!>"+r),g=ar(g));var y=a||nr?document.importNode(g,!0):g.cloneNode(!0);return vn(y,y),y}}function Mr(r,i){if(le){var a=Nt;((a.f&Ri)===0||a.nodes_end===null)&&(a.nodes_end=Dt),In();return}r!==null&&r.before(i)}const lo=["touchstart","touchmove"];function uo(r){return lo.includes(r)}function $r(r,i){return Sr(r,i)}function fo(r,i){dn(),i.intro=i.intro??!1;const a=i.target,g=le,b=Dt;try{for(var y=ar(a);y&&(y.nodeType!==Bi||y.data!==Fn);)y=Ke(y);if(!y)throw Ai;Oi(!0),di(y);const k=Sr(r,{...i,anchor:y});return Oi(!1),k}catch(k){if(k instanceof Error&&k.message.split(`
|
|
2
|
+
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw k;return k!==Ai&&console.warn("Failed to hydrate: ",k),i.recover===!1&&bs(),dn(),js(a),Oi(!1),$r(r,i)}finally{Oi(g),di(b)}}const Qe=new Map;function Sr(r,{target:i,anchor:a,props:g={},events:b,context:y,intro:k=!0}){dn();var h=new Set,f=Z=>{for(var Y=0;Y<Z.length;Y++){var tt=Z[Y];if(!h.has(tt)){h.add(tt);var nt=uo(tt);i.addEventListener(tt,_i,{passive:nt});var W=Qe.get(tt);W===void 0?(document.addEventListener(tt,_i,{passive:nt}),Qe.set(tt,1)):Qe.set(tt,W+1)}}};f(us(no)),Er.add(f);var $=void 0,L=Gs(()=>{var Z=a??i.appendChild(or());return Bs(Z,{pending:()=>{}},Y=>{if(y){jn({});var tt=Wt;tt.c=y}if(b&&(g.$$events=b),le&&vn(Y,null),$=r(Y,g)||{},le&&(Nt.nodes_end=Dt,Dt===null||Dt.nodeType!==Bi||Dt.data!==Tn))throw Vn(),Ai;y&&Yn()}),()=>{for(var Y of h){i.removeEventListener(Y,_i);var tt=Qe.get(Y);--tt===0?(document.removeEventListener(Y,_i),Qe.delete(Y)):Qe.set(Y,tt)}Er.delete(f),Z!==a&&Z.parentNode?.removeChild(Z)}});return mn.set($,L),$}let mn=new WeakMap;function ho(r,i){const a=mn.get(r);return a?(mn.delete(r),a(i)):Promise.resolve()}function Fr(r){Wt===null&&Pn(),lr(()=>{const i=gn(r);if(typeof i=="function")return i})}function co(r){Wt===null&&Pn(),Fr(()=>()=>gn(r))}function po(r,i){Us(()=>{var a=r.getRootNode(),g=a.host?a:a.head??a.ownerDocument.head;if(!g.querySelector("#"+i.hash)){const b=document.createElement("style");b.id=i.hash,b.textContent=i.code,g.appendChild(b)}})}function Ar(r,i,a,g){var b=g,y=!0,k=()=>(y&&(y=!1,b=g),b),h;h=r[i],h===void 0&&g!==void 0&&(h=k());var f;f=()=>{var Y=r[i];return Y===void 0?k():(y=!0,Y)};var $=!1,L=Kn(()=>($=!1,f())),Z=Nt;return(function(Y,tt){if(arguments.length>0){const nt=tt?Lt(L):Y;return Zt(L,nt),$=!0,b!==void 0&&(b=nt),Y}return Ie&&$||(Z.f&Ce)!==0?L.v:Lt(L)})}function go(r){return new vo(r)}class vo{#e;#t;constructor(i){var a=new Map,g=(y,k)=>{var h=Is(k,!1,!1);return a.set(y,h),h};const b=new Proxy({...i.props||{},$$events:{}},{get(y,k){return Lt(a.get(k)??g(k,Reflect.get(y,k)))},has(y,k){return k===vs?!0:(Lt(a.get(k)??g(k,Reflect.get(y,k))),Reflect.has(y,k))},set(y,k,h){return Zt(a.get(k)??g(k,h),h),Reflect.set(y,k,h)}});this.#t=(i.hydrate?fo:$r)(i.component,{target:i.target,anchor:i.anchor,props:b,context:i.context,intro:i.intro??!1,recover:i.recover}),(!i?.props?.$$host||i.sync===!1)&&un(),this.#e=b.$$events;for(const y of Object.keys(this.#t))y==="$set"||y==="$destroy"||y==="$on"||Ni(this,y,{get(){return this.#t[y]},set(k){this.#t[y]=k},enumerable:!0});this.#t.$set=y=>{Object.assign(b,y)},this.#t.$destroy=()=>{ho(this.#t)}}$set(i){this.#t.$set(i)}$on(i,a){this.#e[i]=this.#e[i]||[];const g=(...b)=>a.call(this,...b);return this.#e[i].push(g),()=>{this.#e[i]=this.#e[i].filter(b=>b!==g)}}$destroy(){this.#t.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,i,a){super(),this.$$ctor=r,this.$$s=i,a&&this.attachShadow({mode:"open"})}addEventListener(r,i,a){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(i),this.$$c){const g=this.$$c.$on(r,i);this.$$l_u.set(i,g)}super.addEventListener(r,i,a)}removeEventListener(r,i,a){if(super.removeEventListener(r,i,a),this.$$c){const g=this.$$l_u.get(i);g&&(g(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(g){return b=>{const y=document.createElement("slot");g!=="default"&&(y.name=g),Mr(b,y)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},a=mo(this);for(const g of this.$$s)g in a&&(g==="default"&&!this.$$d.children?(this.$$d.children=r(g),i.default=!0):i[g]=r(g));for(const g of this.attributes){const b=this.$$g_p(g.name);b in this.$$d||(this.$$d[b]=Ui(b,g.value,this.$$p_d,"toProp"))}for(const g in this.$$p_d)!(g in this.$$d)&&this[g]!==void 0&&(this.$$d[g]=this[g],delete this[g]);this.$$c=go({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Hs(()=>{fr(()=>{this.$$r=!0;for(const g of Ti(this.$$c)){if(!this.$$p_d[g]?.reflect)continue;this.$$d[g]=this.$$c[g];const b=Ui(g,this.$$d[g],this.$$p_d,"toAttribute");b==null?this.removeAttribute(this.$$p_d[g].attribute||g):this.setAttribute(this.$$p_d[g].attribute||g,b)}this.$$r=!1})});for(const g in this.$$l)for(const b of this.$$l[g]){const y=this.$$c.$on(g,b);this.$$l_u.set(b,y)}this.$$l={}}}attributeChangedCallback(r,i,a){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Ui(r,a,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 Ti(this.$$p_d).find(i=>this.$$p_d[i].attribute===r||!this.$$p_d[i].attribute&&i.toLowerCase()===r)||r}});function Ui(r,i,a,g){const b=a[r]?.type;if(i=b==="Boolean"&&typeof i!="boolean"?i!=null:i,!g||!a[r])return i;if(g==="toAttribute")switch(b){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i??null;default:return i}else switch(b){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function mo(r){const i={};return r.childNodes.forEach(a=>{i[a.slot||"default"]=!0}),i}function xo(r,i,a,g,b,y){let k=class extends Tr{constructor(){super(r,a,b),this.$$p_d=i}static get observedAttributes(){return Ti(i).map(h=>(i[h].attribute||h).toLowerCase())}};return Ti(i).forEach(h=>{Ni(k.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(f){f=Ui(h,f,i),this.$$d[h]=f;var $=this.$$c;if($){var L=Ue($,h)?.get;L?$[h]=f:$.$set({[h]:f})}}})}),g.forEach(h=>{Ni(k.prototype,h,{get(){return this.$$c?.[h]}})}),r.element=k,k}function yo(r,i=100,a={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");if(typeof a=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:g}=a;let b,y,k,h,f;function $(){const Y=b,tt=y;return b=void 0,y=void 0,f=r.apply(Y,tt),f}function L(){const Y=Date.now()-h;Y<i&&Y>=0?k=setTimeout(L,i-Y):(k=void 0,g||(f=$()))}const Z=function(...Y){if(b&&this!==b&&Object.getPrototypeOf(this)===Object.getPrototypeOf(b))throw new Error("Debounced method called with different contexts of the same prototype.");b=this,y=Y,h=Date.now();const tt=g&&!k;if(k||(k=setTimeout(L,i)),tt)return f=$(),f};return Object.defineProperty(Z,"isPending",{get(){return k!==void 0}}),Z.clear=()=>{k&&(clearTimeout(k),k=void 0,b=void 0,y=void 0)},Z.flush=()=>{k&&Z.trigger()},Z.trigger=()=>{f=$(),Z.clear()},Z}function _o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xn={exports:{}},Nr;function bo(){return Nr||(Nr=1,(function(r,i){(function(a,g){r.exports=g()})(window,function(){return(function(a){var g={};function b(y){if(g[y])return g[y].exports;var k=g[y]={i:y,l:!1,exports:{}};return a[y].call(k.exports,k,k.exports,b),k.l=!0,k.exports}return b.m=a,b.c=g,b.d=function(y,k,h){b.o(y,k)||Object.defineProperty(y,k,{enumerable:!0,get:h})},b.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},b.t=function(y,k){if(1&k&&(y=b(y)),8&k||4&k&&typeof y=="object"&&y&&y.__esModule)return y;var h=Object.create(null);if(b.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:y}),2&k&&typeof y!="string")for(var f in y)b.d(h,f,(function($){return y[$]}).bind(null,f));return h},b.n=function(y){var k=y&&y.__esModule?function(){return y.default}:function(){return y};return b.d(k,"a",k),k},b.o=function(y,k){return Object.prototype.hasOwnProperty.call(y,k)},b.p="",b(b.s=1)})([function(a,g,b){var y,k;y=[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[U](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 n=e.pop();return $?n.call(f._engine.create[U](f,e)):h.on("raphael.DOMload",function(){n.call(f._engine.create[U](f,e))})}return f._engine.create[U](f,arguments)}f.version="2.3.0",f.eve=h;var $,L,Z=/[, ]+/,Y={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},tt=/\{(\d+)\}/g,nt="hasOwnProperty",W={doc:document,win:window},_t={was:Object.prototype[nt].call(W.win,"Raphael"),is:W.win.Raphael},Ft=function(){this.ca=this.customAttributes={}},U="apply",B="concat",Q="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ht=" ",V=String,et="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[et](ht),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=V.prototype.toLowerCase,H=Math,K=H.max,G=H.min,at=H.abs,yt=H.pow,Mt=H.PI,ct="number",xt="array",Jt=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),u={NaN:1,Infinity:1,"-Infinity":1},o=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=H.round,_=parseFloat,E=parseInt,C=V.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},it=/,?([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,mt=/([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 _(t)-_(e)},bt=function(t){return t},ot=f._rectPath=function(t,e,n,s,l){return l?[["M",t+l,e],["l",n-2*l,0],["a",l,l,0,0,1,l,l],["l",0,s-2*l],["a",l,l,0,0,1,-l,l],["l",2*l-n,0],["a",l,l,0,0,1,-l,-l],["l",0,2*l-s],["a",l,l,0,0,1,l,-l],["z"]]:[["M",t,e],["l",n,0],["l",0,s],["l",-n,0],["z"]]},$t=function(t,e,n,s){return s==null&&(s=n),[["M",t,e],["m",0,-s],["a",n,s,0,1,1,0,2*s],["a",n,s,0,1,1,0,-2*s],["z"]]},Rt=f._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)}},zt=f.mapPath=function(t,e){if(!e)return t;var n,s,l,d,m,v,x;for(l=0,m=(t=Mi(t)).length;l<m;l++)for(d=1,v=(x=t[l]).length;d<v;d+=2)n=e.x(x[d],x[d+1]),s=e.y(x[d],x[d+1]),x[d]=n,x[d+1]=s;return t};if(f._g=W,f.type=W.win.SVGAngle||W.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",f.type=="VML"){var Tt,te=W.doc.createElement("div");if(te.innerHTML='<v:shape adj="1"/>',(Tt=te.firstChild).style.behavior="url(#default#VML)",!Tt||typeof Tt.adj!="object")return f.type=lt;te=null}function Xt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[nt](n)&&(e[n]=Xt(t[n]));return e}f.svg=!(f.vml=f.type=="VML"),f._Paper=Ft,f.fn=L=Ft.prototype=f.prototype,f._id=0,f.is=function(t,e){return(e=st.call(e))=="finite"?!u[nt](+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)||Jt.call(t).slice(8,-1).toLowerCase()==e},f.angle=function(t,e,n,s,l,d){if(l==null){var m=t-n,v=e-s;return m||v?(180+180*H.atan2(-v,-m)/Mt+360)%360:0}return f.angle(t,e,l,d)-f.angle(n,s,l,d)},f.rad=function(t){return t%360*Mt/180},f.deg=function(t){return Math.round(180*t/Mt%360*1e3)/1e3},f.snapTo=function(t,e,n){if(n=f.is(n,"finite")?n:10,f.is(t,xt)){for(var s=t.length;s--;)if(at(t[s]-e)<=n)return t[s]}else{var l=e%(t=+t);if(l<n)return e-l;if(l>t-n)return e-l+t}return e};var Ae,wi;f.createUUID=(Ae=/[xy]/g,wi=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(Ae,wi).toUpperCase()}),f.setWindow=function(t){h("raphael.setWindow",f,W.win,t),W.win=t,W.doc=W.win.document,f._engine.initWin&&f._engine.initWin(W.win)};var Te=function(t){if(f.vml){var e,n=/^\s+|\s+$/g;try{var s=new ActiveXObject("htmlfile");s.write("<body>"),s.close(),e=s.body}catch{e=createPopup().document.body}var l=e.createTextRange();Te=Ot(function(m){try{e.style.color=V(m).replace(n,lt);var v=l.queryCommandValue("ForeColor");return"#"+("000000"+(v=(255&v)<<16|65280&v|(16711680&v)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=W.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",W.doc.body.appendChild(d),Te=Ot(function(m){return d.style.color=m,W.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return Te(t)},Je=function(){return"hsb("+[this.h,this.s,this.b]+")"},ti=function(){return"hsl("+[this.h,this.s,this.l]+")"},ki=function(){return this.hex},ei=function(t,e,n){if(e==null&&f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),e==null&&f.is(t,"string")){var s=f.getRGB(t);t=s.r,e=s.g,n=s.b}return(t>1||e>1||n>1)&&(t/=255,e/=255,n/=255),[t,e,n]},Zi=function(t,e,n,s){var l={r:t*=255,g:e*=255,b:n*=255,hex:f.rgb(t,e,n),toString:ki};return f.is(s,"finite")&&(l.opacity=s),l};function Ot(t,e,n){return function s(){var l=Array.prototype.slice.call(arguments,0),d=l.join("␀"),m=s.cache=s.cache||{},v=s.count=s.count||[];return m[nt](d)?((function(x,w){for(var F=0,P=x.length;F<P;F++)if(x[F]===w)return x.push(x.splice(F,1)[0])})(v,d),n?n(m[d]):m[d]):(v.length>=1e3&&delete m[v.shift()],v.push(d),m[d]=t[U](e,l),n?n(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=ki,t},f.hsb2rgb=function(t,e,n,s){var l,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,s=t.o,t=t.h),v=(x=n*e)*(1-at((t=(t*=360)%360/60)%2-1)),l=d=m=n-x,Zi(l+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.hsl2rgb=function(t,e,n,s){var l,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),v=(x=2*e*(n<.5?n:1-n))*(1-at((t=(t*=360)%360/60)%2-1)),l=d=m=n-x/2,Zi(l+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.rgb2hsb=function(t,e,n){var s,l;return t=(n=ei(t,e,n))[0],e=n[1],n=n[2],{h:(((l=(s=K(t,e,n))-G(t,e,n))==0?null:s==t?(e-n)/l:s==e?(n-t)/l+2:(t-e)/l+4)+360)%6*60/360,s:l==0?0:l/s,b:s,toString:Je}},f.rgb2hsl=function(t,e,n){var s,l,d,m;return t=(n=ei(t,e,n))[0],e=n[1],n=n[2],s=((l=K(t,e,n))+(d=G(t,e,n)))/2,{h:(((m=l-d)==0?null:l==t?(e-n)/m:l==e?(n-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:s<.5?m/(2*s):m/(2-2*s),l:s,toString:ti}},f._path2string=function(){return this.join(",").replace(it,"$1")},f._preload=function(t,e){var n=W.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,W.doc.body.removeChild(this)},n.onerror=function(){W.doc.body.removeChild(this)},W.doc.body.appendChild(n),n.src=t};function Ne(){return this.hex}function ii(t,e){for(var n=[],s=0,l=t.length;l-2*!e>s;s+=2){var d=[{x:+t[s-2],y:+t[s-1]},{x:+t[s],y:+t[s+1]},{x:+t[s+2],y:+t[s+3]},{x:+t[s+4],y:+t[s+5]}];e?s?l-4==s?d[3]={x:+t[0],y:+t[1]}:l-2==s&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[l-2],y:+t[l-1]}:l-4==s?d[3]=d[2]:s||(d[0]={x:+t[s],y:+t[s+1]}),n.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 n}f.getRGB=Ot(function(t){if(!t||(t=V(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ne};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ne};!X[nt](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=Te(t));var e,n,s,l,d,m,v=t.match(p);return v?(v[2]&&(s=E(v[2].substring(5),16),n=E(v[2].substring(3,5),16),e=E(v[2].substring(1,3),16)),v[3]&&(s=E((d=v[3].charAt(3))+d,16),n=E((d=v[3].charAt(2))+d,16),e=E((d=v[3].charAt(1))+d,16)),v[4]&&(m=v[4][et](N),e=_(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=_(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=_(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),v[1].toLowerCase().slice(0,4)=="rgba"&&(l=_(m[3])),m[3]&&m[3].slice(-1)=="%"&&(l/=100)),v[5]?(m=v[5][et](N),e=_(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=_(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=_(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsba"&&(l=_(m[3])),m[3]&&m[3].slice(-1)=="%"&&(l/=100),f.hsb2rgb(e,n,s,l)):v[6]?(m=v[6][et](N),e=_(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=_(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=_(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsla"&&(l=_(m[3])),m[3]&&m[3].slice(-1)=="%"&&(l/=100),f.hsl2rgb(e,n,s,l)):((v={r:e,g:n,b:s,toString:Ne}).hex="#"+(16777216|s|n<<8|e<<16).toString(16).slice(1),f.is(l,"finite")&&(v.opacity=l),v)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ne}},f),f.hsb=Ot(function(t,e,n){return f.hsb2rgb(t,e,n).hex}),f.hsl=Ot(function(t,e,n){return f.hsl2rgb(t,e,n).hex}),f.rgb=Ot(function(t,e,n){function s(l){return l+.5|0}return"#"+(16777216|s(n)|s(e)<<8|s(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},n=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})),n.hex},f.getColor.reset=function(){delete this.start},f.parsePathString=function(t){if(!t)return null;var e=oe(t);if(e.arr)return Ht(e.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];return f.is(t,xt)&&f.is(t[0],xt)&&(s=Ht(t)),s.length||V(t).replace(pt,function(l,d,m){var v=[],x=d.toLowerCase();if(m.replace(dt,function(w,F){F&&v.push(+F)}),x=="m"&&v.length>2&&(s.push([d][B](v.splice(0,2))),x="l",d=d=="m"?"l":"L"),x=="r")s.push([d][B](v));else for(;v.length>=n[x]&&(s.push([d][B](v.splice(0,n[x]))),n[x]););}),s.toString=f._path2string,e.arr=Ht(s),s},f.parseTransformString=Ot(function(t){if(!t)return null;var e=[];return f.is(t,xt)&&f.is(t[0],xt)&&(e=Ht(t)),e.length||V(t).replace(mt,function(n,s,l){var d=[];st.call(s),l.replace(dt,function(m,v){v&&d.push(+v)}),e.push([s][B](d))}),e.toString=f._path2string,e},this,function(t){if(!t)return t;for(var e=[],n=0;n<t.length;n++){for(var s=[],l=0;l<t[n].length;l++)s.push(t[n][l]);e.push(s)}return e});var oe=function(t){var e=oe.ps=oe.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[nt](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};function ni(t,e,n,s,l){return t*(t*(-3*e+9*n-9*s+3*l)+6*e-12*n+6*s)-3*e+3*n}function he(t,e,n,s,l,d,m,v,x){x==null&&(x=1);for(var w=(x=x>1?1:x<0?0:x)/2,F=[-.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,S=0;S<12;S++){var z=w*F[S]+w,I=ni(z,t,n,l,m),O=ni(z,e,s,d,v),A=I*I+O*O;T+=P[S]*H.sqrt(A)}return w*T}function Ei(t,e,n,s,l,d,m,v){if(!(K(t,n)<G(l,m)||G(t,n)>K(l,m)||K(e,s)<G(d,v)||G(e,s)>K(d,v))){var x=(t-n)*(d-v)-(e-s)*(l-m);if(x){var w=((t*s-e*n)*(l-m)-(t-n)*(l*v-d*m))/x,F=((t*s-e*n)*(d-v)-(e-s)*(l*v-d*m))/x,P=+w.toFixed(2),T=+F.toFixed(2);if(!(P<+G(t,n).toFixed(2)||P>+K(t,n).toFixed(2)||P<+G(l,m).toFixed(2)||P>+K(l,m).toFixed(2)||T<+G(e,s).toFixed(2)||T>+K(e,s).toFixed(2)||T<+G(d,v).toFixed(2)||T>+K(d,v).toFixed(2)))return{x:w,y:F}}}}function ri(t,e,n){var s=f.bezierBBox(t),l=f.bezierBBox(e);if(!f.isBBoxIntersect(s,l))return n?0:[];for(var d=he.apply(0,t),m=he.apply(0,e),v=K(~~(d/5),1),x=K(~~(m/5),1),w=[],F=[],P={},T=n?0:[],S=0;S<v+1;S++){var z=f.findDotsAtSegment.apply(f,t.concat(S/v));w.push({x:z.x,y:z.y,t:S/v})}for(S=0;S<x+1;S++)z=f.findDotsAtSegment.apply(f,e.concat(S/x)),F.push({x:z.x,y:z.y,t:S/x});for(S=0;S<v;S++)for(var I=0;I<x;I++){var O=w[S],A=w[S+1],J=F[I],D=F[I+1],q=at(A.x-O.x)<.001?"y":"x",j=at(D.x-J.x)<.001?"y":"x",gt=Ei(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+at((gt[q]-O[q])/(A[q]-O[q]))*(A.t-O.t),vt=J.t+at((gt[j]-J[j])/(D[j]-J[j]))*(D.t-J.t);ut>=0&&ut<=1.001&&vt>=0&&vt<=1.001&&(n?T++:T.push({x:gt.x,y:gt.y,t1:G(ut,1),t2:G(vt,1)}))}}return T}function Ci(t,e,n){t=f._path2curve(t),e=f._path2curve(e);for(var s,l,d,m,v,x,w,F,P,T,S=n?0:[],z=0,I=t.length;z<I;z++){var O=t[z];if(O[0]=="M")s=v=O[1],l=x=O[2];else{O[0]=="C"?(P=[s,l].concat(O.slice(1)),s=P[6],l=P[7]):(P=[s,l,s,l,v,x,v,x],s=v,l=x);for(var A=0,J=e.length;A<J;A++){var D=e[A];if(D[0]=="M")d=w=D[1],m=F=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,F,w,F],d=w,m=F);var q=ri(P,T,n);if(n)S+=q;else{for(var j=0,gt=q.length;j<gt;j++)q[j].segment1=z,q[j].segment2=A,q[j].bez1=P,q[j].bez2=T;S=S.concat(q)}}}}}return S}f.findDotsAtSegment=function(t,e,n,s,l,d,m,v,x){var w=1-x,F=yt(w,3),P=yt(w,2),T=x*x,S=T*x,z=F*t+3*P*x*n+3*w*x*x*l+S*m,I=F*e+3*P*x*s+3*w*x*x*d+S*v,O=t+2*x*(n-t)+T*(l-2*n+t),A=e+2*x*(s-e)+T*(d-2*s+e),J=n+2*x*(l-n)+T*(m-2*l+n),D=s+2*x*(d-s)+T*(v-2*d+s),q=w*t+x*n,j=w*e+x*s,gt=w*l+x*m,ut=w*d+x*v,vt=90-180*H.atan2(O-J,A-D)/Mt;return(O>J||A<D)&&(vt+=180),{x:z,y:I,m:{x:O,y:A},n:{x:J,y:D},start:{x:q,y:j},end:{x:gt,y:ut},alpha:vt}},f.bezierBBox=function(t,e,n,s,l,d,m,v){f.is(t,"array")||(t=[t,e,n,s,l,d,m,v]);var x=Qi.apply(null,t);return{x:x.min.x,y:x.min.y,x2:x.max.x,y2:x.max.y,width:x.max.x-x.min.x,height:x.max.y-x.min.y}},f.isPointInsideBBox=function(t,e,n){return e>=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},f.isBBoxIntersect=function(t,e){var n=f.isPointInsideBBox;return n(e,t.x,t.y)||n(e,t.x2,t.y)||n(e,t.x,t.y2)||n(e,t.x2,t.y2)||n(t,e.x,e.y)||n(t,e.x2,e.y)||n(t,e.x,e.y2)||n(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 Ci(t,e)},f.pathIntersectionNumber=function(t,e){return Ci(t,e,1)},f.isPointInsidePath=function(t,e,n){var s=f.pathBBox(t);return f.isPointInsideBBox(s,e,n)&&Ci(t,[["M",e,n],["H",s.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 Le=f.pathBBox=function(t){var e=oe(t);if(e.bbox)return Xt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,s=0,l=0,d=[],m=[],v=0,x=(t=Mi(t)).length;v<x;v++)if((n=t[v])[0]=="M")s=n[1],l=n[2],d.push(s),m.push(l);else{var w=Qi(s,l,n[1],n[2],n[3],n[4],n[5],n[6]);d=d[B](w.min.x,w.max.x),m=m[B](w.min.y,w.max.y),s=n[5],l=n[6]}var F=G[U](0,d),P=G[U](0,m),T=K[U](0,d),S=K[U](0,m),z=T-F,I=S-P,O={x:F,y:P,x2:T,y2:S,width:z,height:I,cx:F+z/2,cy:P+I/2};return e.bbox=Xt(O),O},Ht=function(t){var e=Xt(t);return e.toString=f._path2string,e},Ir=f._pathToRelative=function(t){var e=oe(t);if(e.rel)return Ht(e.rel);f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t));var n=[],s=0,l=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=t[0][1],m=l=t[0][2],v++,n.push(["M",s,l]));for(var x=v,w=t.length;x<w;x++){var F=n[x]=[],P=t[x];if(P[0]!=st.call(P[0]))switch(F[0]=st.call(P[0]),F[0]){case"a":F[1]=P[1],F[2]=P[2],F[3]=P[3],F[4]=P[4],F[5]=P[5],F[6]=+(P[6]-s).toFixed(3),F[7]=+(P[7]-l).toFixed(3);break;case"v":F[1]=+(P[1]-l).toFixed(3);break;case"m":d=P[1],m=P[2];default:for(var T=1,S=P.length;T<S;T++)F[T]=+(P[T]-(T%2?s:l)).toFixed(3)}else{F=n[x]=[],P[0]=="m"&&(d=P[1]+s,m=P[2]+l);for(var z=0,I=P.length;z<I;z++)n[x][z]=P[z]}var O=n[x].length;switch(n[x][0]){case"z":s=d,l=m;break;case"h":s+=+n[x][O-1];break;case"v":l+=+n[x][O-1];break;default:s+=+n[x][O-2],l+=+n[x][O-1]}}return n.toString=f._path2string,e.rel=Ht(n),n},si=f._pathToAbsolute=function(t){var e=oe(t);if(e.abs)return Ht(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 n=[],s=0,l=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=+t[0][1],m=l=+t[0][2],v++,n[0]=["M",s,l]);for(var x,w,F=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=v,T=t.length;P<T;P++){if(n.push(x=[]),(w=t[P])[0]!=C.call(w[0]))switch(x[0]=C.call(w[0]),x[0]){case"A":x[1]=w[1],x[2]=w[2],x[3]=w[3],x[4]=w[4],x[5]=w[5],x[6]=+(w[6]+s),x[7]=+(w[7]+l);break;case"V":x[1]=+w[1]+l;break;case"H":x[1]=+w[1]+s;break;case"R":for(var S=[s,l][B](w.slice(1)),z=2,I=S.length;z<I;z++)S[z]=+S[z]+s,S[++z]=+S[z]+l;n.pop(),n=n[B](ii(S,F));break;case"M":d=+w[1]+s,m=+w[2]+l;default:for(z=1,I=w.length;z<I;z++)x[z]=+w[z]+(z%2?s:l)}else if(w[0]=="R")S=[s,l][B](w.slice(1)),n.pop(),n=n[B](ii(S,F)),x=["R"][B](w.slice(-2));else for(var O=0,A=w.length;O<A;O++)x[O]=w[O];switch(x[0]){case"Z":s=d,l=m;break;case"H":s=x[1];break;case"V":l=x[1];break;case"M":d=x[x.length-2],m=x[x.length-1];default:s=x[x.length-2],l=x[x.length-1]}}return n.toString=f._path2string,e.abs=Ht(n),n},oi=function(t,e,n,s){return[t,e,n,s,n,s]},Re=function(t,e,n,s,l,d){return[1/3*t+2/3*n,1/3*e+2/3*s,1/3*l+2/3*n,1/3*d+2/3*s,l,d]},Ki=function(t,e,n,s,l,d,m,v,x,w){var F,P=120*Mt/180,T=Mt/180*(+l||0),S=[],z=Ot(function(rs,ss,nn){return{x:rs*H.cos(nn)-ss*H.sin(nn),y:rs*H.sin(nn)+ss*H.cos(nn)}});if(w)ut=w[0],vt=w[1],j=w[2],gt=w[3];else{t=(F=z(t,e,-T)).x,e=F.y,v=(F=z(v,x,-T)).x,x=F.y;var I=(t-v)/2,O=(e-x)/2,A=I*I/(n*n)+O*O/(s*s);A>1&&(n*=A=H.sqrt(A),s*=A);var J=n*n,D=s*s,q=(d==m?-1:1)*H.sqrt(at((J*D-J*O*O-D*I*I)/(J*O*O+D*I*I))),j=q*n*O/s+(t+v)/2,gt=q*-s*I/n+(e+x)/2,ut=H.asin(((e-gt)/s).toFixed(9)),vt=H.asin(((x-gt)/s).toFixed(9));(ut=t<j?Mt-ut:ut)<0&&(ut=2*Mt+ut),(vt=v<j?Mt-vt:vt)<0&&(vt=2*Mt+vt),m&&ut>vt&&(ut-=2*Mt),!m&&vt>ut&&(vt-=2*Mt)}var li=vt-ut;if(at(li)>P){var Fi=vt,Gt=v,ge=x;vt=ut+P*(m&&vt>ut?1:-1),v=j+n*H.cos(vt),x=gt+s*H.sin(vt),S=Ki(v,x,n,s,l,0,m,Gt,ge,[vt,Fi,j,gt])}li=vt-ut;var ui=H.cos(ut),fi=H.sin(ut),tn=H.cos(vt),be=H.sin(vt),Ge=H.tan(li/4),en=4/3*n*Ge,Jr=4/3*s*Ge,ts=[t,e],hi=[t+en*fi,e-Jr*ui],es=[v+en*be,x-Jr*tn],is=[v,x];if(hi[0]=2*ts[0]-hi[0],hi[1]=2*ts[1]-hi[1],w)return[hi,es,is][B](S);for(var ns=[],Be=0,Bo=(S=[hi,es,is][B](S).join()[et](",")).length;Be<Bo;Be++)ns[Be]=Be%2?z(S[Be-1],S[Be],T).y:z(S[Be],S[Be+1],T).x;return ns},qe=function(t,e,n,s,l,d,m,v,x){var w=1-x;return{x:yt(w,3)*t+3*yt(w,2)*x*n+3*w*x*x*l+yt(x,3)*m,y:yt(w,3)*e+3*yt(w,2)*x*s+3*w*x*x*d+yt(x,3)*v}},Qi=Ot(function(t,e,n,s,l,d,m,v){var x,w=l-2*n+t-(m-2*l+n),F=2*(n-t)-2*(l-n),P=t-n,T=(-F+H.sqrt(F*F-4*w*P))/2/w,S=(-F-H.sqrt(F*F-4*w*P))/2/w,z=[e,v],I=[t,m];return at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=qe(t,e,n,s,l,d,m,v,T),I.push(x.x),z.push(x.y)),S>0&&S<1&&(x=qe(t,e,n,s,l,d,m,v,S),I.push(x.x),z.push(x.y)),w=d-2*s+e-(v-2*d+s),P=e-s,T=(-(F=2*(s-e)-2*(d-s))+H.sqrt(F*F-4*w*P))/2/w,S=(-F-H.sqrt(F*F-4*w*P))/2/w,at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=qe(t,e,n,s,l,d,m,v,T),I.push(x.x),z.push(x.y)),S>0&&S<1&&(x=qe(t,e,n,s,l,d,m,v,S),I.push(x.x),z.push(x.y)),{min:{x:G[U](0,I),y:G[U](0,z)},max:{x:K[U](0,I),y:K[U](0,z)}}}),Mi=f._path2curve=Ot(function(t,e){var n=!e&&oe(t);if(!e&&n.curve)return Ht(n.curve);for(var s=si(t),l=e&&si(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},v=function(q,j,gt){var ut,vt;if(!q)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(q[0]in{T:1,Q:1})&&(j.qx=j.qy=null),q[0]){case"M":j.X=q[1],j.Y=q[2];break;case"A":q=["C"][B](Ki[U](0,[j.x,j.y][B](q.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*j.x-j.bx,vt=2*j.y-j.by):(ut=j.x,vt=j.y),q=["C",ut,vt][B](q.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),q=["C"][B](Re(j.x,j.y,j.qx,j.qy,q[1],q[2]));break;case"Q":j.qx=q[1],j.qy=q[2],q=["C"][B](Re(j.x,j.y,q[1],q[2],q[3],q[4]));break;case"L":q=["C"][B](oi(j.x,j.y,q[1],q[2]));break;case"H":q=["C"][B](oi(j.x,j.y,q[1],j.y));break;case"V":q=["C"][B](oi(j.x,j.y,j.x,q[1]));break;case"Z":q=["C"][B](oi(j.x,j.y,j.X,j.Y))}return q},x=function(q,j){if(q[j].length>7){q[j].shift();for(var gt=q[j];gt.length;)F[j]="A",l&&(P[j]="A"),q.splice(j++,0,["C"][B](gt.splice(0,6)));q.splice(j,1),I=K(s.length,l&&l.length||0)}},w=function(q,j,gt,ut,vt){q&&j&&q[vt][0]=="M"&&j[vt][0]!="M"&&(j.splice(vt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=q[vt][1],gt.y=q[vt][2],I=K(s.length,l&&l.length||0))},F=[],P=[],T="",S="",z=0,I=K(s.length,l&&l.length||0);z<I;z++){s[z]&&(T=s[z][0]),T!="C"&&(F[z]=T,z&&(S=F[z-1])),s[z]=v(s[z],d,S),F[z]!="A"&&T=="C"&&(F[z]="C"),x(s,z),l&&(l[z]&&(T=l[z][0]),T!="C"&&(P[z]=T,z&&(S=P[z-1])),l[z]=v(l[z],m,S),P[z]!="A"&&T=="C"&&(P[z]="C"),x(l,z)),w(s,l,d,m,z),w(l,s,m,d,z);var O=s[z],A=l&&l[z],J=O.length,D=l&&A.length;d.x=O[J-2],d.y=O[J-1],d.bx=_(O[J-4])||d.x,d.by=_(O[J-3])||d.y,m.bx=l&&(_(A[D-4])||m.x),m.by=l&&(_(A[D-3])||m.y),m.x=l&&A[D-2],m.y=l&&A[D-1]}return l||(n.curve=Ht(s)),l?[s,l]:s},null,Ht),Ji=(f._parseDots=Ot(function(t){for(var e=[],n=0,s=t.length;n<s;n++){var l={},d=t[n].match(/^([^:]*):?([\d\.]*)/);if(l.color=f.getRGB(d[1]),l.color.error)return null;l.opacity=l.color.opacity,l.color=l.color.hex,d[2]&&(l.offset=d[2]+"%"),e.push(l)}for(n=1,s=e.length-1;n<s;n++)if(!e[n].offset){for(var m=_(e[n-1].offset||0),v=0,x=n+1;x<s;x++)if(e[x].offset){v=e[x].offset;break}v||(v=100,x=s);for(var w=((v=_(v))-m)/(x-n+1);n<x;n++)m+=w,e[n].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)}),So=(f._tofront=function(t,e){e.top!==t&&(Ji(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},f._toback=function(t,e){e.bottom!==t&&(Ji(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},f._insertafter=function(t,e,n){Ji(t,n),e==n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},f._insertbefore=function(t,e,n){Ji(t,n),e==n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},f.toMatrix=function(t,e){var n=Le(t),s={_:{transform:lt},getBBox:function(){return n}};return Dr(s,e),s.matrix}),Dr=(f.transformPath=function(t,e){return zt(t,So(t,e))},f._extractTransform=function(t,e){if(e==null)return t._.transform;e=V(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var n,s,l=f.parseTransformString(e),d=0,m=1,v=1,x=t._,w=new Xe;if(x.transform=l||[],l)for(var F=0,P=l.length;F<P;F++){var T,S,z,I,O,A=l[F],J=A.length,D=V(A[0]).toLowerCase(),q=A[0]!=D,j=q?w.invert():0;D=="t"&&J==3?q?(T=j.x(0,0),S=j.y(0,0),z=j.x(A[1],A[2]),I=j.y(A[1],A[2]),w.translate(z-T,I-S)):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&&(q?(z=j.x(A[2],A[3]),I=j.y(A[2],A[3]),w.rotate(A[1],z,I)):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],v*=A[J-1]):J==5&&(q?(z=j.x(A[3],A[4]),I=j.y(A[3],A[4]),w.scale(A[1],A[2],z,I)):w.scale(A[1],A[2],A[3],A[4]),m*=A[1],v*=A[2]):D=="m"&&J==7&&w.add(A[1],A[2],A[3],A[4],A[5],A[6]),x.dirtyT=1,t.matrix=w}t.matrix=w,x.sx=m,x.sy=v,x.deg=d,x.dx=n=w.e,x.dy=s=w.f,m==1&&v==1&&!d&&x.bbox?(x.bbox.x+=+n,x.bbox.y+=+s):x.dirtyT=1}),jr=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]}},Fo=f._equaliseTransform=function(t,e){e=V(e).replace(/\.{3}|\u2026/g,t),t=f.parseTransformString(t)||[],e=f.parseTransformString(e)||[];for(var n,s,l,d,m=K(t.length,e.length),v=[],x=[],w=0;w<m;w++){if(l=t[w]||jr(e[w]),d=e[w]||jr(l),l[0]!=d[0]||l[0].toLowerCase()=="r"&&(l[2]!=d[2]||l[3]!=d[3])||l[0].toLowerCase()=="s"&&(l[3]!=d[3]||l[4]!=d[4]))return;for(v[w]=[],x[w]=[],n=0,s=K(l.length,d.length);n<s;n++)n in l&&(v[w][n]=l[n]),n in d&&(x[w][n]=d[n])}return{from:v,to:x}};function Xe(t,e,n,s,l,d){t!=null?(this.a=+t,this.b=+e,this.c=+n,this.d=+s,this.e=+l,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,n,s){var l;if((l=s!=null||f.is(t,"object")?t:W.doc.getElementById(t))!=null)return l.tagName?e==null?{container:l,width:l.style.pixelWidth||l.offsetWidth,height:l.style.pixelHeight||l.offsetHeight}:{container:l,width:e,height:n}:{container:1,x:t,y:e,width:n,height:s}},f.pathToRelative=Ir,f._engine={},f.path2curve=Mi,f.matrix=function(t,e,n,s,l,d){return new Xe(t,e,n,s,l,d)},(function(t){function e(s){return s[0]*s[0]+s[1]*s[1]}function n(s){var l=H.sqrt(e(s));s[0]&&(s[0]/=l),s[1]&&(s[1]/=l)}t.add=function(s,l,d,m,v,x){var w,F,P,T,S=[[],[],[]],z=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],I=[[s,d,v],[l,m,x],[0,0,1]];for(s&&s instanceof Xe&&(I=[[s.a,s.c,s.e],[s.b,s.d,s.f],[0,0,1]]),w=0;w<3;w++)for(F=0;F<3;F++){for(T=0,P=0;P<3;P++)T+=z[w][P]*I[P][F];S[w][F]=T}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 s=this,l=s.a*s.d-s.b*s.c;return new Xe(s.d/l,-s.b/l,-s.c/l,s.a/l,(s.c*s.f-s.d*s.e)/l,(s.b*s.e-s.a*s.f)/l)},t.clone=function(){return new Xe(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(s,l){this.add(1,0,0,1,s,l)},t.scale=function(s,l,d,m){l==null&&(l=s),(d||m)&&this.add(1,0,0,1,d,m),this.add(s,0,0,l,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(s,l,d){s=f.rad(s),l=l||0,d=d||0;var m=+H.cos(s).toFixed(9),v=+H.sin(s).toFixed(9);this.add(m,v,-v,m,l,d),this.add(1,0,0,1,-l,-d)},t.x=function(s,l){return s*this.a+l*this.c+this.e},t.y=function(s,l){return s*this.b+l*this.d+this.f},t.get=function(s){return+this[V.fromCharCode(97+s)].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 s={};s.dx=this.e,s.dy=this.f;var l=[[this.a,this.c],[this.b,this.d]];s.scalex=H.sqrt(e(l[0])),n(l[0]),s.shear=l[0][0]*l[1][0]+l[0][1]*l[1][1],l[1]=[l[1][0]-l[0][0]*s.shear,l[1][1]-l[0][1]*s.shear],s.scaley=H.sqrt(e(l[1])),n(l[1]),s.shear/=s.scaley;var d=-l[0][1],m=l[1][1];return m<0?(s.rotate=f.deg(H.acos(m)),d<0&&(s.rotate=360-s.rotate)):s.rotate=f.deg(H.asin(d)),s.isSimple=!(+s.shear.toFixed(9)||s.scalex.toFixed(9)!=s.scaley.toFixed(9)&&s.rotate),s.isSuperSimple=!+s.shear.toFixed(9)&&s.scalex.toFixed(9)==s.scaley.toFixed(9)&&!s.rotate,s.noRotation=!+s.shear.toFixed(9)&&!s.rotate,s},t.toTransformString=function(s){var l=s||this[et]();return l.isSimple?(l.scalex=+l.scalex.toFixed(4),l.scaley=+l.scaley.toFixed(4),l.rotate=+l.rotate.toFixed(4),(l.dx||l.dy?"t"+[l.dx,l.dy]:lt)+(l.scalex!=1||l.scaley!=1?"s"+[l.scalex,l.scaley,0,0]:lt)+(l.rotate?"r"+[l.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(Xe.prototype);for(var Ao=function(){this.returnValue=!1},To=function(){return this.originalEvent.preventDefault()},No=function(){this.cancelBubble=!0},Lo=function(){return this.originalEvent.stopPropagation()},Yr=function(t){var e=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,n=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;return{x:t.clientX+n,y:t.clientY+e}},Ro=W.doc.addEventListener?function(t,e,n,s){var l=function(m){var v=Yr(m);return n.call(s,m,v.x,v.y)};if(t.addEventListener(e,l,!1),Q&&wt[e]){var d=function(m){for(var v=Yr(m),x=m,w=0,F=m.targetTouches&&m.targetTouches.length;w<F;w++)if(m.targetTouches[w].target==t){(m=m.targetTouches[w]).originalEvent=x,m.preventDefault=To,m.stopPropagation=Lo;break}return n.call(s,m,v.x,v.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,l,!1),Q&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:W.doc.attachEvent?function(t,e,n,s){var l=function(d){d=d||W.win.event;var m=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,v=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,x=d.clientX+v,w=d.clientY+m;return d.preventDefault=d.preventDefault||Ao,d.stopPropagation=d.stopPropagation||No,n.call(s,d,x,w)};return t.attachEvent("on"+e,l),function(){return t.detachEvent("on"+e,l),!0}}:void 0,ze=[],_n=function(t){for(var e,n=t.clientX,s=t.clientY,l=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,d=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,m=ze.length;m--;){if(e=ze[m],Q&&t.touches){for(var v,x=t.touches.length;x--;)if((v=t.touches[x]).identifier==e.el._drag.id){n=v.clientX,s=v.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var w,F=e.el.node,P=F.nextSibling,T=F.parentNode,S=F.style.display;W.win.opera&&T.removeChild(F),F.style.display="none",w=e.el.paper.getElementByPoint(n,s),F.style.display=S,W.win.opera&&(P?T.insertBefore(F,P):T.appendChild(F)),w&&h("raphael.drag.over."+e.el.id,e.el,w),n+=d,s+=l,h("raphael.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,s-e.el._drag.y,n,s,t)}},bn=function(t){f.unmousemove(_n).unmouseup(bn);for(var e,n=ze.length;n--;)(e=ze[n]).el._drag={},h("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);ze=[]},At=f.el={},qr=rt.length;qr--;)(function(t){f[t]=At[t]=function(e,n){return f.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Ro(this.shape||this.node||W.doc,t,e,n||this)})),this},f["un"+t]=At["un"+t]=function(e){for(var n=this.events||[],s=n.length;s--;)n[s].name!=t||!f.is(e,"undefined")&&n[s].f!=e||(n[s].unbind(),n.splice(s,1),!n.length&&delete this.events);return this}})(rt[qr]);At.data=function(t,e){var n=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return n;if(arguments.length==1){if(f.is(t,"object")){for(var s in t)t[nt](s)&&this.data(s,t[s]);return this}return h("raphael.data.get."+this.id,this,n[t],t),n[t]}return n[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 Xt(kt[this.id]||{})},At.hover=function(t,e,n,s){return this.mouseover(t,n).mouseout(e,s||n)},At.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var ai=[];At.drag=function(t,e,n,s,l,d){function m(v){(v.originalEvent||v).preventDefault();var x=v.clientX,w=v.clientY,F=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,P=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;if(this._drag.id=v.identifier,Q&&v.touches){for(var T,S=v.touches.length;S--;)if(T=v.touches[S],this._drag.id=T.identifier,T.identifier==this._drag.id){x=T.clientX,w=T.clientY;break}}this._drag.x=x+P,this._drag.y=w+F,!ze.length&&f.mousemove(_n).mouseup(bn),ze.push({el:this,move_scope:s,start_scope:l,end_scope:d}),e&&h.on("raphael.drag.start."+this.id,e),t&&h.on("raphael.drag.move."+this.id,t),n&&h.on("raphael.drag.end."+this.id,n),h("raphael.drag.start."+this.id,l||s||this,this._drag.x,this._drag.y,v)}return this._drag={},ai.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=ai.length;t--;)ai[t].el==this&&(this.unmousedown(ai[t].start),ai.splice(t,1),h.unbind("raphael.drag.*."+this.id));!ai.length&&f.unmousemove(_n).unmouseup(bn),ze=[]},L.circle=function(t,e,n){var s=f._engine.circle(this,t||0,e||0,n||0);return this.__set__&&this.__set__.push(s),s},L.rect=function(t,e,n,s,l){var d=f._engine.rect(this,t||0,e||0,n||0,s||0,l||0);return this.__set__&&this.__set__.push(d),d},L.ellipse=function(t,e,n,s){var l=f._engine.ellipse(this,t||0,e||0,n||0,s||0);return this.__set__&&this.__set__.push(l),l},L.path=function(t){t&&!f.is(t,"string")&&!f.is(t[0],xt)&&(t+=lt);var e=f._engine.path(f.format[U](f,arguments),this);return this.__set__&&this.__set__.push(e),e},L.image=function(t,e,n,s,l){var d=f._engine.image(this,t||"about:blank",e||0,n||0,s||0,l||0);return this.__set__&&this.__set__.push(d),d},L.text=function(t,e,n){var s=f._engine.text(this,t||0,e||0,V(n));return this.__set__&&this.__set__.push(s),s},L.set=function(t){!f.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new Si(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,n,s,l){return f._engine.setViewBox.call(this,t,e,n,s,l)},L.top=L.bottom=null,L.raphael=f;function Xr(){return this.x+ht+this.y+ht+this.width+" × "+this.height}L.getElementByPoint=function(t,e){var n,s,l,d,m,v,x,w=this.canvas,F=W.doc.elementFromPoint(t,e);if(W.win.opera&&F.tagName=="svg"){var P=(s=(n=w).getBoundingClientRect(),l=n.ownerDocument,d=l.body,m=l.documentElement,v=m.clientTop||d.clientTop||0,x=m.clientLeft||d.clientLeft||0,{y:s.top+(W.win.pageYOffset||m.scrollTop||d.scrollTop)-v,x:s.left+(W.win.pageXOffset||m.scrollLeft||d.scrollLeft)-x}),T=w.createSVGRect();T.x=t-P.x,T.y=e-P.y,T.width=T.height=1;var S=w.getIntersectionList(T,null);S.length&&(F=S[S.length-1])}if(!F)return null;for(;F.parentNode&&F!=w.parentNode&&!F.raphael;)F=F.parentNode;return F==this.canvas.parentNode&&(F=w),F=F&&F.raphael?this.getById(F.raphaelid):null},L.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(n){f.isBBoxIntersect(n.getBBox(),t)&&e.push(n)}),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 n=this.bottom;n;){if(t.call(e,n)===!1)return this;n=n.next}return this},L.getElementsByPoint=function(t,e){var n=this.set();return this.forEach(function(s){s.isPointInside(t,e)&&n.push(s)}),n},At.isPointInside=function(t,e){var n=this.realPath=Rt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=f.transformPath(n,this.attr("transform"))),f.isPointInsidePath(n,t,e)},At.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Rt[this.type](this),e.bboxwt=Le(this.realPath),e.bboxwt.toString=Xr,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Rt[this.type](this)),e.bbox=Le(zt(this.realPath,this.matrix)),e.bbox.toString=Xr,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"},n=e.width/2,s=this.paper,l=s.set(),d=this.realPath||Rt[this.type](this);d=this.matrix?zt(d,this.matrix):d;for(var m=1;m<n+1;m++)l.push(s.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/n*m).toFixed(3),opacity:+(e.opacity/n).toFixed(3)}));return l.insertBefore(this).translate(e.offsetx,e.offsety)};var wn=function(t,e,n,s,l,d,m,v,x){return x==null?he(t,e,n,s,l,d,m,v):f.findDotsAtSegment(t,e,n,s,l,d,m,v,(function(w,F,P,T,S,z,I,O,A){if(!(A<0||he(w,F,P,T,S,z,I,O)<A)){var J,D=.5,q=1-D;for(J=he(w,F,P,T,S,z,I,O,q);at(J-A)>.01;)J=he(w,F,P,T,S,z,I,O,q+=(J<A?1:-1)*(D/=2));return q}})(t,e,n,s,l,d,m,v,x))},kn=function(t,e){return function(n,s,l){for(var d,m,v,x,w,F="",P={},T=0,S=0,z=(n=Mi(n)).length;S<z;S++){if((v=n[S])[0]=="M")d=+v[1],m=+v[2];else{if(T+(x=wn(d,m,v[1],v[2],v[3],v[4],v[5],v[6]))>s){if(e&&!P.start){if(F+=["C"+(w=wn(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).start.x,w.start.y,w.m.x,w.m.y,w.x,w.y],l)return F;P.start=F,F=["M"+w.x,w.y+"C"+w.n.x,w.n.y,w.end.x,w.end.y,v[5],v[6]].join(),T+=x,d=+v[5],m=+v[6];continue}if(!t&&!e)return{x:(w=wn(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).x,y:w.y,alpha:w.alpha}}T+=x,d=+v[5],m=+v[6]}F+=v.shift()+v}return P.end=F,(w=t?T:e?P:f.findDotsAtSegment(d,m,v[0],v[1],v[2],v[3],v[4],v[5],1)).alpha&&(w={x:w.x,y:w.y,alpha:w.alpha}),w}},Hr=kn(1),Gr=kn(),En=kn(0,1);f.getTotalLength=Hr,f.getPointAtLength=Gr,f.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return En(t,e).end;var s=En(t,n,1);return e?En(s,e).end:s},At.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Hr(t)},At.getPointAtLength=function(t){var e=this.getPath();if(e)return Gr(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 n=this.getPath();if(n)return f.getSubpath(n,t,e)};var ee=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,n=H.sqrt(.1734+e*e),s=n-e,l=-n-e,d=yt(at(s),1/3)*(s<0?-1:1)+yt(at(l),1/3)*(l<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*Mt*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375}};ee.easeIn=ee["ease-in"]=ee["<"],ee.easeOut=ee["ease-out"]=ee[">"],ee.easeInOut=ee["ease-in-out"]=ee["<>"],ee["back-in"]=ee.backIn,ee["back-out"]=ee.backOut;var Et=[],Ur=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},Cn=function(){for(var t=+new Date,e=0;e<Et.length;e++){var n=Et[e];if(!n.el.removed&&!n.paused){var s,l,d=t-n.start,m=n.ms,v=n.easing,x=n.from,w=n.diff,F=n.to,P=(n.t,n.el),T={},S={};if(n.initstatus?(d=(n.initstatus*n.anim.top-n.prev)/(n.percent-n.prev)*m,n.status=n.initstatus,delete n.initstatus,n.stop&&Et.splice(e--,1)):n.status=(n.prev+(n.percent-n.prev)*(d/m))/n.anim.top,!(d<0))if(d<m){var z=v(d/m);for(var I in x)if(x[nt](I)){switch(M[I]){case ct:s=+x[I]+z*m*w[I];break;case"colour":s="rgb("+[Mn(c(x[I].r+z*m*w[I].r)),Mn(c(x[I].g+z*m*w[I].g)),Mn(c(x[I].b+z*m*w[I].b))].join(",")+")";break;case"path":s=[];for(var O=0,A=x[I].length;O<A;O++){s[O]=[x[I][O][0]];for(var J=1,D=x[I][O].length;J<D;J++)s[O][J]=+x[I][O][J]+z*m*w[I][O][J];s[O]=s[O].join(ht)}s=s.join(ht);break;case"transform":if(w[I].real)for(s=[],O=0,A=x[I].length;O<A;O++)for(s[O]=[x[I][O][0]],J=1,D=x[I][O].length;J<D;J++)s[O][J]=x[I][O][J]+z*m*w[I][O][J];else{var q=function(gt){return+x[I][gt]+z*m*w[I][gt]};s=[["m",q(0),q(1),q(2),q(3),q(4),q(5)]]}break;case"csv":if(I=="clip-rect")for(s=[],O=4;O--;)s[O]=+x[I][O]+z*m*w[I][O];break;default:var j=[][B](x[I]);for(s=[],O=P.paper.customAttributes[I].length;O--;)s[O]=+j[O]+z*m*w[I][O]}T[I]=s}P.attr(T),(function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+gt,ut,vt)})})(P.id,P,n.anim)}else{if((function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+ut.id,ut,vt),h("raphael.anim.finish."+ut.id,ut,vt),f.is(gt,"function")&>.call(ut)})})(n.callback,P,n.anim),P.attr(F),Et.splice(e--,1),n.repeat>1&&!n.next){for(l in F)F[nt](l)&&(S[l]=n.totalOrigin[l]);n.el.attr(S),$i(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&$i(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}Et.length&&Ur(Cn)},Mn=function(t){return t>255?255:t<0?0:t};function zo(t,e,n,s,l,d){var m=3*e,v=3*(s-e)-m,x=1-m-v,w=3*n,F=3*(l-n)-w,P=1-w-F;function T(S){return((x*S+v)*S+m)*S}return(function(S,z){var I=(function(O,A){var J,D,q,j,gt,ut;for(q=O,ut=0;ut<8;ut++){if(j=T(q)-O,at(j)<A)return q;if(at(gt=(3*x*q+2*v)*q+m)<1e-6)break;q-=j/gt}if(D=1,(q=O)<(J=0))return J;if(q>D)return D;for(;J<D;){if(j=T(q),at(j-O)<A)return q;O>j?J=q:D=q,q=(D-J)/2+J}return q})(S,z);return((P*I+F)*I+w)*I})(t,1/(200*d))}function _e(t,e){var n=[],s={};if(this.ms=e,this.times=1,t){for(var l in t)t[nt](l)&&(s[_(l)]=t[l],n.push(_(l)));n.sort(Ct)}this.anim=s,this.top=n[n.length-1],this.percents=n}function $i(t,e,n,s,l,d){n=_(n);var m,v,x,w,F,P,T=t.ms,S={},z={},I={};if(s)for(A=0,J=Et.length;A<J;A++){var O=Et[A];if(O.el.id==e.id&&O.anim==t){O.percent!=n?(Et.splice(A,1),x=1):v=O,e.attr(O.totalOrigin);break}}else s=+z;for(var A=0,J=t.percents.length;A<J;A++){if(t.percents[A]==n||t.percents[A]>s*t.top){n=t.percents[A],F=t.percents[A-1]||0,T=T/t.top*(n-F),w=t.percents[A+1],m=t.anim[n];break}s&&e.attr(t.anim[t.percents[A]])}if(m){if(v)v.initstatus=s,v.start=new Date-v.ms*s;else{for(var D in m)if(m[nt](D)&&(M[nt](D)||e.paper.customAttributes[nt](D)))switch(S[D]=e.attr(D),S[D]==null&&(S[D]=R[D]),z[D]=m[D],M[D]){case ct:I[D]=(z[D]-S[D])/T;break;case"colour":S[D]=f.getRGB(S[D]);var q=f.getRGB(z[D]);I[D]={r:(q.r-S[D].r)/T,g:(q.g-S[D].g)/T,b:(q.b-S[D].b)/T};break;case"path":var j=Mi(S[D],z[D]),gt=j[1];for(S[D]=j[0],I[D]=[],A=0,J=S[D].length;A<J;A++){I[D][A]=[0];for(var ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(gt[A][ut]-S[D][A][ut])/T}break;case"transform":var li=e._,Fi=Fo(li[D],z[D]);if(Fi)for(S[D]=Fi.from,z[D]=Fi.to,I[D]=[],I[D].real=!0,A=0,J=S[D].length;A<J;A++)for(I[D][A]=[S[D][A][0]],ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(z[D][A][ut]-S[D][A][ut])/T;else{var Gt=e.matrix||new Xe,ge={_:{transform:li.transform},getBBox:function(){return e.getBBox(1)}};S[D]=[Gt.a,Gt.b,Gt.c,Gt.d,Gt.e,Gt.f],Dr(ge,z[D]),z[D]=ge._.transform,I[D]=[(ge.matrix.a-Gt.a)/T,(ge.matrix.b-Gt.b)/T,(ge.matrix.c-Gt.c)/T,(ge.matrix.d-Gt.d)/T,(ge.matrix.e-Gt.e)/T,(ge.matrix.f-Gt.f)/T]}break;case"csv":var ui=V(m[D])[et](Z),fi=V(S[D])[et](Z);if(D=="clip-rect")for(S[D]=fi,I[D]=[],A=fi.length;A--;)I[D][A]=(ui[A]-S[D][A])/T;z[D]=ui;break;default:for(ui=[][B](m[D]),fi=[][B](S[D]),I[D]=[],A=e.paper.customAttributes[D].length;A--;)I[D][A]=((ui[A]||0)-(fi[A]||0))/T}var tn=m.easing,be=f.easing_formulas[tn];if(!be)if((be=V(tn).match(o))&&be.length==5){var Ge=be;be=function(en){return zo(en,+Ge[1],+Ge[2],+Ge[3],+Ge[4],T)}}else be=bt;if(O={anim:t,percent:n,timestamp:P=m.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:s||0,stop:!1,ms:T,easing:be,from:S,diff:I,to:z,el:e,callback:m.callback,prev:F,next:w,repeat:d||t.times,origin:e.attr(),totalOrigin:l},Et.push(O),s&&!v&&!x&&(O.stop=!0,O.start=new Date-T*s,Et.length==1))return Cn();x&&(O.start=new Date-O.ms*s),Et.length==1&&Ur(Cn)}h("raphael.anim.start."+e.id,e,t)}}function Wr(t){for(var e=0;e<Et.length;e++)Et[e].el.paper==t&&Et.splice(e--,1)}At.animateWith=function(t,e,n,s,l,d){if(this.removed)return d&&d.call(this),this;var m=n instanceof _e?n:f.animation(n,s,l,d);$i(m,this,m.percents[0],null,this.attr());for(var v=0,x=Et.length;v<x;v++)if(Et[v].anim==e&&Et[v].el==t){Et[x-1].start=Et[v].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},_e.prototype.delay=function(t){var e=new _e(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},_e.prototype.repeat=function(t){var e=new _e(this.anim,this.ms);return e.del=this.del,e.times=H.floor(K(t,0))||1,e},f.animation=function(t,e,n,s){if(t instanceof _e)return t;!f.is(n,"function")&&n||(s=s||n||null,n=null),t=Object(t),e=+e||0;var l,d,m={};for(d in t)t[nt](d)&&_(d)!=d&&_(d)+"%"!=d&&(l=!0,m[d]=t[d]);if(l)return n&&(m.easing=n),s&&(m.callback=s),new _e({100:m},e);if(s){var v=0;for(var x in t){var w=E(x);t[nt](x)&&w>v&&(v=w)}!t[v+="%"].callback&&(t[v].callback=s)}return new _e(t,e)},At.animate=function(t,e,n,s){if(this.removed)return s&&s.call(this),this;var l=t instanceof _e?t:f.animation(t,e,n,s);return $i(l,this,l.percents[0],null,this.attr()),this},At.setTime=function(t,e){return t&&e!=null&&this.status(t,G(e,t.ms)/t.ms),this},At.status=function(t,e){var n,s,l=[],d=0;if(e!=null)return $i(t,this,-1,G(e,1)),this;for(n=Et.length;d<n;d++)if((s=Et[d]).el.id==this.id&&(!t||s.anim==t)){if(t)return s.status;l.push({anim:s.anim,status:s.status})}return t?0:l},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 n=Et[e];h("raphael.anim.resume."+this.id,this,n.anim)!==!1&&(delete n.paused,this.status(n.anim,n.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",Wr),h.on("raphael.clear",Wr),At.toString=function(){return"Raphaël’s object"};var Zr,Kr,He,Qr,Si=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)!t[e]||t[e].constructor!=At.constructor&&t[e].constructor!=Si||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},Pt=Si.prototype;for(var $n in Pt.push=function(){for(var t,e,n=0,s=arguments.length;n<s;n++)!(t=arguments[n])||t.constructor!=At.constructor&&t.constructor!=Si||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},Pt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Pt.forEach=function(t,e){for(var n=0,s=this.items.length;n<s;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},At)At[nt]($n)&&(Pt[$n]=(function(t){return function(){var e=arguments;return this.forEach(function(n){n[t][U](n,e)})}})($n));return Pt.attr=function(t,e){if(t&&f.is(t,xt)&&f.is(t[0],"object"))for(var n=0,s=t.length;n<s;n++)this.items[n].attr(t[n]);else for(var l=0,d=this.items.length;l<d;l++)this.items[l].attr(t,e);return this},Pt.clear=function(){for(;this.length;)this.pop()},Pt.splice=function(t,e,n){t=t<0?K(this.length+t,0):t,e=K(0,G(this.length-t,e));var s,l=[],d=[],m=[];for(s=2;s<arguments.length;s++)m.push(arguments[s]);for(s=0;s<e;s++)d.push(this[t+s]);for(;s<this.length-t;s++)l.push(this[t+s]);var v=m.length;for(s=0;s<v+l.length;s++)this.items[t+s]=this[t+s]=s<v?m[s]:l[s-v];for(s=this.items.length=this.length-=e-v;this[s];)delete this[s++];return new Si(d)},Pt.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0},Pt.animate=function(t,e,n,s){(f.is(n,"function")||!n)&&(s=n||null);var l,d,m=this.items.length,v=m,x=this;if(!m)return this;s&&(d=function(){!--m&&s.call(x)}),n=f.is(n,"string")?n:d;var w=f.animation(t,e,n,d);for(l=this.items[--v].animate(w);v--;)this.items[v]&&!this.items[v].removed&&this.items[v].animateWith(l,w,w),this.items[v]&&!this.items[v].removed||m--;return this},Pt.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},Pt.getBBox=function(){for(var t=[],e=[],n=[],s=[],l=this.items.length;l--;)if(!this.items[l].removed){var d=this.items[l].getBBox();t.push(d.x),e.push(d.y),n.push(d.x+d.width),s.push(d.y+d.height)}return{x:t=G[U](0,t),y:e=G[U](0,e),x2:n=K[U](0,n),y2:s=K[U](0,s),width:n-t,height:s-e}},Pt.clone=function(t){t=this.paper.set();for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},Pt.toString=function(){return"Raphaël‘s set"},Pt.glow=function(t){var e=this.paper.set();return this.forEach(function(n,s){var l=n.glow(t);l?.forEach(function(d,m){e.push(d)})}),e},Pt.isPointInside=function(t,e){var n=!1;return this.forEach(function(s){if(s.isPointInside(t,e))return n=!0,!1}),n},f.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(var s in t.face)t.face[nt](s)&&(e.face[s]=t.face[s]);if(this.fonts[n]?this.fonts[n].push(e):this.fonts[n]=[e],!t.svg){for(var l in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[nt](l)){var d=t.glyphs[l];if(e.glyphs[l]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(v){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[v]||"M"})+"z"},d.k)for(var m in d.k)d[nt](m)&&(e.glyphs[l].k[m]=d.k[m])}}return t},L.getFont=function(t,e,n,s){if(s=s||"normal",n=n||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,f.fonts){var l,d=f.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var v in f.fonts)if(f.fonts[nt](v)&&m.test(v)){d=f.fonts[v];break}}if(d)for(var x=0,w=d.length;x<w&&((l=d[x]).face["font-weight"]!=e||l.face["font-style"]!=n&&l.face["font-style"]||l.face["font-stretch"]!=s);x++);return l}},L.print=function(t,e,n,s,l,d,m,v){d=d||"middle",m=K(G(m||0,1),-1),v=K(G(v||1,3),1);var x,w=V(n)[et](lt),F=0,P=0,T=lt;if(f.is(s,"string")&&(s=this.getFont(s)),s){x=(l||16)/s.face["units-per-em"];for(var S=s.face.bbox[et](Z),z=+S[0],I=S[3]-S[1],O=0,A=+S[1]+(d=="baseline"?I+ +s.face.descent:I/2),J=0,D=w.length;J<D;J++){if(w[J]==`
|
|
3
|
+
`)F=0,j=0,P=0,O+=I*v;else{var q=P&&s.glyphs[w[J-1]]||{},j=s.glyphs[w[J]];F+=P?(q.w||s.w)+(q.k&&q.k[w[J]]||0)+s.w*m:0,P=1}j&&j.d&&(T+=f.transformPath(j.d,["t",F*x,O*x,"s",x,x,z,A,"t",(t-z)/x,(e-A)/x]))}}return this.path(T).attr({fill:"#000",stroke:"none"})},L.add=function(t){if(f.is(t,"array"))for(var e,n=this.set(),s=0,l=t.length;s<l;s++)e=t[s]||{},Y[nt](e.type)&&n.push(this[e.type]().attr(e));return n},f.format=function(t,e){var n=f.is(e,xt)?[0][B](e):arguments;return t&&f.is(t,"string")&&n.length-1&&(t=t.replace(tt,function(s,l){return n[++l]==null?lt:n[l]})),t||lt},f.fullfill=(Zr=/\{([^\}]+)\}/g,Kr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(Zr,function(n,s){return(function(l,d,m){var v=m;return d.replace(Kr,function(x,w,F,P,T){w=w||P,v&&(w in v&&(v=v[w]),typeof v=="function"&&T&&(v=v()))}),v=(v==null||v==m?l:v)+""})(n,s,e)})}),f.ninja=function(){if(_t.was)W.win.Raphael=_t.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return f},f.st=Pt,h.on("raphael.DOMload",function(){$=!0}),(He=document).readyState==null&&He.addEventListener&&(He.addEventListener("DOMContentLoaded",Qr=function(){He.removeEventListener("DOMContentLoaded",Qr,!1),He.readyState="complete"},!1),He.readyState="loading"),(function t(){/in/.test(He.readyState)?setTimeout(t,9):f.eve("raphael.DOMload")})(),f}).apply(g,y))===void 0||(a.exports=k)},function(a,g,b){var y,k;y=[b(0),b(3),b(4)],(k=(function(h){return h}).apply(g,y))===void 0||(a.exports=k)},function(a,g,b){var y,k,h,f,$,L,Z,Y,tt,nt,W,_t,Ft,U;f="hasOwnProperty",$=/[\.\/]/,L=/\s*,\s*/,Z=function(B,Q){return B-Q},Y={n:{}},tt=function(){for(var B=0,Q=this.length;B<Q;B++)if(this[B]!==void 0)return this[B]},nt=function(){for(var B=this.length;--B;)if(this[B]!==void 0)return this[B]},W=Object.prototype.toString,_t=String,Ft=Array.isArray||function(B){return B instanceof Array||W.call(B)=="[object Array]"},(U=function(B,Q){var lt,ht=h,V=Array.prototype.slice.call(arguments,2),et=U.listeners(B),rt=0,wt=[],st={},H=[],K=k;H.firstDefined=tt,H.lastDefined=nt,k=B,h=0;for(var G=0,at=et.length;G<at;G++)"zIndex"in et[G]&&(wt.push(et[G].zIndex),et[G].zIndex<0&&(st[et[G].zIndex]=et[G]));for(wt.sort(Z);wt[rt]<0;)if(lt=st[wt[rt++]],H.push(lt.apply(Q,V)),h)return h=ht,H;for(G=0;G<at;G++)if("zIndex"in(lt=et[G]))if(lt.zIndex==wt[rt]){if(H.push(lt.apply(Q,V)),h)break;do if((lt=st[wt[++rt]])&&H.push(lt.apply(Q,V)),h)break;while(lt)}else st[lt.zIndex]=lt;else if(H.push(lt.apply(Q,V)),h)break;return h=ht,k=K,H})._events=Y,U.listeners=function(B){var Q,lt,ht,V,et,rt,wt,st,H=Ft(B)?B:B.split($),K=Y,G=[K],at=[];for(V=0,et=H.length;V<et;V++){for(st=[],rt=0,wt=G.length;rt<wt;rt++)for(lt=[(K=G[rt].n)[H[V]],K["*"]],ht=2;ht--;)(Q=lt[ht])&&(st.push(Q),at=at.concat(Q.f||[]));G=st}return at},U.separator=function(B){B?(B="["+(B=_t(B).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",$=new RegExp(B)):$=/[\.\/]/},U.on=function(B,Q){if(typeof Q!="function")return function(){};for(var lt=Ft(B)?Ft(B[0])?B:[B]:_t(B).split(L),ht=0,V=lt.length;ht<V;ht++)(function(et){for(var rt,wt=Ft(et)?et:_t(et).split($),st=Y,H=0,K=wt.length;H<K;H++)st=(st=st.n).hasOwnProperty(wt[H])&&st[wt[H]]||(st[wt[H]]={n:{}});for(st.f=st.f||[],H=0,K=st.f.length;H<K;H++)if(st.f[H]==Q){rt=!0;break}!rt&&st.f.push(Q)})(lt[ht]);return function(et){+et==+et&&(Q.zIndex=+et)}},U.f=function(B){var Q=[].slice.call(arguments,1);return function(){U.apply(null,[B,null].concat(Q).concat([].slice.call(arguments,0)))}},U.stop=function(){h=1},U.nt=function(B){var Q=Ft(k)?k.join("."):k;return B?new RegExp("(?:\\.|\\/|^)"+B+"(?:\\.|\\/|$)").test(Q):Q},U.nts=function(){return Ft(k)?k:k.split($)},U.off=U.unbind=function(B,Q){if(B){var lt=Ft(B)?Ft(B[0])?B:[B]:_t(B).split(L);if(lt.length>1)for(var ht=0,V=lt.length;ht<V;ht++)U.off(lt[ht],Q);else{lt=Ft(B)?B:_t(B).split($);var et,rt,wt,st,H,K=[Y];for(ht=0,V=lt.length;ht<V;ht++)for(st=0;st<K.length;st+=wt.length-2){if(wt=[st,1],et=K[st].n,lt[ht]!="*")et[lt[ht]]&&wt.push(et[lt[ht]]);else for(rt in et)et[f](rt)&&wt.push(et[rt]);K.splice.apply(K,wt)}for(ht=0,V=K.length;ht<V;ht++)for(et=K[ht];et.n;){if(Q){if(et.f){for(st=0,H=et.f.length;st<H;st++)if(et.f[st]==Q){et.f.splice(st,1);break}!et.f.length&&delete et.f}for(rt in et.n)if(et.n[f](rt)&&et.n[rt].f){var G=et.n[rt].f;for(st=0,H=G.length;st<H;st++)if(G[st]==Q){G.splice(st,1);break}!G.length&&delete et.n[rt].f}}else for(rt in delete et.f,et.n)et.n[f](rt)&&et.n[rt].f&&delete et.n[rt].f;et=et.n}}}else U._events=Y={n:{}}},U.once=function(B,Q){var lt=function(){return U.off(B,lt),Q.apply(this,arguments)};return U.on(B,lt)},U.version="0.5.0",U.toString=function(){return"You are running Eve 0.5.0"},a.exports?a.exports=U:(y=(function(){return U}).apply(g,[]))===void 0||(a.exports=y)},function(a,g,b){var y,k;y=[b(0)],(k=(function(h){if(!h||h.svg){var f="hasOwnProperty",$=String,L=parseFloat,Z=parseInt,Y=Math,tt=Y.max,nt=Y.abs,W=Y.pow,_t=/[, ]+/,Ft=h.eve,U="",B=" ",Q="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"},ht={};h.toString=function(){return`Your browser supports SVG.
|
|
4
|
+
You are running Raphaël `+this.version};var V=function(p,u){if(u)for(var o in typeof p=="string"&&(p=V(p)),u)u[f](o)&&(o.substring(0,6)=="xlink:"?p.setAttributeNS(Q,o.substring(6),$(u[o])):p.setAttribute(o,$(u[o])));else(p=h._g.doc.createElementNS("http://www.w3.org/2000/svg",p)).style&&(p.style.webkitTapHighlightColor="rgba(0,0,0,0)");return p},et=function(p,u){var o="linear",c=p.id+u,_=.5,E=.5,C=p.node,R=p.paper,M=C.style,N=h._g.doc.getElementById(c);if(!N){if(u=(u=$(u).replace(h._radial_gradient,function(Ct,bt,ot){if(o="radial",bt&&ot){_=L(bt);var $t=2*((E=L(ot))>.5)-1;W(_-.5,2)+W(E-.5,2)>.25&&(E=Y.sqrt(.25-W(_-.5,2))*$t+.5)&&E!=.5&&(E=E.toFixed(5)-1e-5*$t)}return U})).split(/\s*\-\s*/),o=="linear"){var X=u.shift();if(X=-L(X),isNaN(X))return null;var it=[0,0,Y.cos(h.rad(X)),Y.sin(h.rad(X))],pt=1/(tt(nt(it[2]),nt(it[3]))||1);it[2]*=pt,it[3]*=pt,it[2]<0&&(it[0]=-it[2],it[2]=0),it[3]<0&&(it[1]=-it[3],it[3]=0)}var mt=h._parseDots(u);if(!mt)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=V(o+"Gradient",{id:c}),p.gradient=N,V(N,o=="radial"?{fx:_,fy:E}:{x1:it[0],y1:it[1],x2:it[2],y2:it[3],gradientTransform:p.matrix.invert()}),R.defs.appendChild(N);for(var dt=0,kt=mt.length;dt<kt;dt++)N.appendChild(V("stop",{offset:mt[dt].offset?mt[dt].offset:dt?"100%":"0%","stop-color":mt[dt].color||"#fff","stop-opacity":isFinite(mt[dt].opacity)?mt[dt].opacity:1}))}}return V(C,{fill:rt(c),opacity:1,"fill-opacity":1}),M.fill=U,M.opacity=1,M.fillOpacity=1,1},rt=function(p){if((u=document.documentMode)&&(u===9||u===10))return"url('#"+p+"')";var u,o=document.location;return"url('"+(o.protocol+"//"+o.host+o.pathname+o.search)+"#"+p+"')"},wt=function(p){var u=p.getBBox(1);V(p.pattern,{patternTransform:p.matrix.invert()+" translate("+u.x+","+u.y+")"})},st=function(p,u,o){if(p.type=="path"){for(var c,_,E,C,R,M=$(u).toLowerCase().split("-"),N=p.paper,X=o?"end":"start",it=p.node,pt=p.attrs,mt=pt["stroke-width"],dt=M.length,kt="classic",Ct=3,bt=3,ot=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,ot+=2,E=1,C=o?4:1,R={fill:"none",stroke:pt.stroke}):(C=E=Ct/2,R={fill:pt.stroke,stroke:"none"}),p._.arrows?o?(p._.arrows.endPath&&ht[p._.arrows.endPath]--,p._.arrows.endMarker&&ht[p._.arrows.endMarker]--):(p._.arrows.startPath&&ht[p._.arrows.startPath]--,p._.arrows.startMarker&&ht[p._.arrows.startMarker]--):p._.arrows={},kt!="none"){var $t="raphael-marker-"+kt,Rt="raphael-marker-"+X+kt+Ct+bt+"-obj"+p.id;h._g.doc.getElementById($t)?ht[$t]++:(N.defs.appendChild(V(V("path"),{"stroke-linecap":"round",d:lt[kt],id:$t})),ht[$t]=1);var zt,Tt=h._g.doc.getElementById(Rt);Tt?(ht[Rt]++,zt=Tt.getElementsByTagName("use")[0]):(Tt=V(V("marker"),{id:Rt,markerHeight:bt,markerWidth:Ct,orient:"auto",refX:C,refY:bt/2}),zt=V(V("use"),{"xlink:href":"#"+$t,transform:(o?"rotate(180 "+Ct/2+" "+bt/2+") ":U)+"scale("+Ct/ot+","+bt/ot+")","stroke-width":(1/((Ct/ot+bt/ot)/2)).toFixed(4)}),Tt.appendChild(zt),N.defs.appendChild(Tt),ht[Rt]=1),V(zt,R);var te=E*(kt!="diamond"&&kt!="oval");o?(c=p._.arrows.startdx*mt||0,_=h.getTotalLength(pt.path)-te*mt):(c=te*mt,_=h.getTotalLength(pt.path)-(p._.arrows.enddx*mt||0)),(R={})["marker-"+X]="url(#"+Rt+")",(_||c)&&(R.d=h.getSubpath(pt.path,c,_)),V(it,R),p._.arrows[X+"Path"]=$t,p._.arrows[X+"Marker"]=Rt,p._.arrows[X+"dx"]=te,p._.arrows[X+"Type"]=kt,p._.arrows[X+"String"]=u}else o?(c=p._.arrows.startdx*mt||0,_=h.getTotalLength(pt.path)-c):(c=0,_=h.getTotalLength(pt.path)-(p._.arrows.enddx*mt||0)),p._.arrows[X+"Path"]&&V(it,{d:h.getSubpath(pt.path,c,_)}),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 ht)if(ht[f](R)&&!ht[R]){var Xt=h._g.doc.getElementById(R);Xt&&Xt.parentNode.removeChild(Xt)}}},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]},K=function(p,u,o){if(u=H[$(u).toLowerCase()]){for(var c=p.attrs["stroke-width"]||"1",_={round:c,square:c,butt:0}[p.attrs["stroke-linecap"]||o["stroke-linecap"]]||0,E=[],C=u.length;C--;)E[C]=u[C]*c+(C%2?1:-1)*_;V(p.node,{"stroke-dasharray":E.join(",")})}else V(p.node,{"stroke-dasharray":"none"})},G=function(p,u){var o=p.node,c=p.attrs,_=o.style.visibility;for(var E in o.style.visibility="hidden",u)if(u[f](E)){if(!h._availableAttrs[f](E))continue;var C=u[E];switch(c[E]=C,E){case"blur":p.blur(C);break;case"title":var R=o.getElementsByTagName("title");if(R.length&&(R=R[0]))R.firstChild.nodeValue=C;else{R=V("title");var M=h._g.doc.createTextNode(C);R.appendChild(M),o.appendChild(R)}break;case"href":case"target":var N=o.parentNode;if(N.tagName.toLowerCase()!="a"){var X=V("a");N.insertBefore(X,o),X.appendChild(o),N=X}E=="target"?N.setAttributeNS(Q,"show",C=="blank"?"new":C):N.setAttributeNS(Q,E,C);break;case"cursor":o.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 it=$(C).split(_t);if(it.length==4){p.clip&&p.clip.parentNode.parentNode.removeChild(p.clip.parentNode);var pt=V("clipPath"),mt=V("rect");pt.id=h.createUUID(),V(mt,{x:it[0],y:it[1],width:it[2],height:it[3]}),pt.appendChild(mt),p.paper.defs.appendChild(pt),V(o,{"clip-path":"url(#"+pt.id+")"}),p.clip=mt}if(!C){var dt=o.getAttribute("clip-path");if(dt){var kt=h._g.doc.getElementById(dt.replace(/(^url\(#|\)$)/g,U));kt&&kt.parentNode.removeChild(kt),V(o,{"clip-path":U}),delete p.clip}}break;case"path":p.type=="path"&&(V(o,{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(o.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":o.setAttribute(E,C),p.pattern&&wt(p),p._.dirty=1;break;case"height":if(o.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":o.setAttribute(E,C),p.pattern&&wt(p),p._.dirty=1;break;case"r":p.type=="rect"?V(o,{rx:C,ry:C}):o.setAttribute(E,C),p._.dirty=1;break;case"src":p.type=="image"&&o.setAttributeNS(Q,"href",C);break;case"stroke-width":p._.sx==1&&p._.sy==1||(C/=tt(nt(p._.sx),nt(p._.sy))||1),o.setAttribute(E,C),c["stroke-dasharray"]&&K(p,c["stroke-dasharray"],u),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":K(p,C,u);break;case"fill":var Ct=$(C).match(h._ISURL);if(Ct){pt=V("pattern");var bt=V("image");pt.id=h.createUUID(),V(pt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),V(bt,{x:0,y:0,"xlink:href":Ct[1]}),pt.appendChild(bt),(function(Tt){h._preload(Ct[1],function(){var te=this.offsetWidth,Xt=this.offsetHeight;V(Tt,{width:te,height:Xt}),V(bt,{width:te,height:Xt})})})(pt),p.paper.defs.appendChild(pt),V(o,{fill:"url(#"+pt.id+")"}),p.pattern=pt,p.pattern&&wt(p);break}var ot=h.getRGB(C);if(ot.error){if((p.type=="circle"||p.type=="ellipse"||$(C).charAt()!="r")&&et(p,C)){if("opacity"in c||"fill-opacity"in c){var $t=h._g.doc.getElementById(o.getAttribute("fill").replace(/^url\(#|\)$/g,U));if($t){var Rt=$t.getElementsByTagName("stop");V(Rt[Rt.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 u.gradient,delete c.gradient,!h.is(c.opacity,"undefined")&&h.is(u.opacity,"undefined")&&V(o,{opacity:c.opacity}),!h.is(c["fill-opacity"],"undefined")&&h.is(u["fill-opacity"],"undefined")&&V(o,{"fill-opacity":c["fill-opacity"]});ot[f]("opacity")&&V(o,{"fill-opacity":ot.opacity>1?ot.opacity/100:ot.opacity});case"stroke":ot=h.getRGB(C),o.setAttribute(E,ot.hex),E=="stroke"&&ot[f]("opacity")&&V(o,{"stroke-opacity":ot.opacity>1?ot.opacity/100:ot.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")&&et(p,C);break;case"opacity":c.gradient&&!c[f]("stroke-opacity")&&V(o,{"stroke-opacity":C>1?C/100:C});case"fill-opacity":if(c.gradient){($t=h._g.doc.getElementById(o.getAttribute("fill").replace(/^url\(#|\)$/g,U)))&&(Rt=$t.getElementsByTagName("stop"),V(Rt[Rt.length-1],{"stop-opacity":C}));break}default:E=="font-size"&&(C=Z(C,10)+"px");var zt=E.replace(/(\-.)/g,function(Tt){return Tt.substring(1).toUpperCase()});o.style[zt]=C,p._.dirty=1,o.setAttribute(E,C)}}at(p,u),o.style.visibility=_},at=function(p,u){if(p.type=="text"&&(u[f]("text")||u[f]("font")||u[f]("font-size")||u[f]("x")||u[f]("y"))){var o=p.attrs,c=p.node,_=c.firstChild?Z(h._g.doc.defaultView.getComputedStyle(c.firstChild,U).getPropertyValue("font-size"),10):10;if(u[f]("text")){for(o.text=u.text;c.firstChild;)c.removeChild(c.firstChild);for(var E,C=$(u.text).split(`
|
|
5
|
+
`),R=[],M=0,N=C.length;M<N;M++)E=V("tspan"),M&&V(E,{dy:1.2*_,x:o.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?V(R[M],{dy:1.2*_,x:o.x}):V(R[0],{dy:0});V(c,{x:o.x,y:o.y}),p._.dirty=1;var X=p._getBBox(),it=o.y-(X.y+X.height/2);it&&h.is(it,"finite")&&V(R[0],{dy:it})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},Mt=function(p,u){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=u,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!u.bottom&&(u.bottom=this),this.prev=u.top,u.top&&(u.top.next=this),u.top=this,this.next=null},ct=h.el;Mt.prototype=ct,ct.constructor=Mt,h._engine.path=function(p,u){var o=V("path");u.canvas&&u.canvas.appendChild(o);var c=new Mt(o,u);return c.type="path",G(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,u,o){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=L(p[1]),o=L(p[2])),p=L(p[0]),o==null&&(u=o),u==null||o==null){var c=this.getBBox(1);u=c.x+c.width/2,o=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,u,o]])),this},ct.scale=function(p,u,o,c){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=L(p[1]),o=L(p[2]),c=L(p[3])),p=L(p[0]),u==null&&(u=p),c==null&&(o=c),o==null||c==null)var _=this.getBBox(1);return o=o??_.x+_.width/2,c=c??_.y+_.height/2,this.transform(this._.transform.concat([["s",p,u,o,c]])),this},ct.translate=function(p,u){return this.removed?this:((p=$(p).split(_t)).length-1&&(u=L(p[1])),p=L(p[0])||0,u=+u||0,this.transform(this._.transform.concat([["t",p,u]])),this)},ct.transform=function(p){var u=this._;if(p==null)return u.transform;if(h._extractTransform(this,p),this.clip&&V(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&V(this.node,{transform:this.matrix}),u.sx!=1||u.sy!=1){var o=this.attrs[f]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":o})}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 u=this.paper;for(var o in u.__set__&&u.__set__.exclude(this),Ft.unbind("raphael.*.*."+this.id),this.gradient&&u.defs.removeChild(this.gradient),h._tear(this,u),p.parentNode.removeChild(p),this.removeData(),this)this[o]=typeof this[o]=="function"?h._removedFactory(o):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var u,o=!1;this.paper.canvas.parentElement?u=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(u=this.paper.canvas.parentNode.style),u&&u.display=="none"&&(o=!0,u.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||{},o&&(u.display="none")}return p&&this.hide(),c},ct.attr=function(p,u){if(this.removed)return this;if(p==null){var o={};for(var c in this.attrs)this.attrs[f](c)&&(o[c]=this.attrs[c]);return o.gradient&&o.fill=="none"&&(o.fill=o.gradient)&&delete o.gradient,o.transform=this._.transform,o}if(u==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 _=p.split(_t),E={},C=0,R=_.length;C<R;C++)(p=_[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[_[0]]}if(u==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(u!=null){var M={};M[p]=u}else p!=null&&h.is(p,"object")&&(M=p);for(var N in M)Ft("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 it in this.attrs[N]=M[N],X)X[f](it)&&(M[it]=X[it])}return G(this,M),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var u=this.paper;return u.top!=this&&h._tofront(this,u),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),u=p.parentNode;return u.insertBefore(p,u.firstChild),h._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[p.length-1].node);return o.nextSibling?o.parentNode.insertBefore(u,o.nextSibling):o.parentNode.appendChild(u),h._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[0].node);return o.parentNode.insertBefore(u,o),h._insertbefore(this,p,this.paper),this},ct.blur=function(p){var u=this;if(+p!=0){var o=V("filter"),c=V("feGaussianBlur");u.attrs.blur=p,o.id=h.createUUID(),V(c,{stdDeviation:+p||1.5}),o.appendChild(c),u.paper.defs.appendChild(o),u._blur=o,V(u.node,{filter:"url(#"+o.id+")"})}else u._blur&&(u._blur.parentNode.removeChild(u._blur),delete u._blur,delete u.attrs.blur),u.node.removeAttribute("filter");return u},h._engine.circle=function(p,u,o,c){var _=V("circle");p.canvas&&p.canvas.appendChild(_);var E=new Mt(_,p);return E.attrs={cx:u,cy:o,r:c,fill:"none",stroke:"#000"},E.type="circle",V(_,E.attrs),E},h._engine.rect=function(p,u,o,c,_,E){var C=V("rect");p.canvas&&p.canvas.appendChild(C);var R=new Mt(C,p);return R.attrs={x:u,y:o,width:c,height:_,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},R.type="rect",V(C,R.attrs),R},h._engine.ellipse=function(p,u,o,c,_){var E=V("ellipse");p.canvas&&p.canvas.appendChild(E);var C=new Mt(E,p);return C.attrs={cx:u,cy:o,rx:c,ry:_,fill:"none",stroke:"#000"},C.type="ellipse",V(E,C.attrs),C},h._engine.image=function(p,u,o,c,_,E){var C=V("image");V(C,{x:o,y:c,width:_,height:E,preserveAspectRatio:"none"}),C.setAttributeNS(Q,"href",u),p.canvas&&p.canvas.appendChild(C);var R=new Mt(C,p);return R.attrs={x:o,y:c,width:_,height:E,src:u},R.type="image",R},h._engine.text=function(p,u,o,c){var _=V("text");p.canvas&&p.canvas.appendChild(_);var E=new Mt(_,p);return E.attrs={x:u,y:o,"text-anchor":"middle",text:c,"font-family":h._availableAttrs["font-family"],"font-size":h._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",G(E,E.attrs),E},h._engine.setSize=function(p,u){return this.width=p||this.width,this.height=u||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),u=p&&p.container;if(!u)throw new Error("SVG container not found.");var o,c=p.x,_=p.y,E=p.width,C=p.height,R=V("svg"),M="overflow:hidden;";return c=c||0,_=_||0,V(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"}),u==1?(R.style.cssText=M+"position:absolute;left:"+c+"px;top:"+_+"px",h._g.doc.body.appendChild(R),o=1):(R.style.cssText=M+"position:relative",u.firstChild?u.insertBefore(R,u.firstChild):u.appendChild(R)),(u=new h._Paper).width=E,u.height=C,u.canvas=R,u.clear(),u._left=u._top=0,o&&(u.renderfix=function(){}),u.renderfix(),u},h._engine.setViewBox=function(p,u,o,c,_){Ft("raphael.setViewBox",this,this._viewBox,[p,u,o,c,_]);var E,C,R=this.getSize(),M=tt(o/R.width,c/R.height),N=this.top,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+u+B+o+B+c),V(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,u,o,c,!!_],this},h.prototype.renderfix=function(){var p,u=this.canvas,o=u.style;try{p=u.getScreenCTM()||u.createSVGMatrix()}catch{p=u.createSVGMatrix()}var c=-p.e%1,_=-p.f%1;(c||_)&&(c&&(this._left=(this._left+c)%1,o.left=this._left+"px"),_&&(this._top=(this._top+_)%1,o.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=V("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version)),p.appendChild(this.desc),p.appendChild(this.defs=V("defs"))},h.prototype.remove=function(){for(var p in Ft("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 Jt in ct)ct[f](Jt)&&!xt[f](Jt)&&(xt[Jt]=(function(p){return function(){var u=arguments;return this.forEach(function(o){o[p].apply(o,u)})}})(Jt))}}).apply(g,y))===void 0||(a.exports=k)},function(a,g,b){var y,k;y=[b(0)],(k=(function(h){if(!h||h.vml){var f="hasOwnProperty",$=String,L=parseFloat,Z=Math,Y=Z.round,tt=Z.max,nt=Z.min,W=Z.abs,_t=/[, ]+/,Ft=h.eve,U=" ",B="",Q={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ht=/ progid:\S+Blur\([^\)]+\)/g,V=/-?[^,\s-]+/g,et="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(u,o,c){var _=h.matrix();return _.rotate(-u,.5,.5),{dx:_.x(o,c),dy:_.y(o,c)}},K=function(u,o,c,_,E,C){var R=u._,M=u.matrix,N=R.fillpos,X=u.node,it=X.style,pt=1,mt="",dt=rt/o,kt=rt/c;if(it.visibility="hidden",o&&c){if(X.coordsize=W(dt)+U+W(kt),it.rotation=C*(o*c<0?-1:1),C){var Ct=H(C,_,E);_=Ct.dx,E=Ct.dy}if(o<0&&(mt+="x"),c<0&&(mt+=" y")&&(pt=-1),it.flip=mt,X.coordorigin=_*-dt+U+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+U+Ct.dy*pt),R.fillsize&&(bt.size=R.fillsize[0]*W(o)+U+R.fillsize[1]*W(c)),X.appendChild(bt)}it.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 G,at=function(u,o,c){for(var _=$(o).toLowerCase().split("-"),E=c?"end":"start",C=_.length,R="classic",M="medium",N="medium";C--;)switch(_[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":R=_[C];break;case"wide":case"narrow":N=_[C];break;case"long":case"short":M=_[C]}var X=u.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=R,X[E+"arrowlength"]=M,X[E+"arrowwidth"]=N},yt=function(u,o){u.attrs=u.attrs||{};var c=u.node,_=u.attrs,E=c.style,C=wt[u.type]&&(o.x!=_.x||o.y!=_.y||o.width!=_.width||o.height!=_.height||o.cx!=_.cx||o.cy!=_.cy||o.rx!=_.rx||o.ry!=_.ry||o.r!=_.r),R=st[u.type]&&(_.cx!=o.cx||_.cy!=o.cy||_.r!=o.r||_.rx!=o.rx||_.ry!=o.ry),M=u;for(var N in o)o[f](N)&&(_[N]=o[N]);if(C&&(_.path=h._getPath[u.type](u),u._.dirty=1),o.href&&(c.href=o.href),o.title&&(c.title=o.title),o.target&&(c.target=o.target),o.cursor&&(E.cursor=o.cursor),"blur"in o&&u.blur(o.blur),(o.path&&u.type=="path"||C)&&(c.path=(function(Ot){var Ne=/[ahqstv]/gi,ii=h._pathToAbsolute;if($(Ot).match(Ne)&&(ii=h._path2curve),Ne=/[clmz]/g,ii==h._pathToAbsolute&&!$(Ot).match(Ne)){var oe=$(Ot).replace(lt,function(Ir,si,oi){var Re=[],Ki=si.toLowerCase()=="m",qe=Q[si];return oi.replace(V,function(Qi){Ki&&Re.length==2&&(qe+=Re+Q[si=="m"?"l":"L"],Re=[]),Re.push(Y(Qi*rt))}),qe+Re});return oe}var ni,he,Ei=ii(Ot);oe=[];for(var ri=0,Ci=Ei.length;ri<Ci;ri++){ni=Ei[ri],(he=Ei[ri][0].toLowerCase())=="z"&&(he="x");for(var Le=1,Ht=ni.length;Le<Ht;Le++)he+=Y(ni[Le]*rt)+(Le!=Ht-1?",":B);oe.push(he)}return oe.join(U)})(~$(_.path).toLowerCase().indexOf("r")?h._pathToAbsolute(_.path):_.path),u._.dirty=1,u.type=="image"&&(u._.fillpos=[_.x,_.y],u._.fillsize=[_.width,_.height],K(u,1,1,0,0,0))),"transform"in o&&u.transform(o.transform),R){var X=+_.cx,it=+_.cy,pt=+_.rx||+_.r||0,mt=+_.ry||+_.r||0;c.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",Y((X-pt)*rt),Y((it-mt)*rt),Y((X+pt)*rt),Y((it+mt)*rt),Y(X*rt)),u._.dirty=1}if("clip-rect"in o){var dt=$(o["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=u.paper.width+"px",Ct.height=u.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}o["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(u.textpath){var bt=u.textpath.style;o.font&&(bt.font=o.font),o["font-family"]&&(bt.fontFamily='"'+o["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,B)+'"'),o["font-size"]&&(bt.fontSize=o["font-size"]),o["font-weight"]&&(bt.fontWeight=o["font-weight"]),o["font-style"]&&(bt.fontStyle=o["font-style"])}if("arrow-start"in o&&at(M,o["arrow-start"]),"arrow-end"in o&&at(M,o["arrow-end"],1),o.opacity!=null||o.fill!=null||o.src!=null||o.stroke!=null||o["stroke-width"]!=null||o["stroke-opacity"]!=null||o["fill-opacity"]!=null||o["stroke-dasharray"]!=null||o["stroke-miterlimit"]!=null||o["stroke-linejoin"]!=null||o["stroke-linecap"]!=null){var ot=c.getElementsByTagName("fill");if(!(ot=ot&&ot[0])&&(ot=G("fill")),u.type=="image"&&o.src&&(ot.src=o.src),o.fill&&(ot.on=!0),ot.on!=null&&o.fill!="none"&&o.fill!==null||(ot.on=!1),ot.on&&o.fill){var $t=$(o.fill).match(h._ISURL);if($t){ot.parentNode==c&&c.removeChild(ot),ot.rotate=!0,ot.src=$t[1],ot.type="tile";var Rt=u.getBBox(1);ot.position=Rt.x+U+Rt.y,u._.fillpos=[Rt.x,Rt.y],h._preload($t[1],function(){u._.fillsize=[this.offsetWidth,this.offsetHeight]})}else ot.color=h.getRGB(o.fill).hex,ot.src=B,ot.type="solid",h.getRGB(o.fill).error&&(M.type in{circle:1,ellipse:1}||$(o.fill).charAt()!="r")&&Mt(M,o.fill,ot)&&(_.fill="none",_.gradient=o.fill,ot.rotate=!1)}if("fill-opacity"in o||"opacity"in o){var zt=((+_["fill-opacity"]+1||2)-1)*((+_.opacity+1||2)-1)*((+h.getRGB(o.fill).o+1||2)-1);zt=nt(tt(zt,0),1),ot.opacity=zt,ot.src&&(ot.color="none")}c.appendChild(ot);var Tt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],te=!1;!Tt&&(te=Tt=G("stroke")),(o.stroke&&o.stroke!="none"||o["stroke-width"]||o["stroke-opacity"]!=null||o["stroke-dasharray"]||o["stroke-miterlimit"]||o["stroke-linejoin"]||o["stroke-linecap"])&&(Tt.on=!0),(o.stroke=="none"||o.stroke===null||Tt.on==null||o.stroke==0||o["stroke-width"]==0)&&(Tt.on=!1);var Xt=h.getRGB(o.stroke);Tt.on&&o.stroke&&(Tt.color=Xt.hex),zt=((+_["stroke-opacity"]+1||2)-1)*((+_.opacity+1||2)-1)*((+Xt.o+1||2)-1);var Ae=.75*(L(o["stroke-width"])||1);if(zt=nt(tt(zt,0),1),o["stroke-width"]==null&&(Ae=_["stroke-width"]),o["stroke-width"]&&(Tt.weight=Ae),Ae&&Ae<1&&(zt*=Ae)&&(Tt.weight=1),Tt.opacity=zt,o["stroke-linejoin"]&&(Tt.joinstyle=o["stroke-linejoin"]||"miter"),Tt.miterlimit=o["stroke-miterlimit"]||8,o["stroke-linecap"]&&(Tt.endcap=o["stroke-linecap"]=="butt"?"flat":o["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in o){var wi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Tt.dashstyle=wi[f](o["stroke-dasharray"])?wi[o["stroke-dasharray"]]:B}te&&c.appendChild(Tt)}if(M.type=="text"){M.paper.canvas.style.display=B;var Te=M.paper.span,Je=_.font&&_.font.match(/\d+(?:\.\d*)?(?=px)/);E=Te.style,_.font&&(E.font=_.font),_["font-family"]&&(E.fontFamily=_["font-family"]),_["font-weight"]&&(E.fontWeight=_["font-weight"]),_["font-style"]&&(E.fontStyle=_["font-style"]),Je=L(_["font-size"]||Je&&Je[0])||10,E.fontSize=100*Je+"px",M.textpath.string&&(Te.innerHTML=$(M.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var ti=Te.getBoundingClientRect();M.W=_.w=(ti.right-ti.left)/100,M.H=_.h=(ti.bottom-ti.top)/100,M.X=_.x,M.Y=_.y+M.H/2,("x"in o||"y"in o)&&(M.path.v=h.format("m{0},{1}l{2},{1}",Y(_.x*rt),Y(_.y*rt),Y(_.x*rt)+1));for(var ki=["x","y","text","font","font-family","font-weight","font-style","font-size"],ei=0,Zi=ki.length;ei<Zi;ei++)if(ki[ei]in o){M._.dirty=1;break}switch(_["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}},Mt=function(u,o,c){u.attrs=u.attrs||{},u.attrs;var _=Math.pow,E="linear",C=".5 .5";if(u.attrs.gradient=o,o=(o=$(o).replace(h._radial_gradient,function(pt,mt,dt){return E="radial",mt&&dt&&(mt=L(mt),dt=L(dt),_(mt-.5,2)+_(dt-.5,2)>.25&&(dt=Z.sqrt(.25-_(mt-.5,2))*(2*(dt>.5)-1)+.5),C=mt+U+dt),B})).split(/\s*\-\s*/),E=="linear"){var R=o.shift();if(R=-L(R),isNaN(R))return null}var M=h._parseDots(o);if(!M)return null;if(u=u.shape||u.node,M.length){u.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,it=M.length;X<it;X++)M[X].offset&&N.push(M[X].offset+U+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),u.appendChild(c)}return 1},ct=function(u,o){this[0]=this.node=u,u.raphael=!0,this.id=h._oid++,u.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=o,this.matrix=h.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!o.bottom&&(o.bottom=this),this.prev=o.top,o.top&&(o.top.next=this),o.top=this,this.next=null},xt=h.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(u){if(u==null)return this._.transform;var o,c=this.paper._viewBoxShift,_=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:B;c&&(o=u=$(u).replace(/\.{3}|\u2026/g,this._.transform||B)),h._extractTransform(this,_+u);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 it=this.getBBox(),pt=this.getBBox(1),mt=it.x-pt.x,dt=it.y-pt.y;M.coordorigin=mt*-rt+U+dt*-rt,K(this,1,1,mt,dt,0)}else M.style.filter=B,K(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else M.style.filter=B,R.matrix=$(C),R.offset=C.offset();return o!==null&&(this._.transform=o,h._extractTransform(this,o)),this},xt.rotate=function(u,o,c){if(this.removed)return this;if(u!=null){if((u=$(u).split(_t)).length-1&&(o=L(u[1]),c=L(u[2])),u=L(u[0]),c==null&&(o=c),o==null||c==null){var _=this.getBBox(1);o=_.x+_.width/2,c=_.y+_.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",u,o,c]])),this}},xt.translate=function(u,o){return this.removed?this:((u=$(u).split(_t)).length-1&&(o=L(u[1])),u=L(u[0])||0,o=+o||0,this._.bbox&&(this._.bbox.x+=u,this._.bbox.y+=o),this.transform(this._.transform.concat([["t",u,o]])),this)},xt.scale=function(u,o,c,_){if(this.removed)return this;if((u=$(u).split(_t)).length-1&&(o=L(u[1]),c=L(u[2]),_=L(u[3]),isNaN(c)&&(c=null),isNaN(_)&&(_=null)),u=L(u[0]),o==null&&(o=u),_==null&&(c=_),c==null||_==null)var E=this.getBBox(1);return c=c??E.x+E.width/2,_=_??E.y+E.height/2,this.transform(this._.transform.concat([["s",u,o,c,_]])),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 u=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var o={},c=1/this.paper._viewBoxShift.scale;return o.x=u.x-this.paper._viewBoxShift.dx,o.x*=c,o.y=u.y-this.paper._viewBoxShift.dy,o.y*=c,o.width=u.width*c,o.height=u.height*c,o.x2=o.x+o.width,o.y2=o.y+o.height,o}return u},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 u 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[u]=typeof this[u]=="function"?h._removedFactory(u):null;this.removed=!0}},xt.attr=function(u,o){if(this.removed)return this;if(u==null){var c={};for(var _ in this.attrs)this.attrs[f](_)&&(c[_]=this.attrs[_]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(o==null&&h.is(u,"string")){if(u=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=u.split(_t),C={},R=0,M=E.length;R<M;R++)(u=E[R])in this.attrs?C[u]=this.attrs[u]:h.is(this.paper.customAttributes[u],"function")?C[u]=this.paper.customAttributes[u].def:C[u]=h._availableAttrs[u];return M-1?C:C[E[0]]}if(this.attrs&&o==null&&h.is(u,"array")){for(C={},R=0,M=u.length;R<M;R++)C[u[R]]=this.attr(u[R]);return C}var N;for(var X in o!=null&&((N={})[u]=o),o==null&&h.is(u,"object")&&(N=u),N)Ft("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 it=this.paper.customAttributes[X].apply(this,[].concat(N[X]));for(var pt in this.attrs[X]=N[X],it)it[f](pt)&&(N[pt]=it[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(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[u.length-1]),u.node.nextSibling?u.node.parentNode.insertBefore(this.node,u.node.nextSibling):u.node.parentNode.appendChild(this.node),h._insertafter(this,u,this.paper),this)},xt.insertBefore=function(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[0]),u.node.parentNode.insertBefore(this.node,u.node),h._insertbefore(this,u,this.paper),this)},xt.blur=function(u){var o=this.node.runtimeStyle,c=o.filter;return c=c.replace(ht,B),+u!=0?(this.attrs.blur=u,o.filter=c+U+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+u||1.5)+")",o.margin=h.format("-{0}px 0 0 -{0}px",Y(+u||1.5))):(o.filter=c,o.margin=0,delete this.attrs.blur),this},h._engine.path=function(u,o){var c=G("shape");c.style.cssText=et,c.coordsize=rt+U+rt,c.coordorigin=o.coordorigin;var _=new ct(c,o),E={fill:"none",stroke:"#000"};u&&(E.path=u),_.type="path",_.path=[],_.Path=B,yt(_,E),o.canvas&&o.canvas.appendChild(c);var C=G("skew");return C.on=!0,c.appendChild(C),_.skew=C,_.transform(B),_},h._engine.rect=function(u,o,c,_,E,C){var R=h._rectPath(o,c,_,E,C),M=u.path(R),N=M.attrs;return M.X=N.x=o,M.Y=N.y=c,M.W=N.width=_,M.H=N.height=E,N.r=C,N.path=R,M.type="rect",M},h._engine.ellipse=function(u,o,c,_,E){var C=u.path();return C.attrs,C.X=o-_,C.Y=c-E,C.W=2*_,C.H=2*E,C.type="ellipse",yt(C,{cx:o,cy:c,rx:_,ry:E}),C},h._engine.circle=function(u,o,c,_){var E=u.path();return E.attrs,E.X=o-_,E.Y=c-_,E.W=E.H=2*_,E.type="circle",yt(E,{cx:o,cy:c,r:_}),E},h._engine.image=function(u,o,c,_,E,C){var R=h._rectPath(c,_,E,C),M=u.path(R).attr({stroke:"none"}),N=M.attrs,X=M.node,it=X.getElementsByTagName("fill")[0];return N.src=o,M.X=N.x=c,M.Y=N.y=_,M.W=N.width=E,M.H=N.height=C,N.path=R,M.type="image",it.parentNode==X&&X.removeChild(it),it.rotate=!0,it.src=o,it.type="tile",M._.fillpos=[c,_],M._.fillsize=[E,C],X.appendChild(it),K(M,1,1,0,0,0),M},h._engine.text=function(u,o,c,_){var E=G("shape"),C=G("path"),R=G("textpath");o=o||0,c=c||0,_=_||"",C.v=h.format("m{0},{1}l{2},{1}",Y(o*rt),Y(c*rt),Y(o*rt)+1),C.textpathok=!0,R.string=$(_),R.on=!0,E.style.cssText=et,E.coordsize=rt+U+rt,E.coordorigin="0 0";var M=new ct(E,u),N={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:_};M.shape=E,M.path=C,M.textpath=R,M.type="text",M.attrs.text=$(_),M.attrs.x=o,M.attrs.y=c,M.attrs.w=1,M.attrs.h=1,yt(M,N),E.appendChild(R),E.appendChild(C),u.canvas.appendChild(E);var X=G("skew");return X.on=!0,E.appendChild(X),M.skew=X,M.transform(B),M},h._engine.setSize=function(u,o){var c=this.canvas.style;return this.width=u,this.height=o,u==+u&&(u+="px"),o==+o&&(o+="px"),c.width=u,c.height=o,c.clip="rect(0 "+u+" "+o+" 0)",this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox),this},h._engine.setViewBox=function(u,o,c,_,E){h.eve("raphael.setViewBox",this,this._viewBox,[u,o,c,_,E]);var C,R,M=this.getSize(),N=M.width,X=M.height;return E&&(c*(C=X/_)<N&&(u-=(N-c*C)/2/C),_*(R=N/c)<X&&(o-=(X-_*R)/2/R)),this._viewBox=[u,o,c,_,!!E],this._viewBoxShift={dx:-u,dy:-o,scale:M},this.forEach(function(it){it.transform("...")}),this},h._engine.initWin=function(u){var o=u.document;o.styleSheets.length<31?o.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):o.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!o.namespaces.rvml&&o.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),G=function(c){return o.createElement("<rvml:"+c+' class="rvml">')}}catch{G=function(_){return o.createElement("<"+_+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},h._engine.initWin(h._g.win),h._engine.create=function(){var u=h._getContainer.apply(0,arguments),o=u.container,c=u.height,_=u.width,E=u.x,C=u.y;if(!o)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,_=_||512,c=c||342,R.width=_,R.height=c,_==+_&&(_+="px"),c==+c&&(c+="px"),R.coordsize=216e5+U+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",_,c),o==1?(h._g.doc.body.appendChild(M),N.left=E+"px",N.top=C+"px",N.position="absolute"):o.firstChild?o.insertBefore(M,o.firstChild):o.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 u in h.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[u]=typeof this[u]=="function"?h._removedFactory(u):null;return!0};var Jt=h.st;for(var p in xt)xt[f](p)&&!Jt[f](p)&&(Jt[p]=(function(u){return function(){var o=arguments;return this.forEach(function(c){c[u].apply(c,o)})}})(p))}}).apply(g,y))===void 0||(a.exports=k)}])})})(xn)),xn.exports}var wo=bo();const Wi=_o(wo);class ko{constructor(i){if(pe(i))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=i.element;const a=this.node.dataset?this.node.dataset:{};(pe(i.defaults)?!1:i.defaults)!==!1&&(i=Eo({}),delete i.defaults),this.config={element:i.element,classId:Co(),value:ft("value",i,a,0,"float"),defaults:ft("defaults",i,a,0,!1),parentNode:ft("parentNode",i,a,null),width:ft("width",i,a,null),height:ft("height",i,a,null),valueFontColor:ft("valueFontColor",i,a,"#010101"),valueFontFamily:ft("valueFontFamily",i,a,"Arial"),symbol:ft("symbol",i,a,""),min:ft("min",i,a,0,"float"),minTxt:ft("minTxt",i,a,!1),max:ft("max",i,a,100,"float"),maxTxt:ft("maxTxt",i,a,!1),reverse:ft("reverse",i,a,!1),humanFriendlyDecimal:ft("humanFriendlyDecimal",i,a,0),textRenderer:ft("textRenderer",i,a,null),onAnimationEnd:ft("onAnimationEnd",i,a,null),gaugeWidthScale:ft("gaugeWidthScale",i,a,1),gaugeColor:ft("gaugeColor",i,a,"#edebeb"),label:ft("label",i,a,""),labelFontColor:ft("labelFontColor",i,a,"#b3b3b3"),labelFontFamily:ft("labelFontFamily",i,a,"Arial"),shadowOpacity:ft("shadowOpacity",i,a,.2),shadowSize:ft("shadowSize",i,a,5),shadowVerticalOffset:ft("shadowVerticalOffset",i,a,3),levelColors:ft("levelColors",i,a,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ft("startAnimationTime",i,a,700),startAnimationType:ft("startAnimationType",i,a,">"),refreshAnimationTime:ft("refreshAnimationTime",i,a,700),refreshAnimationType:ft("refreshAnimationType",i,a,">"),donutStartAngle:ft("donutStartAngle",i,a,90),valueMinFontSize:ft("valueMinFontSize",i,a,16),labelMinFontSize:ft("labelMinFontSize",i,a,10),minLabelMinFontSize:ft("minLabelMinFontSize",i,a,10),maxLabelMinFontSize:ft("maxLabelMinFontSize",i,a,10),hideValue:ft("hideValue",i,a,!1),hideMinMax:ft("hideMinMax",i,a,!1),showInnerShadow:ft("showInnerShadow",i,a,!1),humanFriendly:ft("humanFriendly",i,a,!1),noGradient:ft("noGradient",i,a,!1),donut:ft("donut",i,a,!1),relativeGaugeSize:ft("relativeGaugeSize",i,a,!1),counter:ft("counter",i,a,!1),decimals:ft("decimals",i,a,0),customSectors:ft("customSectors",i,a,{}),formatNumber:ft("formatNumber",i,a,!1),pointer:ft("pointer",i,a,!1),pointerOptions:ft("pointerOptions",i,a,{}),displayRemaining:ft("displayRemaining",i,a,!1)};let b,y,k,h,f,$,L,Z,Y,tt,nt,W,_t,Ft,U,B,Q,lt,ht;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=ft("value",i,a,-1,"float"),this.canvas=Wi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),b=200,y=200):(this.canvas.setViewBox(0,0,200,100,!0),b=200,y=100):this.config.width!==null&&this.config.height!==null?(b=this.config.width,y=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),b=200,y=100):(b=Number(Br(this.config.element,"width").slice(0,-2))*1,y=Number(Br(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(b>y?(h=y,k=h):(b<y,k=b,h=k),$=(b-k)/2,L=(y-h)/2,Z=h/6.4>16?h/5.4:18,Y=$+k/2,this.config.label!==""?tt=L+h/1.85:tt=L+h/1.7,nt=h/16>10?h/16:10,W=$+k/2,_t=tt+nt,Ft=h/16>10?h/16:10,U=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>10?h/16:10,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t):(b>y?(h=y,k=h*2,k>b&&(f=k/b,k=k/f,h=h/f)):b<y?(k=b,h=k/2):(k=b,h=k*.5),$=(b-k)/2,L=(y-h)/2,Z=h/6.5>this.config.valueMinFontSize?h/6.5:this.config.valueMinFontSize,Y=$+k/2,tt=L+h/1.275,nt=h/16>this.config.labelMinFontSize?h/16:this.config.labelMinFontSize,W=$+k/2,_t=tt+Z/2+5,Ft=h/16>this.config.minLabelMinFontSize?h/16:this.config.minLabelMinFontSize,U=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>this.config.maxLabelMinFontSize?h/16:this.config.maxLabelMinFontSize,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t),this.params={canvasW:b,canvasH:y,widgetW:k,widgetH:h,dx:$,dy:L,valueFontSize:Z,valueX:Y,valueY:tt,labelFontSize:nt,labelX:W,labelY:_t,minFontSize:Ft,minX:U,minY:B,maxFontSize:Q,maxX:lt,maxY:ht},this.canvas.customAttributes.pki=H=>{let K=this.config.min,G=this.config.max;const at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Jt=this.config.donut;let p,u,o,c,_,E,C,R,M,N;return K<0&&(G-=K,H-=K,K=0),Jt?(p=(1-2*(H-K)/(G-K))*Math.PI,u=at/2-at/30,o=u-at/6.666666666666667*xt,c=at/2+Mt,_=yt/2+ct,E=c+u*Math.cos(p),C=_-u*Math.sin(p),R=c+o*Math.cos(p),M=_-o*Math.sin(p),N="M"+(c-o)+","+_+" ",N+="L"+(c-u)+","+_+" ",H-K>(G-K)/2&&(N+="A"+u+","+u+" 0 0 1 "+(c+u)+","+_+" "),N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",H-K>(G-K)/2&&(N+="A"+o+","+o+" 0 0 0 "+(c+o)+","+_+" "),N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+_+" ",N+="Z ",{path:N}):(p=(1-(H-K)/(G-K))*Math.PI,u=at/2-at/10,o=u-at/6.666666666666667*xt,c=at/2+Mt,_=yt/1.25+ct,E=c+u*Math.cos(p),C=_-u*Math.sin(p),R=c+o*Math.cos(p),M=_-o*Math.sin(p),N="M"+(c-o)+","+_+" ",N+="L"+(c-u)+","+_+" ",N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+_+" ",N+="Z ",{path:N})},this.canvas.customAttributes.ndl=function(H){const K=this.config.min,G=this.config.max,at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Jt=this.config.donut;let p=at*3.5/100,u=at/15,o=at/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&&(u=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(o=this.config.pointerOptions.bottomwidth);let c,_,E,C,R,M,N,X,it,pt,mt,dt,kt,Ct,bt,ot,$t;return Jt?(c=(1-2*(H-K)/(G-K))*Math.PI,_=at/2-at/30,E=_-at/6.666666666666667*xt,C=yt/2+ct,R=at/2+Mt+_*Math.cos(c),M=yt-(yt-C)-_*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=R+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t}):(c=(1-(H-K)/(G-K))*Math.PI,_=at/2-at/10,E=_-at/6.666666666666667*xt,C=yt/1.25+ct,R=at/2+Mt+_*Math.cos(c),M=yt-(yt-C)-_*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=R+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t})},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:Rr(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:pe(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":pe(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":pe(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:pe(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"}),Qt(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"}),Qt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let V=this.config.min;this.config.reverse&&(V=this.config.max),this.txtMinimum=V,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=je(V,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Ye(V)),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"}),Qt(this.txtMin,this.params.minFontSize,this.params.minY);let et=this.config.max;this.config.reverse&&(et=this.config.min),this.txtMaximum=et,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=je(et,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Ye(et)),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"}),Qt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],wt="http://www.w3.org/2000/svg";if(bi!==void 0&&bi<9||(bi!==void 0?Or(()=>{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=je(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=Ye(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 G=this.level.attr("pki")[0];this.config.reverse&&(G=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(G))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(G))):this.config.humanFriendly?this.txtValue.attr("text",je(Math.floor(G),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",Ye(Math.floor(G))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-G)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(G*1).toFixed(this.config.decimals)+this.config.symbol),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY),G=null},K=()=>{this.txtValue.attr({text:this.originalValue}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",K),this.bindEvent("raphael.anim.frame",H)}else{const H=()=>{this.txtValue.attr({text:this.originalValue}),Qt(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(i,a){i+="."+this.level.id,this.events[i]&&Wi.eve.off(i,this.events[i]),Wi.eve.on(i,a),this.events[i]=a}refresh(i,a,g,b){let y;a=Pr(a)?a:null,g=Pr(g)?g:null,b=b||null,b!==null&&(this.config.label=b,this.txtLabel.attr({text:this.config.label}),Qt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),g!==null&&(this.config.min=g,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=je(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Ye(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Qt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Qt(this.txtMin,this.params.minFontSize,this.params.minY))),a!==null&&(this.config.max=a,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=je(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Ye(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Qt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Qt(this.txtMax,this.params.maxFontSize,this.params.maxY))),y=i,i*1>this.config.max*1&&(i=this.config.max*1),i*1<this.config.min*1&&(i=this.config.min*1);const k=Rr(i,(i-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(y)!==!1?y=this.config.textRenderer(y):this.config.humanFriendly?y=je(y,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?y=Ye((y*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?y=((this.config.max-y)*1).toFixed(this.config.decimals)+this.config.symbol:y=(y*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=y,this.config.value=i*1,this.config.counter||(this.txtValue.attr({text:y}),Qt(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(i,a){const g=this;if(i instanceof Object)for(const b in i)a=i[b],Lr(g,b,a);else Lr(g,i,a)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const i in this.events)Wi.eve.off(i,this.events[i]);this.events={}}generateShadow(i,a){const g="inner-shadow-"+(this.config.element.id||this.config.classId),b=document.createElementNS(i,"filter");b.setAttribute("id",g),a.appendChild(b);const y=document.createElementNS(i,"feOffset");y.setAttribute("dx","0"),y.setAttribute("dy",this.config.shadowVerticalOffset),b.appendChild(y);const k=document.createElementNS(i,"feGaussianBlur");k.setAttribute("result","offset-blur"),k.setAttribute("stdDeviation",this.config.shadowSize),b.appendChild(k);const h=document.createElementNS(i,"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(i,"feFlood");f.setAttribute("flood-color","black"),f.setAttribute("flood-opacity",this.config.shadowOpacity),f.setAttribute("result","color"),b.appendChild(f);const $=document.createElementNS(i,"feComposite");$.setAttribute("operator","in"),$.setAttribute("in","color"),$.setAttribute("in2","inverse"),$.setAttribute("result","shadow"),b.appendChild($);const L=document.createElementNS(i,"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(#"+g+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+g+")"))}}function Lr(r,i,a){switch(i){case"valueFontColor":if(!zr(a)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}r.txtValue.attr({fill:a});break;case"labelFontColor":if(!zr(a)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}r.txtMin.attr({fill:a}),r.txtMax.attr({fill:a}),r.txtLabel.attr({fill:a});break;default:console.log(`* justgage: "${i}" is not a supported update setting`)}}function ft(r,i,a,g,b,y){let k=g,h=!1;if(!pe(r)&&(!pe(a)&&typeof a=="object"&&r in a?(k=a[r],h=!0):!pe(i)&&typeof i=="object"&&r in i?(k=i[r],h=!0):k=g,h===!0&&!pe(b)))switch(b){case"int":k=parseInt(k,10);break;case"float":k=parseFloat(k);break}return k}function pe(r){return r==null}function Rr(r,i,a,g,b){let y,k,h,f,$,L,Z,Y,tt,nt,W;const _t=b&&b.ranges&&b.ranges.length>0;if(g=g||_t,_t){b.percents===!0&&(r=i*100);for(let Q=0;Q<b.ranges.length;Q++)if(r>=b.ranges[Q].lo&&r<=b.ranges[Q].hi)return b.ranges[Q].color}const Ft=a.length;if(Ft===1)return a[0];const U=g?1/Ft:1/(Ft-1),B=[];for(let Q=0;Q<a.length;Q++)y=g?U*(Q+1):U*Q,k=parseInt(yn(a[Q]).substring(0,2),16),h=parseInt(yn(a[Q]).substring(2,4),16),f=parseInt(yn(a[Q]).substring(4,6),16),B[Q]={pct:y,color:{r:k,g:h,b:f}};if(i===0)return"rgb("+[B[0].color.r,B[0].color.g,B[0].color.b].join(",")+")";for(let Q=0;Q<B.length;Q++)if(i<=B[Q].pct)return g?"rgb("+[B[Q].color.r,B[Q].color.g,B[Q].color.b].join(",")+")":($=B[Q-1],L=B[Q],Z=L.pct-$.pct,Y=(i-$.pct)/Z,tt=1-Y,nt=Y,W={r:Math.floor($.color.r*tt+L.color.r*nt),g:Math.floor($.color.g*tt+L.color.g*nt),b:Math.floor($.color.b*tt+L.color.b*nt)},"rgb("+[W.r,W.g,W.b].join(",")+")")}function Qt(r,i,a){(!bi||bi>9)&&r.node.firstChild.attributes.dy&&(r.node.firstChild.attributes.dy.value=0)}function yn(r){return r.charAt(0)==="#"?r.substring(1,7):r}function zr(r){return typeof r=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(r)}function je(r,i){const a=Math.pow(10,i),g=" KMGTPE";let b=0;const y=1e3;for(;(r>=y||r<=-y)&&++b<g.length;)r=r/y;return b=b>=g.length?g.length-1:b,Math.round(r*a)/a+g[b]}function Ye(r){const i=r.toString().split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Br(r,i){let a="";return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(r,"").getPropertyValue(i):r.currentStyle&&(i=i.replace(/-(\w)/g,function(g,b){return b.toUpperCase()}),a=r.currentStyle[i]),a}function Or(r){document.createElementNS!==void 0?r():setTimeout(function(){Or(r)},100)}const bi=(function(){let r=3;const i=document.createElement("div"),a=i.getElementsByTagName("i");for(;a[0];)i.innerHTML="<!--[if gt IE "+ ++r+"]><i></i><![endif]-->";return r>4?r:void 0})();function Eo(r){r=r||{};for(let i=1;i<arguments.length;i++)if(arguments[i])for(const a in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],a)&&(r[a]=arguments[i][a]);return r}function Pr(r){return r!=null&&!isNaN(r)}function Co(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const i=Math.random()*16|0;return(r==="x"?i:i&3|8).toString(16)})}var Mo=ao('<div part="gauge" style="width:100%" id="gauge"></div>');const $o={hash:"svelte-1ozhsul",code:""};function Vr(r,i){jn(i,!0),po(r,$o);let a=ce(void 0),g=ce(void 0),b=Ar(i,"id",7,""),y=Ar(i,"options");lr(()=>{y()&&typeof y()=="string"&&(y(JSON.parse(y())),Lt(a)&&Lt(g)&&k())});function k(){if(!Lt(a))return console.error("cannot recreateGauge gauge");Lt(g)&&Lt(g).destroy(),Zt(g,void 0),h()}function h(){if(!y()||!Lt(a))return console.error("cannot create gauge");if(Lt(g))console.error("cannot create html gauge");else{const Z=Object.assign({element:Lt(a)},y());Zt(g,new ko(Z),!0)}}Fr(()=>{Zt(a,i.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Lt(a)),h()}),co(()=>{Lt(g)&&Lt(g).destroy(),Zt(g,void 0)});var f={get id(){return b()},set id(Z=""){b(Z),un()},get options(){return y()},set options(Z){y(Z),un()}},$=Mo(),L=Ps(()=>yo(k,200));return so("resize",cn,function(...Z){Lt(L)?.apply(this,Z)}),Mr(r,$),Yn(f)}customElements.define("hb-gauge",xo(Vr,{id:{},options:{}},[],[],!0)),Sn.Component=Vr,Object.defineProperty(Sn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
|
|
7
7
|
//# sourceMappingURL=main.iife.js.map
|