(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[526],{3940:function(t,e,n){"use strict";n.d(e,{$:function(){return a},A:function(){return Me},B:function(){return tt},C:function(){return ye},D:function(){return v},E:function(){return on},F:function(){return Ue},G:function(){return sn},H:function(){return W},I:function(){return o},J:function(){return cn},K:function(){return Ze},L:function(){return X},M:function(){return q},N:function(){return g},O:function(){return x},P:function(){return L},Q:function(){return ve},R:function(){return G},S:function(){return Gt},T:function(){return D},U:function(){return at},V:function(){return te},W:function(){return oe},X:function(){return se},Y:function(){return ie},Z:function(){return me},_:function(){return Te},a:function(){return xe},a0:function(){return c},a1:function(){return Kt},a2:function(){return k},a3:function(){return R},a4:function(){return Qt},a5:function(){return C},a6:function(){return Se},a7:function(){return Re},a8:function(){return Ce},a9:function(){return P},aA:function(){return bn},aB:function(){return u},aC:function(){return et},aD:function(){return Z},aE:function(){return z},aF:function(){return V},aG:function(){return Q},aH:function(){return J},aI:function(){return Jt},aJ:function(){return ke},aK:function(){return Oe},aa:function(){return f},ab:function(){return i},ac:function(){return an},ad:function(){return ee},ae:function(){return A},af:function(){return w},ag:function(){return I},ah:function(){return ct},ai:function(){return pe},aj:function(){return Ve},ak:function(){return wn},al:function(){return vn},am:function(){return fn},an:function(){return ln},ao:function(){return un},ap:function(){return ae},aq:function(){return ce},ar:function(){return ne},as:function(){return fe},at:function(){return ge},au:function(){return be},av:function(){return xn},aw:function(){return rt},ax:function(){return pn},ay:function(){return gn},az:function(){return s},b:function(){return d},c:function(){return zt},d:function(){return Ut},e:function(){return lt},f:function(){return T},g:function(){return p},h:function(){return we},i:function(){return h},j:function(){return S},k:function(){return l},l:function(){return Ee},m:function(){return y},n:function(){return m},o:function(){return hn},p:function(){return ot},q:function(){return K},r:function(){return r},s:function(){return $},t:function(){return U},u:function(){return je},v:function(){return b},w:function(){return it},x:function(){return _e},y:function(){return nn},z:function(){return re}});const r="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function o(t,e,n){const o=n||(t=>Array.prototype.slice.call(t));let i=!1,a=[];return function(...n){a=o(n),i||(i=!0,r.call(window,(()=>{i=!1,t.apply(e,a)})))}}function i(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const a=t=>"start"===t?"left":"end"===t?"right":"center",c=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,s=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function u(){}const f=function(){let t=0;return function(){return t++}}();function l(t){return null===t||"undefined"===typeof t}function d(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function h(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const p=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function g(t,e){return p(t)?t:e}function b(t,e){return"undefined"===typeof t?e:t}const y=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,m=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function x(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function v(t,e,n,r){let o,i,a;if(d(t))if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;on;)t=t[e.substr(n,r-n)],n=r+1,r=j(e,n);return t}function R(t){return t.charAt(0).toUpperCase()+t.slice(1)}const S=t=>"undefined"!==typeof t,C=t=>"function"===typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function I(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const L=Math.PI,D=2*L,F=D+L,Y=Number.POSITIVE_INFINITY,N=L/180,W=L/2,B=L/4,H=2*L/3,X=Math.log10,$=Math.sign;function z(t){const e=Math.round(t);t=Q(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(X(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function q(t){const e=[],n=Math.sqrt(t);let r;for(r=1;rt-e)).pop(),e}function K(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Q(t,e,n){return Math.abs(t-e)=t}function Z(t,e,n){let r,o,i;for(r=0,o=t.length;rs&&u=Math.min(e,n)-r&&t<=Math.max(e,n)+r}const st=t=>0===t||1===t,ut=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/n),ft=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/n)+1,lt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*W),easeOutSine:t=>Math.sin(t*W),easeInOutSine:t=>-.5*(Math.cos(L*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>st(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>st(t)?t:ut(t,.075,.3),easeOutElastic:t=>st(t)?t:ft(t,.075,.3),easeInOutElastic(t){const e=.1125;return st(t)?t:t<.5?.5*ut(2*t,e,.45):.5+.5*ft(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-lt.easeOutBounce(1-t),easeOutBounce(t){const 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},easeInOutBounce:t=>t<.5?.5*lt.easeInBounce(2*t):.5*lt.easeOutBounce(2*t-1)+.5},dt={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},ht="0123456789ABCDEF",pt=t=>ht[15&t],gt=t=>ht[(240&t)>>4]+ht[15&t],bt=t=>(240&t)>>4===(15&t);function yt(t){var e=function(t){return bt(t.r)&&bt(t.g)&&bt(t.b)&&bt(t.a)}(t)?pt:gt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function mt(t){return t+.5|0}const xt=(t,e,n)=>Math.max(Math.min(t,n),e);function vt(t){return xt(mt(2.55*t),0,255)}function wt(t){return xt(mt(255*t),0,255)}function Ot(t){return xt(mt(t/2.55)/100,0,1)}function _t(t){return xt(mt(100*t),0,100)}const Mt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const kt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Pt(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Et(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function jt(t,e,n){const r=Pt(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function Tt(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=(o+i)/2;let c,s,u;return o!==i&&(u=o-i,s=a>.5?u/(2-o-i):u/(o+i),c=o===e?(n-r)/u+(n>16&255,i>>8&255,255&i]}return t}(),Dt.transparent=[0,0,0,0]);const e=Dt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Yt(t,e,n){if(t){let r=Tt(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=St(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Nt(t,e){return t?Object.assign(e||{},t):t}function Wt(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=wt(t[3]))):(e=Nt(t,{r:0,g:0,b:0,a:1})).a=wt(e.a),e}function Bt(t){return"r"===t.charAt(0)?function(t){const e=Mt.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=255&(e[8]?vt(t):255*t)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?vt(n):n),r=255&(e[4]?vt(r):r),o=255&(e[6]?vt(o):o),{r:n,g:r,b:o,a:i}}}(t):At(t)}class Ht{constructor(t){if(t instanceof Ht)return t;const e=typeof t;let n;"object"===e?n=Wt(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*dt[t[1]],g:255&17*dt[t[2]],b:255&17*dt[t[3]],a:5===n?17*dt[t[4]]:255}:7!==n&&9!==n||(e={r:dt[t[1]]<<4|dt[t[2]],g:dt[t[3]]<<4|dt[t[4]],b:dt[t[5]]<<4|dt[t[6]],a:9===n?dt[t[7]]<<4|dt[t[8]]:255})),e}(t)||Ft(t)||Bt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Nt(this._rgb);return t&&(t.a=Ot(t.a)),t}set rgb(t){this._rgb=Wt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ot(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?yt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Tt(t),n=e[0],r=_t(e[1]),o=_t(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${Ot(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const r=n.rgb,o=t.rgb;let i;const a=e===i?.5:e,c=2*a-1,s=r.a-o.a,u=((c*s===-1?c:(c+s)/(1+c*s))+1)/2;i=1-u,r.r=255&u*r.r+i*o.r+.5,r.g=255&u*r.g+i*o.g+.5,r.b=255&u*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,n.rgb=r}return n}clone(){return new Ht(this.rgb)}alpha(t){return this._rgb.a=wt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=mt(.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 Yt(this._rgb,2,t),this}darken(t){return Yt(this._rgb,2,-t),this}saturate(t){return Yt(this._rgb,1,t),this}desaturate(t){return Yt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Tt(t);n[0]=Ct(n[0]+e),n=St(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Xt(t){return new Ht(t)}const $t=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function zt(t){return $t(t)?t:Xt(t)}function qt(t){return $t(t)?t:Xt(t).saturate(.5).darken(.1).hexString()}const Kt=Object.create(null),Qt=Object.create(null);function Vt(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;rt.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)=>qt(e.backgroundColor),this.hoverBorderColor=(t,e)=>qt(e.borderColor),this.hoverColor=(t,e)=>qt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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 Zt(this,t,e)}get(t){return Vt(this,t)}describe(t,e){return Zt(Qt,t,e)}override(t,e){return Zt(Kt,t,e)}route(t,e,n,r){const o=Vt(this,t),i=Vt(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return h(t)?Object.assign({},e,t):b(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 Gt(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Jt(t,e,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const c=n.length;let s,u,f,l,h;for(s=0;sn.length){for(s=0;s0&&t.stroke()}}function re(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==i.strokeColor;let s,u;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);l(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,i),s=0;sb(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of o)n[a]=+i(a)||0;return n}function ge(t){return pe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function be(t){return pe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ye(t){const e=ge(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function me(t,e){t=t||{},e=e||Ut.font;let n=b(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=b(t.style,e.style);r&&!(""+r).match(de)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:b(t.family,e.family),lineHeight:he(b(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:b(t.weight,e.weight),string:""};return o.string=function(t){return!t||l(t.size)||l(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function xe(t,e,n,r){let o,i,a,c=!0;for(o=0,i=t.length;on&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function we(t,e){return Object.assign(Object.create(t),e)}function Oe(t,e,n){n=n||(n=>t[n]1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const _e=(t,e,n)=>Oe(t,n,(r=>t[r][e]Oe(t,n,(r=>t[r][e]>=n));function ke(t,e,n){let r=0,o=t.length;for(;rr&&t[o-1]>n;)o--;return r>0||o{const n="_onData"+R(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function je(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(Pe.forEach((e=>{delete t[e]})),delete t._chartjs)}function Te(t){const e=new Set;let n,r;for(n=0,r=t.length;nt[0])){S(r)||(r=Be("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>Re([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Le(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Be(Ae(i,t),n),S(o))return Ie(t,o)?Ne(n,r,t,o):o}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>He(t).includes(e),ownKeys:t=>He(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function Se(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ce(t,r),setContext:e=>Se(t,e,n,r),override:o=>Se(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Le(t,e,(()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=t;let c=r[e];C(c)&&a.isScriptable(e)&&(c=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:c}=n;if(c.has(t))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+t);c.add(t),e=e(i,a||r),c.delete(t),Ie(t,e)&&(e=Ne(o._scopes,o,t,e));return e}(e,c,t,n));d(c)&&c.length&&(c=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:c}=n;if(S(i.index)&&r(t))e=e[i.index%e.length];else if(h(e[0])){const n=e,r=o._scopes.filter((t=>t!==n));e=[];for(const s of n){const n=Ne(r,o,t,s);e.push(Se(n,i,a&&a[t],c))}}return e}(e,c,t,a.isIndexable));Ie(e,c)&&(c=Se(c,o,i&&i[e],a));return c}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Ce(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:C(n)?n:()=>n,isIndexable:C(r)?r:()=>r}}const Ae=(t,e)=>t?t+R(e):e,Ie=(t,e)=>h(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Le(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function De(t,e,n){return C(t)?t(e,n):t}const Fe=(t,e)=>!0===t?e:"string"===typeof t?T(e,t):void 0;function Ye(t,e,n,r,o){for(const i of e){const e=Fe(n,i);if(e){t.add(e);const i=De(e._fallback,n,o);if(S(i)&&i!==n&&i!==r)return i}else if(!1===e&&S(r)&&n!==r)return null}return!1}function Ne(t,e,n,r){const o=e._rootScopes,i=De(e._fallback,n,r),a=[...t,...o],c=new Set;c.add(r);let s=We(c,a,n,i||n,r);return null!==s&&((!S(i)||i===n||(s=We(c,a,i,s,r),null!==s))&&Re(Array.from(c),[""],o,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];if(d(o)&&h(n))return n;return o}(e,n,r))))}function We(t,e,n,r,o){for(;n;)n=Ye(t,e,n,r,o);return n}function Be(t,e){for(const n of e){if(!n)continue;const e=n[t];if(S(e))return e}}function He(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const Xe=Number.EPSILON||1e-14,$e=(t,e)=>e"x"===t?"y":"x";function qe(t,e,n,r){const o=t.skip?e:t,i=e,a=n.skip?e:n,c=et(i,o),s=et(a,i);let u=c/(c+s),f=s/(c+s);u=isNaN(u)?0:u,f=isNaN(f)?0:f;const l=r*u,d=r*f;return{previous:{x:i.x-l*(a.x-o.x),y:i.y-l*(a.y-o.y)},next:{x:i.x+d*(a.x-o.x),y:i.y+d*(a.y-o.y)}}}function Ke(t,e="x"){const n=ze(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,c,s,u=$e(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)Ke(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;iwindow.getComputedStyle(t,null);const tn=["top","right","bottom","left"];function en(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=tn[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function nn(t,e){const{canvas:n,currentDevicePixelRatio:r}=e,o=Je(n),i="border-box"===o.boxSizing,a=en(o,"padding"),c=en(o,"border","width"),{x:s,y:u,box:f}=function(t,e){const n=t.native||t,r=n.touches,o=r&&r.length?r[0]:n,{offsetX:i,offsetY:a}=o;let c,s,u=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,a,n.target))c=i,s=a;else{const t=e.getBoundingClientRect();c=o.clientX-t.left,s=o.clientY-t.top,u=!0}return{x:c,y:s,box:u}}(t,n),l=a.left+(f&&c.left),d=a.top+(f&&c.top);let{width:h,height:p}=e;return i&&(h-=a.width+c.width,p-=a.height+c.height),{x:Math.round((s-l)/h*n.width/r),y:Math.round((u-d)/p*n.height/r)}}const rn=t=>Math.round(10*t)/10;function on(t,e,n,r){const o=Je(t),i=en(o,"margin"),a=Ge(o.maxWidth,t,"clientWidth")||Y,c=Ge(o.maxHeight,t,"clientHeight")||Y,s=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=Ue(t);if(i){const t=i.getBoundingClientRect(),a=Je(i),c=en(a,"border","width"),s=en(a,"padding");e=t.width-s.width-c.width,n=t.height-s.height-c.height,r=Ge(a.maxWidth,i,"clientWidth"),o=Ge(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||Y,maxHeight:o||Y}}(t,e,n);let{width:u,height:f}=s;if("content-box"===o.boxSizing){const t=en(o,"border","width"),e=en(o,"padding");u-=e.width+t.width,f-=e.height+t.height}return u=Math.max(0,u-i.width),f=Math.max(0,r?Math.floor(u/r):f-i.height),u=rn(Math.min(u,a,s.maxWidth)),f=rn(Math.min(f,c,s.maxHeight)),u&&!f&&(f=rn(u/2)),{width:u,height:f}}function an(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const cn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function sn(t,e){const n=function(t,e){return Je(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function un(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function fn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function ln(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=un(t,o,n),c=un(o,i,n),s=un(i,e,n),u=un(a,c,n),f=un(c,s,n);return un(u,f,n)}const dn=new Map;function hn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=dn.get(n);return r||(r=new Intl.NumberFormat(t,e),dn.set(n,r)),r}(e,n).format(t)}function pn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function gn(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function bn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function yn(t){return"angle"===t?{between:ot,compare:nt,normalize:rt}:{between:ct,compare:(t,e)=>t-e,normalize:t=>t}}function mn({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:o}}function xn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:c,between:s,normalize:u}=yn(r),{start:f,end:l,loop:d,style:h}=function(t,e,n){const{property:r,start:o,end:i}=n,{between:a,normalize:c}=yn(r),s=e.length;let u,f,{start:l,end:d,loop:h}=t;if(h){for(l+=s,d+=s,u=0,f=s;um||s(o,y,g)&&0!==c(o,y),w=()=>!m||0===c(i,g)||s(i,y,g);for(let O=f,_=f;O<=l;++O)b=e[O%a],b.skip||(g=u(b[r]),g!==y&&(m=s(g,o,i),null===x&&v()&&(x=0===c(g,o)?O:_),null!==x&&w()&&(p.push(mn({start:x,end:O,loop:d,count:a,style:h})),x=null),_=O,y=g));return null!==x&&p.push(mn({start:x,end:l,loop:d,count:a,style:h})),p}function vn(t,e){const n=[],r=t.segments;for(let o=0;oo&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return On(t,[{start:a,end:c,loop:i}],n,e);return On(t,function(t,e,n,r){const o=t.length,i=[];let a,c=e,s=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?s.skip||(r=!1,i.push({start:e%o,end:(a-1)%o,loop:r}),e=c=n.stop?a:null):(c=a,s.skip&&(e=a)),s=n}return null!==c&&i.push({start:e%o,end:c%o,loop:r}),i}(n,a,c{0}));const o=r&&"undefined"!==typeof r.locale?r.locale:t&&t.locale;s[e+"%"+n+(o?"%"+o:"")]=!0}var f=function(t){const e=!1!==t.prefetch,n=a.useRouter(),{href:r,as:f}=o.default.useMemo((()=>{const[e,r]=i.resolveHref(n,t.href,!0);return{href:e,as:t.as?i.resolveHref(n,t.as):r||e}}),[n,t.href,t.as]);let l,{children:d,replace:h,shallow:p,scroll:g,locale:b}=t;"string"===typeof d&&(d=o.default.createElement("a",null,d)),l=o.default.Children.only(d);const y=l&&"object"===typeof l&&l.ref,[m,x]=c.useIntersection({rootMargin:"200px"}),v=o.default.useCallback((t=>{m(t),y&&("function"===typeof y?y(t):"object"===typeof y&&(y.current=t))}),[y,m]);o.default.useEffect((()=>{const t=x&&e&&i.isLocalURL(r),o="undefined"!==typeof b?b:n&&n.locale,a=s[r+"%"+f+(o?"%"+o:"")];t&&!a&&u(n,r,f,{locale:o})}),[f,r,x,b,e,n]);const w={ref:v,onClick:t=>{l.props&&"function"===typeof l.props.onClick&&l.props.onClick(t),t.defaultPrevented||function(t,e,n,r,o,a,c,s){const{nodeName:u}=t.currentTarget;("A"!==u||!function(t){const{target:e}=t.currentTarget;return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)&&i.isLocalURL(n))&&(t.preventDefault(),null==c&&r.indexOf("#")>=0&&(c=!1),e[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:c}))}(t,n,r,f,h,p,g,b)},onMouseEnter:t=>{i.isLocalURL(r)&&(l.props&&"function"===typeof l.props.onMouseEnter&&l.props.onMouseEnter(t),u(n,r,f,{priority:!0}))}};if(t.passHref||"a"===l.type&&!("href"in l.props)){const t="undefined"!==typeof b?b:n&&n.locale,e=n&&n.isLocaleDomain&&i.getDomainLocale(f,t,n&&n.locales,n&&n.domainLocales);w.href=e||i.addBasePath(i.addLocale(f,t,n&&n.defaultLocale))}return o.default.cloneElement(l,w)};e.default=f},8771:function(t,e,n){"use strict";var r=n(1682);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;enull};t instanceof Promise?r.loader=()=>t:"function"===typeof t?r.loader=t:"object"===typeof t&&(r=i(i({},r),t));r=i(i({},r),e);const o=r;if(o.suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");if(o.suspense)return n(o);r.loadableGenerated&&(r=i(i({},r),r.loadableGenerated),delete r.loadableGenerated);if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,s(n,r);delete r.ssr}return n(r)};c(n(7294));var a=c(n(4860));function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){return delete e.webpack,delete e.modules,t(e)}},1083:function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.LoadableContext=void 0;const o=((r=n(7294))&&r.__esModule?r:{default:r}).default.createContext(null);e.LoadableContext=o},4860:function(t,e,n){"use strict";var r=n(1682);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e(n.loading=!1,n.loaded=t,t))).catch((t=>{throw n.loading=!1,n.error=t,t})),n}class p{constructor(t,e){this._loadFn=t,this._opts=e,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:t,_opts:e}=this;t.loading&&("number"===typeof e.delay&&(0===e.delay?this._state.pastDelay=!0:this._delay=setTimeout((()=>{this._update({pastDelay:!0})}),e.delay)),"number"===typeof e.timeout&&(this._timeout=setTimeout((()=>{this._update({timedOut:!0})}),e.timeout))),this._res.promise.then((()=>{this._update({}),this._clearTimeouts()})).catch((t=>{this._update({}),this._clearTimeouts()})),this._update({})}_update(t){this._state=i(i({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach((t=>t()))}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(t){return this._callbacks.add(t),()=>{this._callbacks.delete(t)}}}function g(t){return function(t,e){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},e);n.suspense&&(n.lazy=c.default.lazy(n.loader));let r=null;function o(){if(!r){const e=new p(t,n);r={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return r.promise()}if(!d&&"function"===typeof n.webpack&&!n.suspense){const t=n.webpack();l.push((e=>{for(const n of t)if(-1!==e.indexOf(n))return o()}))}const a=n.suspense?function(t,e){return c.default.createElement(n.lazy,i(i({},t),{},{ref:e}))}:function(t,e){o();const i=c.default.useContext(u.LoadableContext),a=s.useSubscription(r);return c.default.useImperativeHandle(e,(()=>({retry:r.retry})),[]),i&&Array.isArray(n.modules)&&n.modules.forEach((t=>{i(t)})),c.default.useMemo((()=>a.loading||a.error?c.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?c.default.createElement(function(t){return t&&t.__esModule?t.default:t}(a.loaded),t):null),[t,a])};return a.preload=()=>!n.suspense&&o(),a.displayName="LoadableComponent",c.default.forwardRef(a)}(h,t)}function b(t,e){let n=[];for(;t.length;){let r=t.pop();n.push(r(e))}return Promise.all(n).then((()=>{if(t.length)return b(t,e)}))}g.preloadAll=()=>new Promise(((t,e)=>{b(f).then(t,e)})),g.preloadReady=(t=[])=>new Promise((e=>{const n=()=>(d=!0,e());b(l,t).then(n,n)})),window.__NEXT_PRELOADREADY=g.preloadReady;var y=g;e.default=y},5152:function(t,e,n){t.exports=n(8771)},1664:function(t,e,n){t.exports=n(2167)},871:function(t,e,n){"use strict";n.d(e,{$Q:function(){return m}});var r=n(3328);r.kL.register(...r.zX);var o=r.kL,i=n(7294);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){a(t,e,r[e])}))},r=1;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(t,e){"function"===typeof t?t(e):t&&(t.current=e)}function l(t,e){t.labels=e}function d(t,e){t.datasets=e.map((function(e){var n=t.datasets.find((function(t){return t.label===e.label&&t.type===e.type}));return n&&e.data?(Object.assign(n,e),n):c({},e)}))}function h(t){var e={labels:[],datasets:[]};return l(e,t.labels),d(e,t.datasets),e}var p={datasets:[]};function g(t,e){var n=t.height,r=void 0===n?150:n,a=t.width,g=void 0===a?300:a,b=t.redraw,y=void 0!==b&&b,m=t.type,x=t.data,v=t.options,w=t.plugins,O=void 0===w?[]:w,_=t.getDatasetAtEvent,M=t.getElementAtEvent,k=t.getElementsAtEvent,P=t.fallbackContent,E=t.onClick,j=s(t,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),T=(0,i.useRef)(null),R=(0,i.useRef)(),S=u((0,i.useState)()),C=S[0],A=S[1],I=C||("function"===typeof x?p:x),L=function(){T.current&&(R.current=new o(T.current,{type:m,data:h(I),options:v,plugins:O}),f(e,R.current))},D=function(){f(e,null),R.current&&(R.current.destroy(),R.current=null)};return(0,i.useEffect)((function(){"function"===typeof x&&T.current&&A(x(T.current))}),[x]),(0,i.useEffect)((function(){var t,e;!y&&R.current&&v&&(t=R.current,e=v,t.options=c({},e))}),[y,v]),(0,i.useEffect)((function(){!y&&R.current&&l(R.current.config.data,I.labels)}),[y,I.labels]),(0,i.useEffect)((function(){!y&&R.current&&I.datasets&&d(R.current.config.data,I.datasets)}),[y,I.datasets]),(0,i.useEffect)((function(){R.current&&(y?(D(),setTimeout(L)):R.current.update())}),[y,v,I.labels,I.datasets]),(0,i.useEffect)((function(){return L(),function(){return D()}}),[]),i.createElement("canvas",Object.assign({ref:T,role:"img",height:r,width:g,onClick:function(t){E&&E(t);var e=R.current;e&&(_&&_(e.getElementsAtEventForMode(t.nativeEvent,"dataset",{intersect:!0},!1),t),M&&M(e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1),t),k&&k(e.getElementsAtEventForMode(t.nativeEvent,"index",{intersect:!0},!1),t))}},j),P)}var b=(0,i.forwardRef)(g);function y(t){return(0,i.forwardRef)((function(e,n){return i.createElement(b,Object.assign({},e,{ref:n,type:t}))}))}y("line");var m=y("bar");y("radar"),y("doughnut"),y("polarArea"),y("bubble"),y("pie"),y("scatter")}}]);