1 line
69 KiB
JavaScript
1 line
69 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2139],{92616:function(t){t.exports=function(){"use strict";function t(t){return"[object Array]"===Object.prototype.toString.call(t)}function e(t){return t instanceof Function}function n(t){return"[object Object]"===Object.prototype.toString.call(t)&&!e(t)&&t instanceof Object}function r(e,o){var i;for(i in o)"__proto__"!==i&&(n(o[i])||t(o[i])?(n(o[i])&&!n(e[i])&&(e[i]={}),t(o[i])&&!t(e[i])&&(e[i]=[]),r(e[i],o[i])):void 0!==o[i]&&(e[i]=o[i]))}function o(t,e){var n={};return r(n,t),r(n,e),n}var i=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i;function a(t){var e,n,r;for(e=0;e<t.length;e++)for(r=t[e].data,n=0;n<r.length;n++)if(r[n][1]<0)return!0;return!1}function s(t){return""+t}function c(t){return parseFloat(t)}function u(t){var e,n,r,o;if("object"!==typeof t)if("number"===typeof t)t=new Date(1e3*t);else{if(e=(t=s(t)).match(i))return n=parseInt(e[1],10),r=parseInt(e[3],10)-1,o=parseInt(e[5],10),new Date(n,r,o);var a=t.replace(/ /,"T").replace(" ","").replace("UTC","Z");t=new Date(Date.parse(a)||t)}return t}function l(e){if(!t(e)){var n,r=[];for(n in e)e.hasOwnProperty(n)&&r.push([n,e[n]]);e=r}return e}function f(t,e,n,r,i,s,c,u){return function(l,f,h){var p=l.data,d=o({},t);return d=o(d,h||{}),(l.singleSeriesFormat||"legend"in f)&&e(d,f.legend,l.singleSeriesFormat),f.title&&n(d,f.title),"min"in f?r(d,f.min):a(p)||r(d,0),f.max&&i(d,f.max),"stacked"in f&&s(d,f.stacked),f.colors&&(d.colors=f.colors),f.xtitle&&c(d,f.xtitle),f.ytitle&&u(d,f.ytitle),d=o(d,f.library||{})}}function h(t,e){return t[0].getTime()-e[0].getTime()}function p(t,e){return t[0]-e[0]}function d(t,e){return t-e}function g(t){return 0===t.getMilliseconds()&&0===t.getSeconds()}function y(t){return g(t)&&0===t.getMinutes()}function b(t){return y(t)&&0===t.getHours()}function m(t,e){return b(t)&&t.getDay()===e}function x(t){return b(t)&&1===t.getDate()}function v(t){return x(t)&&0===t.getMonth()}function w(t){return!isNaN(u(t))&&s(t).length>=6}function M(t){return"number"===typeof t}var z=["bytes","KB","MB","GB","TB","PB","EB"];function _(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var c,u=r?n.byteScale:e;u>=0x1000000000000000?(e/=0x1000000000000000,c=6):u>=0x4000000000000?(e/=0x4000000000000,c=5):u>=1099511627776?(e/=1099511627776,c=4):u>=1073741824?(e/=1073741824,c=3):u>=1048576?(e/=1048576,c=2):u>=1024?(e/=1024,c=1):c=0,void 0===i&&void 0===a&&(e>=1023.5&&c<z.length-1&&(e=1,c+=1),i=e>=1e3?4:3),o=" "+z[c]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0!==i&&(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a))if(a<0){var l=Math.pow(10,-1*a);e=parseInt((1*e/l).toFixed(0))*l}else e=e.toFixed(a),n.zeros||(e=parseFloat(e));if(n.thousands||n.decimal){var f=(e=s(e)).split(".");e=f[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),f.length>1&&(e+=(n.decimal||".")+f[1])}return t+e+o}function C(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}function k(t){var e,n,r;for(e=0;e<t.length;e++)for(r=t[e].data,n=0;n<r.length;n++)if(0!=r[n][1])return!1;return!0}var A={maintainAspectRatio:!1,animation:!1,plugins:{legend:{},tooltip:{displayColors:!1,callbacks:{}},title:{font:{size:20},color:"#333"}},interaction:{}},O={scales:{y:{ticks:{maxTicksLimit:4},title:{font:{size:16},color:"#333"},grid:{}},x:{grid:{drawOnChartArea:!1},title:{font:{size:16},color:"#333"},time:{},ticks:{}}}},T=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],S=function(t,e,n){void 0!==e?(t.plugins.legend.display=!!e,e&&!0!==e&&(t.plugins.legend.position=e)):n&&(t.plugins.legend.display=!1)},E=function(t,e){t.plugins.title.display=!0,t.plugins.title.text=e},P=function(t,e){null!==e&&(t.scales.y.min=c(e))},D=function(t,e){t.scales.y.max=c(e)},R=function(t,e){null!==e&&(t.scales.x.min=c(e))},j=function(t,e){t.scales.x.max=c(e)},L=function(t,e){t.scales.x.stacked=!!e,t.scales.y.stacked=!!e},F=function(t,e){t.scales.x.title.display=!0,t.scales.x.title.text=e},I=function(t,e){t.scales.y.title.display=!0,t.scales.y.title.text=e},B=function(t,e){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+e+")":t},N=function(t){return null!=t},H=function(t,e,n){var r=Math.ceil(t.element.offsetWidth/4/e.labels.length);r>25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=s(this.getLabelForValue(t))).length>r?t.substring(0,r-2)+"...":t})},W=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;s<i.length;s++)for(var c=i[s],u=0;u<c.data.length;u++)c.data[u][1]>a&&(a=c.data[u][1]);for(var l=1;a>=1024;)l*=1024,a/=1024;o.byteScale=l}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return _("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label)if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label,r=": ";return t(n)?(n=n.slice())[0]+=r:n+=r,_(n,e.parsed,o)};else{var h="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[h]){var e=t.dataset.label||"";return e&&(e+=": "),_(e,t.parsed[h],o)}}}},Y=f(o(A,O),S,E,P,D,L,F,I),U=function(e,n,r){var i,a=[],s=[],l=e.options.colors||T,f=!0,h=!0,p=!0,w=!0,M=!0,z=!0,_=e.data,k=0;if("bubble"===r)for(var A=0;A<_.length;A++)for(var O=_[A],S=0;S<O.data.length;S++)O.data[S][2]>k&&(k=O.data[S][2]);var E,P,D,R,j,L,F,I=[],H=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var W,Y,U=[];for(E=0;E<_.length;E++)for(D=_[E],P=0;P<D.data.length;P++)R=D.data[P],I[j="datetime"==e.xtype?R[0].getTime():R[0]]||(I[j]=new Array(_.length)),I[j][E]=c(R[1]),-1===U.indexOf(j)&&U.push(j);for("datetime"!==e.xtype&&"number"!==e.xtype||U.sort(d),P=0;P<_.length;P++)H.push([]);for(Y=0;Y<U.length;Y++)for(E=U[Y],"datetime"===e.xtype?(W=new Date(c(E)),f=f&&b(W),i||(i=W.getDay()),h=h&&m(W,i),p=p&&x(W),w=w&&v(W),M=M&&y(W),z=z&&g(W)):W=E,s.push(W),P=0;P<_.length;P++)H[P].push(void 0===I[E][P]?null:I[E][P])}else for(var V=0;V<_.length;V++){for(var Q=_[V],X=[],$=0;$<Q.data.length;$++){var J={x:c(Q.data[$][0]),y:c(Q.data[$][1])};"bubble"===r&&(J.r=20*c(Q.data[$][2])/k,J.v=Q.data[$][2]),X.push(J)}H.push(X)}for(E=0;E<_.length;E++){if(D=_[E],!e.options.colors||!e.singleSeriesFormat||"bar"!==r&&"column"!==r||D.color||!t(e.options.colors)||t(e.options.colors[0]))L=D.color||l[E],F="line"!==r?B(L,.5):L;else{L=l,F=[];for(var Z=0;Z<l.length;Z++)F[Z]=B(L[Z],.5)}var q={label:D.name||"",data:H[E],fill:"area"===r,borderColor:L,backgroundColor:F,borderWidth:2},K="line"===r||"area"===r||"scatter"===r||"bubble"===r;K&&(q.pointBackgroundColor=L,q.pointHoverBackgroundColor=L,q.pointHitRadius=50),"bubble"===r&&(q.pointBackgroundColor=F,q.pointHoverBackgroundColor=F,q.pointHoverBorderWidth=2),D.stack&&(q.stack=D.stack),!1===C(e,D,"curve")?q.tension=0:K&&(q.tension=.4),!1===C(e,D,"points")&&(q.pointRadius=0,q.pointHoverRadius=0),q=o(q,e.options.dataset||{}),q=o(q,D.library||{}),q=o(q,D.dataset||{}),a.push(q)}var G=e.options.xmin,tt=e.options.xmax;if("datetime"===e.xtype?(N(G)&&(n.scales.x.min=u(G).getTime()),N(tt)&&(n.scales.x.max=u(tt).getTime())):"number"===e.xtype&&(N(G)&&(n.scales.x.min=G),N(tt)&&(n.scales.x.max=tt)),"datetime"===e.xtype&&0===s.length&&(N(G)&&s.push(u(G)),N(tt)&&s.push(u(tt)),f=!1,h=!1,p=!1,w=!1,M=!1,z=!1),"datetime"===e.xtype&&s.length>0){var et=(N(G)?u(G):s[0]).getTime(),nt=(N(tt)?u(tt):s[0]).getTime();for(E=1;E<s.length;E++){var rt=s[E].getTime();rt<et&&(et=rt),rt>nt&&(nt=rt)}var ot,it=(nt-et)/864e5;if(!n.scales.x.time.unit&&(w||it>3650?(n.scales.x.time.unit="year",ot=365):p||it>300?(n.scales.x.time.unit="month",ot=30):f||it>10?(n.scales.x.time.unit="day",ot=1):M||it>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",ot=1/24):z&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",ot=1/24/60),ot&&it>0)){var at=e.element.offsetWidth;if(at>0){var st=Math.ceil(it/ot/(at/100));h&&1===ot&&(st=7*Math.ceil(st/7)),n.scales.x.time.stepSize=st}}n.scales.x.time.tooltipFormat||(f?n.scales.x.time.tooltipFormat="PP":M?n.scales.x.time.tooltipFormat="MMM d, h a":z&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:s,datasets:a}},V=function(t){this.name="chartjs",this.library=t};V.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&k(t.data)&&(n.max=1);var r=Y(t,o(n,t.options));W(t,r,e);var i=U(t,r,e||"line");"number"===t.xtype?(r.scales.x.type=r.scales.x.type||"linear",r.scales.x.position=r.scales.x.position||"bottom"):r.scales.x.type="string"===t.xtype?"category":"time",this.drawChart(t,"line",i,r)},V.prototype.renderPieChart=function(t){var e=o({},A);t.options.donut&&(e.cutout="50%"),"legend"in t.options&&S(e,t.options.legend),t.options.title&&E(e,t.options.title),e=o(e,t.options.library||{}),W(t,e,"pie");for(var n=[],r=[],i=0;i<t.data.length;i++){var a=t.data[i];n.push(a[0]),r.push(a[1])}var s={data:r,backgroundColor:t.options.colors||T},c={labels:n,datasets:[s=o(s,t.options.dataset||{})]};this.drawChart(t,"pie",c,e)},V.prototype.renderColumnChart=function(t,e){var n;if("bar"===e){var r=o(A,O);r.indexAxis="y",r.scales.x.grid.drawOnChartArea=!0,r.scales.y.grid.drawOnChartArea=!1,delete r.scales.y.ticks.maxTicksLimit,n=f(r,S,E,R,j,L,F,I)(t,t.options)}else n=Y(t,t.options);W(t,n,e);var i=U(t,n,"column");"bar"!==e&&H(t,i,n),this.drawChart(t,"bar",i,n)},V.prototype.renderAreaChart=function(t){this.renderLineChart(t,"area")},V.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},V.prototype.renderScatterChart=function(t,e){e=e||"scatter";var n=Y(t,t.options);W(t,n,e),"showLine"in n||(n.showLine=!1);var r=U(t,n,e);n.scales.x.type=n.scales.x.type||"linear",n.scales.x.position=n.scales.x.position||"bottom","mode"in n.interaction||(n.interaction.mode="nearest"),this.drawChart(t,e,r,n)},V.prototype.renderBubbleChart=function(t){this.renderScatterChart(t,"bubble")},V.prototype.destroy=function(t){t.chart&&t.chart.destroy()},V.prototype.drawChart=function(t,e,n,r){if(this.destroy(t),!t.destroyed){var o={type:e,data:n,options:r};t.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(o)+");"),t.element.innerHTML="<canvas></canvas>";var i=t.element.getElementsByTagName("CANVAS")[0];t.chart=new this.library(i,o)}};var Q={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}},time:{useUTC:!1}},X=function(t,e,n){void 0!==e?(t.legend.enabled=!!e,e&&!0!==e&&("top"===e||"bottom"===e?t.legend.verticalAlign=e:(t.legend.layout="vertical",t.legend.verticalAlign="middle",t.legend.align=e))):n&&(t.legend.enabled=!1)},$=function(t,e){t.title.text=e},J=f(Q,X,$,(function(t,e){t.yAxis.min=e}),(function(t,e){t.yAxis.max=e}),(function(t,e){var n=e?!0===e?"normal":e:null;t.plotOptions.series.stacking=n,t.plotOptions.area.stacking=n,t.plotOptions.areaspline.stacking=n}),(function(t,e){t.xAxis.title.text=e}),(function(t,e){t.yAxis.title.text=e})),Z=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};"pie"===r||t(n.yAxis)||n.yAxis.labels.formatter||(n.yAxis.labels.formatter=function(){return _("",this.value,o)}),n.tooltip.pointFormatter||n.tooltip.pointFormat||(n.tooltip.pointFormatter=function(){return'<span style="color:'+this.color+'">\u25cf</span> '+_(this.series.name+": <b>",this.y,o)+"</b><br/>"})},q=function(t){this.name="highcharts",this.library=t};q.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=J(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),Z(t,a,e);var s=t.data;for(o=0;o<s.length;o++){if(s[o].name=s[o].name||"Value",r=s[o].data,"datetime"===t.xtype)for(i=0;i<r.length;i++)r[i][0]=r[i][0].getTime();s[o].marker={symbol:"circle"},!1===t.options.points&&(s[o].marker.enabled=!1)}this.drawChart(t,s,a)},q.prototype.renderScatterChart=function(t){var e=J(t,t.options,{});e.chart.type="scatter",this.drawChart(t,t.data,e)},q.prototype.renderPieChart=function(t){var e=o(Q,{});t.options.colors&&(e.colors=t.options.colors),t.options.donut&&(e.plotOptions={pie:{innerSize:"50%"}}),"legend"in t.options&&X(e,t.options.legend),t.options.title&&$(e,t.options.title);var n=o(e,t.options.library||{});Z(t,n,"pie");var r=[{type:"pie",name:t.options.label||"Value",data:t.data}];this.drawChart(t,r,n)},q.prototype.renderColumnChart=function(t,e){e=e||"column";var n,r,o,i,a=t.data,s=J(t,t.options),c=[],u=[];for(s.chart.type=e,Z(t,s,e),n=0;n<a.length;n++)for(o=a[n],r=0;r<o.data.length;r++)c[(i=o.data[r])[0]]||(c[i[0]]=new Array(a.length),u.push(i[0])),c[i[0]][n]=i[1];"number"===t.xtype&&u.sort(d),s.xAxis.categories=u;var l,f=[];for(n=0;n<a.length;n++){for(i=[],r=0;r<u.length;r++)i.push(c[u[r]][n]||0);l={name:a[n].name||"Value",data:i},a[n].stack&&(l.stack=a[n].stack),f.push(l)}this.drawChart(t,f,s)},q.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},q.prototype.renderAreaChart=function(t){this.renderLineChart(t,"areaspline")},q.prototype.destroy=function(t){t.chart&&t.chart.destroy()},q.prototype.drawChart=function(t,e,n){this.destroy(t),t.destroyed||(n.chart.renderTo=t.element.id,n.series=e,t.options.code&&window.console.log("new Highcharts.Chart("+JSON.stringify(n)+");"),t.chart=new this.library.Chart(n))};var K={},G=[],tt={chartArea:{},fontName:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif",pointSize:6,legend:{textStyle:{fontSize:12,color:"#444"},alignment:"center",position:"right"},curveType:"function",hAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},gridlines:{color:"transparent"},baselineColor:"#ccc",viewWindow:{}},vAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},baselineColor:"#ccc",viewWindow:{}},tooltip:{textStyle:{color:"#666",fontSize:12}}},et=function(t,e,n){var r;void 0!==e?(r=e?!0===e?"right":e:"none",t.legend.position=r):n&&(t.legend.position="none")},nt=function(t,e){t.title=e,t.titleTextStyle={color:"#333",fontSize:"20px"}},rt=function(t,e){t.hAxis.viewWindow.min=e},ot=function(t,e){t.hAxis.viewWindow.max=e},it=function(t,e){t.isStacked=e||!1},at=function(t,e){t.hAxis.title=e,t.hAxis.titleTextStyle.italic=!1},st=function(t,e){t.vAxis.title=e,t.vAxis.titleTextStyle.italic=!1},ct=f(tt,et,nt,(function(t,e){t.vAxis.viewWindow.min=e}),(function(t,e){t.vAxis.viewWindow.max=e}),it,at,st),ut=function(t){window.attachEvent?window.attachEvent("onresize",t):window.addEventListener&&window.addEventListener("resize",t,!0),t()},lt=function(t){this.name="google",this.library=t};function ft(t,e){var n,r,o=[];if(r="number"===e?c:"datetime"===e?u:s,"bubble"===e)for(n=0;n<t.length;n++)o.push([c(t[n][0]),c(t[n][1]),c(t[n][2])]);else for(n=0;n<t.length;n++)o.push([r(t[n][0]),c(t[n][1])]);return"datetime"===e?o.sort(h):"number"===e&&o.sort(p),o}function ht(t,e,n){return bt(t)?!n.xmin&&!n.xmax||n.xmin&&!w(n.xmin)||n.xmax&&!w(n.xmax)?"number":"datetime":pt(t,M)?"number":!e&&pt(t,w)?"datetime":"string"}function pt(t,e){var n,r,o;for(n=0;n<t.length;n++)for(o=l(t[n].data),r=0;r<o.length;r++)if(!e(o[r][0]))return!1;return!0}function dt(t){var e,n,r=[];for(e=0;e<t.length;e++){var o={};for(n in t[e])t[e].hasOwnProperty(n)&&(o[n]=t[e][n]);r.push(o)}return r}function gt(e,n,r){var o,i=e.options,a=e.rawData;for(e.singleSeriesFormat=!t(a)||"object"!==typeof a[0]||t(a[0]),e.singleSeriesFormat&&(a=[{name:i.label,data:a}]),a=dt(a),o=0;o<a.length;o++)a[o].data=l(a[o].data);for(e.xtype=n||(i.discrete?"string":ht(a,r,i)),o=0;o<a.length;o++)a[o].data=ft(a[o].data,e.xtype);return a}function yt(t){var e,n=l(t.rawData);for(e=0;e<n.length;e++)n[e]=[s(n[e][0]),c(n[e][1])];return n}function bt(t,e){if("PieChart"===e||"GeoChart"===e||"Timeline"===e)return 0===t.length;for(var n=0;n<t.length;n++)if(t[n].data.length>0)return!1;return!0}function mt(t){var e=t.element,n=document.createElement("a"),r=t.options.download;!0===r?r={}:"string"===typeof r&&(r={filename:r}),n.download=r.filename||"chart.png",n.style.position="absolute",n.style.top="20px",n.style.right="20px",n.style.zIndex=1e3,n.style.lineHeight="20px",n.target="_blank";var o=document.createElement("img");o.alt="Download",o.style.border="none",o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",n.appendChild(o),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=xt(e,"mouseover",(function(o){var i=o.relatedTarget;i&&(i===this||wt(this,i))||!t.options.download||(n.href=t.toImage(r),e.appendChild(n))})),t.__leaveEvent=xt(e,"mouseout",(function(t){var e=t.relatedTarget;e&&(e===this||wt(this,e))||n.parentNode&&n.parentNode.removeChild(n)}))}function xt(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function vt(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function wt(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}lt.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)}))},lt.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&et(n,t.options.legend),t.options.title&&nt(n,t.options.title);var r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)}))},lt.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=ct(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)}))},lt.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={hAxis:{gridlines:{color:"#ccc"}}},r=f(tt,et,nt,rt,ot,it,at,st)(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",o,r)}))},lt.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={isStacked:!0,pointSize:0,areaOpacity:.5},r=ct(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",o,r)}))},lt.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",(function(){var n={legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}},r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number",t.options.label||"Value"),i.addRows(t.data),e.drawChart(t,"GeoChart",i,r)}))},lt.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n,r,o,i,a={},s=ct(t,t.options,a),c=t.data,u=[];for(n=0;n<c.length;n++)for(c[n].name=c[n].name||"Value",i=c[n].data,r=0;r<i.length;r++){var l=new Array(c.length+1);l[0]=i[r][0],l[n+1]=i[r][1],u.push(l)}for((o=new e.library.visualization.DataTable).addColumn("number",""),n=0;n<c.length;n++)o.addColumn("number",c[n].name);o.addRows(u),e.drawChart(t,"ScatterChart",o,s)}))},lt.prototype.renderTimeline=function(t){var e=this;this.waitForLoaded(t,"timeline",(function(){var n={legend:"none"};t.options.colors&&(n.colors=t.options.colors);var r=o(o(tt,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn({type:"string",id:"Name"}),i.addColumn({type:"date",id:"Start"}),i.addColumn({type:"date",id:"End"}),i.addRows(t.data),t.element.style.lineHeight="normal",e.drawChart(t,"Timeline",i,r)}))},lt.prototype.destroy=function(t){t.chart&&t.chart.clearChart()},lt.prototype.drawChart=function(t,e,n,r){this.destroy(t),t.destroyed||(t.options.code&&window.console.log("var data = new google.visualization.DataTable("+n.toJSON()+");\nvar chart = new google.visualization."+e+"(element);\nchart.draw(data, "+JSON.stringify(r)+");"),t.chart=new this.library.visualization[e](t.element),ut((function(){t.chart.draw(n,r)})))},lt.prototype.waitForLoaded=function(t,e,n){var r=this;if(n||(n=e,e="corechart"),G.push({pack:e,callback:n}),K[e])this.runCallbacks();else{K[e]=!0;var o={packages:[e],callback:function(){r.runCallbacks()}},i=t.__config();i.language&&(o.language=i.language),"geochart"===e&&i.mapsApiKey&&(o.mapsApiKey=i.mapsApiKey),this.library.charts.load("current",o)}},lt.prototype.runCallbacks=function(){for(var t,e=0;e<G.length;e++)t=G[e],this.library.visualization&&("corechart"===t.pack&&this.library.visualization.LineChart||"timeline"===t.pack&&this.library.visualization.Timeline||"geochart"===t.pack&&this.library.visualization.GeoChart)&&(t.callback(),G.splice(e,1),e--)},lt.prototype.createDataTable=function(t,e){var n,r,o,i,a,u=[],l=[];for(n=0;n<t.length;n++)for(o=t[n],t[n].name=t[n].name||"Value",r=0;r<o.data.length;r++)i=o.data[r],u[a="datetime"===e?i[0].getTime():i[0]]||(u[a]=new Array(t.length),l.push(a)),u[a][n]=c(i[1]);var f,d=[],g=!0;for(r=0;r<l.length;r++)n=l[r],"datetime"===e?(f=new Date(c(n)),g=g&&b(f)):f="number"===e?c(n):n,d.push([f].concat(u[n]));if("datetime"===e)d.sort(h);else if("number"===e){for(d.sort(p),n=0;n<d.length;n++)d[n][0]=s(d[n][0]);e="string"}var y=new this.library.visualization.DataTable;for(e="datetime"===e&&g?"date":e,y.addColumn(e,""),n=0;n<t.length;n++)y.addColumn("number",t[n].name);return y.addRows(d),y};var Mt=[],zt=0,_t=4;function Ct(t,e,n){Mt.push([t,e,n]),kt()}function kt(){if(zt<_t){var t=Mt.shift();t&&(zt++,Ot(t[0],t[1],t[2]),kt())}}function At(){zt--,kt()}function Ot(t,e,n){Tt(t,e,(function(t,e,r){var o="string"===typeof r?r:r.message;n(o)}))}function Tt(t,e,n){var r=window.jQuery||window.Zepto||window.$;if(r&&r.ajax)r.ajax({dataType:"json",url:t,success:e,error:n,complete:At});else{var o=new XMLHttpRequest;o.open("GET",t,!0),o.setRequestHeader("Content-Type","application/json"),o.onload=function(){At(),200===o.status?e(JSON.parse(o.responseText),o.statusText,o):n(o,"error",o.statusText)},o.send()}}var St={},Et=[];function Pt(t,e){document.body.innerText?t.innerText=e:t.textContent=e}function Dt(t,e,n){n||(e="Error Loading Chart: "+e),Pt(t,e),t.style.color="#ff0000"}function Rt(t){try{t.__render()}catch(e){throw Dt(t.element,e.message),e}}function jt(t,e,n){if(n&&t.options.loading&&("string"===typeof e||"function"===typeof e)&&Pt(t.element,t.options.loading),"string"===typeof e)Ct(e,(function(e){t.rawData=e,Rt(t)}),(function(e){Dt(t.element,e)}));else if("function"===typeof e)try{e((function(e){t.rawData=e,Rt(t)}),(function(e){Dt(t.element,e,!0)}))}catch(r){Dt(t.element,r,!0)}else t.rawData=e,Rt(t)}function Lt(t){if(t){if("Highcharts"===t.product)return q;if(t.charts)return lt;if(e(t))return V}throw new Error("Unknown adapter")}function Ft(t){var e=new(Lt(t))(t);-1===Et.indexOf(e)&&Et.push(e)}function It(){"Chart"in window&&Ft(window.Chart),"Highcharts"in window&&Ft(window.Highcharts),window.google&&window.google.charts&&Ft(window.google)}function Bt(t,e){if(bt(e.data,t)){var n=e.options.empty||e.options.messages&&e.options.messages.empty||"No data";Pt(e.element,n)}else Nt(t,e),e.options.download&&!e.__downloadAttached&&"chartjs"===e.adapter&&mt(e)}function Nt(t,n){var r,o,i,a;for(i="render"+t,a=n.options.adapter,It(),r=0;r<Et.length;r++)if(o=Et[r],(!a||a===o.name)&&e(o[i]))return n.adapter=o.name,n.__adapterObject=o,o[i](n);throw Et.length>0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}var Ht=function(t,e,n){var r;if("string"===typeof t&&(r=t,!(t=document.getElementById(t))))throw new Error("No element with id "+r);this.element=t,this.options=o(qt.options,n||{}),this.dataSource=e,qt.charts[t.id]=this,jt(this,e,!0),this.options.refresh&&this.startRefresh()};Ht.prototype.getElement=function(){return this.element},Ht.prototype.getDataSource=function(){return this.dataSource},Ht.prototype.getData=function(){return this.data},Ht.prototype.getOptions=function(){return this.options},Ht.prototype.getChartObject=function(){return this.chart},Ht.prototype.getAdapter=function(){return this.adapter},Ht.prototype.updateData=function(t,e){this.dataSource=t,e&&this.__updateOptions(e),jt(this,t,!0)},Ht.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},Ht.prototype.redraw=function(){jt(this,this.rawData)},Ht.prototype.refreshData=function(){if("string"===typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";jt(this,this.dataSource+t+"_="+(new Date).getTime())}else"function"===typeof this.dataSource&&jt(this,this.dataSource)},Ht.prototype.startRefresh=function(){var t=this,e=this.options.refresh;if(e&&"string"!==typeof this.dataSource&&"function"!==typeof this.dataSource)throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(!e)throw new Error("No refresh interval");this.intervalId=setInterval((function(){t.refreshData()}),1e3*e)}},Ht.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},Ht.prototype.toImage=function(t){if("chartjs"===this.adapter){if(t&&t.background&&"transparent"!==t.background){var e=this.chart.canvas,n=this.chart.ctx,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.canvas.width,r.height=n.canvas.height,o.fillStyle=t.background,o.fillRect(0,0,r.width,r.height),o.drawImage(e,0,0),r.toDataURL("image/png")}return this.chart.toBase64Image()}throw new Error("Feature only available for Chart.js")},Ht.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&vt(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&vt(this.element,"mouseout",this.__leaveEvent)},Ht.prototype.__updateOptions=function(t){var e=t.refresh&&t.refresh!==this.options.refresh;this.options=o(qt.options,t),e&&(this.stopRefresh(),this.startRefresh())},Ht.prototype.__render=function(){this.data=this.__processData(),Bt(this.__chartName(),this)},Ht.prototype.__config=function(){return St};var Wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"LineChart"},e}(Ht),Yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"PieChart"},e}(Ht),Ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(Ht),Vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(Ht),Qt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(Ht),Xt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return yt(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(Ht),$t=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(Ht),Jt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return gt(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(Ht),Zt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;t<e.length;t++)e[t][1]=u(e[t][1]),e[t][2]=u(e[t][2]);return e},e.prototype.__chartName=function(){return"Timeline"},e}(Ht),qt={LineChart:Wt,PieChart:Yt,ColumnChart:Ut,BarChart:Vt,AreaChart:Qt,GeoChart:Xt,ScatterChart:$t,BubbleChart:Jt,Timeline:Zt,charts:{},configure:function(t){for(var e in t)t.hasOwnProperty(e)&&(St[e]=t[e])},setDefaultOptions:function(t){qt.options=t},eachChart:function(t){for(var e in qt.charts)qt.charts.hasOwnProperty(e)&&t(qt.charts[e])},destroyAll:function(){for(var t in qt.charts)qt.charts.hasOwnProperty(t)&&(qt.charts[t].destroy(),delete qt.charts[t])},config:St,options:{},adapters:Et,addAdapter:Ft,use:function(t){return Ft(t),qt}};return"undefined"===typeof window||window.Chartkick||(window.Chartkick=qt,document.addEventListener("turbolinks:before-render",(function(){!1!==St.autoDestroy&&qt.destroyAll()})),document.addEventListener("turbo:before-render",(function(){!1!==St.autoDestroy&&qt.destroyAll()})),setTimeout((function(){window.dispatchEvent(new Event("chartkick:load"))}),0)),qt.default=qt,qt}()},60727:function(t,e,n){"use strict";n.d(e,{wW:function(){return u}});var r=n(67294),o=n(92616),i=n.n(o);var a=1,s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.newChartType=function(t){var e=t.data,n={};for(var r in t)t.hasOwnProperty(r)&&"data"!==r&&"id"!==r&&"height"!==r&&"width"!==r&&(n[r]=t[r]);this.element&&(this.chart?this.chart.updateData(e,n):this.chart=new t.chartType(this.element,e,n))},e.prototype.componentDidMount=function(){this.newChartType(this.props)},e.prototype.componentDidUpdate=function(){this.newChartType(this.props)},e.prototype.componentWillUnmount=function(){this.chart&&(this.chart.destroy(),this.chart=void 0)},e.prototype.render=function(){var t=this,e=this.props,n={height:e.height||"300px",lineHeight:e.height||"300px",width:e.width||"100%",textAlign:"center",color:"#999",fontSize:"14px",fontFamily:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif"};this.chartId=e.id||this.chartId||"chart-"+a++;var o=void 0!==e.loading?e.loading:"Loading...";if("string"!==typeof o)throw new Error("loading must be a string");return r.createElement("div",{id:this.chartId,style:n,ref:function(e){return t.element=e}},o)},e}(r.Component),c=function(t){var e=function(e){var n=e.innerRef,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}(e,["innerRef"]);return o.chartType=t,o.ref=n,r.createElement(s,o)};return e.displayName=t.name,e},u=c(i().LineChart);c(i().PieChart),c(i().ColumnChart),c(i().BarChart),c(i().AreaChart),c(i().ScatterChart),c(i().GeoChart),c(i().Timeline)},29217:function(t,e,n){"use strict";var r=n(66775);r.kL.register(...r.zX),e.Z=r.kL},2454:function(t,e,n){"use strict";function r(){}n.d(e,{$:function(){return ye},A:function(){return N},B:function(){return u},C:function(){return p},D:function(){return De},E:function(){return G},F:function(){return Q},G:function(){return le},H:function(){return R},I:function(){return tt},J:function(){return he},K:function(){return Se},L:function(){return be},M:function(){return we},N:function(){return me},O:function(){return Ee},P:function(){return T},Q:function(){return d},R:function(){return pt},S:function(){return dt},T:function(){return S},U:function(){return ie},V:function(){return x},W:function(){return _},X:function(){return un},Y:function(){return ot},Z:function(){return rt},_:function(){return ut},a:function(){return Pe},a0:function(){return $},a1:function(){return fn},a2:function(){return rn},a3:function(){return dn},a4:function(){return ft},a5:function(){return pn},a6:function(){return nn},a7:function(){return ae},a8:function(){return k},a9:function(){return Le},aA:function(){return vn},aB:function(){return wn},aC:function(){return gt},aD:function(){return Mn},aE:function(){return ge},aF:function(){return r},aG:function(){return J},aH:function(){return U},aI:function(){return B},aJ:function(){return Y},aK:function(){return W},aL:function(){return X},aM:function(){return fe},aN:function(){return it},aO:function(){return nt},aa:function(){return je},ab:function(){return Fe},ac:function(){return v},ad:function(){return o},ae:function(){return ht},af:function(){return hn},ag:function(){return pe},ah:function(){return A},ai:function(){return g},aj:function(){return O},ak:function(){return et},al:function(){return Ae},am:function(){return en},an:function(){return An},ao:function(){return kn},ap:function(){return yn},aq:function(){return bn},ar:function(){return gn},as:function(){return xe},at:function(){return ve},au:function(){return de},av:function(){return ze},aw:function(){return Oe},ax:function(){return Te},ay:function(){return Cn},az:function(){return q},b:function(){return a},c:function(){return re},d:function(){return ue},e:function(){return wt},f:function(){return z},g:function(){return c},h:function(){return Re},i:function(){return s},j:function(){return C},k:function(){return i},l:function(){return st},m:function(){return f},n:function(){return h},o:function(){return xn},p:function(){return K},q:function(){return yt},r:function(){return lt},s:function(){return I},t:function(){return V},u:function(){return ct},v:function(){return l},w:function(){return bt},x:function(){return H},y:function(){return $e},z:function(){return F}});const o=function(){let t=0;return function(){return t++}}();function i(t){return null===t||"undefined"===typeof t}function a(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function s(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const c=t=>("number"===typeof t||t instanceof Number)&&isFinite(+t);function u(t,e){return c(t)?t:e}function l(t,e){return"undefined"===typeof t?e:t}const f=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,h=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function p(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function d(t,e,n,r){let o,i,c;if(a(t))if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<i;o++)e.call(n,t[o],o);else if(s(t))for(c=Object.keys(t),i=c.length,o=0;o<i;o++)e.call(n,t[c[o]],c[o])}function g(t,e){let n,r,o,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(o=t[n],i=e[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function y(t){if(a(t))return t.map(y);if(s(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let o=0;for(;o<r;++o)e[n[o]]=y(t[n[o]]);return e}return t}function b(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function m(t,e,n,r){if(!b(t))return;const o=e[t],i=n[t];s(o)&&s(i)?x(o,i,r):e[t]=y(i)}function x(t,e,n){const r=a(e)?e:[e],o=r.length;if(!s(t))return t;const i=(n=n||{}).merger||m;for(let a=0;a<o;++a){if(!s(e=r[a]))continue;const o=Object.keys(e);for(let r=0,a=o.length;r<a;++r)i(o[r],t,e,n)}return t}function v(t,e){return x(t,e,{merger:w})}function w(t,e,n){if(!b(t))return;const r=e[t],o=n[t];s(r)&&s(o)?v(r,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=y(o))}const M={"":t=>t,x:t=>t.x,y:t=>t.y};function z(t,e){const n=M[e]||(M[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const o of e)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function _(t){return t.charAt(0).toUpperCase()+t.slice(1)}const C=t=>"undefined"!==typeof t,k=t=>"function"===typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function O(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const T=Math.PI,S=2*T,E=S+T,P=Number.POSITIVE_INFINITY,D=T/180,R=T/2,j=T/4,L=2*T/3,F=Math.log10,I=Math.sign;function B(t){const e=Math.round(t);t=W(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(F(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function N(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function H(t){return!isNaN(parseFloat(t))&&isFinite(t)}function W(t,e,n){return Math.abs(t-e)<n}function Y(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function U(t,e,n){let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function V(t){return t*(T/180)}function Q(t){return t*(180/T)}function X(t){if(!c(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function $(t,e){const n=e.x-t.x,r=e.y-t.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*T&&(i+=S),{angle:i,distance:o}}function J(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Z(t,e){return(t-e+E)%S-T}function q(t){return(t%S+S)%S}function K(t,e,n,r){const o=q(t),i=q(e),a=q(n),s=q(i-o),c=q(a-o),u=q(o-i),l=q(o-a);return o===i||o===a||r&&i===a||s>c&&u<l}function G(t,e,n){return Math.max(e,Math.min(n,t))}function tt(t){return G(t,-32768,32767)}function et(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function nt(t,e,n){n=n||(n=>t[n]<e);let r,o=t.length-1,i=0;for(;o-i>1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const rt=(t,e,n,r)=>nt(t,n,r?r=>t[r][e]<=n:r=>t[r][e]<n),ot=(t,e,n)=>nt(t,n,(r=>t[r][e]>=n));function it(t,e,n){let r=0,o=t.length;for(;r<o&&t[r]<e;)r++;for(;o>r&&t[o-1]>n;)o--;return r>0||o<t.length?t.slice(r,o):t}const at=["push","pop","shift","splice","unshift"];function st(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),at.forEach((e=>{const n="_onData"+_(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function ct(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(at.forEach((e=>{delete t[e]})),delete t._chartjs)}function ut(t){const e=new Set;let n,r;for(n=0,r=t.length;n<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}const lt="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function ft(t,e,n){const r=n||(t=>Array.prototype.slice.call(t));let o=!1,i=[];return function(...n){i=r(n),o||(o=!0,lt.call(window,(()=>{o=!1,t.apply(e,i)})))}}function ht(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const pt=t=>"start"===t?"left":"end"===t?"right":"center",dt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,gt=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function yt(t,e,n){const r=e.length;let o=0,i=r;if(t._sorted){const{iScale:a,_parsed:s}=t,c=a.axis,{min:u,max:l,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(o=G(Math.min(rt(s,a.axis,u).lo,n?r:rt(e,c,a.getPixelForValue(u)).lo),0,r-1)),i=h?G(Math.max(rt(s,a.axis,l,!0).hi+1,n?0:rt(e,c,a.getPixelForValue(l),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function bt(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=o,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}const mt=t=>0===t||1===t,xt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*S/n),vt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*S/n)+1,wt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*R),easeOutSine:t=>Math.sin(t*R),easeInOutSine:t=>-.5*(Math.cos(T*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>mt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>mt(t)?t:xt(t,.075,.3),easeOutElastic:t=>mt(t)?t:vt(t,.075,.3),easeInOutElastic(t){const e=.1125;return mt(t)?t:t<.5?.5*xt(2*t,e,.45):.5+.5*vt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-wt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*wt.easeInBounce(2*t):.5*wt.easeOutBounce(2*t-1)+.5};function Mt(t){return t+.5|0}const zt=(t,e,n)=>Math.max(Math.min(t,n),e);function _t(t){return zt(Mt(2.55*t),0,255)}function Ct(t){return zt(Mt(255*t),0,255)}function kt(t){return zt(Mt(t/2.55)/100,0,1)}function At(t){return zt(Mt(100*t),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},Tt=[..."0123456789ABCDEF"],St=t=>Tt[15&t],Et=t=>Tt[(240&t)>>4]+Tt[15&t],Pt=t=>(240&t)>>4===(15&t);function Dt(t){var e=(t=>Pt(t.r)&&Pt(t.g)&&Pt(t.b)&&Pt(t.a))(t)?St:Et;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Rt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function jt(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Lt(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Ft(t,e,n){const r=jt(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function It(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=(o+i)/2;let s,c,u;return o!==i&&(u=o-i,c=a>.5?u/(2-o-i):u/(o+i),s=function(t,e,n,r,o){return t===o?(e-n)/r+(e<n?6:0):e===o?(n-t)/r+2:(t-e)/r+4}(e,n,r,u,o),s=60*s+.5),[0|s,c||0,a]}function Bt(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Ct)}function Nt(t,e,n){return Bt(jt,t,e,n)}function Ht(t){return(t%360+360)%360}function Wt(t){const e=Rt.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?_t(+e[5]):Ct(+e[5]));const o=Ht(+e[2]),i=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Bt(Ft,t,e,n)}(o,i,a):"hsv"===e[1]?function(t,e,n){return Bt(Lt,t,e,n)}(o,i,a):Nt(o,i,a),{r:n[0],g:n[1],b:n[2],a:r}}const Yt={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"},Ut={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 Vt;function Qt(t){Vt||(Vt=function(){const t={},e=Object.keys(Ut),n=Object.keys(Yt);let r,o,i,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],o=0;o<n.length;o++)i=n[o],s=s.replace(i,Yt[i]);i=parseInt(Ut[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),Vt.transparent=[0,0,0,0]);const e=Vt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Xt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const $t=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Zt(t,e,n){if(t){let r=It(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Nt(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function qt(t,e){return t?Object.assign(e||{},t):t}function Kt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ct(t[3]))):(e=qt(t,{r:0,g:0,b:0,a:1})).a=Ct(e.a),e}function Gt(t){return"r"===t.charAt(0)?function(t){const e=Xt.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=e[8]?_t(t):zt(255*t,0,255)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?_t(n):zt(n,0,255)),r=255&(e[4]?_t(r):zt(r,0,255)),o=255&(e[6]?_t(o):zt(o,0,255)),{r:n,g:r,b:o,a:i}}}(t):Wt(t)}class te{constructor(t){if(t instanceof te)return t;const e=typeof t;let n;"object"===e?n=Kt(t):"string"===e&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*Ot[t[1]],g:255&17*Ot[t[2]],b:255&17*Ot[t[3]],a:5===n?17*Ot[t[4]]:255}:7!==n&&9!==n||(e={r:Ot[t[1]]<<4|Ot[t[2]],g:Ot[t[3]]<<4|Ot[t[4]],b:Ot[t[5]]<<4|Ot[t[6]],a:9===n?Ot[t[7]]<<4|Ot[t[8]]:255})),e}(t)||Qt(t)||Gt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=qt(this._rgb);return t&&(t.a=kt(t.a)),t}set rgb(t){this._rgb=Kt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Dt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=It(t),n=e[0],r=At(e[1]),o=At(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${kt(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let o;const i=e===o?.5:e,a=2*i-1,s=n.a-r.a,c=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-c,n.r=255&c*n.r+o*r.r+.5,n.g=255&c*n.g+o*r.g+.5,n.b=255&c*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=Jt(kt(t.r)),o=Jt(kt(t.g)),i=Jt(kt(t.b));return{r:Ct($t(r+n*(Jt(kt(e.r))-r))),g:Ct($t(o+n*(Jt(kt(e.g))-o))),b:Ct($t(i+n*(Jt(kt(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new te(this.rgb)}alpha(t){return this._rgb.a=Ct(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Mt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Zt(this._rgb,2,t),this}darken(t){return Zt(this._rgb,2,-t),this}saturate(t){return Zt(this._rgb,1,t),this}desaturate(t){return Zt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=It(t);n[0]=Ht(n[0]+e),n=Nt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function ee(t){return new te(t)}function ne(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function re(t){return ne(t)?t:ee(t)}function oe(t){return ne(t)?t:ee(t).saturate(.5).darken(.1).hexString()}const ie=Object.create(null),ae=Object.create(null);function se(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;r<o;++r){const e=n[r];t=t[e]||(t[e]=Object.create(null))}return t}function ce(t,e,n){return"string"===typeof e?x(se(t,e),n):x(se(t,""),e)}var ue=new class{constructor(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=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>oe(e.backgroundColor),this.hoverBorderColor=(t,e)=>oe(e.borderColor),this.hoverColor=(t,e)=>oe(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return ce(this,t,e)}get(t){return se(this,t)}describe(t,e){return ce(ae,t,e)}override(t,e){return ce(ie,t,e)}route(t,e,n,r){const o=se(this,t),i=se(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return s(t)?Object.assign({},e,t):l(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function le(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function fe(t,e,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const c=n.length;let u,l,f,h,p;for(u=0;u<c;u++)if(h=n[u],void 0!==h&&null!==h&&!0!==a(h))s=le(t,o,i,s,h);else if(a(h))for(l=0,f=h.length;l<f;l++)p=h[l],void 0===p||null===p||a(p)||(s=le(t,o,i,s,p));t.restore();const d=i.length/2;if(d>n.length){for(u=0;u<d;u++)delete o[i[u]];i.splice(0,d)}return s}function he(t,e,n){const r=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function pe(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function de(t,e,n,r){ge(t,e,n,r,null)}function ge(t,e,n,r,o){let i,a,s,c,u,l;const f=e.pointStyle,h=e.rotation,p=e.radius;let d=(h||0)*D;if(f&&"object"===typeof f&&(i=f.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(n,r),t.rotate(d),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:o?t.ellipse(n,r,o/2,p,0,0,S):t.arc(n,r,p,0,S),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*p,r-Math.cos(d)*p),d+=L,t.lineTo(n+Math.sin(d)*p,r-Math.cos(d)*p),d+=L,t.lineTo(n+Math.sin(d)*p,r-Math.cos(d)*p),t.closePath();break;case"rectRounded":u=.516*p,c=p-u,a=Math.cos(d+j)*c,s=Math.sin(d+j)*c,t.arc(n-a,r-s,u,d-T,d-R),t.arc(n+s,r-a,u,d-R,d),t.arc(n+a,r+s,u,d,d+R),t.arc(n-s,r+a,u,d+R,d+T),t.closePath();break;case"rect":if(!h){c=Math.SQRT1_2*p,l=o?o/2:c,t.rect(n-l,r-c,2*l,2*c);break}d+=j;case"rectRot":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+s,r-a),t.lineTo(n+a,r+s),t.lineTo(n-s,r+a),t.closePath();break;case"crossRot":d+=j;case"cross":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"star":a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a),d+=j,a=Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"line":a=o?o/2:Math.cos(d)*p,s=Math.sin(d)*p,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(d)*p,r+Math.sin(d)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function ye(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function be(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function me(t){t.restore()}function xe(t,e,n,r,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===o!==!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function ve(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function we(t,e,n,r,o,s={}){const c=a(e)?e:[e],u=s.strokeWidth>0&&""!==s.strokeColor;let l,f;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);i(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),l=0;l<c.length;++l)f=c[l],u&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),i(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(f,n,r,s.maxWidth)),t.fillText(f,n,r,s.maxWidth),Me(t,n,r,f,s),r+=o.lineHeight;t.restore()}function Me(t,e,n,r,o){if(o.strikethrough||o.underline){const i=t.measureText(r),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,c=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,l=o.strikethrough?(c+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,l),t.lineTo(s,l),t.stroke()}}function ze(t,e){const{x:n,y:r,w:o,h:i,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-R,T,!0),t.lineTo(n,r+i-a.bottomLeft),t.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,T,R,!0),t.lineTo(n+o-a.bottomRight,r+i),t.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,R,0,!0),t.lineTo(n+o,r+a.topRight),t.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-R,!0),t.lineTo(n+a.topLeft,r)}const _e=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ce=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ke(t,e){const n=(""+t).match(_e);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Ae(t,e){const n={},r=s(e),o=r?Object.keys(e):e,i=s(t)?r?n=>l(t[n],t[e[n]]):e=>t[e]:()=>t;for(const a of o)n[a]=+i(a)||0;return n}function Oe(t){return Ae(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Te(t){return Ae(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Se(t){const e=Oe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ee(t,e){t=t||{},e=e||ue.font;let n=l(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let r=l(t.style,e.style);r&&!(""+r).match(Ce)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:l(t.family,e.family),lineHeight:ke(l(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:l(t.weight,e.weight),string:""};return o.string=function(t){return!t||i(t.size)||i(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Pe(t,e,n,r){let o,i,s,c=!0;for(o=0,i=t.length;o<i;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"===typeof s&&(s=s(e),c=!1),void 0!==n&&a(s)&&(s=s[n%s.length],c=!1),void 0!==s))return r&&!c&&(r.cacheable=!1),s}function De(t,e,n){const{min:r,max:o}=t,i=h(e,(o-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Re(t,e){return Object.assign(Object.create(t),e)}function je(t,e=[""],n=t,r,o=(()=>t[0])){C(r)||(r=Qe("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>je([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Ne(n,r,(()=>function(t,e,n,r){let o;for(const i of e)if(o=Qe(Ie(i,t),n),C(o))return Be(t,o)?Ue(n,r,t,o):o}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Xe(t).includes(e),ownKeys:t=>Xe(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function Le(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Fe(t,r),setContext:e=>Le(t,e,n,r),override:o=>Le(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Ne(t,e,(()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:c}=t;let u=r[e];k(u)&&c.isScriptable(e)&&(u=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(i,a||r),s.delete(t),Be(t,e)&&(e=Ue(o._scopes,o,t,e));return e}(e,u,t,n));a(u)&&u.length&&(u=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:c}=n;if(C(i.index)&&r(t))e=e[i.index%e.length];else if(s(e[0])){const n=e,r=o._scopes.filter((t=>t!==n));e=[];for(const s of n){const n=Ue(r,o,t,s);e.push(Le(n,i,a&&a[t],c))}}return e}(e,u,t,c.isIndexable));Be(e,u)&&(u=Le(u,o,i&&i[e],c));return u}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Fe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:k(n)?n:()=>n,isIndexable:k(r)?r:()=>r}}const Ie=(t,e)=>t?t+_(e):e,Be=(t,e)=>s(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ne(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function He(t,e,n){return k(t)?t(e,n):t}const We=(t,e)=>!0===t?e:"string"===typeof t?z(e,t):void 0;function Ye(t,e,n,r,o){for(const i of e){const e=We(n,i);if(e){t.add(e);const i=He(e._fallback,n,o);if(C(i)&&i!==n&&i!==r)return i}else if(!1===e&&C(r)&&n!==r)return null}return!1}function Ue(t,e,n,r){const o=e._rootScopes,i=He(e._fallback,n,r),c=[...t,...o],u=new Set;u.add(r);let l=Ve(u,c,n,i||n,r);return null!==l&&((!C(i)||i===n||(l=Ve(u,c,i,l,r),null!==l))&&je(Array.from(u),[""],o,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];if(a(o)&&s(n))return n;return o}(e,n,r))))}function Ve(t,e,n,r,o){for(;n;)n=Ye(t,e,n,r,o);return n}function Qe(t,e){for(const n of e){if(!n)continue;const e=n[t];if(C(e))return e}}function Xe(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function $e(t,e,n,r){const{iScale:o}=t,{key:i="r"}=this._parsing,a=new Array(r);let s,c,u,l;for(s=0,c=r;s<c;++s)u=s+n,l=e[u],a[s]={r:o.parse(z(l,i),u)};return a}const Je=Number.EPSILON||1e-14,Ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],qe=t=>"x"===t?"y":"x";function Ke(t,e,n,r){const o=t.skip?e:t,i=e,a=n.skip?e:n,s=J(i,o),c=J(a,i);let u=s/(s+c),l=c/(s+c);u=isNaN(u)?0:u,l=isNaN(l)?0:l;const f=r*u,h=r*l;return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+h*(a.x-o.x),y:i.y+h*(a.y-o.y)}}}function Ge(t,e="x"){const n=qe(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,c,u=Ze(t,0);for(a=0;a<r;++a)if(s=c,c=u,u=Ze(t,a+1),c){if(u){const t=u[e]-c[e];o[a]=0!==t?(u[n]-c[n])/t:0}i[a]=s?u?I(o[a-1])!==I(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,n){const r=t.length;let o,i,a,s,c,u=Ze(t,0);for(let l=0;l<r-1;++l)c=u,u=Ze(t,l+1),c&&u&&(W(e[l],0,Je)?n[l]=n[l+1]=0:(o=n[l]/e[l],i=n[l+1]/e[l],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[l]=o*a*e[l],n[l+1]=i*a*e[l])))}(t,o,i),function(t,e,n="x"){const r=qe(n),o=t.length;let i,a,s,c=Ze(t,0);for(let u=0;u<o;++u){if(a=s,s=c,c=Ze(t,u+1),!s)continue;const o=s[n],l=s[r];a&&(i=(o-a[n])/3,s[`cp1${n}`]=o-i,s[`cp1${r}`]=l-i*e[u]),c&&(i=(c[n]-o)/3,s[`cp2${n}`]=o+i,s[`cp2${r}`]=l+i*e[u])}}(t,i,e)}function tn(t,e,n){return Math.max(Math.min(t,n),e)}function en(t,e,n,r,o){let i,a,s,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Ge(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)s=t[i],c=Ke(n,s,t[Math.min(i+1,a-(r?0:1))%a],e.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,n=s}e.capBezierPoints&&function(t,e){let n,r,o,i,a,s=ye(t[0],e);for(n=0,r=t.length;n<r;++n)a=i,i=s,s=n<r-1&&ye(t[n+1],e),i&&(o=t[n],a&&(o.cp1x=tn(o.cp1x,e.left,e.right),o.cp1y=tn(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=tn(o.cp2x,e.left,e.right),o.cp2y=tn(o.cp2y,e.top,e.bottom)))}(t,n)}function nn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function rn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function on(t,e,n){let r;return"string"===typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}const an=t=>window.getComputedStyle(t,null);const sn=["top","right","bottom","left"];function cn(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=sn[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function un(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=an(n),i="border-box"===o.boxSizing,a=cn(o,"padding"),s=cn(o,"border","width"),{x:c,y:u,box:l}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let a,s,c=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,c=!0}return{x:a,y:s,box:c}}(t,n),f=a.left+(l&&s.left),h=a.top+(l&&s.top);let{width:p,height:d}=e;return i&&(p-=a.width+s.width,d-=a.height+s.height),{x:Math.round((c-f)/p*n.width/r),y:Math.round((u-h)/d*n.height/r)}}const ln=t=>Math.round(10*t)/10;function fn(t,e,n,r){const o=an(t),i=cn(o,"margin"),a=on(o.maxWidth,t,"clientWidth")||P,s=on(o.maxHeight,t,"clientHeight")||P,c=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=rn(t);if(i){const t=i.getBoundingClientRect(),a=an(i),s=cn(a,"border","width"),c=cn(a,"padding");e=t.width-c.width-s.width,n=t.height-c.height-s.height,r=on(a.maxWidth,i,"clientWidth"),o=on(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||P,maxHeight:o||P}}(t,e,n);let{width:u,height:l}=c;if("content-box"===o.boxSizing){const t=cn(o,"border","width"),e=cn(o,"padding");u-=e.width+t.width,l-=e.height+t.height}return u=Math.max(0,u-i.width),l=Math.max(0,r?Math.floor(u/r):l-i.height),u=ln(Math.min(u,a,c.maxWidth)),l=ln(Math.min(l,s,c.maxHeight)),u&&!l&&(l=ln(u/2)),{width:u,height:l}}function hn(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const pn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function dn(t,e){const n=function(t,e){return an(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function gn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function yn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function bn(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=gn(t,o,n),s=gn(o,i,n),c=gn(i,e,n),u=gn(a,s,n),l=gn(s,c,n);return gn(u,l,n)}const mn=new Map;function xn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=mn.get(n);return r||(r=new Intl.NumberFormat(t,e),mn.set(n,r)),r}(e,n).format(t)}function vn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function wn(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Mn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function zn(t){return"angle"===t?{between:K,compare:Z,normalize:q}:{between:et,compare:(t,e)=>t-e,normalize:t=>t}}function _n({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:o}}function Cn(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:c,normalize:u}=zn(r),{start:l,end:f,loop:h,style:p}=function(t,e,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=zn(r),c=e.length;let u,l,{start:f,end:h,loop:p}=t;if(p){for(f+=c,h+=c,u=0,l=c;u<l&&a(s(e[f%c][r]),o,i);++u)f--,h--;f%=c,h%=c}return h<f&&(h+=c),{start:f,end:h,loop:p,style:t.style}}(t,e,n),d=[];let g,y,b,m=!1,x=null;const v=()=>m||c(o,b,g)&&0!==s(o,b),w=()=>!m||0===s(i,g)||c(i,b,g);for(let M=l,z=l;M<=f;++M)y=e[M%a],y.skip||(g=u(y[r]),g!==b&&(m=c(g,o,i),null===x&&v()&&(x=0===s(g,o)?M:z),null!==x&&w()&&(d.push(_n({start:x,end:M,loop:h,count:a,style:p})),x=null),z=M,b=g));return null!==x&&d.push(_n({start:x,end:f,loop:h,count:a,style:p})),d}function kn(t,e){const n=[],r=t.segments;for(let o=0;o<r.length;o++){const i=Cn(r[o],t.points,e);i.length&&n.push(...i)}return n}function An(t,e){const n=t.points,r=t.options.spanGaps,o=n.length;if(!o)return[];const i=!!t._loop,{start:a,end:s}=function(t,e,n,r){let o=0,i=e-1;if(n&&!r)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(i+=o);i>o&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return On(t,[{start:a,end:s,loop:i}],n,e);return On(t,function(t,e,n,r){const o=t.length,i=[];let a,s=e,c=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?c.skip||(r=!1,i.push({start:e%o,end:(a-1)%o,loop:r}),e=s=n.stop?a:null):(s=a,c.skip&&(e=a)),c=n}return null!==s&&i.push({start:e%o,end:s%o,loop:r}),i}(n,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),n,e)}function On(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const o=t._chart.getContext(),i=Tn(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,c=n.length,u=[];let l=i,f=e[0].start,h=f;function p(t,e,r,o){const i=s?-1:1;if(t!==e){for(t+=c;n[t%c].skip;)t-=i;for(;n[e%c].skip;)e+=i;t%c!==e%c&&(u.push({start:t%c,end:e%c,loop:r,style:o}),l=o,f=e%c)}}for(const d of e){f=s?f:d.start;let t,e=n[f%c];for(h=f+1;h<=d.end;h++){const i=n[h%c];t=Tn(r.setContext(Re(o,{type:"segment",p0:e,p1:i,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:a}))),Sn(t,l)&&p(f,h-1,d.loop,l),e=i,l=t}f<h-1&&p(f,h-1,d.loop,l)}return u}(t,e,n,r):e}function Tn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Sn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}}}]); |