PageSourceSearch

https://fromsmash.com/9050.8f1a83081cf0ec9b.js

js fromsmash.com collected 2026-09-24 08:43:42 UTC 212,109 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkstaticsmashapp=self.webpackChunkstaticsmashapp||[]).push([[9050],{8729:(mo,ei,st)=>{st.d(ei,{F:()=>At});var k=st(61142),yt=st(96542),nt=st(58527);let At=(()=>{var Dt;class rt{}return(Dt=rt).\u0275fac=function(Me){return new(Me||Dt)},Dt.\u0275mod=nt.$C({type:Dt}),Dt.\u0275inj=nt.G2t({imports:[k.MD,yt.h]}),rt})()},38242:(mo,ei,st)=>{st.d(ei,{Y:()=>Nh});var k=st(66758);function yt(e){return e+.5|0}const nt=(e,i,t)=>Math.max(Math.min(e,t),i);function At(e){return nt(yt(2.55*e),0,255)}function rt(e){return nt(yt(255*e),0,255)}function at(e){return nt(yt(e/2.55)/100,0,1)}function Me(e){return nt(yt(100*e),0,100)}const 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},ii=[..."0123456789ABCDEF"],bo=e=>ii[15&e],xo=e=>ii[(240&e)>>4]+ii[15&e],Se=e=>(240&e)>>4==(15&e);const So=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ki(e,i,t){const 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 ko(e,i,t){const 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 wo(e,i,t){const s=Ki(e,1,.5);let 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 si(e){const 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;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=function Co(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}(t,s,n,h,o),l=60*l+.5),[0|l,c||0,a]}function ni(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(rt)}function oi(e,i,t){return ni(Ki,e,i,t)}function Gi(e){return(e%360+360)%360}const qi={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"},Ji={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"};let ke;const Eo=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ri=e=>
1e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,jt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function we(e,i,t){if(e){let s=si(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,0===i?360:1)),s=oi(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Zi(e,i){return e&&Object.assign(i||{},e)}function Qi(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=rt(e[3]))):(i=Zi(e,{r:0,g:0,b:0,a:1})).a=rt(i.a),i}function Bo(e){return"r"===e.charAt(0)?function Io(e){const i=Eo.exec(e);let s,n,o,t=255;if(i){if(i[7]!==s){const r=+i[7];t=i[8]?At(r):nt(255*r,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?At(s):nt(s,0,255)),n=255&(i[4]?At(n):nt(n,0,255)),o=255&(i[6]?At(o):nt(o,0,255)),{r:s,g:n,b:o,a:t}}}(e):function Do(e){const i=So.exec(e);let s,t=255;if(!i)return;i[5]!==s&&(t=i[6]?At(+i[5]):rt(+i[5]));const n=Gi(+i[2]),o=+i[3]/100,r=+i[4]/100;return s="hwb"===i[1]?function Po(e,i,t){return ni(wo,e,i,t)}(n,o,r):"hsv"===i[1]?function Ao(e,i,t){return ni(ko,e,i,t)}(n,o,r):oi(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}(e)}class $t{constructor(i){if(i instanceof $t)return i;const t=typeof i;let s;"object"===t?s=Qi(i):"string"===t&&(s=function yo(e){var t,i=e.length;return"#"===e[0]&&(4===i||5===i?t={r:255&17*ot[e[1]],g:255&17*ot[e[2]],b:255&17*ot[e[3]],a:5===i?17*ot[e[4]]:255}:(7===i||9===i)&&(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:9===i?ot[e[7]]<<4|ot[e[8]]:255})),t}(i)||function Ro(e){ke||(ke=function Lo(){const e={},i=Object.keys(Ji),t=Object.keys(qi);let 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,qi[o]);o=parseInt(Ji[r],16),e[a]=[o>>16&255,o>>8&255,255&o]}return e}(),ke.transparent=[0,0,0,0]);const i=ke[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Bo(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=Zi(this._rgb);return i&&(i.a=at(i.a)),i}set rgb(i){this._rgb=Qi(i)}rgbString(){return this._valid?function Fo(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${at(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Mo(e){var i=(e=>Se(e.r)&&Se(e.g)&&Se(e.b)&&Se(e.a))(e)?bo:xo;return e?"#"+i(e.r)+i(e.g)+i(e.b)+((e,i)=>e<255?i(e):"")(e.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function To(e){if(!e)return;const i=si(e),t=i[0],s=Me(i[1]),n=Me(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${at(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(i,t){if(i){const s=this.rgb,n=i.rgb;let o;const 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=function zo(e,i,t){const s=jt(at(e.r)),n=jt(at(e.g)),o=jt(at(e.b));return{r:rt(ri(s+t*(jt(at(i.r))-s))),g:rt(ri(n+t*(jt(at(i.g))-n))),b:rt(ri(o+t*(jt(at(i.b))-o))),a:e.a+t*(i.a-e.a)}}(this._rgb,i._rgb,t)),this}clone(){return new $t(this.rgb)}alpha(i){return this._rgb.a=rt(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,t=yt(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=t,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return we(this._rgb,2,i),this}darken(i){return we(this._rgb,2,-i),this}saturate(i){return we(this._rgb,1,i),this}desaturate(i){return we(this._rgb,1,-i),this}rotate(i){return function Oo(e,i){var t=si(e);t[0]=Gi(t[0]+i),t=oi(t),e.r=t[0],e.g=t[1],e.b=t[2]}(this._rgb,i),this}}function gt(){}const Vo=(()=>{let e=0;return()=>e++})();function T(e){return null==e}function B(e){if(Array.isArray&&Array.isArray(e))return!0;const i=Object.prototype.toString.call(e);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function L(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function H(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function et(e,i){return H(e)?e:i}function A(e,i){return typeof e>"u"?i:e}const ts=(e,i)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*i:+e;function z(e,i,t){if(e&&"function"==typeof e.call)return e.apply(t,i)}function I(e,i,t,s){let n,o,r;if(B(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(L(e))for(r=Object.keys(e),o=r.length,n=0;n<o;n++)i.call(t,e[r[n]],r[n])}function Ce(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 Pe(e){if(B(e))return e.map(Pe);if(L(e)){const i=Object.create(null),t=Object.keys(e),s=t.length;let n=0;for(;n<s;++n)i[t[n]]=Pe(e[t[n]]);return i}return e}function es(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function No(e,i,t,s){if(!es(e))return;const n=i[e],o=t[e];L(n)&&L(o)?Zt(n,o,s):i[e]=Pe(o)}function Zt(e,i,t){const s=B(i)?i:[i],n=s.length;if(!L(e))return e;const o=(t=t||{}).merger||No;let r;for(let a=0;a<n;++a){if(r=s[a],!L(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,t)}return e}function Qt(e,i){return Zt(e,i,{merger:Ho})}function Ho(e,i,t){if(!es(e))return;const s=i[e],n=t[e];L(s)&&L(n)?Qt(s,n):Object.prototype.hasOwnProperty.call(i,e)||(i[e]=Pe(n))}const is={"":e=>e,x:e=>e.x,y:e=>e.y};function vt(e,i){return(is[i]||(is[i]=function $o(e){const i=function jo(e){const i=e.split("."),t=[];let s="";for(const n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}(e);return t=>{for(const s of i){if(""===s)break;t=t&&t[s]}return t}}(i)))(e)}function ai(e){return e.charAt(0).toUpperCase()+e.slice(1)}const te=e=>typeof e<"u",Mt=e=>"function"==typeof e,ss=(e,i)=>{if(e.size!==i.size)return!1;for(const t of e)if(!i.has(t))return!1;return!0},E=Math.PI,V=2*E,Xo=V+E,Ae=Number.POSITIVE_INFINITY,Uo=E/180,j=E/2,Ot=E/4,ns=2*E/3,St=Math.log10,dt=Math.sign;function ee(e,i,t){return Math.abs(e-i)<t}function os(e){const i=Math.round(e);e=ee(e,i,e/1e3)?i:e;const t=Math.pow(10,Math.floor(St(e))),s=e/t;return(s<=1?1:s<=2?2:s<=5?5:10)*t}function Yt(e){return!function Go(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function rs(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 lt(e){return e*(E/180)}function li(e){return e*(180/E)}function as(e){if(!H(e))return;let i=1,t=0;for(;Math.round(e*i)/i!==e;)i*=10,t++;return t}function ls(e,i){const t=i.x-e.x,s=i.y-e.y,n=Math.sqrt(t*t+s*s);let o=Math.atan2(s,t);return o<-.5*E&&(o+=V),{angle:o,distance:n}}function ci(e,i){return Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2))}function Jo(e,i){return(e-i+Xo)%V-E}function K(e){return(e%V+V)%V}function ie(e,i,t,s){const n=K(e),o=K(i),r=K(t),a=K(o-n),l=K(r-n),c=K(n-o),h=K(n-r);return n===o||n===r||s&&o===r||a>l&&c<h}function X(e,i,t){return Math.max(i,Math.min(t,e))}function pt(e,i,t,s=1e-6){return e>=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function hi(e,i,t){t=t||(r=>e[r]<i);let o,s=e.length-1,n=0;for(;s-n>1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}const mt=(e,i,t,s)=>hi(e,t,s?n=>{const o=e[n][i];return o<t||o===t&&e[n+1][i]===t}:n=>e[n][i]<t),Qo=(e,i,t)=>hi(e,t,s=>e[s][i]>=t),cs=["push","pop","shift","splice","unshift"];function hs(e,i){const t=e._chartjs;if(!t)return;const s=t.listeners,n=s.indexOf(i);-1!==n&&s.splice(n,1),!(s.length>0)&&(cs.forEach(o=>{delete e[o]}),delete e._chartjs)}function ds(e){const i=new Set(e);return i.size===e.length?e:Array.from(i)}const us=typeof window>"u"?function(e){return e()}:window.requestAnimationFrame;function fs(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,us.call(window,()=>{s=!1,e.apply(i,t)}))}}const di=e=>
1"start"===e?"left":"end"===e?"right":"center",G=(e,i,t)=>"start"===e?i:"end"===e?t:(i+t)/2;function gs(e,i,t){const s=i.length;let n=0,o=s;if(e._sorted){const{iScale:r,vScale:a,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,h=r.axis,{min:d,max:u,minDefined:f,maxDefined:p}=r.getUserBounds();if(f){if(n=Math.min(mt(l,h,d).lo,t?s:mt(i,h,r.getPixelForValue(d)).lo),c){const g=l.slice(0,n+1).reverse().findIndex(m=>!T(m[a.axis]));n-=Math.max(0,g)}n=X(n,0,s-1)}if(p){let g=Math.max(mt(l,r.axis,u,!0).hi+1,t?0:mt(i,h,r.getPixelForValue(u),!0).hi+1);if(c){const m=l.slice(g-1).findIndex(b=>!T(b[a.axis]));g+=Math.max(0,m)}o=X(g,n,s)-n}else o=s-n}return{start:n,count:o}}function ps(e){const{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;const o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}const De=e=>0===e||1===e,ms=(e,i,t)=>-Math.pow(2,10*(e-=1))*Math.sin((e-i)*V/t),bs=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*V/t)+1,se={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=>1-Math.cos(e*j),easeOutSine:e=>Math.sin(e*j),easeInOutSine:e=>-.5*(Math.cos(E*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>De(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),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=>De(e)?e:ms(e,.075,.3),easeOutElastic:e=>De(e)?e:bs(e,.075,.3),easeInOutElastic:e=>De(e)?e:e<.5?.5*ms(2*e,.1125,.45):.5+.5*bs(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let i=1.70158;return(e/=.5)<1?e*e*((1+(i*=1.525))*e-i)*.5:.5*((e-=2)*e*((1+(i*=1.525))*e+i)+2)},easeInBounce:e=>1-se.easeOutBounce(1-e),easeOutBounce:e=>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?.5*se.easeInBounce(2*e):.5*se.easeOutBounce(2*e-1)+.5};function ui(e){if(e&&"object"==typeof e){const i=e.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function xs(e){return ui(e)?e:new $t(e)}function fi(e){return ui(e)?e:new $t(e).saturate(.5).darken(.1).hexString()}const nr=["x","y","borderWidth","radius","tension"],or=["color","borderColor","backgroundColor"],_s=new Map;function ne(e,i,t){return function lr(e,i){i=i||{};const t=e+JSON.stringify(i);let s=_s.get(t);return s||(s=new Intl.NumberFormat(e,i),_s.set(t,s)),s}(i,t).format(e)}const ys={values:e=>B(e)?e:""+e,numeric(e,i,t){if(0===e)return"0";const s=this.chart.options.locale;let n,o=e;if(t.length>1){const c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=function cr(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}(e,t)}const r=St(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),ne(e,s,l)},logarithmic(e,i,t){if(0===e)return"0";const s=t[i].significand||e/Math.pow(10,Math.floor(St(e)));return[1,2,3,5,10,15].includes(s)||i>.8*t.length?ys.numeric.call(this,e,i,t):""}};var Oe={formatters:ys};const Tt=Object.create(null),gi=Object.create(null);function oe(e,i){if(!i)return e;const t=i.split(".");for(let s=0,n=t.length;s<n;++s){const o=t[s];e=e[o]||(e[o]=Object.create(null))}return e}function pi(e,i,t){return"string"==typeof i?Zt(oe(e,i),t):Zt(oe(e,""),i)}class dr{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={}
vendor: 10,995 bytes, line 1
1,this.hoverBackgroundColor=(s,n)=>fi(n.backgroundColor),this.hoverBorderColor=(s,n)=>fi(n.borderColor),this.hoverColor=(s,n)=>fi(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={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return pi(this,i,t)}get(i){return oe(this,i)}describe(i,t){return pi(gi,i,t)}override(i,t){return pi(Tt,i,t)}route(i,t,s,n){const o=oe(this,i),r=oe(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const l=this[a],c=r[n];return L(l)?Object.assign({},c,l):A(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}}var W=new dr({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function rr(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=>"onProgress"!==i&&"onComplete"!==i&&"fn"!==i}),e.set("animations",{colors:{type:"color",properties:or},numbers:{type:"number",properties:nr}}),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=>0|i}}}})},function ar(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function hr(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:Oe.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")&&"callback"!==i&&"parser"!==i,_indexable:i=>"borderDash"!==i&&"tickBorderDash"!==i&&"dash"!==i}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>"backdropPadding"!==i&&"callback"!==i,_indexable:i=>"backdropPadding"!==i})}]);function Te(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 fr(e,i,t,s){let n=(s=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;const a=t.length;let l,c,h,d,u;for(l=0;l<a;l++)if(d=t[l],null==d||B(d)){if(B(d))for(c=0,h=d.length;c<h;c++)u=d[c],null!=u&&!B(u)&&(r=Te(e,n,o,r,u))}else r=Te(e,n,o,r,d);e.restore();const f=o.length/2;if(f>t.length){for(l=0;l<f;l++)delete n[o[l]];o.splice(0,f)}return r}function Lt(e,i,t){const s=e.currentDevicePixelRatio,n=0!==t?Math.max(t/2,.5):0;return Math.round((i-n)*s)/s+n}function vs(e,i){!i&&!e||((i=i||e.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,e.width,e.height),i.restore())}function mi(e,i,t,s){Ms(e,i,t,s,null)}function Ms(e,i,t,s,n){let o,r,a,l,c,h,d,u;const f=i.pointStyle,p=i.rotation,g=i.radius;let m=(p||0)*Uo;if(f&&"object"==typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(t,s),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:n?e.ellipse(t,s,n/2,g,0,0,V):e.arc(t,s,g,0,V),e.closePath();break;case"triangle":h=n?n/2:g,e.moveTo(t+Math.sin(m)*h,s-Math.cos(m)*g),m+=ns,e.lineTo(t+Math.sin(m)*h,s-Math.cos(m)*g),m+=ns,e.lineTo(t+Math.sin(m)*h,s-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,r=Math.cos(m+Ot)*l,d=Math.cos(m+Ot)*(n?n/2-c:l),a=Math.sin(m+Ot)*l,u=Math.sin(m+Ot)*(n?n/2-c:l),e.arc(t-d,s-a,c,m-E,m-j),e.arc(t+u,s-r,c,m-j,m),e.arc(t+d,s+a,c,m,m+j),e.arc(t-u,s+r,c,m+j,m+E),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+=Ot;case"rectRot":d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),e.moveTo(t-d,s-a),e.lineTo(t+u,s-r),e.lineTo(t+d,s+a),e.lineTo(t-u,s+r),e.closePath();break;case"crossRot":m+=Ot;case"cross":d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),e.moveTo(t-d,s-a),e.lineTo(t+d,s+a),e.moveTo(t+u,s-r),e.lineTo(t-u,s+r);break;case"star":d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),e.moveTo(t-d,s-a),e.lineTo(t+d,s+a),e.moveTo(t+u,s-r),e.lineTo(t-u,s+r),m+=Ot,d=Math.cos(m)*(n?n/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),e.moveTo(t-d,s-a),e.lineTo(t+d,s+a),e.moveTo(t+u,s-r),e.lineTo(t-u,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()}e.fill(),i.borderWidth>0&&e.stroke()}}function bt(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 Le(e,i){e.save(),e.beginPath(),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}function Re(e){e.restore()}function gr(e,i,t,s,n){if(!i)return e.lineTo(t.x,t.y);if("middle"===n){const o=(i.x+t.x)/2;e.lineTo(o,i.y),e.lineTo(o,t.y)}else"after"===n!=!!s?e.lineTo(i.x,t.y):e.lineTo(t.x,i.y);e.lineTo(t.x,t.y)}function pr(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 br(e,i,t,s,n){if(n.strikethrough||n.underline){const o=e.measureText(s),r=i-o.actualBoundingBoxLeft,a=i+o.actualBoundingBoxRight,c=t+o.actualBoundingBoxDescent,h=n.strikethrough?(t-o.actualBoundingBoxAscent+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=n.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function xr(e,i){const t=e.fillStyle;e.fillStyle=i.color,e.fillRect(i.left,i.top,i.width,i.height),e.fillStyle=t}function Rt(e,i,t,s,n,o={}){const r=B(i)?i:[i],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(e.save(),e.font=n.string,function mr(e,i){i.translation&&e.translate(i.translation[0],i.translation[1]),T(i.rotation)||e.rotate(i.rotation),i.color&&(e.fillStyle=i.color),i.textAlign&&(e.textAlign=i.textAlign),i.textBaseline&&(e.textBaseline=i.textBaseline)}(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&xr(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),T(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,t,s,o.maxWidth)),e.fillText(c,t,s,o.maxWidth),br(e,t,s,c,o),s+=Number(n.lineHeight);e.restore()}function re(e,i){const{x:t,y:s,w:n,h:o,radius:r}=i;e.arc(t+r.topLeft,s+r.topLeft,r.topLeft,1.5*E,E,!0),e.lineTo(t,s+o-r.bottomLeft),e.arc(t+r.bottomLeft,s+o-r.bottomLeft,r.bottomLeft,E,j,!0),e.lineTo(t+n-r.bottomRight,s+o),e.arc(t+n-r.bottomRight,s+o-r.bottomRight,r.bottomRight,j,0,!0),e.lineTo(t+n,s+r.topRight),e.arc(t+n-r.topRight,s+r.topRight,r.topRight,0,-j,!0),e.lineTo(t+r.topLeft,s)}const _r=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function vr(e,i){const t=(""+e).match(_r);if(!t||"normal"===t[1])return 1.2*i;switch(e=+t[2],t[3]){case"px":return e;case"%":e/=100}return i*e}const Mr=e=>+e||0;function bi(e,i){const t={},s=L(i),n=s?Object.keys(i):i,o=L(e)?s?r=>A(e[r],e[i[r]]):r=>e[r]:()=>e;for(const r of n)t[r]=Mr(o(r));return t}function Ss(e){return bi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Et(e){return bi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function q(e){const i=Ss(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Y(e,i){let t=A((e=e||{}).size,(i=i||W.font).size);"string"==typeof t&&(t=parseInt(t,10));let s=A(e.style,i.style);s&&!(""+s).match(yr)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:A(e.family,i.family),lineHeight:vr(A(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:A(e.weight,i.weight),string:""};return n.string=function ur(e){return!e||T(e.size)||T(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(n),n}function ae(e,i,t,s){let o,r,a,n=!0;for(o=0,r=e.length;o<r;++o)if(a=e[o],void 0!==a&&(void 0!==i&&"function"==typeof a&&(a=a(i),n=!1),void 0!==t&&B(a)&&(a=a[t%a.length],n=!1),void 0!==a))return s&&!n&&(s.cacheable=!1),a}function kt(e,i){return Object.assign(Object.create(e),i)}function xi(e,i=[""],t,s,n=(()=>e[0])){const o=t||e;typeof s>"u"&&(s=As("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>xi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty:(a,l)=>(delete a[l],delete a._keys,delete e[0][l],!0),get:(a,l)=>ws(a,l,()=>function Tr(e,i,t,s){let n;for(const o of i)if(n=As(kr(o,e),t),typeof n<"u")return _i(e,n)?yi(t,s,e,n):n}(l,i,e,a)),getOwnPropertyDescriptor:(a,l)=>Reflect.getOwnPropertyDescriptor(a._scopes[0],l),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(a,l)=>Ds(a).includes(l),ownKeys:a=>Ds(a),set(a,l,c){const h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function Xt(e,i,t,s){const n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:ks(e,s),setContext:o=>Xt(e,o,t,s),override:o=>Xt(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty:(o,r)=>(delete o[r],delete e[r],!0),get:(o,r,a)=>ws(o,r,()=>function wr(e,i,t){const{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e;let a=s[i];return Mt(a)&&r.isScriptable(i)&&(a=function Cr(e,i,t,s){const{_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),_i(e,l)&&(l=yi(n._scopes,n,e,l)),l}(i,a,e,t)),B(a)&&a.length&&(a=function Pr(e,i,t,s){const{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(L(i[0])){const l=i,c=n._scopes.filter(h=>h!==l);i=[];for(const h of l){const d=yi(c,n,e,h);i.push(Xt(d,o,r&&r[e],a))}}return i}(i,a,e,r.isIndexable)),_i(i,a)&&(a=Xt(a,n,o&&o[i],r)),a}(o,r,a)),getOwnPropertyDescriptor:(o,r)=>o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(o,r)=>
1Reflect.has(e,r),ownKeys:()=>Reflect.ownKeys(e),set:(o,r,a)=>(e[r]=a,delete o[r],!0)})}function ks(e,i={scriptable:!0,indexable:!0}){const{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:Mt(t)?t:()=>t,isIndexable:Mt(s)?s:()=>s}}const kr=(e,i)=>e?e+ai(i):i,_i=(e,i)=>L(i)&&"adapters"!==e&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function ws(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i)||"constructor"===i)return e[i];const s=t();return e[i]=s,s}function Cs(e,i,t){return Mt(e)?e(i,t):e}const Ar=(e,i)=>!0===e?i:"string"==typeof e?vt(i,e):void 0;function Dr(e,i,t,s,n){for(const o of i){const r=Ar(t,o);if(r){e.add(r);const a=Cs(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(!1===r&&typeof s<"u"&&t!==s)return null}return!1}function yi(e,i,t,s){const n=i._rootScopes,o=Cs(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);let l=Ps(a,r,t,o||t,s);return!(null===l||typeof o<"u"&&o!==t&&(l=Ps(a,r,o,l,s),null===l))&&xi(Array.from(a),[""],n,o,()=>function Or(e,i,t){const s=e._getTarget();i in s||(s[i]={});const n=s[i];return B(n)&&L(t)?t:n||{}}(i,t,s))}function Ps(e,i,t,s,n){for(;t;)t=Dr(e,i,t,s,n);return t}function As(e,i){for(const t of i){if(!t)continue;const s=t[e];if(typeof s<"u")return s}}function Ds(e){let i=e._keys;return i||(i=e._keys=function Lr(e){const i=new Set;for(const t of e)for(const s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}(e._scopes)),i}function Os(e,i,t,s){const{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,h;for(a=0,l=s;a<l;++a)c=a+t,h=i[c],r[a]={r:n.parse(vt(h,o),c)};return r}const Rr=Number.EPSILON||1e-14,Ut=(e,i)=>i<e.length&&!e[i].skip&&e[i],Ts=e=>"x"===e?"y":"x";function Er(e,i,t,s){const n=e.skip?i:e,o=i,r=t.skip?i:t,a=ci(o,n),l=ci(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=s*c,u=s*h;return{previous:{x:o.x-d*(r.x-n.x),y:o.y-d*(r.y-n.y)},next:{x:o.x+u*(r.x-n.x),y:o.y+u*(r.y-n.y)}}}function Ee(e,i,t){return Math.max(Math.min(e,t),i)}function Vr(e,i,t,s,n){let o,r,a,l;if(i.spanGaps&&(e=e.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function zr(e,i="x"){const t=Ts(i),s=e.length,n=Array(s).fill(0),o=Array(s);let r,a,l,c=Ut(e,0);for(r=0;r<s;++r)if(a=l,l=c,c=Ut(e,r+1),l){if(c){const h=c[i]-l[i];n[r]=0!==h?(c[t]-l[t])/h:0}o[r]=a?c?dt(n[r-1])!==dt(n[r])?0:(n[r-1]+n[r])/2:n[r-1]:n[r]}(function Ir(e,i,t){const s=e.length;let n,o,r,a,l,c=Ut(e,0);for(let h=0;h<s-1;++h)if(l=c,c=Ut(e,h+1),l&&c){if(ee(i[h],0,Rr)){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])}})(e,n,o),function Fr(e,i,t="x"){const s=Ts(t),n=e.length;let o,r,a,l=Ut(e,0);for(let c=0;c<n;++c){if(r=a,a=l,l=Ut(e,c+1),!a)continue;const h=a[t],d=a[s];r&&(o=(h-r[t])/3,a[`cp1${t}`]=h-o,a[`cp1${s}`]=d-o*i[c]),l&&(o=(l[t]-h)/3,a[`cp2${t}`]=h+o,a[`cp2${s}`]=d+o*i[c])}}(e,o,i)}(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=Er(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&&function Br(e,i){let t,s,n,o,r,a=bt(e[0],i);for(t=0,s=e.length;t<s;++t)r=o,o=a,a=t<s-1&&bt(e[t+1],i),o&&(n=e[t],r&&(n.cp1x=Ee(n.cp1x,i.left,i.right),n.cp1y=Ee(n.cp1y,i.top,i.bottom)),a&&(n.cp2x=Ee(n.cp2x,i.left,i.right),n.cp2y=Ee(n.cp2y,i.top,i.bottom)))}(e,t)}function vi(){return typeof window<"u"&&typeof document<"u"}function Mi(e){let i=e.parentNode;return i&&"[object ShadowRoot]"===i.toString()&&(i=i.host),i}function Ie(e,i,t){let s;return"string"==typeof e?(s=parseInt(e,10),-1!==e.indexOf("%")&&(s=s/100*i.parentNode[t])):s=e,s}const Fe=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),Nr=["top","right","bottom","left"];function It(e,i,t){const s={};t=t?"-"+t:"";for(let n=0;n<4;n++){const o=Nr[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Hr=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function Ft(e,i){if("native"in e)return e;const{canvas:t,currentDevicePixelRatio:s}=i,n=Fe(t),o="border-box"===n.boxSizing,r=It(n,"padding"),a=It(n,"border","width"),{x:l,y:c,box:h}=function jr(e,i){const t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s;let a,l,r=!1;if(Hr(n,o,e.target))a=n,l=o;else{const c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(e,t),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:p}=i;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-d)/f*t.
1width/s),y:Math.round((c-u)/p*t.height/s)}}const wt=e=>Math.round(10*e)/10;function Ls(e,i,t){const s=i||1,n=wt(e.height*s),o=wt(e.width*s);e.height=wt(e.height),e.width=wt(e.width);const 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)}const Xr=function(){let e=!1;try{const i={get passive(){return e=!0,!1}};vi()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function Rs(e,i){const t=function Wr(e,i){return Fe(e).getPropertyValue(i)}(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function zt(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function Ur(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:"middle"===s?t<.5?e.y:i.y:"after"===s?t<1?e.y:i.y:t>0?i.y:e.y}}function Kr(e,i,t,s){const n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=zt(e,n,t),a=zt(n,o,t),l=zt(o,i,t),c=zt(r,a,t),h=zt(a,l,t);return zt(c,h,t)}function Kt(e,i,t){return e?function(e,i){return{x:t=>e+e+i-t,setWidth(t){i=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,s)=>t-s,leftForLtr:(t,s)=>t-s}}(i,t):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,i)=>e+i,leftForLtr:(e,i)=>e}}function Es(e,i){let t,s;("ltr"===i||"rtl"===i)&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function Is(e,i){void 0!==i&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function Fs(e){return"angle"===e?{between:ie,compare:Jo,normalize:K}:{between:pt,compare:(i,t)=>i-t,normalize:i=>i}}function zs({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 Bs(e,i,t){if(!t)return[e];const{property:s,start:n,end:o}=t,r=i.length,{compare:a,between:l,normalize:c}=Fs(s),{start:h,end:d,loop:u,style:f}=function Jr(e,i,t){const{property:s,start:n,end:o}=t,{between:r,normalize:a}=Fs(s),l=i.length;let u,f,{start:c,end:h,loop:d}=e;if(d){for(c+=l,h+=l,u=0,f=l;u<f&&r(a(i[c%l][s]),n,o);++u)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:d,style:e.style}}(e,i,t),p=[];let b,x,y,g=!1,m=null;for(let S=h,P=h;S<=d;++S)x=i[S%r],!x.skip&&(b=c(x[s]),b!==y&&(g=l(b,n,o),null===m&&(g||l(n,y,b)&&0!==a(n,y))&&(m=0===a(b,n)?S:P),null!==m&&(!g||0===a(o,b)||l(o,y,b))&&(p.push(zs({start:m,end:S,loop:u,count:r,style:f})),m=null),P=S,y=b));return null!==m&&p.push(zs({start:m,end:d,loop:u,count:r,style:f})),p}function Vs(e,i){const t=[],s=e.segments;for(let n=0;n<s.length;n++){const o=Bs(s[n],e.points,i);o.length&&t.push(...o)}return t}function Ns(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function ia(e,i){if(!i)return!1;const t=[],s=function(n,o){return ui(o)?(t.includes(o)||t.push(o),t.indexOf(o)):o};return JSON.stringify(e,s)!==JSON.stringify(i,s)}function ze(e,i,t){return e.options.clip?e[t]:i[t]}function Hs(e,i){const t=i._clip;if(t.disabled)return!1;const s=function sa(e,i){const{xScale:t,yScale:s}=e;return t&&s?{left:ze(t,i,"left"),right:ze(t,i,"right"),top:ze(s,i,"top"),bottom:ze(s,i,"bottom")}:i}(i,e.chartArea);return{left:!1===t.left?0:s.left-(!0===t.left?0:t.left),right:!1===t.right?e.width:s.right+(!0===t.right?0:t.right),top:!1===t.top?0:s.top-(!0===t.top?0:t.top),bottom:!1===t.bottom?e.height:s.bottom+(!0===t.bottom?0:t.bottom)}}class na{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(i,t,s,n){const r=t.duration;t.listeners[n].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=us.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;
1this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let l,r=o.length-1,a=!1;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,0===t&&(this._running=!1)}_getAnims(i){const t=this._charts;let 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){const 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;const t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){const t=this._charts.get(i);if(!t||!t.items.length)return;const s=t.items;let 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)}}var xt=new na;const js="transparent",oa={boolean:(e,i,t)=>t>.5?i:e,color(e,i,t){const s=xs(e||js),n=s.valid&&xs(i||js);
vendor: 1,783 bytes, line 1
1return n&&n.valid?n.mix(s,t).hexString():i},number:(e,i,t)=>e+(i-e)*t};class ra{constructor(i,t,s,n){const o=t[s];n=ae([i.to,n,o,i.from]);const r=ae([i.from,o,n]);this._active=!0,this._fn=i.fn||oa[i.type||typeof r],this._easing=se[i.easing]||se.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);const 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=ae([i.to,t,n,i.from]),this._from=ae([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||t<s),!this._active)return this._target[n]=a,void this._notify(!0);t<0?this._target[n]=o:(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(){const i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){const t=i?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][t]()}}class $s{constructor(i,t){this._chart=i,this._properties=new Map,this.configure(t)}configure(i){if(!L(i))return;const t=Object.keys(W.animation),s=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!L(o))return;const r={};for(const a of t)r[a]=o[a];(B(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){const s=t.options,n=function la(e,i){if(!i)return;let t=e.options;
vendor: 11,439 bytes, line 1
1if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=i}(i,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&function aa(e,i){const t=[],s=Object.keys(i);for(let n=0;n<s.length;n++){const o=e[s[n]];o&&o.active()&&t.push(o.wait())}return Promise.all(t)}(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){const s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(i,t));continue}const h=t[c];let d=o[c];const u=s.get(c);if(d){if(u&&d.active()){d.update(u,h,a);continue}d.cancel()}u&&u.duration?(o[c]=d=new ra(u,i,c,h),n.push(d)):i[c]=h}return n}update(i,t){if(0===this._properties.size)return void Object.assign(i,t);const s=this._createAnimations(i,t);return s.length?(xt.add(this._chart,s),!0):void 0}}function Ys(e,i){const t=e&&e.options||{},s=t.reverse,n=void 0===t.min?i:0,o=void 0===t.max?i:0;return{start:s?o:n,end:s?n:o}}function Xs(e,i){const t=[],s=e._getSortedDatasetMetas(i);let n,o;for(n=0,o=s.length;n<o;++n)t.push(s[n].index);return t}function Us(e,i,t,s={}){const n=e.keys,o="single"===s.mode;let r,a,l,c;if(null===i)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],H(c)&&(o||0===i||dt(i)===dt(c))&&(i+=c)}return h||s.all?i:0}function Si(e,i){const t=e&&e.options.stacked;return t||void 0===t&&void 0!==i.stack}function ga(e,i,t){const s=e[i]||(e[i]={});return s[t]||(s[t]={})}function Ks(e,i,t,s){for(const n of i.getMatchingVisibleMetas(s).reverse()){const o=e[n.index];if(t&&o>0||!t&&o<0)return n.index}return null}function Gs(e,i){const{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=function ua(e,i,t){return`${e.id}.${i.id}.${t.stack||t.type}`}(o,r,s),d=i.length;let u;for(let f=0;f<d;++f){const p=i[f],{[l]:g,[c]:m}=p;u=(p._stacks||(p._stacks={}))[c]=ga(n,h,g),u[a]=m,u._top=Ks(u,r,!0,s.type),u._bottom=Ks(u,r,!1,s.type),(u._visualValues||(u._visualValues={}))[a]=m}}function ki(e,i){const t=e.scales;return Object.keys(t).filter(s=>t[s].axis===i).shift()}function le(e,i){const t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(const n of i){const o=n._stacks;if(!o||void 0===o[s]||void 0===o[s][t])return;delete o[s][t],void 0!==o[s]._visualValues&&void 0!==o[s]._visualValues[t]&&delete o[s]._visualValues[t]}}}const wi=e=>"reset"===e||"none"===e,qs=(e,i)=>i?e:Object.assign({},e);let Ct=(()=>{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(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Si(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&&le(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(u,f,p,g)=>"x"===u?f:"r"===u?g:p,r=s.xAxisID=A(n.xAxisID,ki(t,"x")),a=s.yAxisID=A(n.yAxisID,ki(t,"y")),l=s.rAxisID=A(n.rAxisID,ki(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),d=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(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&hs(this._data,this),t._stacked&&le(t)}_dataCheck(){const t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(L(s))this._data=function da(e,i){const{iScale:t,vScale:s}=i,n="x"===t.axis?"x":"y",o="x"===s.axis?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[n]:h,[o]:e[h]};return a}(s,this._cachedMeta);else if(n!==s){if(n){hs(n,this);const o=this._cachedMeta;le(o),o._parsed=[]}s&&Object.isExtensible(s)&&function er(e,i){e._chartjs?e._chartjs.listeners.push(i):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),cs.forEach(t=>{const s="_onData"+ai(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){const r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{"function"==typeof a[s]&&a[s](...o)}),r}})}))}(s,this),this._syncList=[],this._data=s}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const s=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=s._stacked;s._stacked=Si(s.vScale,s),s.stack!==n.stack&&(o=!0,le(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&(Gs(this,s._parsed),s._stacked=Si(s.vScale,s))}configure(){const 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){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis;let d,u,f,c=0===t&&s===o.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,f=o;else{f=B(o[t])?this.parseArrayData(n,o,t,s):L(o[t])?this.parseObjectData(n,o,t,s):this.parsePrimitiveData(n,o,t,s);const p=()=>null===u[l]||h&&u[l]<h[l];for(d=0;d<s;++d)n._parsed[d+t]=u=f[d],c&&(p()&&(c=!1),h=u);n._sorted=c}a&&Gs(this,f)}parsePrimitiveData(t,s,n,o){const{iScale:r,vScale:a}=t,l=r.axis,c=a.axis,h=r.getLabels(),d=r===a,u=new Array(o);let f,p,g;for(f=0,p=o;f<p;++f)g=f+n,u[f]={[l]:d||r.parse(h[g],g),[c]:a.parse(s[g],g)};return u}parseArrayData(t,s,n,o){const{xScale:r,yScale:a}=t,l=new Array(o);let c,h,d,u;for(c=0,h=o;c<h;++c)d=c+n,u=s[d],l[c]={x:r.parse(u[0],d),y:a.parse(u[1],d)};return l}parseObjectData(t,s,n,o){const{xScale:r,yScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=new Array(o);let d,u,f,p;for(d=0,u=o;d<u;++d)f=d+n,p=s[f],h[d]={x:r.parse(vt(p,l),f),y:a.parse(vt(p,c),f)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,s,n){const r=this._cachedMeta,a=s[t.axis];return Us({keys:Xs(this.chart,!0),values:s._stacks[t.axis]._visualValues},a,r.index,{mode:n})}updateRangeFromParsed(t,s,n,o){const r=n[s.axis];let a=null===r?NaN:r;const l=o&&n._stacks[s.axis];o&&l&&(o.values=l,a=Us(o,r,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,s){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&t===n.iScale,a=o.length,l=this._getOtherScale(t),c=((e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:Xs(this.chart,!0),values:null})(s,n),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=function fa(e){const{min:i,max:t,minDefined:s,maxDefined:n}=e.getUserBounds();return{min:s?i:Number.NEGATIVE_INFINITY,max:n?t:Number.POSITIVE_INFINITY}}(l);let f,p;function g(){p=o[f];const m=p[l.axis];return!H(p[t.axis])||d>m||u<m}for(f=0;f<a&&(g()||(this.updateRangeFromParsed(h,t,p,c),!r));++f);if(r)for(f=a-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(h,t,p,c);break}return h}getAllParsedValues(t){const s=this._cachedMeta._parsed,n=[];let o,r,a;for(o=0,r=s.length;o<r;++o)a=s[o][t.axis],H(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const 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){const s=this._cachedMeta;this.update(t||"default"),s._clip=function ha(e){let i,t,s,n;return L(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:!1===e}}(A(this.options.clip,function ca(e,i,t){if(!1===t)return!1;const s=Ys(e,t),n=Ys(i,t);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(s.xScale,s.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this._cachedMeta,o=n.data||[],r=this.chart.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||o.length-l,h=this.options.drawActiveElementsOnTop;let d;for(n.dataset&&n.dataset.draw(t,r,l,c),d=l;d<l+c;++d){const u=o[d];u.hidden||(u.active&&h?a.push(u):u.draw(t,r))}for(d=0;d<a.length;++d)a[d].draw(t,r)}getStyle(t,s){const n=s?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,s,n){const o=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];r=a.$context||(a.$context=function ma(e,i,t){return kt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}(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=function pa(e,i){return kt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}(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){const o="active"===s,r=this._cachedDataOpts,a=t+"-"+s,l=r[a],c=this.enableOptionSharing&&te(n);if(l)return qs(l,c);const h=this.chart.config,d=h.datasetElementScopeKeys(this._type,t),u=o?[`${t}Hover`,"hover",t,""]:[t,""],f=h.getOptionScopes(this.getDataset(),d),p=Object.keys(W.elements[t]),m=h.resolveNamedOptions(f,p,()=>this.getContext(n,o,s),u);return m.$shared&&(m.$shared=c,r[a]=Object.freeze(qs(m,c))),m}_resolveAnimations(t,s,n){const o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(!1!==o.options.animation){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,s),f=d.getOptionScopes(this.getDataset(),u);c=d.createResolver(f,this.getContext(t,n,s))}const h=new $s(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||wi(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){const 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){wi(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!wi(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;const r=this.getStyle(s,o);
vendor: 11,268 bytes, line 1
1this._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(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const s=this._data,n=this._cachedMeta.data;for(const[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];const 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){const o=this._cachedMeta,r=o.data,a=t+s;let l;const 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){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(t,s);n._stacked&&le(n,o)}n.data.splice(t,s)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[s,n,o]=t;this[s](n,o)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const 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]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return(0,k.A)(e,"defaults",{}),(0,k.A)(e,"datasetElementType",null),(0,k.A)(e,"dataElementType",null),e})();function _a(e){const i=e.iScale,t=function xa(e,i){if(!e._cache.$bar){const t=e.getMatchingVisibleMetas(i);let s=[];for(let n=0,o=t.length;n<o;n++)s=s.concat(t[n].controller.getAllParsedValues(e));e._cache.$bar=ds(s.sort((n,o)=>n-o))}return e._cache.$bar}(i,e.type);let n,o,r,a,s=i._length;const l=()=>{32767===r||-32768===r||(te(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 Js(e,i,t,s){return B(e)?function Ma(e,i,t,s){const n=t.parse(e[0],s),o=t.parse(e[1],s),r=Math.min(n,o),a=Math.max(n,o);let 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}}(e,i,t,s):i[t.axis]=t.parse(e,s),i}function Zs(e,i,t,s){const n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[];let c,h,d,u;for(c=t,h=t+s;c<h;++c)u=i[c],d={},d[n.axis]=a||n.parse(r[c],c),l.push(Js(u,d,o,c));return l}function Ci(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function wa(e,i,t,s){let n=i.borderSkipped;const o={};if(!n)return void(e.borderSkipped=o);if(!0===n)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:a,reverse:l,top:c,bottom:h}=function ka(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}}(e);"middle"===n&&t&&(e.enableBorderRadius=!0,(t._top||0)===s?n=c:(t._bottom||0)===s?n=h:(o[Qs(h,r,a,l)]=!0,n=c)),o[Qs(n,r,a,l)]=!0,e.borderSkipped=o}function Qs(e,i,t,s){return s?(e=function Ca(e,i,t){return e===i?t:e===t?i:e}(e,i,t),e=tn(e,t,i)):e=tn(e,i,t),e}function tn(e,i,t){return"start"===e?i:"end"===e?t:e}function Pa(e,{inflateAmount:i},t){e.inflateAmount="auto"===i?1===t?.33:0:i}let Aa=(()=>{class e extends Ct{parsePrimitiveData(t,s,n,o){return Zs(t,s,n,o)}parseArrayData(t,s,n,o){return Zs(t,s,n,o)}parseObjectData(t,s,n,o){const{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h="x"===r.axis?l:c,d="x"===a.axis?l:c,u=[];let f,p,g,m;for(f=n,p=n+o;f<p;++f)m=s[f],g={},g[r.axis]=r.parse(vt(m,h),f),u.push(Js(vt(m,d),g,a,f));return u}updateRangeFromParsed(t,s,n,o){super.updateRangeFromParsed(t,s,n,o);const 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){const s=this._cachedMeta,{iScale:n,vScale:o}=s,r=this.getParsed(t),a=r._custom,l=Ci(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(),this._cachedMeta.stack=this.getDataset().stack}update(t){const s=this._cachedMeta;this.updateElements(s.data,0,s.data.length,t)}updateElements(t,s,n,o){const r="reset"===o,{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),h=l.isHorizontal(),d=this._getRuler(),{sharedOptions:u,includeOptions:f}=this._getSharedOptions(s,o);for(let p=s;p<s+n;p++){const g=this.getParsed(p),m=r||T(g[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(p),b=this._calculateBarIndexPixels(p,d),x=(g._stacks||{})[l.axis],y={horizontal:h,base:m.base,enableBorderRadius:!x||Ci(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};f&&(y.options=u||this.resolveDataElementOptions(p,t[p].active?"active":o));const M=y.options||t[p].options;wa(y,M,x,a),Pa(y,M,d.ratio),this.updateElement(t[p],p,y,o)}}_getStacks(t,s){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),r=n.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(s),c=l&&l[n.axis],h=d=>{const u=d._parsed.find(p=>p[n.axis]===c),f=u&&u[d.vScale.axis];if(T(f)||isNaN(f))return!0};for(const d of o)if((void 0===s||!h(d))&&((!1===r||-1===a.indexOf(d.stack)||void 0===r&&void 0===d.stack)&&a.push(d.stack),d.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,s=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===s).shift()}_getAxis(){const t={},s=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[A("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,s)]=!0;return Object.keys(t)}_getStackIndex(t,s,n){const o=this._getStacks(t,n),r=void 0!==s?o.indexOf(s):-1;return-1===r?o.length-1:r}_getRuler(){const t=this.options,s=this._cachedMeta,n=s.iScale,o=[];let r,a;for(r=0,a=s.data.length;r<a;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const l=t.barThickness;return{min:l||_a(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){const{_cachedMeta:{vScale:s,_stacked:n,index:o},options:{base:r,minBarLength:a}}=this,l=r||0,c=this.getParsed(t),h=c._custom,d=Ci(h);let g,m,u=c[s.axis],f=0,p=n?this.applyStack(s,c,n):u;p!==u&&(f=p-u,p=u),d&&(u=h.barStart,p=h.barEnd-h.barStart,0!==u&&dt(u)!==dt(h.barEnd)&&(f=0),f+=u);const b=T(r)||d?f:r;let x=s.getPixelForValue(b);if(g=this.chart.getDataVisibility(t)?s.getPixelForValue(f+p):x,m=g-x,Math.abs(m)<a){m=function Sa(e,i,t){return 0!==e?dt(e):(i.isHorizontal()?1:-1)*(i.min>=t?1:-1)}(m,s,l)*a,u===l&&(x-=m/2);const 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&&!d&&(c._stacks[s.axis]._visualValues[o]=s.getValueForPixel(g)-s.getValueForPixel(x))}if(x===s.getPixelForValue(l)){const y=dt(m)*s.getLineWidthForValue(l)/2;x+=y,m-=y}return{size:m,base:x,head:g,center:g+m/2}}_calculateBarIndexPixels(t,s){const n=s.scale,o=this.options,r=o.skipNull,a=A(o.maxBarThickness,1/0);let l,c;const h=this._getAxisCount();if(s.grouped){const d=r?this._getStackCount(t):s.stackCount,u="flex"===o.barThickness?function va(e,i,t,s){const n=i.pixels,o=n[e];let r=e>0?n[e-1]:null,a=e<n.length-1?n[e+1]:null;const l=t.categoryPercentage;null===r&&(r=o-(null===a?i.end-i.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/s,ratio:t.barPercentage,start:c}}(t,s,o,d*h):function ya(e,i,t,s){const n=t.barThickness;let o,r;return T(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}}(t,s,o,d*h),f="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,p=this._getAxis().indexOf(A(f,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0)+p;l=u.start+u.chunk*g+u.chunk/2,c=Math.min(a,u.chunk*u.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(){const t=this._cachedMeta,s=t.vScale,n=t.data,o=n.length;let r=0;for(;r<o;++r)null!==this.getParsed(r)[s.axis]&&!n[r].hidden&&n[r].draw(this._ctx)}}return(0,k.A)(e,"id","bar"),(0,k.A)(e,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),(0,k.A)(e,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}}),e})(),Da=(()=>{class e extends Ct{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){const 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){const r=super.parseArrayData(t,s,n,o);for(let a=0;a<r.length;a++)r[a]._custom=A(s[n+a][2],this.resolveDataElementOptions(a+n).radius);return r}parseObjectData(t,s,n,o){const r=super.parseObjectData(t,s,n,o);for(let a=0;a<r.length;a++){const l=s[n+a];r[a]._custom=A(l&&l.r&&+l.r,this.resolveDataElementOptions(a+n).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let 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){const 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){const s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){const r="reset"===o,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),d=a.axis,u=l.axis;for(let f=s;f<s+n;f++){const p=t[f],g=!r&&this.getParsed(f),m={},b=m[d]=r?a.getPixelForDecimal(.5):a.getPixelForValue(g[d]),x=m[u]=r?l.getBasePixel():l.getPixelForValue(g[u]);m.skip=isNaN(b)||isNaN(x),h&&(m.options=c||this.resolveDataElementOptions(f,p.active?"active":o),r&&(m.options.radius=0)),this.updateElement(p,f,m,o)}}resolveDataElementOptions(t,s){const n=this.getParsed(t);let o=super.resolveDataElementOptions(t,s);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const r=o.radius;return"active"!==s&&(o.radius=0),o.radius+=A(n&&n._custom,r),o}}return(0,k.A)(e,"id","bubble"),(0,k.A)(e,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),(0,k.A)(e,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}}),e})(),Pi=(()=>
vendor: 4,366 bytes, line 1
1{class e extends Ct{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){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let a,l,r=c=>+n[c];if(L(n[t])){const{key:c="value"}=this._parsing;r=h=>+vt(n[h],c)}for(a=t,l=t+s;a<l;++a)o._parsed[a]=r(a)}}_getRotation(){return lt(this.options.rotation-90)}_getCircumference(){return lt(this.options.circumference)}_getRotationExtents(){let t=V,s=-V;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),a=o._getCircumference();t=Math.min(t,r),s=Math.max(s,r+a)}return{rotation:t,circumference:s-t}}update(t){const 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(((e,i)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/i)(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function Oa(e,i,t){let s=1,n=1,o=0,r=0;if(i<V){const a=e,l=a+i,c=Math.cos(a),h=Math.sin(a),d=Math.cos(l),u=Math.sin(l),f=(y,M,_)=>ie(y,a,l,!0)?1:Math.max(M,M*t,_,_*t),p=(y,M,_)=>ie(y,a,l,!0)?-1:Math.min(M,M*t,_,_*t),g=f(0,c,d),m=f(j,h,u),b=p(E,c,d),x=p(E+j,h,u);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}}(u,d,c),y=Math.max(Math.min((n.width-a)/f,(n.height-a)/p)/2,0),M=ts(this.options.radius,y),v=(M-Math.max(M*c,0))/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){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return s&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===o._parsed[t]||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*r/V)}updateElements(t,s,n,o){const r="reset"===o,a=this.chart,l=a.chartArea,d=(l.left+l.right)/2,u=(l.top+l.bottom)/2,f=r&&a.options.animation.animateScale,p=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(s,o);let y,x=this._getRotation();for(y=0;y<s;++y)x+=this._circumference(y,r);for(y=s;y<s+n;++y){const M=this._circumference(y,r),_=t[y],v={x:d+this.offsetX,y:u+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(){const t=this._cachedMeta,s=t.data;let o,n=0;for(o=0;o<s.length;o++){const r=t._parsed[o];null!==r&&!isNaN(r)&&this.chart.getDataVisibility(o)&&!s[o].hidden&&(n+=Math.abs(r))}return n}calculateCircumference(t){const s=this._cachedMeta.total;return s>0&&!isNaN(t)?V*(Math.abs(t)/s):0}getLabelAndValue(t){const n=this.chart,o=n.data.labels||[],r=ne(this._cachedMeta._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0;const n=this.chart;let 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),"inner"!==c.borderAlign&&(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){const 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(A(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return(0,k.A)(e,"id","doughnut"),(0,k.A)(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"]}}
1,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),(0,k.A)(e,"descriptors",{_scriptable:i=>"spacing"!==i,_indexable:i=>"spacing"!==i&&!i.startsWith("borderDash")&&!i.startsWith("hoverBorderDash")}),(0,k.A)(e,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const t=i.data,{labels:{pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=i.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((l,c)=>{const d=i.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:o,hidden:!i.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:n,pointStyle:s,borderRadius:r&&(a||d.borderRadius),index:c}}):[]}},onClick(i,t,s){s.chart.toggleDataVisibility(t.index),s.chart.update()}}}}),e})(),Ta=(()=>{class e extends Ct{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled;let{start:l,count:c}=gs(s,o,a);this._drawStart=l,this._drawCount=c,ps(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const 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){const r="reset"===o,{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:d,includeOptions:u}=this._getSharedOptions(s,o),f=a.axis,p=l.axis,{spanGaps:g,segment:m}=this.options,b=Yt(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||r||"none"===o,y=s+n,M=t.length;let _=s>0&&this.getParsed(s-1);for(let v=0;v<M;++v){const C=t[v],S=x?C:{};if(v<s||v>=y){S.skip=!0;continue}const P=this.getParsed(v),O=T(P[p]),D=S[f]=a.getPixelForValue(P[f],v),R=S[p]=r||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,P,c):P[p],v);S.skip=isNaN(D)||isNaN(R)||O,S.stop=v>0&&Math.abs(P[f]-_[f])>b,m&&(S.parsed=P,S.raw=h.data[v]),u&&(S.options=d||this.resolveDataElementOptions(v,C.active?"active":o)),x||this.updateElement(C,v,S,o),_=P}}getMaxOverflow(){const t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;const 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(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return(0,k.A)(e,"id","line"),(0,k.A)(e,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),(0,k.A)(e,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}}),e})(),en=(()=>{class e extends Ct{constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this.chart,o=n.data.labels||[],r=ne(this._cachedMeta._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Os.bind(this)(t,s,n,o)}update(t){const s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){const s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((n,o)=>{const 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(){const 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),l=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){const r="reset"===o,a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,d=h.xCenter,u=h.yCenter,f=h.getIndexAngle(0)-.5*E;let g,p=f;const m=360/this.countVisibleElements();for(g=0;g<s;++g)p+=this._computeAngle(g,o,m);for(g=s;g<s+n;g++){const b=t[g];let 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=f));const _={x:d,y:u,innerRadius:0,outerRadius:M,startAngle:x,endAngle:y,options:this.resolveDataElementOptions(g,b.active?"active":o)};this.updateElement(b,g,_,o)}}countVisibleElements(){let s=0;return this._cachedMeta.data.forEach((n,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?lt(this.resolveDataElementOptions(t,s).angle||n):0}}return(0,k.A)(e,"id","polarArea"),(0,k.A)(e,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),(0,k.A)(e,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const t=i.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:s,color:n}}=i.legend.options;return t.labels.map((o,r)=>
1{const l=i.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:s,hidden:!i.getDataVisibility(r),index:r}})}return[]}},onClick(i,t,s){s.chart.toggleDataVisibility(t.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}}),e})();var La=Object.freeze({__proto__:null,BarController:Aa,BubbleController:Da,DoughnutController:Pi,LineController:Ta,PieController:(()=>{class e extends Pi{}return(0,k.A)(e,"id","pie"),(0,k.A)(e,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"}),e})(),PolarAreaController:en,RadarController:(()=>{class e extends Ct{getLabelAndValue(t){const 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 Os.bind(this)(t,s,n,o)}update(t){const s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,"resize"!==t){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0),this.updateElement(n,void 0,{_loop:!0,_fullLoop:r.length===o.length,options:a},t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){const r=this._cachedMeta.rScale,a="reset"===o;for(let l=s;l<s+n;l++){const c=t[l],h=this.resolveDataElementOptions(l,c.active?"active":o),d=r.getPointPositionForValue(l,this.getParsed(l).r),u=a?r.xCenter:d.x,f=a?r.yCenter:d.y,p={x:u,y:f,angle:d.angle,skip:isNaN(u)||isNaN(f),options:h};this.updateElement(c,l,p,o)}}}return(0,k.A)(e,"id","radar"),(0,k.A)(e,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),(0,k.A)(e,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}}),e})(),ScatterController:(()=>{class e extends Ct{getLabelAndValue(t){const 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){const s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled;let{start:r,count:a}=gs(s,n,o);if(this._drawStart=r,this._drawCount=a,ps(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;const 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(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){const r="reset"===o,{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,d=this.resolveDataElementOptions(s,o),u=this.getSharedOptions(d),f=this.includeOptions(o,u),p=a.axis,g=l.axis,{spanGaps:m,segment:b}=this.options,x=Yt(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||r||"none"===o;let M=s>0&&this.getParsed(s-1);for(let _=s;_<s+n;++_){const v=t[_],C=this.getParsed(_),S=y?v:{},P=T(C[g]),O=S[p]=a.getPixelForValue(C[p],_),D=S[g]=r||P?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,C,c):C[g],_);S.skip=isNaN(O)||isNaN(D)||P,S.stop=_>0&&Math.abs(C[p]-M[p])>x,b&&(S.parsed=C,S.raw=h.data[_]),f&&(S.options=u||this.resolveDataElementOptions(_,v.active?"active":o)),y||this.updateElement(v,_,S,o),M=C}this.updateSharedOptions(u,o,d)}getMaxOverflow(){const 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}const n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;const 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(0,k.A)(e,"id","scatter"),(0,k.A)(e,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),(0,k.A)(e,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}}),e})()});function Bt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}
1class Ai{static override(i){Object.assign(Ai.prototype,i)}constructor(i){(0,k.A)(this,"options",void 0),this.options=i||{}}init(){}formats(){return Bt()}parse(){return Bt()}format(){return Bt()}add(){return Bt()}diff(){return Bt()}startOf(){return Bt()}endOf(){return Bt()}}var Ra__date=Ai;function Ea(e,i,t,s){const{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&i===a.axis&&"r"!==i&&r&&o.length){const c=a._reversePixels?Qo:mt;if(!s){const h=c(o,i,t);if(l){const{vScale:d}=n._cachedMeta,{_parsed:u}=e,f=u.slice(0,h.lo+1).reverse().findIndex(g=>!T(g[d.axis]));h.lo-=Math.max(0,f);const p=u.slice(h.hi).findIndex(g=>!T(g[d.axis]));h.hi+=Math.max(0,p)}return h}if(n._sharedOptions){const h=o[0],d="function"==typeof h.getRange&&h.getRange(i);if(d){const u=c(o,i,t-d),f=c(o,i,t+d);return{lo:u.lo,hi:f.hi}}}}return{lo:0,hi:o.length-1}}function ce(e,i,t,s,n){const o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:d,hi:u}=Ea(o[a],i,r,n);for(let f=d;f<=u;++f){const p=h[f];p.skip||s(p,c,f)}}}function Di(e,i,t,s,n){const o=[];return!n&&!e.isPointInArea(i)||ce(e,t,i,function(a,l,c){!n&&!bt(a,e.chartArea,0)||a.inRange(i.x,i.y,s)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function Oi(e,i,t,s,n,o){return o||e.isPointInArea(i)?"r"!==t||s?function za(e,i,t,s,n,o){let r=[];const a=function Ia(e){const i=-1!==e.indexOf("x"),t=-1!==e.indexOf("y");return function(s,n){const 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))}}(t);let l=Number.POSITIVE_INFINITY;return ce(e,t,i,function c(h,d,u){const f=h.inRange(i.x,i.y,n);if(s&&!f)return;const p=h.getCenterPoint(n);if(!o&&!e.isPointInArea(p)&&!f)return;const m=a(i,p);m<l?(r=[{element:h,datasetIndex:d,index:u}],l=m):m===l&&r.push({element:h,datasetIndex:d,index:u})}),r}(e,i,t,s,n,o):function Fa(e,i,t,s){let n=[];return ce(e,t,i,function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],s),{angle:d}=ls(r,{x:i.x,y:i.y});ie(d,c,h)&&n.push({element:r,datasetIndex:a,index:l})}),n}(e,i,t,n):[]}function sn(e,i,t,s,n){const o=[],r="x"===t?"inXRange":"inYRange";let a=!1;return ce(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 Ba={evaluateInteractionItems:ce,modes:{index(e,i,t,s){const n=Ft(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?Di(e,n,o,s,r):Oi(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){const n=Ft(i,e),o=t.axis||"xy",r=t.includeInvisible||!1;let a=t.intersect?Di(e,n,o,s,r):Oi(e,n,o,!1,s,r);if(a.length>0){const 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)=>Di(e,Ft(i,e),t.axis||"xy",s,t.includeInvisible||!1),nearest:(e,i,t,s)=>Oi(e,Ft(i,e),t.axis||"xy",t.intersect,s,t.includeInvisible||!1),x:(e,i,t,s)=>sn(e,Ft(i,e),"x",t.intersect,s),y:(e,i,t,s)=>sn(e,Ft(i,e),"y",t.intersect,s)}};const nn=["left","top","right","bottom"];function he(e,i){return e.filter(t=>t.pos===i)}function on(e,i){return e.filter(t=>-1===nn.indexOf(t.pos)&&t.box.axis===i)}function de(e,i){return e.sort((t,s)=>{const n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function rn(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function an(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 ja(e,i,t,s){const{pos:n,box:o}=t,r=e.maxPadding;if(!L(n)){t.size&&(e[n]-=t.size);const d=s[t.stack]||{size:0,count:1};d.size=Math.max(d.size,t.horizontal?o.height:o.width),t.size=d.size/d.count,e[n]+=t.size}o.getPadding&&an(r,o.getPadding());const a=Math.max(0,i.outerWidth-rn(r,e,"left","right")),l=Math.max(0,i.outerHeight-rn(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 Ya(e,i){const t=i.maxPadding;return function s(n){const o={left:0,top:0,right:0,bottom:0};
vendor: 4,762 bytes, line 1
1return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}(e?["left","right"]:["top","bottom"])}function ue(e,i,t,s){const n=[];let 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,Ya(a.horizontal,i));const{same:d,other:u}=ja(i,t,a,s);c|=d&&n.length,h=h||u,l.fullSize||n.push(a)}return c&&ue(n,i,t,s)||h}function Be(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 ln(e,i,t,s){const n=t.padding;let{x:o,y:r}=i;for(const a of e){const l=a.box,c=s[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const d=i.w*h,u=c.size||l.height;te(c.start)&&(r=c.start),l.fullSize?Be(l,n.left,r,t.outerWidth-n.right-n.left,u):Be(l,i.left+c.placed,r,d,u),c.start=r,c.placed+=d,r=l.bottom}else{const d=i.h*h,u=c.size||l.width;te(c.start)&&(o=c.start),l.fullSize?Be(l,o,n.top,u,t.outerHeight-n.bottom-n.top):Be(l,o,i.top+c.placed,u,d),c.start=o,c.placed+=d,o=l.right}}i.x=o,i.y=r}var J={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){const t=e.boxes?e.boxes.indexOf(i):-1;-1!==t&&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;const n=q(e.options.layout.padding),o=Math.max(i-n.width,0),r=Math.max(t-n.height,0),a=function Ha(e){const i=function Va(e){const i=[];let 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}(e),t=de(i.filter(c=>c.box.fullSize),!0),s=de(he(i,"left"),!0),n=de(he(i,"right")),o=de(he(i,"top"),!0),r=de(he(i,"bottom")),a=on(i,"x"),l=on(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:he(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}(e.boxes),l=a.vertical,c=a.horizontal;I(e.boxes,g=>{"function"==typeof g.beforeLayout&&g.beforeLayout()});const h=l.reduce((g,m)=>m.box.options&&!1===m.box.options.display?g:g+1,0)||1,d=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);an(u,q(s));const f=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),p=function Na(e,i){const t=function Wa(e){const i={};for(const t of e){const{stack:s,pos:n,stackWeight:o}=t;if(!s||!nn.includes(n))continue;const r=i[s]||(i[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return i}(e),{vBoxMaxWidth:s,hBoxMaxHeight:n}=i;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{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}(l.concat(c),d);ue(a.fullSize,f,d,p),ue(l,f,d,p),ue(c,f,d,p)&&ue(l,f,d,p),function $a(e){const i=e.maxPadding;function t(s){const 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")}(f),ln(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,ln(a.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},I(a.chartArea,g=>{const m=g.box;Object.assign(m,e.chartArea),m.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class cn{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){}}class Xa extends cn{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const Ve="$chartjs",Ua={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},hn=e=>null===e||""===e,dn=!!Xr&&{passive:!0};function qa(e,i,t){e&&e.canvas&&e.canvas.removeEventListener(i,t,dn)}function We(e,i){for(const t of e)if(t===i||t.contains(i))return!0}function Za(e,i,t){const s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||We(a.addedNodes,s),r=r&&!We(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Qa(e,i,t){const s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||We(a.removedNodes,s),r=r&&!We(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}const fe=new Map;let un=0;function fn(){const e=window.devicePixelRatio;
1e!==un&&(un=e,fe.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function il(e,i,t){const s=e.canvas,n=s&&Mi(s);if(!n)return;const o=fs((a,l)=>{const c=n.clientWidth;t(a,l),c<n.clientWidth&&t()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;0===c&&0===h||o(c,h)});return r.observe(n),function tl(e,i){fe.size||window.addEventListener("resize",fn),fe.set(e,i)}(e,o),r}function Ti(e,i,t){t&&t.disconnect(),"resize"===i&&function el(e){fe.delete(e),fe.size||window.removeEventListener("resize",fn)}(e)}function sl(e,i,t){const s=e.canvas,n=fs(o=>{null!==e.ctx&&t(function Ja(e,i){const t=Ua[e.type]||e.type,{x:s,y:n}=Ft(e,i);return{type:t,chart:i,native:e,x:void 0!==s?s:null,y:void 0!==n?n:null}}(o,e))},e);return function Ga(e,i,t){e&&e.addEventListener(i,t,dn)}(s,i,n),n}class nl extends cn{acquireContext(i,t){const s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(function Ka(e,i){const t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[Ve]={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",hn(n)){const o=Rs(e,"width");void 0!==o&&(e.width=o)}if(hn(s))if(""===e.style.height)e.height=e.width/(i||2);else{const o=Rs(e,"height");void 0!==o&&(e.height=o)}}(i,t),s):null}releaseContext(i){const t=i.canvas;if(!t[Ve])return!1;const s=t[Ve].initial;["height","width"].forEach(o=>{const r=s[o];T(r)?t.removeAttribute(o):t.setAttribute(o,r)});const n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[Ve],!0}addEventListener(i,t,s){this.removeEventListener(i,t),(i.$proxies||(i.$proxies={}))[t]=({attach:Za,detach:Qa,resize:il}[t]||sl)(i,t,s)}removeEventListener(i,t){const s=i.$proxies||(i.$proxies={}),n=s[t];n&&(({attach:Ti,detach:Ti,resize:Ti}[t]||qa)(i,t,n),s[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return function Yr(e,i,t,s){const n=Fe(e),o=It(n,"margin"),r=Ie(n.maxWidth,e,"clientWidth")||Ae,a=Ie(n.maxHeight,e,"clientHeight")||Ae,l=function $r(e,i,t){let s,n;if(void 0===i||void 0===t){const o=e&&Mi(e);if(o){const r=o.getBoundingClientRect(),a=Fe(o),l=It(a,"border","width"),c=It(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=Ie(a.maxWidth,o,"clientWidth"),n=Ie(a.maxHeight,o,"clientHeight")}else i=e.clientWidth,t=e.clientHeight}return{width:i,height:t,maxWidth:s||Ae,maxHeight:n||Ae}}(e,i,t);let{width:c,height:h}=l;if("content-box"===n.boxSizing){const u=It(n,"border","width"),f=It(n,"padding");c-=f.width+u.width,h-=f.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=wt(Math.min(c,r,l.maxWidth)),h=wt(Math.min(h,a,l.maxHeight)),c&&!h&&(h=wt(c/2)),(void 0!==i||void 0!==t)&&s&&l.height&&h>l.height&&(h=l.height,c=wt(Math.floor(h*s))),{width:c,height:h}}(i,t,s,n)}isAttached(i){const t=i&&Mi(i);return!(!t||!t.isConnected)}}class ct{constructor(){(0,k.A)(this,"x",void 0),(0,k.A)(this,"y",void 0),(0,k.A)(this,"active",!1),(0,k.A)(this,"options",void 0),(0,k.A)(this,"$animations",void 0)}tooltipPosition(i){const{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return Yt(this.x)&&Yt(this.y)}getProps(i,t){const s=this.$animations;if(!t||!s)return this;const n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}function Ne(e,i,t,s,n){const o=A(s,0),r=Math.min(A(n,e.length),e.length);let l,c,h,a=0;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))}(0,k.A)(ct,"defaults",{}),(0,k.A)(ct,"defaultRoutes",void 0);const gn=(e,i,t)=>"top"===i||"left"===i?e[i]+t:e[i]-t,pn=(e,i)=>Math.min(i||e,e);function mn(e,i){const t=[],s=e.length/i,n=e.length;let o=0;for(;o<n;o+=s)t.push(e[Math.floor(o)]);return t}function fl(e,i,t){const s=e.ticks.length,n=Math.min(i,s-1),o=e._startPixel,r=e._endPixel,a=1e-6;let c,l=e.getPixelForTick(n);if(!(t&&(c=1===s?Math.max(l-o,r-l):0===i?(e.getPixelForTick(1)-l)/2:(l-e.getPixelForTick(n-1))/2,l+=n<i?c:-c,l<o-a||l>r+a)))return l}function ge(e){return e.drawTicks?e.tickLength:0}function bn(e,i){if(!e.display)return 0;const t=Y(e.font,i),s=q(e.padding);return(B(e.text)?e.text.length:1)*t.lineHeight+s.height}function bl(e,i,t){let s=di(e);return(t&&"right"!==i||!t&&"right"===i)&&(s=(e=>
vendor: 23,918 bytes, line 1
1"left"===e?"right":"right"===e?"left":e)(s)),s}class Vt extends ct{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=et(i,Number.POSITIVE_INFINITY),t=et(t,Number.NEGATIVE_INFINITY),s=et(s,Number.POSITIVE_INFINITY),n=et(n,Number.NEGATIVE_INFINITY),{min:et(i,s),max:et(t,n),minDefined:H(i),maxDefined:H(t)}}getMinMax(i){let r,{min:t,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:t,max:s};const 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:et(t,et(s,t)),max:et(s,et(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(){const 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(){z(this.options.beforeUpdate,[this])}update(i,t,s){const{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=function Sr(e,i,t){const{min:s,max:n}=e,o=ts(i,(n-s)/2),r=(a,l)=>t&&0===a?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?mn(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=function rl(e,i){const t=e.options.ticks,s=function al(e){const i=e.options.offset,t=e._tickSize();return Math.floor(Math.min(e._length/t+(i?0:1),e._maxLength/t))}(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?function cl(e){const i=[];let t,s;for(t=0,s=e.length;t<s;t++)e[t].major&&i.push(t);return i}(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return function hl(e,i,t,s){let r,n=0,o=t[0];for(s=Math.ceil(s),r=0;r<e.length;r++)r===o&&(i.push(e[r]),n++,o=t[n*s])}(i,c,o,r/n),c;const h=function ll(e,i,t){const s=function dl(e){const i=e.length;let 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}(e),n=i.length/t;if(!s)return Math.max(n,1);const o=function Ko(e){const i=[],t=Math.sqrt(e);let s;for(s=1;s<t;s++)e%s==0&&(i.push(s),i.push(e/s));return t===(0|t)&&i.push(t),i.sort((n,o)=>n-o).pop(),i}(s);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>n)return l}return Math.max(n,1)}(o,i,n);if(r>0){let d,u;const f=r>1?Math.round((l-a)/(r-1)):null;for(Ne(i,c,h,T(f)?0:a-f,a),d=0,u=r-1;d<u;d++)Ne(i,c,h,o[d],o[d+1]);return Ne(i,c,h,l,T(f)?i.length:l+f),c}return Ne(i,c,h),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,s,i=this.options.reverse;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(){z(this.options.afterUpdate,[this])}beforeSetDimensions(){z(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(){z(this.options.afterSetDimensions,[this])}_callHooks(i){this.chart.notifyPlugins(i,this.getContext()),z(this.options[i],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){z(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(i){const t=this.options.ticks;let s,n,o;for(s=0,n=i.length;s<n;s++)o=i[s],o.label=z(t.callback,[o.value,s,i],this)}afterTickToLabelConversion(){z(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){z(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const i=this.options,t=i.ticks,s=pn(this.ticks.length,i.ticks.maxTicksLimit),n=t.minRotation||0,o=t.maxRotation;let a,l,c,r=n;if(!this._isVisible()||!t.display||n>=o||s<=1||!this.isHorizontal())return void(this.labelRotation=n);const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=X(this.chart.width-d,0,this.maxWidth);a=i.offset?this.maxWidth/s:f/(s-1),d+6>a&&(a=f/(s-(i.offset?.5:1)),l=this.maxHeight-ge(i.grid)-t.padding-bn(i.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),r=li(Math.min(Math.asin(X((h.highest.height+6)/a,-1,1)),Math.asin(X(l/c,-1,1))-Math.asin(X(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){z(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){z(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=bn(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=ge(o)+l):(i.height=this.maxHeight,i.width=ge(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=2*s.padding,p=lt(this.labelRotation),g=Math.cos(p),m=Math.sin(p);a?i.height=Math.min(this.maxHeight,i.height+(s.mirror?0:m*d.width+g*u.height)+f):i.width=Math.min(this.maxWidth,i.width+(s.mirror?0:g*d.width+m*u.height)+f),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){const{ticks:{align:o,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,f=0;l?c?(u=n*i.width,f=s*t.height):(u=s*i.height,f=n*t.width):"start"===o?f=t.width:"end"===o?u=i.width:"inner"!==o&&(u=i.width/2,f=t.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+r)*this.width/(this.width-d),0)}else{let h=t.height/2,d=i.height/2;"start"===o?(h=0,d=i.height):"end"===o&&(h=t.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+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(){z(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:t}=this.options;return"top"===t||"bottom"===t||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let t,s;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),t=0,s=i.length;t<s;t++)T(i[t].label)&&(i.splice(t,1),s--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let i=this._labelSizes;if(!i){const t=this.options.ticks.sampleSize;let s=this.ticks;t<s.length&&(s=mn(s,t)),this._labelSizes=i=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return i}_computeLabelSizes(i,t,s){const{ctx:n,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(t/pn(t,s));let d,u,f,p,g,m,b,x,y,M,_,c=0,h=0;for(d=0;d<t;d+=l){if(p=i[d].label,g=this._resolveTickFontOptions(d),n.font=m=g.string,b=o[m]=o[m]||{data:{},gc:[]},x=g.lineHeight,y=M=0,T(p)||B(p)){if(B(p))for(u=0,f=p.length;u<f;++u)_=p[u],!T(_)&&!B(_)&&(y=Te(n,b.data,b.gc,y,_),M+=x)}else y=Te(n,b.data,b.gc,y,p),M=x;r.push(y),a.push(M),c=Math.max(y,c),h=Math.max(M,h)}!function gl(e,i){I(e,t=>{const s=t.gc,n=s.length/2;let o;if(n>i){for(o=0;o<n;++o)delete t.data[s[o]];s.splice(0,n)}})}(o,t);const v=r.indexOf(c),C=a.indexOf(h),S=P=>({width:r[P]||0,height:a[P]||0});return{first:S(0),last:S(t-1),widest:S(v),highest:S(C),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){const t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const t=this._startPixel+i*this._length;return function Zo(e){return X(e,-32768,32767)}(this._alignToPixels?Lt(this.chart,t,0):t)}getDecimalForPixel(i){const t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){const t=this.ticks||[];if(i>=0&&i<t.length){const s=t[i];return s.$context||(s.$context=function ml(e,i,t){return kt(e,{tick:t,index:i,type:"tick"})}(this.getContext(),i,s))}return this.$context||(this.$context=function pl(e,i){return kt(e,{scale:i,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const i=this.options.ticks,t=lt(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(){const i=this.options.display;return"auto"!==i?!!i:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(i){const t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=ge(o),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(N){return Lt(s,N,g)};let x,y,M,_,v,C,S,P,O,D,R,U;if("top"===r)x=b(this.bottom),C=this.bottom-u,P=x-m,D=b(i.top)+m,U=i.bottom;else if("bottom"===r)x=b(this.top),D=i.top,U=b(i.bottom)-m,C=x+m,P=this.top+u;else if("left"===r)x=b(this.right),v=this.right-u,S=x-m,O=b(i.left)+m,R=i.right;else if("right"===r)x=b(this.left),O=i.left,R=b(i.right)-m,v=x+m,S=this.left+u;else if("x"===t){if("center"===r)x=b((i.top+i.bottom)/2+.5);else if(L(r)){const N=Object.keys(r)[0];x=b(this.chart.scales[N].getPixelForValue(r[N]))}D=i.top,U=i.bottom,C=x+m,P=C+u}else if("y"===t){if("center"===r)x=b((i.left+i.right)/2);else if(L(r)){const N=Object.keys(r)[0];x=b(this.chart.scales[N].getPixelForValue(r[N]))}v=x-m,S=v-u,O=i.left,R=i.right}const it=A(n.ticks.maxTicksLimit,d),F=Math.max(1,Math.ceil(d/it));for(y=0;y<d;y+=F){const N=this.getContext(y),$=o.setContext(N),ht=a.setContext(N),Z=$.lineWidth,qt=$.color,ti=ht.dash||[],Jt=ht.dashOffset,ye=$.tickWidth,Nt=$.tickColor,ve=$.tickBorderDash||[],Ht=$.tickBorderDashOffset;M=fl(this,y,l),void 0!==M&&(_=Lt(s,M,Z),c?v=S=O=R=_:C=P=D=U=_,f.push({tx1:v,ty1:C,tx2:S,ty2:P,x1:O,y1:D,x2:R,y2:U,width:Z,color:qt,borderDash:ti,borderDashOffset:Jt,tickWidth:ye,tickColor:Nt,tickBorderDash:ve,tickBorderDashOffset:Ht}))}return this._ticksLength=d,this._borderValue=x,f}_computeLabelItems(i){const t=this.axis,s=this.options,{position:n,ticks:o}=s,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,u=ge(s.grid),f=u+h,p=d?-h:f,g=-lt(this.labelRotation),m=[];let b,x,y,M,_,v,C,S,P,O,D,R,U="middle";if("top"===n)v=this.bottom-p,C=this._getXAxisLabelAlignment();else if("bottom"===n)v=this.top+p,C=this._getXAxisLabelAlignment();else if("left"===n){const F=this._getYAxisLabelAlignment(u);C=F.textAlign,_=F.x}else if("right"===n){const F=this._getYAxisLabelAlignment(u);C=F.textAlign,_=F.x}else if("x"===t){if("center"===n)v=(i.top+i.bottom)/2+f;else if(L(n)){const F=Object.keys(n)[0];v=this.chart.scales[F].getPixelForValue(n[F])+f}C=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===n)_=(i.left+i.right)/2-f;else if(L(n)){const F=Object.keys(n)[0];_=this.chart.scales[F].getPixelForValue(n[F])}C=this._getYAxisLabelAlignment(u).textAlign}"y"===t&&("start"===l?U="top":"end"===l&&(U="bottom"));const it=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){y=a[b],M=y.label;const F=o.setContext(this.getContext(b));S=this.getPixelForTick(b)+o.labelOffset,P=this._resolveTickFontOptions(b),O=P.lineHeight,D=B(M)?M.length:1;const N=D/2,$=F.color,ht=F.textStrokeColor,Z=F.textStrokeWidth;let ti,qt=C;if(r?(_=S,"inner"===C&&(qt=b===x-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),R="top"===n?"near"===c||0!==g?-D*O+O/2:"center"===c?-it.highest.height/2-N*O+O:O/2-it.highest.height:"near"===c||0!==g?O/2:"center"===c?it.highest.height/2-N*O:it.highest.height-D*O,d&&(R*=-1),0!==g&&!F.showLabelBackdrop&&(_+=O/2*Math.sin(g))):(v=S,R=(1-D)*O/2),F.showLabelBackdrop){const Jt=q(F.backdropPadding),ye=it.heights[b],Nt=it.widths[b];let ve=R-Jt.top,Ht=0-Jt.left;switch(U){case"middle":ve-=ye/2;break;case"bottom":ve-=ye}switch(C){case"center":Ht-=Nt/2;break;case"right":Ht-=Nt;break;case"inner":b===x-1?Ht-=Nt:b>0&&(Ht-=Nt/2)}ti={left:Ht,top:ve,width:Nt+Jt.width,height:ye+Jt.height,color:F.backdropColor}}m.push({label:M,font:P,textOffset:R,options:{rotation:g,color:$,strokeColor:ht,strokeWidth:Z,textAlign:qt,textBaseline:U,translation:[_,v],backdrop:ti}})}return m}_getXAxisLabelAlignment(){const{position:i,ticks:t}=this.options;if(-lt(this.labelRotation))return"top"===i?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(i){const{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,a=i+o,l=this._getLabelSizes().widest.width;let c,h;return"left"===t?n?(h=this.right+o,"near"===s?c="left":"center"===s?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,"near"===s?c="right":"center"===s?(c="center",h-=l/2):(c="left",h=this.left)):"right"===t?n?(h=this.left+o,"near"===s?c="right":"center"===s?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,"near"===s?c="left":"center"===s?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const i=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:i.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:i.width}:void 0}drawBackground(){const{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){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){const t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let o,r;const 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){const 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(){const{chart:i,ctx:t,options:{border:s,grid:n}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;const a=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,d,u;this.isHorizontal()?(c=Lt(i,this.left,r)-r/2,h=Lt(i,this.right,a)+a/2,d=u=l):(d=Lt(i,this.top,r)-r/2,u=Lt(i,this.bottom,a)+a/2,c=h=l),t.save(),t.lineWidth=o.width,t.strokeStyle=o.color,t.beginPath(),t.moveTo(c,d),t.lineTo(h,u),t.stroke(),t.restore()}drawLabels(i){if(!this.options.ticks.display)return;const s=this.ctx,n=this._computeLabelArea();n&&Le(s,n);const o=this.getLabelItems(i);for(const r of o)Rt(s,r.label,0,r.textOffset,r.font,r.options);n&&Re(s)}drawTitle(){const{ctx:i,options:{position:t,title:s,reverse:n}}=this;if(!s.display)return;const o=Y(s.font),r=q(s.padding),a=s.align;let l=o.lineHeight/2;"bottom"===t||"center"===t||L(t)?(l+=r.bottom,B(s.text)&&(l+=o.lineHeight*(s.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:u}=function xl(e,i,t,s){const{top:n,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l;let u,f,p,d=0;const g=r-n,m=a-o;if(e.isHorizontal()){if(f=G(s,o,a),L(t)){const b=Object.keys(t)[0];p=h[b].getPixelForValue(t[b])+g-i}else p="center"===t?(c.bottom+c.top)/2+g-i:gn(e,t,i);u=a-o}else{if(L(t)){const b=Object.keys(t)[0];f=h[b].getPixelForValue(t[b])-m+i}else f="center"===t?(c.left+c.right)/2-m+i:gn(e,t,i);p=G(s,r,n),d="left"===t?-j:j}return{titleX:f,titleY:p,maxWidth:u,rotation:d}}(this,l,t,a);Rt(i,s.text,0,0,o,{color:s.color,maxWidth:d,rotation:u,textAlign:bl(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(){const i=this.options,t=i.ticks&&i.ticks.z||0,s=A(i.grid&&i.grid.z,-1),n=A(i.border&&i.border.z,0);return this._isVisible()&&this.draw===Vt.prototype.draw?[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]:[{z:t,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,r;for(o=0,r=t.length;o<r;++o){const a=t[o];a[s]===this.id&&(!i||a.type===i)&&n.push(a)}return n}_resolveTickFontOptions(i){return Y(this.options.ticks.setContext(this.getContext(i)).font)}_maxDigits(){const i=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/i}}class He{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){const t=Object.getPrototypeOf(i);let s;(function vl(e){return"id"in e&&"defaults"in e})(t)&&(s=this.register(t));const 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,function _l(e,i,t){const s=Zt(Object.create(null),[t?W.get(t):{},W.get(i),e.defaults]);W.set(i,s),e.defaultRoutes&&function yl(e,i){Object.keys(i).forEach(t=>{const s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");W.route(o,n,l,a)})}(i,e.defaultRoutes),e.descriptors&&W.describe(i,e.descriptors)}(i,r,s),this.override&&W.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const t=this.items,s=i.id,n=this.scope;s in t&&delete t[s],n&&s in W[n]&&(delete W[n][s],this.override&&delete Tt[s])}}class Ml{constructor(){this.controllers=new He(Ct,"datasets",!0),this.elements=new He(ct,"elements"),this.plugins=new He(Object,"plugins"),this.scales=new He(Vt,"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=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):I(n,r=>{const a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){const n=ai(i);z(s["before"+n],[],s),t[i](s),z(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;t<this._typedRegistries.length;t++){const s=this._typedRegistries[t];if(s.isForType(i))return s}return this.plugins}_get(i,t,s){const n=t.get(i);if(void 0===n)throw new Error('"'+i+'" is not a registered '+s+".");return n}}var ut=new Ml;class Sl{constructor(){this._init=void 0}notify(i,t,s,n){if("beforeInit"===t&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install")),void 0===this._init)return;const o=n?this._descriptors(i).filter(n):this._descriptors(i),r=this._notify(o,i,t,s);return"afterDestroy"===t&&(this._notify(o,i,"stop"),this._notify(this._init,i,"uninstall"),this._init=void 0),r}_notify(i,t,s,n){n=n||{};for(const o of i){const r=o.plugin;if(!1===z(r[s],[t,n,o.options],r)&&n.cancelable)return!1}return!0}invalidate(){T(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),t}_createDescriptors(i,t){const s=i&&i.config,n=A(s.options&&s.options.plugins,{}),o=function kl(e){const i={},t=[],s=Object.keys(ut.plugins.items);for(let o=0;o<s.length;o++)t.push(ut.getPlugin(s[o]));const n=e.plugins||[];for(let o=0;o<n.length;o++){const r=n[o];-1===t.indexOf(r)&&(t.push(r),i[r.id]=!0)}return{plugins:t,localIds:i}}(s);return!1!==n||t?function Cl(e,{plugins:i,localIds:t},s,n){const o=[],r=e.getContext();for(const a of i){const l=a.id,c=wl(s[l],n);null!==c&&o.push({plugin:a,options:Pl(e.config,{plugin:a,local:t[l]},c,r)})}return o}(i,o,n,t):[]}_notifyStateChanges(i){const 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 wl(e,i){return i||!1!==e?!0===e?{}:e:null}function Pl(e,{plugin:i,local:t},s,n){const 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 Li(e,i){return((i.datasets||{})[e]||{}).indexAxis||i.indexAxis||(W.datasets[e]||{}).indexAxis||"x"}function xn(e){if("x"===e||"y"===e||"r"===e)return e}
1function Ol(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function Ri(e,...i){if(xn(e))return e;for(const t of i){const s=t.axis||Ol(t.position)||e.length>1&&xn(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function _n(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function yn(e){const i=e.options||(e.options={});i.plugins=A(i.plugins,{}),i.scales=function Ll(e,i){const t=Tt[e.type]||{scales:{}},s=i.scales||{},n=Li(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!L(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Ri(r,a,function Tl(e,i){if(i.data&&i.data.datasets){const t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return _n(e,"x",t[0])||_n(e,"y",t[0])}return{}}(r,e),W.scales[a.type]),c=function Dl(e,i){return e===i?"_index_":"_value_"}(l,n),h=t.scales||{};o[r]=Qt(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Li(a,i),h=(Tt[a]||{}).scales||{};Object.keys(h).forEach(d=>{const u=function Al(e,i){let t=e;return"_index_"===e?t=i:"_value_"===e&&(t="x"===i?"y":"x"),t}(d,l),f=r[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),Qt(o[f],[{axis:u},s[f],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Qt(a,[W.scales[a.type],W.scale])}),o}(e,i)}function vn(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Mn=new Map,Sn=new Set;function je(e,i){let t=Mn.get(e);return t||(t=i(),Mn.set(e,t),Sn.add(t)),t}const pe=(e,i,t)=>{const s=vt(i,t);void 0!==s&&e.add(s)};class El{constructor(i){this._config=function Rl(e){return(e=e||{}).data=vn(e.data),yn(e),e}(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=vn(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),yn(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return je(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return je(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return je(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){const t=i.id;return je(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){const s=this._scopeCache;let n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){const{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;const l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(d=>pe(l,i,d))),h.forEach(d=>pe(l,n,d)),h.forEach(d=>pe(l,Tt[o]||{},d)),h.forEach(d=>pe(l,W,d)),h.forEach(d=>pe(l,gi,d))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Sn.has(t)&&r.set(t,c),c}chartOptionScopes(){const{options:i,type:t}=this;return[i,Tt[t]||{},W.datasets[t]||{},{type:t},W,gi]}resolveNamedOptions(i,t,s,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=kn(this._resolverCache,i,n);let l=r;(function Fl(e,i){const{isScriptable:t,isIndexable:s}=ks(e);for(const n of i){const o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(Mt(a)||Il(a))||r&&B(a))return!0}return!1})(r,t)&&(o.$shared=!1,l=Xt(r,s=Mt(s)?s():s,this.createResolver(i,s,a)));for(const c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){const{resolver:o}=kn(this._resolverCache,i,s);return L(t)?Xt(o,t,void 0,n):o}}function kn(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));const n=t.join();let o=s.get(n);return o||(o={resolver:xi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}const Il=e=>L(e)&&Object.getOwnPropertyNames(e).some(i=>Mt(e[i])),Bl=["top","bottom","left","right","chartArea"];function wn(e,i){return"top"===e||"bottom"===e||-1===Bl.indexOf(e)&&"x"===i}function Cn(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function Pn(e){const i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),z(t&&t.onComplete,[e],i)}function Vl(e){const i=e.chart,t=i.options.animation;z(t&&t.onProgress,[e],i)}function An(e){return vi()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const $e={},Dn=e=>{const i=An(e);return Object.values($e).filter(t=>t.canvas===i).pop()};function Wl(e,i,t){const s=Object.keys(e);for(const n of s){const o=+n;if(o>=i){const r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}let Ei=(()=>{class e{static register(...t){ut.add(...t),On()}static unregister(...t){ut.remove(...t),On()}constructor(t,s){const n=this.config=new El(s),o=An(t),r=Dn(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.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function ol(e){return!vi()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Xa:nl}(o)),this.platform.updateConfig(n);const l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,d=c&&c.width;this.id=Vo(),this.ctx=l,this.canvas=c,this.width=d,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 Sl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function ir(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}(u=>this.update(u),a.resizeDelay||0),this._dataChanges=[],$e[this.id]=this,l&&c?(xt.listen(this,"complete",Pn),xt.listen(this,"progress",Vl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return T(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 ut}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ls(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vs(this.canvas,this.ctx),this}stop(){return xt.stop(this),this}resize(t,s){xt.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){const n=this.options,a=this.platform.getMaximumSize(this.canvas,t,s,n.maintainAspectRatio&&this.aspectRatio),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Ls(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),z(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){I(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{});let r=[];s&&(r=r.concat(Object.keys(s).map(a=>{const l=s[a],c=Ri(a,l),h="r"===c,d="x"===c;return{options:l,dposition:h?"chartArea":d?"bottom":"left",dtype:h?"radialLinear":d?"category":"linear"}}))),I(r,a=>{const l=a.options,c=l.id,h=Ri(c,l),d=A(l.type,a.dtype);(void 0===l.position||wn(l.position,h)!==wn(a.dposition))&&(l.position=a.dposition),o[c]=!0;let u=null;c in n&&n[c].type===d?u=n[c]:(u=new(ut.getScale(d))({id:c,type:d,ctx:this.ctx,
1chart:this}),n[u.id]=u),u.init(l,t)}),I(o,(a,l)=>{a||delete n[l]}),I(n,a=>{J.configure(this,a,a.options),J.addBox(this,a)})}_updateMetasets(){const 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(Cn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:s}}=this;t.length>s.length&&delete this._stacks,t.forEach((n,o)=>{0===s.filter(r=>r===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],s=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n<o;n++){const r=s[n];let a=this.getDatasetMeta(n);const 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||Li(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{const c=ut.getController(l),{datasetElementType:h,dataElementType:d}=W.datasets[l];Object.assign(c,{dataElementType:ut.getElement(d),datasetElementType:h&&ut.getElement(h)}),a.controller=new c(this,n),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){I(this.data.datasets,(t,s)=>{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const s=this.config;s.update();const n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,d=this.data.datasets.length;h<d;h++){const{controller:u}=this.getDatasetMeta(h),f=!o&&-1===r.indexOf(u);u.buildOrUpdateElements(f),a=Math.max(+u.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),o||I(r,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Cn("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){I(this.scales,t=>{J.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!ss(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of s)Wl(t,o,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const 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(!ss(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(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;J.update(this,this.width,this.height,t);const s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],I(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){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,Mt(t)?t({datasetIndex:s}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,s){const n=this.getDatasetMeta(t),o={meta:n,index:t,mode:s,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(s),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xt.has(this)?this.attached&&!xt.running(this)&&xt.start(this):(this.draw(),Pn({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,o)}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const 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){const s=this._sortedMetasets,n=[];let o,r;for(o=0,r=s.length;o<r;++o){const a=s[o];(!t||a.visible)&&n.push(a)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let s=t.length-1;s>=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const s=this.ctx,n={meta:t,index:t.index,cancelable:!0},o=Hs(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(o&&Le(s,o),t.controller.draw(),o&&Re(s),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return bt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){const r=Ba.modes[s];return"function"==typeof r?r(this,t,n,o):[]}getDatasetMeta(t){const s=this.data.datasets[t],n=this._metasets;let 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=kt(null,{chart:this,type:"chart"}))}
vendor: 9,518 bytes, line 1
1getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const s=this.data.datasets[t];if(!s)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!s.hidden}setDatasetVisibility(t,s){this.getDatasetMeta(t).hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){const o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);te(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){const s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),xt.remove(this),t=0,s=this.data.datasets.length;t<s;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:s}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),vs(t,s),this.platform.releaseContext(s),this.canvas=null,this.ctx=null),delete $e[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const 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)};I(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const 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)};let a;const 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(){I(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},I(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){const o=n?"set":"remove";let r,a,l,c;for("dataset"===s&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){a=t[l];const h=a&&this.getDatasetMeta(a.datasetIndex).controller;h&&h[o+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const s=this._active||[],n=t.map(({datasetIndex:r,index:a})=>{const l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Ce(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 1===this._plugins._cache.filter(s=>s.plugin.id===t).length}_updateHoverStyles(t,s,n){const o=this.options.hover,r=(c,h)=>c.filter(d=>!h.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.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){const n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const 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){const{_active:o=[],options:r}=this,l=this._getActiveElements(t,o,n,s),c=function Yo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(t),h=function Nl(e,i,t,s){return t&&"mouseout"!==e.type?s?i:e:null}(t,this._lastEvent,n,c);n&&(this._lastEvent=null,z(r.onHover,[t,l,this],this),c&&z(r.onClick,[t,l,this],this));const d=!Ce(l,o);return(d||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,d}_getActiveElements(t,s,n,o){if("mouseout"===t.type)return[];if(!n)return s;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return(0,k.A)(e,"defaults",W),(0,k.A)(e,"instances",$e),(0,k.A)(e,"overrides",Tt),(0,k.A)(e,"registry",ut),(0,k.A)(e,"version","4.5.1"),(0,k.A)(e,"getChart",Dn),e})();function On(){return I(Ei.instances,e=>e._plugins.invalidate())}function Gt(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function Ye(e,i,t,s,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,d=Math.max(i.outerRadius+s+t-c,0),u=h>0?h+s+t+c:0;let f=0;const p=n-l;if(s){const $=((h>0?h-s:0)+(d>0?d-s:0))/2;f=(p-(0!==$?p*$/($+s):p))/2}const m=(p-Math.max(.001,p*d-t/E)/d)/2,b=l+m+f,x=n-m-f,{outerStart:y,outerEnd:M,innerStart:_,innerEnd:v}=function Yl(e,i,t,s){const n=function $l(e){return bi(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{const c=(t-Math.min(o,l))*s/2;return X(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:X(n.innerStart,0,r),innerEnd:X(n.innerEnd,0,r)}}(i,u,d,x-b),C=d-y,S=d-M,P=b+y/C,O=x-M/S,D=u+_,R=u+v,U=b+_/D,it=x-v/R;if(e.beginPath(),o){const F=(P+O)/2;if(e.arc(r,a,d,P,F),e.arc(r,a,d,F,O),M>0){const Z=Gt(S,O,r,a);e.arc(Z.x,Z.y,M,O,x+j)}const N=Gt(R,x,r,a);if(e.lineTo(N.x,N.y),v>0){const Z=Gt(R,it,r,a);e.arc(Z.x,Z.y,v,x+j,it+Math.PI)}const $=(x-v/u+(b+_/u))/2;if(e.arc(r,a,u,x-v/u,$,!0),e.arc(r,a,u,$,b+_/u,!0),_>0){const Z=Gt(D,U,r,a);e.arc(Z.x,Z.y,_,U+Math.PI,b-j)}const ht=Gt(C,b,r,a);if(e.lineTo(ht.x,ht.y),y>0){const Z=Gt(C,P,r,a);e.arc(Z.x,Z.y,y,b-j,P)}}else{e.moveTo(r,a);const F=Math.cos(P)*d+r,N=Math.sin(P)*d+a;e.lineTo(F,N);const $=Math.cos(O)*d+r,ht=Math.sin(O)*d+a;e.lineTo($,ht)}e.closePath()}class me extends ct{constructor(i){super(),(0,k.A)(this,"circumference",void 0),(0,k.A)(this,"endAngle",void 0),(0,k.A)(this,"fullCircles",void 0),(0,k.A)(this,"innerRadius",void 0),(0,k.A)(this,"outerRadius",void 0),(0,k.A)(this,"pixelMargin",void 0),(0,k.A)(this,"startAngle",void 0),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){const n=this.getProps(["x","y"],s),{angle:o,distance:r}=ls(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,f=A(d,l-a),p=ie(o,a,l)&&a!==l,g=f>=V||p,m=pt(r,c+u,h+u);return g&&m}getCenterPoint(i){const{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,d=(r+a+c+l)/2;return{x:t+Math.cos(h)*d,y:s+Math.sin(h)*d}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=s>V?Math.floor(s/V):0,0===s||this.innerRadius<0||this.outerRadius<0)return;i.save();const a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);const c=n*(1-Math.sin(Math.min(E,s||0)));i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,function Xl(e,i,t,s,n){const{fullCircles:o,startAngle:r,circumference:a}=i;let l=i.endAngle;if(o){Ye(e,i,t,s,l,n);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%V||V))}Ye(e,i,t,s,l,n),e.fill()}(i,this,c,o,r),function Ul(e,i,t,s,n){const{fullCircles:o,startAngle:r,circumference:a,options:l}=i,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u,borderRadius:f}=l,p="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=u,p?(e.lineWidth=2*c,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=i.endAngle;if(o){Ye(e,i,t,s,g,n);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(g=r+(a%V||V))}p&&function jl(e,i,t){const{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i;let 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+j,s-j),e.closePath(),e.clip()}(e,i,g),l.selfJoin&&g-r>=E&&0===f&&"miter"!==h&&function Hl(e,i,t){const{startAngle:s,x:n,y:o,outerRadius:r,innerRadius:a,options:l}=i,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/r,K(s-t));if(e.beginPath(),e.arc(n,o,r-c/2,s+d/2,t-d/2),a>0){const u=Math.min(c/a,K(s-t));e.arc(n,o,a+c/2,t-u/2,s+u/2,!0)}else{const u=Math.min(c/2,r*K(s-t));if("round"===h)e.arc(n,o,u,t-E/2,s+E/2,!0);else if("bevel"===h){const f=2*u*u,p=-f*Math.cos(t+E/2)+n,g=-f*Math.sin(t+E/2)+o,m=f*Math.cos(s+E/2)+n,b=f*Math.sin(s+E/2)+o;e.lineTo(p,g),e.lineTo(m,b)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}(e,i,g),o||(Ye(e,i,t,s,g,n),e.stroke())}(i,this,c,o,r),i.restore()}}function Tn(e,i,t=i){e.lineCap=A(t.borderCapStyle,i.borderCapStyle),e.setLineDash(A(t.borderDash,i.borderDash)),e.lineDashOffset=A(t.borderDashOffset,i.borderDashOffset),e.lineJoin=A(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=A(t.borderWidth,i.borderWidth),e.strokeStyle=A(t.borderColor,i.borderColor)}function Kl(e,i,t){e.lineTo(t.x,t.y)}function Ln(e,i,t={}){const 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);return{count:s,start:l,loop:i.loop,ilen:c<l&&!(n<r&&o<r||n>a&&o>a)?s+c-l:c-l}}function ql(e,i,t,s){const{points:n,options:o}=i,{count:r,start:a,loop:l,ilen:c}=Ln(n,t,s),h=function Gl(e){return e.stepped?gr:e.tension||"monotone"===e.cubicInterpolationMode?pr:Kl}(o);let f,p,g,{move:d=!0,reverse:u}=s||{};for(f=0;f<=c;++f)p=n[(a+(u?c-f:f))%r],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):h(e,g,p,u,o.stepped),g=p);return l&&(p=n[(a+(u?c:0))%r],h(e,g,p,u,o.stepped)),!!l}function Jl(e,i,t,s){const n=i.points,{count:o,start:r,ilen:a}=Ln(n,t,s),{move:l=!0,reverse:c}=s||{};let u,f,p,g,m,b,h=0,d=0;const 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&&(f=n[x(0)],e.moveTo(f.x,f.y)),u=0;u<=a;++u){if(f=n[x(u)],f.skip)continue;const M=f.x,_=f.y,v=0|M;v===p?(_<g?g=_:_>m&&(m=_),h=(d*h+M)/++d):(y(),e.lineTo(M,_),p=v,d=0,g=m=_),b=_}y()}function Ii(e){const i=e.options;return e._decimated||e._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?ql:Jl}(0,k.A)(me,"id","arc"),(0,k.A)(me,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),(0,k.A)(me,"defaultRoutes",{backgroundColor:"backgroundColor"}),(0,k.A)(me,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const ec="function"==typeof Path2D;let Xe=(()=>{class e extends ct{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){const n=this.options;!n.tension&&"monotone"!==n.cubicInterpolationMode||n.stepped||this._pointsUpdated||(Vr(this._points,n,t,n.spanGaps?this._loop:this._fullLoop,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=function ta(e,i){const t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];const o=!!e._loop,{start:r,end:a}=function Zr(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}}(t,n,o,s);return function Ws(e,i,t,s){return s&&s.setContext&&t?function ea(e,i,t,s){const n=e._chart.getContext(),o=Ns(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=t.length,c=[];let h=o,d=i[0].start,u=d;function f(p,g,m,b){const 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,d=g%l)}}for(const p of i){d=a?d:p.start;let m,g=t[d%l];for(u=d+1;u<=p.end;u++){const b=t[u%l];m=Ns(s.setContext(kt(n,{type:"segment",p0:g,p1:b,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),ia(m,h)&&f(d,u-1,p.loop,h),g=b,h=m}d<u-1&&f(d,u-1,p.loop,h)}return c}(e,i,t,s):i}(e,!0===s?[{start:r,end:a,loop:o}]:function Qr(e,i,t,s){const n=e.length,o=[];let l,r=i,a=e[i];for(l=i+1;l<=t;++l){const c=e[l%n];c.skip||c.stop?a.skip||(o.push({start:i%n,end:(l-1)%n,loop:s=!1}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return null!==r&&o.push({start:i%n,end:r%n,loop:s}),o}(t,r,a<r?a+n:a,!!e._fullLoop&&0===r&&a===n-1),t,i)}(this,this.options.segment))}first(){const t=this.segments;return t.length&&this.points[t[0].start]}last(){const t=this.segments,n=t.length;return n&&this.points[t[n-1].end]}interpolate(t,s){const n=this.options,o=t[s],r=this.points,a=Vs(this,{property:s,start:o,end:o});if(!a.length)return;const l=[],c=function Zl(e){return e.stepped?Ur:e.tension||"monotone"===e.cubicInterpolationMode?Kr:zt}(n);let h,d;for(h=0,d=a.length;h<d;++h){const{start:u,end:f}=a[h],p=r[u],g=r[f];if(p===g){l.push(p);continue}const b=c(p,g,Math.abs((o-p[s])/(g[s]-p[s])),n.stepped);b[s]=t[s],l.push(b)}return 1===l.length?l[0]:l}pathSegment(t,s,n){return Ii(this)(t,this,s,n)}path(t,s,n){const o=this.segments,r=Ii(this);let a=this._loop;s=s||0,n=n||this.points.length-s;for(const l of o)a&=r(t,this,l,{start:s,end:s+n-1});return!!a}draw(t,s,n,o){(this.points||[]).length&&(this.options||{}).borderWidth&&(t.save(),function ic(e,i,t,s){ec&&!i.options.segment?function Ql(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),Tn(e,i.options),e.stroke(n)}(e,i,t,s):function tc(e,i,t,s){const{segments:n,options:o}=i,r=Ii(i);for(const a of n)Tn(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}(e,i,t,s)}
1(t,this,n,o),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return(0,k.A)(e,"id","line"),(0,k.A)(e,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),(0,k.A)(e,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),(0,k.A)(e,"descriptors",{_scriptable:!0,_indexable:i=>"borderDash"!==i&&"fill"!==i}),e})();function Rn(e,i,t,s){const n=e.options,{[t]:o}=e.getProps([t],s);return Math.abs(i-o)<n.radius+n.hitRadius}let sc=(()=>{class e extends ct{constructor(t){super(),(0,k.A)(this,"parsed",void 0),(0,k.A)(this,"skip",void 0),(0,k.A)(this,"stop",void 0),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){const 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 Rn(this,t,"x",s)}inYRange(t,s){return Rn(this,t,"y",s)}getCenterPoint(t){const{x:s,y:n}=this.getProps(["x","y"],t);return{x:s,y:n}}size(t){let s=(t=t||this.options||{}).radius||0;return s=Math.max(s,s&&t.hoverRadius||0),2*(s+(s&&t.borderWidth||0))}draw(t,s){const n=this.options;this.skip||n.radius<.1||!bt(this,s,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,mi(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}return(0,k.A)(e,"id","point"),(0,k.A)(e,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),(0,k.A)(e,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),e})();function En(e,i){const{x:t,y:s,base:n,width:o,height:r}=e.getProps(["x","y","base","width","height"],i);let a,l,c,h,d;return e.horizontal?(d=r/2,a=Math.min(t,n),l=Math.max(t,n),c=s-d,h=s+d):(d=o/2,a=t-d,l=t+d,c=Math.min(s,n),h=Math.max(s,n)),{left:a,top:c,right:l,bottom:h}}function Pt(e,i,t,s){return e?0:X(i,t,s)}function Fi(e,i,t,s){const n=null===i,o=null===t,a=e&&!(n&&o)&&En(e,s);return a&&(n||pt(i,a.left,a.right))&&(o||pt(t,a.top,a.bottom))}function lc(e,i){e.rect(i.x,i.y,i.w,i.h)}function zi(e,i,t={}){const s=e.x!==t.x?-i:0,n=e.y!==t.y?-i:0;return{x:e.x+s,y:e.y+n,w:e.w+((e.x+e.w!==t.x+t.w?i:0)-s),h:e.h+((e.y+e.h!==t.y+t.h?i:0)-n),radius:e.radius}}class Ue extends ct{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){const{inflateAmount:t,options:{borderColor:s,backgroundColor:n}}=this,{inner:o,outer:r}=function rc(e){const i=En(e),t=i.right-i.left,s=i.bottom-i.top,n=function nc(e,i,t){const n=e.borderSkipped,o=Ss(e.options.borderWidth);return{t:Pt(n.top,o.top,0,t),r:Pt(n.right,o.right,0,i),b:Pt(n.bottom,o.bottom,0,t),l:Pt(n.left,o.left,0,i)}}(e,t/2,s/2),o=function oc(e,i,t){const{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,o=Et(n),r=Math.min(i,t),a=e.borderSkipped,l=s||L(n);return{topLeft:Pt(!l||a.top||a.left,o.topLeft,0,r),topRight:Pt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Pt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Pt(!l||a.bottom||a.right,o.bottomRight,0,r)}}(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))}}}}(this),a=function ac(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(r.radius)?re:lc;i.save(),(r.w!==o.w||r.h!==o.h)&&(i.beginPath(),a(i,zi(r,t,o)),i.clip(),a(i,zi(o,-t,r)),i.fillStyle=s,i.fill("evenodd")),i.beginPath(),a(i,zi(o,t)),i.fillStyle=n,i.fill(),i.restore()}inRange(i,t,s){return Fi(this,i,t,s)}inXRange(i,t){return Fi(this,i,null,t)}inYRange(i,t){return Fi(this,null,i,t)}getCenterPoint(i){const{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"x"===i?this.width/2:this.height/2}}(0,k.A)(Ue,"id","bar"),(0,k.A)(Ue,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmou
1nt:"auto",pointStyle:void 0}),(0,k.A)(Ue,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var cc=Object.freeze({__proto__:null,ArcElement:me,BarElement:Ue,LineElement:Xe,PointElement:sc});const Bi=["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)"],In=Bi.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Fn(e){return Bi[e%Bi.length]}function zn(e){return In[e%In.length]}function Bn(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}var mc={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;const{data:{datasets:s},options:n}=e.config,{elements:o}=n,r=Bn(s)||function gc(e){return e&&(e.borderColor||e.backgroundColor)}(n)||o&&Bn(o)||function pc(){return"rgba(0,0,0,0.1)"!==W.borderColor||"rgba(0,0,0,0.1)"!==W.backgroundColor}();if(!t.forceOverride&&r)return;const a=function fc(e){let i=0;return(t,s)=>{const n=e.getDatasetMeta(s).controller;n instanceof Pi?i=function dc(e,i){return e.backgroundColor=e.data.map(()=>Fn(i++)),i}(t,i):n instanceof en?i=function uc(e,i){return e.backgroundColor=e.data.map(()=>zn(i++)),i}(t,i):n&&(i=function hc(e,i){return e.borderColor=Fn(i),e.backgroundColor=zn(i),++i}(t,i))}}(e);s.forEach(a)}};function Vn(e){if(e._decimated){const i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function Wn(e){e.data.datasets.forEach(i=>{Vn(i)})}var yc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled)return void Wn(e);const s=e.width;e.data.datasets.forEach((n,o)=>{const{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if("y"===ae([a,e.options.indexAxis])||!l.controller.supportsDecimation)return;const h=e.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type||e.options.parsing)return;let p,{start:d,count:u}=function _c(e,i){const t=i.length;let n,s=0;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=X(mt(i,o.axis,r).lo,0,t-1)),n=c?X(mt(i,o.axis,a).hi+1,s,t)-s:t-s,{start:s,count:n}}(l,c);if(u<=(t.threshold||4*s))Vn(n);else{switch(T(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}})),t.algorithm){case"lttb":p=function bc(e,i,t,s,n){const o=n.samples||s;if(o>=t)return e.slice(i,i+t);const r=[],a=(t-2)/(o-2);let l=0;const c=i+t-1;let d,u,f,p,g,h=i;for(r[l++]=e[h],d=0;d<o-2;d++){let x,m=0,b=0;const y=Math.floor((d+1)*a)+1+i,M=Math.min(Math.floor((d+2)*a)+1,t)+i,_=M-y;for(x=y;x<M;x++)m+=e[x].x,b+=e[x].y;m/=_,b/=_;const v=Math.floor(d*a)+1+i,C=Math.min(Math.floor((d+1)*a)+1,t)+i,{x:S,y:P}=e[h];for(f=p=-1,x=v;x<C;x++)p=.5*Math.abs((S-m)*(e[x].y-P)-(S-e[x].x)*(b-P)),p>f&&(f=p,u=e[x],g=x);r[l++]=u,h=g}return r[l++]=e[c],r}(c,d,u,s,t);break;case"min-max":p=function xc(e,i,t,s){let r,a,l,c,h,d,u,f,p,g,n=0,o=0;const m=[],x=e[i].x,M=e[i+t-1].x-x;for(r=i;r<i+t;++r){a=e[r],l=(a.x-x)/M*s,c=a.y;const _=0|l;if(_===h)c<p?(p=c,d=r):c>g&&(g=c,u=r),n=(o*n+a.x)/++o;else{const v=r-1;if(!T(d)&&!T(u)){const C=Math.min(d,u),S=Math.max(d,u);C!==f&&C!==v&&m.push({...e[C],x:n}),S!==f&&S!==v&&m.push({...e[S],x:n})}r>0&&v!==f&&m.push(e[v]),m.push(a),h=_,o=0,p=g=c,d=u=f=r}}return m}(c,d,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=p}})},destroy(e){Wn(e)}};function Vi(e,i,t,s){if(s)return;let n=i[e],o=t[e];return"angle"===e&&(n=K(n),o=K(o)),{property:e,start:n,end:o}}function Ke(e,i,t){for(;i>e;i--){const s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Nn(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function Hn(e,i){let t=[],s=!1;return B(e)?(s=!0,t=e):t=function Mc(e,i){const{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=Ke(r,a,n);const l=n[r],c=n[a];null!==s?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):null!==t&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}(e,i),t.length?new Xe({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function jn(e){return e&&!1!==e.fill}function Sc(e,i,t){let n=e[i].fill;const o=[i];let r;if(!t)return n;for(;!1!==n&&-1===o.indexOf(n);){if(!H(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function kc(e,i,t){const s=function Ac(e){const i=e.options,t=i.fill;let s=A(t&&t.target,t);return void 0===s&&(s=!!i.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(e);if(L(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return H(n)&&Math.floor(n)===n?function wc(e,i,t,s){return("-"===e||"+"===e)&&(t=i+t),!(t===i||t<0||t>=s)&&t}(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Tc(e,i,t){const s=[];for(let n=0;n<t.length;n++){const o=t[n],{first:r,last:a,point:l}=Lc(o,i,"x");if(!(!l||r&&a))if(r)s.unshift(l);else if(e.push(l),!a)break}e.push(...s)}function Lc(e,i,t){const s=e.interpolate(i,t);if(!s)return{};const n=s[t],o=e.segments,r=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const h=o[c],d=r[h.start][t],u=r[h.end][t];if(pt(n,d,u)){a=n===d,l=n===u;break}}return{first:a,last:l,point:s}}class $n{constructor(i){this.x=i.x,this.y=i.y,this.radius=i.radius}pathSegment(i,t,s){const{x:n,y:o,radius:r}=this;return i.arc(n,o,r,(t=t||{start:0,end:V}).end,t.start,!0),!s.bounds}interpolate(i){const{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 Wi(e,i,t){const s=function Rc(e){const{chart:i,fill:t,line:s}=e;if(H(t))return function Ec(e,i){const t=e.getDatasetMeta(i);return t&&e.isDatasetVisible(i)?t.dataset:null}(i,t);if("stack"===t)return function Dc(e){const{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=function Oc(e,i){const t=[],s=e.getMatchingVisibleMetas("line");for(let n=0;n<s.length;n++){const o=s[n];if(o.index===i)break;o.hidden||t.unshift(o.dataset)}return t}(i,t);a.push(Hn({x:null,y:i.bottom},s));for(let l=0;l<o.length;l++){const c=o[l];for(let h=c.start;h<=c.end;h++)Tc(n,r[h],a)}return new Xe({points:n,options:{}})}(e);if("shape"===t)return!0;const n=function Ic(e){return(e.scale||{}).getPointPositionForValue?function zc(e){const{scale:i,fill:t}=e,s=i.options,n=i.getLabels().length,o=s.reverse?i.max:i.min,r=function Pc(e,i,t){let s;return s="start"===e?t:"end"===e?i.options.reverse?i.min:i.max:L(e)?e.value:i.getBaseValue(),s}(t,i,o),a=[];if(s.grid.circular){const l=i.getPointPositionForValue(0,o);return new $n({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}(e):function Fc(e){const{scale:i={},fill:t}=e,s=function Cc(e,i){let t=null;return"start"===e?t=i.bottom:"end"===e?t=i.top:L(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}(t,i);if(H(s)){const n=i.isHorizontal();return{x:n?s:null,y:n?null:s}}return null}(e)}(e);return n instanceof $n?n:Hn(n,s)}(i),{chart:n,index:o,line:r,scale:a,axis:l}=i,c=r.options,h=c.fill,d=c.backgroundColor,{above:u=d,below:f=d}=h||{},p=n.getDatasetMeta(o),g=Hs(n,p);s&&r.points.length&&(Le(e,t),function Bc(e,i){const{line:t,target:s,above:n,below:o,area:r,scale:a,clip:l}=i,c=t._loop?"angle":i.axis;e.save();let h=o;o!==n&&("x"===c?(Yn(e,s,r.top),Ni(e,{line:t,target:s,color:n,scale:a,property:c,clip:l}
vendor: 4,838 bytes, line 1
1),e.restore(),e.save(),Yn(e,s,r.bottom)):"y"===c&&(Xn(e,s,r.left),Ni(e,{line:t,target:s,color:o,scale:a,property:c,clip:l}),e.restore(),e.save(),Xn(e,s,r.right),h=n)),Ni(e,{line:t,target:s,color:h,scale:a,property:c,clip:l}),e.restore()}(e,{line:r,target:s,above:u,below:f,area:t,scale:a,axis:l,clip:g}),Re(e))}function Yn(e,i,t){const{segments:s,points:n}=i;let o=!0,r=!1;e.beginPath();for(const a of s){const{start:l,end:c}=a,h=n[l],d=n[Ke(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(d.x,t)}e.lineTo(i.first().x,t),e.closePath(),e.clip()}function Xn(e,i,t){const{segments:s,points:n}=i;let o=!0,r=!1;e.beginPath();for(const a of s){const{start:l,end:c}=a,h=n[l],d=n[Ke(l,c,n)];o?(e.moveTo(h.x,h.y),o=!1):(e.lineTo(t,h.y),e.lineTo(h.x,h.y)),r=!!i.pathSegment(e,a,{move:r}),r?e.closePath():e.lineTo(t,d.y)}e.lineTo(t,i.first().y),e.closePath(),e.clip()}function Ni(e,i){const{line:t,target:s,property:n,color:o,scale:r,clip:a}=i,l=function vc(e,i,t){const s=e.segments,n=e.points,o=i.points,r=[];for(const a of s){let{start:l,end:c}=a;c=Ke(l,c,n);const h=Vi(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}const d=Vs(i,h);for(const u of d){const f=Vi(t,o[u.start],o[u.end],u.loop),p=Bs(a,n,f);for(const g of p)r.push({source:g,target:u,start:{[t]:Nn(h,f,"start",Math.max)},end:{[t]:Nn(h,f,"end",Math.min)}})}}return r}(t,s,n);for(const{source:c,target:h,start:d,end:u}of l){const{style:{backgroundColor:f=o}={}}=c,p=!0!==s;e.save(),e.fillStyle=f,Vc(e,r,a,p&&Vi(n,d,u)),e.beginPath();const g=!!t.pathSegment(e,c);let m;if(p){g?e.closePath():Un(e,s,u,n);const b=!!s.pathSegment(e,h,{move:g,reverse:!0});m=g&&b,m||Un(e,s,d,n)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function Vc(e,i,t,s){const n=i.chart.chartArea,{property:o,start:r,end:a}=s||{};if("x"===o||"y"===o){let l,c,h,d;"x"===o?(l=r,c=n.top,h=a,d=n.bottom):(l=n.left,c=r,h=n.right,d=a),e.beginPath(),t&&(l=Math.max(l,t.left),h=Math.min(h,t.right),c=Math.max(c,t.top),d=Math.min(d,t.bottom)),e.rect(l,c,h-l,d-c),e.clip()}}function Un(e,i,t,s){const n=i.interpolate(t,s);n&&e.lineTo(n.x,n.y)}var Wc={id:"filler",afterDatasetsUpdate(e,i,t){const s=(e.data.datasets||[]).length,n=[];let o,r,a,l;for(r=0;r<s;++r)o=e.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof Xe&&(l={visible:e.isDatasetVisible(r),index:r,fill:kc(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&&!1!==l.fill&&(l.fill=Sc(n,r,t.propagate))},beforeDraw(e,i,t){const s="beforeDraw"===t.drawTime,n=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let r=n.length-1;r>=0;--r){const a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Wi(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if("beforeDatasetsDraw"!==t.drawTime)return;const s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const o=s[n].$filler;jn(o)&&Wi(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){const s=i.meta.$filler;!jn(s)||"beforeDatasetDraw"!==t.drawTime||Wi(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Kn=(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)}};class Gn extends ct{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(){const i=this.options.labels||{};let t=z(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(){const{options:i,ctx:t}=this;if(!i.display)return void(this.width=this.height=0);const s=i.labels,n=Y(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Kn(s,o);let 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: 5,818 bytes, line 1
1_fitRows(i,t,s,n){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a;let d=i;o.textAlign="left",o.textBaseline="middle";let u=-1,f=-h;return this.legendItems.forEach((p,g)=>{const m=s+t/2+o.measureText(p.text).width;(0===g||c[c.length-1]+m+2*a>r)&&(d+=h,c[c.length-(g>0?0:1)]=0,f+=h,u++),l[g]={left:0,top:f,row:u,width:m,height:n},c[c.length-1]+=m+a}),d}_fitCols(i,t,s,n){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i;let d=a,u=0,f=0,p=0,g=0;return this.legendItems.forEach((m,b)=>{const{itemWidth:x,itemHeight:y}=function Hc(e,i,t,s,n){const o=function jc(e,i,t,s){let n=e.text;return n&&"string"!=typeof n&&(n=n.reduce((o,r)=>o.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}(s,e,i,t),r=function $c(e,i,t){let s=e;return"string"!=typeof i.text&&(s=qn(i,t)),s}(n,s,i.lineHeight);return{itemWidth:o,itemHeight:r}}(s,t,o,m,n);b>0&&f+y+2*a>h&&(d+=u+a,c.push({width:u,height:f}),p+=u+a,g++,u=f=0),l[b]={left:p,top:f,col:g,width:x,height:y},u=Math.max(u,x),f+=y+a}),d+=u,c.push({width:u,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=Kt(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=G(s,this.left+n,this.right-this.lineWidths[a]);for(const c of t)a!==c.row&&(a=c.row,l=G(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=G(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(const c of t)c.col!==a&&(a=c.col,l=G(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"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Le(i,this),this._draw(),Re(i)}}_draw(){const{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=W.color,l=Kt(i.rtl,this.left,this.width),c=Y(r.font),{padding:h}=r,d=c.size,u=d/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=Kn(r,d),y=this.isHorizontal(),M=this._computeTitleHeight();f=y?{x:G(o,this.left+h,this.right-s[0]),y:this.top+h+M,line:0}:{x:this.left+h,y:G(o,this.top+M+h,this.bottom-t[0].height),line:0},Es(this.ctx,i.textDirection);const _=m+h;this.legendItems.forEach((v,C)=>{n.strokeStyle=v.fontColor,n.fillStyle=v.fontColor;const S=n.measureText(v.text).width,P=l.textAlign(v.textAlign||(v.textAlign=r.textAlign)),O=p+u+S;let D=f.x,R=f.y;l.setWidth(this.width),y?C>0&&D+O+h>this.right&&(R=f.y+=_,f.line++,D=f.x=G(o,this.left+h,this.right-s[f.line])):C>0&&R+_>this.bottom&&(D=f.x=D+t[f.line].width+h,f.line++,R=f.y=G(o,this.top+M+h,this.bottom-t[f.line].height)),function(v,C,S){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const P=A(S.lineWidth,1);if(n.fillStyle=A(S.fillStyle,a),n.lineCap=A(S.lineCap,"butt"),n.lineDashOffset=A(S.lineDashOffset,0),n.lineJoin=A(S.lineJoin,"miter"),n.lineWidth=P,n.strokeStyle=A(S.strokeStyle,a),n.setLineDash(A(S.lineDash,[])),r.usePointStyle){const O={radius:g*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:P},D=l.xPlus(v,p/2);Ms(n,O,D,C+u,r.pointStyleWidth&&p)}else{const O=C+Math.max((d-g)/2,0),D=l.leftForLtr(v,p),R=Et(S.borderRadius);n.beginPath(),Object.values(R).some(U=>0!==U)?re(n,{x:D,y:O,w:p,h:g,radius:R}):n.rect(D,O,p,g),n.fill(),0!==P&&n.stroke()}n.restore()}(l.x(D),R,v),D=((e,i,t,s)=>e===(s?"left":"right")?t:"center"===e?(i+t)/2:i)(P,D+p+u,y?D+O:this.right,i.rtl),function(v,C,S){Rt(n,S.text,v,C+m/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})}(l.x(D),R,v),y?f.x+=O+h:f.y+="string"!=typeof v.text?qn(v,c.lineHeight)+h:_}),Is(this.ctx,i.textDirection)}drawTitle(){const i=this.options,t=i.title,s=Y(t.font),n=q(t.padding);if(!t.display)return;const o=Kt(i.rtl,this.left,this.width),r=this.ctx,a=t.position,c=n.top+s.size/2;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=G(i.align,d,this.right-u);else{const p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);h=c+G(i.align,this.top,this.bottom-p-i.labels.padding-this._computeTitleHeight())}const f=G(a,d,d+u);r.textAlign=o.textAlign(di(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,Rt(r,t.text,f,h,s)}_computeTitleHeight(){const i=this.options.title,t=Y(i.font),s=q(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(pt(i,this.left,this.right)&&pt(t,this.top,this.bottom))for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(n=o[s],pt(i,n.left,n.left+n.width)&&pt(t,n.top,n.top+n.height))return this.legendItems[s];return null}handleEvent(i){const t=this.options;if(!function Yc(e,i){return!(("mousemove"!==e&&"mouseout"!==e||!i.onHover&&!i.onLeave)&&(!i.onClick||"click"!==e&&"mouseup"!==e))}(i.type,t))return;const s=this._getLegendItemAt(i.x,i.y);if("mousemove"===i.type||"mouseout"===i.type){const n=this._hoveredItem,o=((e,i)=>null!==e&&null!==i&&e.datasetIndex===i.datasetIndex&&e.index===i.index)(n,s);n&&!o&&z(t.onLeave,[i,n,this],this),this._hoveredItem=s,s&&!o&&z(t.onHover,[i,s,this],this)}else s&&z(t.onClick,[i,s,this],this)}}function qn(e,i){return i*(e.text?e.text.length:0)}var Xc={id:"legend",_element:Gn,start(e,i,t){const s=e.legend=new Gn({ctx:e.ctx,options:t,chart:e});J.configure(e,s,t),J.addBox(e,s)},stop(e){J.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){const s=e.legend;J.configure(e,s,t),s.options=t},afterUpdate(e){const i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)}
vendor: 5,131 bytes, line 1
1,defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){const 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){const i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const 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)}}};class Hi extends ct{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){const s=this.options;if(this.left=0,this.top=0,!s.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=t;const n=B(s.text)?s.text.length:1;this._padding=q(s.padding);const o=n*Y(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align;let c,h,d,l=0;return this.isHorizontal()?(h=G(a,s,o),d=t+i,c=o-s):("left"===r.position?(h=s+i,d=G(a,n,t),l=-.5*E):(h=o-i,d=G(a,t,n),l=.5*E),c=n-t),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const i=this.ctx,t=this.options;if(!t.display)return;const s=Y(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Rt(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:di(t.align),textBaseline:"middle",translation:[r,a]})}}var Kc={id:"title",_element:Hi,start(e,i,t){!function Uc(e,i){const t=new Hi({ctx:e.ctx,options:i,chart:e});J.configure(e,t,i),J.addBox(e,t),e.titleBlock=t}(e,t)},stop(e){J.removeBox(e,e.titleBlock),delete e.titleBlock},beforeUpdate(e,i,t){const s=e.titleBlock;J.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}};const Ge=new WeakMap;var Gc={id:"subtitle",start(e,i,t){const s=new Hi({ctx:e.ctx,options:t,chart:e});J.configure(e,s,t),J.addBox(e,s),Ge.set(e,s)},stop(e){J.removeBox(e,Ge.get(e)),Ge.delete(e)},beforeUpdate(e,i,t){const s=Ge.get(e);J.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}};const be={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){const a=e[i].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),n+=l.y,++o}}return 0!==o&&0!==s.size&&{x:[...s].reduce((a,l)=>a+l)/s.size,y:n/o}},nearest(e,i){if(!e.length)return!1;let o,r,a,t=i.x,s=i.y,n=Number.POSITIVE_INFINITY;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const h=ci(i,l.getCenterPoint());h<n&&(n=h,a=l)}}if(a){const l=a.tooltipPosition();t=l.x,s=l.y}return{x:t,y:s}}};function ft(e,i){return i&&(B(i)?Array.prototype.push.apply(e,i):e.push(i)),e}function _t(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function qc(e,i){const{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 Jn(e,i){const t=e.chart.ctx,{body:s,footer:n,title:o}=e,{boxWidth:r,boxHeight:a}=i,l=Y(i.bodyFont),c=Y(i.titleFont),h=Y(i.footerFont),d=o.length,u=n.length,f=s.length,p=q(i.padding);let g=p.height,m=0,b=s.reduce((M,_)=>M+_.before.length+_.lines.length+_.after.length,0);b+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*i.titleSpacing+i.titleMarginBottom),b&&(g+=f*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*i.bodySpacing),u&&(g+=i.footerMarginTop+u*h.lineHeight+(u-1)*i.footerSpacing);let x=0;const y=function(M){m=Math.max(m,t.measureText(M).width+x)};return t.save(),t.font=c.string,I(e.title,y),t.font=l.string,I(e.beforeBody.concat(e.afterBody),y),x=i.displayColors?r+2+i.boxPadding:0,I(s,M=>{I(M.before,y),I(M.lines,y),I(M.after,y)}
1),x=0,t.font=h.string,I(e.footer,y),t.restore(),m+=p.width,{width:m,height:g}}function Qc(e,i,t,s){const{x:n,width:o}=t,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return"center"===s?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),function Zc(e,i,t,s){const{x:n,width:o}=s,r=t.caretSize+t.caretPadding;if("left"===e&&n+o+r>i.width||"right"===e&&n-o-r<0)return!0}(c,e,i,t)&&(c="center"),c}function Zn(e,i,t){const s=t.yAlign||i.yAlign||function Jc(e,i){const{y:t,height:s}=i;return t<s/2?"top":t>e.height-s/2?"bottom":"center"}(e,t);return{xAlign:t.xAlign||i.xAlign||Qc(e,i,t,s),yAlign:s}}function Qn(e,i,t,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=t,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=Et(r);let p=function th(e,i){let{x:t,width:s}=e;return"right"===i?t-=s:"center"===i&&(t-=s/2),t}(i,a);const g=function eh(e,i,t){let{y:s,height:n}=e;return"top"===i?s+=t:s-="bottom"===i?n+t:n/2,s}(i,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,u)+n:"right"===a&&(p+=Math.max(d,f)+n),{x:X(p,0,s.width-i.width),y:X(g,0,s.height-i.height)}}function qe(e,i,t){const s=q(t.padding);return"center"===i?e.x+e.width/2:"right"===i?e.x+e.width-s.right:e.x+s.left}function to(e){return ft([],_t(e))}function eo(e,i){const t=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return t?e.override(t):e}const io={beforeTitle:gt,title(e){if(e.length>0){const i=e[0],t=i.chart.data.labels,s=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(s>0&&i.dataIndex<s)return t[i.dataIndex]}return""},afterTitle:gt,beforeBody:gt,beforeLabel:gt,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let i=e.dataset.label||"";i&&(i+=": ");const t=e.formattedValue;return T(t)||(i+=t),i},labelColor(e){const 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){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:gt,afterBody:gt,beforeFooter:gt,footer:gt,afterFooter:gt};function Q(e,i,t,s){const n=e[i].call(t,s);return typeof n>"u"?io[i].call(t,s):n}let so=(()=>{class e extends ct{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(){const t=this._cachedAnimations;if(t)return t;const s=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&s.options.animation&&n.animations,r=new $s(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function ih(e,i,t){return kt(e,{tooltip:i,tooltipItems:t,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,s){const{callbacks:n}=s,o=Q(n,"beforeTitle",this,t),r=Q(n,"title",this,t),a=Q(n,"afterTitle",this,t);let l=[];return l=ft(l,_t(o)),l=ft(l,_t(r)),l=ft(l,_t(a)),l}getBeforeBody(t,s){return to(Q(s.callbacks,"beforeBody",this,t))}getBody(t,s){const{callbacks:n}=s,o=[];return I(t,r=>{const a={before:[],lines:[],after:[]},l=eo(n,r);ft(a.before,_t(Q(l,"beforeLabel",this,r))),ft(a.lines,Q(l,"label",this,r)),ft(a.after,_t(Q(l,"afterLabel",this,r))),o.push(a)}),o}getAfterBody(t,s){return to(Q(s.callbacks,"afterBody",this,t))}getFooter(t,s){const{callbacks:n}=s,o=Q(n,"beforeFooter",this,t),r=Q(n,"footer",this,t),a=Q(n,"afterFooter",this,t);let l=[];return l=ft(l,_t(o)),l=ft(l,_t(r)),l=ft(l,_t(a)),l}_createItems(t){const s=this._active,n=this.chart.data,o=[],r=[],a=[];let c,h,l=[];for(c=0,h=s.length;c<h;++c)l.push(qc(this.chart,s[c]));return t.filter&&(l=l.filter((d,u,f)=>t.filter(d,u,f,n))),t.itemSort&&(l=l.sort((d,u)=>
vendor: 9,380 bytes, line 1
1t.itemSort(d,u,n))),I(l,d=>{const u=eo(t.callbacks,d);o.push(Q(u,"labelColor",this,d)),r.push(Q(u,"labelPointStyle",this,d)),a.push(Q(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(t,s){const n=this.options.setContext(this.getContext()),o=this._active;let r,a=[];if(o.length){const l=be[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);const c=this._size=Jn(this,n),h=Object.assign({},l,c),d=Zn(this.chart,n,h),u=Qn(n,h,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,r={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});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){const 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){const{xAlign:o,yAlign:r}=this,{caretSize:a,cornerRadius:l}=n,{topLeft:c,topRight:h,bottomLeft:d,bottomRight:u}=Et(l),{x:f,y:p}=t,{width:g,height:m}=s;let b,x,y,M,_,v;return"center"===r?(_=p+m/2,"left"===o?(b=f,x=b-a,M=_+a,v=_-a):(b=f+g,x=b+a,M=_-a,v=_+a),y=b):(x="left"===o?f+Math.max(c,d)+a:"right"===o?f+g-Math.max(h,u)-a:this.caretX,"top"===r?(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){const o=this.title,r=o.length;let a,l,c;if(r){const h=Kt(n.rtl,this.x,this.width);for(t.x=qe(this,n.titleAlign,n),s.textAlign=h.textAlign(n.titleAlign),s.textBaseline="middle",a=Y(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){const a=this.labelColors[n],l=this.labelPointStyles[n],{boxHeight:c,boxWidth:h}=r,d=Y(r.bodyFont),u=qe(this,"left",r),f=o.x(u),g=s.y+(c<d.lineHeight?(d.lineHeight-c)/2:0);if(r.usePointStyle){const m={radius:Math.min(h,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=o.leftForLtr(f,h)+h/2,x=g+c/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,mi(t,m,b,x),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,mi(t,m,b,x)}else{t.lineWidth=L(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=o.leftForLtr(f,h),b=o.leftForLtr(o.xPlus(f,1),h-2),x=Et(a.borderRadius);Object.values(x).some(y=>0!==y)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,re(t,{x:m,y:g,w:h,h:c,radius:x}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),re(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){const{body:o}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:d}=n,u=Y(n.bodyFont);let f=u.lineHeight,p=0;const g=Kt(n.rtl,this.x,this.width),m=function(P){s.fillText(P,g.x(t.x+p),t.y+f/2),t.y+=f+r},b=g.textAlign(a);let x,y,M,_,v,C,S;for(s.textAlign=a,s.textBaseline="middle",s.font=u.string,t.x=qe(this,b,n),s.fillStyle=n.bodyColor,I(this.beforeBody,m),p=l&&"right"!==b?"center"===a?h/2+d:h+2+d:0,_=0,C=o.length;_<C;++_){for(x=o[_],y=this.labelTextColors[_],s.fillStyle=y,I(x.before,m),M=x.lines,l&&M.length&&(this._drawColorBox(s,t,_,g,n),f=Math.max(u.lineHeight,c)),v=0,S=M.length;v<S;++v)m(M[v]),f=u.lineHeight;I(x.after,m)}p=0,f=u.lineHeight,I(this.afterBody,m),t.y-=r}drawFooter(t,s,n){const o=this.footer,r=o.length;let a,l;if(r){const c=Kt(n.rtl,this.x,this.width);for(t.x=qe(this,n.footerAlign,n),t.y+=n.footerMarginTop,s.textAlign=c.textAlign(n.footerAlign),s.textBaseline="middle",a=Y(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){const{xAlign:r,yAlign:a}=this,{x:l,y:c}=t,{width:h,height:d}=n,{topLeft:u,topRight:f,bottomLeft:p,bottomRight:g}=Et(o.cornerRadius);s.fillStyle=o.backgroundColor,s.strokeStyle=o.borderColor,s.lineWidth=o.borderWidth,s.beginPath(),s.moveTo(l+u,c),"top"===a&&this.drawCaret(t,s,n,o),s.lineTo(l+h-f,c),s.quadraticCurveTo(l+h,c,l+h,c+f),"center"===a&&"right"===r&&this.drawCaret(t,s,n,o),s.lineTo(l+h,c+d-g),s.quadraticCurveTo(l+h,c+d,l+h-g,c+d),"bottom"===a&&this.drawCaret(t,s,n,o),s.lineTo(l+p,c+d),s.quadraticCurveTo(l,c+d,l,c+d-p),"center"===a&&"left"===r&&this.drawCaret(t,s,n,o),s.lineTo(l,c+u),s.quadraticCurveTo(l,c,l+u,c),s.closePath(),s.fill(),o.borderWidth>0&&s.stroke()}_updateAnimationTarget(t){const s=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const a=be[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=Jn(this,t),c=Object.assign({},a,this._size),h=Zn(s,t,c),d=Qn(t,c,h,s);(o._to!==d.x||r._to!==d.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,d))}}_willRender(){return!!this.opacity}draw(t){const s=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(s);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=q(s.padding);s.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(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),Is(t,s.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,s){const n=this._active,o=t.map(({datasetIndex:l,index:c})=>{const 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=!Ce(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;const o=this.options,r=this._active||[],a=this._getActiveElements(t,r,s,n),l=this._positionChanged(a,t),c=s||!Ce(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){const r=this.options;if("mouseout"===t.type)return[];if(!o)return s.filter(l=>this.chart.data.datasets[l.datasetIndex]&&void 0!==this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index));const a=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&a.reverse(),a}_positionChanged(t,s){const{caretX:n,caretY:o,options:r}=this,a=be[r.position].call(this,t,s);return!1!==a&&(n!==a.x||o!==a.y)}}return(0,k.A)(e,"positioners",be),e})();var nh=Object.freeze({__proto__:null,Colors:mc,Decimation:yc,Filler:Wc,Legend:Xc,SubTitle:Gc,Title:Kc,Tooltip:{id:"tooltip",_element:so,positioners:be,afterInit(e,i,t){t&&(e.tooltip=new so({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){const i=e.tooltip;if(i&&i._willRender()){const t={tooltip:i};if(!1===e.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0}))return;i.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,i){e.tooltip&&e.tooltip.handleEvent(i.event,i.replay,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:io},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function no(e){const i=this.getLabels();return e>=0&&e<i.length?i[e]:e}let lh=(()=>{class e extends Vt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const s=this._addedLabels;if(s.length){const n=this.getLabels();for(const{index:o,label:r}of s)n[o]===r&&n.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,s){if(T(t))return null;const n=this.getLabels();return((e,i)=>null===e?null:X(Math.round(e),0,i))(s=isFinite(s)&&n[s]===t?s:function rh(e,i,t,s){const n=e.indexOf(i);return-1===n?((e,i,t,s)=>
vendor: 6,062 bytes, line 1
1("string"==typeof i?(t=e.push(i)-1,s.unshift({index:t,label:i})):isNaN(i)&&(t=null),t))(e,i,t,s):n!==e.lastIndexOf(i)?t:n}(n,t,A(s,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:s}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),s||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const t=this.min,s=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===t&&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 no.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const 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(0,k.A)(e,"id","category"),(0,k.A)(e,"defaults",{ticks:{callback:no}}),e})();function oo(e,i,{horizontal:t,minRotation:s}){const n=lt(s),o=(t?Math.sin(n):Math.cos(n))||.001;return Math.min(i/o,.75*i*(""+e).length)}class Je extends Vt{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 T(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:t,maxDefined:s}=this.getUserBounds();let{min:n,max:o}=this;const r=l=>n=t?n:l,a=l=>o=s?o:l;if(i){const l=dt(n),c=dt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=0===o?1:Math.abs(.05*o);a(o+l),i||r(n-l)}this.min=n,this.max=o}getTickLimit(){const i=this.options.ticks;let n,{maxTicksLimit:t,stepSize:s}=i;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(){const i=this.options,t=i.ticks;let s=this.getTickLimit();s=Math.max(2,s);const r=function ch(e,i){const t=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=e,f=o||1,p=h-1,{min:g,max:m}=i,b=!T(r),x=!T(a),y=!T(c),M=(m-g)/(d+1);let v,C,S,P,_=os((m-g)/p/f)*f;if(_<1e-14&&!b&&!x)return[{value:g},{value:m}];P=Math.ceil(m/_)-Math.floor(g/_),P>p&&(_=os(P*_/p/f)*f),T(l)||(v=Math.pow(10,l),_=Math.ceil(_*v)/v),"ticks"===n?(C=Math.floor(g/_)*_,S=Math.ceil(m/_)*_):(C=g,S=m),b&&x&&o&&function qo(e,i){const t=Math.round(e);return t-i<=e&&t+i>=e}((a-r)/o,_/1e3)?(P=Math.round(Math.min((a-r)/_,h)),_=(a-r)/P,C=r,S=a):y?(C=b?r:C,S=x?a:S,P=c-1,_=(S-C)/P):(P=(S-C)/_,P=ee(P,Math.round(P),_/1e3)?Math.round(P):Math.ceil(P));const O=Math.max(as(_),as(C));v=Math.pow(10,T(l)?O:l),C=Math.round(C*v)/v,S=Math.round(S*v)/v;let D=0;for(b&&(u&&C!==r?(t.push({value:r}),C<r&&D++,ee(Math.round((C+D*_)*v)/v,r,oo(r,M,e))&&D++):C<r&&D++);D<P;++D){const R=Math.round((C+D*_)*v)/v;if(x&&R>a)break;t.push({value:R})}return x&&u&&S!==a?t.length&&ee(t[t.length-1].value,a,oo(a,M,e))?t[t.length-1].value=a:t.push({value:a}):(!x||S===a)&&t.push({value:S}),t}({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:!1!==t.includeBounds},this._range||this);return"ticks"===i.bounds&&rs(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(){const i=this.ticks;let t=this.min,s=this.max;if(super.configure(),this.options.offset&&i.length){const 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 ne(i,this.chart.options.locale,this.options.ticks.format)}}class ji extends Je{determineDataLimits(){const{min:i,max:t}=this.getMinMax(!0);this.min=H(i)?i:0,this.max=H(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const i=this.isHorizontal(),t=i?this.width:this.height,s=lt(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 null===i?NaN:this.getPixelForDecimal((i-this._startValue)/this._valueRange)}getValueForPixel(i){return this._startValue+this.getDecimalForPixel(i)*this._valueRange}}(0,k.A)(ji,"id","linear"),(0,k.A)(ji,"defaults",{ticks:{callback:Oe.formatters.numeric}});const xe=e=>Math.floor(St(e)),Wt=(e,i)=>Math.pow(10,xe(e)+i);function ro(e){return e/Math.pow(10,xe(e))==1}function ao(e,i,t){const s=Math.pow(10,t),n=Math.floor(e/s);return Math.ceil(i/s)-n}class $i extends Vt{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(i,t){const s=Je.prototype.parse.apply(this,[i,t]);if(0!==s)return H(s)&&s>0?s:null;this._zero=!0}determineDataLimits(){const{min:i,max:t}=this.getMinMax(!0);this.min=H(i)?Math.max(0,i):null,this.max=H(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!H(this._userMin)&&(this.min=i===Wt(this.min,0)?Wt(this.min,-1):Wt(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:t}=this.getUserBounds();let s=this.min,n=this.max;const o=a=>s=i?s:a,r=a=>n=t?n:a;s===n&&(s<=0?(o(1),r(10)):(o(Wt(s,-1)),r(Wt(n,1)))),s<=0&&o(Wt(n,-1)),n<=0&&r(Wt(s,1)),this.min=s,this.max=n}buildTicks(){const i=this.options,s=function dh(e,{min:i,max:t}){i=et(e.min,i);const s=[],n=xe(i);let o=function hh(e,i){let s=xe(i-e);for(;ao(e,i,s)>10;)s++;for(;ao(e,i,s)<10;)s--;return Math.min(s,xe(e))}(i,t),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=n>
1o?Math.pow(10,n):0,c=Math.round((i-l)*r)/r,h=Math.floor((i-l)/a/10)*a*10;let d=Math.floor((c-h)/Math.pow(10,o)),u=et(e.min,Math.round((l+h+d*Math.pow(10,o))*r)/r);for(;u<t;)s.push({value:u,major:ro(u),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),u=Math.round((l+h+d*Math.pow(10,o))*r)/r;const f=et(e.max,u);return s.push({value:f,major:ro(f),significand:d}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===i.bounds&&rs(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 void 0===i?"0":ne(i,this.chart.options.locale,this.options.ticks.format)}configure(){const i=this.min;super.configure(),this._startValue=St(i),this._valueRange=St(this.max)-St(i)}getPixelForValue(i){return(void 0===i||0===i)&&(i=this.min),null===i||isNaN(i)?NaN:this.getPixelForDecimal(i===this.min?0:(St(i)-this._startValue)/this._valueRange)}getValueForPixel(i){const t=this.getDecimalForPixel(i);return Math.pow(10,this._startValue+t*this._valueRange)}}function Yi(e){const i=e.ticks;if(i.display&&e.display){const t=q(i.backdropPadding);return A(i.font&&i.font.size,W.font.size)+t.height}return 0}function uh(e,i,t){return t=B(t)?t:[t],{w:fr(e,i.string,t),h:t.length*i.lineHeight}}function lo(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}}
1function gh(e,i,t,s,n){const o=Math.abs(Math.sin(t)),r=Math.abs(Math.cos(t));let 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 ph(e,i,t){const s=e.drawingArea,{extra:n,additionalAngle:o,padding:r,size:a}=t,l=e.getPointPosition(i,s+n+r,o),c=Math.round(li(K(l.angle+j))),h=function yh(e,i,t){return 90===t||270===t?e-=i/2:(t>270||t<90)&&(e-=i),e}(l.y,a.h,c),d=function xh(e){return 0===e||180===e?"center":e<180?"left":"right"}(c),u=function _h(e,i,t){return"right"===t?e-=i:"center"===t&&(e-=i/2),e}(l.x,a.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+a.w,bottom:h+a.h}}function mh(e,i){if(!i)return!0;const{left:t,top:s,right:n,bottom:o}=e;return!(bt({x:t,y:s},i)||bt({x:t,y:o},i)||bt({x:n,y:s},i)||bt({x:n,y:o},i))}function vh(e,i,t){const{left:s,top:n,right:o,bottom:r}=t,{backdropColor:a}=i;if(!T(a)){const l=Et(i.borderRadius),c=q(i.backdropPadding);e.fillStyle=a;const h=s-c.left,d=n-c.top,u=o-s+c.width,f=r-n+c.height;Object.values(l).some(p=>0!==p)?(e.beginPath(),re(e,{x:h,y:d,w:u,h:f,radius:l}),e.fill()):e.fillRect(h,d,u,f)}}function co(e,i,t,s){const{ctx:n}=e;if(t)n.arc(e.xCenter,e.yCenter,i,0,V);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)}}(0,k.A)($i,"id","logarithmic"),(0,k.A)($i,"defaults",{ticks:{callback:Oe.formatters.logarithmic,major:{enabled:!0}}});class _e extends Je{constructor(i){super(i),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const i=this._padding=q(Yi(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(){const{min:i,max:t}=this.getMinMax(!1);this.min=H(i)&&!isNaN(i)?i:0,this.max=H(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yi(this.options))}generateTickLabels(i){Je.prototype.generateTickLabels.call(this,i),this._pointLabels=this.getLabels().map((t,s)=>{const n=z(this.options.pointLabels.callback,[t,s],this);return n||0===n?n:""}).filter((t,s)=>this.chart.getDataVisibility(s))}fit(){const i=this.options;i.display&&i.pointLabels.display?function fh(e){const 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?E/o:0;for(let l=0;l<o;l++){const c=r.setContext(e.getPointLabelContext(l));n[l]=c.padding;const h=e.getPointPosition(l,e.drawingArea+n[l],a),d=Y(c.font),u=uh(e.ctx,d,e._pointLabels[l]);s[l]=u;const f=K(e.getIndexAngle(l)+a),p=Math.round(li(f));gh(t,i,f,lo(p,h.x,u.w,0,180),lo(p,h.y,u.h,90,270))}e.setCenterPoint(i.l-t.l,t.r-i.r,i.t-t.t,t.b-i.b),e._pointLabelItems=function bh(e,i,t){const s=[],n=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Yi(o)/2,additionalAngle:r?E/n:0};let c;for(let h=0;h<n;h++){l.padding=t[h],l.size=i[h];const d=ph(e,h,l);s.push(d),"auto"===a&&(d.visible=mh(d,c),d.visible&&(c=d))}return s}(e,s,n)}(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){return K(i*(V/(this._pointLabels.length||1))+lt(this.options.startAngle||0))}getDistanceFromCenterForValue(i){if(T(i))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-i)*t:(i-this.min)*t}getValueForDistanceFromCenter(i){if(T(i))return NaN;const t=i/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(i){const t=this._pointLabels||[];if(i>=0&&i<t.length){const s=t[i];return function kh(e,i,t){return kt(e,{label:t,index:i,type:"pointLabel"})}(this.getContext(),i,s)}}getPointPosition(i,t,s=0){const n=this.getIndexAngle(i)-j+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())}
1getPointLabelPosition(i){const{left:t,top:s,right:n,bottom:o}=this._pointLabelItems[i];return{left:t,top:s,right:n,bottom:o}}drawBackground(){const{backgroundColor:i,grid:{circular:t}}=this.options;if(i){const s=this.ctx;s.save(),s.beginPath(),co(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),s.closePath(),s.fillStyle=i,s.fill(),s.restore()}}drawGrid(){const i=this.ctx,t=this.options,{angleLines:s,grid:n,border:o}=t,r=this._pointLabels.length;let a,l,c;if(t.pointLabels.display&&function Mh(e,i){const{ctx:t,options:{pointLabels:s}}=e;for(let n=i-1;n>=0;n--){const o=e._pointLabelItems[n];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(n));vh(t,r,o);const a=Y(r.font),{x:l,y:c,textAlign:h}=o;Rt(t,e._pointLabels[n],l,c+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}(this,r),n.display&&this.ticks.forEach((h,d)=>{if(0!==d||0===d&&this.min<0){l=this.getDistanceFromCenterForValue(h.value);const u=this.getContext(d),f=n.setContext(u),p=o.setContext(u);!function Sh(e,i,t,s,n){const 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(),co(e,t,r,s),o.closePath(),o.stroke(),o.restore())}(this,f,l,r,p)}}),s.display){for(i.save(),a=r-1;a>=0;a--){const h=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:u}=h;!u||!d||(i.lineWidth=u,i.strokeStyle=d,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(){const i=this.ctx,t=this.options,s=t.ticks;if(!s.display)return;const n=this.getIndexAngle(0);let 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(0===l&&this.min>=0&&!t.reverse)return;const c=s.setContext(this.getContext(l)),h=Y(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;const d=q(c.backdropPadding);i.fillRect(-r/2-d.left,-o-h.size/2-d.top,r+d.width,h.size+d.height)}Rt(i,a.label,0,-o,h,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),i.restore()}drawTitle(){}}(0,k.A)(_e,"id","radialLinear"),(0,k.A)(_e,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Oe.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),(0,k.A)(_e,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),(0,k.A)(_e,"descriptors",{angleLines:{_fallback:"grid"}});const Ze={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}},tt=Object.keys(Ze);function ho(e,i){return e-i}function uo(e,i){if(T(i))return null;const t=e._adapter,{parser:s,round:n,isoWeekday:o}=e._parseOpts;let r=i;return"function"==typeof s&&(r=s(r)),H(r)||(r="string"==typeof s?t.parse(r,s):t.parse(r)),null===r?null:(n&&(r="week"!==n||!Yt(o)&&!0!==o?t.startOf(r,n):t.startOf(r,"isoWeek",o)),+r)}function fo(e,i,t,s){const n=tt.length;for(let o=tt.indexOf(e);o<n-1;++o){const r=Ze[tt[o]];if(r.common&&Math.ceil((t-i)/((r.steps?r.steps:Number.MAX_SAFE_INTEGER)*r.size))<=s)return tt[o]}return tt[n-1]}function go(e,i,t){if(t){if(t.length){const{lo:s,hi:n}=hi(t,i);e[t[s]>=i?t[s]:t[n]]=!0}}else e[i]=!0}function po(e,i,t){const s=[],n={},o=i.length;let r,a;for(r=0;r<o;++r)a=i[r],n[a]=r,s.push({value:a,major:!1});return 0!==o&&t?function Ph(e,i,t,s){const n=e._adapter,o=+n.startOf(i[0].value,s),r=i[i.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=t[a],l>=0&&(i[l].major=!0);return i}(e,s,n,t):s}let Xi=(()=>{class e extends Vt{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={}){const n=t.time||(t.time={}),o=this._adapter=new Ra__date(t.adapters.date);o.init(s),Qt(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 void 0===t?null:uo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,s=this._adapter,n=t.time.unit||"day";let{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)
1)}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&c(this.getMinMax(!1))),o=H(o)&&!isNaN(o)?o:+s.startOf(Date.now(),n),r=H(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(){const t=this.getLabelTimestamps();let s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(s=t[0],n=t[t.length-1]),{min:s,max:n}}buildTicks(){const t=this.options,s=t.time,n=t.ticks,o="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const r=this.min,l=function tr(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}(o,r,this.max);return this._unit=s.unit||(n.autoSkip?fo(s.minUnit,this.min,this.max,this._getLabelCapacity(r)):function wh(e,i,t,s,n){for(let o=tt.length-1;o>=tt.indexOf(t);o--){const r=tt[o];if(Ze[r].common&&e._adapter.diff(n,s,r)>=i-1)return r}return tt[t?tt.indexOf(t):0]}(this,l.length,s.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function Ch(e){for(let i=tt.indexOf(e)+1,t=tt.length;i<t;++i)if(Ze[tt[i]].common)return tt[i]}(this._unit):void 0,this.initOffsets(o),t.reverse&&l.reverse(),po(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let o,r,s=0,n=0;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),s=1===t.length?1-o:(this.getDecimalForValue(t[1])-o)/2,r=this.getDecimalForValue(t[t.length-1]),n=1===t.length?r:(r-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;s=X(s,0,a),n=X(n,0,a),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,s=this.min,n=this.max,o=this.options,r=o.time,a=r.unit||fo(r.minUnit,s,n,this._getLabelCapacity(s)),l=A(o.ticks.stepSize,1),c="week"===a&&r.isoWeekday,h=Yt(c)||!0===c,d={};let f,p,u=s;if(h&&(u=+t.startOf(u,"isoWeek",c)),u=+t.startOf(u,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);const g="data"===o.ticks.source&&this.getDataTimestamps();for(f=u,p=0;f<n;f=+t.add(f,l,a),p++)go(d,f,g);return(f===n||"ticks"===o.bounds||1===p)&&go(d,f,g),Object.keys(d).sort(ho).map(m=>+m)}getLabelForValue(t){const n=this.options.time;return this._adapter.format(t,n.tooltipFormat?n.tooltipFormat:n.displayFormats.datetime)}format(t,s){return this._adapter.format(t,s||this.options.time.displayFormats[this._unit])}_tickFormatFunction(t,s,n,o){const r=this.options,a=r.ticks.callback;if(a)return z(a,[t,s,n],this);const l=r.time.displayFormats,c=this._unit,h=this._majorUnit,u=h&&l[h],f=n[s];return this._adapter.format(t,o||(h&&u&&f&&f.major?u:c&&l[c]))}generateTickLabels(t){let s,n,o;for(s=0,n=t.length;s<n;++s)o=t[s],o.label=this._tickFormatFunction(o.value,s,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const s=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((s.start+n)*s.factor)}getValueForPixel(t){const s=this._offsets,n=this.getDecimalForPixel(t)/s.factor-s.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const s=this.options.ticks,n=this.ctx.measureText(t).width,o=lt(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){const s=this.options.time,n=s.displayFormats,o=n[s.unit]||n.millisecond,r=this._tick
1FormatFunction(t,0,po(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 s,n,t=this._cache.data||[];if(t.length)return t;const 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(){const t=this._cache.labels||[];let s,n;if(t.length)return t;const o=this.getLabels();for(s=0,n=o.length;s<n;++s)t.push(uo(this,o[s]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ds(t.sort(ho))}}return(0,k.A)(e,"id","time"),(0,k.A)(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 Qe(e,i,t){let o,r,a,l,s=0,n=e.length-1;t?(i>=e[s].pos&&i<=e[n].pos&&({lo:s,hi:n}=mt(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}=mt(e,"time",i)),({time:o,pos:a}=e[s]),({time:r,pos:l}=e[n]));const c=r-o;return c?a+(l-a)*(i-o)/c:a}class Ui extends Xi{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(i);this._minPos=Qe(t,this.min),this._tableRange=Qe(t,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:t,max:s}=this,n=[],o=[];let 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(){const i=this.min,t=this.max;let s=super.getDataTimestamps();return(!s.includes(i)||!s.length)&&s.splice(0,0,i),(!s.includes(t)||1===s.length)&&s.push(t),s.sort((n,o)=>n-o)}_getTimestampsForTable(){let i=this._cache.all||[];if(i.length)return i;const t=this.getDataTimestamps(),s=this.getLabelTimestamps();return i=t.length&&s.length?this.normalize(t.concat(s)):t.length?t:s,i=this._cache.all=i,i}getDecimalForValue(i){return(Qe(this._table,i)-this._minPos)/this._tableRange}getValueForPixel(i){const t=this._offsets,s=this.getDecimalForPixel(i)/t.factor-t.end;return Qe(this._table,s*this._tableRange+this._minPos,!0)}}(0,k.A)(Ui,"id","timeseries"),(0,k.A)(Ui,"defaults",Xi.defaults),Ei.register(La,cc,nh,Object.freeze({__proto__:null,CategoryScale:lh,LinearScale:ji,LogarithmicScale:$i,RadialLinearScale:_e,TimeScale:Xi,TimeSeriesScale:Ui}));const Oh=Ei;var Th=st(77392),w=st(58527),Lh=st(17849),Rh=st(61142),Eh=st(96542);function Ih(e,i){if(1&e&&(w.qex(0),w.j41(1,"div",10),w.EFF(2),w.k0s(),w.j41(3,"div",11),w.EFF(4),w.k0s(),w.bVm()),2&e){const t=w.XpG();w.R7$(2),w.JRh(t.selectedPoint.y),w.R7$(2),w.JRh(t.selectedPoint.x)}}function Fh(e,i){if(1&e&&(w.j41(0,"div",10),w.EFF(1),w.k0s()),2&e){const t=w.XpG(2);w.R7$(),w.JRh(t.total)}}function zh(e,i){if(1&e&&w.DNE(0,Fh,2,1,"div",12),2&e){const t=w.XpG();w.Y8G("ngIf",t.displayTotal)}}function Bh(e,i){if(1&e&&(w.j41(0,"div",13),w.EFF(1),w.k0s()),2&e){const t=w.XpG();w.R7$(),w.JRh(t.xValues[0])}}function Vh(e,i){if(1&e&&(w.j41(0,"div",14),w.EFF(1),w.k0s()),2&e){const t=w.XpG();w.R7$(),w.JRh(t.xValues[t.xValues.length-1])}}function Wh(e,i){1&e&&(w.j41(0,"div",15),w.nrm(1,"div",16),w.k0s())}let Nh=(()=>{var e;class i{constructor(s,n){this.bytesPipe=s,this.cdRef=n,this.displayTotal=!0,this.chartCreated=new Th.B,this.defaultChartOptions={onHover:this.onHover.bind(this),maintainAspectRatio:!1,scales:{x:{display:!1},y:{display:!1,beginAtZero:!0}},plugins:{legend:{display:!1},filler:{propagate:!1},title:{display:!0},tooltip:{titleMarginBottom:11,boxPadding:10,callbacks:{title:()=>this.selectedPoint.x,label:()=>this.selectedPoint.y>0||"string"==typeof this.selectedPoint.y?this.selectedPoint.y:"0"},displayColors:!1}},interaction:{intersect:!1},responsive:!0},this.xValues=[],this.yValues=[],this.total=0,this.contentChecked=!1,this.viewInitialized=!1}ngAfterViewInit(){this.viewInitialized=!0,this.loadDataIntoChart()}ngAfterViewChecked(){this.cdRef.detectChanges()}processData(s){this.xValues.length=0,this.yValues.length=0,this.total=0,Array.isArray(s)&&s.length>0&&this.xAxisKey&&this.yAxisKey&&(s.forEach(n=>{this.xValues.push(n[this.xAxisKey]),this.yValues.push(n[this.yAxisKey]),this.total+=n[this.yAxisKey]}),this.total=this.processValue(this.yAxisType,this.total))}loadDataIntoChart(){this.data&&this.data.length&&(this.processData(this.data),this.initChart())}ngOnChanges(s){s.data&&(this.chart&&this.chart.destroy(),this.viewInitialized&&this.loadDataIntoChart())}buildLineChart(){const s=document.getElementById(this.chartId);this.chart=new Oh(s,{type:"line",data:{labels:this.xValues,datasets:[{data:this.yValues,borderColor:this.lineColor,fill:!1,pointRadius:.05,pointHitRadius:.1,pointHoverRadius:.1,borderWidth:2,tension:.
11}]},options:this.chartOptions})}initChart(){"line"===this.type&&(this.processData(this.data),this.buildLineChart(),this.chartCreated.next(!0))}processValue(s,n){return"byte"===s?this.bytesPipe.transform(n,2):n}onHover(s,n){n.length&&(this.selectedPoint={x:this.xValues[n[0].index],y:this.processValue(this.yAxisType,this.yValues[n[0].index])})}canvasMouseOut(){this.selectedPoint=null}get chartId(){return"chart-"+this.chartTitle}get chartOptions(){return this.options?this.options:this.defaultChartOptions}}return(e=i).\u0275fac=function(s){return new(s||e)(w.rXU(Lh.c),w.rXU(w.gRc))},e.\u0275cmp=w.VBU({type:e,selectors:[["app-smash-chart"]],inputs:{data:"data",chartTitle:"chartTitle",type:"type",options:"options",xAxisKey:"xAxisKey",xAxisType:"xAxisType",yAxisKey:"yAxisKey",yAxisType:"yAxisType",lineColor:"lineColor",displayTotal:"displayTotal"},features:[w.OA$],decls:14,vars:8,consts:[["showTotal",""],["notReady",""],[1,"title-container"],[1,"chart-title"],[4,"ngIf","ngIfElse"],[1,"canvas-container"],[1,"canvas",3,"mouseout","id"],[1,"abscissa-container"],["class","first-x",4,"ngIf"],["class","last-x",4,"ngIf"],[1,"point-description-y"],[1,"point-description-x"],["class","point-description-y",4,"ngIf"],[1,"first-x"],[1,"last-x"],[1,"container-loading"],[1,"loading-spinner-grey"]],template:function(s,n){if(1&s){const o=w.RV6();w.j41(0,"div",2)(1,"div",3),w.EFF(2),w.nI1(3,"translate"),w.k0s(),w.DNE(4,Ih,5,2,"ng-container",4)(5,zh,1,1,"ng-template",null,0,w.C5r),w.k0s(),w.j41(7,"div",5)(8,"canvas",6),w.bIt("mouseout",function(){return w.eBV(o),w.Njj(n.canvasMouseOut())}),w.k0s()(),w.j41(9,"div",7),w.DNE(10,Bh,2,1,"div",8)(11,Vh,2,1,"div",9),w.k0s(),w.DNE(12,Wh,2,0,"ng-template",null,1,w.C5r)}if(2&s){const o=w.sdS(6);w.R7$(2),w.JRh(w.bMT(3,6,n.chartTitle)),w.R7$(2),w.Y8G("ngIf",null!==(null==n.selectedPoint?null:n.selectedPoint.y)&&null!==(null==n.selectedPoint?null:n.selectedPoint.x))("ngIfElse",o),w.R7$(4),w.Y8G("id",n.chartId),w.R7$(2),w.Y8G("ngIf",n.xValues.length>0),w.R7$(),w.Y8G("ngIf",n.xValues.length>0)}},dependencies:[Rh.bT,Eh.D9],styles:[".abscissa-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.title-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.title-container[_ngcontent-%COMP%]{position:absolute}.chart-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;margin:-2px 0}.point-description-y[_ngcontent-%COMP%]{font-size:2rem;color:#ea5159;margin:-2px 0}.point-description-x[_ngcontent-%COMP%]{font-size:1.5rem;margin:-3px 0;padding-left:.2rem}.canvas-container[_ngcontent-%COMP%]{position:relative;height:25vh;width:20vw}@media (max-width: 900px){.canvas-container[_ngcontent-%COMP%]{width:50vw}}.canvas[_ngcontent-%COMP%]{padding:5.5rem 0 0rem;width:100%}.container-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%;padding-bottom:8rem}.abscissa-container[_ngcontent-%COMP%]{justify-content:space-between;padding-top:.2rem}[_nghost-%COMP%]{height:100%}"]}),i})()}}]);
2//# sourceMappingURL=9050.8f1a83081cf0ec9b.js.map

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.