diff --git a/client/_number_.748add60.js b/client/_number_.748add60.js index b7b33af0..b82f4ffd 100644 --- a/client/_number_.748add60.js +++ b/client/_number_.748add60.js @@ -12,7 +12,7 @@ function st(){}const nt=function(){let t=0;return function(){return t++}}();func * (c) 2022 Jukka Kurkela * Released under the MIT License */ -function fe(t){return t+.5|0}const ge=(t,e,i)=>Math.max(Math.min(t,i),e);function pe(t){return ge(fe(2.55*t),0,255)}function me(t){return ge(fe(255*t),0,255)}function be(t){return ge(fe(t/2.55)/100,0,1)}function xe(t){return ge(fe(100*t),0,100)}const _e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ye=[..."0123456789ABCDEF"],ve=t=>ye[15&t],we=t=>ye[(240&t)>>4]+ye[15&t],Me=t=>(240&t)>>4==(15&t);function ke(t){var e=(t=>Me(t.r)&&Me(t.g)&&Me(t.b)&&Me(t.a))(t)?ve:we;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Se=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function De(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Pe(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Oe(t,e,i){const s=De(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Ce(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e>16&255,o>>8&255,255&o]}return t}(),ze.transparent=[0,0,0,0]);const e=ze[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const $e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ve=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Be=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ne(t,e,i){if(t){let s=Ce(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Te(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function We(t,e){return t?Object.assign(e||{},t):t}function He(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=me(t[3]))):(e=We(t,{r:0,g:0,b:0,a:1})).a=me(e.a),e}function je(t){return"r"===t.charAt(0)?function(t){const e=$e.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?pe(t):ge(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?pe(i):ge(i,0,255)),s=255&(e[4]?pe(s):ge(s,0,255)),n=255&(e[6]?pe(n):ge(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):Le(t)}class Ye{constructor(t){if(t instanceof Ye)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=He(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*_e[s[1]],g:255&17*_e[s[2]],b:255&17*_e[s[3]],a:5===o?17*_e[s[4]]:255}:7!==o&&9!==o||(n={r:_e[s[1]]<<4|_e[s[2]],g:_e[s[3]]<<4|_e[s[4]],b:_e[s[5]]<<4|_e[s[6]],a:9===o?_e[s[7]]<<4|_e[s[8]]:255})),i=n||Fe(t)||je(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=We(this._rgb);return t&&(t.a=be(t.a)),t}set rgb(t){this._rgb=He(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${be(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?ke(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Ce(t),i=e[0],s=xe(e[1]),n=xe(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${be(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Be(be(t.r)),n=Be(be(t.g)),o=Be(be(t.b));return{r:me(Ve(s+i*(Be(be(e.r))-s))),g:me(Ve(n+i*(Be(be(e.g))-n))),b:me(Ve(o+i*(Be(be(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ye(this.rgb)}alpha(t){return this._rgb.a=me(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=fe(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ne(this._rgb,2,t),this}darken(t){return Ne(this._rgb,2,-t),this}saturate(t){return Ne(this._rgb,1,t),this}desaturate(t){return Ne(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Ce(t);i[0]=Ee(i[0]+e),i=Te(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Ue(t){return new Ye(t)}function Xe(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function qe(t){return Xe(t)?t:Ue(t)}function Ke(t){return Xe(t)?t:Ue(t).saturate(.5).darken(.1).hexString()}const Ge=Object.create(null),Ze=Object.create(null);function Je(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ke(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ke(e.borderColor),this.hoverColor=(t,e)=>Ke(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Qe(this,t,e)}get(t){return Je(this,t)}describe(t,e){return Qe(Ze,t,e)}override(t,e){return Qe(Ge,t,e)}route(t,e,i,s){const n=Je(this,t),o=Je(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[s];return rt(t)?Object.assign({},e,t):ct(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ei(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function ii(t,e,i,s){let n=(s=s||{}).data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},o=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const r=i.length;let l,h,c,d,u;for(l=0;li.length){for(l=0;l0&&t.stroke()}}function ri(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==o.strokeColor;let l,h;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);ot(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l+t||0;function _i(t,e){const i={},s=rt(e),n=s?Object.keys(e):e,o=rt(t)?s?i=>ct(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=xi(o(t));return i}function yi(t){return _i(t,{top:"y",right:"x",bottom:"y",left:"x"})}function vi(t){return _i(t,["topLeft","topRight","bottomLeft","bottomRight"])}function wi(t){const e=yi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Mi(t,e){t=t||{},e=e||ti.font;let i=ct(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=ct(t.style,e.style);s&&!(""+s).match(mi)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:ct(t.family,e.family),lineHeight:bi(ct(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:ct(t.weight,e.weight),string:""};return n.string=function(t){return!t||ot(t.size)||ot(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function ki(t,e,i,s){let n,o,a,r=!0;for(n=0,o=t.length;nt[0])){kt(s)||(s=Fi("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Di([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Ti(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=Fi(Ci(o,t),i),kt(n))return Ai(t,n)?Ii(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>$i(t).includes(e),ownKeys:t=>$i(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Pi(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Oi(t,s),setContext:e=>Pi(t,e,i,s),override:n=>Pi(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ti(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=t;let r=s[e];St(r)&&a.isScriptable(e)&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t),e=e(o,a||s),r.delete(t),Ai(t,e)&&(e=Ii(n._scopes,n,t,e));return e}(e,r,t,i));at(r)&&r.length&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=i;if(kt(o.index)&&s(t))e=e[o.index%e.length];else if(rt(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Ii(s,n,t,l);e.push(Pi(i,o,a&&a[t],r))}}return e}(e,r,t,a.isIndexable));Ai(e,r)&&(r=Pi(r,n,o&&o[e],a));return r}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Oi(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:St(i)?i:()=>i,isIndexable:St(s)?s:()=>s}}const Ci=(t,e)=>t?t+Mt(e):e,Ai=(t,e)=>rt(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ti(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Ei(t,e,i){return St(t)?t(e,i):t}const Li=(t,e)=>!0===t?e:"string"==typeof t?wt(e,t):void 0;function Ri(t,e,i,s,n){for(const o of e){const e=Li(i,o);if(e){t.add(e);const o=Ei(e._fallback,i,n);if(kt(o)&&o!==i&&o!==s)return o}else if(!1===e&&kt(s)&&i!==s)return null}return!1}function Ii(t,e,i,s){const n=e._rootScopes,o=Ei(e._fallback,i,s),a=[...t,...n],r=new Set;r.add(s);let l=zi(r,a,i,o||i,s);return null!==l&&((!kt(o)||o===i||(l=zi(r,a,o,l,s),null!==l))&&Di(Array.from(r),[""],n,o,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];if(at(n)&&rt(i))return i;return n}(e,i,s))))}function zi(t,e,i,s,n){for(;i;)i=Ri(t,e,i,s,n);return i}function Fi(t,e){for(const i of e){if(!i)continue;const e=i[t];if(kt(e))return e}}function $i(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Vi(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;re"x"===t?"y":"x";function Hi(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=Yt(o,n),l=Yt(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function ji(t,e="x"){const i=Wi(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Ni(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)ji(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;owindow.getComputedStyle(t,null);const Zi=["top","right","bottom","left"];function Ji(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=Zi[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Qi=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function ts(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Gi(i),o="border-box"===n.boxSizing,a=Ji(n,"padding"),r=Ji(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(Qi(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const es=t=>Math.round(10*t)/10;function is(t,e,i,s){const n=Gi(t),o=Ji(n,"margin"),a=Ki(n.maxWidth,t,"clientWidth")||At,r=Ki(n.maxHeight,t,"clientHeight")||At,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=qi(t);if(o){const t=o.getBoundingClientRect(),a=Gi(o),r=Ji(a,"border","width"),l=Ji(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=Ki(a.maxWidth,o,"clientWidth"),n=Ki(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||At,maxHeight:n||At}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=Ji(n,"border","width"),e=Ji(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=es(Math.min(h,a,l.maxWidth)),c=es(Math.min(c,r,l.maxHeight)),h&&!c&&(c=es(h/2)),{width:h,height:c}}function ss(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ns=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function os(t,e){const i=function(t,e){return Gi(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function as(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function rs(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ls(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=as(t,n,i),r=as(n,o,i),l=as(o,e,i),h=as(a,r,i),c=as(r,l,i);return as(h,c,i)}const hs=new Map;function cs(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=hs.get(i);return s||(s=new Intl.NumberFormat(t,e),hs.set(i,s)),s}(e,i).format(t)}function ds(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function us(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function fs(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function gs(t){return"angle"===t?{between:qt,compare:Ut,normalize:Xt}:{between:Gt,compare:(t,e)=>t-e,normalize:t=>t}}function ps({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function ms(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=gs(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=gs(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;hx||l(n,b,p)&&0!==r(n,b),v=()=>!x||0===r(o,p)||l(o,b,p);for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&y()&&(_=0===r(p,n)?t:i),null!==_&&v()&&(g.push(ps({start:_,end:t,loop:u,count:a,style:f})),_=null),i=t,b=p));return null!==_&&g.push(ps({start:_,end:d,loop:u,count:a,style:f})),g}function bs(t,e){const i=[],s=t.segments;for(let n=0;nMath.max(Math.min(t,i),e);function pe(t){return ge(fe(2.55*t),0,255)}function me(t){return ge(fe(255*t),0,255)}function be(t){return ge(fe(t/2.55)/100,0,1)}function xe(t){return ge(fe(100*t),0,100)}const _e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ye=[..."0123456789ABCDEF"],ve=t=>ye[15&t],we=t=>ye[(240&t)>>4]+ye[15&t],Me=t=>(240&t)>>4==(15&t);function ke(t){var e=(t=>Me(t.r)&&Me(t.g)&&Me(t.b)&&Me(t.a))(t)?ve:we;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Se=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function De(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Pe(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Oe(t,e,i){const s=De(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Ce(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e>16&255,o>>8&255,255&o]}return t}(),ze.transparent=[0,0,0,0]);const e=ze[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const $e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ve=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Be=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ne(t,e,i){if(t){let s=Ce(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Te(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function We(t,e){return t?Object.assign(e||{},t):t}function He(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=me(t[3]))):(e=We(t,{r:0,g:0,b:0,a:1})).a=me(e.a),e}function je(t){return"r"===t.charAt(0)?function(t){const e=$e.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?pe(t):ge(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?pe(i):ge(i,0,255)),s=255&(e[4]?pe(s):ge(s,0,255)),n=255&(e[6]?pe(n):ge(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):Le(t)}class Ye{constructor(t){if(t instanceof Ye)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=He(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*_e[s[1]],g:255&17*_e[s[2]],b:255&17*_e[s[3]],a:5===o?17*_e[s[4]]:255}:7!==o&&9!==o||(n={r:_e[s[1]]<<4|_e[s[2]],g:_e[s[3]]<<4|_e[s[4]],b:_e[s[5]]<<4|_e[s[6]],a:9===o?_e[s[7]]<<4|_e[s[8]]:255})),i=n||Fe(t)||je(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=We(this._rgb);return t&&(t.a=be(t.a)),t}set rgb(t){this._rgb=He(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${be(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?ke(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Ce(t),i=e[0],s=xe(e[1]),n=xe(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${be(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Be(be(t.r)),n=Be(be(t.g)),o=Be(be(t.b));return{r:me(Ve(s+i*(Be(be(e.r))-s))),g:me(Ve(n+i*(Be(be(e.g))-n))),b:me(Ve(o+i*(Be(be(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ye(this.rgb)}alpha(t){return this._rgb.a=me(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=fe(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ne(this._rgb,2,t),this}darken(t){return Ne(this._rgb,2,-t),this}saturate(t){return Ne(this._rgb,1,t),this}desaturate(t){return Ne(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Ce(t);i[0]=Ee(i[0]+e),i=Te(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Ue(t){return new Ye(t)}function Xe(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function qe(t){return Xe(t)?t:Ue(t)}function Ke(t){return Xe(t)?t:Ue(t).saturate(.5).darken(.1).hexString()}const Ge=Object.create(null),Ze=Object.create(null);function Je(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ke(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ke(e.borderColor),this.hoverColor=(t,e)=>Ke(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Qe(this,t,e)}get(t){return Je(this,t)}describe(t,e){return Qe(Ze,t,e)}override(t,e){return Qe(Ge,t,e)}route(t,e,i,s){const n=Je(this,t),o=Je(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[s];return rt(t)?Object.assign({},e,t):ct(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ei(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function ii(t,e,i,s){let n=(s=s||{}).data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},o=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const r=i.length;let l,h,c,d,u;for(l=0;li.length){for(l=0;l0&&t.stroke()}}function ri(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==o.strokeColor;let l,h;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);ot(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l+t||0;function _i(t,e){const i={},s=rt(e),n=s?Object.keys(e):e,o=rt(t)?s?i=>ct(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=xi(o(t));return i}function yi(t){return _i(t,{top:"y",right:"x",bottom:"y",left:"x"})}function vi(t){return _i(t,["topLeft","topRight","bottomLeft","bottomRight"])}function wi(t){const e=yi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Mi(t,e){t=t||{},e=e||ti.font;let i=ct(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=ct(t.style,e.style);s&&!(""+s).match(mi)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:ct(t.family,e.family),lineHeight:bi(ct(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:ct(t.weight,e.weight),string:""};return n.string=function(t){return!t||ot(t.size)||ot(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function ki(t,e,i,s){let n,o,a,r=!0;for(n=0,o=t.length;nt[0]){kt(s)||(s=Fi("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Di([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Ti(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=Fi(Ci(o,t),i),kt(n))return Ai(t,n)?Ii(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>$i(t).includes(e),ownKeys:t=>$i(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Pi(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Oi(t,s),setContext:e=>Pi(t,e,i,s),override:n=>Pi(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ti(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=t;let r=s[e];St(r)&&a.isScriptable(e)&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t),e=e(o,a||s),r.delete(t),Ai(t,e)&&(e=Ii(n._scopes,n,t,e));return e}(e,r,t,i));at(r)&&r.length&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=i;if(kt(o.index)&&s(t))e=e[o.index%e.length];else if(rt(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Ii(s,n,t,l);e.push(Pi(i,o,a&&a[t],r))}}return e}(e,r,t,a.isIndexable));Ai(e,r)&&(r=Pi(r,n,o&&o[e],a));return r}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Oi(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:St(i)?i:()=>i,isIndexable:St(s)?s:()=>s}}const Ci=(t,e)=>t?t+Mt(e):e,Ai=(t,e)=>rt(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ti(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Ei(t,e,i){return St(t)?t(e,i):t}const Li=(t,e)=>!0===t?e:"string"==typeof t?wt(e,t):void 0;function Ri(t,e,i,s,n){for(const o of e){const e=Li(i,o);if(e){t.add(e);const o=Ei(e._fallback,i,n);if(kt(o)&&o!==i&&o!==s)return o}else if(!1===e&&kt(s)&&i!==s)return null}return!1}function Ii(t,e,i,s){const n=e._rootScopes,o=Ei(e._fallback,i,s),a=[...t,...n],r=new Set;r.add(s);let l=zi(r,a,i,o||i,s);return null!==l&&((!kt(o)||o===i||(l=zi(r,a,o,l,s),null!==l))&&Di(Array.from(r),[""],n,o,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];if(at(n)&&rt(i))return i;return n}(e,i,s))))}function zi(t,e,i,s,n){for(;i;)i=Ri(t,e,i,s,n);return i}function Fi(t,e){for(const i of e){if(!i)continue;const e=i[t];if(kt(e))return e}}function $i(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Vi(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;re"x"===t?"y":"x";function Hi(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=Yt(o,n),l=Yt(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function ji(t,e="x"){const i=Wi(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Ni(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)ji(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;owindow.getComputedStyle(t,null);const Zi=["top","right","bottom","left"];function Ji(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=Zi[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Qi=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function ts(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Gi(i),o="border-box"===n.boxSizing,a=Ji(n,"padding"),r=Ji(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(Qi(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const es=t=>Math.round(10*t)/10;function is(t,e,i,s){const n=Gi(t),o=Ji(n,"margin"),a=Ki(n.maxWidth,t,"clientWidth")||At,r=Ki(n.maxHeight,t,"clientHeight")||At,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=qi(t);if(o){const t=o.getBoundingClientRect(),a=Gi(o),r=Ji(a,"border","width"),l=Ji(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=Ki(a.maxWidth,o,"clientWidth"),n=Ki(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||At,maxHeight:n||At}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=Ji(n,"border","width"),e=Ji(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=es(Math.min(h,a,l.maxWidth)),c=es(Math.min(c,r,l.maxHeight)),h&&!c&&(c=es(h/2)),{width:h,height:c}}function ss(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ns=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function os(t,e){const i=function(t,e){return Gi(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function as(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function rs(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ls(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=as(t,n,i),r=as(n,o,i),l=as(o,e,i),h=as(a,r,i),c=as(r,l,i);return as(h,c,i)}const hs=new Map;function cs(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=hs.get(i);return s||(s=new Intl.NumberFormat(t,e),hs.set(i,s)),s}(e,i).format(t)}function ds(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function us(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function fs(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function gs(t){return"angle"===t?{between:qt,compare:Ut,normalize:Xt}:{between:Gt,compare:(t,e)=>t-e,normalize:t=>t}}function ps({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function ms(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=gs(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=gs(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;hx||l(n,b,p)&&0!==r(n,b),v=()=>!x||0===r(o,p)||l(o,b,p);for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&y()&&(_=0===r(p,n)?t:i),null!==_&&v()&&(g.push(ps({start:_,end:t,loop:u,count:a,style:f})),_=null),i=t,b=p));return null!==_&&g.push(ps({start:_,end:d,loop:u,count:a,style:f})),g}function bs(t,e){const i=[],s=t.segments;for(let n=0;n