PageSourceSearch

https://cccc-mobile-portal.firebaseapp.com/chunk-5UC45AXF.js

js cccc-mobile-portal.firebaseapp.com collected 2026-10-03 14:05:08 UTC 217,085 bytes, 3 lines download raw bytes

vendor: 12,411 bytes, line 1
1import{$ as ss,B as _n,J as yn,L as vn,S as Mn,aa as wn,ba as Sn,c as bn,la as Pe,ta as kn}from"./chunk-Y5LJR3O3.js";import{a as ni,b as oi,h as k}from"./chunk-2ULHPW3F.js";function De(e){return e+.5|0}var kt=(e,i,t)=>Math.max(Math.min(e,t),i);function Ce(e){return kt(De(e*2.55),0,255)}function Ot(e){return kt(De(e*255),0,255)}function xt(e){return kt(De(e/2.55)/100,0,1)}function On(e){return kt(De(e*100),0,100)}var ot={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},os=[..."0123456789ABCDEF"],dl=e=>os[e&15],ul=e=>os[(e&240)>>4]+os[e&15],ri=e=>(e&240)>>4===(e&15),pl=e=>ri(e.r)&&ri(e.g)&&ri(e.b)&&ri(e.a);function gl(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&ot[e[1]]*17,g:255&ot[e[2]]*17,b:255&ot[e[3]]*17,a:i===5?ot[e[4]]*17:255}:(i===7||i===9)&&(t={r:ot[e[1]]<<4|ot[e[2]],g:ot[e[3]]<<4|ot[e[4]],b:ot[e[5]]<<4|ot[e[6]],a:i===9?ot[e[7]]<<4|ot[e[8]]:255})),t}var ml=(e,i)=>e<255?i(e):"";function xl(e){var i=pl(e)?dl:ul;return e?"#"+i(e.r)+i(e.g)+i(e.b)+ml(e.a,i):void 0}var bl=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Dn(e,i,t){let s=i*Math.min(t,1-t),n=(o,r=(o+e/30)%12)=>t-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function _l(e,i,t){let s=(n,o=(n+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function yl(e,i,t){let s=Dn(e,1,.5),n;for(i+t>1&&(n=1/(i+t),i*=n,t*=n),n=0;n<3;n++)s[n]*=1-i-t,s[n]+=i;return s}function vl(e,i,t,s,n){return e===n?(i-t)/s+(i<t?6:0):i===n?(t-e)/s+2:(e-i)/s+4}function rs(e){let t=e.r/255,s=e.g/255,n=e.b/255,o=Math.max(t,s,n),r=Math.min(t,s,n),a=(o+r)/2,l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=vl(t,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function as(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(Ot)}function ls(e,i,t){return as(Dn,e,i,t)}function Ml(e,i,t){return as(yl,e,i,t)}function wl(e,i,t){return as(_l,e,i,t)}function Tn(e){return(e%360+360)%360}function Sl(e){let i=bl.exec(e),t=255,s;if(!i)return;i[5]!==s&&(t=i[6]?Ce(+i[5]):Ot(+i[5]));let n=Tn(+i[2]),o=+i[3]/100,r=+i[4]/100;return i[1]==="hwb"?s=Ml(n,o,r):i[1]==="hsv"?s=wl(n,o,r):s=ls(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}function kl(e,i){var t=rs(e);t[0]=Tn(t[0]+i),t=ls(t),e.r=t[0],e.g=t[1],e.b=t[2]}function Ol(e){if(!e)return;let i=rs(e),t=i[0],s=On(i[1]),n=On(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${xt(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}var Pn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Cn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pl(){let e={},i=Object.keys(Cn),t=Object.keys(Pn),s,n,o,r,a;for(s=0;s<i.length;s++){for(r=a=i[s],n=0;n<t.length;n++)o=t[n],a=a.replace(o,Pn[o]);o=parseInt(Cn[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}var ai;function Cl(e){ai||(ai=Pl(),ai.transparent=[0,0,0,0]);let i=ai[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var Al=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dl(e){let i=Al.exec(e),t=255,s,n,o;if(i){if(i[7]!==s){let r=+i[7];t=i[8]?Ce(r):kt(r*255,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?Ce(s):kt(s,0,255)),n=255&(i[4]?Ce(n):kt(n,0,255)),o=255&(i[6]?Ce(o):kt(o,0,255)),{r:s,g:n,b:o,a:t}}}function Tl(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${xt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var ns=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,te=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ll(e,i,t){let s=te(xt(e.r)),n=te(xt(e.g)),o=te(xt(e.b));return{r:Ot(ns(s+t*(te(xt(i.r))-s))),g:Ot(ns(n+t*(te(xt(i.g))-n))),b:Ot(ns(o+t*(te(xt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function li(e,i,t){if(e){let s=rs(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,i===0?360:1)),s=ls(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Ln(e,i){return e&&Object.assign(i||{},e)}function An(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=Ot(e[3]))):(i=Ln(e,{r:0,g:0,b:0,a:1}),i.a=Ot(i.a)),i}function Rl(e){return e.charAt(0)==="r"?Dl(e):Sl(e)}var Ae=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,s;t==="object"?s=An(i):t==="string"&&(s=gl(i)||Cl(i)||Rl(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=Ln(this._rgb);return i&&(i.a=xt(i.a)),i}set rgb(i){this._rgb=An(i)}rgbString(){return this._valid?Tl(this._rgb):void 0}hexString(){return this._valid?xl(this._rgb):void 0}hslString(){return this._valid?Ol(this._rgb):void 0}mix(i,t){if(i){let s=this.rgb,n=i.rgb,o,r=t===o?.5:t,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(i,t){return i&&(this._rgb=Ll(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=Ot(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=De(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return li(this._rgb,2,i),this}darken(i){return li(this._rgb,2,-i),this}saturate(i){return li(this._rgb,1,i),this}desaturate(i){return li(this._rgb,1,-i),this}rotate(i){return kl(this._rgb,i),this}};function dt(){}var Hn=(()=>{let e=0;return()=>e++})();function L(e){return e==null}function z(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function D(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function V(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Q(e,i){return V(e)?e:i}function P(e,i){return typeof e>"u"?i:e}var $n=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,ds=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function E(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function R(e,i,t,s){let n,o,r;if(z(e))if(o=e.length,s)for(n=o-1;n>=0;n--)i.call(t,e[n],n);else for(n=0;n<o;n++)i.call(t,e[n],n);else if(D(e))for(r=Object.keys(e),o=r.length,n=0;n<o;n++)i.call(t,e[r[n]],r[n])}function Re(e,i){let t,s,n,o;if(!e||!i||e.length!==i.length)return!1;for(t=0,s=e.length;t<s;++t)if(n=e[t],o=i[t],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function di(e){if(z(e))return e.map(di);if(D(e)){let i=Object.create(null),t=Object.keys(e),s=t.length,n=0;for(;n<s;++n)i[t[n]]=di(e[t[n]]);return i}return e}function Un(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Il(e,i,t,s){if(!Un(e))return;let n=i[e],o=t[e];D(n)&&D(o)?ie(n,o,s):i[e]=di(o)}function ie(e,i,t){let s=z(i)?i:[i],n=s.length;if(!D(e))return e;t=t||{};let o=t.merger||Il,r;for(let a=0;a<n;++a){if(r=s[a],!D(r))continue;let l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,t)}return e}function ne(e,i){return ie(e,i,{merger:El})}function El(e,i,t){if(!Un(e))return;let s=i[e],n=t[e];D(s)&&D(n)?ne(s,n):Object.prototype.hasOwnProperty.call(i,e)||(i[e]=di(n))}var Rn={"":e=>e,x:e=>e.x,y:e=>e.y};function Fl(e){let i=e.split("."),t=[],s="";for(let n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}function zl(e){let i=Fl(e);return t=>{for(let s of i){if(s==="")break;t=t&&t[s]}return t}}function yt(e,i){return(Rn[i]||(Rn[i]=zl(i)))(e)}function mi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var oe=e=>typeof e<"u",bt=e=>typeof e=="function",us=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function Yn(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var B=Math.PI,j=2*B,Bl=j+B,ui=Number.POSITIVE_INFINITY,jl=B/180,H=B/2,Vt=B/4,In=B*2/3,_t=Math.log10,ct=Math.sign;function re(e,i,t){return Math.abs(e-i)<t}function ps(e){let i=Math.round(e);e=re(e,i,e/1e3)?i:e;let t=Math.pow(10,Math.floor(_t(e))),s=e/t;return(s<=1?1:s<=2?2:s<=5?5:10)*t}function Xn(e){let i=[],t=Math.sqrt(e),s;for(s=1;s<t;s++)e%s===0&&(i.push(s),i.push(e/s));return t===(t|0)&&i.push(t),i.sort((n,o)=>n-o).pop(),i}function Ut(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Kn(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function gs(e,i,t){let s,n,o;for(s=0,n=e.length;s<n;s++)o=e[s][t],isNaN(o)||(i.min=Math.min(i.min,o),i.max=Math.max(i.max,o))}function rt(e){return e*(B/180)}function xi(e){return e*(180/B)}function ms(e){if(!V(e))return;let i=1,t=0;for(;Math.round(e*i)/i!==e;)i*=10,t++;return t}function xs(e,i){let t=i.x-e.x,s=i.y-e.y,n=Math.sqrt(t*t+s*s),o=Math.atan2(s,t);return o<-.5*B&&(o+=j),{angle:o,distance:n}}function pi(e,i){return Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2))}function Nl(e,i){return(e-i+Bl)%j-B}function J(e){return(e%j+j)%j}function ae(e,i,t,s){let n=J(e),o=J(i),r=J(t),a=J(o-n),l=J(r-n),c=J(n-o),h=J(n-r);return n===o||n===r||s&&o===r||a>l&&c<h}function Y(e,i,t){return Math.max(i,Math.min(t,e))}function qn(e){return Y(e,-32768,32767)}function ut(e,i,t,s=1e-6){return e>=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function bi(e,i,t){t=t||(r=>e[r]<i);let s=e.length-1,n=0,o;for(;s-n>1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}var ht=(e,i,t,s)=>bi(e,t,s?n=>{let o=e[n][i];return o<t||o===t&&e[n+1][i]===t}:n=>e[n][i]<t),Gn=(e,i,t)=>bi(e,t,s=>e[s][i]>=t);function Zn(e,i,t){let s=0,n=e.length;for(;s<n&&e[s]<i;)s++;for(;n>s&&e[n-1]>t;)n--;return s>0||n<e.length?e.slice(s,n):e}var Jn=["push","pop","shift","splice","unshift"];function Qn(e,i){if(e._chartjs){e._chartjs.listeners.push(i);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),Jn.forEach(t=>{let s="_onData"+mi(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function bs(e,i){let t=e._chartjs;if(!t)return;let s=t.listeners,n=s.indexOf(i);n!==-1&&s.splice(n,1),!(s.length>
vendor: 4,716 bytes, line 1
10)&&(Jn.forEach(o=>{delete e[o]}),delete e._chartjs)}function _s(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var ys=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function vs(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,ys.call(window,()=>{s=!1,e.apply(i,t)}))}}function to(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}var _i=e=>e==="start"?"left":e==="end"?"right":"center",K=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,eo=(e,i,t,s)=>e===(s?"left":"right")?t:e==="center"?(i+t)/2:i;function Ms(e,i,t){let s=i.length,n=0,o=s;if(e._sorted){let{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:f,maxDefined:d}=r.getUserBounds();f&&(n=Y(Math.min(ht(a,l,c).lo,t?s:ht(i,l,r.getPixelForValue(c)).lo),0,s-1)),d?o=Y(Math.max(ht(a,r.axis,h,!0).hi+1,t?0:ht(i,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function ws(e){let{xScale:i,yScale:t,_scaleRanges:s}=e,n={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!s)return e._scaleRanges=n,!0;let o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}var ci=e=>e===0||e===1,En=(e,i,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*j/t)),Fn=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*j/t)+1,ee={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*H)+1,easeOutSine:e=>Math.sin(e*H),easeInOutSine:e=>-.5*(Math.cos(B*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ci(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ci(e)?e:En(e,.075,.3),easeOutElastic:e=>ci(e)?e:Fn(e,.075,.3),easeInOutElastic(e){return ci(e)?e:e<.5?.5*En(e*2,.1125,.45):.5+.5*Fn(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-ee.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?ee.easeInBounce(e*2)*.5:ee.easeOutBounce(e*2-1)*.5+.5};function Ss(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function ks(e){return Ss(e)?e:new Ae(e)}function cs(e){return Ss(e)?e:new Ae(e).saturate(.5).darken(.1).hexString()}var Wl=["x","y","borderWidth","radius","tension"],Vl=["color","borderColor","backgroundColor"];function Hl(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:Vl},numbers:{type:"number",properties:Wl}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}})}function $l(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var zn=new Map;function Ul(e,i){i=i||{};let t=e+JSON.stringify(i),s=zn.get(t);return s||(s=new Intl.NumberFormat(e,i),zn.set(t,s)),s}function le(e,i,t){return Ul(i,t).format(e)}var io={values(e){return z(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let s=this.chart.options.locale,n,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=Yl(e,t)}let r=_t(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),le(e,s,l)},logarithmic(e,i,t){if(e===0)return"0";let s=t[i].significand||e/Math.pow(10,Math.floor(_t(e)));return[1,2,3,5,10,15].includes(s)||i>
vendor: 2,482 bytes, line 1
1.8*t.length?io.numeric.call(this,e,i,t):""}};function Yl(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var Ie={formatters:io};function Xl(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ie.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var Ct=Object.create(null),yi=Object.create(null);function Te(e,i){if(!i)return e;let t=i.split(".");for(let s=0,n=t.length;s<n;++s){let o=t[s];e=e[o]||(e[o]=Object.create(null))}return e}function hs(e,i,t){return typeof i=="string"?ie(Te(e,i),t):ie(Te(e,""),i)}var fs=class{constructor(i,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=s=>s.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=(s,n)=>cs(n.backgroundColor),this.hoverBorderColor=(s,n)=>cs(n.borderColor),this.hoverColor=(s,n)=>cs(n.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={}
vendor: 4,561 bytes, line 1
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return hs(this,i,t)}get(i){return Te(this,i)}describe(i,t){return hs(yi,i,t)}override(i,t){return hs(Ct,i,t)}route(i,t,s,n){let o=Te(this,i),r=Te(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[a],c=r[n];return D(l)?Object.assign({},c,l):P(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}},F=new fs({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Hl,$l,Xl]);function Kl(e){return!e||L(e.size)||L(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Le(e,i,t,s,n){let o=i[n];return o||(o=i[n]=e.measureText(n).width,t.push(n)),o>s&&(s=o),s}function so(e,i,t,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==i&&(n=s.data={},o=s.garbageCollect=[],s.font=i),e.save(),e.font=i;let r=0,a=t.length,l,c,h,f,d;for(l=0;l<a;l++)if(f=t[l],f!=null&&!z(f))r=Le(e,n,o,r,f);else if(z(f))for(c=0,h=f.length;c<h;c++)d=f[c],d!=null&&!z(d)&&(r=Le(e,n,o,r,d));e.restore();let u=o.length/2;if(u>t.length){for(l=0;l<u;l++)delete n[o[l]];o.splice(0,u)}return r}function At(e,i,t){let s=e.currentDevicePixelRatio,n=t!==0?Math.max(t/2,.5):0;return Math.round((i-n)*s)/s+n}function Os(e,i){!i&&!e||(i=i||e.getContext("2d"),i.save(),i.resetTransform(),i.clearRect(0,0,e.width,e.height),i.restore())}function vi(e,i,t,s){Ps(e,i,t,s,null)}function Ps(e,i,t,s,n){let o,r,a,l,c,h,f,d,u=i.pointStyle,p=i.rotation,g=i.radius,m=(p||0)*jl;if(u&&typeof u=="object"&&(o=u.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(t,s),e.rotate(m),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),u){default:n?e.ellipse(t,s,n/2,g,0,0,j):e.arc(t,s,g,0,j),e.closePath();break;case"triangle":h=n?n/2:g,e.moveTo(t+Math.sin(m)*h,s-Math.cos(m)*g),m+=In,e.lineTo(t+Math.sin(m)*h,s-Math.cos(m)*g),m+=In,e.lineTo(t+Math.sin(m)*h,s-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=g*.516,l=g-c,r=Math.cos(m+Vt)*l,f=Math.cos(m+Vt)*(n?n/2-c:l),a=Math.sin(m+Vt)*l,d=Math.sin(m+Vt)*(n?n/2-c:l),e.arc(t-f,s-a,c,m-B,m-H),e.arc(t+d,s-r,c,m-H,m),e.arc(t+f,s+a,c,m,m+H),e.arc(t-d,s+r,c,m+H,m+B),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,h=n?n/2:l,e.rect(t-h,s-l,2*h,2*l);break}m+=Vt;case"rectRot":f=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(n?n/2:g),e.moveTo(t-f,s-a),e.lineTo(t+d,s-r),e.lineTo(t+f,s+a),e.lineTo(t-d,s+r),e.closePath();break;case"crossRot":m+=Vt;case"cross":f=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(n?n/2:g),e.moveTo(t-f,s-a),e.lineTo(t+f,s+a),e.moveTo(t+d,s-r),e.lineTo(t-d,s+r);break;case"star":f=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(n?n/2:g),e.moveTo(t-f,s-a),e.lineTo(t+f,s+a),e.moveTo(t+d,s-r),e.lineTo(t-d,s+r),m+=Vt,f=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(n?n/2:g),e.moveTo(t-f,s-a),e.lineTo(t+f,s+a),e.moveTo(t+d,s-r),e.lineTo(t-d,s+r);break;case"line":r=n?n/2:Math.cos(m)*g,a=Math.sin(m)*g,e.moveTo(t-r,s-a),e.lineTo(t+r,s+a);break;case"dash":e.moveTo(t,s),e.lineTo(t+Math.cos(m)*(n?n/2:g),s+Math.sin(m)*g);break;case!1:e.closePath();break}e.fill(),i.borderWidth>0&&e.stroke()}}function ft(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.x<i.right+t&&e.y>i.top-t&&e.y<i.bottom+t}function Ee(e,i){e.save(),e.beginPath(),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}function Fe(e){e.restore()}function no(e,i,t,s,n){if(!i)return e.lineTo(t.x,t.y);if(n==="middle"){let o=(i.x+t.x)/2;e.lineTo(o,i.y),e.lineTo(o,t.y)}else n==="after"!=!!s?e.lineTo(i.x,t.y):e.lineTo(t.x,i.y);e.lineTo(t.x,t.y)}function oo(e,i,t,s){if(!i)return e.lineTo(t.x,t.y);e.bezierCurveTo(s?i.cp1x:i.cp2x,s?i.cp1y:i.cp2y,s?t.cp2x:t.cp1x,s?t.cp2y:t.cp1y,t.x,t.y)}function ql(e,i){i.translation&&e.translate(i.translation[0],i.translation[1]),L(i.rotation)||e.rotate(i.rotation),i.color&&(e.fillStyle=i.color),i.textAlign&&(e.textAlign=i.textAlign),i.textBaseline&&(e.textBaseline=i.textBaseline)}function Gl(e,i,t,s,n){if(n.strikethrough||n.underline){let o=e.measureText(s),r=i-o.actualBoundingBoxLeft,a=i+o.actualBoundingBoxRight,l=t-o.actualBoundingBoxAscent,c=t+o.actualBoundingBoxDescent,h=n.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=n.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}
vendor: 5,079 bytes, line 1
1function Zl(e,i){let t=e.fillStyle;e.fillStyle=i.color,e.fillRect(i.left,i.top,i.width,i.height),e.fillStyle=t}function Dt(e,i,t,s,n,o={}){let r=z(i)?i:[i],a=o.strokeWidth>0&&o.strokeColor!=="",l,c;for(e.save(),e.font=n.string,ql(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&Zl(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),L(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,t,s,o.maxWidth)),e.fillText(c,t,s,o.maxWidth),Gl(e,t,s,c,o),s+=Number(n.lineHeight);e.restore()}function ce(e,i){let{x:t,y:s,w:n,h:o,radius:r}=i;e.arc(t+r.topLeft,s+r.topLeft,r.topLeft,1.5*B,B,!0),e.lineTo(t,s+o-r.bottomLeft),e.arc(t+r.bottomLeft,s+o-r.bottomLeft,r.bottomLeft,B,H,!0),e.lineTo(t+n-r.bottomRight,s+o),e.arc(t+n-r.bottomRight,s+o-r.bottomRight,r.bottomRight,H,0,!0),e.lineTo(t+n,s+r.topRight),e.arc(t+n-r.topRight,s+r.topRight,r.topRight,0,-H,!0),e.lineTo(t+r.topLeft,s)}var Jl=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Ql=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function tc(e,i){let t=(""+e).match(Jl);if(!t||t[1]==="normal")return i*1.2;switch(e=+t[2],t[3]){case"px":return e;case"%":e/=100;break}return i*e}var ec=e=>+e||0;function Mi(e,i){let t={},s=D(i),n=s?Object.keys(i):i,o=D(e)?s?r=>P(e[r],e[i[r]]):r=>e[r]:()=>e;for(let r of n)t[r]=ec(o(r));return t}function Cs(e){return Mi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Tt(e){return Mi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function q(e){let i=Cs(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function U(e,i){e=e||{},i=i||F.font;let t=P(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let s=P(e.style,i.style);s&&!(""+s).match(Ql)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let n={family:P(e.family,i.family),lineHeight:tc(P(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:P(e.weight,i.weight),string:""};return n.string=Kl(n),n}function he(e,i,t,s){let n=!0,o,r,a;for(o=0,r=e.length;o<r;++o)if(a=e[o],a!==void 0&&(i!==void 0&&typeof a=="function"&&(a=a(i),n=!1),t!==void 0&&z(a)&&(a=a[t%a.length],n=!1),a!==void 0))return s&&!n&&(s.cacheable=!1),a}function ro(e,i,t){let{min:s,max:n}=e,o=ds(i,(n-s)/2),r=(a,l)=>t&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function vt(e,i){return Object.assign(Object.create(e),i)}function wi(e,i=[""],t,s,n=()=>e[0]){let o=t||e;typeof s>"u"&&(s=co("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>wi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return ao(a,l,()=>cc(l,i,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return jn(a).includes(l)},ownKeys(a){return jn(a)},set(a,l,c){let h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function $t(e,i,t,s){let n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:As(e,s),setContext:o=>$t(e,o,t,s),override:o=>$t(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return ao(o,r,()=>sc(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function As(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:bt(t)?t:()=>t,isIndexable:bt(s)?s:()=>s}}var ic=(e,i)=>e?e+mi(i):i,Ds=(e,i)=>D(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function ao(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i)||i==="constructor")return e[i];let s=t();return e[i]=s,s}function sc(e,i,t){let{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e,a=s[i];return bt(a)&&r.isScriptable(i)&&(a=nc(i,a,e,t)),z(a)&&a.length&&(a=oc(i,a,e,r.isIndexable)),Ds(i,a)&&(a=$t(a,n,o&&o[i],r)),a}function nc(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_stack:a}=t;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=i(o,r||s);return a.delete(e),Ds(e,l)&&(l=Ts(n._scopes,n,e,l)),l}function oc(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(D(i[0])){let l=i,c=n._scopes.filter(h=>h!==l);i=[];for(let h of l){let f=Ts(c,n,e,h);i.push($t(f,o,r&&r[e],a))}}return i}function lo(e,i,t){return bt(e)?e(i,t):e}var rc=(e,i)=>e===!0?i:typeof e=="string"?yt(i,e):void 0;function ac(e,i,t,s,n){for(let o of i){let r=rc(t,o);if(r){e.add(r);let a=lo(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(r===!1&&typeof s<"u"&&t!==s)return null}return!1}function Ts(e,i,t,s){let n=i._rootScopes,o=lo(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);
1let l=Bn(a,r,t,o||t,s);return l===null||typeof o<"u"&&o!==t&&(l=Bn(a,r,o,l,s),l===null)?!1:wi(Array.from(a),[""],n,o,()=>lc(i,t,s))}function Bn(e,i,t,s,n){for(;t;)t=ac(e,i,t,s,n);return t}function lc(e,i,t){let s=e._getTarget();i in s||(s[i]={});let n=s[i];return z(n)&&D(t)?t:n||{}}function cc(e,i,t,s){let n;for(let o of i)if(n=co(ic(o,e),t),typeof n<"u")return Ds(e,n)?Ts(t,s,e,n):n}function co(e,i){for(let t of i){if(!t)continue;let s=t[e];if(typeof s<"u")return s}}function jn(e){let i=e._keys;return i||(i=e._keys=hc(e._scopes)),i}function hc(e){let i=new Set;for(let t of e)for(let s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}function Ls(e,i,t,s){let{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s),a,l,c,h;for(a=0,l=s;a<l;++a)c=a+t,h=i[c],r[a]={r:n.parse(yt(h,o),c)};return r}var fc=Number.EPSILON||1e-14,se=(e,i)=>i<e.length&&!e[i].skip&&e[i],ho=e=>e==="x"?"y":"x";function dc(e,i,t,s){let n=e.skip?i:e,o=i,r=t.skip?i:t,a=pi(o,n),l=pi(r,o),c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let f=s*c,d=s*h;return{previous:{x:o.x-f*(r.x-n.x),y:o.y-f*(r.y-n.y)},next:{x:o.x+d*(r.x-n.x),y:o.y+d*(r.y-n.y)}}}function uc(e,i,t){let s=e.length,n,o,r,a,l,c=se(e,0);for(let h=0;h<s-1;++h)if(l=c,c=se(e,h+1),!(!l||!c)){if(re(i[h],0,fc)){t[h]=t[h+1]=0;continue}n=t[h]/i[h],o=t[h+1]/i[h],a=Math.pow(n,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),t[h]=n*r*i[h],t[h+1]=o*r*i[h])}}function pc(e,i,t="x"){let s=ho(t),n=e.length,o,r,a,l=se(e,0);for(let c=0;c<n;++c){if(r=a,a=l,l=se(e,c+1),!a)continue;let h=a[t],f=a[s];r&&(o=(h-r[t])/3,a[`cp1${t}`]=h-o,a[`cp1${s}`]=f-o*i[c]),l&&(o=(l[t]-h)/3,a[`cp2${t}`]=h+o,a[`cp2${s}`]=f+o*i[c])}}function gc(e,i="x"){let t=ho(i),s=e.length,n=Array(s).fill(0),o=Array(s),r,a,l,c=se(e,0);for(r=0;r<s;++r)if(a=l,l=c,c=se(e,r+1),!!l){if(c){let h=c[i]-l[i];n[r]=h!==0?(c[t]-l[t])/h:0}o[r]=a?c?ct(n[r-1])!==ct(n[r])?0:(n[r-1]+n[r])/2:n[r-1]:n[r]}uc(e,n,o),pc(e,o,i)}function hi(e,i,t){return Math.max(Math.min(e,t),i)}function mc(e,i){let t,s,n,o,r,a=ft(e[0],i);for(t=0,s=e.length;t<s;++t)r=o,o=a,a=t<s-1&&ft(e[t+1],i),o&&(n=e[t],r&&(n.cp1x=hi(n.cp1x,i.left,i.right),n.cp1y=hi(n.cp1y,i.top,i.bottom)),a&&(n.cp2x=hi(n.cp2x,i.left,i.right),n.cp2y=hi(n.cp2y,i.top,i.bottom)))}function fo(e,i,t,s,n){let o,r,a,l;if(i.spanGaps&&(e=e.filter(c=>!c.skip)),i.cubicInterpolationMode==="monotone")gc(e,n);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=dc(c,a,e[Math.min(o+1,r-(s?0:1))%r],i.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}i.capBezierPoints&&mc(e,t)}function Si(){return typeof window<"u"&&typeof document<"u"}function ki(e){let i=e.parentNode;return i&&i.toString()==="[object ShadowRoot]"&&(i=i.host),i}function gi(e,i,t){let s;return typeof e=="string"?(s=parseInt(e,10),e.indexOf("%")!==-1&&(s=s/100*i.parentNode[t])):s=e,s}var Oi=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function xc(e,i){return Oi(e).getPropertyValue(i)}var bc=["top","right","bottom","left"];function Ht(e,i,t){let s={};t=t?"-"+t:"";for(let n=0;n<4;n++){let o=bc[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var _c=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function yc(e,i){let t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s,r=!1,a,l;if(_c(n,o,e.target))a=n,l=o;else{let c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Lt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:s}=i,n=Oi(t),o=n.boxSizing==="border-box",r=Ht(n,"padding"),a=Ht(n,"border","width"),{x:l,y:c,box:h}=yc(e,t),f=r.left+(h&&a.left),d=r.top+(h&&a.top),{width:u,height:p}=i;return o&&(u-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-f)/u*t.width/s),y:Math.round((c-d)/p*t.height/s)}}function vc(e,i,t){let s,n;if(i===void 0||t===void 0){let o=e&&ki(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let r=o.getBoundingClientRect(),a=Oi(o),l=Ht(a,"border","width"),c=Ht(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=gi(a.maxWidth,o,"clientWidth"),n=gi(a.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:s||ui,maxHeight:n||ui}}var fi=e=>Math.round(e*10)/10;
vendor: 4,390 bytes, line 1
1function uo(e,i,t,s){let n=Oi(e),o=Ht(n,"margin"),r=gi(n.maxWidth,e,"clientWidth")||ui,a=gi(n.maxHeight,e,"clientHeight")||ui,l=vc(e,i,t),{width:c,height:h}=l;if(n.boxSizing==="content-box"){let d=Ht(n,"border","width"),u=Ht(n,"padding");c-=u.width+d.width,h-=u.height+d.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=fi(Math.min(c,r,l.maxWidth)),h=fi(Math.min(h,a,l.maxHeight)),c&&!h&&(h=fi(c/2)),(i!==void 0||t!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=fi(Math.floor(h*s))),{width:c,height:h}}function Rs(e,i,t){let s=i||1,n=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(t||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=s,r.height=n,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var po=function(){let e=!1;try{let i={get passive(){return e=!0,!1}};Si()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function Is(e,i){let t=xc(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Pt(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function go(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:s==="middle"?t<.5?e.y:i.y:s==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function mo(e,i,t,s){let n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=Pt(e,n,t),a=Pt(n,o,t),l=Pt(o,i,t),c=Pt(r,a,t),h=Pt(a,l,t);return Pt(c,h,t)}var Mc=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,s){return t-s},leftForLtr(t,s){return t-s}}},wc=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function Yt(e,i,t){return e?Mc(i,t):wc()}function Es(e,i){let t,s;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function Fs(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function xo(e){return e==="angle"?{between:ae,compare:Nl,normalize:J}:{between:ut,compare:(i,t)=>i-t,normalize:i=>i}}function Nn({start:e,end:i,count:t,loop:s,style:n}){return{start:e%t,end:i%t,loop:s&&(i-e+1)%t===0,style:n}}function Sc(e,i,t){let{property:s,start:n,end:o}=t,{between:r,normalize:a}=xo(s),l=i.length,{start:c,end:h,loop:f}=e,d,u;if(f){for(c+=l,h+=l,d=0,u=l;d<u&&r(a(i[c%l][s]),n,o);++d)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:f,style:e.style}}function zs(e,i,t){if(!t)return[e];let{property:s,start:n,end:o}=t,r=i.length,{compare:a,between:l,normalize:c}=xo(s),{start:h,end:f,loop:d,style:u}=Sc(e,i,t),p=[],g=!1,m=null,b,x,y,M=()=>l(n,y,b)&&a(n,y)!==0,_=()=>a(o,b)===0||l(o,y,b),v=()=>g||M(),S=()=>!g||_();for(let w=h,O=h;w<=f;++w)x=i[w%r],!x.skip&&(b=c(x[s]),b!==y&&(g=l(b,n,o),m===null&&v()&&(m=a(b,n)===0?w:O),m!==null&&S()&&(p.push(Nn({start:m,end:w,loop:d,count:r,style:u})),m=null),O=w,y=b));return m!==null&&p.push(Nn({start:m,end:f,loop:d,count:r,style:u})),p}function Bs(e,i){let t=[],s=e.segments;for(let n=0;n<s.length;n++){let o=zs(s[n],e.points,i);o.length&&t.push(...o)}return t}function kc(e,i,t,s){let n=0,o=i-1;if(t&&!s)for(;n<i&&!e[n].skip;)n++;for(;n<i&&e[n].skip;)n++;for(n%=i,t&&(o+=n);o>n&&e[o%i].skip;)o--;return o%=i,{start:n,end:o}}function Oc(e,i,t,s){let n=e.length,o=[],r=i,a=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:i%n,end:(l-1)%n,loop:s}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return r!==null&&o.push({start:i%n,end:r%n,loop:s}),o}function bo(e,i){let t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];let o=!!e._loop,{start:r,end:a}=kc(t,n,o,s);if(s===!0)return Wn(e,[{start:r,end:a,loop:o}],t,i);let l=a<r?a+n:a,c=!!e._fullLoop&&r===0&&a===n-1;return Wn(e,Oc(t,r,l,c),t,i)}function Wn(e,i,t,s){return!s||!s.setContext||!t?i:Pc(e,i,t,s)}function Pc(e,i,t,s){let n=e._chart.getContext(),o=Vn(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=t.length,c=[],h=o,f=i[0].start,d=f;function u(p,g,m,b){let x=a?-1:1;if(p!==g){for(p+=l;t[p%l].skip;)p-=x;for(;t[g%l].skip;)g+=x;p%l!==g%l&&(c.push({start:p%l,end:g%l,loop:m,style:b}),h=b,f=g%l)}}for(let p of i){f=a?f:p.start;let g=t[f%l],m;
vendor: 2,298 bytes, line 1
1for(d=f+1;d<=p.end;d++){let b=t[d%l];m=Vn(s.setContext(vt(n,{type:"segment",p0:g,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Cc(m,h)&&u(f,d-1,p.loop,h),g=b,h=m}f<d-1&&u(f,d-1,p.loop,h)}return c}function Vn(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Cc(e,i){if(!i)return!1;let t=[],s=function(n,o){return Ss(o)?(t.includes(o)||t.push(o),t.indexOf(o)):o};return JSON.stringify(e,s)!==JSON.stringify(i,s)}var qs=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(i,t,s,n){let o=t.listeners[n],r=t.duration;o.forEach(a=>a({chart:i,initial:t.initial,numSteps:r,currentStep:Math.min(s-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=ys.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(i),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,i,"progress")),o.length||(s.running=!1,this._notify(n,s,i,"complete"),s.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,s=t.get(i);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,s)),s}listen(i,t,s){this._getAnims(i).listeners[t].push(s)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let s=t.items,n=s.length-1;for(;n>=0;--n)s[n].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},Mt=new qs,_o="transparent",Ac={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let s=ks(e||_o),n=s.valid&&ks(i||_o);
vendor: 14,699 bytes, line 1
1return n&&n.valid?n.mix(s,t).hexString():i},number(e,i,t){return e+(i-e)*t}},Gs=class{constructor(i,t,s,n){let o=t[s];n=he([i.to,n,o,i.from]);let r=he([i.from,o,n]);this._active=!0,this._fn=i.fn||Ac[i.type||typeof r],this._easing=ee[i.easing]||ee.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(i,t,s){if(this._active){this._notify(!1);let n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=he([i.to,t,n,i.from]),this._from=he([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to,l;if(this._active=o!==a&&(r||t<s),!this._active){this._target[n]=a,this._notify(!0);return}if(t<0){this._target[n]=o;return}l=t/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){let t=i?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][t]()}},Fi=class{constructor(i,t){this._chart=i,this._properties=new Map,this.configure(t)}configure(i){if(!D(i))return;let t=Object.keys(F.animation),s=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{let o=i[n];if(!D(o))return;let r={};for(let a of t)r[a]=o[a];(z(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){let s=t.options,n=Tc(i,s);if(!n)return[];let o=this._createAnimations(n,s);return s.$shared&&Dc(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){let s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now(),l;for(l=r.length-1;l>=0;--l){let c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(i,t));continue}let h=t[c],f=o[c],d=s.get(c);if(f)if(d&&f.active()){f.update(d,h,a);continue}else f.cancel();if(!d||!d.duration){i[c]=h;continue}o[c]=f=new Gs(d,i,c,h),n.push(f)}return n}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let s=this._createAnimations(i,t);if(s.length)return Mt.add(this._chart,s),!0}};function Dc(e,i){let t=[],s=Object.keys(i);for(let n=0;n<s.length;n++){let o=e[s[n]];o&&o.active()&&t.push(o.wait())}return Promise.all(t)}function Tc(e,i){if(!i)return;let t=e.options;if(!t){e.options=i;return}return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t}function yo(e,i){let t=e&&e.options||{},s=t.reverse,n=t.min===void 0?i:0,o=t.max===void 0?i:0;return{start:s?o:n,end:s?n:o}}function Lc(e,i,t){if(t===!1)return!1;let s=yo(e,t),n=yo(i,t);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}function Rc(e){let i,t,s,n;return D(e)?(i=e.top,t=e.right,s=e.bottom,n=e.left):i=t=s=n=e,{top:i,right:t,bottom:s,left:n,disabled:e===!1}}function _r(e,i){let t=[],s=e._getSortedDatasetMetas(i),n,o;for(n=0,o=s.length;n<o;++n)t.push(s[n].index);return t}function vo(e,i,t,s={}){let n=e.keys,o=s.mode==="single",r,a,l,c;if(i===null)return;let h=!1;for(r=0,a=n.length;r<a;++r){if(l=+n[r],l===t){if(h=!0,s.all)continue;break}c=e.values[l],V(c)&&(o||i===0||ct(i)===ct(c))&&(i+=c)}return!h&&!s.all?0:i}function Ic(e,i){let{iScale:t,vScale:s}=i,n=t.axis==="x"?"x":"y",o=s.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length),l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[n]:h,[o]:e[h]};return a}function js(e,i){let t=e&&e.options.stacked;return t||t===void 0&&i.stack!==void 0}function Ec(e,i,t){return`${e.id}.${i.id}.${t.stack||t.type}`}function Fc(e){let{min:i,max:t,minDefined:s,maxDefined:n}=e.getUserBounds();return{min:s?i:Number.NEGATIVE_INFINITY,max:n?t:Number.POSITIVE_INFINITY}}function zc(e,i,t){let s=e[i]||(e[i]={});return s[t]||(s[t]={})}function Mo(e,i,t,s){for(let n of i.getMatchingVisibleMetas(s).reverse()){let o=e[n.index];if(t&&o>0||!t&&o<0)return n.index}return null}function wo(e,i){let{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=Ec(o,r,s),f=i.length,d;for(let u=0;u<f;++u){let p=i[u],{[l]:g,[c]:m}=p,b=p._stacks||(p._stacks={});d=b[c]=zc(n,h,g),d[a]=m,d._top=Mo(d,r,!0,s.type),d._bottom=Mo(d,r,!1,s.type);let x=d._visualValues||(d._visualValues={});x[a]=m}}function Ns(e,i){let t=e.scales;return Object.keys(t).filter(s=>t[s].axis===i).shift()}function Bc(e,i){return vt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function jc(e,i,t){return vt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function ze(e,i){let t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(let n of i){let o=n._stacks;if(!o||o[s]===void 0||o[s][t]===void 0)return;delete o[s][t],o[s]._visualValues!==void 0&&o[s]._visualValues[t]!==void 0&&delete o[s]._visualValues[t]}}}var Ws=e=>e==="reset"||e==="none",So=(e,i)=>i?e:Object.assign({},e),Nc=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:_r(t,!0),values:null},It=(()=>{class e{constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=js(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ze(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(d,u,p,g)=>d==="x"?u:d==="r"?g:p,r=s.xAxisID=P(n.xAxisID,Ns(t,"x")),a=s.yAxisID=P(n.yAxisID,Ns(t,"y")),l=s.rAxisID=P(n.rAxisID,Ns(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),f=s.vAxisID=o(c,a,r,l);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(a),s.rScale=this.getScaleForId(l),s.iScale=this.getScaleForId(h),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&bs(this._data,this),t._stacked&&ze(t)}_dataCheck(){let t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(D(s)){let o=this._cachedMeta;this._data=Ic(s,o)}else if(n!==s){if(n){bs(n,this);let o=this._cachedMeta;ze(o),o._parsed=[]}s&&Object.isExtensible(s)&&Qn(s,this),this._syncList=[],this._data=s}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let s=this._cachedMeta,n=this.getDataset(),o=!1;this._dataCheck();let r=s._stacked;s._stacked=js(s.vScale,s),s.stack!==n.stack&&(o=!0,ze(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&(wo(this,s._parsed),s._stacked=js(s.vScale,s))}configure(){let t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){let{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis,c=t===0&&s===o.length?!0:n._sorted,h=t>0&&n._parsed[t-1],f,d,u;if(this._parsing===!1)n._parsed=o,n._sorted=!0,u=o;else{z(o[t])?u=this.parseArrayData(n,o,t,s):D(o[t])?u=this.parseObjectData(n,o,t,s):u=this.parsePrimitiveData(n,o,t,s);let p=()=>d[l]===null||h&&d[l]<h[l];for(f=0;f<s;++f)n._parsed[f+t]=d=u[f],c&&(p()&&(c=!1),h=d);n._sorted=c}a&&wo(this,u)}parsePrimitiveData(t,s,n,o){let{iScale:r,vScale:a}=t,l=r.axis,c=a.axis,h=r.getLabels(),f=r===a,d=new Array(o),u,p,g;for(u=0,p=o;u<p;++u)g=u+n,d[u]={[l]:f||r.parse(h[g],g),[c]:a.parse(s[g],g)};return d}parseArrayData(t,s,n,o){let{xScale:r,yScale:a}=t,l=new Array(o),c,h,f,d;for(c=0,h=o;c<h;++c)f=c+n,d=s[f],l[c]={x:r.parse(d[0],f),y:a.parse(d[1],f)};return l}parseObjectData(t,s,n,o){let{xScale:r,yScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=new Array(o),f,d,u,p;for(f=0,d=o;f<d;++f)u=f+n,p=s[u],h[f]={x:r.parse(yt(p,l),u),y:a.parse(yt(p,c),u)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,s,n){let o=this.chart,r=this._cachedMeta,a=s[t.axis],l={keys:_r(o,!0),values:s._stacks[t.axis]._visualValues};return vo(l,a,r.index,{mode:n})}updateRangeFromParsed(t,s,n,o){let r=n[s.axis],a=r===null?NaN:r,l=o&&n._stacks[s.axis];o&&l&&(o.values=l,a=vo(o,r,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,s){let n=this._cachedMeta,o=n._parsed,r=n._sorted&&t===n.iScale,a=o.length,l=this._getOtherScale(t),c=Nc(s,n,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:d}=Fc(l),u,p;function g(){p=o[u];let m=p[l.axis];return!V(p[t.axis])||f>m||d<m}for(u=0;u<a&&!(!g()&&(this.updateRangeFromParsed(h,t,p,c),r));++u);if(r){for(u=a-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(h,t,p,c);break}}return h}getAllParsedValues(t){let s=this._cachedMeta._parsed,n=[],o,r,a;for(o=0,r=s.length;o<r;++o)a=s[o][t.axis],V(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){let s=this._cachedMeta,n=s.iScale,o=s.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(t){let s=this._cachedMeta;this.update(t||"default"),s._clip=Rc(P(this.options.clip,Lc(s.xScale,s.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,s=this.chart,n=this._cachedMeta,o=n.data||[],r=s.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||o.length-l,h=this.options.drawActiveElementsOnTop,f;for(n.dataset&&n.dataset.draw(t,r,l,c),f=l;f<l+c;++f){let d=o[f];d.hidden||(d.active&&h?a.push(d):d.draw(t,r))}for(f=0;f<a.length;++f)a[f].draw(t,r)}getStyle(t,s){let n=s?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,s,n){let o=this.getDataset(),r;if(t>=0&&t<this._cachedMeta.data.length){let a=this._cachedMeta.data[t];r=a.$context||(a.$context=jc(this.getContext(),t,a)),r.parsed=this.getParsed(t),r.raw=o.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=Bc(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!s,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,s){return this._resolveElementOptions(this.dataElementType.id,s,t)}_resolveElementOptions(t,s="default",n){let o=s==="active",r=this._cachedDataOpts,a=t+"-"+s,l=r[a],c=this.enableOptionSharing&&oe(n);if(l)return So(l,c);let h=this.chart.config,f=h.datasetElementScopeKeys(this._type,t),d=o?[`${t}Hover`,"hover",t,""]:[t,""],u=h.getOptionScopes(this.getDataset(),f),p=Object.keys(F.elements[t]),g=()=>this.getContext(n,o,s),m=h.resolveNamedOptions(u,p,g,d);return m.$shared&&(m.$shared=c,r[a]=Object.freeze(So(m,c))),m}_resolveAnimations(t,s,n){let o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(o.options.animation!==!1){let f=this.chart.config,d=f.datasetAnimationScopeKeys(this._type,s),u=f.getOptionScopes(this.getDataset(),d);c=f.createResolver(u,this.getContext(t,n,s))}let h=new Fi(o,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Ws(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){let n=this.resolveDataElementOptions(t,s),o=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(s,r)||r!==o;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:a}}updateElement(t,s,n,o){Ws(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!Ws(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;let r=this.getStyle(s,o);this._resolveAnimations(s,n,o).update(t,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let s=this._data,n=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=n.length,r=s.length,a=Math.min(r,o);a&&this.parse(0,a),r>o?this._insertElements(o,r-o,t):r<o&&this._removeElements(r,o-r)}_insertElements(t,s,n=!0){let o=this._cachedMeta,r=o.data,a=t+s,l,c=h=>{for(h.length+=s,l=h.length-1;l>=a;l--)h[l]=h[l-s]};for(c(r),l=t;l<a;++l)r[l]=new this.dataElementType;this._parsing&&c(o._parsed),this.parse(t,s),n&&this.updateElements(r,t,s,"reset")}updateElements(t,s,n,o){}_removeElements(t,s){let n=this._cachedMeta;if(this._parsing){let o=n._parsed.splice(t,s);n._stacked&&ze(n,o)}n.data.splice(t,s)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[s,n,o]=t;this[s](n,o)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,s){s&&this._sync(["_removeElements",t,s]);let n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return k(e,"defaults",{}),k(e,"datasetElementType",null),k(e,"dataElementType",null),e})();function Wc(e,i){if(!e._cache.$bar){let t=e.getMatchingVisibleMetas(i),s=[];for(let n=0,o=t.length;n<o;n++)s=s.concat(t[n].controller.getAllParsedValues(e));e._cache.$bar=_s(s.sort((n,o)=>n-o))}return e._cache.$bar}function Vc(e){let i=e.iScale,t=Wc(i,e.type),s=i._length,n,o,r,a,l=()=>
vendor: 5,043 bytes, line 1
1{r===32767||r===-32768||(oe(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=t.length;n<o;++n)r=i.getPixelForValue(t[n]),l();for(a=void 0,n=0,o=i.ticks.length;n<o;++n)r=i.getPixelForTick(n),l();return s}function Hc(e,i,t,s){let n=t.barThickness,o,r;return L(n)?(o=i.min*t.categoryPercentage,r=t.barPercentage):(o=n*s,r=1),{chunk:o/s,ratio:r,start:i.pixels[e]-o/2}}function $c(e,i,t,s){let n=i.pixels,o=n[e],r=e>0?n[e-1]:null,a=e<n.length-1?n[e+1]:null,l=t.categoryPercentage;r===null&&(r=o-(a===null?i.end-i.start:a-o)),a===null&&(a=o+o-r);let c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/s,ratio:t.barPercentage,start:c}}function Uc(e,i,t,s){let n=t.parse(e[0],s),o=t.parse(e[1],s),r=Math.min(n,o),a=Math.max(n,o),l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function yr(e,i,t,s){return z(e)?Uc(e,i,t,s):i[t.axis]=t.parse(e,s),i}function ko(e,i,t,s){let n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[],c,h,f,d;for(c=t,h=t+s;c<h;++c)d=i[c],f={},f[n.axis]=a||n.parse(r[c],c),l.push(yr(d,f,o,c));return l}function Vs(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function Yc(e,i,t){return e!==0?ct(e):(i.isHorizontal()?1:-1)*(i.min>=t?1:-1)}function Xc(e){let i,t,s,n,o;return e.horizontal?(i=e.base>e.x,t="left",s="right"):(i=e.base<e.y,t="bottom",s="top"),i?(n="end",o="start"):(n="start",o="end"),{start:t,end:s,reverse:i,top:n,bottom:o}}function Kc(e,i,t,s){let n=i.borderSkipped,o={};if(!n){e.borderSkipped=o;return}if(n===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:r,end:a,reverse:l,top:c,bottom:h}=Xc(e);n==="middle"&&t&&(e.enableBorderRadius=!0,(t._top||0)===s?n=c:(t._bottom||0)===s?n=h:(o[Oo(h,r,a,l)]=!0,n=c)),o[Oo(n,r,a,l)]=!0,e.borderSkipped=o}function Oo(e,i,t,s){return s?(e=qc(e,i,t),e=Po(e,t,i)):e=Po(e,i,t),e}function qc(e,i,t){return e===i?t:e===t?i:e}function Po(e,i,t){return e==="start"?i:e==="end"?t:e}function Gc(e,{inflateAmount:i},t){e.inflateAmount=i==="auto"?t===1?.33:0:i}var Zc=(()=>{class e extends It{parsePrimitiveData(t,s,n,o){return ko(t,s,n,o)}parseArrayData(t,s,n,o){return ko(t,s,n,o)}parseObjectData(t,s,n,o){let{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=r.axis==="x"?l:c,f=a.axis==="x"?l:c,d=[],u,p,g,m;for(u=n,p=n+o;u<p;++u)m=s[u],g={},g[r.axis]=r.parse(yt(m,h),u),d.push(yr(yt(m,f),g,a,u));return d}updateRangeFromParsed(t,s,n,o){super.updateRangeFromParsed(t,s,n,o);let r=n._custom;r&&s===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let s=this._cachedMeta,{iScale:n,vScale:o}=s,r=this.getParsed(t),a=r._custom,l=Vs(a)?"["+a.start+", "+a.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let s=this._cachedMeta;this.updateElements(s.data,0,s.data.length,t)}updateElements(t,s,n,o){let r=o==="reset",{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),h=l.isHorizontal(),f=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(s,o);for(let p=s;p<s+n;p++){let g=this.getParsed(p),m=r||L(g[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(p),b=this._calculateBarIndexPixels(p,f),x=(g._stacks||{})[l.axis],y={horizontal:h,base:m.base,enableBorderRadius:!x||Vs(g._custom)||a===x._top||a===x._bottom,x:h?m.head:b.center,y:h?b.center:m.head,height:h?b.size:Math.abs(m.size),width:h?Math.abs(m.size):b.size};u&&(y.options=d||this.resolveDataElementOptions(p,t[p].active?"active":o));let M=y.options||t[p].options;Kc(y,M,x,a),Gc(y,M,f.ratio),this.updateElement(t[p],p,y,o)}}_getStacks(t,s){let{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),r=n.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(s),c=l&&l[n.axis],h=f=>{let d=f._parsed.find(p=>p[n.axis]===c),u=d&&d[f.vScale.axis];if(L(u)||isNaN(u))return!0};for(let f of o)if(!(s!==void 0&&h(f))&&((r===!1||a.indexOf(f.stack)===-1||r===void 0&&f.stack===void 0)&&a.push(f.stack),f.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){let o=this._getStacks(t,n),r=s!==void 0?o.indexOf(s):-1;return r===-1?o.length-1:r}_getRuler(){let t=this.options,s=this._cachedMeta,n=s.iScale,o=[],r,a;for(r=0,a=s.data.length;r<a;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));let l=t.barThickness;return{min:l||Vc(s),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:s,_stacked:n,index:o},options:{base:r,minBarLength:a}}=this,l=r||0,c=this.getParsed(t),h=c._custom,f=Vs(h),d=c[s.axis],u=0,p=n?this.applyStack(s,c,n):d,g,m;p!==d&&(u=p-d,p=d),f&&(d=h.barStart,p=h.barEnd-h.barStart,d!==0&&ct(d)!==ct(h.barEnd)&&(u=0),u+=d);
1let b=!L(r)&&!f?r:u,x=s.getPixelForValue(b);if(this.chart.getDataVisibility(t)?g=s.getPixelForValue(u+p):g=x,m=g-x,Math.abs(m)<a){m=Yc(m,s,l)*a,d===l&&(x-=m/2);let y=s.getPixelForDecimal(0),M=s.getPixelForDecimal(1),_=Math.min(y,M),v=Math.max(y,M);x=Math.max(Math.min(x,v),_),g=x+m,n&&!f&&(c._stacks[s.axis]._visualValues[o]=s.getValueForPixel(g)-s.getValueForPixel(x))}if(x===s.getPixelForValue(l)){let y=ct(m)*s.getLineWidthForValue(l)/2;x+=y,m-=y}return{size:m,base:x,head:g,center:g+m/2}}_calculateBarIndexPixels(t,s){let n=s.scale,o=this.options,r=o.skipNull,a=P(o.maxBarThickness,1/0),l,c;if(s.grouped){let h=r?this._getStackCount(t):s.stackCount,f=o.barThickness==="flex"?$c(t,s,o,h):Hc(t,s,o,h),d=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);l=f.start+f.chunk*d+f.chunk/2,c=Math.min(a,f.chunk*f.ratio)}else l=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(a,s.min*s.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let t=this._cachedMeta,s=t.vScale,n=t.data,o=n.length,r=0;for(;r<o;++r)this.getParsed(r)[s.axis]!==null&&!n[r].hidden&&n[r].draw(this._ctx)}}return k(e,"id","bar"),k(e,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),k(e,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}}),e})(),Jc=(()=>{class e extends It{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){let r=super.parsePrimitiveData(t,s,n,o);for(let a=0;a<r.length;a++)r[a]._custom=this.resolveDataElementOptions(a+n).radius;return r}parseArrayData(t,s,n,o){let r=super.parseArrayData(t,s,n,o);for(let a=0;a<r.length;a++){let l=s[n+a];r[a]._custom=P(l[2],this.resolveDataElementOptions(a+n).radius)}return r}parseObjectData(t,s,n,o){let r=super.parseObjectData(t,s,n,o);for(let a=0;a<r.length;a++){let l=s[n+a];r[a]._custom=P(l&&l.r&&+l.r,this.resolveDataElementOptions(a+n).radius)}return r}getMaxOverflow(){let t=this._cachedMeta.data,s=0;for(let n=t.length-1;n>=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y),h=a._custom;return{label:n[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),f=a.axis,d=l.axis;for(let u=s;u<s+n;u++){let p=t[u],g=!r&&this.getParsed(u),m={},b=m[f]=r?a.getPixelForDecimal(.5):a.getPixelForValue(g[f]),x=m[d]=r?l.getBasePixel():l.getPixelForValue(g[d]);m.skip=isNaN(b)||isNaN(x),h&&(m.options=c||this.resolveDataElementOptions(u,p.active?"active":o),r&&(m.options.radius=0)),this.updateElement(p,u,m,o)}}resolveDataElementOptions(t,s){let n=this.getParsed(t),o=super.resolveDataElementOptions(t,s);o.$shared&&(o=Object.assign({},o,{$shared:!1}));let r=o.radius;return s!=="active"&&(o.radius=0),o.radius+=P(n&&n._custom,r),o}}return k(e,"id","bubble"),k(e,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),k(e,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}}),e})();function Qc(e,i,t){let s=1,n=1,o=0,r=0;if(i<j){let a=e,l=a+i,c=Math.cos(a),h=Math.sin(a),f=Math.cos(l),d=Math.sin(l),u=(y,M,_)=>ae(y,a,l,!0)?1:Math.max(M,M*t,_,_*t),p=(y,M,_)=>ae(y,a,l,!0)?-1:Math.min(M,M*t,_,_*t),g=u(0,c,f),m=u(H,h,d),b=p(B,c,f),x=p(B+H,h,d);s=(g-b)/2,n=(m-x)/2,o=-(g+b)/2,r=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}var fn=(()=>{class e extends It{constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){let n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let r=c=>+n[c];if(D(n[t])){let{key:c="value"}=this._parsing;r=h=>+yt(n[h],c)}let a,l;for(a=t,l=t+s;a<l;++a)o._parsed[a]=r(a)}}_getRotation(){return rt(this.options.rotation-90)}_getCircumference(){return rt(this.options.circumference)}_getRotationExtents(){let t=j,s=-j;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){let o=this.chart.getDatasetMeta(n).controller,r=
1o._getRotation(),a=o._getCircumference();t=Math.min(t,r),s=Math.max(s,r+a)}return{rotation:t,circumference:s-t}}update(t){let s=this.chart,{chartArea:n}=s,o=this._cachedMeta,r=o.data,a=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,l=Math.max((Math.min(n.width,n.height)-a)/2,0),c=Math.min($n(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:f,rotation:d}=this._getRotationExtents(),{ratioX:u,ratioY:p,offsetX:g,offsetY:m}=Qc(d,f,c),b=(n.width-a)/u,x=(n.height-a)/p,y=Math.max(Math.min(b,x)/2,0),M=ds(this.options.radius,y),_=Math.max(M*c,0),v=(M-_)/this._getVisibleDatasetWeightTotal();this.offsetX=g*M,this.offsetY=m*M,o.total=this.calculateTotal(),this.outerRadius=M-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*h,0),this.updateElements(r,0,r.length,t)}_circumference(t,s){let n=this.options,o=this._cachedMeta,r=this._getCircumference();return s&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||o._parsed[t]===null||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*r/j)}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,l=a.chartArea,h=a.options.animation,f=(l.left+l.right)/2,d=(l.top+l.bottom)/2,u=r&&h.animateScale,p=u?0:this.innerRadius,g=u?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(s,o),x=this._getRotation(),y;for(y=0;y<s;++y)x+=this._circumference(y,r);for(y=s;y<s+n;++y){let M=this._circumference(y,r),_=t[y],v={x:f+this.offsetX,y:d+this.offsetY,startAngle:x,endAngle:x+M,circumference:M,outerRadius:g,innerRadius:p};b&&(v.options=m||this.resolveDataElementOptions(y,_.active?"active":o)),x+=M,this.updateElement(_,y,v,o)}}calculateTotal(){let t=this._cachedMeta,s=t.data,n=0,o;for(o=0;o<s.length;o++){let r=t._parsed[o];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(o)&&!s[o].hidden&&(n+=Math.abs(r))}return n}calculateCircumference(t){let s=this._cachedMeta.total;return s>0&&!isNaN(t)?j*(Math.abs(t)/s):0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=le(s._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0,n=this.chart,o,r,a,l,c;if(!t){for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){a=n.getDatasetMeta(o),t=a.data,l=a.controller;break}}if(!t)return 0;for(o=0,r=t.length;o<r;++o)c=l.resolveDataElementOptions(o),c.borderAlign!=="inner"&&(s=Math.max(s,c.borderWidth||0,c.hoverBorderWidth||0));return s}getMaxOffset(t){let s=0;for(let n=0,o=t.length;n<o;++n){let r=this.resolveDataElementOptions(n);s=Math.max(s,r.offset||0,r.hoverOffset||0)}return s}_getRingWeightOffset(t){let s=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(s+=this._getRingWeight(n));return s}_getRingWeight(t){return Math.max(P(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return k(e,"id","doughnut"),k(e,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),k(e,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),k(e,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}}),e})(),th=(()=>{class e extends It{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled,{start:l,count:c}=Ms(s,o,a);this._drawStart=l,this._drawCount=c,ws(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:d}=this._getSharedOptions(s,o),u=a.axis,p=l.axis,{spanGaps:g,segment:m}=this.options,b=Ut(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||r||o==="none",y=s+n,M=t.length,_=s>0&&this.getParsed(s-1);for(let v=0;v<M;++v){let S=t[v],w=x?S:{};if(v<s||v>=y){w.skip=!0;continue}let O=this.getParsed(v),A=L(O[p]),C=w[u]=a.getPixelForValue(O[u],v),T=w[p]=r||A?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,O,c):O[p],v);w.skip=isNaN(C)||isNaN(T)||A,w.stop=v>0&&Math.abs(O[u]-_[u])>
1b,m&&(w.parsed=O,w.raw=h.data[v]),d&&(w.options=f||this.resolveDataElementOptions(v,S.active?"active":o)),x||this.updateElement(S,v,w,o),_=O}}getMaxOverflow(){let t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;let r=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,a)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return k(e,"id","line"),k(e,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),k(e,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}}),e})(),vr=(()=>{class e extends It{constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=le(s._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Ls.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){let t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,o)=>{let r=this.getParsed(o).r;!isNaN(r)&&this.chart.getDataVisibility(o)&&(r<s.min&&(s.min=r),r>s.max&&(s.max=r))}),s}_updateRadius(){let t=this.chart,s=t.chartArea,n=t.options,o=Math.min(s.right-s.left,s.bottom-s.top),r=Math.max(o/2,0),a=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),l=(r-a)/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*B,p=u,g,m=360/this.countVisibleElements();for(g=0;g<s;++g)p+=this._computeAngle(g,o,m);for(g=s;g<s+n;g++){let b=t[g],x=p,y=p+this._computeAngle(g,o,m),M=a.getDataVisibility(g)?h.getDistanceFromCenterForValue(this.getParsed(g).r):0;p=y,r&&(c.animateScale&&(M=0),c.animateRotate&&(x=y=u));let _={x:f,y:d,innerRadius:0,outerRadius:M,startAngle:x,endAngle:y,options:this.resolveDataElementOptions(g,b.active?"active":o)};this.updateElement(b,g,_,o)}}countVisibleElements(){let t=this._cachedMeta,s=0;return t.data.forEach((n,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?rt(this.resolveDataElementOptions(t,s).angle||n):0}}return k(e,"id","polarArea"),k(e,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),k(e,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}}),e})(),eh=(()=>{class e extends fn{}return k(e,"id","pie"),k(e,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"}),e})(),ih=(()=>{class e extends It{getLabelAndValue(t){let s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,o){return Ls.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,t!=="resize"){let a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:r.length===o.length,options:a};this.updateElement(n,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){let r=this._cachedMeta.rScale,a=o==="reset";for(let l=s;l<s+n;l++){let c=t[l],h=this.resolveDataElementOptions(l,c.active?"active":o),f=r.getPointPositionForValue(l,this.getParsed(l).r),d=a?r.xCenter:f.x,u=a?r.yCenter:f.y,p={x:d,y:u,angle:f.angle,skip:isNaN(d)||isNaN(u),options:h};this.updateElement(c,l,p,o)}}}return k(e,"id","radar"),k(e,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),k(e,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}}),e})(),sh=(()=>{class e extends It{getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled,{start:r,count:a}=Ms(s,n,o);if(this._drawStart=r,this._drawCount=a,ws(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete s.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(s,o),d=this.getSharedOptions(f),u=this.includeOptions(o,d),p=a.axis,g=l.axis,{spanGaps:m,segment:b}=this.options,x=Ut(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||r||o==="none",M=s>0&&this.getParsed(s-1);for(let _=s;_<s+n;++_){let v=t[_],S=this.getParsed(_),w=y?v:{},O=L(S[g]),A=w[p]=a.getPixelForValue(S[p],_),C=w[g]=r||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,S,c):S[g],_);w.skip=isNaN(A)||isNaN(C)||O,w.stop=_>0&&Math.abs(S[p]-M[p])>x,b&&(w.parsed=S,w.raw=h.data[_]),u&&(w.options=d||this.resolveDataElementOptions(_,v.active?"active":o)),y||this.updateElement(v,_,w,o),M=S}this.updateSharedOptions(d,o,f)}getMaxOverflow(){let t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let l=0;for(let c=s.length-1;c>=0;--c)l=Math.max(l,s[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;let r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}}return k(e,"id","scatter"),k(e,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),k(e,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}}),e})(),nh=Object.freeze({__proto__:null,BarController:Zc,BubbleController:Jc,DoughnutController:fn,LineController:th,PieController:eh,PolarAreaController:vr,RadarController:ih,ScatterController:sh});function Xt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}
vendor: 55,774 bytes, line 1
1var Zs=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return Xt()}parse(){return Xt()}format(){return Xt()}add(){return Xt()}diff(){return Xt()}startOf(){return Xt()}endOf(){return Xt()}},oh={_date:Zs};function rh(e,i,t,s){let{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale;if(a&&i===a.axis&&i!=="r"&&r&&o.length){let l=a._reversePixels?Gn:ht;if(s){if(n._sharedOptions){let c=o[0],h=typeof c.getRange=="function"&&c.getRange(i);if(h){let f=l(o,i,t-h),d=l(o,i,t+h);return{lo:f.lo,hi:d.hi}}}}else return l(o,i,t)}return{lo:0,hi:o.length-1}}function Ge(e,i,t,s,n){let o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a<l;++a){let{index:c,data:h}=o[a],{lo:f,hi:d}=rh(o[a],i,r,n);for(let u=f;u<=d;++u){let p=h[u];p.skip||s(p,c,u)}}}function ah(e){let i=e.indexOf("x")!==-1,t=e.indexOf("y")!==-1;return function(s,n){let o=i?Math.abs(s.x-n.x):0,r=t?Math.abs(s.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function Hs(e,i,t,s,n){let o=[];return!n&&!e.isPointInArea(i)||Ge(e,t,i,function(a,l,c){!n&&!ft(a,e.chartArea,0)||a.inRange(i.x,i.y,s)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function lh(e,i,t,s){let n=[];function o(r,a,l){let{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],s),{angle:f}=xs(r,{x:i.x,y:i.y});ae(f,c,h)&&n.push({element:r,datasetIndex:a,index:l})}return Ge(e,t,i,o),n}function ch(e,i,t,s,n,o){let r=[],a=ah(t),l=Number.POSITIVE_INFINITY;function c(h,f,d){let u=h.inRange(i.x,i.y,n);if(s&&!u)return;let p=h.getCenterPoint(n);if(!(!!o||e.isPointInArea(p))&&!u)return;let m=a(i,p);m<l?(r=[{element:h,datasetIndex:f,index:d}],l=m):m===l&&r.push({element:h,datasetIndex:f,index:d})}return Ge(e,t,i,c),r}function $s(e,i,t,s,n,o){return!o&&!e.isPointInArea(i)?[]:t==="r"&&!s?lh(e,i,t,n):ch(e,i,t,s,n,o)}function Co(e,i,t,s,n){let o=[],r=t==="x"?"inXRange":"inYRange",a=!1;return Ge(e,t,i,(l,c,h)=>{l[r]&&l[r](i[t],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(i.x,i.y,n))}),s&&!a?[]:o}var hh={evaluateInteractionItems:Ge,modes:{index(e,i,t,s){let n=Lt(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?Hs(e,n,o,s,r):$s(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=a[0].index,f=c.data[h];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){let n=Lt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1,a=t.intersect?Hs(e,n,o,s,r):$s(e,n,o,!1,s,r);if(a.length>0){let l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(e,i,t,s){let n=Lt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1;return Hs(e,n,o,s,r)},nearest(e,i,t,s){let n=Lt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1;return $s(e,n,o,t.intersect,s,r)},x(e,i,t,s){let n=Lt(i,e);return Co(e,n,"x",t.intersect,s)},y(e,i,t,s){let n=Lt(i,e);return Co(e,n,"y",t.intersect,s)}}},Mr=["left","top","right","bottom"];function Be(e,i){return e.filter(t=>t.pos===i)}function Ao(e,i){return e.filter(t=>Mr.indexOf(t.pos)===-1&&t.box.axis===i)}function je(e,i){return e.sort((t,s)=>{let n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function fh(e){let i=[],t,s,n,o,r,a;for(t=0,s=(e||[]).length;t<s;++t)n=e[t],{position:o,options:{stack:r,stackWeight:a=1}}=n,i.push({index:t,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:r&&o+r,stackWeight:a});return i}function dh(e){let i={};for(let t of e){let{stack:s,pos:n,stackWeight:o}=t;if(!s||!Mr.includes(n))continue;let r=i[s]||(i[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return i}function uh(e,i){let t=dh(e),{vBoxMaxWidth:s,hBoxMaxHeight:n}=i,o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];let{fullSize:l}=a.box,c=t[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*s:l&&i.availableWidth,a.height=n):(a.width=s,a.height=h?h*n:l&&i.availableHeight)}return t}function ph(e){let i=fh(e),t=je(i.filter(c=>c.box.fullSize),!0),s=je(Be(i,"left"),!0),n=je(Be(i,"right")),o=je(Be(i,"top"),!0),r=je(Be(i,"bottom")),a=Ao(i,"x"),l=Ao(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Be(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function Do(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function wr(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function gh(e,i,t,s){let{pos:n,box:o}=t,r=e.maxPadding;if(!D(n)){t.size&&(e[n]-=t.size);let f=s[t.stack]||{size:0,count:1};f.size=Math.max(f.size,t.horizontal?o.height:o.width),t.size=f.size/f.count,e[n]+=t.size}o.getPadding&&wr(r,o.getPadding());let a=Math.max(0,i.outerWidth-Do(r,e,"left","right")),l=Math.max(0,i.outerHeight-Do(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function mh(e){let i=e.maxPadding;function t(s){let n=Math.max(i[s]-e[s],0);return e[s]+=n,n}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function xh(e,i){let t=i.maxPadding;function s(n){let o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Ve(e,i,t,s){let n=[],o,r,a,l,c,h;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||i.w,a.height||i.h,xh(a.horizontal,i));let{same:f,other:d}=gh(i,t,a,s);c|=f&&n.length,h=h||d,l.fullSize||n.push(a)}return c&&Ve(n,i,t,s)||h}function Pi(e,i,t,s,n){e.top=t,e.left=i,e.right=i+s,e.bottom=t+n,e.width=s,e.height=n}function To(e,i,t,s){let n=t.padding,{x:o,y:r}=i;for(let a of e){let l=a.box,c=s[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){let f=i.w*h,d=c.size||l.height;oe(c.start)&&(r=c.start),l.fullSize?Pi(l,n.left,r,t.outerWidth-n.right-n.left,d):Pi(l,i.left+c.placed,r,f,d),c.start=r,c.placed+=f,r=l.bottom}else{let f=i.h*h,d=c.size||l.width;oe(c.start)&&(o=c.start),l.fullSize?Pi(l,o,n.top,d,t.outerHeight-n.bottom-n.top):Pi(l,o,i.top+c.placed,d,f),c.start=o,c.placed+=f,o=l.right}}i.x=o,i.y=r}var Z={addBox(e,i){e.boxes||(e.boxes=[]),i.fullSize=i.fullSize||!1,i.position=i.position||"top",i.weight=i.weight||0,i._layers=i._layers||function(){return[{z:0,draw(t){i.draw(t)}}]},e.boxes.push(i)},removeBox(e,i){let t=e.boxes?e.boxes.indexOf(i):-1;t!==-1&&e.boxes.splice(t,1)},configure(e,i,t){i.fullSize=t.fullSize,i.position=t.position,i.weight=t.weight},update(e,i,t,s){if(!e)return;let n=q(e.options.layout.padding),o=Math.max(i-n.width,0),r=Math.max(t-n.height,0),a=ph(e.boxes),l=a.vertical,c=a.horizontal;R(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});let h=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,f=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},n);wr(d,q(s));let u=Object.assign({maxPadding:d,w:o,h:r,x:n.left,y:n.top},n),p=uh(l.concat(c),f);Ve(a.fullSize,u,f,p),Ve(l,u,f,p),Ve(c,u,f,p)&&Ve(l,u,f,p),mh(u),To(a.leftAndTop,u,f,p),u.x+=u.w,u.y+=u.h,To(a.rightAndBottom,u,f,p),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},R(a.chartArea,g=>{let m=g.box;Object.assign(m,e.chartArea),m.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}},zi=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,s){}removeEventListener(i,t,s){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,s,n){return t=Math.max(0,t||i.width),s=s||i.height,{width:t,height:Math.max(0,n?Math.floor(t/n):s)}}isAttached(i){return!0}updateConfig(i){}},Js=class extends zi{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},Ii="$chartjs",bh={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Lo=e=>e===null||e==="";function _h(e,i){let t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[Ii]={initial:{height:s,width:n,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",Lo(n)){let o=Is(e,"width");o!==void 0&&(e.width=o)}if(Lo(s))if(e.style.height==="")e.height=e.width/(i||2);else{let o=Is(e,"height");o!==void 0&&(e.height=o)}return e}var Sr=po?{passive:!0}:!1;function yh(e,i,t){e&&e.addEventListener(i,t,Sr)}function vh(e,i,t){e&&e.canvas&&e.canvas.removeEventListener(i,t,Sr)}function Mh(e,i){let t=bh[e.type]||e.type,{x:s,y:n}=Lt(e,i);return{type:t,chart:i,native:e,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Bi(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function wh(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Bi(a.addedNodes,s),r=r&&!Bi(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Sh(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Bi(a.removedNodes,s),r=r&&!Bi(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}var Xe=new Map,Ro=0;function kr(){let e=window.devicePixelRatio;e!==Ro&&(Ro=e,Xe.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function kh(e,i){Xe.size||window.addEventListener("resize",kr),Xe.set(e,i)}function Oh(e){Xe.delete(e),Xe.size||window.removeEventListener("resize",kr)}function Ph(e,i,t){let s=e.canvas,n=s&&ki(s);if(!n)return;let o=vs((a,l)=>{let c=n.clientWidth;t(a,l),c<n.clientWidth&&t()},window),r=new ResizeObserver(a=>{let l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),kh(e,o),r}function Us(e,i,t){t&&t.disconnect(),i==="resize"&&Oh(e)}function Ch(e,i,t){let s=e.canvas,n=vs(o=>{e.ctx!==null&&t(Mh(o,e))},e);return yh(s,i,n),n}var Qs=class extends zi{acquireContext(i,t){let s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(_h(i,t),s):null}releaseContext(i){let t=i.canvas;if(!t[Ii])return!1;let s=t[Ii].initial;["height","width"].forEach(o=>{let r=s[o];L(r)?t.removeAttribute(o):t.setAttribute(o,r)});let n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[Ii],!0}addEventListener(i,t,s){this.removeEventListener(i,t);let n=i.$proxies||(i.$proxies={}),r={attach:wh,detach:Sh,resize:Ph}[t]||Ch;n[t]=r(i,t,s)}removeEventListener(i,t){let s=i.$proxies||(i.$proxies={}),n=s[t];if(!n)return;({attach:Us,detach:Us,resize:Us}[t]||vh)(i,t,n),s[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return uo(i,t,s,n)}isAttached(i){let t=i&&ki(i);return!!(t&&t.isConnected)}};function Ah(e){return!Si()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Js:Qs}var nt=class{x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return Ut(this.x)&&Ut(this.y)}getProps(i,t){let s=this.$animations;if(!t||!s)return this;let n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}};k(nt,"defaults",{}),k(nt,"defaultRoutes");function Dh(e,i){let t=e.options.ticks,s=Th(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?Rh(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return Ih(i,c,o,r/n),c;let h=Lh(o,i,n);if(r>0){let f,d,u=r>1?Math.round((l-a)/(r-1)):null;for(Ci(i,c,h,L(u)?0:a-u,a),f=0,d=r-1;f<d;f++)Ci(i,c,h,o[f],o[f+1]);return Ci(i,c,h,l,L(u)?i.length:l+u),c}return Ci(i,c,h),c}function Th(e){let i=e.options.offset,t=e._tickSize(),s=e._length/t+(i?0:1),n=e._maxLength/t;return Math.floor(Math.min(s,n))}function Lh(e,i,t){let s=Eh(e),n=i.length/t;if(!s)return Math.max(n,1);let o=Xn(s);for(let r=0,a=o.length-1;r<a;r++){let l=o[r];if(l>n)return l}return Math.max(n,1)}function Rh(e){let i=[],t,s;for(t=0,s=e.length;t<s;t++)e[t].major&&i.push(t);return i}function Ih(e,i,t,s){let n=0,o=t[0],r;for(s=Math.ceil(s),r=0;r<e.length;r++)r===o&&(i.push(e[r]),n++,o=t[n*s])}function Ci(e,i,t,s,n){let o=P(s,0),r=Math.min(P(n,e.length),e.length),a=0,l,c,h;for(t=Math.ceil(t),n&&(l=n-s,t=l/Math.floor(l/t)),h=o;h<0;)a++,h=Math.round(o+a*t);for(c=Math.max(o,0);c<r;c++)c===h&&(i.push(e[c]),a++,h=Math.round(o+a*t))}function Eh(e){let i=e.length,t,s;if(i<2)return!1;for(s=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==s)return!1;return s}var Fh=e=>e==="left"?"right":e==="right"?"left":e,Io=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,Eo=(e,i)=>Math.min(i||e,e);function Fo(e,i){let t=[],s=e.length/i,n=e.length,o=0;for(;o<n;o+=s)t.push(e[Math.floor(o)]);return t}function zh(e,i,t){let s=e.ticks.length,n=Math.min(i,s-1),o=e._startPixel,r=e._endPixel,a=1e-6,l=e.getPixelForTick(n),c;if(!(t&&(s===1?c=Math.max(l-o,r-l):i===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(n-1))/2,l+=n<i?c:-c,l<o-a||l>r+a)))return l}function Bh(e,i){R(e,t=>{let s=t.gc,n=s.length/2,o;if(n>i){for(o=0;o<n;++o)delete t.data[s[o]];s.splice(0,n)}})}function Ne(e){return e.drawTicks?e.tickLength:0}function zo(e,i){if(!e.display)return 0;let t=U(e.font,i),s=q(e.padding);return(z(e.text)?e.text.length:1)*t.lineHeight+s.height}function jh(e,i){return vt(e,{scale:i,type:"scale"})}function Nh(e,i,t){return vt(e,{tick:t,index:i,type:"tick"})}function Wh(e,i,t){let s=_i(e);return(t&&i!=="right"||!t&&i==="right")&&(s=Fh(s)),s}function Vh(e,i,t,s){let{top:n,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l,f=0,d,u,p,g=r-n,m=a-o;if(e.isHorizontal()){if(u=K(s,o,a),D(t)){let b=Object.keys(t)[0],x=t[b];p=h[b].getPixelForValue(x)+g-i}else t==="center"?p=(c.bottom+c.top)/2+g-i:p=Io(e,t,i);d=a-o}else{if(D(t)){let b=Object.keys(t)[0],x=t[b];u=h[b].getPixelForValue(x)-m+i}else t==="center"?u=(c.left+c.right)/2-m+i:u=Io(e,t,i);p=K(s,r,n),f=t==="left"?-H:H}return{titleX:u,titleY:p,maxWidth:d,rotation:f}}var Zt=class e extends nt{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,t){return i}getUserBounds(){let{_userMin:i,_userMax:t,_suggestedMin:s,_suggestedMax:n}=this;return i=Q(i,Number.POSITIVE_INFINITY),t=Q(t,Number.NEGATIVE_INFINITY),s=Q(s,Number.POSITIVE_INFINITY),n=Q(n,Number.NEGATIVE_INFINITY),{min:Q(i,s),max:Q(t,n),minDefined:V(i),maxDefined:V(t)}}getMinMax(i){let{min:t,max:s,minDefined:n,maxDefined:o}=this.getUserBounds(),r;if(n&&o)return{min:t,max:s};let a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,i),n||(t=Math.min(t,r.min)),o||(s=Math.max(s,r.max));return t=o&&t>s?s:t,s=n&&t>s?t:s,{min:Q(t,Q(s,t)),max:Q(s,Q(t,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){E(this.options.beforeUpdate,[this])}update(i,t,s){let{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ro(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a<this.ticks.length;this._convertTicksToLabels(l?Fo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Dh(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let i=this.options.reverse,t,s;this.isHorizontal()?(t=this.left,s=this.right):(t=this.top,s=this.bottom,i=!i),this._startPixel=t,this._endPixel=s,this._reversePixels=i,this._length=s-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){E(this.options.afterUpdate,[this])}beforeSetDimensions(){E(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){E(this.options.afterSetDimensions,[this])}_callHooks(i){this.chart.notifyPlugins(i,this.getContext()),E(this.options[i],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){E(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(i){let t=this.options.ticks,s,n,o;for(s=0,n=i.length;s<n;s++)o=i[s],o.label=E(t.callback,[o.value,s,i],this)}afterTickToLabelConversion(){E(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){E(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let i=this.options,t=i.ticks,s=Eo(this.ticks.length,i.ticks.maxTicksLimit),n=t.minRotation||0,o=t.maxRotation,r=n,a,l,c;if(!this._isVisible()||!t.display||n>=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}let h=this._getLabelSizes(),f=h.widest.width,d=h.highest.height,u=Y(this.chart.width-f,0,this.maxWidth);a=i.offset?this.maxWidth/s:u/(s-1),f+6>a&&(a=u/(s-(i.offset?.5:1)),l=this.maxHeight-Ne(i.grid)-t.padding-zo(i.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),r=xi(Math.min(Math.asin(Y((h.highest.height+6)/a,-1,1)),Math.asin(Y(l/c,-1,1))-Math.asin(Y(d/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){E(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){E(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let l=zo(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=Ne(o)+l):(i.height=this.maxHeight,i.width=Ne(o)+l),s.display&&this.ticks.length){let{first:c,last:h,widest:f,highest:d}=this._getLabelSizes(),u=s.padding*2,p=rt(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(a){let b=s.mirror?0:m*f.width+g*d.height;i.height=Math.min(this.maxHeight,i.height+b+u)}else{let b=s.mirror?0:g*f.width+m*d.height;i.width=Math.min(this.maxWidth,i.width+b+u)}this._calculatePadding(c,h,m,g)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,s,n){let{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),d=0,u=0;l?c?(d=n*i.width,u=s*t.height):(d=s*i.height,u=n*t.width):o==="start"?u=t.width:o==="end"?d=i.width:o!=="inner"&&(d=i.width/2,u=t.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-f+r)*this.width/(this.width-f),0)}else{let h=t.height/2,f=i.height/2;o==="start"?(h=0,f=i.height):o==="end"&&(h=t.height,f=0),this.paddingTop=h+r,this.paddingBottom=f+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){E(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,s;for(t=0,s=i.length;t<s;t++)L(i[t].label)&&(i.splice(t,1),s--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let i=this._labelSizes;if(!i){let t=this.options.ticks.sampleSize,s=this.ticks;t<s.length&&(s=Fo(s,t)),this._labelSizes=i=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return i}_computeLabelSizes(i,t,s){let{ctx:n,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(t/Eo(t,s)),c=0,h=0,f,d,u,p,g,m,b,x,y,M,_;for(f=0;f<t;f+=l){if(p=i[f].label,g=this._resolveTickFontOptions(f),n.font=m=g.string,b=o[m]=o[m]||{data:{},gc:[]},x=g.lineHeight,y=M=0,!L(p)&&!z(p))y=Le(n,b.data,b.gc,y,p),M=x;else if(z(p))for(d=0,u=p.length;d<u;++d)_=p[d],!L(_)&&!z(_)&&(y=Le(n,b.data,b.gc,y,_),M+=x);r.push(y),a.push(M),c=Math.max(y,c),h=Math.max(M,h)}Bh(o,t);let v=r.indexOf(c),S=a.indexOf(h),w=O=>({width:r[O]||0,height:a[O]||0});return{first:w(0),last:w(t-1),widest:w(v),highest:w(S),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return qn(this._alignToPixels?At(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&i<t.length){let s=t[i];return s.$context||(s.$context=Nh(this.getContext(),i,s))}return this.$context||(this.$context=jh(this.chart.getContext(),this))}_tickSize(){let i=this.options.ticks,t=rt(this.labelRotation),s=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),o=this._getLabelSizes(),r=i.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*s>a*n?a/s:l/n:l*n<a*s?l/s:a/n}_isVisible(){let i=this.options.display;return i!=="auto"?!!i:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(i){let t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=Ne(o),u=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(W){return At(s,W,g)},x,y,M,_,v,S,w,O,A,C,T,X;if(r==="top")x=b(this.bottom),S=this.bottom-d,O=x-m,C=b(i.top)+m,X=i.bottom;else if(r==="bottom")x=b(this.top),C=i.top,X=b(i.bottom)-m,S=x+m,O=this.top+d;else if(r==="left")x=b(this.right),v=this.right-d,w=x-m,A=b(i.left)+m,T=i.right;else if(r==="right")x=b(this.left),A=i.left,T=b(i.right)-m,v=x+m,w=this.left+d;else if(t==="x"){if(r==="center")x=b((i.top+i.bottom)/2+.5);else if(D(r)){let W=Object.keys(r)[0],$=r[W];x=b(this.chart.scales[W].getPixelForValue($))}C=i.top,X=i.bottom,S=x+m,O=S+d}else if(t==="y"){if(r==="center")x=b((i.left+i.right)/2);else if(D(r)){let W=Object.keys(r)[0],$=r[W];x=b(this.chart.scales[W].getPixelForValue($))}v=x-m,w=v-d,A=i.left,T=i.right}let st=P(n.ticks.maxTicksLimit,f),I=Math.max(1,Math.ceil(f/st));for(y=0;y<f;y+=I){let W=this.getContext(y),$=o.setContext(W),lt=a.setContext(W),G=$.lineWidth,Jt=$.color,si=lt.dash||[],Qt=lt.dashOffset,ke=$.tickWidth,Nt=$.tickColor,Oe=$.tickBorderDash||[],Wt=$.tickBorderDashOffset;M=zh(this,y,l),M!==void 0&&(_=At(s,M,G),c?v=w=A=T=_:S=O=C=X=_,u.push({tx1:v,ty1:S,tx2:w,ty2:O,x1:A,y1:C,x2:T,y2:X,width:G,color:Jt,borderDash:si,borderDashOffset:Qt,tickWidth:ke,tickColor:Nt,tickBorderDash:Oe,tickBorderDashOffset:Wt}))}return this._ticksLength=f,this._borderValue=x,u}_computeLabelItems(i){let t=this.axis,s=this.options,{position:n,ticks:o}=s,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:f}=o,d=Ne(s.grid),u=d+h,p=f?-h:u,g=-rt(this.labelRotation),m=[],b,x,y,M,_,v,S,w,O,A,C,T,X="middle";if(n==="top")v=this.bottom-p,S=this._getXAxisLabelAlignment();else if(n==="bottom")v=this.top+p,S=this._getXAxisLabelAlignment();else if(n==="left"){let I=this._getYAxisLabelAlignment(d);S=I.textAlign,_=I.x}else if(n==="right"){let I=this._getYAxisLabelAlignment(d);S=I.textAlign,_=I.x}else if(t==="x"){if(n==="center")v=(i.top+i.bottom)/2+u;else if(D(n)){let I=Object.keys(n)[0],W=n[I];v=this.chart.scales[I].getPixelForValue(W)+u}S=this._getXAxisLabelAlignment()}else if(t==="y"){if(n==="center")_=(i.left+i.right)/2-u;else if(D(n)){let I=Object.keys(n)[0],W=n[I];_=this.chart.scales[I].getPixelForValue(W)}S=this._getYAxisLabelAlignment(d).textAlign}t==="y"&&(l==="start"?X="top":l==="end"&&(X="bottom"));let st=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){y=a[b],M=y.label;let I=o.setContext(this.getContext(b));w=this.getPixelForTick(b)+o.labelOffset,O=this._resolveTickFontOptions(b),A=O.lineHeight,C=z(M)?M.length:1;let W=C/2,$=I.color,lt=I.textStrokeColor,G=I.textStrokeWidth,Jt=S;r?(_=w,S==="inner"&&(b===x-1?Jt=this.options.reverse?"left":"right":b===0?Jt=this.options.reverse?"right":"left":Jt="center"),n==="top"?c==="near"||g!==0?T=-C*A+A/2:c==="center"?T=-st.highest.height/2-W*A+A:T=-st.highest.height+A/2:c==="near"||g!==0?T=A/2:c==="center"?T=st.highest.height/2-W*A:T=st.highest.height-C*A,f&&(T*=-1),g!==0&&!I.showLabelBackdrop&&(_+=A/2*Math.sin(g))):(v=w,T=(1-C)*A/2);let si;if(I.showLabelBackdrop){let Qt=q(I.backdropPadding),ke=st.heights[b],Nt=st.widths[b],Oe=T-Qt.top,Wt=0-Qt.left;switch(X){case"middle":Oe-=ke/2;break;case"bottom":Oe-=ke;break}switch(S){case"center":Wt-=Nt/2;break;case"right":Wt-=Nt;break;case"inner":b===x-1?Wt-=Nt:b>0&&(Wt-=Nt/2);break}si={left:Wt,top:Oe,width:Nt+Qt.width,height:ke+Qt.height,color:I.backdropColor}}m.push({label:M,font:O,textOffset:T,options:{rotation:g,color:$,strokeColor:lt,strokeWidth:G,textAlign:Jt,textBaseline:X,translation:[_,v],backdrop:si}})}return m}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-rt(this.labelRotation))return i==="top"?"left":"right";let n="center";return t.align==="start"?n="left":t.align==="end"?n="right":t.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=i+o,l=r.widest.width,c,h;return t==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:s,top:n,width:o,height:r}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(s,n,o,r),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){let t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,r,a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(t.display)for(o=0,r=n.length;o<r;++o){let l=n[o];t.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),t.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:i,ctx:t,options:{border:s,grid:n}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;let a=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,h,f,d;this.isHorizontal()?(c=At(i,this.left,r)-r/2,h=At(i,this.right,a)+a/2,f=d=l):(f=At(i,this.top,r)-r/2,d=At(i,this.bottom,a)+a/2,c=h=l),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(c,f),t.lineTo(h,d),t.stroke(),t.restore()}drawLabels(i){if(!this.options.ticks.display)return;let s=this.ctx,n=this._computeLabelArea();n&&Ee(s,n);let o=this.getLabelItems(i);for(let r of o){let a=r.options,l=r.font,c=r.label,h=r.textOffset;Dt(s,c,0,h,l,a)}n&&Fe(s)}drawTitle(){let{ctx:i,options:{position:t,title:s,reverse:n}}=this;if(!s.display)return;let o=U(s.font),r=q(s.padding),a=s.align,l=o.lineHeight/2;t==="bottom"||t==="center"||D(t)?(l+=r.bottom,z(s.text)&&(l+=o.lineHeight*(s.text.length-1))):l+=r.top;let{titleX:c,titleY:h,maxWidth:f,rotation:d}=Vh(this,l,t,a);Dt(i,s.text,0,0,o,{color:s.color,maxWidth:f,rotation:d,textAlign:Wh(a,t,n),textBaseline:"middle",translation:[c,h]})}draw(i){this._isVisible()&&(this.drawBackground(),this.drawGrid(i),this.drawBorder(),this.drawTitle(),this.drawLabels(i))}_layers(){let i=this.options,t=i.ticks&&i.ticks.z||0,s=P(i.grid&&i.grid.z,-1),n=P(i.border&&i.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:t,draw:o=>{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[],o,r;for(o=0,r=t.length;o<r;++o){let a=t[o];a[s]===this.id&&(!i||a.type===i)&&n.push(a)}return n}_resolveTickFontOptions(i){let t=this.options.ticks.setContext(this.getContext(i));return U(t.font)}_maxDigits(){let i=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/i}},ue=class{constructor(i,t,s){this.type=i,this.scope=t,this.override=s,this.items=Object.create(null)}isForType(i){return Object.prototype.isPrototypeOf.call(this.type.prototype,i.prototype)}register(i){let t=Object.getPrototypeOf(i),s;Uh(t)&&(s=this.register(t));let n=this.items,o=i.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+i);return o in n||(n[o]=i,Hh(i,r,s),this.override&&F.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){let t=this.items,s=i.id,n=this.scope;s in t&&delete t[s],n&&s in F[n]&&(delete F[n][s],this.override&&delete Ct[s])}};function Hh(e,i,t){let s=ie(Object.create(null),[t?F.get(t):{},F.get(i),e.defaults]);F.set(i,s),e.defaultRoutes&&$h(i,e.defaultRoutes),e.descriptors&&F.describe(i,e.descriptors)}function $h(e,i){Object.keys(i).forEach(t=>{let s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");F.route(o,n,l,a)})}function Uh(e){return"id"in e&&"defaults"in e}var tn=class{constructor(){this.controllers=new ue(It,"datasets",!0),this.elements=new ue(nt,"elements"),this.plugins=new ue(Object,"plugins"),this.scales=new ue(Zt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,s){[...t].forEach(n=>{let o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):R(n,r=>{let a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){let n=mi(i);E(s["before"+n],[],s),t[i](s),E(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;t<this._typedRegistries.length;t++){let s=this._typedRegistries[t];if(s.isForType(i))return s}return this.plugins}_get(i,t,s){let n=t.get(i);if(n===void 0)throw new Error('"'+i+'" is not a registered '+s+".");return n}},gt=new tn,en=class{constructor(){this._init=[]}notify(i,t,s,n){t==="beforeInit"&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));let o=n?this._descriptors(i).filter(n):this._descriptors(i),r=this._notify(o,i,t,s);return t==="afterDestroy"&&(this._notify(o,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,t,s,n){n=n||{};for(let o of i){let r=o.plugin,a=r[s],l=[t,n,o.options];if(E(a,l,r)===!1&&n.cancelable)return!1}return!0}invalidate(){L(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),t}_createDescriptors(i,t){let s=i&&i.config,n=P(s.options&&s.options.plugins,{}),o=Yh(s);return n===!1&&!t?[]:Kh(i,o,n,t)}_notifyStateChanges(i){let t=this._oldCache||[],s=this._cache,n=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(t,s),i,"stop"),this._notify(n(s,t),i,"start")}};function Yh(e){let i={},t=[],s=Object.keys(gt.plugins.items);for(let o=0;o<s.length;o++)t.push(gt.getPlugin(s[o]));let n=e.plugins||[];for(let o=0;o<n.length;o++){let r=n[o];t.indexOf(r)===-1&&(t.push(r),i[r.id]=!0)}return{plugins:t,localIds:i}}function Xh(e,i){return!i&&e===!1?null:e===!0?{}:e}function Kh(e,{plugins:i,localIds:t},s,n){let o=[],r=e.getContext();for(let a of i){let l=a.id,c=Xh(s[l],n);c!==null&&o.push({plugin:a,options:qh(e.config,{plugin:a,local:t[l]},c,r)})}return o}function qh(e,{plugin:i,local:t},s,n){let o=e.pluginScopeKeys(i),r=e.getOptionScopes(s,o);return t&&i.defaults&&r.push(i.defaults),e.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function sn(e,i){let t=F.datasets[e]||{};return((i.datasets||{})[e]||{}).indexAxis||i.indexAxis||t.indexAxis||"x"}function Gh(e,i){let t=e;return e==="_index_"?t=i:e==="_value_"&&(t=i==="x"?"y":"x"),t}function Zh(e,i){return e===i?"_index_":"_value_"}function Bo(e){if(e==="x"||e==="y"||e==="r")return e}function Jh(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function nn(e,...i){if(Bo(e))return e;for(let t of i){let s=t.axis||Jh(t.position)||e.length>1&&Bo(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function jo(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Qh(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return jo(e,"x",t[0])||jo(e,"y",t[0])}return{}}function tf(e,i){let t=Ct[e.type]||{scales:{}},s=i.scales||{},n=sn(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{let a=s[r];if(!D(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let l=nn(r,a,Qh(r,e),F.scales[a.type]),c=Zh(l,n),h=t.scales||{};o[r]=ne(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{let a=r.type||e.type,l=r.indexAxis||sn(a,i),h=(Ct[a]||{}).scales||{};Object.keys(h).forEach(f=>{let d=Gh(f,l),u=r[d+"AxisID"]||d;o[u]=o[u]||Object.create(null),ne(o[u],[{axis:d},s[u],h[f]])})}),Object.keys(o).forEach(r=>{let a=o[r];ne(a,[F.scales[a.type],F.scale])}),o}function Or(e){let i=e.options||(e.options={});i.plugins=P(i.plugins,{}),i.scales=tf(e,i)}function Pr(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function ef(e){return e=e||{},e.data=Pr(e.data),Or(e),e}var No=new Map,Cr=new Set;function Ai(e,i){let t=No.get(e);return t||(t=i(),No.set(e,t),Cr.add(t)),t}var We=(e,i,t)=>{let s=yt(i,t);s!==void 0&&e.add(s)},on=class{constructor(i){this._config=ef(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=Pr(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),Or(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Ai(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return Ai(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return Ai(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,s=this.type;return Ai(`${s}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let s=this._scopeCache,n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){let{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(f=>We(l,i,f))),h.forEach(f=>We(l,n,f)),h.forEach(f=>We(l,Ct[o]||{},f)),h.forEach(f=>We(l,F,f)),h.forEach(f=>We(l,yi,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Cr.has(t)&&r.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,Ct[t]||{},F.datasets[t]||{},{type:t},F,yi]}resolveNamedOptions(i,t,s,n=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=Wo(this._resolverCache,i,n),l=r;if(nf(r,t)){o.$shared=!1,s=bt(s)?s():s;let c=this.createResolver(i,s,a);l=$t(r,s,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){let{resolver:o}=Wo(this._resolverCache,i,s);return D(t)?$t(o,t,void 0,n):o}};function Wo(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));let n=t.join(),o=s.get(n);return o||(o={resolver:wi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}var sf=e=>D(e)&&Object.getOwnPropertyNames(e).some(i=>bt(e[i]));function nf(e,i){let{isScriptable:t,isIndexable:s}=As(e);for(let n of i){let o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(bt(a)||sf(a))||r&&z(a))return!0}return!1}var of="4.4.7",rf=["top","bottom","left","right","chartArea"];function Vo(e,i){return e==="top"||e==="bottom"||rf.indexOf(e)===-1&&i==="x"}function Ho(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function $o(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),E(t&&t.onComplete,[e],i)}function af(e){let i=e.chart,t=i.options.animation;E(t&&t.onProgress,[e],i)}function Ar(e){return Si()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Ei={},Uo=e=>{let i=Ar(e);return Object.values(Ei).filter(t=>t.canvas===i).pop()};function lf(e,i,t){let s=Object.keys(e);for(let n of s){let o=+n;if(o>=i){let r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}function cf(e,i,t,s){return!t||e.type==="mouseout"?null:s?i:e}function Di(e,i,t){return e.options.clip?e[t]:i[t]}function hf(e,i){let{xScale:t,yScale:s}=e;return t&&s?{left:Di(t,i,"left"),right:Di(t,i,"right"),top:Di(s,i,"top"),bottom:Di(s,i,"bottom")}:i}var Vi=(()=>{class e{static register(...t){gt.add(...t),Yo()}static unregister(...t){gt.remove(...t),Yo()}constructor(t,s){let n=this.config=new on(s),o=Ar(t),r=Uo(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Ah(o)),this.platform.updateConfig(n);let l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=Hn(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new en,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=to(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Ei[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Mt.listen(this,"complete",$o),Mt.listen(this,"progress",af),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return L(t)?s&&r?r:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return gt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Rs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Os(this.canvas,this.ctx),this}stop(){return Mt.stop(this),this}resize(t,s){Mt.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){let n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,s,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Rs(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),E(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let s=this.options.scales||{};R(s,(n,o)=>{n.id=o})}buildOrUpdateScales(){let t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{}),r=[];s&&(r=r.concat(Object.keys(s).map(a=>{let l=s[a],c=nn(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),R(r,a=>{let l=a.options,c=l.id,h=nn(c,l),f=P(l.type,a.dtype);(l.position===void 0||Vo(l.position,h)!==Vo(a.dposition))&&(l.position=a.dposition),o[c]=!0;let d=null;if(c in n&&n[c].type===f)d=n[c];else{let u=gt.getScale(f);d=new u({id:c,type:f,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(l,t)}),R(o,(a,l)=>{a||delete n[l]}),R(n,a=>{Z.configure(this,a,a.options),Z.addBox(this,a)})}_updateMetasets(){let t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((o,r)=>o.index-r.index),n>s){for(let o=s;o<n;++o)this._destroyDatasetMeta(o);t.splice(s,n-s)}this._sortedMetasets=t.slice(0).sort(Ho("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:s}}=this;t.length>s.length&&delete this._stacks,t.forEach((n,o)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],s=this.data.datasets,n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n<o;n++){let r=s[n],a=this.getDatasetMeta(n),l=r.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(n),a=this.getDatasetMeta(n)),a.type=l,a.indexAxis=r.indexAxis||sn(l,this.options),a.order=r.order||0,a.index=n,a.label=""+r.label,a.visible=this.isDatasetVisible(n),a.controller)a.controller.updateIndex(n),a.controller.linkScales();else{let c=gt.getController(l),{datasetElementType:h,dataElementType:f}=F.datasets[l];Object.assign(c,{dataElementType:gt.getElement(f),datasetElementType:h&&gt.getElement(h)}),a.controller=new c(this,n),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){R(this.data.datasets,(t,s)=>{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let s=this.config;s.update();let n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h<f;h++){let{controller:d}=this.getDatasetMeta(h),u=!o&&r.indexOf(d)===-1;d.buildOrUpdateElements(u),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),o||R(r,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ho("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){R(this.scales,t=>{Z.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!us(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(let{method:n,start:o,count:r}of s){let a=n==="_removeElements"?-r:r;lf(t,o,a)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let s=this.data.datasets.length,n=r=>new Set(t.filter(a=>a[0]===r).map((a,l)=>l+","+a.splice(1).join(","))),o=n(0);for(let r=1;r<s;r++)if(!us(o,n(r)))return;return Array.from(o).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Z.update(this,this.width,this.height,t);let s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],R(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s<n;++s)this.getDatasetMeta(s).controller.configure();for(let s=0,n=this.data.datasets.length;s<n;++s)this._updateDataset(s,bt(t)?t({datasetIndex:s}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,s){let n=this.getDatasetMeta(t),o={meta:n,index:t,mode:s,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(n.controller._update(s),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Mt.has(this)?this.attached&&!Mt.running(this)&&Mt.start(this):(this.draw(),$o({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:n,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let s=this._layers;for(t=0;t<s.length&&s[t].z<=0;++t)s[t].draw(this.chartArea);for(this._drawDatasets();t<s.length;++t)s[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let s=this._sortedMetasets,n=[],o,r;for(o=0,r=s.length;o<r;++o){let a=s[o];(!t||a.visible)&&n.push(a)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let s=t.length-1;s>=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let s=this.ctx,n=t._clip,o=!n.disabled,r=hf(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&Ee(s,{left:n.left===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),t.controller.draw(),o&&Fe(s),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return ft(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){let r=hh.modes[s];return typeof r=="function"?r(this,t,n,o):[]}getDatasetMeta(t){let s=this.data.datasets[t],n=this._metasets,o=n.filter(r=>r&&r._dataset===s).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=vt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let s=this.data.datasets[t];if(!s)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){let n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){let o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);oe(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){let s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),Mt.remove(this),t=0,s=this.data.datasets.length;t<s;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:s}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Os(t,s),this.platform.releaseContext(s),this.canvas=null,this.ctx=null),delete Ei[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,s=this.platform,n=(r,a)=>{s.addEventListener(this,r,a),t[r]=a},o=(r,a,l)=>{r.offsetX=a,r.offsetY=l,this._eventHandler(r)};R(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,s=this.platform,n=(c,h)=>{s.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(s.removeEventListener(this,c,h),delete t[c])},r=(c,h)=>{this.canvas&&this.resize(c,h)},a,l=()=>{o("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",l)},s.isAttached(this.canvas)?l():a()}unbindEvents(){R(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},R(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){let o=n?"set":"remove",r,a,l,c;for(s==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){a=t[l];let h=a&&this.getDatasetMeta(a.datasetIndex).controller;h&&h[o+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let s=this._active||[],n=t.map(({datasetIndex:r,index:a})=>{let l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Re(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){let o=this.options.hover,r=(c,h)=>c.filter(f=>!h.some(d=>f.datasetIndex===d.datasetIndex&&f.index===d.index)),a=r(s,t),l=n?t:r(t,s);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,s){let n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;let r=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(t,s,n){let{_active:o=[],options:r}=this,a=s,l=this._getActiveElements(t,o,n,a),c=Yn(t),h=cf(t,this._lastEvent,n,c);n&&(this._lastEvent=null,E(r.onHover,[t,l,this],this),c&&E(r.onClick,[t,l,this],this));let f=!Re(l,o);return(f||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,f}_getActiveElements(t,s,n,o){if(t.type==="mouseout")return[];if(!n)return s;let r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return k(e,"defaults",F),k(e,"instances",Ei),k(e,"overrides",Ct),k(e,"registry",gt),k(e,"version",of),k(e,"getChart",Uo),e})();function Yo(){return R(Vi.instances,e=>e._plugins.invalidate())}function ff(e,i,t){let{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i,c=n/a;e.beginPath(),e.arc(o,r,a,s-c,t+c),l>n?(c=n/l,e.arc(o,r,l,t+c,s-c,!0)):e.arc(o,r,n,t+H,s-H),e.closePath(),e.clip()}function df(e){return Mi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function uf(e,i,t,s){let n=df(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{let c=(t-Math.min(o,l))*s/2;return Y(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:Y(n.innerStart,0,r),innerEnd:Y(n.innerEnd,0,r)}}function fe(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function ji(e,i,t,s,n,o){let{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,f=Math.max(i.outerRadius+s+t-c,0),d=h>0?h+s+t+c:0,u=0,p=n-l;if(s){let I=h>0?h-s:0,W=f>0?f-s:0,$=(I+W)/2,lt=$!==0?p*$/($+s):p;u=(p-lt)/2}let g=Math.max(.001,p*f-t/B)/f,m=(p-g)/2,b=l+m+u,x=n-m-u,{outerStart:y,outerEnd:M,innerStart:_,innerEnd:v}=uf(i,d,f,x-b),S=f-y,w=f-M,O=b+y/S,A=x-M/w,C=d+_,T=d+v,X=b+_/C,st=x-v/T;if(e.beginPath(),o){let I=(O+A)/2;if(e.arc(r,a,f,O,I),e.arc(r,a,f,I,A),M>0){let G=fe(w,A,r,a);e.arc(G.x,G.y,M,A,x+H)}let W=fe(T,x,r,a);if(e.lineTo(W.x,W.y),v>0){let G=fe(T,st,r,a);e.arc(G.x,G.y,v,x+H,st+Math.PI)}let $=(x-v/d+(b+_/d))/2;if(e.arc(r,a,d,x-v/d,$,!0),e.arc(r,a,d,$,b+_/d,!0),_>0){let G=fe(C,X,r,a);e.arc(G.x,G.y,_,X+Math.PI,b-H)}let lt=fe(S,b,r,a);if(e.lineTo(lt.x,lt.y),y>0){let G=fe(S,O,r,a);e.arc(G.x,G.y,y,b-H,O)}}else{e.moveTo(r,a);let I=Math.cos(O)*f+r,W=Math.sin(O)*f+a;e.lineTo(I,W);let $=Math.cos(A)*f+r,lt=Math.sin(A)*f+a;e.lineTo($,lt)}e.closePath()}function pf(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a}=i,l=i.endAngle;if(o){ji(e,i,t,s,l,n);for(let c=0;c<o;++c)e.fill();
1isNaN(a)||(l=r+(a%j||j))}return ji(e,i,t,s,l,n),e.fill(),l}function gf(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a,options:l}=i,{borderWidth:c,borderJoinStyle:h,borderDash:f,borderDashOffset:d}=l,u=l.borderAlign==="inner";if(!c)return;e.setLineDash(f||[]),e.lineDashOffset=d,u?(e.lineWidth=c*2,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let p=i.endAngle;if(o){ji(e,i,t,s,p,n);for(let g=0;g<o;++g)e.stroke();isNaN(a)||(p=r+(a%j||j))}u&&ff(e,i,p),o||(ji(e,i,t,s,p,n),e.stroke())}var qt=class extends nt{circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,t,s){let n=this.getProps(["x","y"],s),{angle:o,distance:r}=xs(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),d=(this.options.spacing+this.options.borderWidth)/2,u=P(f,l-a),p=ae(o,a,l)&&a!==l,g=u>=j||p,m=ut(r,c+d,h+d);return g&&m}getCenterPoint(i){let{x:t,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(n+o)/2,f=(r+a+c+l)/2;return{x:t+Math.cos(h)*f,y:s+Math.sin(h)*f}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=s>j?Math.floor(s/j):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);let l=1-Math.sin(Math.min(B,s||0)),c=n*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,pf(i,this,c,o,r),gf(i,this,c,o,r),i.restore()}};k(qt,"id","arc"),k(qt,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),k(qt,"defaultRoutes",{backgroundColor:"backgroundColor"}),k(qt,"descriptors",{_scriptable:!0,_indexable:i=>i!=="borderDash"});function Dr(e,i,t=i){e.lineCap=P(t.borderCapStyle,i.borderCapStyle),e.setLineDash(P(t.borderDash,i.borderDash)),e.lineDashOffset=P(t.borderDashOffset,i.borderDashOffset),e.lineJoin=P(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=P(t.borderWidth,i.borderWidth),e.strokeStyle=P(t.borderColor,i.borderColor)}function mf(e,i,t){e.lineTo(t.x,t.y)}function xf(e){return e.stepped?no:e.tension||e.cubicInterpolationMode==="monotone"?oo:mf}function Tr(e,i,t={}){let s=e.length,{start:n=0,end:o=s-1}=t,{start:r,end:a}
1=i,l=Math.max(n,r),c=Math.min(o,a),h=n<r&&o<r||n>a&&o>a;return{count:s,start:l,loop:i.loop,ilen:c<l&&!h?s+c-l:c-l}}function bf(e,i,t,s){let{points:n,options:o}=i,{count:r,start:a,loop:l,ilen:c}=Tr(n,t,s),h=xf(o),{move:f=!0,reverse:d}=s||{},u,p,g;for(u=0;u<=c;++u)p=n[(a+(d?c-u:u))%r],!p.skip&&(f?(e.moveTo(p.x,p.y),f=!1):h(e,g,p,d,o.stepped),g=p);return l&&(p=n[(a+(d?c:0))%r],h(e,g,p,d,o.stepped)),!!l}function _f(e,i,t,s){let n=i.points,{count:o,start:r,ilen:a}=Tr(n,t,s),{move:l=!0,reverse:c}=s||{},h=0,f=0,d,u,p,g,m,b,x=M=>(r+(c?a-M:M))%o,y=()=>{g!==m&&(e.lineTo(h,m),e.lineTo(h,g),e.lineTo(h,b))};for(l&&(u=n[x(0)],e.moveTo(u.x,u.y)),d=0;d<=a;++d){if(u=n[x(d)],u.skip)continue;let M=u.x,_=u.y,v=M|0;v===p?(_<g?g=_:_>m&&(m=_),h=(f*h+M)/++f):(y(),e.lineTo(M,_),p=v,f=0,g=m=_),b=_}y()}function rn(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?_f:bf}function yf(e){return e.stepped?go:e.tension||e.cubicInterpolationMode==="monotone"?mo:Pt}function vf(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),Dr(e,i.options),e.stroke(n)}function Mf(e,i,t,s){let{segments:n,options:o}=i,r=rn(i);for(let a of n)Dr(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}var wf=typeof Path2D=="function";function Sf(e,i,t,s){wf&&!i.options.segment?vf(e,i,t,s):Mf(e,i,t,s)}var Hi=(()=>{class e extends nt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let o=n.spanGaps?this._loop:this._fullLoop;fo(this._points,n,t,o,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=bo(this,this.options.segment))}first(){let t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){let t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){let n=this.options,o=t[s],r=this.points,a=Bs(this,{property:s,start:o,end:o});if(!a.length)return;let l=[],c=yf(n),h,f;for(h=0,f=a.length;h<f;++h){let{start:d,end:u}=a[h],p=r[d],g=r[u];if(p===g){l.push(p);continue}let m=Math.abs((o-p[s])/(g[s]-p[s])),b=c(p,g,m,n.stepped);b[s]=t[s],l.push(b)}return l.length===1?l[0]:l}pathSegment(t,s,n){return rn(this)(t,this,s,n)}path(t,s,n){let o=this.segments,r=rn(this),a=this._loop;s=s||0,n=n||this.points.length-s;for(let l of o)a&=r(t,this,l,{start:s,end:s+n-1});return!!a}draw(t,s,n,o){let r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),Sf(t,this,n,o),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return k(e,"id","line"),k(e,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),k(e,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),k(e,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"}),e})();function Xo(e,i,t,s){let n=e.options,{[t]:o}=e.getProps([t],s);return Math.abs(i-o)<n.radius+n.hitRadius}var kf=(()=>{class e extends nt{parsed;skip;stop;constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,s,n){let o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(s-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(t,s){return Xo(this,t,"x",s)}inYRange(t,s){return Xo(this,t,"y",s)}getCenterPoint(t){let{x:s,y:n}=this.getProps(["x","y"],t);return{x:s,y:n}}size(t){t=t||this.options||{};let s=t.radius||0;s=Math.max(s,s&&t.hoverRadius||0);let n=s&&t.borderWidth||0;return(s+n)*2}draw(t,s){let n=this.options;this.skip||n.radius<.1||!ft(this,s,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,vi(t,n,this.x,this.y))}getRange(){let t=this.options||{};return t.radius+t.hitRadius}}return k(e,"id","point"),k(e,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),k(e,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),e})();function Lr(e,i){let{x:t,y:s,base:n,width:o,height:r}=e.getProps(["x","y","base","width","height"],i),a,l,c,h,f;return e.horizontal?(f=r/2,a=Math.min(t,n),l=Math.max(t,n),c=s-f,h=s+f):(f=o/2,a=t-f,l=t+f,c=Math.min(s,n),h=Math.max(s,n)),{left:a,top:c,right:l,bottom:h}}function Rt(e,i,t,s){return e?0:Y(i,t,s)}function Of(e,i,t){let s=e.options.borderWidth,n=e.borderSkipped,o=Cs(s);return{t:Rt(n.top,o.top,0,t),r:Rt(n.right,o.right,0,i),b:Rt(n.bottom,o.bottom,0,t),l:Rt(n.left,o.left,0,i)}}function Pf(e,i,t){let{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,o=Tt(n),r=M
1ath.min(i,t),a=e.borderSkipped,l=s||D(n);return{topLeft:Rt(!l||a.top||a.left,o.topLeft,0,r),topRight:Rt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Rt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Rt(!l||a.bottom||a.right,o.bottomRight,0,r)}}function Cf(e){let i=Lr(e),t=i.right-i.left,s=i.bottom-i.top,n=Of(e,t/2,s/2),o=Pf(e,t/2,s/2);return{outer:{x:i.left,y:i.top,w:t,h:s,radius:o},inner:{x:i.left+n.l,y:i.top+n.t,w:t-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}function Ys(e,i,t,s){let n=i===null,o=t===null,a=e&&!(n&&o)&&Lr(e,s);return a&&(n||ut(i,a.left,a.right))&&(o||ut(t,a.top,a.bottom))}function Af(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Df(e,i){e.rect(i.x,i.y,i.w,i.h)}function Xs(e,i,t={}){let s=e.x!==t.x?-i:0,n=e.y!==t.y?-i:0,o=(e.x+e.w!==t.x+t.w?i:0)-s,r=(e.y+e.h!==t.y+t.h?i:0)-n;return{x:e.x+s,y:e.y+n,w:e.w+o,h:e.h+r,radius:e.radius}}var de=class extends nt{constructor(i){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,i&&Object.assign(this,i)}draw(i){let{inflateAmount:t,options:{borderColor:s,backgroundColor:n}}=this,{inner:o,outer:r}=Cf(this),a=Af(r.radius)?ce:Df;i.save(),(r.w!==o.w||r.h!==o.h)&&(i.beginPath(),a(i,Xs(r,t,o)),i.clip(),a(i,Xs(o,-t,r)),i.fillStyle=s,i.fill("evenodd")),i.beginPath(),a(i,Xs(o,t)),i.fillStyle=n,i.fill(),i.restore()}inRange(i,t,s){return Ys(this,i,t,s)}inXRange(i,t){return Ys(this,i,null,t)}inYRange(i,t){return Ys(this,null,i,t)}getCenterPoint(i){let{x:t,y:s,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],i);return{x:o?(t+n)/2:t,y:o?s:(s+n)/2}}getRange(i){return i==="x"?this.width/2:this.height/2}};k(de,"id","bar"),k(de,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),k(de,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Tf=Object.freeze({__proto__:null,ArcElement:qt,BarElement:de,LineElement:Hi,PointElement:kf}),an=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Ko=an.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Rr(e){return an[e%an.length]}function Ir(e){return Ko[e%Ko.length]}function Lf(e,i){return e.borderColor=Rr(i),e.backgroundColor=Ir(i),++i}function Rf(e,i){return e.backgroundColor=e.data.map(()=>Rr(i++)),i}function If(e,i){return e.backgroundColor=e.data.map(()=>Ir(i++)),i}function Ef(e){let i=0;return(t,s)=>{let n=e.getDatasetMeta(s).controller;n instanceof fn?i=Rf(t,i):n instanceof vr?i=If(t,i):n&&(i=Lf(t,i))}}function qo(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function Ff(e){return e&&(e.borderColor||e.backgroundColor)}function zf(){return F.borderColor!=="rgba(0,0,0,0.1)"||F.backgroundColor!=="rgba(0,0,0,0.1)"}var Bf={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:s},options:n}=e.config,{elements:o}=n,r=qo(s)||Ff(n)||o&&qo(o)||zf();if(!t.forceOverride&&r)return;let a=Ef(e);s.forEach(a)}};function jf(e,i,t,s,n){let o=n.samples||s;if(o>=t)return e.slice(i,i+t);let r=[],a=(t-2)/(o-2),l=0,c=i+t-1,h=i,f,d,u,p,g;for(r[l++]=e[h],f=0;f<o-2;f++){let m=0,b=0,x,y=Math.floor((f+1)*a)+1+i,M=Math.min(Math.floor((f+2)*a)+1,t)+i,_=M-y;for(x=y;x<M;x++)m+=e[x].x,b+=e[x].y;m/=_,b/=_;let v=Math.floor(f*a)+1+i,S=Math.min(Math.floor((f+1)*a)+1,t)+i,{x:w,y:O}=e[h];for(u=p=-1,x=v;x<S;x++)p=.5*Math.abs((w-m)*(e[x].y-O)-(w-e[x].x)*(b-O)),p>u&&(u=p,d=e[x],g=x);r[l++]=d,h=g}return r[l++]=e[c],r}function Nf(e,i,t,s){let n=0,o=0,r,a,l,c,h,f,d,u,p,g,m=[],b=i+t-1,x=e[i].x,M=e[b].x-x;for(r=i;r<i+t;++r){a=e[r],l=(a.x-x)/M*s,c=a.y;let _=l|0;if(_===h)c<p?(p=c,f=r):c>g&&(g=c,d=r),n=(o*n+a.x)/++o;else{let v=r-1;if(!L(f)&&!L(d)){let S=Math.min(f,d),w=Math.max(f,d);S!==u&&S!==v&&m.push(oi(ni({},e[S]),{x:n})),w!==u&&w!==v&&m.push(oi(ni({},e[w]),{x:n}))}r>0&&v!==u&&m.push(e[v]),m.push(a),h=_,o=0,p=g=c,f=d=u=r}}return m}function Er(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}
1function Go(e){e.data.datasets.forEach(i=>{Er(i)})}function Wf(e,i){let t=i.length,s=0,n,{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=Y(ht(i,o.axis,r).lo,0,t-1)),c?n=Y(ht(i,o.axis,a).hi+1,s,t)-s:n=t-s,{start:s,count:n}}var Vf={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){Go(e);return}let s=e.width;e.data.datasets.forEach((n,o)=>{let{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if(he([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:f,count:d}=Wf(l,c),u=t.threshold||4*s;if(d<=u){Er(n);return}L(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(t.algorithm){case"lttb":p=jf(c,f,d,s,t);break;case"min-max":p=Nf(c,f,d,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=p})},destroy(e){Go(e)}};function Hf(e,i,t){let s=e.segments,n=e.points,o=i.points,r=[];for(let a of s){let{start:l,end:c}=a;c=dn(l,c,n);let h=ln(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}let f=Bs(i,h);for(let d of f){let u=ln(t,o[d.start],o[d.end],d.loop),p=zs(a,n,u);for(let g of p)r.push({source:g,target:d,start:{[t]:Zo(h,u,"start",Math.max)},end:{[t]:Zo(h,u,"end",Math.min)}})}}return r}function ln(e,i,t,s){if(s)return;let n=i[e],o=t[e];return e==="angle"&&(n=J(n),o=J(o)),{property:e,start:n,end:o}}function $f(e,i){let{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=dn(r,a,n);let l=n[r],c=n[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function dn(e,i,t){for(;i>e;i--){let s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Zo(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function Fr(e,i){let t=[],s=!1;return z(e)?(s=!0,t=e):t=$f(e,i),t.length?new Hi({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function Jo(e){return e&&e.fill!==!1}function Uf(e,i,t){let n=e[i].fill,o=[i],r;if(!t)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!V(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function Yf(e,i,t){let s=Gf(e);if(D(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return V(n)&&Math.floor(n)===n?Xf(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Xf(e,i,t,s){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=s?!1:t}function Kf(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:D(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function qf(e,i,t){let s;return e==="start"?s=t:e==="end"?s=i.options.reverse?i.min:i.max:D(e)?s=e.value:s=i.getBaseValue(),s}function Gf(e){let i=e.options,t=i.fill,s=P(t&&t.target,t);return s===void 0&&(s=!!i.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function Zf(e){let{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=Jf(i,t);a.push(Fr({x:null,y:i.bottom},s));for(let l=0;l<o.length;l++){let c=o[l];for(let h=c.start;h<=c.end;h++)Qf(n,r[h],a)}return new Hi({points:n,options:{}})}function Jf(e,i){let t=[],s=e.getMatchingVisibleMetas("line");for(let n=0;n<s.length;n++){let o=s[n];if(o.index===i)break;o.hidden||t.unshift(o.dataset)}return t}function Qf(e,i,t){let s=[];for(let n=0;n<t.length;n++){let o=t[n],{first:r,last:a,point:l}=td(o,i,"x");if(!(!l||r&&a)){if(r)s.unshift(l);else if(e.push(l),!a)break}}e.push(...s)}function td(e,i,t){let s=e.interpolate(i,t);if(!s)return{};let n=s[t],o=e.segments,r=e.points,a=!1,l=!1;for(let c=0;c<o.length;c++){let h=o[c],f=r[h.start][t],d=r[h.end][t];if(ut(n,f,d)){a=n===f,l=n===d;break}}return{first:a,last:l,point:s}}var Ni=class{constructor(i){this.x=i.x,this.y=i.y,this.radius=i.radius}pathSegment(i,t,s){let{x:n,y:o,radius:r}=this;return t=t||{start:0,end:j},i.arc(n,o,r,t.end,t.start,!0),!s.bounds}interpolate(i){let{x:t,y:s,radius:n}=this,o=i.angle;return{x:t+Math.cos(o)*n,y:s+Math.sin(o)*n,angle:o}}};function ed(e){let{chart:i,fill:t,line:s}=e;if(V(t))return id(i,t);if(t==="stack")return Zf(e);if(t==="shape")return!0;let n=sd(e);return n instanceof Ni?n:Fr(n,s)}function id(e,i){let t=e.getDatasetMeta(i);return t&&e.isDatasetVisible(i)?t.dataset:null}function sd(e){return(e.scale||{}).getPointPositionForValue?od(e):nd(e)}
vendor: 4,571 bytes, line 1
1function nd(e){let{scale:i={},fill:t}=e,s=Kf(t,i);if(V(s)){let n=i.isHorizontal();return{x:n?s:null,y:n?null:s}}return null}function od(e){let{scale:i,fill:t}=e,s=i.options,n=i.getLabels().length,o=s.reverse?i.max:i.min,r=qf(t,i,o),a=[];if(s.grid.circular){let l=i.getPointPositionForValue(0,o);return new Ni({x:l.x,y:l.y,radius:i.getDistanceFromCenterForValue(r)})}for(let l=0;l<n;++l)a.push(i.getPointPositionForValue(l,r));return a}function Ks(e,i,t){let s=ed(i),{line:n,scale:o,axis:r}=i,a=n.options,l=a.fill,c=a.backgroundColor,{above:h=c,below:f=c}=l||{};s&&n.points.length&&(Ee(e,t),rd(e,{line:n,target:s,above:h,below:f,area:t,scale:o,axis:r}),Fe(e))}function rd(e,i){let{line:t,target:s,above:n,below:o,area:r,scale:a}=i,l=t._loop?"angle":i.axis;e.save(),l==="x"&&o!==n&&(Qo(e,s,r.top),tr(e,{line:t,target:s,color:n,scale:a,property:l}),e.restore(),e.save(),Qo(e,s,r.bottom)),tr(e,{line:t,target:s,color:o,scale:a,property:l}),e.restore()}function Qo(e,i,t){let{segments:s,points:n}=i,o=!0,r=!1;e.beginPath();for(let a of s){let{start:l,end:c}=a,h=n[l],f=n[dn(l,c,n)];o?(e.moveTo(h.x,h.y),o=!1):(e.lineTo(h.x,t),e.lineTo(h.x,h.y)),r=!!i.pathSegment(e,a,{move:r}),r?e.closePath():e.lineTo(f.x,t)}e.lineTo(i.first().x,t),e.closePath(),e.clip()}function tr(e,i){let{line:t,target:s,property:n,color:o,scale:r}=i,a=Hf(t,s,n);for(let{source:l,target:c,start:h,end:f}of a){let{style:{backgroundColor:d=o}={}}=l,u=s!==!0;e.save(),e.fillStyle=d,ad(e,r,u&&ln(n,h,f)),e.beginPath();let p=!!t.pathSegment(e,l),g;if(u){p?e.closePath():er(e,s,f,n);let m=!!s.pathSegment(e,c,{move:p,reverse:!0});g=p&&m,g||er(e,s,h,n)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function ad(e,i,t){let{top:s,bottom:n}=i.chart.chartArea,{property:o,start:r,end:a}=t||{};o==="x"&&(e.beginPath(),e.rect(r,s,a-r,n-s),e.clip())}function er(e,i,t,s){let n=i.interpolate(t,s);n&&e.lineTo(n.x,n.y)}var ld={id:"filler",afterDatasetsUpdate(e,i,t){let s=(e.data.datasets||[]).length,n=[],o,r,a,l;for(r=0;r<s;++r)o=e.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof Hi&&(l={visible:e.isDatasetVisible(r),index:r,fill:Yf(a,r,s),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,n.push(l);for(r=0;r<s;++r)l=n[r],!(!l||l.fill===!1)&&(l.fill=Uf(n,r,t.propagate))},beforeDraw(e,i,t){let s=t.drawTime==="beforeDraw",n=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let r=n.length-1;r>=0;--r){let a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Ks(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){let o=s[n].$filler;Jo(o)&&Ks(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let s=i.meta.$filler;!Jo(s)||t.drawTime!=="beforeDatasetDraw"||Ks(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},ir=(e,i)=>{let{boxHeight:t=i,boxWidth:s=i}=e;return e.usePointStyle&&(t=Math.min(t,i),s=e.pointStyleWidth||Math.min(s,i)),{boxWidth:s,boxHeight:t,itemHeight:Math.max(i,t)}},cd=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,Wi=class extends nt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t,s){this.maxWidth=i,this.maxHeight=t,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let i=this.options.labels||{},t=E(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(s=>i.filter(s,this.chart.data))),i.sort&&(t=t.sort((s,n)=>i.sort(s,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,n=U(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ir(s,o),c,h;t.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}
vendor: 6,126 bytes, line 1
1_fitRows(i,t,s,n){let{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a,f=i;o.textAlign="left",o.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach((p,g)=>{let m=s+t/2+o.measureText(p.text).width;(g===0||c[c.length-1]+m+2*a>r)&&(f+=h,c[c.length-(g>0?0:1)]=0,u+=h,d++),l[g]={left:0,top:u,row:d,width:m,height:n},c[c.length-1]+=m+a}),f}_fitCols(i,t,s,n){let{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i,f=a,d=0,u=0,p=0,g=0;return this.legendItems.forEach((m,b)=>{let{itemWidth:x,itemHeight:y}=hd(s,t,o,m,n);b>0&&u+y+2*a>h&&(f+=d+a,c.push({width:d,height:u}),p+=d+a,g++,d=u=0),l[b]={left:p,top:u,col:g,width:x,height:y},d=Math.max(d,x),u+=y+a}),f+=d,c.push({width:d,height:u}),f}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=Yt(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=K(s,this.left+n,this.right-this.lineWidths[a]);for(let c of t)a!==c.row&&(a=c.row,l=K(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+i+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=K(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(let c of t)c.col!==a&&(a=c.col,l=K(s,this.top+i+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;Ee(i,this),this._draw(),Fe(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=F.color,l=Yt(i.rtl,this.left,this.width),c=U(r.font),{padding:h}=r,f=c.size,d=f/2,u;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;let{boxWidth:p,boxHeight:g,itemHeight:m}=ir(r,f),b=function(v,S,w){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();let O=P(w.lineWidth,1);if(n.fillStyle=P(w.fillStyle,a),n.lineCap=P(w.lineCap,"butt"),n.lineDashOffset=P(w.lineDashOffset,0),n.lineJoin=P(w.lineJoin,"miter"),n.lineWidth=O,n.strokeStyle=P(w.strokeStyle,a),n.setLineDash(P(w.lineDash,[])),r.usePointStyle){let A={radius:g*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:O},C=l.xPlus(v,p/2),T=S+d;Ps(n,A,C,T,r.pointStyleWidth&&p)}else{let A=S+Math.max((f-g)/2,0),C=l.leftForLtr(v,p),T=Tt(w.borderRadius);n.beginPath(),Object.values(T).some(X=>X!==0)?ce(n,{x:C,y:A,w:p,h:g,radius:T}):n.rect(C,A,p,g),n.fill(),O!==0&&n.stroke()}n.restore()},x=function(v,S,w){Dt(n,w.text,v,S+m/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},y=this.isHorizontal(),M=this._computeTitleHeight();y?u={x:K(o,this.left+h,this.right-s[0]),y:this.top+h+M,line:0}:u={x:this.left+h,y:K(o,this.top+M+h,this.bottom-t[0].height),line:0},Es(this.ctx,i.textDirection);let _=m+h;this.legendItems.forEach((v,S)=>{n.strokeStyle=v.fontColor,n.fillStyle=v.fontColor;let w=n.measureText(v.text).width,O=l.textAlign(v.textAlign||(v.textAlign=r.textAlign)),A=p+d+w,C=u.x,T=u.y;l.setWidth(this.width),y?S>0&&C+A+h>this.right&&(T=u.y+=_,u.line++,C=u.x=K(o,this.left+h,this.right-s[u.line])):S>0&&T+_>this.bottom&&(C=u.x=C+t[u.line].width+h,u.line++,T=u.y=K(o,this.top+M+h,this.bottom-t[u.line].height));let X=l.x(C);if(b(X,T,v),C=eo(O,C+p+d,y?C+A:this.right,i.rtl),x(l.x(C),T,v),y)u.x+=A+h;else if(typeof v.text!="string"){let st=c.lineHeight;u.y+=zr(v,st)+h}else u.y+=_}),Fs(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,s=U(t.font),n=q(t.padding);if(!t.display)return;let o=Yt(i.rtl,this.left,this.width),r=this.ctx,a=t.position,l=s.size/2,c=n.top+l,h,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,f=K(i.align,f,this.right-d);else{let p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);h=c+K(i.align,this.top,this.bottom-p-i.labels.padding-this._computeTitleHeight())}let u=K(a,f,f+d);r.textAlign=o.textAlign(_i(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,Dt(r,t.text,u,h,s)}_computeTitleHeight(){let i=this.options.title,t=U(i.font),s=q(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(ut(i,this.left,this.right)&&ut(t,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(n=o[s],ut(i,n.left,n.left+n.width)&&ut(t,n.top,n.top+n.height))return this.legendItems[s]}return null}handleEvent(i){let t=this.options;if(!ud(i.type,t))return;let s=this._getLegendItemAt(i.x,i.y);if(i.type==="mousemove"||i.type==="mouseout"){let n=this._hoveredItem,o=cd(n,s);n&&!o&&E(t.onLeave,[i,n,this],this),this._hoveredItem=s,s&&!o&&E(t.onHover,[i,s,this],this)}else s&&E(t.onClick,[i,s,this],this)}};function hd(e,i,t,s,n){let o=fd(s,e,i,t),r=dd(n,s,i.lineHeight);return{itemWidth:o,itemHeight:r}}function fd(e,i,t,s){let n=e.text;return n&&typeof n!="string"&&(n=n.reduce((o,r)=>o.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}function dd(e,i,t){let s=e;return typeof i.text!="string"&&(s=zr(i,t)),s}function zr(e,i){let t=e.text?e.text.length:0;return i*t}function ud(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var pd={id:"legend",_element:Wi,start(e,i,t){let s=e.legend=new Wi({ctx:e.ctx,options:t,chart:e});Z.configure(e,s,t),Z.addBox(e,s)},stop(e){Z.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let s=e.legend;Z.configure(e,s,t),s.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let s=i.datasetIndex,n=t.chart;n.isDatasetVisible(s)?(n.hide(s),i.hidden=!0):(n.show(s),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;
vendor: 4,635 bytes, lines 1-3
1return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=q(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Ke=class extends nt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let n=z(s.text)?s.text.length:1;this._padding=q(s.padding);let o=n*U(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align,l=0,c,h,f;return this.isHorizontal()?(h=K(a,s,o),f=t+i,c=o-s):(r.position==="left"?(h=s+i,f=K(a,n,t),l=B*-.5):(h=o-i,f=K(a,t,n),l=B*.5),c=n-t),{titleX:h,titleY:f,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let s=U(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Dt(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:_i(t.align),textBaseline:"middle",translation:[r,a]})}};function gd(e,i){let t=new Ke({ctx:e.ctx,options:i,chart:e});Z.configure(e,t,i),Z.addBox(e,t),e.titleBlock=t}var md={id:"title",_element:Ke,start(e,i,t){gd(e,t)},stop(e){let i=e.titleBlock;Z.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let s=e.titleBlock;Z.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ti=new WeakMap,xd={id:"subtitle",start(e,i,t){let s=new Ke({ctx:e.ctx,options:t,chart:e});Z.configure(e,s,t),Z.addBox(e,s),Ti.set(e,s)},stop(e){Z.removeBox(e,Ti.get(e)),Ti.delete(e)},beforeUpdate(e,i,t){let s=Ti.get(e);Z.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},He={average(e){if(!e.length)return!1;let i,t,s=new Set,n=0,o=0;for(i=0,t=e.length;i<t;++i){let a=e[i].element;if(a&&a.hasValue()){let l=a.tooltipPosition();s.add(l.x),n+=l.y,++o}}return o===0||s.size===0?!1:{x:[...s].reduce((a,l)=>a+l)/s.size,y:n/o}},nearest(e,i){if(!e.length)return!1;let t=i.x,s=i.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){let l=e[o].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),h=pi(i,c);h<n&&(n=h,a=l)}}if(a){let l=a.tooltipPosition();t=l.x,s=l.y}return{x:t,y:s}}};function pt(e,i){return i&&(z(i)?Array.prototype.push.apply(e,i):e.push(i)),e}function wt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
2`)>-1?e.split(`
3`):e}function bd(e,i){let{element:t,datasetIndex:s,index:n}=i,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:e,label:r,parsed:o.getParsed(n),raw:e.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:t}}function sr(e,i){let t=e.chart.ctx,{body:s,footer:n,title:o}=e,{boxWidth:r,boxHeight:a}=i,l=U(i.bodyFont),c=U(i.titleFont),h=U(i.footerFont),f=o.length,d=n.length,u=s.length,p=q(i.padding),g=p.height,m=0,b=s.reduce((M,_)=>M+_.before.length+_.lines.length+_.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,f&&(g+=f*c.lineHeight+(f-1)*i.titleSpacing+i.titleMarginBottom),b){let M=i.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=u*M+(b-u)*l.lineHeight+(b-1)*i.bodySpacing}d&&(g+=i.footerMarginTop+d*h.lineHeight+(d-1)*i.footerSpacing);let x=0,y=function(M){m=Math.max(m,t.measureText(M).width+x)};return t.save(),t.font=c.string,R(e.title,y),t.font=l.string,R(e.beforeBody.concat(e.afterBody),y),x=i.displayColors?r+2+i.boxPadding:0,R(s,M=>{R(M.before,y),R(M.lines,y),R(M.after,y)}
vendor: 9,379 bytes, line 3
3),x=0,t.font=h.string,R(e.footer,y),t.restore(),m+=p.width,{width:m,height:g}}function _d(e,i){let{y:t,height:s}=i;return t<s/2?"top":t>e.height-s/2?"bottom":"center"}function yd(e,i,t,s){let{x:n,width:o}=s,r=t.caretSize+t.caretPadding;if(e==="left"&&n+o+r>i.width||e==="right"&&n-o-r<0)return!0}function vd(e,i,t,s){let{x:n,width:o}=t,{width:r,chartArea:{left:a,right:l}}=e,c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),yd(c,e,i,t)&&(c="center"),c}function nr(e,i,t){let s=t.yAlign||i.yAlign||_d(e,t);return{xAlign:t.xAlign||i.xAlign||vd(e,i,t,s),yAlign:s}}function Md(e,i){let{x:t,width:s}=e;return i==="right"?t-=s:i==="center"&&(t-=s/2),t}function wd(e,i,t){let{y:s,height:n}=e;return i==="top"?s+=t:i==="bottom"?s-=n+t:s-=n/2,s}function or(e,i,t,s){let{caretSize:n,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=t,c=n+o,{topLeft:h,topRight:f,bottomLeft:d,bottomRight:u}=Tt(r),p=Md(i,a),g=wd(i,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(h,d)+n:a==="right"&&(p+=Math.max(f,u)+n),{x:Y(p,0,s.width-i.width),y:Y(g,0,s.height-i.height)}}function Li(e,i,t){let s=q(t.padding);return i==="center"?e.x+e.width/2:i==="right"?e.x+e.width-s.right:e.x+s.left}function rr(e){return pt([],wt(e))}function Sd(e,i,t){return vt(e,{tooltip:i,tooltipItems:t,type:"tooltip"})}function ar(e,i){let t=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return t?e.override(t):e}var Br={beforeTitle:dt,title(e){if(e.length>0){let i=e[0],t=i.chart.data.labels,s=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return i.dataset.label||"";if(i.label)return i.label;if(s>0&&i.dataIndex<s)return t[i.dataIndex]}return""},afterTitle:dt,beforeBody:dt,beforeLabel:dt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let i=e.dataset.label||"";i&&(i+=": ");let t=e.formattedValue;return L(t)||(i+=t),i},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:dt,afterBody:dt,beforeFooter:dt,footer:dt,afterFooter:dt};function tt(e,i,t,s){let n=e[i].call(t,s);return typeof n>"u"?Br[i].call(t,s):n}var lr=(()=>{class e extends nt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let s=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&s.options.animation&&n.animations,r=new Fi(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Sd(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,s){let{callbacks:n}=s,o=tt(n,"beforeTitle",this,t),r=tt(n,"title",this,t),a=tt(n,"afterTitle",this,t),l=[];return l=pt(l,wt(o)),l=pt(l,wt(r)),l=pt(l,wt(a)),l}getBeforeBody(t,s){return rr(tt(s.callbacks,"beforeBody",this,t))}getBody(t,s){let{callbacks:n}=s,o=[];return R(t,r=>{let a={before:[],lines:[],after:[]},l=ar(n,r);pt(a.before,wt(tt(l,"beforeLabel",this,r))),pt(a.lines,tt(l,"label",this,r)),pt(a.after,wt(tt(l,"afterLabel",this,r))),o.push(a)}),o}getAfterBody(t,s){return rr(tt(s.callbacks,"afterBody",this,t))}getFooter(t,s){let{callbacks:n}=s,o=tt(n,"beforeFooter",this,t),r=tt(n,"footer",this,t),a=tt(n,"afterFooter",this,t),l=[];return l=pt(l,wt(o)),l=pt(l,wt(r)),l=pt(l,wt(a)),l}_createItems(t){let s=this._active,n=this.chart.data,o=[],r=[],a=[],l=[],c,h;for(c=0,h=s.length;c<h;++c)l.push(bd(this.chart,s[c]));return t.filter&&(l=l.filter((f,d,u)=>t.filter(f,d,u,n))),t.itemSort&&(l=l.sort((f,d)=>t.itemSort(f,d,n))),R(l,f=>{let d=ar(t.callbacks,f);o.push(tt(d,"labelColor",this,f)),r.push(tt(d,"labelPointStyle",this,f)),a.push(tt(d,"labelTextColor",this,f))}),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(t,s){let n=this.options.setContext(this.getContext()),o=this._active,r,a=[];if(!o.length)this.opacity!==0&&(r={opacity:0});else{let l=He[n.position].call(this,o,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let c=this._size=sr(this,n),h=Object.assign({},l,c),f=nr(this.chart,n,h),d=or(n,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:d.x,y:d.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:s})}drawCaret(t,s,n,o){let r=this.getCaretPosition(t,n,o);s.lineTo(r.x1,r.y1),s.lineTo(r.x2,r.y2),s.lineTo(r.x3,r.y3)}getCaretPosition(t,s,n){let{xAlign:o,yAlign:r}=this,{caretSize:a,cornerRadius:l}=n,{topLeft:c,topRight:h,bottomLeft:f,bottomRight:d}=Tt(l),{x:u,y:p}=t,{width:g,height:m}=s,b,x,y,M,_,v;return r==="center"?(_=p+m/2,o==="left"?(b=u,x=b-a,M=_+a,v=_-a):(b=u+g,x=b+a,M=_-a,v=_+a),y=b):(o==="left"?x=u+Math.max(c,f)+a:o==="right"?x=u+g-Math.max(h,d)-a:x=this.caretX,r==="top"?(M=p,_=M-a,b=x-a,y=x+a):(M=p+m,_=M+a,b=x+a,y=x-a),v=M),{x1:b,x2:x,x3:y,y1:M,y2:_,y3:v}}drawTitle(t,s,n){let o=this.title,r=o.length,a,l,c;if(r){let h=Yt(n.rtl,this.x,this.width);for(t.x=Li(this,n.titleAlign,n),s.textAlign=h.textAlign(n.titleAlign),s.textBaseline="middle",a=U(n.titleFont),l=n.titleSpacing,s.fillStyle=n.titleColor,s.font=a.string,c=0;c<r;++c)s.fillText(o[c],h.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+l,c+1===r&&(t.y+=n.titleMarginBottom-l)}}_drawColorBox(t,s,n,o,r){let a=this.labelColors[n],l=this.labelPointStyles[n],{boxHeight:c,boxWidth:h}=r,f=U(r.bodyFont),d=Li(this,"left",r),u=o.x(d),p=c<f.lineHeight?(f.lineHeight-c)/2:0,g=s.y+p;if(r.usePointStyle){let m={radius:Math.min(h,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=o.leftForLtr(u,h)+h/2,x=g+c/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,vi(t,m,b,x),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,vi(t,m,b,x)}else{t.lineWidth=D(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;let m=o.leftForLtr(u,h),b=o.leftForLtr(o.xPlus(u,1),h-2),x=Tt(a.borderRadius);Object.values(x).some(y=>y!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,ce(t,{x:m,y:g,w:h,h:c,radius:x}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),ce(t,{x:b,y:g+1,w:h-2,h:c-2,radius:x}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,g,h,c),t.strokeRect(m,g,h,c),t.fillStyle=a.backgroundColor,t.fillRect(b,g+1,h-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,s,n){let{body:o}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:f}=n,d=U(n.bodyFont),u=d.lineHeight,p=0,g=Yt(n.rtl,this.x,this.width),m=function(O){s.fillText(O,g.x(t.x+p),t.y+u/2),t.y+=u+r},b=g.textAlign(a),x,y,M,_,v,S,w;for(s.textAlign=a,s.textBaseline="middle",s.font=d.string,t.x=Li(this,b,n),s.fillStyle=n.bodyColor,R(this.beforeBody,m),p=l&&b!=="right"?a==="center"?h/2+f:h+2+f:0,_=0,S=o.length;_<S;++_){for(x=o[_],y=this.labelTextColors[_],s.fillStyle=y,R(x.before,m),M=x.lines,l&&M.length&&(this._drawColorBox(s,t,_,g,n),u=Math.max(d.lineHeight,c)),v=0,w=M.length;v<w;++v)m(M[v]),u=d.lineHeight;R(x.after,m)}p=0,u=d.lineHeight,R(this.afterBody,m),t.y-=r}drawFooter(t,s,n){let o=this.footer,r=o.length,a,l;if(r){let c=Yt(n.rtl,this.x,this.width);for(t.x=Li(this,n.footerAlign,n),t.y+=n.footerMarginTop,s.textAlign=c.textAlign(n.footerAlign),s.textBaseline="middle",a=U(n.footerFont),s.fillStyle=n.footerColor,s.font=a.string,l=0;l<r;++l)s.fillText(o[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,s,n,o){let{xAlign:r,yAlign:a}=this,{x:l,y:c}=t,{width:h,height:f}=n,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:g}=Tt(o.cornerRadius);s.fillStyle=o.backgroundColor,s.strokeStyle=o.borderColor,s.lineWidth=o.borderWidth,s.beginPath(),s.moveTo(l+d,c),a==="top"&&this.drawCaret(t,s,n,o),s.lineTo(l+h-u,c),s.quadraticCurveTo(l+h,c,l+h,c+u),a==="center"&&r==="right"&&this.drawCaret(t,s,n,o),s.lineTo(l+h,c+f-g),s.quadraticCurveTo(l+h,c+f,l+h-g,c+f),a==="bottom"&&this.drawCaret(t,s,n,o),s.lineTo(l+p,c+f),s.quadraticCurveTo(l,c+f,l,c+f-p),a==="center"&&r==="left"&&this.drawCaret(t,s,n,o),s.lineTo(l,c+d),s.quadraticCurveTo(l,c,l
vendor: 6,711 bytes, line 3
3+d,c),s.closePath(),s.fill(),o.borderWidth>0&&s.stroke()}_updateAnimationTarget(t){let s=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){let a=He[t.position].call(this,this._active,this._eventPosition);if(!a)return;let l=this._size=sr(this,t),c=Object.assign({},a,this._size),h=nr(s,t,c),f=or(t,c,h,s);(o._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){let s=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(s);let o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=q(s.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;s.enabled&&l&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,o,s),Es(t,s.textDirection),r.y+=a.top,this.drawTitle(r,t,s),this.drawBody(r,t,s),this.drawFooter(r,t,s),Fs(t,s.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,s){let n=this._active,o=t.map(({datasetIndex:l,index:c})=>{let h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),r=!Re(n,o),a=this._positionChanged(o,s);(r||a)&&(this._active=o,this._eventPosition=s,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,s,n=!0){if(s&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,r=this._active||[],a=this._getActiveElements(t,r,s,n),l=this._positionChanged(a,t),c=s||!Re(a,r)||l;return c&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,s))),c}_getActiveElements(t,s,n,o){let r=this.options;if(t.type==="mouseout")return[];if(!o)return s.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let a=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&a.reverse(),a}_positionChanged(t,s){let{caretX:n,caretY:o,options:r}=this,a=He[r.position].call(this,t,s);return a!==!1&&(n!==a.x||o!==a.y)}}return k(e,"positioners",He),e})(),kd={id:"tooltip",_element:lr,positioners:He,afterInit(e,i,t){t&&(e.tooltip=new lr({chart:e,options:t}))},beforeUpdate(e,i,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,i,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){let i=e.tooltip;if(i&&i._willRender()){let t={tooltip:i};if(e.notifyPlugins("beforeTooltipDraw",oi(ni({},t),{cancelable:!0}))===!1)return;i.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,i){if(e.tooltip){let t=i.replay;e.tooltip.handleEvent(i.event,t,i.inChartArea)&&(i.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,i)=>i.bodyFont.size,boxWidth:(e,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Br},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Od=Object.freeze({__proto__:null,Colors:Bf,Decimation:Vf,Filler:ld,Legend:pd,SubTitle:xd,Title:md,Tooltip:kd}),Pd=(e,i,t,s)=>(typeof i=="string"?(t=e.push(i)-1,s.unshift({index:t,label:i})):isNaN(i)&&(t=null),t);function Cd(e,i,t,s){let n=e.indexOf(i);if(n===-1)return Pd(e,i,t,s);let o=e.lastIndexOf(i);return n!==o?t:n}var Ad=(e,i)=>e===null?null:Y(Math.round(e),0,i);function cr(e){let i=this.getLabels();return e>=0&&e<i.length?i[e]:e}var Dd=(()=>{class e extends Zt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let s=this._addedLabels;if(s.length){let n=this.getLabels();for(let{index:o,label:r}of s)n[o]===r&&n.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,s){if(L(t))return null;let n=this.getLabels();return s=isFinite(s)&&n[s]===t?s:Cd(n,t,P(s,t),this._addedLabels),Ad(s,n.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:s}=this.getUserBounds(),{min:n,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),s||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){let t=this.min,s=this.max,n=this.options.offset,o=[],r=this.getLabels();r=t===0&&s===r.length-1?r:r.slice(t,s+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let a=t;a<=s;a++)o.push({value:a});return o}getLabelForValue(t){return cr.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let s=this.ticks;return t<0||t>s.length-1?null:this.getPixelForValue(s[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}return k(e,"id","category"),k(e,"defaults",{ticks:{callback:cr}}),e})();function Td(e,i){let t=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:f,includeBounds:d}=e,u=o||1,p=h-1,{min:g,max:m}=i,b=!L(r),x=!L(a),y=!L(c),M=(m-g)/(f+1),_=ps((m-g)/p/u)*u,v,S,w,O;if(_<1e-14&&!b&&!x)return[{value:g},{value:m}];O=Math.ceil(m/_)-Math.floor(g/_),O>p&&(_=ps(O*_/p/u)*u),L(l)||(v=Math.pow(10,l),_=Math.ceil(_*v)/v),n==="ticks"?(S=Math.floor(g/_)*_,w=Math.ceil(m/_)*_):(S=g,w=m),b&&x&&o&&Kn((a-r)/o,_/1e3)?(O=Math.round(Math.min((a-r)/_,h)),_=(a-r)/O,S=r,w=a):y?(S=b?r:S,w=x?a:w,O=c-1,_=(w-S)/O):(O=(w-S)/_,re(O,Math.round(O),_/1e3)?O=Math.round(O):O=Math.ceil(O));let A=Math.max(ms(_),ms(S));v=Math.pow(10,L(l)?A:l),S=Math.round(S*v)/v,w=Math.round(w*v)/v;let C=0;for(b&&(d&&S!==r?(t.push({value:r}),S<r&&C++,re(Math.round((S+C*_)*v)/v,r,hr(r,M,e))&&C++):S<r&&C++);C<O;++C){let T=Math.round((S+C*_)*v)/v;if(x&&T>a)break;t.push({value:T})}return x&&d&&w!==a?t.length&&re(t[t.length-1].value,a,hr(a,M,e))?t[t.length-1].value=a:t.push({value:a}
vendor: 17,379 bytes, line 3
3):(!x||w===a)&&t.push({value:w}),t}function hr(e,i,{horizontal:t,minRotation:s}){let n=rt(s),o=(t?Math.sin(n):Math.cos(n))||.001,r=.75*i*(""+e).length;return Math.min(i/o,r)}var pe=class extends Zt{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,t){return L(i)||(typeof i=="number"||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){let{beginAtZero:i}=this.options,{minDefined:t,maxDefined:s}=this.getUserBounds(),{min:n,max:o}=this,r=l=>n=t?n:l,a=l=>o=s?o:l;if(i){let l=ct(n),c=ct(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),i||r(n-l)}this.min=n,this.max=o}getTickLimit(){let i=this.options.ticks,{maxTicksLimit:t,stepSize:s}=i,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),t=t||11),t&&(n=Math.min(t,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let i=this.options,t=i.ticks,s=this.getTickLimit();s=Math.max(2,s);let n={maxTicks:s,bounds:i.bounds,min:i.min,max:i.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},o=this._range||this,r=Td(n,o);return i.bounds==="ticks"&&gs(r,this,"value"),i.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let i=this.ticks,t=this.min,s=this.max;if(super.configure(),this.options.offset&&i.length){let n=(s-t)/Math.max(i.length-1,1)/2;t-=n,s+=n}this._startValue=t,this._endValue=s,this._valueRange=s-t}getLabelForValue(i){return le(i,this.chart.options.locale,this.options.ticks.format)}},$e=class extends pe{determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=V(i)?i:0,this.max=V(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let i=this.isHorizontal(),t=i?this.width:this.height,s=rt(this.options.ticks.minRotation),n=(i?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/n))}getPixelForValue(i){return i===null?NaN:this.getPixelForDecimal((i-this._startValue)/this._valueRange)}getValueForPixel(i){return this._startValue+this.getDecimalForPixel(i)*this._valueRange}};k($e,"id","linear"),k($e,"defaults",{ticks:{callback:Ie.formatters.numeric}});var qe=e=>Math.floor(_t(e)),Kt=(e,i)=>Math.pow(10,qe(e)+i);function fr(e){return e/Math.pow(10,qe(e))===1}function dr(e,i,t){let s=Math.pow(10,t),n=Math.floor(e/s);return Math.ceil(i/s)-n}function Ld(e,i){let t=i-e,s=qe(t);for(;dr(e,i,s)>10;)s++;for(;dr(e,i,s)<10;)s--;return Math.min(s,qe(e))}function Rd(e,{min:i,max:t}){i=Q(e.min,i);let s=[],n=qe(i),o=Ld(i,t),r=o<0?Math.pow(10,Math.abs(o)):1,a=Math.pow(10,o),l=n>o?Math.pow(10,n):0,c=Math.round((i-l)*r)/r,h=Math.floor((i-l)/a/10)*a*10,f=Math.floor((c-h)/Math.pow(10,o)),d=Q(e.min,Math.round((l+h+f*Math.pow(10,o))*r)/r);for(;d<t;)s.push({value:d,major:fr(d),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,r=o>=0?1:r),d=Math.round((l+h+f*Math.pow(10,o))*r)/r;let u=Q(e.max,d);return s.push({value:u,major:fr(u),significand:f}),s}var Ue=class extends Zt{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(i,t){let s=pe.prototype.parse.apply(this,[i,t]);if(s===0){this._zero=!0;return}return V(s)&&s>0?s:null}determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=V(i)?Math.max(0,i):null,this.max=V(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!V(this._userMin)&&(this.min=i===Kt(this.min,0)?Kt(this.min,-1):Kt(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:i,maxDefined:t}=this.getUserBounds(),s=this.min,n=this.max,o=a=>s=i?s:a,r=a=>n=t?n:a;s===n&&(s<=0?(o(1),r(10)):(o(Kt(s,-1)),r(Kt(n,1)))),s<=0&&o(Kt(n,-1)),n<=0&&r(Kt(s,1)),this.min=s,this.max=n}buildTicks(){let i=this.options,t={min:this._userMin,max:this._userMax},s=Rd(t,this);return i.bounds==="ticks"&&gs(s,this,"value"),i.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(i){return i===void 0?"0":le(i,this.chart.options.locale,this.options.ticks.format)}configure(){let i=this.min;super.configure(),this._startValue=_t(i),this._valueRange=_t(this.max)-_t(i)}getPixelForValue(i){return(i===void 0||i===0)&&(i=this.min),i===null||isNaN(i)?NaN:this.getPixelForDecimal(i===this.min?0:(_t(i)-this._startValue)/this._valueRange)}getValueForPixel(i){let t=this.getDecimalForPixel(i);return Math.pow(10,this._startValue+t*this._valueRange)}};k(Ue,"id","logarithmic"),k(Ue,"defaults",{ticks:{callback:Ie.formatters.logarithmic,major:{enabled:!0}}});function cn(e){let i=e.ticks;if(i.display&&e.display){let t=q(i.backdropPadding);return P(i.font&&i.font.size,F.font.size)+t.height}return 0}function Id(e,i,t){return t=z(t)?t:[t],{w:so(e,i.string,t),h:t.length*i.lineHeight}}function ur(e,i,t,s,n){return e===s||e===n?{start:i-t/2,end:i+t/2}:e<s||e>n?{start:i-t,end:i}:{start:i,end:i+t}}function Ed(e){let i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},i),s=[],n=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?B/o:0;for(let l=0;l<o;l++){let c=r.setContext(e.getPointLabelContext(l));n[l]=c.padding;let h=e.getPointPosition(l,e.drawingArea+n[l],a),f=U(c.font),d=Id(e.ctx,f,e._pointLabels[l]);s[l]=d;let u=J(e.getIndexAngle(l)+a),p=Math.round(xi(u)),g=ur(p,h.x,d.w,0,180),m=ur(p,h.y,d.h,90,270);Fd(t,i,u,g,m)}e.setCenterPoint(i.l-t.l,t.r-i.r,i.t-t.t,t.b-i.b),e._pointLabelItems=jd(e,s,n)}function Fd(e,i,t,s,n){let o=Math.abs(Math.sin(t)),r=Math.abs(Math.cos(t)),a=0,l=0;s.start<i.l?(a=(i.l-s.start)/o,e.l=Math.min(e.l,i.l-a)):s.end>i.r&&(a=(s.end-i.r)/o,e.r=Math.max(e.r,i.r+a)),n.start<i.t?(l=(i.t-n.start)/r,e.t=Math.min(e.t,i.t-l)):n.end>i.b&&(l=(n.end-i.b)/r,e.b=Math.max(e.b,i.b+l))}function zd(e,i,t){let s=e.drawingArea,{extra:n,additionalAngle:o,padding:r,size:a}=t,l=e.getPointPosition(i,s+n+r,o),c=Math.round(xi(J(l.angle+H))),h=Vd(l.y,a.h,c),f=Nd(c),d=Wd(l.x,a.w,f);return{visible:!0,x:l.x,y:h,textAlign:f,left:d,top:h,right:d+a.w,bottom:h+a.h}}function Bd(e,i){if(!i)return!0;let{left:t,top:s,right:n,bottom:o}=e;return!(ft({x:t,y:s},i)||ft({x:t,y:o},i)||ft({x:n,y:s},i)||ft({x:n,y:o},i))}function jd(e,i,t){let s=[],n=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:cn(o)/2,additionalAngle:r?B/n:0},c;for(let h=0;h<n;h++){l.padding=t[h],l.size=i[h];let f=zd(e,h,l);s.push(f),a==="auto"&&(f.visible=Bd(f,c),f.visible&&(c=f))}return s}function Nd(e){return e===0||e===180?"center":e<180?"left":"right"}function Wd(e,i,t){return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function Vd(e,i,t){return t===90||t===270?e-=i/2:(t>270||t<90)&&(e-=i),e}function Hd(e,i,t){let{left:s,top:n,right:o,bottom:r}=t,{backdropColor:a}=i;if(!L(a)){let l=Tt(i.borderRadius),c=q(i.backdropPadding);e.fillStyle=a;let h=s-c.left,f=n-c.top,d=o-s+c.width,u=r-n+c.height;Object.values(l).some(p=>p!==0)?(e.beginPath(),ce(e,{x:h,y:f,w:d,h:u,radius:l}),e.fill()):e.fillRect(h,f,d,u)}}function $d(e,i){let{ctx:t,options:{pointLabels:s}}=e;for(let n=i-1;n>=0;n--){let o=e._pointLabelItems[n];if(!o.visible)continue;let r=s.setContext(e.getPointLabelContext(n));Hd(t,r,o);let a=U(r.font),{x:l,y:c,textAlign:h}=o;Dt(t,e._pointLabels[n],l,c+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}function jr(e,i,t,s){let{ctx:n}=e;if(t)n.arc(e.xCenter,e.yCenter,i,0,j);else{let o=e.getPointPosition(0,i);n.moveTo(o.x,o.y);for(let r=1;r<s;r++)o=e.getPointPosition(r,i),n.lineTo(o.x,o.y)}}function Ud(e,i,t,s,n){let o=e.ctx,r=i.circular,{color:a,lineWidth:l}=i;!r&&!s||!a||!l||t<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(n.dash||[]),o.lineDashOffset=n.dashOffset,o.beginPath(),jr(e,t,r,s),o.closePath(),o.stroke(),o.restore())}function Yd(e,i,t){return vt(e,{label:t,index:i,type:"pointLabel"})}var Gt=class extends pe{constructor(i){super(i),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let i=this._padding=q(cn(this.options)/2),t=this.width=this.maxWidth-i.width,s=this.height=this.maxHeight-i.height;this.xCenter=Math.floor(this.left+t/2+i.left),this.yCenter=Math.floor(this.top+s/2+i.top),this.drawingArea=Math.floor(Math.min(t,s)/2)}determineDataLimits(){let{min:i,max:t}=this.getMinMax(!1);this.min=V(i)&&!isNaN(i)?i:0,this.max=V(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/cn(this.options))}generateTickLabels(i){pe.prototype.generateTickLabels.call(this,i),this._pointLabels=this.getLabels().map((t,s)=>{let n=E(this.options.pointLabels.callback,[t,s],this);return n||n===0?n:""}).filter((t,s)=>this.chart.getDataVisibility(s))}fit(){let i=this.options;i.display&&i.pointLabels.display?Ed(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(i,t,s,n){this.xCenter+=Math.floor((i-t)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(i,t,s,n))}getIndexAngle(i){let t=j/(this._pointLabels.length||1),s=this.options.startAngle||0;return J(i*t+rt(s))}getDistanceFromCenterForValue(i){if(L(i))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-i)*t:(i-this.min)*t}getValueForDistanceFromCenter(i){if(L(i))return NaN;let t=i/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(i){let t=this._pointLabels||[];if(i>=0&&i<t.length){let s=t[i];return Yd(this.getContext(),i,s)}}getPointPosition(i,t,s=0){let n=this.getIndexAngle(i)-H+s;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter,angle:n}}getPointPositionForValue(i,t){return this.getPointPosition(i,this.getDistanceFromCenterForValue(t))}getBasePosition(i){return this.getPointPositionForValue(i||0,this.getBaseValue())}getPointLabelPosition(i){let{left:t,top:s,right:n,bottom:o}=this._pointLabelItems[i];return{left:t,top:s,right:n,bottom:o}}drawBackground(){let{backgroundColor:i,grid:{circular:t}}=this.options;if(i){let s=this.ctx;s.save(),s.beginPath(),jr(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),s.closePath(),s.fillStyle=i,s.fill(),s.restore()}}drawGrid(){let i=this.ctx,t=this.options,{angleLines:s,grid:n,border:o}=t,r=this._pointLabels.length,a,l,c;if(t.pointLabels.display&&$d(this,r),n.display&&this.ticks.forEach((h,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(h.value);let d=this.getContext(f),u=n.setContext(d),p=o.setContext(d);Ud(this,u,l,r,p)}}),s.display){for(i.save(),a=r-1;a>=0;a--){let h=s.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:d}=h;!d||!f||(i.lineWidth=d,i.strokeStyle=f,i.setLineDash(h.borderDash),i.lineDashOffset=h.borderDashOffset,l=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(a,l),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(c.x,c.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){let i=this.ctx,t=this.options,s=t.ticks;if(!s.display)return;let n=this.getIndexAngle(0),o,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(n),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!t.reverse)return;let c=s.setContext(this.getContext(l)),h=U(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=h.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;let f=q(c.backdropPadding);i.fillRect(-r/2-f.left,-o-h.size/2-f.top,r+f.width,h.size+f.height)}Dt(i,a.label,0,-o,h,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),i.restore()}drawTitle(){}};k(Gt,"id","radialLinear"),k(Gt,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ie.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(i){return i},padding:5,centerPointLabels:!1}}),k(Gt,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),k(Gt,"descriptors",{angleLines:{_fallback:"grid"}});var $i={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},et=Object.keys($i);function pr(e,i){return e-i}function gr(e,i){if(L(i))return null;let t=e._adapter,{parser:s,round:n,isoWeekday:o}=e._parseOpts,r=i;return typeof s=="function"&&(r=s(r)),V(r)||(r=typeof s=="string"?t.parse(r,s):t.parse(r)),r===null?null:(n&&(r=n==="week"&&(Ut(o)||o===!0)?t.startOf(r,"isoWeek",o):t.startOf(r,n)),+r)}function mr(e,i,t,s){let n=et.length;for(let o=et.indexOf(e);o<n-1;++o){let r=$i[et[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((t-i)/(a*r.size))<=s)return et[o]}return et[n-1]}function Xd(e,i,t,s,n){for(let o=et.length-1;o>=et.indexOf(t);o--){let r=et[o];if($i[r].common&&e._adapter.diff(n,s,r)>=i-1)return r}return et[t?et.indexOf(t):0]}function Kd(e){for(let i=et.indexOf(e)+1,t=et.length;i<t;++i)if($i[et[i]].common)return et[i]}function xr(e,i,t){if(!t)e[i]=!0;else if(t.length){let{lo:s,hi:n}=bi(t,i),o=t[s]>=i?t[s]:t[n];e[o]=!0}}function qd(e,i,t,s){let n=e._adapter,o=+n.startOf(i[0].value,s),r=i[i.length-1].value,a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=t[a],l>=0&&(i[l].major=!0);return i}function br(e,i,t){let s=[],n={},o=i.length,r,a;for(r=0;r<o;++r)a=i[r],n[a]=r,s.push({value:a,major:!1});return o===0||!t?s:qd(e,s,n,t)}var hn=(()=>{class e extends Zt{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,s={}){let n=t.time||(t.time={}),o=this._adapter=new oh._date(t.adapters.date);o.init(s),ne(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=s.normalized}parse(t,s){return t===void 0?null:gr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,s=this._adapter,n=t.time.unit||"day",{min:o,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(h){!a&&!isNaN(h.min)&&(o=Math.min(o,h.min)),!l&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=V(o)&&!isNaN(o)?o:+s.startOf(Date.now(),n),r=V(r)&&!isNaN(r)?r:+s.endOf(Date.now(),n)+1,this.min=Math.min(o,r-1),this.max=Math.max(o+1,r)}_getLabelBounds(){let t=this.getLabelTimestamps(),s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(s=t[0],n=t[t.length-1]),{min:s,max:n}}buildTicks(){let t=this.options,s=t.time,n=t.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let r=this.min,a=this.max,l=Zn(o,r,a);return this._unit=s.unit||(n.autoSkip?mr(s.minUnit,this.min,this.max,this._getLabelCapacity(r)):Xd(this,l.length,s.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Kd(this._unit),this.initOffsets(o),t.reverse&&l.reverse(),br(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let s=0,n=0,o,r;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?s=1-o:s=(this.getDecimalForValue(t[1])-o)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?n=r:n=(r-this.getDecimalForValue(t[t.length-2]))/2);let a=t.length<3?.5:.25;s=Y(s,0,a),n=Y(n,0,a),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){let t=this._adapter,s=this.min,n=this.max,o=this.options,r=o.time,a=r.unit||mr(r.minUnit,s,n,this._getLabelCapacity(s)),l=P(o.ticks.stepSize,1),c=a==="week"?r.isoWeekday:!1,h=Ut(c)||c===!0,f={},d=s,u,p;if(h&&(d=+t.startOf(d,"isoWeek",c)),d=+t.startOf(d,h?"day":a),t.diff(n,s,a)>1e5*l)throw new Error(s+" and "+n+" are too far apart with stepSize of "+l+" "+a);let g=o.ticks.source==="data"&&this.getDataTimestamps();for(u=d,p=0;u<n;u=+t.add(u,l,a),p++)xr(f,u,g);return(u===n||o.bounds==="ticks"||p===1)&&xr(f,u,g),Object.keys(f).sort(pr).map(m=>+m)}getLabelForValue(t){let s=this._adapter,n=this.options.time;return n.tooltipFormat?s.format(t,n.tooltipFormat):s.format(t,n.displayFormats.datetime)}format(t,s){let o=this.options.time.displayFormats,r=this._unit,a=s||o[r];return this._adapter.format(t,a)}_tickFormatFunction(t,s,n,o){let r=this.options,a=r.ticks.callback;if(a)return E(a,[t,s,n],this);let l=r.time.displayFormats,c=this._unit,h=this._majorUnit,f=c&&l[c],d=h&&l[h],u=n[s],p=h&&d&&u&&u.major;return this._adapter.format(t,o||(p?d:f))}generateTickLabels(t){let s,n,o;for(s=0,n=t.length;s<n;
3++s)o=t[s],o.label=this._tickFormatFunction(o.value,s,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let s=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((s.start+n)*s.factor)}getValueForPixel(t){let s=this._offsets,n=this.getDecimalForPixel(t)/s.factor-s.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){let s=this.options.ticks,n=this.ctx.measureText(t).width,o=rt(this.isHorizontal()?s.maxRotation:s.minRotation),r=Math.cos(o),a=Math.sin(o),l=this._resolveTickFontOptions(0).size;return{w:n*r+l*a,h:n*a+l*r}}_getLabelCapacity(t){let s=this.options.time,n=s.displayFormats,o=n[s.unit]||n.millisecond,r=this._tickFormatFunction(t,0,br(this,[t],this._majorUnit),o),a=this._getLabelSize(r),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],s,n;if(t.length)return t;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(s=0,n=o.length;s<n;++s)t=t.concat(o[s].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],s,n;if(t.length)return t;let o=this.getLabels();for(s=0,n=o.length;s<n;++s)t.push(gr(this,o[s]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return _s(t.sort(pr))}}return k(e,"id","time"),k(e,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}}),e})();function Ri(e,i,t){let s=0,n=e.length-1,o,r,a,l;t?(i>=e[s].pos&&i<=e[n].pos&&({lo:s,hi:n}=ht(e,"pos",i)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[n]):(i>=e[s].time&&i<=e[n].time&&({lo:s,hi:n}=ht(e,"time",i)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[n]);let c=r-o;return c?a+(l-a)*(i-o)/c:a}var Ye=class extends hn{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let i=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(i);this._minPos=Ri(t,this.min),this._tableRange=Ri(t,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){let{min:t,max:s}=this,n=[],o=[],r,a,l,c,h;for(r=0,a=i.length;r<a;++r)c=i[r],c>=t&&c<=s&&n.push(c);if(n.length<2)return[{time:t,pos:0},{time:s,pos:1}];for(r=0,a=n.length;r<a;++r)h=n[r+1],l=n[r-1],c=n[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){let i=this.min,t=this.max,s=super.getDataTimestamps();return(!s.includes(i)||!s.length)&&s.splice(0,0,i),(!s.includes(t)||s.length===1)&&s.push(t),s.sort((n,o)=>n-o)}_getTimestampsForTable(){let i=this._cache.all||[];if(i.length)return i;let t=this.getDataTimestamps(),s=this.getLabelTimestamps();return t.length&&s.length?i=this.normalize(t.concat(s)):i=t.length?t:s,i=this._cache.all=i,i}getDecimalForValue(i){return(Ri(this._table,i)-this._minPos)/this._tableRange}getValueForPixel(i){let t=this._offsets,s=this.getDecimalForPixel(i)/t.factor-t.end;return Ri(this._table,s*this._tableRange+this._minPos,!0)}};k(Ye,"id","timeseries"),k(Ye,"defaults",hn.defaults);var Gd=Object.freeze({__proto__:null,CategoryScale:Dd,LinearScale:$e,LogarithmicScale:Ue,RadialLinearScale:Gt,TimeScale:hn,TimeSeriesScale:Ye}),Nr=[nh,Tf,Od,Gd];var Zd=typeof global=="object"&&global&&global.Object===Object&&global,Ui=Zd;var Jd=typeof self=="object"&&self&&self.Object===Object&&self,Qd=Ui||Jd||Function("return this")(),at=Qd;var tu=at.Symbol,ge=tu;var Wr=Object.prototype,eu=Wr.hasOwnProperty,iu=Wr.toString,Ze=ge?ge.toStringTag:void 0;function su(e){var i=eu.call(e,Ze),t=e[Ze];try{e[Ze]=void 0;var s=!0}catch{}var n=iu.call(e);return s&&(i?e[Ze]=t:delete e[Ze]),n}var Vr=su;var nu=Object.prototype,ou=nu.toString;function ru(e){return ou.call(e)}var Hr=ru;var au="[object Null]",lu="[object Undefined]",$r=ge?ge.toStringTag:void 0;function cu(e){return e==null?e===void 0?lu:au:$r&&$r in Object(e)?Vr(e):Hr(e)}var Et=cu;function hu(e){return e!=null&&typeof e=="object"}var mt=hu;var fu=Array.isArray,Je=fu;function du(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var it=du;function uu(e){return e}var Yi=uu;var pu="[object AsyncFunction]",gu="[object Function]",mu="[object GeneratorFunction]",xu="[object Proxy]";function bu(e){if(!it(e))return!1;var i=Et(e);return i==gu||i==mu||i==pu||i==xu}var me=bu;var _u=at["__core-js_shared__"],Xi=_u;var Ur=function(){var e=/[^.]+$/.exec(Xi&&Xi.keys&&Xi.keys.IE_PROTO||"");
vendor: 4,228 bytes, line 3
3return e?"Symbol(src)_1."+e:""}();function yu(e){return!!Ur&&Ur in e}var Yr=yu;var vu=Function.prototype,Mu=vu.toString;function wu(e){if(e!=null){try{return Mu.call(e)}catch{}try{return e+""}catch{}}return""}var Xr=wu;var Su=/[\\^$.*+?()[\]{}|]/g,ku=/^\[object .+?Constructor\]$/,Ou=Function.prototype,Pu=Object.prototype,Cu=Ou.toString,Au=Pu.hasOwnProperty,Du=RegExp("^"+Cu.call(Au).replace(Su,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tu(e){if(!it(e)||Yr(e))return!1;var i=me(e)?Du:ku;return i.test(Xr(e))}var Kr=Tu;function Lu(e,i){return e==null?void 0:e[i]}var qr=Lu;function Ru(e,i){var t=qr(e,i);return Kr(t)?t:void 0}var xe=Ru;var Gr=Object.create,Iu=function(){function e(){}return function(i){if(!it(i))return{};if(Gr)return Gr(i);e.prototype=i;var t=new e;return e.prototype=void 0,t}}(),Zr=Iu;function Eu(e,i,t){switch(t.length){case 0:return e.call(i);case 1:return e.call(i,t[0]);case 2:return e.call(i,t[0],t[1]);case 3:return e.call(i,t[0],t[1],t[2])}return e.apply(i,t)}var Jr=Eu;function Fu(e,i){var t=-1,s=e.length;for(i||(i=Array(s));++t<s;)i[t]=e[t];return i}var Qr=Fu;var zu=800,Bu=16,ju=Date.now;function Nu(e){var i=0,t=0;return function(){var s=ju(),n=Bu-(s-t);if(t=s,n>0){if(++i>=zu)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}var ta=Nu;function Wu(e){return function(){return e}}var ea=Wu;var Vu=function(){try{var e=xe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),be=Vu;var Hu=be?function(e,i){return be(e,"toString",{configurable:!0,enumerable:!1,value:ea(i),writable:!0})}:Yi,ia=Hu;var $u=ta(ia),sa=$u;var Uu=9007199254740991,Yu=/^(?:0|[1-9]\d*)$/;function Xu(e,i){var t=typeof e;return i=i==null?Uu:i,!!i&&(t=="number"||t!="symbol"&&Yu.test(e))&&e>-1&&e%1==0&&e<i}var Ki=Xu;function Ku(e,i,t){i=="__proto__"&&be?be(e,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[i]=t}var _e=Ku;function qu(e,i){return e===i||e!==e&&i!==i}var Ft=qu;var Gu=Object.prototype,Zu=Gu.hasOwnProperty;function Ju(e,i,t){var s=e[i];(!(Zu.call(e,i)&&Ft(s,t))||t===void 0&&!(i in e))&&_e(e,i,t)}var na=Ju;function Qu(e,i,t,s){var n=!t;t||(t={});for(var o=-1,r=i.length;++o<r;){var a=i[o],l=s?s(t[a],e[a],a,t,e):void 0;l===void 0&&(l=e[a]),n?_e(t,a,l):na(t,a,l)}return t}var oa=Qu;var ra=Math.max;function tp(e,i,t){return i=ra(i===void 0?e.length-1:i,0),function(){for(var s=arguments,n=-1,o=ra(s.length-i,0),r=Array(o);++n<o;)r[n]=s[i+n];n=-1;for(var a=Array(i+1);++n<i;)a[n]=s[n];return a[i]=t(r),Jr(e,this,a)}}var aa=tp;function ep(e,i){return sa(aa(e,i,Yi),e+"")}var la=ep;var ip=9007199254740991;function sp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ip}var qi=sp;function np(e){return e!=null&&qi(e.length)&&!me(e)}var ye=np;function op(e,i,t){if(!it(t))return!1;var s=typeof i;return(s=="number"?ye(t)&&Ki(i,t.length):s=="string"&&i in t)?Ft(t[i],e):!1}var ca=op;function rp(e){return la(function(i,t){var s=-1,n=t.length,o=n>1?t[n-1]:void 0,r=n>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(n--,o):void 0,r&&ca(t[0],t[1],r)&&(o=n<3?void 0:o,n=1),i=Object(i);++s<n;){var a=t[s];a&&e(i,a,s,o)}return i})}var ha=rp;var ap=Object.prototype;function lp(e){var i=e&&e.constructor,t=typeof i=="function"&&i.prototype||ap;return e===t}var Gi=lp;function cp(e,i){for(var t=-1,s=Array(e);++t<e;)s[t]=i(t);return s}var fa=cp;var hp="[object Arguments]";function fp(e){return mt(e)&&Et(e)==hp}var un=fp;var da=Object.prototype,dp=da.hasOwnProperty,up=da.propertyIsEnumerable,pp=un(function(){return arguments}())?un:function(e){return mt(e)&&dp.call(e,"callee")&&!up.call(e,"callee")},Qe=pp;function gp(){return!1}var ua=gp;var ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pa=ma&&typeof module=="object"&&module&&!module.nodeType&&module,mp=pa&&pa.exports===ma,ga=mp?at.Buffer:void 0,xp=ga?ga.isBuffer:void 0,bp=xp||ua,Zi=bp;var _p="[object Arguments]",yp="[object Array]",vp="[object Boolean]",Mp="[object Date]",wp="[object Error]",Sp="[object Function]",kp="[object Map]",Op="[object Number]",Pp="[object Object]",Cp="[object RegExp]",Ap="[object Set]",Dp="[object String]",Tp="[object WeakMap]",Lp="[object ArrayBuffer]",Rp="[object DataView]",Ip="[object Float32Array]",Ep="[object Float64Array
3]",Fp="[object Int8Array]",zp="[object Int16Array]",Bp="[object Int32Array]",jp="[object Uint8Array]",Np="[object Uint8ClampedArray]",Wp="[object Uint16Array]",Vp="[object Uint32Array]",N={};N[Ip]=N[Ep]=N[Fp]=N[zp]=N[Bp]=N[jp]=N[Np]=N[Wp]=N[Vp]=!0;N[_p]=N[yp]=N[Lp]=N[vp]=N[Rp]=N[Mp]=N[wp]=N[Sp]=N[kp]=N[Op]=N[Pp]=N[Cp]=N[Ap]=N[Dp]=N[Tp]=!1;function Hp(e){return mt(e)&&qi(e.length)&&!!N[Et(e)]}var xa=Hp;function $p(e){return function(i){return e(i)}}var ba=$p;var _a=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ti=_a&&typeof module=="object"&&module&&!module.nodeType&&module,Up=ti&&ti.exports===_a,pn=Up&&Ui.process,Yp=function(){try{var e=ti&&ti.require&&ti.require("util").types;return e||pn&&pn.binding&&pn.binding("util")}catch{}}(),gn=Yp;var ya=gn&&gn.isTypedArray,Xp=ya?ba(ya):xa,Ji=Xp;var Kp=Object.prototype,qp=Kp.hasOwnProperty;function Gp(e,i){var t=Je(e),s=!t&&Qe(e),n=!t&&!s&&Zi(e),o=!t&&!s&&!n&&Ji(e),r=t||s||n||o,a=r?fa(e.length,String):[],l=a.length;for(var c in e)(i||qp.call(e,c))&&!(r&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ki(c,l)))&&a.push(c);return a}var va=Gp;function Zp(e,i){return function(t){return e(i(t))}}var Ma=Zp;function Jp(e){var i=[];if(e!=null)for(var t in Object(e))i.push(t);return i}var wa=Jp;var Qp=Object.prototype,tg=Qp.hasOwnProperty;function eg(e){if(!it(e))return wa(e);var i=Gi(e),t=[];for(var s in e)s=="constructor"&&(i||!tg.call(e,s))||t.push(s);return t}var Sa=eg;function ig(e){return ye(e)?va(e,!0):Sa(e)}var Qi=ig;var sg=xe(Object,"create"),St=sg;function ng(){this.__data__=St?St(null):{},this.size=0}var ka=ng;function og(e){var i=this.has(e)&&delete this.__data__[e];return this.size-=i?1:0,i}var Oa=og;var rg="__lodash_hash_undefined__",ag=Object.prototype,lg=ag.hasOwnProperty;function cg(e){var i=this.__data__;if(St){var t=i[e];return t===rg?void 0:t}return lg.call(i,e)?i[e]:void 0}var Pa=cg;var hg=Object.prototype,fg=hg.hasOwnProperty;function dg(e){var i=this.__data__;return St?i[e]!==void 0:fg.call(i,e)}var Ca=dg;var ug="__lodash_hash_undefined__";function pg(e,i){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=St&&i===void 0?ug:i,this}var Aa=pg;function ve(e){var i=-1,t=e==null?0:e.length;for(this.clear();++i<t;){var s=e[i];this.set(s[0],s[1])}}ve.prototype.clear=ka;ve.prototype.delete=Oa;ve.prototype.get=Pa;ve.prototype.has=Ca;ve.prototype.set=Aa;var mn=ve;function gg(){this.__data__=[],this.size=0}var Da=gg;function mg(e,i){for(var t=e.length;t--;)if(Ft(e[t][0],i))return t;return-1}var zt=mg;var xg=Array.prototype,bg=xg.splice;function _g(e){var i=this.__data__,t=zt(i,e);if(t<0)return!1;var s=i.length-1;return t==s?i.pop():bg.call(i,t,1),--this.size,!0}var Ta=_g;function yg(e){var i=this.__data__,t=zt(i,e);return t<0?void 0:i[t][1]}var La=yg;function vg(e){return zt(this.__data__,e)>-1}var Ra=vg;function Mg(e,i){var t=this.__data__,s=zt(t,e);return s<0?(++this.size,t.push([e,i])):t[s][1]=i,this}var Ia=Mg;function Me(e){var i=-1,t=e==null?0:e.length;for(this.clear();++i<t;){var s=e[i];this.set(s[0],s[1])}}Me.prototype.clear=Da;Me.prototype.delete=Ta;Me.prototype.get=La;Me.prototype.has=Ra;Me.prototype.set=Ia;var Bt=Me;var wg=xe(at,"Map"),ts=wg;function Sg(){this.size=0,this.__data__={hash:new mn,map:new(ts||Bt),string:new mn}}var Ea=Sg;function kg(e){var i=typeof e;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?e!=="__proto__":e===null}var Fa=kg;function Og(e,i){var t=e.__data__;return Fa(i)?t[typeof i=="string"?"string":"hash"]:t.map}var jt=Og;function Pg(e){var i=jt(this,e).delete(e);return this.size-=i?1:0,i}var za=Pg;function Cg(e){return jt(this,e).get(e)}var Ba=Cg;function Ag(e){return jt(this,e).has(e)}var ja=Ag;function Dg(e,i){var t=jt(this,e),s=t.size;return t.set(e,i),this.size+=t.size==s?0:1,this}var Na=Dg;function we(e){var i=-1,t=e==null?0:e.length;for(this.clear();++i<t;){var s=e[i];this.set(s[0],s[1])}}we.prototype.clear=Ea;we.prototype.delete=za;we.prototype.get=Ba;we.prototype.has=ja;we.prototype.set=Na;var Wa=we;var Tg=Ma(Object.getPrototypeOf,Object),es=Tg;var Lg="[object Object]",Rg=Function.prototype,Ig=Object.prototype,Va=Rg.toString,Eg=Ig.hasOwnProperty,Fg=Va.call(Object);function zg(e){if(!mt(e)||Et(e)!=Lg)return!1;var i=es(e);if(i===null)return!0;var t=Eg.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&Va.call(t)==Fg}var Ha=zg;function Bg(){this.__data__=new Bt,this.size=0}var $a=Bg;function jg(e){var i=this.__data__,t=i.delete(e);return this.size=i.size,t}var Ua=jg;function Ng(e){return this.__data__.get(e)}var Ya=Ng;function Wg(e){return this.__data__.has(e)}var Xa=Wg;var Vg=200;function Hg(e,i){var t=this.__data__;if(t instanceof Bt){var s=t.__data__;if(!ts||s.length<Vg-1)return s.push([e,i]),this.size=++t.size,this;t=this.__data__=new Wa(s)}return t.set(e,i),this.size=t.size,this}var Ka=Hg;function Se(e){var i=this.__data__=new Bt(e);this.size=i.size}Se.prototype.clear=$a;Se.prototype.delete=Ua;Se.prototype.get=Ya;Se.prototype.has=Xa;Se.prototype.set=Ka;var qa=Se;var Qa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ga=Qa&&typeof module=="object"&&module&&!module.nodeType&&module,$g=Ga&&Ga.exports===Qa,Za=$g?at.Buffer:void 0,Ja=Za?Za.allocUnsafe:void 0;function Ug(e,i){if(i)return e.slice();var t=e.length,s=Ja?Ja(t):new e.constructor(t);return e.copy(s),s}var tl=Ug;var Yg=at.Uint8Array,xn=Yg;function Xg(e){var i=new e.constructor(e.byteLength);return new xn(i).set(new xn(e)),i}var el=Xg;function Kg(e,i){var t=i?el(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var il=Kg;function qg(e){return typeof e.constructor=="function"&&!Gi(e)?Zr(es(e)):{}}var sl=qg;function Gg(e){return function(i,t,s){for(var n=-1,o=Object(i),r=s(i),a=r.length;a--;){var l=r[e?a:++n];if(t(o[l],l,o)===!1)break}return i}}var nl=Gg;var Zg=nl(),ol=Zg;function Jg(e,i,t){(t!==void 0&&!Ft(e[i],t)||t===void 0&&!(i in e))&&_e(e,i,t)}var ei=Jg;function Qg(e){return mt(e)&&ye(e)}var rl=Qg;function tm(e,i){if(!(i==="constructor"&&typeof e[i]=="function")&&i!="__proto__")return e[i]}var ii=tm;function em(e){return oa(e,Qi(e))}var al=em;function im(e,i,t,s,n,o,r){var a=ii(e,t),l=ii(i,t),c=r.get(l);if(c){ei(e,t,c);return}var h=o?o(a,l,t+"",e,i,r):void 0,f=h===void 0;if(f){var d=Je(l),u=!d&&Zi(l),p=!d&&!u&&Ji(l);h=l,d||u||p?Je(a)?h=a:rl(a)?h=Qr(a):u?(f=!1,h=tl(l,!0)):p?(f=!1,h=il(l,!0)):h=[]:Ha(l)||Qe(l)?(h=a,Qe(a)?h=al(a):(!it(a)||me(a))&&(h=sl(l))):f=!1}f&&(r.set(l,h),n(h,l,s,o,r),r.delete(l)),ei(e,t,h)}var ll=im;function cl(e,i,t,s,n){e!==i&&ol(i,function(o,r){if(n||(n=new qa),it(o))ll(e,i,r,t,cl,s,n);else{var a=s?s(ii(e,r),o,r+"",e,i,n):void 0;a===void 0&&(a=o),ei(e,r,a)}},Qi)}var hl=cl;var sm=ha(function(e,i,t){hl(e,i,t)}),is=sm;var fl=new vn("Configuration for ngCharts");function s0(...e){return{registerables:[...Nr,...e]}}function n0(...e){let i=is({},...e);return{provide:fl,useValue:i}}var nm=(()=>{let i=class i{constructor(){this.colorschemesOptions=new bn(void 0)}setColorschemesOptions(s){this.pColorschemesOptions=s,this.colorschemesOptions.next(s)}getColorschemesOptions(){return this.pColorschemesOptions}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=yn({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),o0=(()=>{let i=class i{constructor(s,n,o,r){this.zone=n,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new ss,this.chartHover=new ss,this.subs=[],this.themeOverrides={},r!=null&&r.registerables&&Vi.register(...r.registerables),r!=null&&r.defaults&&F.set(r.defaults),this.ctx=s.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(_n()).subscribe(a=>this.themeChanged(a)))}ngOnChanges(s){let n=["type"],o=Object.getOwnPropertyNames(s);if(o.some(r=>n.includes(r))||o.every(r=>s[r].isFirstChange()))this.render();else{let r=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,r.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,r.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,r.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEac
3h(s=>s.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new Vi(this.ctx,this.getChartConfiguration()))}update(s){this.chart&&this.zone.runOutsideAngular(()=>{var n;return(n=this.chart)==null?void 0:n.update(s)})}hideDataset(s,n){this.chart&&(this.chart.getDatasetMeta(s).hidden=n,this.update())}isDatasetHidden(s){var n,o;return(o=(n=this.chart)==null?void 0:n.getDatasetMeta(s))==null?void 0:o.hidden}toBase64Image(){var s;return(s=this.chart)==null?void 0:s.toBase64Image()}themeChanged(s){this.themeOverrides=s,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return is({onHover:(s,n)=>{var o;!this.chartHover.observed&&!((o=this.chartHover.observers)!=null&&o.length)||this.zone.run(()=>this.chartHover.emit({event:s,active:n}))},onClick:(s,n)=>{var o;!this.chartClick.observed&&!((o=this.chartClick.observers)!=null&&o.length)||this.zone.run(()=>this.chartClick.emit({event:s,active:n}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};i.\u0275fac=function(n){return new(n||i)(Pe(Sn),Pe(wn),Pe(nm),Pe(fl,8))},i.\u0275dir=kn({type:i,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Mn]});let e=i;return e})();export{s0 as a,n0 as b,o0 as c};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.