-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.js
179 lines (179 loc) · 286 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
(function(){"use strict";function Fi(i,n){if(n){var l=this.$data._chart,c=i.datasets.map(function(S){return S.label}),p=n.datasets.map(function(S){return S.label}),_=JSON.stringify(p),M=JSON.stringify(c);M===_&&n.datasets.length===i.datasets.length?(i.datasets.forEach(function(S,O){var W=Object.keys(n.datasets[O]),oe=Object.keys(S),re=W.filter(function(Ce){return Ce!=="_meta"&&oe.indexOf(Ce)===-1});re.forEach(function(Ce){delete l.data.datasets[O][Ce]});for(var he in S)S.hasOwnProperty(he)&&(l.data.datasets[O][he]=S[he])}),i.hasOwnProperty("labels")&&(l.data.labels=i.labels,this.$emit("labels:update")),i.hasOwnProperty("xLabels")&&(l.data.xLabels=i.xLabels,this.$emit("xlabels:update")),i.hasOwnProperty("yLabels")&&(l.data.yLabels=i.yLabels,this.$emit("ylabels:update")),l.update(),this.$emit("chart:update")):(l&&(l.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render"))}else this.$data._chart&&(this.$data._chart.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render")}var Ns={data:function(){return{chartData:null}},watch:{chartData:Fi}},Ys={props:{chartData:{type:Object,required:!0,default:function(){}}},watch:{chartData:Fi}};const Hs={reactiveData:Ns,reactiveProp:Ys};var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Ws(i){if(i.__esModule)return i;var n=i.default;if(typeof n=="function"){var l=function c(){return this instanceof c?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};l.prototype=n.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(i).forEach(function(c){var p=Object.getOwnPropertyDescriptor(i,c);Object.defineProperty(l,c,p.get?p:{enumerable:!0,get:function(){return i[c]}})}),l}var Ii={exports:{}};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Ri;function A(){return Ri.apply(null,arguments)}function Vs(i){Ri=i}function ze(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function Dt(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function X(i,n){return Object.prototype.hasOwnProperty.call(i,n)}function ga(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var n;for(n in i)if(X(i,n))return!1;return!0}function Pe(i){return i===void 0}function rt(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function sr(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function Ni(i,n){var l=[],c,p=i.length;for(c=0;c<p;++c)l.push(n(i[c],c));return l}function pt(i,n){for(var l in n)X(n,l)&&(i[l]=n[l]);return X(n,"toString")&&(i.toString=n.toString),X(n,"valueOf")&&(i.valueOf=n.valueOf),i}function Ue(i,n,l,c){return dn(i,n,l,c,!0).utc()}function Es(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function U(i){return i._pf==null&&(i._pf=Es()),i._pf}var pa;Array.prototype.some?pa=Array.prototype.some:pa=function(i){var n=Object(this),l=n.length>>>0,c;for(c=0;c<l;c++)if(c in n&&i.call(this,n[c],c,n))return!0;return!1};function ya(i){var n=null,l=!1,c=i._d&&!isNaN(i._d.getTime());if(c&&(n=U(i),l=pa.call(n.parsedDateParts,function(p){return p!=null}),c=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&l),i._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(i))i._isValid=c;else return c;return i._isValid}function Lr(i){var n=Ue(NaN);return i!=null?pt(U(n),i):U(n).userInvalidated=!0,n}var Yi=A.momentProperties=[],ba=!1;function _a(i,n){var l,c,p,_=Yi.length;if(Pe(n._isAMomentObject)||(i._isAMomentObject=n._isAMomentObject),Pe(n._i)||(i._i=n._i),Pe(n._f)||(i._f=n._f),Pe(n._l)||(i._l=n._l),Pe(n._strict)||(i._strict=n._strict),Pe(n._tzm)||(i._tzm=n._tzm),Pe(n._isUTC)||(i._isUTC=n._isUTC),Pe(n._offset)||(i._offset=n._offset),Pe(n._pf)||(i._pf=U(n)),Pe(n._locale)||(i._locale=n._locale),_>0)for(l=0;l<_;l++)c=Yi[l],p=n[c],Pe(p)||(i[c]=p);return i}function or(i){_a(this,i),this._d=new Date(i._d!=null?i._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ba===!1&&(ba=!0,A.updateOffset(this),ba=!1)}function $e(i){return i instanceof or||i!=null&&i._isAMomentObject!=null}function Hi(i){A.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+i)}function Ye(i,n){var l=!0;return pt(function(){if(A.deprecationHandler!=null&&A.deprecationHandler(null,i),l){var c=[],p,_,M,S=arguments.length;for(_=0;_<S;_++){if(p="",typeof arguments[_]=="object"){p+=`
[`+_+"] ";for(M in arguments[0])X(arguments[0],M)&&(p+=M+": "+arguments[0][M]+", ");p=p.slice(0,-2)}else p=arguments[_];c.push(p)}Hi(i+`
Arguments: `+Array.prototype.slice.call(c).join("")+`
`+new Error().stack),l=!1}return n.apply(this,arguments)},n)}var Wi={};function Vi(i,n){A.deprecationHandler!=null&&A.deprecationHandler(i,n),Wi[i]||(Hi(n),Wi[i]=!0)}A.suppressDeprecationWarnings=!1,A.deprecationHandler=null;function Ze(i){return typeof Function<"u"&&i instanceof Function||Object.prototype.toString.call(i)==="[object Function]"}function zs(i){var n,l;for(l in i)X(i,l)&&(n=i[l],Ze(n)?this[l]=n:this["_"+l]=n);this._config=i,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xa(i,n){var l=pt({},i),c;for(c in n)X(n,c)&&(Dt(i[c])&&Dt(n[c])?(l[c]={},pt(l[c],i[c]),pt(l[c],n[c])):n[c]!=null?l[c]=n[c]:delete l[c]);for(c in i)X(i,c)&&!X(n,c)&&Dt(i[c])&&(l[c]=pt({},l[c]));return l}function wa(i){i!=null&&this.set(i)}var Ma;Object.keys?Ma=Object.keys:Ma=function(i){var n,l=[];for(n in i)X(i,n)&&l.push(n);return l};var $s={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Bs(i,n,l){var c=this._calendar[i]||this._calendar.sameElse;return Ze(c)?c.call(n,l):c}function Ge(i,n,l){var c=""+Math.abs(i),p=n-c.length,_=i>=0;return(_?l?"+":"":"-")+Math.pow(10,Math.max(0,p)).toString().substr(1)+c}var ka=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ir=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Sa={},Et={};function N(i,n,l,c){var p=c;typeof c=="string"&&(p=function(){return this[c]()}),i&&(Et[i]=p),n&&(Et[n[0]]=function(){return Ge(p.apply(this,arguments),n[1],n[2])}),l&&(Et[l]=function(){return this.localeData().ordinal(p.apply(this,arguments),i)})}function js(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function Us(i){var n=i.match(ka),l,c;for(l=0,c=n.length;l<c;l++)Et[n[l]]?n[l]=Et[n[l]]:n[l]=js(n[l]);return function(p){var _="",M;for(M=0;M<c;M++)_+=Ze(n[M])?n[M].call(p,i):n[M];return _}}function Rr(i,n){return i.isValid()?(n=Ei(n,i.localeData()),Sa[n]=Sa[n]||Us(n),Sa[n](i)):i.localeData().invalidDate()}function Ei(i,n){var l=5;function c(p){return n.longDateFormat(p)||p}for(Ir.lastIndex=0;l>=0&&Ir.test(i);)i=i.replace(Ir,c),Ir.lastIndex=0,l-=1;return i}var Zs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Gs(i){var n=this._longDateFormat[i],l=this._longDateFormat[i.toUpperCase()];return n||!l?n:(this._longDateFormat[i]=l.match(ka).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[i])}var qs="Invalid date";function Ks(){return this._invalidDate}var Js="%d",Xs=/\d{1,2}/;function Qs(i){return this._ordinal.replace("%d",i)}var eo={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function to(i,n,l,c){var p=this._relativeTime[l];return Ze(p)?p(i,n,l,c):p.replace(/%d/i,i)}function ro(i,n){var l=this._relativeTime[i>0?"future":"past"];return Ze(l)?l(n):l.replace(/%s/i,n)}var zi={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function He(i){return typeof i=="string"?zi[i]||zi[i.toLowerCase()]:void 0}function Da(i){var n={},l,c;for(c in i)X(i,c)&&(l=He(c),l&&(n[l]=i[c]));return n}var ao={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function io(i){var n=[],l;for(l in i)X(i,l)&&n.push({unit:l,priority:ao[l]});return n.sort(function(c,p){return c.priority-p.priority}),n}var $i=/\d/,Ie=/\d\d/,Bi=/\d{3}/,Ca=/\d{4}/,Nr=/[+-]?\d{6}/,ue=/\d\d?/,ji=/\d\d\d\d?/,Ui=/\d\d\d\d\d\d?/,Yr=/\d{1,3}/,Oa=/\d{1,4}/,Hr=/[+-]?\d{1,6}/,zt=/\d+/,Wr=/[+-]?\d+/,no=/Z|[+-]\d\d:?\d\d/gi,Vr=/Z|[+-]\d\d(?::?\d\d)?/gi,so=/[+-]?\d+(\.\d{1,3})?/,lr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,$t=/^[1-9]\d?/,Pa=/^([1-9]\d|\d)/,Er;Er={};function L(i,n,l){Er[i]=Ze(n)?n:function(c,p){return c&&l?l:n}}function oo(i,n){return X(Er,i)?Er[i](n._strict,n._locale):new RegExp(lo(i))}function lo(i){return at(i.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,l,c,p,_){return l||c||p||_}))}function at(i){return i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function We(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function G(i){var n=+i,l=0;return n!==0&&isFinite(n)&&(l=We(n)),l}var Ta={};function ie(i,n){var l,c=n,p;for(typeof i=="string"&&(i=[i]),rt(n)&&(c=function(_,M){M[n]=G(_)}),p=i.length,l=0;l<p;l++)Ta[i[l]]=c}function ur(i,n){ie(i,function(l,c,p,_){p._w=p._w||{},n(l,p._w,p,_)})}function uo(i,n,l){n!=null&&X(Ta,i)&&Ta[i](n,l._a,l,i)}function zr(i){return i%4===0&&i%100!==0||i%400===0}var Se=0,it=1,qe=2,ye=3,Be=4,nt=5,Ct=6,fo=7,co=8;N("Y",0,0,function(){var i=this.year();return i<=9999?Ge(i,4):"+"+i}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),L("Y",Wr),L("YY",ue,Ie),L("YYYY",Oa,Ca),L("YYYYY",Hr,Nr),L("YYYYYY",Hr,Nr),ie(["YYYYY","YYYYYY"],Se),ie("YYYY",function(i,n){n[Se]=i.length===2?A.parseTwoDigitYear(i):G(i)}),ie("YY",function(i,n){n[Se]=A.parseTwoDigitYear(i)}),ie("Y",function(i,n){n[Se]=parseInt(i,10)});function dr(i){return zr(i)?366:365}A.parseTwoDigitYear=function(i){return G(i)+(G(i)>68?1900:2e3)};var Zi=Bt("FullYear",!0);function ho(){return zr(this.year())}function Bt(i,n){return function(l){return l!=null?(Gi(this,i,l),A.updateOffset(this,n),this):fr(this,i)}}function fr(i,n){if(!i.isValid())return NaN;var l=i._d,c=i._isUTC;switch(n){case"Milliseconds":return c?l.getUTCMilliseconds():l.getMilliseconds();case"Seconds":return c?l.getUTCSeconds():l.getSeconds();case"Minutes":return c?l.getUTCMinutes():l.getMinutes();case"Hours":return c?l.getUTCHours():l.getHours();case"Date":return c?l.getUTCDate():l.getDate();case"Day":return c?l.getUTCDay():l.getDay();case"Month":return c?l.getUTCMonth():l.getMonth();case"FullYear":return c?l.getUTCFullYear():l.getFullYear();default:return NaN}}function Gi(i,n,l){var c,p,_,M,S;if(!(!i.isValid()||isNaN(l))){switch(c=i._d,p=i._isUTC,n){case"Milliseconds":return void(p?c.setUTCMilliseconds(l):c.setMilliseconds(l));case"Seconds":return void(p?c.setUTCSeconds(l):c.setSeconds(l));case"Minutes":return void(p?c.setUTCMinutes(l):c.setMinutes(l));case"Hours":return void(p?c.setUTCHours(l):c.setHours(l));case"Date":return void(p?c.setUTCDate(l):c.setDate(l));case"FullYear":break;default:return}_=l,M=i.month(),S=i.date(),S=S===29&&M===1&&!zr(_)?28:S,p?c.setUTCFullYear(_,M,S):c.setFullYear(_,M,S)}}function vo(i){return i=He(i),Ze(this[i])?this[i]():this}function mo(i,n){if(typeof i=="object"){i=Da(i);var l=io(i),c,p=l.length;for(c=0;c<p;c++)this[l[c].unit](i[l[c].unit])}else if(i=He(i),Ze(this[i]))return this[i](n);return this}function go(i,n){return(i%n+n)%n}var me;Array.prototype.indexOf?me=Array.prototype.indexOf:me=function(i){var n;for(n=0;n<this.length;++n)if(this[n]===i)return n;return-1};function Aa(i,n){if(isNaN(i)||isNaN(n))return NaN;var l=go(n,12);return i+=(n-l)/12,l===1?zr(i)?29:28:31-l%7%2}N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(i){return this.localeData().monthsShort(this,i)}),N("MMMM",0,0,function(i){return this.localeData().months(this,i)}),L("M",ue,$t),L("MM",ue,Ie),L("MMM",function(i,n){return n.monthsShortRegex(i)}),L("MMMM",function(i,n){return n.monthsRegex(i)}),ie(["M","MM"],function(i,n){n[it]=G(i)-1}),ie(["MMM","MMMM"],function(i,n,l,c){var p=l._locale.monthsParse(i,c,l._strict);p!=null?n[it]=p:U(l).invalidMonth=i});var po="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ki=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yo=lr,bo=lr;function _o(i,n){return i?ze(this._months)?this._months[i.month()]:this._months[(this._months.isFormat||Ki).test(n)?"format":"standalone"][i.month()]:ze(this._months)?this._months:this._months.standalone}function xo(i,n){return i?ze(this._monthsShort)?this._monthsShort[i.month()]:this._monthsShort[Ki.test(n)?"format":"standalone"][i.month()]:ze(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function wo(i,n,l){var c,p,_,M=i.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)_=Ue([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(_,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(_,"").toLocaleLowerCase();return l?n==="MMM"?(p=me.call(this._shortMonthsParse,M),p!==-1?p:null):(p=me.call(this._longMonthsParse,M),p!==-1?p:null):n==="MMM"?(p=me.call(this._shortMonthsParse,M),p!==-1?p:(p=me.call(this._longMonthsParse,M),p!==-1?p:null)):(p=me.call(this._longMonthsParse,M),p!==-1?p:(p=me.call(this._shortMonthsParse,M),p!==-1?p:null))}function Mo(i,n,l){var c,p,_;if(this._monthsParseExact)return wo.call(this,i,n,l);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(p=Ue([2e3,c]),l&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(p,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(p,"").replace(".","")+"$","i")),!l&&!this._monthsParse[c]&&(_="^"+this.months(p,"")+"|^"+this.monthsShort(p,""),this._monthsParse[c]=new RegExp(_.replace(".",""),"i")),l&&n==="MMMM"&&this._longMonthsParse[c].test(i))return c;if(l&&n==="MMM"&&this._shortMonthsParse[c].test(i))return c;if(!l&&this._monthsParse[c].test(i))return c}}function Ji(i,n){if(!i.isValid())return i;if(typeof n=="string"){if(/^\d+$/.test(n))n=G(n);else if(n=i.localeData().monthsParse(n),!rt(n))return i}var l=n,c=i.date();return c=c<29?c:Math.min(c,Aa(i.year(),l)),i._isUTC?i._d.setUTCMonth(l,c):i._d.setMonth(l,c),i}function Xi(i){return i!=null?(Ji(this,i),A.updateOffset(this,!0),this):fr(this,"Month")}function ko(){return Aa(this.year(),this.month())}function So(i){return this._monthsParseExact?(X(this,"_monthsRegex")||Qi.call(this),i?this._monthsShortStrictRegex:this._monthsShortRegex):(X(this,"_monthsShortRegex")||(this._monthsShortRegex=yo),this._monthsShortStrictRegex&&i?this._monthsShortStrictRegex:this._monthsShortRegex)}function Do(i){return this._monthsParseExact?(X(this,"_monthsRegex")||Qi.call(this),i?this._monthsStrictRegex:this._monthsRegex):(X(this,"_monthsRegex")||(this._monthsRegex=bo),this._monthsStrictRegex&&i?this._monthsStrictRegex:this._monthsRegex)}function Qi(){function i(O,W){return W.length-O.length}var n=[],l=[],c=[],p,_,M,S;for(p=0;p<12;p++)_=Ue([2e3,p]),M=at(this.monthsShort(_,"")),S=at(this.months(_,"")),n.push(M),l.push(S),c.push(S),c.push(M);n.sort(i),l.sort(i),c.sort(i),this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Co(i,n,l,c,p,_,M){var S;return i<100&&i>=0?(S=new Date(i+400,n,l,c,p,_,M),isFinite(S.getFullYear())&&S.setFullYear(i)):S=new Date(i,n,l,c,p,_,M),S}function cr(i){var n,l;return i<100&&i>=0?(l=Array.prototype.slice.call(arguments),l[0]=i+400,n=new Date(Date.UTC.apply(null,l)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(i)):n=new Date(Date.UTC.apply(null,arguments)),n}function $r(i,n,l){var c=7+n-l,p=(7+cr(i,0,c).getUTCDay()-n)%7;return-p+c-1}function en(i,n,l,c,p){var _=(7+l-c)%7,M=$r(i,c,p),S=1+7*(n-1)+_+M,O,W;return S<=0?(O=i-1,W=dr(O)+S):S>dr(i)?(O=i+1,W=S-dr(i)):(O=i,W=S),{year:O,dayOfYear:W}}function hr(i,n,l){var c=$r(i.year(),n,l),p=Math.floor((i.dayOfYear()-c-1)/7)+1,_,M;return p<1?(M=i.year()-1,_=p+st(M,n,l)):p>st(i.year(),n,l)?(_=p-st(i.year(),n,l),M=i.year()+1):(M=i.year(),_=p),{week:_,year:M}}function st(i,n,l){var c=$r(i,n,l),p=$r(i+1,n,l);return(dr(i)-c+p)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),L("w",ue,$t),L("ww",ue,Ie),L("W",ue,$t),L("WW",ue,Ie),ur(["w","ww","W","WW"],function(i,n,l,c){n[c.substr(0,1)]=G(i)});function Oo(i){return hr(i,this._week.dow,this._week.doy).week}var Po={dow:0,doy:6};function To(){return this._week.dow}function Ao(){return this._week.doy}function Fo(i){var n=this.localeData().week(this);return i==null?n:this.add((i-n)*7,"d")}function Lo(i){var n=hr(this,1,4).week;return i==null?n:this.add((i-n)*7,"d")}N("d",0,"do","day"),N("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),N("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),N("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),L("d",ue),L("e",ue),L("E",ue),L("dd",function(i,n){return n.weekdaysMinRegex(i)}),L("ddd",function(i,n){return n.weekdaysShortRegex(i)}),L("dddd",function(i,n){return n.weekdaysRegex(i)}),ur(["dd","ddd","dddd"],function(i,n,l,c){var p=l._locale.weekdaysParse(i,c,l._strict);p!=null?n.d=p:U(l).invalidWeekday=i}),ur(["d","e","E"],function(i,n,l,c){n[c]=G(i)});function Io(i,n){return typeof i!="string"?i:isNaN(i)?(i=n.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function Ro(i,n){return typeof i=="string"?n.weekdaysParse(i)%7||7:isNaN(i)?null:i}function Fa(i,n){return i.slice(n,7).concat(i.slice(0,n))}var No="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ho=lr,Wo=lr,Vo=lr;function Eo(i,n){var l=ze(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return i===!0?Fa(l,this._week.dow):i?l[i.day()]:l}function zo(i){return i===!0?Fa(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function $o(i){return i===!0?Fa(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function Bo(i,n,l){var c,p,_,M=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)_=Ue([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(_,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(_,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(_,"").toLocaleLowerCase();return l?n==="dddd"?(p=me.call(this._weekdaysParse,M),p!==-1?p:null):n==="ddd"?(p=me.call(this._shortWeekdaysParse,M),p!==-1?p:null):(p=me.call(this._minWeekdaysParse,M),p!==-1?p:null):n==="dddd"?(p=me.call(this._weekdaysParse,M),p!==-1||(p=me.call(this._shortWeekdaysParse,M),p!==-1)?p:(p=me.call(this._minWeekdaysParse,M),p!==-1?p:null)):n==="ddd"?(p=me.call(this._shortWeekdaysParse,M),p!==-1||(p=me.call(this._weekdaysParse,M),p!==-1)?p:(p=me.call(this._minWeekdaysParse,M),p!==-1?p:null)):(p=me.call(this._minWeekdaysParse,M),p!==-1||(p=me.call(this._weekdaysParse,M),p!==-1)?p:(p=me.call(this._shortWeekdaysParse,M),p!==-1?p:null))}function jo(i,n,l){var c,p,_;if(this._weekdaysParseExact)return Bo.call(this,i,n,l);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(p=Ue([2e3,1]).day(c),l&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(p,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(p,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(p,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(_="^"+this.weekdays(p,"")+"|^"+this.weekdaysShort(p,"")+"|^"+this.weekdaysMin(p,""),this._weekdaysParse[c]=new RegExp(_.replace(".",""),"i")),l&&n==="dddd"&&this._fullWeekdaysParse[c].test(i))return c;if(l&&n==="ddd"&&this._shortWeekdaysParse[c].test(i))return c;if(l&&n==="dd"&&this._minWeekdaysParse[c].test(i))return c;if(!l&&this._weekdaysParse[c].test(i))return c}}function Uo(i){if(!this.isValid())return i!=null?this:NaN;var n=fr(this,"Day");return i!=null?(i=Io(i,this.localeData()),this.add(i-n,"d")):n}function Zo(i){if(!this.isValid())return i!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return i==null?n:this.add(i-n,"d")}function Go(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var n=Ro(i,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function qo(i){return this._weekdaysParseExact?(X(this,"_weekdaysRegex")||La.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(X(this,"_weekdaysRegex")||(this._weekdaysRegex=Ho),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ko(i){return this._weekdaysParseExact?(X(this,"_weekdaysRegex")||La.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(X(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wo),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jo(i){return this._weekdaysParseExact?(X(this,"_weekdaysRegex")||La.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(X(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vo),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function La(){function i(oe,re){return re.length-oe.length}var n=[],l=[],c=[],p=[],_,M,S,O,W;for(_=0;_<7;_++)M=Ue([2e3,1]).day(_),S=at(this.weekdaysMin(M,"")),O=at(this.weekdaysShort(M,"")),W=at(this.weekdays(M,"")),n.push(S),l.push(O),c.push(W),p.push(S),p.push(O),p.push(W);n.sort(i),l.sort(i),c.sort(i),p.sort(i),this._weekdaysRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ia(){return this.hours()%12||12}function Xo(){return this.hours()||24}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Ia),N("k",["kk",2],0,Xo),N("hmm",0,0,function(){return""+Ia.apply(this)+Ge(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Ia.apply(this)+Ge(this.minutes(),2)+Ge(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+Ge(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+Ge(this.minutes(),2)+Ge(this.seconds(),2)});function rn(i,n){N(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}rn("a",!0),rn("A",!1);function an(i,n){return n._meridiemParse}L("a",an),L("A",an),L("H",ue,Pa),L("h",ue,$t),L("k",ue,$t),L("HH",ue,Ie),L("hh",ue,Ie),L("kk",ue,Ie),L("hmm",ji),L("hmmss",Ui),L("Hmm",ji),L("Hmmss",Ui),ie(["H","HH"],ye),ie(["k","kk"],function(i,n,l){var c=G(i);n[ye]=c===24?0:c}),ie(["a","A"],function(i,n,l){l._isPm=l._locale.isPM(i),l._meridiem=i}),ie(["h","hh"],function(i,n,l){n[ye]=G(i),U(l).bigHour=!0}),ie("hmm",function(i,n,l){var c=i.length-2;n[ye]=G(i.substr(0,c)),n[Be]=G(i.substr(c)),U(l).bigHour=!0}),ie("hmmss",function(i,n,l){var c=i.length-4,p=i.length-2;n[ye]=G(i.substr(0,c)),n[Be]=G(i.substr(c,2)),n[nt]=G(i.substr(p)),U(l).bigHour=!0}),ie("Hmm",function(i,n,l){var c=i.length-2;n[ye]=G(i.substr(0,c)),n[Be]=G(i.substr(c))}),ie("Hmmss",function(i,n,l){var c=i.length-4,p=i.length-2;n[ye]=G(i.substr(0,c)),n[Be]=G(i.substr(c,2)),n[nt]=G(i.substr(p))});function Qo(i){return(i+"").toLowerCase().charAt(0)==="p"}var el=/[ap]\.?m?\.?/i,tl=Bt("Hours",!0);function rl(i,n,l){return i>11?l?"pm":"PM":l?"am":"AM"}var nn={calendar:$s,longDateFormat:Zs,invalidDate:qs,ordinal:Js,dayOfMonthOrdinalParse:Xs,relativeTime:eo,months:po,monthsShort:qi,week:Po,weekdays:No,weekdaysMin:Yo,weekdaysShort:tn,meridiemParse:el},fe={},vr={},mr;function al(i,n){var l,c=Math.min(i.length,n.length);for(l=0;l<c;l+=1)if(i[l]!==n[l])return l;return c}function sn(i){return i&&i.toLowerCase().replace("_","-")}function il(i){for(var n=0,l,c,p,_;n<i.length;){for(_=sn(i[n]).split("-"),l=_.length,c=sn(i[n+1]),c=c?c.split("-"):null;l>0;){if(p=Br(_.slice(0,l).join("-")),p)return p;if(c&&c.length>=l&&al(_,c)>=l-1)break;l--}n++}return mr}function nl(i){return!!(i&&i.match("^[^/\\\\]*$"))}function Br(i){var n=null,l;if(fe[i]===void 0&&typeof module<"u"&&module&&module.exports&&nl(i))try{n=mr._abbr,l=require,l("./locale/"+i),yt(n)}catch{fe[i]=null}return fe[i]}function yt(i,n){var l;return i&&(Pe(n)?l=ot(i):l=Ra(i,n),l?mr=l:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),mr._abbr}function Ra(i,n){if(n!==null){var l,c=nn;if(n.abbr=i,fe[i]!=null)Vi("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=fe[i]._config;else if(n.parentLocale!=null)if(fe[n.parentLocale]!=null)c=fe[n.parentLocale]._config;else if(l=Br(n.parentLocale),l!=null)c=l._config;else return vr[n.parentLocale]||(vr[n.parentLocale]=[]),vr[n.parentLocale].push({name:i,config:n}),null;return fe[i]=new wa(xa(c,n)),vr[i]&&vr[i].forEach(function(p){Ra(p.name,p.config)}),yt(i),fe[i]}else return delete fe[i],null}function sl(i,n){if(n!=null){var l,c,p=nn;fe[i]!=null&&fe[i].parentLocale!=null?fe[i].set(xa(fe[i]._config,n)):(c=Br(i),c!=null&&(p=c._config),n=xa(p,n),c==null&&(n.abbr=i),l=new wa(n),l.parentLocale=fe[i],fe[i]=l),yt(i)}else fe[i]!=null&&(fe[i].parentLocale!=null?(fe[i]=fe[i].parentLocale,i===yt()&&yt(i)):fe[i]!=null&&delete fe[i]);return fe[i]}function ot(i){var n;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return mr;if(!ze(i)){if(n=Br(i),n)return n;i=[i]}return il(i)}function ol(){return Ma(fe)}function Na(i){var n,l=i._a;return l&&U(i).overflow===-2&&(n=l[it]<0||l[it]>11?it:l[qe]<1||l[qe]>Aa(l[Se],l[it])?qe:l[ye]<0||l[ye]>24||l[ye]===24&&(l[Be]!==0||l[nt]!==0||l[Ct]!==0)?ye:l[Be]<0||l[Be]>59?Be:l[nt]<0||l[nt]>59?nt:l[Ct]<0||l[Ct]>999?Ct:-1,U(i)._overflowDayOfYear&&(n<Se||n>qe)&&(n=qe),U(i)._overflowWeeks&&n===-1&&(n=fo),U(i)._overflowWeekday&&n===-1&&(n=co),U(i).overflow=n),i}var ll=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ul=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dl=/Z|[+-]\d\d(?::?\d\d)?/,jr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ya=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fl=/^\/?Date\((-?\d+)/i,cl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,hl={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function on(i){var n,l,c=i._i,p=ll.exec(c)||ul.exec(c),_,M,S,O,W=jr.length,oe=Ya.length;if(p){for(U(i).iso=!0,n=0,l=W;n<l;n++)if(jr[n][1].exec(p[1])){M=jr[n][0],_=jr[n][2]!==!1;break}if(M==null){i._isValid=!1;return}if(p[3]){for(n=0,l=oe;n<l;n++)if(Ya[n][1].exec(p[3])){S=(p[2]||" ")+Ya[n][0];break}if(S==null){i._isValid=!1;return}}if(!_&&S!=null){i._isValid=!1;return}if(p[4])if(dl.exec(p[4]))O="Z";else{i._isValid=!1;return}i._f=M+(S||"")+(O||""),Wa(i)}else i._isValid=!1}function vl(i,n,l,c,p,_){var M=[ml(i),qi.indexOf(n),parseInt(l,10),parseInt(c,10),parseInt(p,10)];return _&&M.push(parseInt(_,10)),M}function ml(i){var n=parseInt(i,10);return n<=49?2e3+n:n<=999?1900+n:n}function gl(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pl(i,n,l){if(i){var c=tn.indexOf(i),p=new Date(n[0],n[1],n[2]).getDay();if(c!==p)return U(l).weekdayMismatch=!0,l._isValid=!1,!1}return!0}function yl(i,n,l){if(i)return hl[i];if(n)return 0;var c=parseInt(l,10),p=c%100,_=(c-p)/100;return _*60+p}function ln(i){var n=cl.exec(gl(i._i)),l;if(n){if(l=vl(n[4],n[3],n[2],n[5],n[6],n[7]),!pl(n[1],l,i))return;i._a=l,i._tzm=yl(n[8],n[9],n[10]),i._d=cr.apply(null,i._a),i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),U(i).rfc2822=!0}else i._isValid=!1}function bl(i){var n=fl.exec(i._i);if(n!==null){i._d=new Date(+n[1]);return}if(on(i),i._isValid===!1)delete i._isValid;else return;if(ln(i),i._isValid===!1)delete i._isValid;else return;i._strict?i._isValid=!1:A.createFromInputFallback(i)}A.createFromInputFallback=Ye("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(i){i._d=new Date(i._i+(i._useUTC?" UTC":""))});function jt(i,n,l){return i??n??l}function _l(i){var n=new Date(A.now());return i._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Ha(i){var n,l,c=[],p,_,M;if(!i._d){for(p=_l(i),i._w&&i._a[qe]==null&&i._a[it]==null&&xl(i),i._dayOfYear!=null&&(M=jt(i._a[Se],p[Se]),(i._dayOfYear>dr(M)||i._dayOfYear===0)&&(U(i)._overflowDayOfYear=!0),l=cr(M,0,i._dayOfYear),i._a[it]=l.getUTCMonth(),i._a[qe]=l.getUTCDate()),n=0;n<3&&i._a[n]==null;++n)i._a[n]=c[n]=p[n];for(;n<7;n++)i._a[n]=c[n]=i._a[n]==null?n===2?1:0:i._a[n];i._a[ye]===24&&i._a[Be]===0&&i._a[nt]===0&&i._a[Ct]===0&&(i._nextDay=!0,i._a[ye]=0),i._d=(i._useUTC?cr:Co).apply(null,c),_=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[ye]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==_&&(U(i).weekdayMismatch=!0)}}function xl(i){var n,l,c,p,_,M,S,O,W;n=i._w,n.GG!=null||n.W!=null||n.E!=null?(_=1,M=4,l=jt(n.GG,i._a[Se],hr(de(),1,4).year),c=jt(n.W,1),p=jt(n.E,1),(p<1||p>7)&&(O=!0)):(_=i._locale._week.dow,M=i._locale._week.doy,W=hr(de(),_,M),l=jt(n.gg,i._a[Se],W.year),c=jt(n.w,W.week),n.d!=null?(p=n.d,(p<0||p>6)&&(O=!0)):n.e!=null?(p=n.e+_,(n.e<0||n.e>6)&&(O=!0)):p=_),c<1||c>st(l,_,M)?U(i)._overflowWeeks=!0:O!=null?U(i)._overflowWeekday=!0:(S=en(l,c,p,_,M),i._a[Se]=S.year,i._dayOfYear=S.dayOfYear)}A.ISO_8601=function(){},A.RFC_2822=function(){};function Wa(i){if(i._f===A.ISO_8601){on(i);return}if(i._f===A.RFC_2822){ln(i);return}i._a=[],U(i).empty=!0;var n=""+i._i,l,c,p,_,M,S=n.length,O=0,W,oe;for(p=Ei(i._f,i._locale).match(ka)||[],oe=p.length,l=0;l<oe;l++)_=p[l],c=(n.match(oo(_,i))||[])[0],c&&(M=n.substr(0,n.indexOf(c)),M.length>0&&U(i).unusedInput.push(M),n=n.slice(n.indexOf(c)+c.length),O+=c.length),Et[_]?(c?U(i).empty=!1:U(i).unusedTokens.push(_),uo(_,c,i)):i._strict&&!c&&U(i).unusedTokens.push(_);U(i).charsLeftOver=S-O,n.length>0&&U(i).unusedInput.push(n),i._a[ye]<=12&&U(i).bigHour===!0&&i._a[ye]>0&&(U(i).bigHour=void 0),U(i).parsedDateParts=i._a.slice(0),U(i).meridiem=i._meridiem,i._a[ye]=wl(i._locale,i._a[ye],i._meridiem),W=U(i).era,W!==null&&(i._a[Se]=i._locale.erasConvertYear(W,i._a[Se])),Ha(i),Na(i)}function wl(i,n,l){var c;return l==null?n:i.meridiemHour!=null?i.meridiemHour(n,l):(i.isPM!=null&&(c=i.isPM(l),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function Ml(i){var n,l,c,p,_,M,S=!1,O=i._f.length;if(O===0){U(i).invalidFormat=!0,i._d=new Date(NaN);return}for(p=0;p<O;p++)_=0,M=!1,n=_a({},i),i._useUTC!=null&&(n._useUTC=i._useUTC),n._f=i._f[p],Wa(n),ya(n)&&(M=!0),_+=U(n).charsLeftOver,_+=U(n).unusedTokens.length*10,U(n).score=_,S?_<c&&(c=_,l=n):(c==null||_<c||M)&&(c=_,l=n,M&&(S=!0));pt(i,l||n)}function kl(i){if(!i._d){var n=Da(i._i),l=n.day===void 0?n.date:n.day;i._a=Ni([n.year,n.month,l,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),Ha(i)}}function Sl(i){var n=new or(Na(un(i)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function un(i){var n=i._i,l=i._f;return i._locale=i._locale||ot(i._l),n===null||l===void 0&&n===""?Lr({nullInput:!0}):(typeof n=="string"&&(i._i=n=i._locale.preparse(n)),$e(n)?new or(Na(n)):(sr(n)?i._d=n:ze(l)?Ml(i):l?Wa(i):Dl(i),ya(i)||(i._d=null),i))}function Dl(i){var n=i._i;Pe(n)?i._d=new Date(A.now()):sr(n)?i._d=new Date(n.valueOf()):typeof n=="string"?bl(i):ze(n)?(i._a=Ni(n.slice(0),function(l){return parseInt(l,10)}),Ha(i)):Dt(n)?kl(i):rt(n)?i._d=new Date(n):A.createFromInputFallback(i)}function dn(i,n,l,c,p){var _={};return(n===!0||n===!1)&&(c=n,n=void 0),(l===!0||l===!1)&&(c=l,l=void 0),(Dt(i)&&ga(i)||ze(i)&&i.length===0)&&(i=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=p,_._l=l,_._i=i,_._f=n,_._strict=c,Sl(_)}function de(i,n,l,c){return dn(i,n,l,c,!1)}var Cl=Ye("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=de.apply(null,arguments);return this.isValid()&&i.isValid()?i<this?this:i:Lr()}),Ol=Ye("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=de.apply(null,arguments);return this.isValid()&&i.isValid()?i>this?this:i:Lr()});function fn(i,n){var l,c;if(n.length===1&&ze(n[0])&&(n=n[0]),!n.length)return de();for(l=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][i](l))&&(l=n[c]);return l}function Pl(){var i=[].slice.call(arguments,0);return fn("isBefore",i)}function Tl(){var i=[].slice.call(arguments,0);return fn("isAfter",i)}var Al=function(){return Date.now?Date.now():+new Date},gr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fl(i){var n,l=!1,c,p=gr.length;for(n in i)if(X(i,n)&&!(me.call(gr,n)!==-1&&(i[n]==null||!isNaN(i[n]))))return!1;for(c=0;c<p;++c)if(i[gr[c]]){if(l)return!1;parseFloat(i[gr[c]])!==G(i[gr[c]])&&(l=!0)}return!0}function Ll(){return this._isValid}function Il(){return je(NaN)}function Ur(i){var n=Da(i),l=n.year||0,c=n.quarter||0,p=n.month||0,_=n.week||n.isoWeek||0,M=n.day||0,S=n.hour||0,O=n.minute||0,W=n.second||0,oe=n.millisecond||0;this._isValid=Fl(n),this._milliseconds=+oe+W*1e3+O*6e4+S*1e3*60*60,this._days=+M+_*7,this._months=+p+c*3+l*12,this._data={},this._locale=ot(),this._bubble()}function Zr(i){return i instanceof Ur}function Va(i){return i<0?Math.round(-1*i)*-1:Math.round(i)}function Rl(i,n,l){var c=Math.min(i.length,n.length),p=Math.abs(i.length-n.length),_=0,M;for(M=0;M<c;M++)G(i[M])!==G(n[M])&&_++;return _+p}function cn(i,n){N(i,0,0,function(){var l=this.utcOffset(),c="+";return l<0&&(l=-l,c="-"),c+Ge(~~(l/60),2)+n+Ge(~~l%60,2)})}cn("Z",":"),cn("ZZ",""),L("Z",Vr),L("ZZ",Vr),ie(["Z","ZZ"],function(i,n,l){l._useUTC=!0,l._tzm=Ea(Vr,i)});var Nl=/([\+\-]|\d\d)/gi;function Ea(i,n){var l=(n||"").match(i),c,p,_;return l===null?null:(c=l[l.length-1]||[],p=(c+"").match(Nl)||["-",0,0],_=+(p[1]*60)+G(p[2]),_===0?0:p[0]==="+"?_:-_)}function za(i,n){var l,c;return n._isUTC?(l=n.clone(),c=($e(i)||sr(i)?i.valueOf():de(i).valueOf())-l.valueOf(),l._d.setTime(l._d.valueOf()+c),A.updateOffset(l,!1),l):de(i).local()}function $a(i){return-Math.round(i._d.getTimezoneOffset())}A.updateOffset=function(){};function Yl(i,n,l){var c=this._offset||0,p;if(!this.isValid())return i!=null?this:NaN;if(i!=null){if(typeof i=="string"){if(i=Ea(Vr,i),i===null)return this}else Math.abs(i)<16&&!l&&(i=i*60);return!this._isUTC&&n&&(p=$a(this)),this._offset=i,this._isUTC=!0,p!=null&&this.add(p,"m"),c!==i&&(!n||this._changeInProgress?gn(this,je(i-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,A.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:$a(this)}function Hl(i,n){return i!=null?(typeof i!="string"&&(i=-i),this.utcOffset(i,n),this):-this.utcOffset()}function Wl(i){return this.utcOffset(0,i)}function Vl(i){return this._isUTC&&(this.utcOffset(0,i),this._isUTC=!1,i&&this.subtract($a(this),"m")),this}function El(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var i=Ea(no,this._i);i!=null?this.utcOffset(i):this.utcOffset(0,!0)}return this}function zl(i){return this.isValid()?(i=i?de(i).utcOffset():0,(this.utcOffset()-i)%60===0):!1}function $l(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bl(){if(!Pe(this._isDSTShifted))return this._isDSTShifted;var i={},n;return _a(i,this),i=un(i),i._a?(n=i._isUTC?Ue(i._a):de(i._a),this._isDSTShifted=this.isValid()&&Rl(i._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jl(){return this.isValid()?!this._isUTC:!1}function Ul(){return this.isValid()?this._isUTC:!1}function hn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Zl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(i,n){var l=i,c=null,p,_,M;return Zr(i)?l={ms:i._milliseconds,d:i._days,M:i._months}:rt(i)||!isNaN(+i)?(l={},n?l[n]=+i:l.milliseconds=+i):(c=Zl.exec(i))?(p=c[1]==="-"?-1:1,l={y:0,d:G(c[qe])*p,h:G(c[ye])*p,m:G(c[Be])*p,s:G(c[nt])*p,ms:G(Va(c[Ct]*1e3))*p}):(c=Gl.exec(i))?(p=c[1]==="-"?-1:1,l={y:Ot(c[2],p),M:Ot(c[3],p),w:Ot(c[4],p),d:Ot(c[5],p),h:Ot(c[6],p),m:Ot(c[7],p),s:Ot(c[8],p)}):l==null?l={}:typeof l=="object"&&("from"in l||"to"in l)&&(M=ql(de(l.from),de(l.to)),l={},l.ms=M.milliseconds,l.M=M.months),_=new Ur(l),Zr(i)&&X(i,"_locale")&&(_._locale=i._locale),Zr(i)&&X(i,"_isValid")&&(_._isValid=i._isValid),_}je.fn=Ur.prototype,je.invalid=Il;function Ot(i,n){var l=i&&parseFloat(i.replace(",","."));return(isNaN(l)?0:l)*n}function vn(i,n){var l={};return l.months=n.month()-i.month()+(n.year()-i.year())*12,i.clone().add(l.months,"M").isAfter(n)&&--l.months,l.milliseconds=+n-+i.clone().add(l.months,"M"),l}function ql(i,n){var l;return i.isValid()&&n.isValid()?(n=za(n,i),i.isBefore(n)?l=vn(i,n):(l=vn(n,i),l.milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0}}function mn(i,n){return function(l,c){var p,_;return c!==null&&!isNaN(+c)&&(Vi(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),_=l,l=c,c=_),p=je(l,c),gn(this,p,i),this}}function gn(i,n,l,c){var p=n._milliseconds,_=Va(n._days),M=Va(n._months);i.isValid()&&(c=c??!0,M&&Ji(i,fr(i,"Month")+M*l),_&&Gi(i,"Date",fr(i,"Date")+_*l),p&&i._d.setTime(i._d.valueOf()+p*l),c&&A.updateOffset(i,_||M))}var Kl=mn(1,"add"),Jl=mn(-1,"subtract");function pn(i){return typeof i=="string"||i instanceof String}function Xl(i){return $e(i)||sr(i)||pn(i)||rt(i)||eu(i)||Ql(i)||i===null||i===void 0}function Ql(i){var n=Dt(i)&&!ga(i),l=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],p,_,M=c.length;for(p=0;p<M;p+=1)_=c[p],l=l||X(i,_);return n&&l}function eu(i){var n=ze(i),l=!1;return n&&(l=i.filter(function(c){return!rt(c)&&pn(i)}).length===0),n&&l}function tu(i){var n=Dt(i)&&!ga(i),l=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],p,_;for(p=0;p<c.length;p+=1)_=c[p],l=l||X(i,_);return n&&l}function ru(i,n){var l=i.diff(n,"days",!0);return l<-6?"sameElse":l<-1?"lastWeek":l<0?"lastDay":l<1?"sameDay":l<2?"nextDay":l<7?"nextWeek":"sameElse"}function au(i,n){arguments.length===1&&(arguments[0]?Xl(arguments[0])?(i=arguments[0],n=void 0):tu(arguments[0])&&(n=arguments[0],i=void 0):(i=void 0,n=void 0));var l=i||de(),c=za(l,this).startOf("day"),p=A.calendarFormat(this,c)||"sameElse",_=n&&(Ze(n[p])?n[p].call(this,l):n[p]);return this.format(_||this.localeData().calendar(p,this,de(l)))}function iu(){return new or(this)}function nu(i,n){var l=$e(i)?i:de(i);return this.isValid()&&l.isValid()?(n=He(n)||"millisecond",n==="millisecond"?this.valueOf()>l.valueOf():l.valueOf()<this.clone().startOf(n).valueOf()):!1}function su(i,n){var l=$e(i)?i:de(i);return this.isValid()&&l.isValid()?(n=He(n)||"millisecond",n==="millisecond"?this.valueOf()<l.valueOf():this.clone().endOf(n).valueOf()<l.valueOf()):!1}function ou(i,n,l,c){var p=$e(i)?i:de(i),_=$e(n)?n:de(n);return this.isValid()&&p.isValid()&&_.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(p,l):!this.isBefore(p,l))&&(c[1]===")"?this.isBefore(_,l):!this.isAfter(_,l))):!1}function lu(i,n){var l=$e(i)?i:de(i),c;return this.isValid()&&l.isValid()?(n=He(n)||"millisecond",n==="millisecond"?this.valueOf()===l.valueOf():(c=l.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function uu(i,n){return this.isSame(i,n)||this.isAfter(i,n)}function du(i,n){return this.isSame(i,n)||this.isBefore(i,n)}function fu(i,n,l){var c,p,_;if(!this.isValid())return NaN;if(c=za(i,this),!c.isValid())return NaN;switch(p=(c.utcOffset()-this.utcOffset())*6e4,n=He(n),n){case"year":_=Gr(this,c)/12;break;case"month":_=Gr(this,c);break;case"quarter":_=Gr(this,c)/3;break;case"second":_=(this-c)/1e3;break;case"minute":_=(this-c)/6e4;break;case"hour":_=(this-c)/36e5;break;case"day":_=(this-c-p)/864e5;break;case"week":_=(this-c-p)/6048e5;break;default:_=this-c}return l?_:We(_)}function Gr(i,n){if(i.date()<n.date())return-Gr(n,i);var l=(n.year()-i.year())*12+(n.month()-i.month()),c=i.clone().add(l,"months"),p,_;return n-c<0?(p=i.clone().add(l-1,"months"),_=(n-c)/(c-p)):(p=i.clone().add(l+1,"months"),_=(n-c)/(p-c)),-(l+_)||0}A.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",A.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function cu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function hu(i){if(!this.isValid())return null;var n=i!==!0,l=n?this.clone().utc():this;return l.year()<0||l.year()>9999?Rr(l,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ze(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rr(l,"Z")):Rr(l,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",n="",l,c,p,_;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),l="["+i+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",p="-MM-DD[T]HH:mm:ss.SSS",_=n+'[")]',this.format(l+c+p+_)}function mu(i){i||(i=this.isUtc()?A.defaultFormatUtc:A.defaultFormat);var n=Rr(this,i);return this.localeData().postformat(n)}function gu(i,n){return this.isValid()&&($e(i)&&i.isValid()||de(i).isValid())?je({to:this,from:i}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function pu(i){return this.from(de(),i)}function yu(i,n){return this.isValid()&&($e(i)&&i.isValid()||de(i).isValid())?je({from:this,to:i}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function bu(i){return this.to(de(),i)}function yn(i){var n;return i===void 0?this._locale._abbr:(n=ot(i),n!=null&&(this._locale=n),this)}var bn=Ye("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function _n(){return this._locale}var qr=1e3,Ut=60*qr,Kr=60*Ut,xn=(365*400+97)*24*Kr;function Zt(i,n){return(i%n+n)%n}function wn(i,n,l){return i<100&&i>=0?new Date(i+400,n,l)-xn:new Date(i,n,l).valueOf()}function Mn(i,n,l){return i<100&&i>=0?Date.UTC(i+400,n,l)-xn:Date.UTC(i,n,l)}function _u(i){var n,l;if(i=He(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(l=this._isUTC?Mn:wn,i){case"year":n=l(this.year(),0,1);break;case"quarter":n=l(this.year(),this.month()-this.month()%3,1);break;case"month":n=l(this.year(),this.month(),1);break;case"week":n=l(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=l(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=l(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Zt(n+(this._isUTC?0:this.utcOffset()*Ut),Kr);break;case"minute":n=this._d.valueOf(),n-=Zt(n,Ut);break;case"second":n=this._d.valueOf(),n-=Zt(n,qr);break}return this._d.setTime(n),A.updateOffset(this,!0),this}function xu(i){var n,l;if(i=He(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(l=this._isUTC?Mn:wn,i){case"year":n=l(this.year()+1,0,1)-1;break;case"quarter":n=l(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=l(this.year(),this.month()+1,1)-1;break;case"week":n=l(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=l(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=l(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=Kr-Zt(n+(this._isUTC?0:this.utcOffset()*Ut),Kr)-1;break;case"minute":n=this._d.valueOf(),n+=Ut-Zt(n,Ut)-1;break;case"second":n=this._d.valueOf(),n+=qr-Zt(n,qr)-1;break}return this._d.setTime(n),A.updateOffset(this,!0),this}function wu(){return this._d.valueOf()-(this._offset||0)*6e4}function Mu(){return Math.floor(this.valueOf()/1e3)}function ku(){return new Date(this.valueOf())}function Su(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function Du(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function Cu(){return this.isValid()?this.toISOString():null}function Ou(){return ya(this)}function Pu(){return pt({},U(this))}function Tu(){return U(this).overflow}function Au(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),L("N",Ba),L("NN",Ba),L("NNN",Ba),L("NNNN",zu),L("NNNNN",$u),ie(["N","NN","NNN","NNNN","NNNNN"],function(i,n,l,c){var p=l._locale.erasParse(i,c,l._strict);p?U(l).era=p:U(l).invalidEra=i}),L("y",zt),L("yy",zt),L("yyy",zt),L("yyyy",zt),L("yo",Bu),ie(["y","yy","yyy","yyyy"],Se),ie(["yo"],function(i,n,l,c){var p;l._locale._eraYearOrdinalRegex&&(p=i.match(l._locale._eraYearOrdinalRegex)),l._locale.eraYearOrdinalParse?n[Se]=l._locale.eraYearOrdinalParse(i,p):n[Se]=parseInt(i,10)});function Fu(i,n){var l,c,p,_=this._eras||ot("en")._eras;for(l=0,c=_.length;l<c;++l){switch(typeof _[l].since){case"string":p=A(_[l].since).startOf("day"),_[l].since=p.valueOf();break}switch(typeof _[l].until){case"undefined":_[l].until=1/0;break;case"string":p=A(_[l].until).startOf("day").valueOf(),_[l].until=p.valueOf();break}}return _}function Lu(i,n,l){var c,p,_=this.eras(),M,S,O;for(i=i.toUpperCase(),c=0,p=_.length;c<p;++c)if(M=_[c].name.toUpperCase(),S=_[c].abbr.toUpperCase(),O=_[c].narrow.toUpperCase(),l)switch(n){case"N":case"NN":case"NNN":if(S===i)return _[c];break;case"NNNN":if(M===i)return _[c];break;case"NNNNN":if(O===i)return _[c];break}else if([M,S,O].indexOf(i)>=0)return _[c]}function Iu(i,n){var l=i.since<=i.until?1:-1;return n===void 0?A(i.since).year():A(i.since).year()+(n-i.offset)*l}function Ru(){var i,n,l,c=this.localeData().eras();for(i=0,n=c.length;i<n;++i)if(l=this.clone().startOf("day").valueOf(),c[i].since<=l&&l<=c[i].until||c[i].until<=l&&l<=c[i].since)return c[i].name;return""}function Nu(){var i,n,l,c=this.localeData().eras();for(i=0,n=c.length;i<n;++i)if(l=this.clone().startOf("day").valueOf(),c[i].since<=l&&l<=c[i].until||c[i].until<=l&&l<=c[i].since)return c[i].narrow;return""}function Yu(){var i,n,l,c=this.localeData().eras();for(i=0,n=c.length;i<n;++i)if(l=this.clone().startOf("day").valueOf(),c[i].since<=l&&l<=c[i].until||c[i].until<=l&&l<=c[i].since)return c[i].abbr;return""}function Hu(){var i,n,l,c,p=this.localeData().eras();for(i=0,n=p.length;i<n;++i)if(l=p[i].since<=p[i].until?1:-1,c=this.clone().startOf("day").valueOf(),p[i].since<=c&&c<=p[i].until||p[i].until<=c&&c<=p[i].since)return(this.year()-A(p[i].since).year())*l+p[i].offset;return this.year()}function Wu(i){return X(this,"_erasNameRegex")||ja.call(this),i?this._erasNameRegex:this._erasRegex}function Vu(i){return X(this,"_erasAbbrRegex")||ja.call(this),i?this._erasAbbrRegex:this._erasRegex}function Eu(i){return X(this,"_erasNarrowRegex")||ja.call(this),i?this._erasNarrowRegex:this._erasRegex}function Ba(i,n){return n.erasAbbrRegex(i)}function zu(i,n){return n.erasNameRegex(i)}function $u(i,n){return n.erasNarrowRegex(i)}function Bu(i,n){return n._eraYearOrdinalRegex||zt}function ja(){var i=[],n=[],l=[],c=[],p,_,M,S,O,W=this.eras();for(p=0,_=W.length;p<_;++p)M=at(W[p].name),S=at(W[p].abbr),O=at(W[p].narrow),n.push(M),i.push(S),l.push(O),c.push(M),c.push(S),c.push(O);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+l.join("|")+")","i")}N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Jr(i,n){N(0,[i,i.length],0,n)}Jr("gggg","weekYear"),Jr("ggggg","weekYear"),Jr("GGGG","isoWeekYear"),Jr("GGGGG","isoWeekYear"),L("G",Wr),L("g",Wr),L("GG",ue,Ie),L("gg",ue,Ie),L("GGGG",Oa,Ca),L("gggg",Oa,Ca),L("GGGGG",Hr,Nr),L("ggggg",Hr,Nr),ur(["gggg","ggggg","GGGG","GGGGG"],function(i,n,l,c){n[c.substr(0,2)]=G(i)}),ur(["gg","GG"],function(i,n,l,c){n[c]=A.parseTwoDigitYear(i)});function ju(i){return kn.call(this,i,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Uu(i){return kn.call(this,i,this.isoWeek(),this.isoWeekday(),1,4)}function Zu(){return st(this.year(),1,4)}function Gu(){return st(this.isoWeekYear(),1,4)}function qu(){var i=this.localeData()._week;return st(this.year(),i.dow,i.doy)}function Ku(){var i=this.localeData()._week;return st(this.weekYear(),i.dow,i.doy)}function kn(i,n,l,c,p){var _;return i==null?hr(this,c,p).year:(_=st(i,c,p),n>_&&(n=_),Ju.call(this,i,n,l,c,p))}function Ju(i,n,l,c,p){var _=en(i,n,l,c,p),M=cr(_.year,0,_.dayOfYear);return this.year(M.getUTCFullYear()),this.month(M.getUTCMonth()),this.date(M.getUTCDate()),this}N("Q",0,"Qo","quarter"),L("Q",$i),ie("Q",function(i,n){n[it]=(G(i)-1)*3});function Xu(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}N("D",["DD",2],"Do","date"),L("D",ue,$t),L("DD",ue,Ie),L("Do",function(i,n){return i?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),ie(["D","DD"],qe),ie("Do",function(i,n){n[qe]=G(i.match(ue)[0])});var Sn=Bt("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),L("DDD",Yr),L("DDDD",Bi),ie(["DDD","DDDD"],function(i,n,l){l._dayOfYear=G(i)});function Qu(i){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?n:this.add(i-n,"d")}N("m",["mm",2],0,"minute"),L("m",ue,Pa),L("mm",ue,Ie),ie(["m","mm"],Be);var ed=Bt("Minutes",!1);N("s",["ss",2],0,"second"),L("s",ue,Pa),L("ss",ue,Ie),ie(["s","ss"],nt);var td=Bt("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return this.millisecond()*10}),N(0,["SSSSS",5],0,function(){return this.millisecond()*100}),N(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),N(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),N(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),N(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),L("S",Yr,$i),L("SS",Yr,Ie),L("SSS",Yr,Bi);var bt,Dn;for(bt="SSSS";bt.length<=9;bt+="S")L(bt,zt);function rd(i,n){n[Ct]=G(("0."+i)*1e3)}for(bt="S";bt.length<=9;bt+="S")ie(bt,rd);Dn=Bt("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");function ad(){return this._isUTC?"UTC":""}function id(){return this._isUTC?"Coordinated Universal Time":""}var C=or.prototype;C.add=Kl,C.calendar=au,C.clone=iu,C.diff=fu,C.endOf=xu,C.format=mu,C.from=gu,C.fromNow=pu,C.to=yu,C.toNow=bu,C.get=vo,C.invalidAt=Tu,C.isAfter=nu,C.isBefore=su,C.isBetween=ou,C.isSame=lu,C.isSameOrAfter=uu,C.isSameOrBefore=du,C.isValid=Ou,C.lang=bn,C.locale=yn,C.localeData=_n,C.max=Ol,C.min=Cl,C.parsingFlags=Pu,C.set=mo,C.startOf=_u,C.subtract=Jl,C.toArray=Su,C.toObject=Du,C.toDate=ku,C.toISOString=hu,C.inspect=vu,typeof Symbol<"u"&&Symbol.for!=null&&(C[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),C.toJSON=Cu,C.toString=cu,C.unix=Mu,C.valueOf=wu,C.creationData=Au,C.eraName=Ru,C.eraNarrow=Nu,C.eraAbbr=Yu,C.eraYear=Hu,C.year=Zi,C.isLeapYear=ho,C.weekYear=ju,C.isoWeekYear=Uu,C.quarter=C.quarters=Xu,C.month=Xi,C.daysInMonth=ko,C.week=C.weeks=Fo,C.isoWeek=C.isoWeeks=Lo,C.weeksInYear=qu,C.weeksInWeekYear=Ku,C.isoWeeksInYear=Zu,C.isoWeeksInISOWeekYear=Gu,C.date=Sn,C.day=C.days=Uo,C.weekday=Zo,C.isoWeekday=Go,C.dayOfYear=Qu,C.hour=C.hours=tl,C.minute=C.minutes=ed,C.second=C.seconds=td,C.millisecond=C.milliseconds=Dn,C.utcOffset=Yl,C.utc=Wl,C.local=Vl,C.parseZone=El,C.hasAlignedHourOffset=zl,C.isDST=$l,C.isLocal=jl,C.isUtcOffset=Ul,C.isUtc=hn,C.isUTC=hn,C.zoneAbbr=ad,C.zoneName=id,C.dates=Ye("dates accessor is deprecated. Use date instead.",Sn),C.months=Ye("months accessor is deprecated. Use month instead",Xi),C.years=Ye("years accessor is deprecated. Use year instead",Zi),C.zone=Ye("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Hl),C.isDSTShifted=Ye("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bl);function nd(i){return de(i*1e3)}function sd(){return de.apply(null,arguments).parseZone()}function Cn(i){return i}var Q=wa.prototype;Q.calendar=Bs,Q.longDateFormat=Gs,Q.invalidDate=Ks,Q.ordinal=Qs,Q.preparse=Cn,Q.postformat=Cn,Q.relativeTime=to,Q.pastFuture=ro,Q.set=zs,Q.eras=Fu,Q.erasParse=Lu,Q.erasConvertYear=Iu,Q.erasAbbrRegex=Vu,Q.erasNameRegex=Wu,Q.erasNarrowRegex=Eu,Q.months=_o,Q.monthsShort=xo,Q.monthsParse=Mo,Q.monthsRegex=Do,Q.monthsShortRegex=So,Q.week=Oo,Q.firstDayOfYear=Ao,Q.firstDayOfWeek=To,Q.weekdays=Eo,Q.weekdaysMin=$o,Q.weekdaysShort=zo,Q.weekdaysParse=jo,Q.weekdaysRegex=qo,Q.weekdaysShortRegex=Ko,Q.weekdaysMinRegex=Jo,Q.isPM=Qo,Q.meridiem=rl;function Xr(i,n,l,c){var p=ot(),_=Ue().set(c,n);return p[l](_,i)}function On(i,n,l){if(rt(i)&&(n=i,i=void 0),i=i||"",n!=null)return Xr(i,n,l,"month");var c,p=[];for(c=0;c<12;c++)p[c]=Xr(i,c,l,"month");return p}function Ua(i,n,l,c){typeof i=="boolean"?(rt(n)&&(l=n,n=void 0),n=n||""):(n=i,l=n,i=!1,rt(n)&&(l=n,n=void 0),n=n||"");var p=ot(),_=i?p._week.dow:0,M,S=[];if(l!=null)return Xr(n,(l+_)%7,c,"day");for(M=0;M<7;M++)S[M]=Xr(n,(M+_)%7,c,"day");return S}function od(i,n){return On(i,n,"months")}function ld(i,n){return On(i,n,"monthsShort")}function ud(i,n,l){return Ua(i,n,l,"weekdays")}function dd(i,n,l){return Ua(i,n,l,"weekdaysShort")}function fd(i,n,l){return Ua(i,n,l,"weekdaysMin")}yt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var n=i%10,l=G(i%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return i+l}}),A.lang=Ye("moment.lang is deprecated. Use moment.locale instead.",yt),A.langData=Ye("moment.langData is deprecated. Use moment.localeData instead.",ot);var lt=Math.abs;function cd(){var i=this._data;return this._milliseconds=lt(this._milliseconds),this._days=lt(this._days),this._months=lt(this._months),i.milliseconds=lt(i.milliseconds),i.seconds=lt(i.seconds),i.minutes=lt(i.minutes),i.hours=lt(i.hours),i.months=lt(i.months),i.years=lt(i.years),this}function Pn(i,n,l,c){var p=je(n,l);return i._milliseconds+=c*p._milliseconds,i._days+=c*p._days,i._months+=c*p._months,i._bubble()}function hd(i,n){return Pn(this,i,n,1)}function vd(i,n){return Pn(this,i,n,-1)}function Tn(i){return i<0?Math.floor(i):Math.ceil(i)}function md(){var i=this._milliseconds,n=this._days,l=this._months,c=this._data,p,_,M,S,O;return i>=0&&n>=0&&l>=0||i<=0&&n<=0&&l<=0||(i+=Tn(Za(l)+n)*864e5,n=0,l=0),c.milliseconds=i%1e3,p=We(i/1e3),c.seconds=p%60,_=We(p/60),c.minutes=_%60,M=We(_/60),c.hours=M%24,n+=We(M/24),O=We(An(n)),l+=O,n-=Tn(Za(O)),S=We(l/12),l%=12,c.days=n,c.months=l,c.years=S,this}function An(i){return i*4800/146097}function Za(i){return i*146097/4800}function gd(i){if(!this.isValid())return NaN;var n,l,c=this._milliseconds;if(i=He(i),i==="month"||i==="quarter"||i==="year")switch(n=this._days+c/864e5,l=this._months+An(n),i){case"month":return l;case"quarter":return l/3;case"year":return l/12}else switch(n=this._days+Math.round(Za(this._months)),i){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+i)}}function ut(i){return function(){return this.as(i)}}var Fn=ut("ms"),pd=ut("s"),yd=ut("m"),bd=ut("h"),_d=ut("d"),xd=ut("w"),wd=ut("M"),Md=ut("Q"),kd=ut("y"),Sd=Fn;function Dd(){return je(this)}function Cd(i){return i=He(i),this.isValid()?this[i+"s"]():NaN}function Pt(i){return function(){return this.isValid()?this._data[i]:NaN}}var Od=Pt("milliseconds"),Pd=Pt("seconds"),Td=Pt("minutes"),Ad=Pt("hours"),Fd=Pt("days"),Ld=Pt("months"),Id=Pt("years");function Rd(){return We(this.days()/7)}var dt=Math.round,Gt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Nd(i,n,l,c,p){return p.relativeTime(n||1,!!l,i,c)}function Yd(i,n,l,c){var p=je(i).abs(),_=dt(p.as("s")),M=dt(p.as("m")),S=dt(p.as("h")),O=dt(p.as("d")),W=dt(p.as("M")),oe=dt(p.as("w")),re=dt(p.as("y")),he=_<=l.ss&&["s",_]||_<l.s&&["ss",_]||M<=1&&["m"]||M<l.m&&["mm",M]||S<=1&&["h"]||S<l.h&&["hh",S]||O<=1&&["d"]||O<l.d&&["dd",O];return l.w!=null&&(he=he||oe<=1&&["w"]||oe<l.w&&["ww",oe]),he=he||W<=1&&["M"]||W<l.M&&["MM",W]||re<=1&&["y"]||["yy",re],he[2]=n,he[3]=+i>0,he[4]=c,Nd.apply(null,he)}function Hd(i){return i===void 0?dt:typeof i=="function"?(dt=i,!0):!1}function Wd(i,n){return Gt[i]===void 0?!1:n===void 0?Gt[i]:(Gt[i]=n,i==="s"&&(Gt.ss=n-1),!0)}function Vd(i,n){if(!this.isValid())return this.localeData().invalidDate();var l=!1,c=Gt,p,_;return typeof i=="object"&&(n=i,i=!1),typeof i=="boolean"&&(l=i),typeof n=="object"&&(c=Object.assign({},Gt,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),p=this.localeData(),_=Yd(this,!l,c,p),l&&(_=p.pastFuture(+this,_)),p.postformat(_)}var Ga=Math.abs;function qt(i){return(i>0)-(i<0)||+i}function Qr(){if(!this.isValid())return this.localeData().invalidDate();var i=Ga(this._milliseconds)/1e3,n=Ga(this._days),l=Ga(this._months),c,p,_,M,S=this.asSeconds(),O,W,oe,re;return S?(c=We(i/60),p=We(c/60),i%=60,c%=60,_=We(l/12),l%=12,M=i?i.toFixed(3).replace(/\.?0+$/,""):"",O=S<0?"-":"",W=qt(this._months)!==qt(S)?"-":"",oe=qt(this._days)!==qt(S)?"-":"",re=qt(this._milliseconds)!==qt(S)?"-":"",O+"P"+(_?W+_+"Y":"")+(l?W+l+"M":"")+(n?oe+n+"D":"")+(p||c||i?"T":"")+(p?re+p+"H":"")+(c?re+c+"M":"")+(i?re+M+"S":"")):"P0D"}var K=Ur.prototype;K.isValid=Ll,K.abs=cd,K.add=hd,K.subtract=vd,K.as=gd,K.asMilliseconds=Fn,K.asSeconds=pd,K.asMinutes=yd,K.asHours=bd,K.asDays=_d,K.asWeeks=xd,K.asMonths=wd,K.asQuarters=Md,K.asYears=kd,K.valueOf=Sd,K._bubble=md,K.clone=Dd,K.get=Cd,K.milliseconds=Od,K.seconds=Pd,K.minutes=Td,K.hours=Ad,K.days=Fd,K.weeks=Rd,K.months=Ld,K.years=Id,K.humanize=Vd,K.toISOString=Qr,K.toString=Qr,K.toJSON=Qr,K.locale=yn,K.localeData=_n,K.toIsoString=Ye("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qr),K.lang=bn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),L("x",Wr),L("X",so),ie("X",function(i,n,l){l._d=new Date(parseFloat(i)*1e3)}),ie("x",function(i,n,l){l._d=new Date(G(i))});//! moment.js
A.version="2.30.1",Vs(de),A.fn=C,A.min=Pl,A.max=Tl,A.now=Al,A.utc=Ue,A.unix=nd,A.months=od,A.isDate=sr,A.locale=yt,A.invalid=Lr,A.duration=je,A.isMoment=$e,A.weekdays=ud,A.parseZone=sd,A.localeData=ot,A.isDuration=Zr,A.monthsShort=ld,A.weekdaysMin=fd,A.defineLocale=Ra,A.updateLocale=sl,A.locales=ol,A.weekdaysShort=dd,A.normalizeUnits=He,A.relativeTimeRounding=Hd,A.relativeTimeThreshold=Wd,A.calendarFormat=ru,A.prototype=C,A.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ed=Ws(Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"})));/*!
* Chart.js v2.9.4
* https://www.chartjs.org
* (c) 2020 Chart.js Contributors
* Released under the MIT License
*/(function(i,n){(function(l,c){i.exports=c(function(){try{return Ed}catch{}}())})(Fr,function(l){l=l&&l.hasOwnProperty("default")?l.default:l;function c(e,t){return t={exports:{}},e(t,t.exports),t.exports}function p(e){return e&&e.default||e}var _={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},M=c(function(e){var t={};for(var r in _)_.hasOwnProperty(r)&&(t[_[r]]=r);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var o=a[s].channels,u=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:o}),Object.defineProperty(a[s],"labels",{value:u})}a.rgb.hsl=function(d){var h=d[0]/255,v=d[1]/255,m=d[2]/255,y=Math.min(h,v,m),b=Math.max(h,v,m),x=b-y,w,k,D;return b===y?w=0:h===b?w=(v-m)/x:v===b?w=2+(m-h)/x:m===b&&(w=4+(h-v)/x),w=Math.min(w*60,360),w<0&&(w+=360),D=(y+b)/2,b===y?k=0:D<=.5?k=x/(b+y):k=x/(2-b-y),[w,k*100,D*100]},a.rgb.hsv=function(d){var h,v,m,y,b,x=d[0]/255,w=d[1]/255,k=d[2]/255,D=Math.max(x,w,k),F=D-Math.min(x,w,k),R=function(j){return(D-j)/6/F+1/2};return F===0?y=b=0:(b=F/D,h=R(x),v=R(w),m=R(k),x===D?y=m-v:w===D?y=1/3+h-m:k===D&&(y=2/3+v-h),y<0?y+=1:y>1&&(y-=1)),[y*360,b*100,D*100]},a.rgb.hwb=function(d){var h=d[0],v=d[1],m=d[2],y=a.rgb.hsl(d)[0],b=1/255*Math.min(h,Math.min(v,m));return m=1-1/255*Math.max(h,Math.max(v,m)),[y,b*100,m*100]},a.rgb.cmyk=function(d){var h=d[0]/255,v=d[1]/255,m=d[2]/255,y,b,x,w;return w=Math.min(1-h,1-v,1-m),y=(1-h-w)/(1-w)||0,b=(1-v-w)/(1-w)||0,x=(1-m-w)/(1-w)||0,[y*100,b*100,x*100,w*100]};function f(d,h){return Math.pow(d[0]-h[0],2)+Math.pow(d[1]-h[1],2)+Math.pow(d[2]-h[2],2)}a.rgb.keyword=function(d){var h=t[d];if(h)return h;var v=1/0,m;for(var y in _)if(_.hasOwnProperty(y)){var b=_[y],x=f(d,b);x<v&&(v=x,m=y)}return m},a.keyword.rgb=function(d){return _[d]},a.rgb.xyz=function(d){var h=d[0]/255,v=d[1]/255,m=d[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,v=v>.04045?Math.pow((v+.055)/1.055,2.4):v/12.92,m=m>.04045?Math.pow((m+.055)/1.055,2.4):m/12.92;var y=h*.4124+v*.3576+m*.1805,b=h*.2126+v*.7152+m*.0722,x=h*.0193+v*.1192+m*.9505;return[y*100,b*100,x*100]},a.rgb.lab=function(d){var h=a.rgb.xyz(d),v=h[0],m=h[1],y=h[2],b,x,w;return v/=95.047,m/=100,y/=108.883,v=v>.008856?Math.pow(v,1/3):7.787*v+16/116,m=m>.008856?Math.pow(m,1/3):7.787*m+16/116,y=y>.008856?Math.pow(y,1/3):7.787*y+16/116,b=116*m-16,x=500*(v-m),w=200*(m-y),[b,x,w]},a.hsl.rgb=function(d){var h=d[0]/360,v=d[1]/100,m=d[2]/100,y,b,x,w,k;if(v===0)return k=m*255,[k,k,k];m<.5?b=m*(1+v):b=m+v-m*v,y=2*m-b,w=[0,0,0];for(var D=0;D<3;D++)x=h+1/3*-(D-1),x<0&&x++,x>1&&x--,6*x<1?k=y+(b-y)*6*x:2*x<1?k=b:3*x<2?k=y+(b-y)*(2/3-x)*6:k=y,w[D]=k*255;return w},a.hsl.hsv=function(d){var h=d[0],v=d[1]/100,m=d[2]/100,y=v,b=Math.max(m,.01),x,w;return m*=2,v*=m<=1?m:2-m,y*=b<=1?b:2-b,w=(m+v)/2,x=m===0?2*y/(b+y):2*v/(m+v),[h,x*100,w*100]},a.hsv.rgb=function(d){var h=d[0]/60,v=d[1]/100,m=d[2]/100,y=Math.floor(h)%6,b=h-Math.floor(h),x=255*m*(1-v),w=255*m*(1-v*b),k=255*m*(1-v*(1-b));switch(m*=255,y){case 0:return[m,k,x];case 1:return[w,m,x];case 2:return[x,m,k];case 3:return[x,w,m];case 4:return[k,x,m];case 5:return[m,x,w]}},a.hsv.hsl=function(d){var h=d[0],v=d[1]/100,m=d[2]/100,y=Math.max(m,.01),b,x,w;return w=(2-v)*m,b=(2-v)*y,x=v*y,x/=b<=1?b:2-b,x=x||0,w/=2,[h,x*100,w*100]},a.hwb.rgb=function(d){var h=d[0]/360,v=d[1]/100,m=d[2]/100,y=v+m,b,x,w,k;y>1&&(v/=y,m/=y),b=Math.floor(6*h),x=1-m,w=6*h-b,b&1&&(w=1-w),k=v+w*(x-v);var D,F,R;switch(b){default:case 6:case 0:D=x,F=k,R=v;break;case 1:D=k,F=x,R=v;break;case 2:D=v,F=x,R=k;break;case 3:D=v,F=k,R=x;break;case 4:D=k,F=v,R=x;break;case 5:D=x,F=v,R=k;break}return[D*255,F*255,R*255]},a.cmyk.rgb=function(d){var h=d[0]/100,v=d[1]/100,m=d[2]/100,y=d[3]/100,b,x,w;return b=1-Math.min(1,h*(1-y)+y),x=1-Math.min(1,v*(1-y)+y),w=1-Math.min(1,m*(1-y)+y),[b*255,x*255,w*255]},a.xyz.rgb=function(d){var h=d[0]/100,v=d[1]/100,m=d[2]/100,y,b,x;return y=h*3.2406+v*-1.5372+m*-.4986,b=h*-.9689+v*1.8758+m*.0415,x=h*.0557+v*-.204+m*1.057,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,x=x>.0031308?1.055*Math.pow(x,1/2.4)-.055:x*12.92,y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),x=Math.min(Math.max(0,x),1),[y*255,b*255,x*255]},a.xyz.lab=function(d){var h=d[0],v=d[1],m=d[2],y,b,x;return h/=95.047,v/=100,m/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,v=v>.008856?Math.pow(v,1/3):7.787*v+16/116,m=m>.008856?Math.pow(m,1/3):7.787*m+16/116,y=116*v-16,b=500*(h-v),x=200*(v-m),[y,b,x]},a.lab.xyz=function(d){var h=d[0],v=d[1],m=d[2],y,b,x;b=(h+16)/116,y=v/500+b,x=b-m/200;var w=Math.pow(b,3),k=Math.pow(y,3),D=Math.pow(x,3);return b=w>.008856?w:(b-16/116)/7.787,y=k>.008856?k:(y-16/116)/7.787,x=D>.008856?D:(x-16/116)/7.787,y*=95.047,b*=100,x*=108.883,[y,b,x]},a.lab.lch=function(d){var h=d[0],v=d[1],m=d[2],y,b,x;return y=Math.atan2(m,v),b=y*360/2/Math.PI,b<0&&(b+=360),x=Math.sqrt(v*v+m*m),[h,x,b]},a.lch.lab=function(d){var h=d[0],v=d[1],m=d[2],y,b,x;return x=m/360*2*Math.PI,y=v*Math.cos(x),b=v*Math.sin(x),[h,y,b]},a.rgb.ansi16=function(d){var h=d[0],v=d[1],m=d[2],y=1 in arguments?arguments[1]:a.rgb.hsv(d)[2];if(y=Math.round(y/50),y===0)return 30;var b=30+(Math.round(m/255)<<2|Math.round(v/255)<<1|Math.round(h/255));return y===2&&(b+=60),b},a.hsv.ansi16=function(d){return a.rgb.ansi16(a.hsv.rgb(d),d[2])},a.rgb.ansi256=function(d){var h=d[0],v=d[1],m=d[2];if(h===v&&v===m)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var y=16+36*Math.round(h/255*5)+6*Math.round(v/255*5)+Math.round(m/255*5);return y},a.ansi16.rgb=function(d){var h=d%10;if(h===0||h===7)return d>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var v=(~~(d>50)+1)*.5,m=(h&1)*v*255,y=(h>>1&1)*v*255,b=(h>>2&1)*v*255;return[m,y,b]},a.ansi256.rgb=function(d){if(d>=232){var h=(d-232)*10+8;return[h,h,h]}d-=16;var v,m=Math.floor(d/36)/5*255,y=Math.floor((v=d%36)/6)/5*255,b=v%6/5*255;return[m,y,b]},a.rgb.hex=function(d){var h=((Math.round(d[0])&255)<<16)+((Math.round(d[1])&255)<<8)+(Math.round(d[2])&255),v=h.toString(16).toUpperCase();return"000000".substring(v.length)+v},a.hex.rgb=function(d){var h=d.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var v=h[0];h[0].length===3&&(v=v.split("").map(function(w){return w+w}).join(""));var m=parseInt(v,16),y=m>>16&255,b=m>>8&255,x=m&255;return[y,b,x]},a.rgb.hcg=function(d){var h=d[0]/255,v=d[1]/255,m=d[2]/255,y=Math.max(Math.max(h,v),m),b=Math.min(Math.min(h,v),m),x=y-b,w,k;return x<1?w=b/(1-x):w=0,x<=0?k=0:y===h?k=(v-m)/x%6:y===v?k=2+(m-h)/x:k=4+(h-v)/x+4,k/=6,k%=1,[k*360,x*100,w*100]},a.hsl.hcg=function(d){var h=d[1]/100,v=d[2]/100,m=1,y=0;return v<.5?m=2*h*v:m=2*h*(1-v),m<1&&(y=(v-.5*m)/(1-m)),[d[0],m*100,y*100]},a.hsv.hcg=function(d){var h=d[1]/100,v=d[2]/100,m=h*v,y=0;return m<1&&(y=(v-m)/(1-m)),[d[0],m*100,y*100]},a.hcg.rgb=function(d){var h=d[0]/360,v=d[1]/100,m=d[2]/100;if(v===0)return[m*255,m*255,m*255];var y=[0,0,0],b=h%1*6,x=b%1,w=1-x,k=0;switch(Math.floor(b)){case 0:y[0]=1,y[1]=x,y[2]=0;break;case 1:y[0]=w,y[1]=1,y[2]=0;break;case 2:y[0]=0,y[1]=1,y[2]=x;break;case 3:y[0]=0,y[1]=w,y[2]=1;break;case 4:y[0]=x,y[1]=0,y[2]=1;break;default:y[0]=1,y[1]=0,y[2]=w}return k=(1-v)*m,[(v*y[0]+k)*255,(v*y[1]+k)*255,(v*y[2]+k)*255]},a.hcg.hsv=function(d){var h=d[1]/100,v=d[2]/100,m=h+v*(1-h),y=0;return m>0&&(y=h/m),[d[0],y*100,m*100]},a.hcg.hsl=function(d){var h=d[1]/100,v=d[2]/100,m=v*(1-h)+.5*h,y=0;return m>0&&m<.5?y=h/(2*m):m>=.5&&m<1&&(y=h/(2*(1-m))),[d[0],y*100,m*100]},a.hcg.hwb=function(d){var h=d[1]/100,v=d[2]/100,m=h+v*(1-h);return[d[0],(m-h)*100,(1-m)*100]},a.hwb.hcg=function(d){var h=d[1]/100,v=d[2]/100,m=1-v,y=m-h,b=0;return y<1&&(b=(m-y)/(1-y)),[d[0],y*100,b*100]},a.apple.rgb=function(d){return[d[0]/65535*255,d[1]/65535*255,d[2]/65535*255]},a.rgb.apple=function(d){return[d[0]/255*65535,d[1]/255*65535,d[2]/255*65535]},a.gray.rgb=function(d){return[d[0]/100*255,d[0]/100*255,d[0]/100*255]},a.gray.hsl=a.gray.hsv=function(d){return[0,0,d[0]]},a.gray.hwb=function(d){return[0,100,d[0]]},a.gray.cmyk=function(d){return[0,0,0,d[0]]},a.gray.lab=function(d){return[d[0],0,0]},a.gray.hex=function(d){var h=Math.round(d[0]/100*255)&255,v=(h<<16)+(h<<8)+h,m=v.toString(16).toUpperCase();return"000000".substring(m.length)+m},a.rgb.gray=function(d){var h=(d[0]+d[1]+d[2])/3;return[h/255*100]}});M.rgb,M.hsl,M.hsv,M.hwb,M.cmyk,M.xyz,M.lab,M.lch,M.hex,M.keyword,M.ansi16,M.ansi256,M.hcg,M.apple,M.gray;function S(){for(var e={},t=Object.keys(M),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}function O(e){var t=S(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),s=Object.keys(M[a]),o=s.length,u=0;u<o;u++){var f=s[u],d=t[f];d.distance===-1&&(d.distance=t[a].distance+1,d.parent=a,r.unshift(f))}return t}function W(e,t){return function(r){return t(e(r))}}function oe(e,t){for(var r=[t[e].parent,e],a=M[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),a=W(M[t[s].parent][s],a),s=t[s].parent;return a.conversion=r,a}var re=function(e){for(var t=O(e),r={},a=Object.keys(t),s=a.length,o=0;o<s;o++){var u=a[o],f=t[u];f.parent!==null&&(r[u]=oe(u,t))}return r},he={},Ce=Object.keys(M);function _t(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function ea(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var a=e(r);if(typeof a=="object")for(var s=a.length,o=0;o<s;o++)a[o]=Math.round(a[o]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}Ce.forEach(function(e){he[e]={},Object.defineProperty(he[e],"channels",{value:M[e].channels}),Object.defineProperty(he[e],"labels",{value:M[e].labels});var t=re(e),r=Object.keys(t);r.forEach(function(a){var s=t[a];he[e][a]=ea(s),he[e][a].raw=_t(s)})});var Ja=he,yr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Re={getRgba:Tt,getHsla:br,getRgb:ft,getHsl:ta,getHwb:xt,getAlpha:_r,hexString:Kt,rgbString:ge,rgbaString:te,percentString:Jt,percentaString:xr,hslString:E,hslaString:I,hwbString:T,keyword:Y};function Tt(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,r=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,a=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,o=/(\w+)/,u=[0,0,0],f=1,d=e.match(t),h="";if(d){d=d[1],h=d[3];for(var v=0;v<u.length;v++)u[v]=parseInt(d[v]+d[v],16);h&&(f=Math.round(parseInt(h+h,16)/255*100)/100)}else if(d=e.match(r)){h=d[2],d=d[1];for(var v=0;v<u.length;v++)u[v]=parseInt(d.slice(v*2,v*2+2),16);h&&(f=Math.round(parseInt(h,16)/255*100)/100)}else if(d=e.match(a)){for(var v=0;v<u.length;v++)u[v]=parseInt(d[v+1]);f=parseFloat(d[4])}else if(d=e.match(s)){for(var v=0;v<u.length;v++)u[v]=Math.round(parseFloat(d[v+1])*2.55);f=parseFloat(d[4])}else if(d=e.match(o)){if(d[1]=="transparent")return[0,0,0,0];if(u=yr[d[1]],!u)return}for(var v=0;v<u.length;v++)u[v]=P(u[v],0,255);return!f&&f!=0?f=1:f=P(f,0,1),u[3]=f,u}}function br(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,r=e.match(t);if(r){var a=parseFloat(r[4]),s=P(parseInt(r[1]),0,360),o=P(parseFloat(r[2]),0,100),u=P(parseFloat(r[3]),0,100),f=P(isNaN(a)?1:a,0,1);return[s,o,u,f]}}}function xt(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,r=e.match(t);if(r){var a=parseFloat(r[4]),s=P(parseInt(r[1]),0,360),o=P(parseFloat(r[2]),0,100),u=P(parseFloat(r[3]),0,100),f=P(isNaN(a)?1:a,0,1);return[s,o,u,f]}}}function ft(e){var t=Tt(e);return t&&t.slice(0,3)}function ta(e){var t=br(e);return t&&t.slice(0,3)}function _r(e){var t=Tt(e);if(t)return t[3];if(t=br(e))return t[3];if(t=xt(e))return t[3]}function Kt(e,r){var r=r!==void 0&&e.length===3?r:e[3];return"#"+z(e[0])+z(e[1])+z(e[2])+(r>=0&&r<1?z(Math.round(r*255)):"")}function ge(e,t){return t<1||e[3]&&e[3]<1?te(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function te(e,t){return t===void 0&&(t=e[3]!==void 0?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function Jt(e,t){if(t<1||e[3]&&e[3]<1)return xr(e,t);var r=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),s=Math.round(e[2]/255*100);return"rgb("+r+"%, "+a+"%, "+s+"%)"}function xr(e,t){var r=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),s=Math.round(e[2]/255*100);return"rgba("+r+"%, "+a+"%, "+s+"%, "+(t||e[3]||1)+")"}function E(e,t){return t<1||e[3]&&e[3]<1?I(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function I(e,t){return t===void 0&&(t=e[3]!==void 0?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function T(e,t){return t===void 0&&(t=e[3]!==void 0?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(t!==void 0&&t!==1?", "+t:"")+")"}function Y(e){return $[e.slice(0,3)]}function P(e,t,r){return Math.min(Math.max(t,e),r)}function z(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var $={};for(var ae in yr)$[yr[ae]]=ae;var q=function(e){if(e instanceof q)return e;if(!(this instanceof q))return new q(e);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;typeof e=="string"?(t=Re.getRgba(e),t?this.setValues("rgb",t):(t=Re.getHsla(e))?this.setValues("hsl",t):(t=Re.getHwb(e))&&this.setValues("hwb",t)):typeof e=="object"&&(t=e,t.r!==void 0||t.red!==void 0?this.setValues("rgb",t):t.l!==void 0||t.lightness!==void 0?this.setValues("hsl",t):t.v!==void 0||t.value!==void 0?this.setValues("hsv",t):t.w!==void 0||t.whiteness!==void 0?this.setValues("hwb",t):(t.c!==void 0||t.cyan!==void 0)&&this.setValues("cmyk",t))};q.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return e.alpha!==1?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return e===void 0?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return Re.hexString(this.values.rgb)},rgbString:function(){return Re.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return Re.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return Re.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return Re.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return Re.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return Re.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return Re.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var a=e[r]/255;t[r]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=e[0]*.3+e[1]*.59+e[2]*.11;return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,r=(t[0]+e)%360;return t[0]=r<0?360+r:r,this.setValues("hsl",t),this},mix:function(e,t){var r=this,a=e,s=t===void 0?.5:t,o=2*s-1,u=r.alpha()-a.alpha(),f=((o*u===-1?o:(o+u)/(1+o*u))+1)/2,d=1-f;return this.rgb(f*r.red()+d*a.red(),f*r.green()+d*a.green(),f*r.blue()+d*a.blue()).alpha(r.alpha()*s+a.alpha()*(1-s))},toJSON:function(){return this.rgb()},clone:function(){var e=new q,t=this.values,r=e.values,a,s;for(var o in t)t.hasOwnProperty(o)&&(a=t[o],s={}.toString.call(a),s==="[object Array]"?r[o]=a.slice(0):s==="[object Number]"?r[o]=a:console.error("unexpected color value:",a));return e}},q.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},q.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},q.prototype.getValues=function(e){for(var t=this.values,r={},a=0;a<e.length;a++)r[e.charAt(a)]=t[e][a];return t.alpha!==1&&(r.a=t.alpha),r},q.prototype.setValues=function(e,t){var r=this.values,a=this.spaces,s=this.maxes,o=1,u;if(this.valid=!0,e==="alpha")o=t;else if(t.length)r[e]=t.slice(0,e.length),o=t[e.length];else if(t[e.charAt(0)]!==void 0){for(u=0;u<e.length;u++)r[e][u]=t[e.charAt(u)];o=t.a}else if(t[a[e][0]]!==void 0){var f=a[e];for(u=0;u<e.length;u++)r[e][u]=t[f[u]];o=t.alpha}if(r.alpha=Math.max(0,Math.min(1,o===void 0?r.alpha:o)),e==="alpha")return!1;var d;for(u=0;u<e.length;u++)d=Math.max(0,Math.min(s[e][u],r[e][u])),r[e][u]=Math.round(d);for(var h in a)h!==e&&(r[h]=Ja[e][h](r[e]));return!0},q.prototype.setSpace=function(e,t){var r=t[0];return r===void 0?this.getValues(e):(typeof r=="number"&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},q.prototype.setChannel=function(e,t,r){var a=this.values[e];return r===void 0?a[t]:r===a[t]?this:(a[t]=r,this.setValues(e,a),this)},typeof window<"u"&&(window.Color=q);var ce=q;function be(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}var V={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return e===null||typeof e>"u"},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return t.substr(0,7)==="[object"&&t.substr(-6)==="Array]"},isObject:function(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"},isFinite:function(e){return(typeof e=="number"||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return typeof e>"u"?t:e},valueAtIndexOrDefault:function(e,t,r){return V.valueOrDefault(V.isArray(e)?e[t]:e,r)},callback:function(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)},each:function(e,t,r,a){var s,o,u;if(V.isArray(e))if(o=e.length,a)for(s=o-1;s>=0;s--)t.call(r,e[s],s);else for(s=0;s<o;s++)t.call(r,e[s],s);else if(V.isObject(e))for(u=Object.keys(e),o=u.length,s=0;s<o;s++)t.call(r,e[u[s]],u[s])},arrayEquals:function(e,t){var r,a,s,o;if(!e||!t||e.length!==t.length)return!1;for(r=0,a=e.length;r<a;++r)if(s=e[r],o=t[r],s instanceof Array&&o instanceof Array){if(!V.arrayEquals(s,o))return!1}else if(s!==o)return!1;return!0},clone:function(e){if(V.isArray(e))return e.map(V.clone);if(V.isObject(e)){for(var t=Object.create(e),r=Object.keys(e),a=r.length,s=0;s<a;++s)t[r[s]]=V.clone(e[r[s]]);return t}return e},_merger:function(e,t,r,a){if(be(e)){var s=t[e],o=r[e];V.isObject(s)&&V.isObject(o)?V.merge(s,o,a):t[e]=V.clone(o)}},_mergerIf:function(e,t,r){if(be(e)){var a=t[e],s=r[e];V.isObject(a)&&V.isObject(s)?V.mergeIf(a,s):t.hasOwnProperty(e)||(t[e]=V.clone(s))}},merge:function(e,t,r){var a=V.isArray(t)?t:[t],s=a.length,o,u,f,d,h;if(!V.isObject(e))return e;for(r=r||{},o=r.merger||V._merger,u=0;u<s;++u)if(t=a[u],!!V.isObject(t))for(f=Object.keys(t),h=0,d=f.length;h<d;++h)o(f[h],e,t,r);return e},mergeIf:function(e,t){return V.merge(e,t,{merger:V._mergerIf})},extend:Object.assign||function(e){return V.merge(e,[].slice.call(arguments,1),{merger:function(t,r,a){r[t]=a[t]}})},inherits:function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},a=function(){this.constructor=r};return a.prototype=t.prototype,r.prototype=new a,r.extend=V.inherits,e&&V.extend(r.prototype,e),r.__super__=t.prototype,r},_deprecated:function(e,t,r,a){t!==void 0&&console.warn(e+': "'+r+'" is deprecated. Please use "'+a+'" instead')}},_e=V;V.callCallback=V.callback,V.indexOf=function(e,t,r){return Array.prototype.indexOf.call(e,t,r)},V.getValueOrDefault=V.valueOrDefault,V.getValueAtIndexOrDefault=V.valueAtIndexOrDefault;var Ne={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e=e-1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e=e-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e=e-1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-Math.cos(e*(Math.PI/2))+1},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return e===0?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return e===1?1:-Math.pow(2,-10*e)+1},easeInOutExpo:function(e){return e===0?0:e===1?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e=e-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,a=1;return e===0?0:e===1?1:(r||(r=.3),t=r/(2*Math.PI)*Math.asin(1/a),-(a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},easeOutElastic:function(e){var t=1.70158,r=0,a=1;return e===0?0:e===1?1:(r||(r=.3),t=r/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,a=1;return e===0?0:(e/=.5)===2?1:(r||(r=.45),t=r/(2*Math.PI)*Math.asin(1/a),e<1?-.5*(a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):a*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e=e-1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:function(e){return 1-Ne.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?Ne.easeInBounce(e*2)*.5:Ne.easeOutBounce(e*2-1)*.5+.5}},At={effects:Ne};_e.easingEffects=Ne;var ve=Math.PI,De=ve/180,Je=ve*2,we=ve/2,Xe=ve/4,Nn=ve*2/3,ra={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,r,a,s,o){if(o){var u=Math.min(o,s/2,a/2),f=t+u,d=r+u,h=t+a-u,v=r+s-u;e.moveTo(t,d),f<h&&d<v?(e.arc(f,d,u,-ve,-we),e.arc(h,d,u,-we,0),e.arc(h,v,u,0,we),e.arc(f,v,u,we,ve)):f<h?(e.moveTo(f,r),e.arc(h,d,u,-we,we),e.arc(f,d,u,we,ve+we)):d<v?(e.arc(f,d,u,-ve,0),e.arc(f,v,u,0,ve)):e.arc(f,d,u,-ve,ve),e.closePath(),e.moveTo(t,r)}else e.rect(t,r,a,s)},drawPoint:function(e,t,r,a,s,o){var u,f,d,h,v,m=(o||0)*De;if(t&&typeof t=="object"&&(u=t.toString(),u==="[object HTMLImageElement]"||u==="[object HTMLCanvasElement]")){e.save(),e.translate(a,s),e.rotate(m),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),e.restore();return}if(!(isNaN(r)||r<=0)){switch(e.beginPath(),t){default:e.arc(a,s,r,0,Je),e.closePath();break;case"triangle":e.moveTo(a+Math.sin(m)*r,s-Math.cos(m)*r),m+=Nn,e.lineTo(a+Math.sin(m)*r,s-Math.cos(m)*r),m+=Nn,e.lineTo(a+Math.sin(m)*r,s-Math.cos(m)*r),e.closePath();break;case"rectRounded":v=r*.516,h=r-v,f=Math.cos(m+Xe)*h,d=Math.sin(m+Xe)*h,e.arc(a-f,s-d,v,m-ve,m-we),e.arc(a+d,s-f,v,m-we,m),e.arc(a+f,s+d,v,m,m+we),e.arc(a-d,s+f,v,m+we,m+ve),e.closePath();break;case"rect":if(!o){h=Math.SQRT1_2*r,e.rect(a-h,s-h,2*h,2*h);break}m+=Xe;case"rectRot":f=Math.cos(m)*r,d=Math.sin(m)*r,e.moveTo(a-f,s-d),e.lineTo(a+d,s-f),e.lineTo(a+f,s+d),e.lineTo(a-d,s+f),e.closePath();break;case"crossRot":m+=Xe;case"cross":f=Math.cos(m)*r,d=Math.sin(m)*r,e.moveTo(a-f,s-d),e.lineTo(a+f,s+d),e.moveTo(a+d,s-f),e.lineTo(a-d,s+f);break;case"star":f=Math.cos(m)*r,d=Math.sin(m)*r,e.moveTo(a-f,s-d),e.lineTo(a+f,s+d),e.moveTo(a+d,s-f),e.lineTo(a-d,s+f),m+=Xe,f=Math.cos(m)*r,d=Math.sin(m)*r,e.moveTo(a-f,s-d),e.lineTo(a+f,s+d),e.moveTo(a+d,s-f),e.lineTo(a-d,s+f);break;case"line":f=Math.cos(m)*r,d=Math.sin(m)*r,e.moveTo(a-f,s-d),e.lineTo(a+f,s+d);break;case"dash":e.moveTo(a,s),e.lineTo(a+Math.cos(m)*r,s+Math.sin(m)*r);break}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var r=1e-6;return e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,r,a){var s=r.steppedLine;if(s){if(s==="middle"){var o=(t.x+r.x)/2;e.lineTo(o,a?r.y:t.y),e.lineTo(o,a?t.y:r.y)}else s==="after"&&!a||s!=="after"&&a?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y);return}if(!r.tension){e.lineTo(r.x,r.y);return}e.bezierCurveTo(a?t.controlPointPreviousX:t.controlPointNextX,a?t.controlPointPreviousY:t.controlPointNextY,a?r.controlPointNextX:r.controlPointPreviousX,a?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y)}},Ef=ra;_e.clear=ra.clear,_e.drawRoundedRectangle=function(e){e.beginPath(),ra.roundedRect.apply(ra,arguments)};var Yn={_set:function(e,t){return _e.merge(this[e]||(this[e]={}),t)}};Yn._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var H=Yn,aa=_e.valueOrDefault;function zf(e){return!e||_e.isNullOrUndef(e.size)||_e.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var $f={toLineHeight:function(e,t){var r=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e},toPadding:function(e){var t,r,a,s;return _e.isObject(e)?(t=+e.top||0,r=+e.right||0,a=+e.bottom||0,s=+e.left||0):t=r=a=s=+e||0,{top:t,right:r,bottom:a,left:s,height:t+a,width:s+r}},_parseFont:function(e){var t=H.global,r=aa(e.fontSize,t.defaultFontSize),a={family:aa(e.fontFamily,t.defaultFontFamily),lineHeight:_e.options.toLineHeight(aa(e.lineHeight,t.defaultLineHeight),r),size:r,style:aa(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return a.string=zf(a),a},resolve:function(e,t,r,a){var s=!0,o,u,f;for(o=0,u=e.length;o<u;++o)if(f=e[o],f!==void 0&&(t!==void 0&&typeof f=="function"&&(f=f(t),s=!1),r!==void 0&&_e.isArray(f)&&(f=f[r],s=!1),f!==void 0))return a&&!s&&(a.cacheable=!1),f}},Hn={_factorize:function(e){var t=[],r=Math.sqrt(e),a;for(a=1;a<r;a++)e%a===0&&(t.push(a),t.push(e/a));return r===(r|0)&&t.push(r),t.sort(function(s,o){return s-o}).pop(),t},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,r=Math.round(t),a=e===Math.pow(10,r);return a?r:t}},Bf=Hn;_e.log10=Hn.log10;var jf=function(e,t){return{x:function(r){return e+e+t-r},setWidth:function(r){t=r},textAlign:function(r){return r==="center"?r:r==="right"?"left":"right"},xPlus:function(r,a){return r-a},leftForLtr:function(r,a){return r-a}}},Uf=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},Zf=function(e,t,r){return e?jf(t,r):Uf()},Gf=function(e,t){var r,a;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,a=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=a)},qf=function(e){var t=e.prevTextDirection;t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))},Kf={getRtlAdapter:Zf,overrideTextDirection:Gf,restoreTextDirection:qf},g=_e,Jf=At,Xf=Ef,Qf=$f,ec=Bf,tc=Kf;g.easing=Jf,g.canvas=Xf,g.options=Qf,g.math=ec,g.rtl=tc;function rc(e,t,r,a){var s=Object.keys(r),o,u,f,d,h,v,m,y,b;for(o=0,u=s.length;o<u;++o)if(f=s[o],v=r[f],t.hasOwnProperty(f)||(t[f]=v),d=t[f],!(d===v||f[0]==="_")){if(e.hasOwnProperty(f)||(e[f]=d),h=e[f],m=typeof v,m===typeof h){if(m==="string"){if(y=ce(h),y.valid&&(b=ce(v),b.valid)){t[f]=b.mix(y,a).rgbString();continue}}else if(g.isFinite(h)&&g.isFinite(v)){t[f]=h+(v-h)*a;continue}}t[f]=v}}var Xa=function(e){g.extend(this,e),this.initialize.apply(this,arguments)};g.extend(Xa.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=g.extend({},e._model)),e._start={},e},transition:function(e){var t=this,r=t._model,a=t._start,s=t._view;return!r||e===1?(t._view=g.extend({},r),t._start=null,t):(s||(s=t._view={}),a||(a=t._start={}),rc(a,s,r,e),t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return g.isNumber(this._model.x)&&g.isNumber(this._model.y)}}),Xa.extend=g.inherits;var Qe=Xa,Qa=Qe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),ei=Qa;Object.defineProperty(Qa.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Qa.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),H._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:g.noop,onComplete:g.noop}});var ti={animations:[],request:null,addAnimation:function(e,t,r,a){var s=this.animations,o,u;for(t.chart=e,t.startTime=Date.now(),t.duration=r,a||(e.animating=!0),o=0,u=s.length;o<u;++o)if(s[o].chart===e){s[o]=t;return}s.push(t),s.length===1&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=g.findIndex(this.animations,function(r){return r.chart===e});t!==-1&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;e.request===null&&(e.request=g.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e=this.animations,t,r,a,s,o=0;o<e.length;)t=e[o],r=t.chart,a=t.numSteps,s=Math.floor((Date.now()-t.startTime)/t.duration*a)+1,t.currentStep=Math.min(s,a),g.callback(t.render,[r,t],r),g.callback(t.onAnimationProgress,[t],r),t.currentStep>=a?(g.callback(t.onAnimationComplete,[t],r),r.animating=!1,e.splice(o,1)):++o}},Xt=g.options.resolve,Wn=["push","pop","shift","splice","unshift"];function ac(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Wn.forEach(function(r){var a="onData"+r.charAt(0).toUpperCase()+r.slice(1),s=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value:function(){var o=Array.prototype.slice.call(arguments),u=s.apply(this,o);return g.each(e._chartjs.listeners,function(f){typeof f[a]=="function"&&f[a].apply(f,o)}),u}})})}function Vn(e,t){var r=e._chartjs;if(r){var a=r.listeners,s=a.indexOf(t);s!==-1&&a.splice(s,1),!(a.length>0)&&(Wn.forEach(function(o){delete e[o]}),delete e._chartjs)}}var ri=function(e,t){this.initialize(e,t)};g.extend(ri.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this;r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),r=e.chart,a=r.scales,s=e.getDataset(),o=r.options.scales;(t.xAxisID===null||!(t.xAxisID in a)||s.xAxisID)&&(t.xAxisID=s.xAxisID||o.xAxes[0].id),(t.yAxisID===null||!(t.yAxisID in a)||s.yAxisID)&&(t.yAxisID=s.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Vn(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,r=t.dataElementType;return r&&new r({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e=this,t=e.getMeta(),r=e.getDataset().data||[],a=t.data,s,o;for(s=0,o=r.length;s<o;++s)a[s]=a[s]||e.createMetaData(s);t.dataset=t.dataset||e.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),r=t.data||(t.data=[]);e._data!==r&&(e._data&&Vn(e._data,e),r&&Object.isExtensible(r)&&ac(r,e),e._data=r),e.resyncElements()},_configure:function(){var e=this;e._config=g.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(t,r,a){t!=="_meta"&&t!=="data"&&g._merger(t,r,a)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:g.noop,transition:function(e){for(var t=this.getMeta(),r=t.data||[],a=r.length,s=0;s<a;++s)r[s].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],r=t.length,a=0;for(e.dataset&&e.dataset.draw();a<r;++a)t[a].draw()},getStyle:function(e){var t=this,r=t.getMeta(),a=r.dataset,s;return t._configure(),a&&e===void 0?s=t._resolveDatasetElementOptions(a||{}):(e=e||0,s=t._resolveDataElementOptions(r.data[e]||{},e)),(s.fill===!1||s.fill===null)&&(s.backgroundColor=s.borderColor),s},_resolveDatasetElementOptions:function(e,t){var r=this,a=r.chart,s=r._config,o=e.custom||{},u=a.options.elements[r.datasetElementType.prototype._type]||{},f=r._datasetElementOptions,d={},h,v,m,y,b={chart:a,dataset:r.getDataset(),datasetIndex:r.index,hover:t};for(h=0,v=f.length;h<v;++h)m=f[h],y=t?"hover"+m.charAt(0).toUpperCase()+m.slice(1):m,d[m]=Xt([o[y],s[y],u[y]],b);return d},_resolveDataElementOptions:function(e,t){var r=this,a=e&&e.custom,s=r._cachedDataOpts;if(s&&!a)return s;var o=r.chart,u=r._config,f=o.options.elements[r.dataElementType.prototype._type]||{},d=r._dataElementOptions,h={},v={chart:o,dataIndex:t,dataset:r.getDataset(),datasetIndex:r.index},m={cacheable:!a},y,b,x,w;if(a=a||{},g.isArray(d))for(b=0,x=d.length;b<x;++b)w=d[b],h[w]=Xt([a[w],u[w],f[w]],v,t,m);else for(y=Object.keys(d),b=0,x=y.length;b<x;++b)w=y[b],h[w]=Xt([a[w],u[d[w]],u[w],f[w]],v,t,m);return m.cacheable&&(r._cachedDataOpts=Object.freeze(h)),h},removeHoverStyle:function(e){g.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],r=e._index,a=e.custom||{},s=e._model,o=g.getHoverColor;e.$previousStyle={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth},s.backgroundColor=Xt([a.hoverBackgroundColor,t.hoverBackgroundColor,o(s.backgroundColor)],void 0,r),s.borderColor=Xt([a.hoverBorderColor,t.hoverBorderColor,o(s.borderColor)],void 0,r),s.borderWidth=Xt([a.hoverBorderWidth,t.hoverBorderWidth,s.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e=this.getMeta().dataset,t={},r,a,s,o,u,f;if(e){for(f=e._model,u=this._resolveDatasetElementOptions(e,!0),o=Object.keys(u),r=0,a=o.length;r<a;++r)s=o[r],t[s]=f[s],f[s]=u[s];e.$previousStyle=t}},resyncElements:function(){var e=this,t=e.getMeta(),r=e.getDataset().data,a=t.data.length,s=r.length;s<a?t.data.splice(s,a-s):s>a&&e.insertElements(a,s-a)},insertElements:function(e,t){for(var r=0;r<t;++r)this.addElementAndReset(e+r)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),ri.extend=g.inherits;var Ve=ri,et=Math.PI*2;H._set("global",{elements:{arc:{backgroundColor:H.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});function En(e,t){var r=t.startAngle,a=t.endAngle,s=t.pixelMargin,o=s/t.outerRadius,u=t.x,f=t.y;e.beginPath(),e.arc(u,f,t.outerRadius,r-o,a+o),t.innerRadius>s?(o=s/t.innerRadius,e.arc(u,f,t.innerRadius-s,a+o,r-o,!0)):e.arc(u,f,s,a+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}function ic(e,t,r,a){var s=r.endAngle,o;for(a&&(r.endAngle=r.startAngle+et,En(e,r),r.endAngle=s,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=et,r.fullCircles--)),e.beginPath(),e.arc(r.x,r.y,r.innerRadius,r.startAngle+et,r.startAngle,!0),o=0;o<r.fullCircles;++o)e.stroke();for(e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.startAngle+et),o=0;o<r.fullCircles;++o)e.stroke()}function nc(e,t,r){var a=t.borderAlign==="inner";a?(e.lineWidth=t.borderWidth*2,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),r.fullCircles&&ic(e,t,r,a),a&&En(e,r),e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),e.stroke()}var sc=Qe.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return t?Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2):!1},inRange:function(e,t){var r=this._view;if(r){for(var a=g.getAngleFromPoint(r,{x:e,y:t}),s=a.angle,o=a.distance,u=r.startAngle,f=r.endAngle;f<u;)f+=et;for(;s>f;)s-=et;for(;s<u;)s+=et;var d=s>=u&&s<=f,h=o>=r.innerRadius&&o<=r.outerRadius;return d&&h}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,r=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var e=this._chart.ctx,t=this._view,r=t.borderAlign==="inner"?.33:0,a={x:t.x,y:t.y,innerRadius:t.innerRadius,outerRadius:Math.max(t.outerRadius-r,0),pixelMargin:r,startAngle:t.startAngle,endAngle:t.endAngle,fullCircles:Math.floor(t.circumference/et)},s;if(e.save(),e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+et,e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),s=0;s<a.fullCircles;++s)e.fill();a.endAngle=a.startAngle+t.circumference%et}e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),e.fill(),t.borderWidth&&nc(e,t,a),e.restore()}}),zn=g.valueOrDefault,$n=H.global.defaultColor;H._set("global",{elements:{line:{tension:.4,backgroundColor:$n,borderWidth:3,borderColor:$n,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var oc=Qe.extend({_type:"line",draw:function(){var e=this,t=e._view,r=e._chart.ctx,a=t.spanGaps,s=e._children.slice(),o=H.global,u=o.elements.line,f=-1,d=e._loop,h,v,m;if(s.length){if(e._loop){for(h=0;h<s.length;++h)if(v=g.previousItem(s,h),!s[h]._view.skip&&v._view.skip){s=s.slice(h).concat(s.slice(0,h)),d=a;break}d&&s.push(s[0])}for(r.save(),r.lineCap=t.borderCapStyle||u.borderCapStyle,r.setLineDash&&r.setLineDash(t.borderDash||u.borderDash),r.lineDashOffset=zn(t.borderDashOffset,u.borderDashOffset),r.lineJoin=t.borderJoinStyle||u.borderJoinStyle,r.lineWidth=zn(t.borderWidth,u.borderWidth),r.strokeStyle=t.borderColor||o.defaultColor,r.beginPath(),m=s[0]._view,m.skip||(r.moveTo(m.x,m.y),f=0),h=1;h<s.length;++h)m=s[h]._view,v=f===-1?g.previousItem(s,h):s[f],m.skip||(f!==h-1&&!a||f===-1?r.moveTo(m.x,m.y):g.canvas.lineTo(r,v._view,m),f=h);d&&r.closePath(),r.stroke(),r.restore()}}}),lc=g.valueOrDefault,Bn=H.global.defaultColor;H._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Bn,borderColor:Bn,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});function jn(e){var t=this._view;return t?Math.abs(e-t.x)<t.radius+t.hitRadius:!1}function uc(e){var t=this._view;return t?Math.abs(e-t.y)<t.radius+t.hitRadius:!1}var dc=Qe.extend({_type:"point",inRange:function(e,t){var r=this._view;return r?Math.pow(e-r.x,2)+Math.pow(t-r.y,2)<Math.pow(r.hitRadius+r.radius,2):!1},inLabelRange:jn,inXRange:jn,inYRange:uc,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,r=this._chart.ctx,a=t.pointStyle,s=t.rotation,o=t.radius,u=t.x,f=t.y,d=H.global,h=d.defaultColor;t.skip||(e===void 0||g.canvas._isPointInArea(t,e))&&(r.strokeStyle=t.borderColor||h,r.lineWidth=lc(t.borderWidth,d.elements.point.borderWidth),r.fillStyle=t.backgroundColor||h,g.canvas.drawPoint(r,a,o,u,f,s))}}),Un=H.global.defaultColor;H._set("global",{elements:{rectangle:{backgroundColor:Un,borderColor:Un,borderSkipped:"bottom",borderWidth:0}}});function ia(e){return e&&e.width!==void 0}function Zn(e){var t,r,a,s,o;return ia(e)?(o=e.width/2,t=e.x-o,r=e.x+o,a=Math.min(e.y,e.base),s=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),r=Math.max(e.x,e.base),a=e.y-o,s=e.y+o),{left:t,top:a,right:r,bottom:s}}function Gn(e,t,r){return e===t?r:e===r?t:e}function fc(e){var t=e.borderSkipped,r={};return t&&(e.horizontal?e.base>e.x&&(t=Gn(t,"left","right")):e.base<e.y&&(t=Gn(t,"bottom","top")),r[t]=!0),r}function cc(e,t,r){var a=e.borderWidth,s=fc(e),o,u,f,d;return g.isObject(a)?(o=+a.top||0,u=+a.right||0,f=+a.bottom||0,d=+a.left||0):o=u=f=d=+a||0,{t:s.top||o<0?0:o>r?r:o,r:s.right||u<0?0:u>t?t:u,b:s.bottom||f<0?0:f>r?r:f,l:s.left||d<0?0:d>t?t:d}}function hc(e){var t=Zn(e),r=t.right-t.left,a=t.bottom-t.top,s=cc(e,r/2,a/2);return{outer:{x:t.left,y:t.top,w:r,h:a},inner:{x:t.left+s.l,y:t.top+s.t,w:r-s.l-s.r,h:a-s.t-s.b}}}function wr(e,t,r){var a=t===null,s=r===null,o=!e||a&&s?!1:Zn(e);return o&&(a||t>=o.left&&t<=o.right)&&(s||r>=o.top&&r<=o.bottom)}var vc=Qe.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=hc(t),a=r.outer,s=r.inner;e.fillStyle=t.backgroundColor,e.fillRect(a.x,a.y,a.w,a.h),!(a.w===s.w&&a.h===s.h)&&(e.save(),e.beginPath(),e.rect(a.x,a.y,a.w,a.h),e.clip(),e.fillStyle=t.borderColor,e.rect(s.x,s.y,s.w,s.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return wr(this._view,e,t)},inLabelRange:function(e,t){var r=this._view;return ia(r)?wr(r,e,null):wr(r,null,t)},inXRange:function(e){return wr(this._view,e,null)},inYRange:function(e){return wr(this._view,null,e)},getCenterPoint:function(){var e=this._view,t,r;return ia(e)?(t=e.x,r=(e.y+e.base)/2):(t=(e.x+e.base)/2,r=e.y),{x:t,y:r}},getArea:function(){var e=this._view;return ia(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Te={},mc=sc,gc=oc,pc=dc,yc=vc;Te.Arc=mc,Te.Line=gc,Te.Point=pc,Te.Rectangle=yc;var Mr=g._deprecated,Qt=g.valueOrDefault;H._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),H._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});function bc(e,t){var r=e._length,a,s,o,u;for(o=1,u=t.length;o<u;++o)r=Math.min(r,Math.abs(t[o]-t[o-1]));for(o=0,u=e.getTicks().length;o<u;++o)s=e.getPixelForTick(o),r=o>0?Math.min(r,Math.abs(s-a)):r,a=s;return r}function _c(e,t,r){var a=r.barThickness,s=t.stackCount,o=t.pixels[e],u=g.isNullOrUndef(a)?bc(t.scale,t.pixels):-1,f,d;return g.isNullOrUndef(a)?(f=u*r.categoryPercentage,d=r.barPercentage):(f=a*s,d=1),{chunk:f/s,ratio:d,start:o-f/2}}function xc(e,t,r){var a=t.pixels,s=a[e],o=e>0?a[e-1]:null,u=e<a.length-1?a[e+1]:null,f=r.categoryPercentage,d,h;return o===null&&(o=s-(u===null?t.end-t.start:u-s)),u===null&&(u=s+s-o),d=s-(s-Math.min(o,u))/2*f,h=Math.abs(u-o)/2*f,{chunk:h/t.stackCount,ratio:r.barPercentage,start:d}}var qn=Ve.extend({dataElementType:Te.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e=this,t,r;Ve.prototype.initialize.apply(e,arguments),t=e.getMeta(),t.stack=e.getDataset().stack,t.bar=!0,r=e._getIndexScale().options,Mr("bar chart",r.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Mr("bar chart",r.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Mr("bar chart",r.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Mr("bar chart",e._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Mr("bar chart",r.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t=this,r=t.getMeta().data,a,s;for(t._ruler=t.getRuler(),a=0,s=r.length;a<s;++a)t.updateElement(r[a],a,e)},updateElement:function(e,t,r){var a=this,s=a.getMeta(),o=a.getDataset(),u=a._resolveDataElementOptions(e,t);e._xScale=a.getScaleForId(s.xAxisID),e._yScale=a.getScaleForId(s.yAxisID),e._datasetIndex=a.index,e._index=t,e._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderSkipped:u.borderSkipped,borderWidth:u.borderWidth,datasetLabel:o.label,label:a.chart.data.labels[t]},g.isArray(o.data[t])&&(e._model.borderSkipped=null),a._updateElementGeometry(e,t,r,u),e.pivot()},_updateElementGeometry:function(e,t,r,a){var s=this,o=e._model,u=s._getValueScale(),f=u.getBasePixel(),d=u.isHorizontal(),h=s._ruler||s.getRuler(),v=s.calculateBarValuePixels(s.index,t,a),m=s.calculateBarIndexPixels(s.index,t,h,a);o.horizontal=d,o.base=r?f:v.base,o.x=d?r?f:v.head:m.center,o.y=d?m.center:r?f:v.head,o.height=d?m.size:void 0,o.width=d?void 0:m.size},_getStacks:function(e){var t=this,r=t._getIndexScale(),a=r._getMatchingVisibleMetas(t._type),s=r.options.stacked,o=a.length,u=[],f,d;for(f=0;f<o&&(d=a[f],(s===!1||u.indexOf(d.stack)===-1||s===void 0&&d.stack===void 0)&&u.push(d.stack),d.index!==e);++f);return u},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var r=this._getStacks(e),a=t!==void 0?r.indexOf(t):-1;return a===-1?r.length-1:a},getRuler:function(){var e=this,t=e._getIndexScale(),r=[],a,s;for(a=0,s=e.getMeta().data.length;a<s;++a)r.push(t.getPixelForValue(null,a,e.index));return{pixels:r,start:t._startPixel,end:t._endPixel,stackCount:e.getStackCount(),scale:t}},calculateBarValuePixels:function(e,t,r){var a=this,s=a.chart,o=a._getValueScale(),u=o.isHorizontal(),f=s.data.datasets,d=o._getMatchingVisibleMetas(a._type),h=o._parseValue(f[e].data[t]),v=r.minBarLength,m=o.options.stacked,y=a.getMeta().stack,b=h.start===void 0?0:h.max>=0&&h.min>=0?h.min:h.max,x=h.start===void 0?h.end:h.max>=0&&h.min>=0?h.max-h.min:h.min-h.max,w=d.length,k,D,F,R,j,B,ee;if(m||m===void 0&&y!==void 0)for(k=0;k<w&&(D=d[k],D.index!==e);++k)D.stack===y&&(ee=o._parseValue(f[D.index].data[t]),F=ee.start===void 0?ee.end:ee.min>=0&&ee.max>=0?ee.max:ee.min,(h.min<0&&F<0||h.max>=0&&F>0)&&(b+=F));return R=o.getPixelForValue(b),j=o.getPixelForValue(b+x),B=j-R,v!==void 0&&Math.abs(B)<v&&(B=v,x>=0&&!u||x<0&&u?j=R-v:j=R+v),{size:B,base:R,head:j,center:j+B/2}},calculateBarIndexPixels:function(e,t,r,a){var s=this,o=a.barThickness==="flex"?xc(t,r,a):_c(t,r,a),u=s.getStackIndex(e,s.getMeta().stack),f=o.start+o.chunk*u+o.chunk/2,d=Math.min(Qt(a.maxBarThickness,1/0),o.chunk*o.ratio);return{base:f-d/2,head:f+d/2,center:f,size:d}},draw:function(){var e=this,t=e.chart,r=e._getValueScale(),a=e.getMeta().data,s=e.getDataset(),o=a.length,u=0;for(g.canvas.clipArea(t.ctx,t.chartArea);u<o;++u){var f=r._parseValue(s.data[u]);!isNaN(f.min)&&!isNaN(f.max)&&a[u].draw()}g.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=g.extend({},Ve.prototype._resolveDataElementOptions.apply(e,arguments)),r=e._getIndexScale().options,a=e._getValueScale().options;return t.barPercentage=Qt(r.barPercentage,t.barPercentage),t.barThickness=Qt(r.barThickness,t.barThickness),t.categoryPercentage=Qt(r.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Qt(r.maxBarThickness,t.maxBarThickness),t.minBarLength=Qt(a.minBarLength,t.minBarLength),t}}),ai=g.valueOrDefault,wc=g.options.resolve;H._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.datasets[e.datasetIndex].label||"",a=t.datasets[e.datasetIndex].data[e.index];return r+": ("+e.xLabel+", "+e.yLabel+", "+a.r+")"}}}});var Mc=Ve.extend({dataElementType:Te.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,r=t.getMeta(),a=r.data;g.each(a,function(s,o){t.updateElement(s,o,e)})},updateElement:function(e,t,r){var a=this,s=a.getMeta(),o=e.custom||{},u=a.getScaleForId(s.xAxisID),f=a.getScaleForId(s.yAxisID),d=a._resolveDataElementOptions(e,t),h=a.getDataset().data[t],v=a.index,m=r?u.getPixelForDecimal(.5):u.getPixelForValue(typeof h=="object"?h:NaN,t,v),y=r?f.getBasePixel():f.getPixelForValue(h,t,v);e._xScale=u,e._yScale=f,e._options=d,e._datasetIndex=v,e._index=t,e._model={backgroundColor:d.backgroundColor,borderColor:d.borderColor,borderWidth:d.borderWidth,hitRadius:d.hitRadius,pointStyle:d.pointStyle,rotation:d.rotation,radius:r?0:d.radius,skip:o.skip||isNaN(m)||isNaN(y),x:m,y},e.pivot()},setHoverStyle:function(e){var t=e._model,r=e._options,a=g.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ai(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=ai(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=ai(r.hoverBorderWidth,r.borderWidth),t.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(e,t){var r=this,a=r.chart,s=r.getDataset(),o=e.custom||{},u=s.data[t]||{},f=Ve.prototype._resolveDataElementOptions.apply(r,arguments),d={chart:a,dataIndex:t,dataset:s,datasetIndex:r.index};return r._cachedDataOpts===f&&(f=g.extend({},f)),f.radius=wc([o.radius,u.r,r._config.radius,a.options.elements.point.radius],d,t),f}}),na=g.valueOrDefault,Ft=Math.PI,ct=Ft*2,Lt=Ft/2;H._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=document.createElement("ul"),r=e.data,a=r.datasets,s=r.labels,o,u,f,d;if(t.setAttribute("class",e.id+"-legend"),a.length)for(o=0,u=a[0].data.length;o<u;++o)f=t.appendChild(document.createElement("li")),d=f.appendChild(document.createElement("span")),d.style.backgroundColor=a[0].backgroundColor[o],s[o]&&f.appendChild(document.createTextNode(s[o]));return t.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,a){var s=e.getDatasetMeta(0),o=s.controller.getStyle(a);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[a])||s.data[a].hidden,index:a}}):[]}},onClick:function(e,t){var r=t.index,a=this.chart,s,o,u;for(s=0,o=(a.data.datasets||[]).length;s<o;++s)u=a.getDatasetMeta(s),u.data[r]&&(u.data[r].hidden=!u.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-Lt,circumference:ct,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.labels[e.index],a=": "+t.datasets[e.datasetIndex].data[e.index];return g.isArray(r)?(r=r.slice(),r[0]+=a):r+=a,r}}}});var Kn=Ve.extend({dataElementType:Te.Arc,linkScales:g.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&++t;return t},update:function(e){var t=this,r=t.chart,a=r.chartArea,s=r.options,o=1,u=1,f=0,d=0,h=t.getMeta(),v=h.data,m=s.cutoutPercentage/100||0,y=s.circumference,b=t._getRingWeight(t.index),x,w,k,D;if(y<ct){var F=s.rotation%ct;F+=F>=Ft?-ct:F<-Ft?ct:0;var R=F+y,j=Math.cos(F),B=Math.sin(F),ee=Math.cos(R),J=Math.sin(R),ne=F<=0&&R>=0||R>=ct,le=F<=Lt&&R>=Lt||R>=ct+Lt,Me=F===-Ft||R>=Ft,xe=F<=-Lt&&R>=-Lt||R>=Ft+Lt,pe=Me?-1:Math.min(j,j*m,ee,ee*m),ke=xe?-1:Math.min(B,B*m,J,J*m),ir=ne?1:Math.max(j,j*m,ee,ee*m),nr=le?1:Math.max(B,B*m,J,J*m);o=(ir-pe)/2,u=(nr-ke)/2,f=-(ir+pe)/2,d=-(nr+ke)/2}for(k=0,D=v.length;k<D;++k)v[k]._options=t._resolveDataElementOptions(v[k],k);for(r.borderWidth=t.getMaxBorderWidth(),x=(a.right-a.left-r.borderWidth)/o,w=(a.bottom-a.top-r.borderWidth)/u,r.outerRadius=Math.max(Math.min(x,w)/2,0),r.innerRadius=Math.max(r.outerRadius*m,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(t._getVisibleDatasetWeightTotal()||1),r.offsetX=f*r.outerRadius,r.offsetY=d*r.outerRadius,h.total=t.calculateTotal(),t.outerRadius=r.outerRadius-r.radiusLength*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-r.radiusLength*b,0),k=0,D=v.length;k<D;++k)t.updateElement(v[k],k,e)},updateElement:function(e,t,r){var a=this,s=a.chart,o=s.chartArea,u=s.options,f=u.animation,d=(o.left+o.right)/2,h=(o.top+o.bottom)/2,v=u.rotation,m=u.rotation,y=a.getDataset(),b=r&&f.animateRotate||e.hidden?0:a.calculateCircumference(y.data[t])*(u.circumference/ct),x=r&&f.animateScale?0:a.innerRadius,w=r&&f.animateScale?0:a.outerRadius,k=e._options||{};g.extend(e,{_datasetIndex:a.index,_index:t,_model:{backgroundColor:k.backgroundColor,borderColor:k.borderColor,borderWidth:k.borderWidth,borderAlign:k.borderAlign,x:d+s.offsetX,y:h+s.offsetY,startAngle:v,endAngle:m,circumference:b,outerRadius:w,innerRadius:x,label:g.valueAtIndexOrDefault(y.label,t,s.data.labels[t])}});var D=e._model;(!r||!f.animateRotate)&&(t===0?D.startAngle=u.rotation:D.startAngle=a.getMeta().data[t-1]._model.endAngle,D.endAngle=D.startAngle+D.circumference),e.pivot()},calculateTotal:function(){var e=this.getDataset(),t=this.getMeta(),r=0,a;return g.each(t.data,function(s,o){a=e.data[o],!isNaN(a)&&!s.hidden&&(r+=Math.abs(a))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?ct*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t=this,r=0,a=t.chart,s,o,u,f,d,h,v,m;if(!e){for(s=0,o=a.data.datasets.length;s<o;++s)if(a.isDatasetVisible(s)){u=a.getDatasetMeta(s),e=u.data,s!==t.index&&(d=u.controller);break}}if(!e)return 0;for(s=0,o=e.length;s<o;++s)f=e[s],d?(d._configure(),h=d._resolveDataElementOptions(f,s)):h=f._options,h.borderAlign!=="inner"&&(v=h.borderWidth,m=h.hoverBorderWidth,r=v>r?v:r,r=m>r?m:r);return r},setHoverStyle:function(e){var t=e._model,r=e._options,a=g.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=na(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=na(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=na(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t},_getRingWeight:function(e){return Math.max(na(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});H._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),H._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var kc=qn.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),ht=g.valueOrDefault,Sc=g.options.resolve,ii=g.canvas._isPointInArea;H._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});function Jn(e,t){var r=e&&e.options.ticks||{},a=r.reverse,s=r.min===void 0?t:0,o=r.max===void 0?t:0;return{start:a?o:s,end:a?s:o}}function Dc(e,t,r){var a=r/2,s=Jn(e,a),o=Jn(t,a);return{top:o.end,right:s.end,bottom:o.start,left:s.start}}function Cc(e){var t,r,a,s;return g.isObject(e)?(t=e.top,r=e.right,a=e.bottom,s=e.left):t=r=a=s=e,{top:t,right:r,bottom:a,left:s}}var Xn=Ve.extend({datasetElementType:Te.Line,dataElementType:Te.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t=this,r=t.getMeta(),a=r.dataset,s=r.data||[],o=t.chart.options,u=t._config,f=t._showLine=ht(u.showLine,o.showLines),d,h;for(t._xScale=t.getScaleForId(r.xAxisID),t._yScale=t.getScaleForId(r.yAxisID),f&&(u.tension!==void 0&&u.lineTension===void 0&&(u.lineTension=u.tension),a._scale=t._yScale,a._datasetIndex=t.index,a._children=s,a._model=t._resolveDatasetElementOptions(a),a.pivot()),d=0,h=s.length;d<h;++d)t.updateElement(s[d],d,e);for(f&&a._model.tension!==0&&t.updateBezierControlPoints(),d=0,h=s.length;d<h;++d)s[d].pivot()},updateElement:function(e,t,r){var a=this,s=a.getMeta(),o=e.custom||{},u=a.getDataset(),f=a.index,d=u.data[t],h=a._xScale,v=a._yScale,m=s.dataset._model,y,b,x=a._resolveDataElementOptions(e,t);y=h.getPixelForValue(typeof d=="object"?d:NaN,t,f),b=r?v.getBasePixel():a.calculatePointY(d,t,f),e._xScale=h,e._yScale=v,e._options=x,e._datasetIndex=f,e._index=t,e._model={x:y,y:b,skip:o.skip||isNaN(y)||isNaN(b),radius:x.radius,pointStyle:x.pointStyle,rotation:x.rotation,backgroundColor:x.backgroundColor,borderColor:x.borderColor,borderWidth:x.borderWidth,tension:ht(o.tension,m?m.tension:0),steppedLine:m?m.steppedLine:!1,hitRadius:x.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,r=t._config,a=e.custom||{},s=t.chart.options,o=s.elements.line,u=Ve.prototype._resolveDatasetElementOptions.apply(t,arguments);return u.spanGaps=ht(r.spanGaps,s.spanGaps),u.tension=ht(r.lineTension,o.tension),u.steppedLine=Sc([a.steppedLine,r.steppedLine,o.stepped]),u.clip=Cc(ht(r.clip,Dc(t._xScale,t._yScale,u.borderWidth))),u},calculatePointY:function(e,t,r){var a=this,s=a.chart,o=a._yScale,u=0,f=0,d,h,v,m,y,b,x;if(o.options.stacked){for(y=+o.getRightValue(e),b=s._getSortedVisibleDatasetMetas(),x=b.length,d=0;d<x&&(v=b[d],v.index!==r);++d)h=s.data.datasets[v.index],v.type==="line"&&v.yAxisID===o.id&&(m=+o.getRightValue(h.data[t]),m<0?f+=m||0:u+=m||0);return y<0?o.getPixelForValue(f+y):o.getPixelForValue(u+y)}return o.getPixelForValue(e)},updateBezierControlPoints:function(){var e=this,t=e.chart,r=e.getMeta(),a=r.dataset._model,s=t.chartArea,o=r.data||[],u,f,d,h;a.spanGaps&&(o=o.filter(function(m){return!m._model.skip}));function v(m,y,b){return Math.max(Math.min(m,b),y)}if(a.cubicInterpolationMode==="monotone")g.splineCurveMonotone(o);else for(u=0,f=o.length;u<f;++u)d=o[u]._model,h=g.splineCurve(g.previousItem(o,u)._model,d,g.nextItem(o,u)._model,a.tension),d.controlPointPreviousX=h.previous.x,d.controlPointPreviousY=h.previous.y,d.controlPointNextX=h.next.x,d.controlPointNextY=h.next.y;if(t.options.elements.line.capBezierPoints)for(u=0,f=o.length;u<f;++u)d=o[u]._model,ii(d,s)&&(u>0&&ii(o[u-1]._model,s)&&(d.controlPointPreviousX=v(d.controlPointPreviousX,s.left,s.right),d.controlPointPreviousY=v(d.controlPointPreviousY,s.top,s.bottom)),u<o.length-1&&ii(o[u+1]._model,s)&&(d.controlPointNextX=v(d.controlPointNextX,s.left,s.right),d.controlPointNextY=v(d.controlPointNextY,s.top,s.bottom)))},draw:function(){var e=this,t=e.chart,r=e.getMeta(),a=r.data||[],s=t.chartArea,o=t.canvas,u=0,f=a.length,d;for(e._showLine&&(d=r.dataset._model.clip,g.canvas.clipArea(t.ctx,{left:d.left===!1?0:s.left-d.left,right:d.right===!1?o.width:s.right+d.right,top:d.top===!1?0:s.top-d.top,bottom:d.bottom===!1?o.height:s.bottom+d.bottom}),r.dataset.draw(),g.canvas.unclipArea(t.ctx));u<f;++u)a[u].draw(s)},setHoverStyle:function(e){var t=e._model,r=e._options,a=g.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ht(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=ht(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=ht(r.hoverBorderWidth,r.borderWidth),t.radius=ht(r.hoverRadius,r.radius)}}),Oc=g.options.resolve;H._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=document.createElement("ul"),r=e.data,a=r.datasets,s=r.labels,o,u,f,d;if(t.setAttribute("class",e.id+"-legend"),a.length)for(o=0,u=a[0].data.length;o<u;++o)f=t.appendChild(document.createElement("li")),d=f.appendChild(document.createElement("span")),d.style.backgroundColor=a[0].backgroundColor[o],s[o]&&f.appendChild(document.createTextNode(s[o]));return t.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,a){var s=e.getDatasetMeta(0),o=s.controller.getStyle(a);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[a])||s.data[a].hidden,index:a}}):[]}},onClick:function(e,t){var r=t.index,a=this.chart,s,o,u;for(s=0,o=(a.data.datasets||[]).length;s<o;++s)u=a.getDatasetMeta(s),u.data[r].hidden=!u.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Pc=Ve.extend({dataElementType:Te.Arc,linkScales:g.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t=this,r=t.getDataset(),a=t.getMeta(),s=t.chart.options.startAngle||0,o=t._starts=[],u=t._angles=[],f=a.data,d,h,v;for(t._updateRadius(),a.count=t.countVisibleElements(),d=0,h=r.data.length;d<h;d++)o[d]=s,v=t._computeAngle(d),u[d]=v,s+=v;for(d=0,h=f.length;d<h;++d)f[d]._options=t._resolveDataElementOptions(f[d],d),t.updateElement(f[d],d,e)},_updateRadius:function(){var e=this,t=e.chart,r=t.chartArea,a=t.options,s=Math.min(r.right-r.left,r.bottom-r.top);t.outerRadius=Math.max(s/2,0),t.innerRadius=Math.max(a.cutoutPercentage?t.outerRadius/100*a.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,r){var a=this,s=a.chart,o=a.getDataset(),u=s.options,f=u.animation,d=s.scale,h=s.data.labels,v=d.xCenter,m=d.yCenter,y=u.startAngle,b=e.hidden?0:d.getDistanceFromCenterForValue(o.data[t]),x=a._starts[t],w=x+(e.hidden?0:a._angles[t]),k=f.animateScale?0:d.getDistanceFromCenterForValue(o.data[t]),D=e._options||{};g.extend(e,{_datasetIndex:a.index,_index:t,_scale:d,_model:{backgroundColor:D.backgroundColor,borderColor:D.borderColor,borderWidth:D.borderWidth,borderAlign:D.borderAlign,x:v,y:m,innerRadius:0,outerRadius:r?k:b,startAngle:r&&f.animateRotate?y:x,endAngle:r&&f.animateRotate?y:w,label:g.valueAtIndexOrDefault(h,t,h[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),r=0;return g.each(t.data,function(a,s){!isNaN(e.data[s])&&!a.hidden&&r++}),r},setHoverStyle:function(e){var t=e._model,r=e._options,a=g.getHoverColor,s=g.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=s(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=s(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=s(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(e){var t=this,r=this.getMeta().count,a=t.getDataset(),s=t.getMeta();if(isNaN(a.data[e])||s.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:a,datasetIndex:t.index};return Oc([t.chart.options.elements.arc.angle,2*Math.PI/r],o,e)}});H._set("pie",g.clone(H.doughnut)),H._set("pie",{cutoutPercentage:0});var Tc=Kn,It=g.valueOrDefault;H._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Ac=Ve.extend({datasetElementType:Te.Line,dataElementType:Te.Point,linkScales:g.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t=this,r=t.getMeta(),a=r.dataset,s=r.data||[],o=t.chart.scale,u=t._config,f,d;for(u.tension!==void 0&&u.lineTension===void 0&&(u.lineTension=u.tension),a._scale=o,a._datasetIndex=t.index,a._children=s,a._loop=!0,a._model=t._resolveDatasetElementOptions(a),a.pivot(),f=0,d=s.length;f<d;++f)t.updateElement(s[f],f,e);for(t.updateBezierControlPoints(),f=0,d=s.length;f<d;++f)s[f].pivot()},updateElement:function(e,t,r){var a=this,s=e.custom||{},o=a.getDataset(),u=a.chart.scale,f=u.getPointPositionForValue(t,o.data[t]),d=a._resolveDataElementOptions(e,t),h=a.getMeta().dataset._model,v=r?u.xCenter:f.x,m=r?u.yCenter:f.y;e._scale=u,e._options=d,e._datasetIndex=a.index,e._index=t,e._model={x:v,y:m,skip:s.skip||isNaN(v)||isNaN(m),radius:d.radius,pointStyle:d.pointStyle,rotation:d.rotation,backgroundColor:d.backgroundColor,borderColor:d.borderColor,borderWidth:d.borderWidth,tension:It(s.tension,h?h.tension:0),hitRadius:d.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,r=e.chart.options,a=Ve.prototype._resolveDatasetElementOptions.apply(e,arguments);return a.spanGaps=It(t.spanGaps,r.spanGaps),a.tension=It(t.lineTension,r.elements.line.tension),a},updateBezierControlPoints:function(){var e=this,t=e.getMeta(),r=e.chart.chartArea,a=t.data||[],s,o,u,f;t.dataset._model.spanGaps&&(a=a.filter(function(h){return!h._model.skip}));function d(h,v,m){return Math.max(Math.min(h,m),v)}for(s=0,o=a.length;s<o;++s)u=a[s]._model,f=g.splineCurve(g.previousItem(a,s,!0)._model,u,g.nextItem(a,s,!0)._model,u.tension),u.controlPointPreviousX=d(f.previous.x,r.left,r.right),u.controlPointPreviousY=d(f.previous.y,r.top,r.bottom),u.controlPointNextX=d(f.next.x,r.left,r.right),u.controlPointNextY=d(f.next.y,r.top,r.bottom)},setHoverStyle:function(e){var t=e._model,r=e._options,a=g.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=It(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=It(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=It(r.hoverBorderWidth,r.borderWidth),t.radius=It(r.hoverRadius,r.radius)}});H._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),H._set("global",{datasets:{scatter:{showLine:!1}}});var Fc=Xn,Qn={bar:qn,bubble:Mc,doughnut:Kn,horizontalBar:kc,line:Xn,polarArea:Pc,pie:Tc,radar:Ac,scatter:Fc};function Rt(e,t){return e.native?{x:e.x,y:e.y}:g.getRelativePosition(e,t)}function kr(e,t){var r=e._getSortedVisibleDatasetMetas(),a,s,o,u,f,d;for(s=0,u=r.length;s<u;++s)for(a=r[s].data,o=0,f=a.length;o<f;++o)d=a[o],d._view.skip||t(d)}function ni(e,t){var r=[];return kr(e,function(a){a.inRange(t.x,t.y)&&r.push(a)}),r}function si(e,t,r,a){var s=Number.POSITIVE_INFINITY,o=[];return kr(e,function(u){if(!(r&&!u.inRange(t.x,t.y))){var f=u.getCenterPoint(),d=a(t,f);d<s?(o=[u],s=d):d===s&&o.push(u)}}),o}function oi(e){var t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(a,s){var o=t?Math.abs(a.x-s.x):0,u=r?Math.abs(a.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(u,2))}}function li(e,t,r){var a=Rt(t,e);r.axis=r.axis||"x";var s=oi(r.axis),o=r.intersect?ni(e,a):si(e,a,!1,s),u=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach(function(f){var d=f.data[o[0]._index];d&&!d._view.skip&&u.push(d)}),u):[]}var er={modes:{single:function(e,t){var r=Rt(t,e),a=[];return kr(e,function(s){if(s.inRange(r.x,r.y))return a.push(s),a}),a.slice(0,1)},label:li,index:li,dataset:function(e,t,r){var a=Rt(t,e);r.axis=r.axis||"xy";var s=oi(r.axis),o=r.intersect?ni(e,a):si(e,a,!1,s);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return li(e,t,{intersect:!1})},point:function(e,t){var r=Rt(t,e);return ni(e,r)},nearest:function(e,t,r){var a=Rt(t,e);r.axis=r.axis||"xy";var s=oi(r.axis);return si(e,a,r.intersect,s)},x:function(e,t,r){var a=Rt(t,e),s=[],o=!1;return kr(e,function(u){u.inXRange(a.x)&&s.push(u),u.inRange(a.x,a.y)&&(o=!0)}),r.intersect&&!o&&(s=[]),s},y:function(e,t,r){var a=Rt(t,e),s=[],o=!1;return kr(e,function(u){u.inYRange(a.y)&&s.push(u),u.inRange(a.x,a.y)&&(o=!0)}),r.intersect&&!o&&(s=[]),s}}},ui=g.extend;function Sr(e,t){return g.where(e,function(r){return r.pos===t})}function sa(e,t){return e.sort(function(r,a){var s=t?a:r,o=t?r:a;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function Lc(e){var t=[],r,a,s;for(r=0,a=(e||[]).length;r<a;++r)s=e[r],t.push({index:r,box:s,pos:s.position,horizontal:s.isHorizontal(),weight:s.weight});return t}function Ic(e,t){var r,a,s;for(r=0,a=e.length;r<a;++r)s=e[r],s.width=s.horizontal?s.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,s.height=s.horizontal&&t.hBoxMaxHeight}function Rc(e){var t=Lc(e),r=sa(Sr(t,"left"),!0),a=sa(Sr(t,"right")),s=sa(Sr(t,"top"),!0),o=sa(Sr(t,"bottom"));return{leftAndTop:r.concat(s),rightAndBottom:a.concat(o),chartArea:Sr(t,"chartArea"),vertical:r.concat(a),horizontal:s.concat(o)}}function es(e,t,r,a){return Math.max(e[r],t[r])+Math.max(e[a],t[a])}function Nc(e,t,r){var a=r.box,s=e.maxPadding,o,u;if(r.size&&(e[r.pos]-=r.size),r.size=r.horizontal?a.height:a.width,e[r.pos]+=r.size,a.getPadding){var f=a.getPadding();s.top=Math.max(s.top,f.top),s.left=Math.max(s.left,f.left),s.bottom=Math.max(s.bottom,f.bottom),s.right=Math.max(s.right,f.right)}if(o=t.outerWidth-es(s,e,"left","right"),u=t.outerHeight-es(s,e,"top","bottom"),o!==e.w||u!==e.h){e.w=o,e.h=u;var d=r.horizontal?[o,e.w]:[u,e.h];return d[0]!==d[1]&&(!isNaN(d[0])||!isNaN(d[1]))}}function Yc(e){var t=e.maxPadding;function r(a){var s=Math.max(t[a]-e[a],0);return e[a]+=s,s}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function Hc(e,t){var r=t.maxPadding;function a(s){var o={left:0,top:0,right:0,bottom:0};return s.forEach(function(u){o[u]=Math.max(t[u],r[u])}),o}return a(e?["left","right"]:["top","bottom"])}function oa(e,t,r){var a=[],s,o,u,f,d,h;for(s=0,o=e.length;s<o;++s)u=e[s],f=u.box,f.update(u.width||t.w,u.height||t.h,Hc(u.horizontal,t)),Nc(t,r,u)&&(h=!0,a.length&&(d=!0)),f.fullWidth||a.push(u);return d&&oa(a,t,r)||h}function ts(e,t,r){var a=r.padding,s=t.x,o=t.y,u,f,d,h;for(u=0,f=e.length;u<f;++u)d=e[u],h=d.box,d.horizontal?(h.left=h.fullWidth?a.left:t.left,h.right=h.fullWidth?r.outerWidth-a.right:t.left+t.w,h.top=o,h.bottom=o+h.height,h.width=h.right-h.left,o=h.bottom):(h.left=s,h.right=s+h.width,h.top=t.top,h.bottom=t.top+t.h,h.height=h.bottom-h.top,s=h.right);t.x=s,t.y=o}H._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Ee={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure:function(e,t,r){for(var a=["fullWidth","position","weight"],s=a.length,o=0,u;o<s;++o)u=a[o],r.hasOwnProperty(u)&&(t[u]=r[u])},update:function(e,t,r){if(e){var a=e.options.layout||{},s=g.options.toPadding(a.padding),o=t-s.width,u=r-s.height,f=Rc(e.boxes),d=f.vertical,h=f.horizontal,v=Object.freeze({outerWidth:t,outerHeight:r,padding:s,availableWidth:o,vBoxMaxWidth:o/2/d.length,hBoxMaxHeight:u/2}),m=ui({maxPadding:ui({},s),w:o,h:u,x:s.left,y:s.top},s);Ic(d.concat(h),v),oa(d,m,v),oa(h,m,v)&&oa(d,m,v),Yc(m),ts(f.leftAndTop,m,v),m.x+=m.w,m.y+=m.h,ts(f.rightAndBottom,m,v),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h},g.each(f.chartArea,function(y){var b=y.box;ui(b,e.chartArea),b.update(m.w,m.h)})}}},Wc={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Vc=`/*\r
* DOM element rendering detection\r
* https://davidwalsh.name/detect-node-insertion\r
*/\r
@keyframes chartjs-render-animation {\r
from { opacity: 0.99; }\r
to { opacity: 1; }\r
}\r
\r
.chartjs-render-monitor {\r
animation: chartjs-render-animation 0.001s;\r
}\r
\r
/*\r
* DOM element resizing detection\r
* https://github.com/marcj/css-element-queries\r
*/\r
.chartjs-size-monitor,\r
.chartjs-size-monitor-expand,\r
.chartjs-size-monitor-shrink {\r
position: absolute;\r
direction: ltr;\r
left: 0;\r
top: 0;\r
right: 0;\r
bottom: 0;\r
overflow: hidden;\r
pointer-events: none;\r
visibility: hidden;\r
z-index: -1;\r
}\r
\r
.chartjs-size-monitor-expand > div {\r
position: absolute;\r
width: 1000000px;\r
height: 1000000px;\r
left: 0;\r
top: 0;\r
}\r
\r
.chartjs-size-monitor-shrink > div {\r
position: absolute;\r
width: 200%;\r
height: 200%;\r
left: 0;\r
top: 0;\r
}\r
`,Ec=Object.freeze({__proto__:null,default:Vc}),zc=p(Ec),Oe="$chartjs",di="chartjs-",fi=di+"size-monitor",rs=di+"render-monitor",$c=di+"render-animation",as=["animationstart","webkitAnimationStart"],Bc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function is(e,t){var r=g.getStyle(e,t),a=r&&r.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}function jc(e,t){var r=e.style,a=e.getAttribute("height"),s=e.getAttribute("width");if(e[Oe]={initial:{height:a,width:s,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",s===null||s===""){var o=is(e,"width");o!==void 0&&(e.width=o)}if(a===null||a==="")if(e.style.height==="")e.height=e.width/(t.options.aspectRatio||2);else{var u=is(e,"height");o!==void 0&&(e.height=u)}return e}var Uc=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch{}return e}(),ns=Uc?{passive:!0}:!1;function Dr(e,t,r){e.addEventListener(t,r,ns)}function ci(e,t,r){e.removeEventListener(t,r,ns)}function hi(e,t,r,a,s){return{type:e,chart:t,native:s||null,x:r!==void 0?r:null,y:a!==void 0?a:null}}function Zc(e,t){var r=Bc[e.type]||e.type,a=g.getRelativePosition(e,t);return hi(r,t,a.x,a.y,e)}function Gc(e,t){var r=!1,a=[];return function(){a=Array.prototype.slice.call(arguments),t=t||this,r||(r=!0,g.requestAnimFrame.call(window,function(){r=!1,e.apply(t,a)}))}}function Cr(e){var t=document.createElement("div");return t.className=e||"",t}function qc(e){var t=1e6,r=Cr(fi),a=Cr(fi+"-expand"),s=Cr(fi+"-shrink");a.appendChild(Cr()),s.appendChild(Cr()),r.appendChild(a),r.appendChild(s),r._reset=function(){a.scrollLeft=t,a.scrollTop=t,s.scrollLeft=t,s.scrollTop=t};var o=function(){r._reset(),e()};return Dr(a,"scroll",o.bind(a,"expand")),Dr(s,"scroll",o.bind(s,"shrink")),r}function Kc(e,t){var r=e[Oe]||(e[Oe]={}),a=r.renderProxy=function(s){s.animationName===$c&&t()};g.each(as,function(s){Dr(e,s,a)}),r.reflow=!!e.offsetParent,e.classList.add(rs)}function Jc(e){var t=e[Oe]||{},r=t.renderProxy;r&&(g.each(as,function(a){ci(e,a,r)}),delete t.renderProxy),e.classList.remove(rs)}function Xc(e,t,r){var a=e[Oe]||(e[Oe]={}),s=a.resizer=qc(Gc(function(){if(a.resizer){var o=r.options.maintainAspectRatio&&e.parentNode,u=o?o.clientWidth:0;t(hi("resize",r)),o&&o.clientWidth<u&&r.canvas&&t(hi("resize",r))}}));Kc(e,function(){if(a.resizer){var o=e.parentNode;o&&o!==s.parentNode&&o.insertBefore(s,o.firstChild),s._reset()}})}function Qc(e){var t=e[Oe]||{},r=t.resizer;delete t.resizer,Jc(e),r&&r.parentNode&&r.parentNode.removeChild(r)}function eh(e,t){var r=e[Oe]||(e[Oe]={});if(!r.containsStyles){r.containsStyles=!0,t=`/* Chart.js */
`+t;var a=document.createElement("style");a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(t)),e.appendChild(a)}}var ss={disableCSSInjection:!1,_enabled:typeof window<"u"&&typeof document<"u",_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document,r=t.host?t:document.head;eh(r,zc)}},acquireContext:function(e,t){typeof e=="string"?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(this._ensureLoaded(e),jc(e,t),r):null},releaseContext:function(e){var t=e.canvas;if(t[Oe]){var r=t[Oe].initial;["height","width"].forEach(function(a){var s=r[a];g.isNullOrUndef(s)?t.removeAttribute(a):t.setAttribute(a,s)}),g.each(r.style||{},function(a,s){t.style[s]=a}),t.width=t.width,delete t[Oe]}},addEventListener:function(e,t,r){var a=e.canvas;if(t==="resize"){Xc(a,r,e);return}var s=r[Oe]||(r[Oe]={}),o=s.proxies||(s.proxies={}),u=o[e.id+"_"+t]=function(f){r(Zc(f,e))};Dr(a,t,u)},removeEventListener:function(e,t,r){var a=e.canvas;if(t==="resize"){Qc(a);return}var s=r[Oe]||{},o=s.proxies||{},u=o[e.id+"_"+t];u&&ci(a,t,u)}};g.addEvent=Dr,g.removeEvent=ci;var th=ss._enabled?ss:Wc,tr=g.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},th);H._set("global",{plugins:{}});var se={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(r){t.indexOf(r)===-1&&t.push(r)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(r){var a=t.indexOf(r);a!==-1&&t.splice(a,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,r){var a=this.descriptors(e),s=a.length,o,u,f,d,h;for(o=0;o<s;++o)if(u=a[o],f=u.plugin,h=f[t],typeof h=="function"&&(d=[e].concat(r||[]),d.push(u.options),h.apply(f,d)===!1))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var r=[],a=[],s=e&&e.config||{},o=s.options&&s.options.plugins||{};return this._plugins.concat(s.plugins||[]).forEach(function(u){var f=r.indexOf(u);if(f===-1){var d=u.id,h=o[d];h!==!1&&(h===!0&&(h=g.clone(H.global.plugins[d])),r.push(u),a.push({plugin:u,options:h||{}}))}}),t.descriptors=a,t.id=this._cacheId,a},_invalidate:function(e){delete e.$plugins}},Or={constructors:{},defaults:{},registerScaleType:function(e,t,r){this.constructors[e]=t,this.defaults[e]=g.clone(r)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?g.merge(Object.create(null),[H.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var r=this;r.defaults.hasOwnProperty(e)&&(r.defaults[e]=g.extend(r.defaults[e],t))},addScalesToLayout:function(e){g.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,Ee.addBox(e,t)})}},vt=g.valueOrDefault,vi=g.rtl.getRtlAdapter;H._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:g.noop,title:function(e,t){var r="",a=t.labels,s=a?a.length:0;if(e.length>0){var o=e[0];o.label?r=o.label:o.xLabel?r=o.xLabel:s>0&&o.index<s&&(r=a[o.index])}return r},afterTitle:g.noop,beforeBody:g.noop,beforeLabel:g.noop,label:function(e,t){var r=t.datasets[e.datasetIndex].label||"";return r&&(r+=": "),g.isNullOrUndef(e.value)?r+=e.yLabel:r+=e.value,r},labelColor:function(e,t){var r=t.getDatasetMeta(e.datasetIndex),a=r.data[e.index],s=a._view;return{borderColor:s.borderColor,backgroundColor:s.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:g.noop,afterBody:g.noop,beforeFooter:g.noop,footer:g.noop,afterFooter:g.noop}}});var os={average:function(e){if(!e.length)return!1;var t,r,a=0,s=0,o=0;for(t=0,r=e.length;t<r;++t){var u=e[t];if(u&&u.hasValue()){var f=u.tooltipPosition();a+=f.x,s+=f.y,++o}}return{x:a/o,y:s/o}},nearest:function(e,t){var r=t.x,a=t.y,s=Number.POSITIVE_INFINITY,o,u,f;for(o=0,u=e.length;o<u;++o){var d=e[o];if(d&&d.hasValue()){var h=d.getCenterPoint(),v=g.distanceBetweenPoints(t,h);v<s&&(s=v,f=d)}}if(f){var m=f.tooltipPosition();r=m.x,a=m.y}return{x:r,y:a}}};function tt(e,t){return t&&(g.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function mt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function rh(e){var t=e._xScale,r=e._yScale||e._scale,a=e._index,s=e._datasetIndex,o=e._chart.getDatasetMeta(s).controller,u=o._getIndexScale(),f=o._getValueScale();return{xLabel:t?t.getLabelForIndex(a,s):"",yLabel:r?r.getLabelForIndex(a,s):"",label:u?""+u.getLabelForIndex(a,s):"",value:f?""+f.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:e._model.x,y:e._model.y}}function ls(e){var t=H.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:vt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:vt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:vt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:vt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:vt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:vt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:vt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:vt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:vt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function ah(e,t){var r=e._chart.ctx,a=t.yPadding*2,s=0,o=t.body,u=o.reduce(function(x,w){return x+w.before.length+w.lines.length+w.after.length},0);u+=t.beforeBody.length+t.afterBody.length;var f=t.title.length,d=t.footer.length,h=t.titleFontSize,v=t.bodyFontSize,m=t.footerFontSize;a+=f*h,a+=f?(f-1)*t.titleSpacing:0,a+=f?t.titleMarginBottom:0,a+=u*v,a+=u?(u-1)*t.bodySpacing:0,a+=d?t.footerMarginTop:0,a+=d*m,a+=d?(d-1)*t.footerSpacing:0;var y=0,b=function(x){s=Math.max(s,r.measureText(x).width+y)};return r.font=g.fontString(h,t._titleFontStyle,t._titleFontFamily),g.each(t.title,b),r.font=g.fontString(v,t._bodyFontStyle,t._bodyFontFamily),g.each(t.beforeBody.concat(t.afterBody),b),y=t.displayColors?v+2:0,g.each(o,function(x){g.each(x.before,b),g.each(x.lines,b),g.each(x.after,b)}),y=0,r.font=g.fontString(m,t._footerFontStyle,t._footerFontFamily),g.each(t.footer,b),s+=2*t.xPadding,{width:s,height:a}}function ih(e,t){var r=e._model,a=e._chart,s=e._chart.chartArea,o="center",u="center";r.y<t.height?u="top":r.y>a.height-t.height&&(u="bottom");var f,d,h,v,m,y=(s.left+s.right)/2,b=(s.top+s.bottom)/2;u==="center"?(f=function(w){return w<=y},d=function(w){return w>y}):(f=function(w){return w<=t.width/2},d=function(w){return w>=a.width-t.width/2}),h=function(w){return w+t.width+r.caretSize+r.caretPadding>a.width},v=function(w){return w-t.width-r.caretSize-r.caretPadding<0},m=function(w){return w<=b?"top":"bottom"},f(r.x)?(o="left",h(r.x)&&(o="center",u=m(r.y))):d(r.x)&&(o="right",v(r.x)&&(o="center",u=m(r.y)));var x=e._options;return{xAlign:x.xAlign?x.xAlign:o,yAlign:x.yAlign?x.yAlign:u}}function nh(e,t,r,a){var s=e.x,o=e.y,u=e.caretSize,f=e.caretPadding,d=e.cornerRadius,h=r.xAlign,v=r.yAlign,m=u+f,y=d+f;return h==="right"?s-=t.width:h==="center"&&(s-=t.width/2,s+t.width>a.width&&(s=a.width-t.width),s<0&&(s=0)),v==="top"?o+=m:v==="bottom"?o-=t.height+m:o-=t.height/2,v==="center"?h==="left"?s+=m:h==="right"&&(s-=m):h==="left"?s-=y:h==="right"&&(s+=y),{x:s,y:o}}function la(e,t){return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-e.xPadding:e.x+e.xPadding}function us(e){return tt([],mt(e))}var sh=Qe.extend({initialize:function(){this._model=ls(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,r=t.callbacks,a=r.beforeTitle.apply(e,arguments),s=r.title.apply(e,arguments),o=r.afterTitle.apply(e,arguments),u=[];return u=tt(u,mt(a)),u=tt(u,mt(s)),u=tt(u,mt(o)),u},getBeforeBody:function(){return us(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,a=r._options.callbacks,s=[];return g.each(e,function(o){var u={before:[],lines:[],after:[]};tt(u.before,mt(a.beforeLabel.call(r,o,t))),tt(u.lines,a.label.call(r,o,t)),tt(u.after,mt(a.afterLabel.call(r,o,t))),s.push(u)}),s},getAfterBody:function(){return us(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),a=t.footer.apply(e,arguments),s=t.afterFooter.apply(e,arguments),o=[];return o=tt(o,mt(r)),o=tt(o,mt(a)),o=tt(o,mt(s)),o},update:function(e){var t=this,r=t._options,a=t._model,s=t._model=ls(r),o=t._active,u=t._data,f={xAlign:a.xAlign,yAlign:a.yAlign},d={x:a.x,y:a.y},h={width:a.width,height:a.height},v={x:a.caretX,y:a.caretY},m,y;if(o.length){s.opacity=1;var b=[],x=[];v=os[r.position].call(t,o,t._eventPosition);var w=[];for(m=0,y=o.length;m<y;++m)w.push(rh(o[m]));r.filter&&(w=w.filter(function(k){return r.filter(k,u)})),r.itemSort&&(w=w.sort(function(k,D){return r.itemSort(k,D,u)})),g.each(w,function(k){b.push(r.callbacks.labelColor.call(t,k,t._chart)),x.push(r.callbacks.labelTextColor.call(t,k,t._chart))}),s.title=t.getTitle(w,u),s.beforeBody=t.getBeforeBody(w,u),s.body=t.getBody(w,u),s.afterBody=t.getAfterBody(w,u),s.footer=t.getFooter(w,u),s.x=v.x,s.y=v.y,s.caretPadding=r.caretPadding,s.labelColors=b,s.labelTextColors=x,s.dataPoints=w,h=ah(this,s),f=ih(this,h),d=nh(s,h,f,t._chart)}else s.opacity=0;return s.xAlign=f.xAlign,s.yAlign=f.yAlign,s.x=d.x,s.y=d.y,s.width=h.width,s.height=h.height,s.caretX=v.x,s.caretY=v.y,t._model=s,e&&r.custom&&r.custom.call(t,s),t},drawCaret:function(e,t){var r=this._chart.ctx,a=this._view,s=this.getCaretPosition(e,t,a);r.lineTo(s.x1,s.y1),r.lineTo(s.x2,s.y2),r.lineTo(s.x3,s.y3)},getCaretPosition:function(e,t,r){var a,s,o,u,f,d,h=r.caretSize,v=r.cornerRadius,m=r.xAlign,y=r.yAlign,b=e.x,x=e.y,w=t.width,k=t.height;if(y==="center")f=x+k/2,m==="left"?(a=b,s=a-h,o=a,u=f+h,d=f-h):(a=b+w,s=a+h,o=a,u=f-h,d=f+h);else if(m==="left"?(s=b+v+h,a=s-h,o=s+h):m==="right"?(s=b+w-v-h,a=s-h,o=s+h):(s=r.caretX,a=s-h,o=s+h),y==="top")u=x,f=u-h,d=u;else{u=x+k,f=u+h,d=u;var D=o;o=a,a=D}return{x1:a,x2:s,x3:o,y1:u,y2:f,y3:d}},drawTitle:function(e,t,r){var a=t.title,s=a.length,o,u,f;if(s){var d=vi(t.rtl,t.x,t.width);for(e.x=la(t,t._titleAlign),r.textAlign=d.textAlign(t._titleAlign),r.textBaseline="middle",o=t.titleFontSize,u=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=g.fontString(o,t._titleFontStyle,t._titleFontFamily),f=0;f<s;++f)r.fillText(a[f],d.x(e.x),e.y+o/2),e.y+=o+u,f+1===s&&(e.y+=t.titleMarginBottom-u)}},drawBody:function(e,t,r){var a=t.bodyFontSize,s=t.bodySpacing,o=t._bodyAlign,u=t.body,f=t.displayColors,d=0,h=f?la(t,"left"):0,v=vi(t.rtl,t.x,t.width),m=function(ee){r.fillText(ee,v.x(e.x+d),e.y+a/2),e.y+=a+s},y,b,x,w,k,D,F,R,j=v.textAlign(o);for(r.textAlign=o,r.textBaseline="middle",r.font=g.fontString(a,t._bodyFontStyle,t._bodyFontFamily),e.x=la(t,j),r.fillStyle=t.bodyFontColor,g.each(t.beforeBody,m),d=f&&j!=="right"?o==="center"?a/2+1:a+2:0,k=0,F=u.length;k<F;++k){for(y=u[k],b=t.labelTextColors[k],x=t.labelColors[k],r.fillStyle=b,g.each(y.before,m),w=y.lines,D=0,R=w.length;D<R;++D){if(f){var B=v.x(h);r.fillStyle=t.legendColorBackground,r.fillRect(v.leftForLtr(B,a),e.y,a,a),r.lineWidth=1,r.strokeStyle=x.borderColor,r.strokeRect(v.leftForLtr(B,a),e.y,a,a),r.fillStyle=x.backgroundColor,r.fillRect(v.leftForLtr(v.xPlus(B,1),a-2),e.y+1,a-2,a-2),r.fillStyle=b}m(w[D])}g.each(y.after,m)}d=0,g.each(t.afterBody,m),e.y-=s},drawFooter:function(e,t,r){var a=t.footer,s=a.length,o,u;if(s){var f=vi(t.rtl,t.x,t.width);for(e.x=la(t,t._footerAlign),e.y+=t.footerMarginTop,r.textAlign=f.textAlign(t._footerAlign),r.textBaseline="middle",o=t.footerFontSize,r.fillStyle=t.footerFontColor,r.font=g.fontString(o,t._footerFontStyle,t._footerFontFamily),u=0;u<s;++u)r.fillText(a[u],f.x(e.x),e.y+o/2),e.y+=o+t.footerSpacing}},drawBackground:function(e,t,r,a){r.fillStyle=t.backgroundColor,r.strokeStyle=t.borderColor,r.lineWidth=t.borderWidth;var s=t.xAlign,o=t.yAlign,u=e.x,f=e.y,d=a.width,h=a.height,v=t.cornerRadius;r.beginPath(),r.moveTo(u+v,f),o==="top"&&this.drawCaret(e,a),r.lineTo(u+d-v,f),r.quadraticCurveTo(u+d,f,u+d,f+v),o==="center"&&s==="right"&&this.drawCaret(e,a),r.lineTo(u+d,f+h-v),r.quadraticCurveTo(u+d,f+h,u+d-v,f+h),o==="bottom"&&this.drawCaret(e,a),r.lineTo(u+v,f+h),r.quadraticCurveTo(u,f+h,u,f+h-v),o==="center"&&s==="left"&&this.drawCaret(e,a),r.lineTo(u,f+v),r.quadraticCurveTo(u,f,u+v,f),r.closePath(),r.fill(),t.borderWidth>0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(t.opacity!==0){var r={width:t.width,height:t.height},a={x:t.x,y:t.y},s=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=s,this.drawBackground(a,t,e,r),a.y+=t.yPadding,g.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),g.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,r=t._options,a=!1;return t._lastActive=t._lastActive||[],e.type==="mouseout"?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&t._active.reverse()),a=!g.arrayEquals(t._active,t._lastActive),a&&(t._lastActive=t._active,(r.enabled||r.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),a}}),oh=os,mi=sh;mi.positioners=oh;var gi=g.valueOrDefault;H._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});function ds(){return g.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){if(e==="xAxes"||e==="yAxes"){var s=r[e].length,o,u,f;for(t[e]||(t[e]=[]),o=0;o<s;++o)f=r[e][o],u=gi(f.type,e==="xAxes"?"category":"linear"),o>=t[e].length&&t[e].push({}),!t[e][o].type||f.type&&f.type!==t[e][o].type?g.merge(t[e][o],[Or.getScaleDefaults(u),f]):g.merge(t[e][o],f)}else g._merger(e,t,r,a)}})}function pi(){return g.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){var s=t[e]||Object.create(null),o=r[e];e==="scales"?t[e]=ds(s,o):e==="scale"?t[e]=g.merge(s,[Or.getScaleDefaults(o.type),o]):g._merger(e,t,r,a)}})}function lh(e){e=e||Object.create(null);var t=e.data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=pi(H.global,H[e.type],e.options||{}),e}function uh(e){var t=e.options;g.each(e.scales,function(r){Ee.removeBox(e,r)}),t=pi(H.global,H[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function fs(e,t,r){var a,s=function(o){return o.id===a};do a=t+r++;while(g.findIndex(e,s)>=0);return a}function cs(e){return e==="top"||e==="bottom"}function hs(e,t){return function(r,a){return r[e]===a[e]?r[t]-a[t]:r[e]-a[e]}}var wt=function(e,t){return this.construct(e,t),this};g.extend(wt.prototype,{construct:function(e,t){var r=this;t=lh(t);var a=tr.acquireContext(e,t),s=a&&a.canvas,o=s&&s.height,u=s&&s.width;if(r.id=g.uid(),r.ctx=a,r.canvas=s,r.config=t,r.width=u,r.height=o,r.aspectRatio=o?u/o:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,wt.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(f){r.config.data=f}}),!a||!s){console.error("Failed to create chart: can't acquire context from the given item");return}r.initialize(),r.update()},initialize:function(){var e=this;return se.notify(e,"beforeInit"),g.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),se.notify(e,"afterInit"),e},clear:function(){return g.canvas.clear(this),this},stop:function(){return ti.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,a=t.canvas,s=r.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(g.getMaximumWidth(a))),u=Math.max(0,Math.floor(s?o/s:g.getMaximumHeight(a)));if(!(t.width===o&&t.height===u)&&(a.width=t.width=o,a.height=t.height=u,a.style.width=o+"px",a.style.height=u+"px",g.retinaScale(t,r.devicePixelRatio),!e)){var f={width:o,height:u};se.notify(t,"resize",[f]),r.onResize&&r.onResize(t,f),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale;g.each(t.xAxes,function(a,s){a.id||(a.id=fs(t.xAxes,"x-axis-",s))}),g.each(t.yAxes,function(a,s){a.id||(a.id=fs(t.yAxes,"y-axis-",s))}),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},a=[],s=Object.keys(r).reduce(function(o,u){return o[u]=!1,o},{});t.scales&&(a=a.concat((t.scales.xAxes||[]).map(function(o){return{options:o,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(o){return{options:o,dtype:"linear",dposition:"left"}}))),t.scale&&a.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),g.each(a,function(o){var u=o.options,f=u.id,d=gi(u.type,o.dtype);cs(u.position)!==cs(o.dposition)&&(u.position=o.dposition),s[f]=!0;var h=null;if(f in r&&r[f].type===d)h=r[f],h.options=u,h.ctx=e.ctx,h.chart=e;else{var v=Or.getScaleConstructor(d);if(!v)return;h=new v({id:f,type:d,options:u,ctx:e.ctx,chart:e}),r[h.id]=h}h.mergeTicksOptions(),o.isDefault&&(e.scale=h)}),g.each(s,function(o,u){o||delete r[u]}),e.scales=r,Or.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,t=[],r=e.data.datasets,a,s;for(a=0,s=r.length;a<s;a++){var o=r[a],u=e.getDatasetMeta(a),f=o.type||e.config.type;if(u.type&&u.type!==f&&(e.destroyDatasetMeta(a),u=e.getDatasetMeta(a)),u.type=f,u.order=o.order||0,u.index=a,u.controller)u.controller.updateIndex(a),u.controller.linkScales();else{var d=Qn[u.type];if(d===void 0)throw new Error('"'+u.type+'" is not a chart type.');u.controller=new d(e,a),t.push(u.controller)}}return t},resetElements:function(){var e=this;g.each(e.data.datasets,function(t,r){e.getDatasetMeta(r).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t=this,r,a;if((!e||typeof e!="object")&&(e={duration:e,lazy:arguments[1]}),uh(t),se._invalidate(t),se.notify(t,"beforeUpdate")!==!1){t.tooltip._data=t.data;var s=t.buildOrUpdateControllers();for(r=0,a=t.data.datasets.length;r<a;r++)t.getDatasetMeta(r).controller.buildOrUpdateElements();t.updateLayout(),t.options.animation&&t.options.animation.duration&&g.each(s,function(o){o.reset()}),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],se.notify(t,"afterUpdate"),t._layers.sort(hs("z","_idx")),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;se.notify(e,"beforeLayout")!==!1&&(Ee.update(this,this.width,this.height),e._layers=[],g.each(e.boxes,function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())},e),e._layers.forEach(function(t,r){t._idx=r}),se.notify(e,"afterScaleUpdate"),se.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(se.notify(e,"beforeDatasetsUpdate")!==!1){for(var t=0,r=e.data.datasets.length;t<r;++t)e.updateDataset(t);se.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,r=t.getDatasetMeta(e),a={meta:r,index:e};se.notify(t,"beforeDatasetUpdate",[a])!==!1&&(r.controller._update(),se.notify(t,"afterDatasetUpdate",[a]))},render:function(e){var t=this;(!e||typeof e!="object")&&(e={duration:e,lazy:arguments[1]});var r=t.options.animation,a=gi(e.duration,r&&r.duration),s=e.lazy;if(se.notify(t,"beforeRender")!==!1){var o=function(f){se.notify(t,"afterRender"),g.callback(r&&r.onComplete,[f],t)};if(r&&a){var u=new ei({numSteps:a/16.66,easing:e.easing||r.easing,render:function(f,d){var h=g.easing.effects[d.easing],v=d.currentStep,m=v/d.numSteps;f.draw(h(m),m,v)},onAnimationProgress:r.onProgress,onAnimationComplete:o});ti.addAnimation(t,u,a,s)}else t.draw(),o(new ei({numSteps:0,chart:t}));return t}},draw:function(e){var t=this,r,a;if(t.clear(),g.isNullOrUndef(e)&&(e=1),t.transition(e),!(t.width<=0||t.height<=0)&&se.notify(t,"beforeDraw",[e])!==!1){for(a=t._layers,r=0;r<a.length&&a[r].z<=0;++r)a[r].draw(t.chartArea);for(t.drawDatasets(e);r<a.length;++r)a[r].draw(t.chartArea);t._drawTooltip(e),se.notify(t,"afterDraw",[e])}},transition:function(e){for(var t=this,r=0,a=(t.data.datasets||[]).length;r<a;++r)t.isDatasetVisible(r)&&t.getDatasetMeta(r).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t=this,r=t.data.datasets||[],a=[],s,o;for(s=0,o=r.length;s<o;++s)(!e||t.isDatasetVisible(s))&&a.push(t.getDatasetMeta(s));return a.sort(hs("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t=this,r,a;if(se.notify(t,"beforeDatasetsDraw",[e])!==!1){for(r=t._getSortedVisibleDatasetMetas(),a=r.length-1;a>=0;--a)t.drawDataset(r[a],e);se.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r=this,a={meta:e,index:e.index,easingValue:t};se.notify(r,"beforeDatasetDraw",[a])!==!1&&(e.controller.draw(t),se.notify(r,"afterDatasetDraw",[a]))},_drawTooltip:function(e){var t=this,r=t.tooltip,a={tooltip:r,easingValue:e};se.notify(t,"beforeTooltipDraw",[a])!==!1&&(r.draw(),se.notify(t,"afterTooltipDraw",[a]))},getElementAtEvent:function(e){return er.modes.single(this,e)},getElementsAtEvent:function(e){return er.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return er.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var a=er.modes[t];return typeof a=="function"?a(this,e,r):[]},getDatasetAtEvent:function(e){return er.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,r=t.data.datasets[e];r._meta||(r._meta={});var a=r._meta[t.id];return a||(a=r._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r.order||0,index:e}),a},getVisibleDatasetCount:function(){for(var e=0,t=0,r=this.data.datasets.length;t<r;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return typeof t.hidden=="boolean"?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,r=this.data.datasets[e],a=r._meta&&r._meta[t];a&&(a.controller.destroy(),delete r._meta[t])},destroy:function(){var e=this,t=e.canvas,r,a;for(e.stop(),r=0,a=e.data.datasets.length;r<a;++r)e.destroyDatasetMeta(r);t&&(e.unbindEvents(),g.canvas.clear(e),tr.releaseContext(e.ctx),e.canvas=null,e.ctx=null),se.notify(e,"destroy"),delete wt.instances[e.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new mi({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},r=function(){e.eventHandler.apply(e,arguments)};g.each(e.options.events,function(a){tr.addEventListener(e,a,r),t[a]=r}),e.options.responsive&&(r=function(){e.resize()},tr.addEventListener(e,"resize",r),t.resize=r)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,g.each(t,function(r,a){tr.removeEventListener(e,a,r)}))},updateHoverStyle:function(e,t,r){var a=r?"set":"remove",s,o,u;for(o=0,u=e.length;o<u;++o)s=e[o],s&&this.getDatasetMeta(s._datasetIndex).controller[a+"HoverStyle"](s);t==="dataset"&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,r=t.tooltip;if(se.notify(t,"beforeEvent",[e])!==!1){t._bufferedRender=!0,t._bufferedRequest=null;var a=t.handleEvent(e);r&&(a=r._start?r.handleEvent(e):a|r.handleEvent(e)),se.notify(t,"afterEvent",[e]);var s=t._bufferedRequest;return s?t.render(s):a&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,r=t.options||{},a=r.hover,s=!1;return t.lastActive=t.lastActive||[],e.type==="mouseout"?t.active=[]:t.active=t.getElementsAtEventForMode(e,a.mode,a),g.callback(r.onHover||r.hover.onHover,[e.native,t.active],t),(e.type==="mouseup"||e.type==="click")&&r.onClick&&r.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,a.mode,!1),t.active.length&&a.mode&&t.updateHoverStyle(t.active,a.mode,!0),s=!g.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,s}}),wt.instances={};var Z=wt;wt.Controller=wt,wt.types={},g.configMerge=pi,g.scaleMerge=ds;var dh=function(){g.where=function(a,s){if(g.isArray(a)&&Array.prototype.filter)return a.filter(s);var o=[];return g.each(a,function(u){s(u)&&o.push(u)}),o},g.findIndex=Array.prototype.findIndex?function(a,s,o){return a.findIndex(s,o)}:function(a,s,o){o=o===void 0?a:o;for(var u=0,f=a.length;u<f;++u)if(s.call(o,a[u],u,a))return u;return-1},g.findNextWhere=function(a,s,o){g.isNullOrUndef(o)&&(o=-1);for(var u=o+1;u<a.length;u++){var f=a[u];if(s(f))return f}},g.findPreviousWhere=function(a,s,o){g.isNullOrUndef(o)&&(o=a.length);for(var u=o-1;u>=0;u--){var f=a[u];if(s(f))return f}},g.isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},g.almostEquals=function(a,s,o){return Math.abs(a-s)<o},g.almostWhole=function(a,s){var o=Math.round(a);return o-s<=a&&o+s>=a},g.max=function(a){return a.reduce(function(s,o){return isNaN(o)?s:Math.max(s,o)},Number.NEGATIVE_INFINITY)},g.min=function(a){return a.reduce(function(s,o){return isNaN(o)?s:Math.min(s,o)},Number.POSITIVE_INFINITY)},g.sign=Math.sign?function(a){return Math.sign(a)}:function(a){return a=+a,a===0||isNaN(a)?a:a>0?1:-1},g.toRadians=function(a){return a*(Math.PI/180)},g.toDegrees=function(a){return a*(180/Math.PI)},g._decimalPlaces=function(a){if(g.isFinite(a)){for(var s=1,o=0;Math.round(a*s)/s!==a;)s*=10,o++;return o}},g.getAngleFromPoint=function(a,s){var o=s.x-a.x,u=s.y-a.y,f=Math.sqrt(o*o+u*u),d=Math.atan2(u,o);return d<-.5*Math.PI&&(d+=2*Math.PI),{angle:d,distance:f}},g.distanceBetweenPoints=function(a,s){return Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2))},g.aliasPixel=function(a){return a%2===0?0:.5},g._alignPixel=function(a,s,o){var u=a.currentDevicePixelRatio,f=o/2;return Math.round((s-f)*u)/u+f},g.splineCurve=function(a,s,o,u){var f=a.skip?s:a,d=s,h=o.skip?s:o,v=Math.sqrt(Math.pow(d.x-f.x,2)+Math.pow(d.y-f.y,2)),m=Math.sqrt(Math.pow(h.x-d.x,2)+Math.pow(h.y-d.y,2)),y=v/(v+m),b=m/(v+m);y=isNaN(y)?0:y,b=isNaN(b)?0:b;var x=u*y,w=u*b;return{previous:{x:d.x-x*(h.x-f.x),y:d.y-x*(h.y-f.y)},next:{x:d.x+w*(h.x-f.x),y:d.y+w*(h.y-f.y)}}},g.EPSILON=Number.EPSILON||1e-14,g.splineCurveMonotone=function(a){var s=(a||[]).map(function(k){return{model:k._model,deltaK:0,mK:0}}),o=s.length,u,f,d,h;for(u=0;u<o;++u)if(d=s[u],!d.model.skip){if(f=u>0?s[u-1]:null,h=u<o-1?s[u+1]:null,h&&!h.model.skip){var v=h.model.x-d.model.x;d.deltaK=v!==0?(h.model.y-d.model.y)/v:0}!f||f.model.skip?d.mK=d.deltaK:!h||h.model.skip?d.mK=f.deltaK:this.sign(f.deltaK)!==this.sign(d.deltaK)?d.mK=0:d.mK=(f.deltaK+d.deltaK)/2}var m,y,b,x;for(u=0;u<o-1;++u)if(d=s[u],h=s[u+1],!(d.model.skip||h.model.skip)){if(g.almostEquals(d.deltaK,0,this.EPSILON)){d.mK=h.mK=0;continue}m=d.mK/d.deltaK,y=h.mK/d.deltaK,x=Math.pow(m,2)+Math.pow(y,2),!(x<=9)&&(b=3/Math.sqrt(x),d.mK=m*b*d.deltaK,h.mK=y*b*d.deltaK)}var w;for(u=0;u<o;++u)d=s[u],!d.model.skip&&(f=u>0?s[u-1]:null,h=u<o-1?s[u+1]:null,f&&!f.model.skip&&(w=(d.model.x-f.model.x)/3,d.model.controlPointPreviousX=d.model.x-w,d.model.controlPointPreviousY=d.model.y-w*d.mK),h&&!h.model.skip&&(w=(h.model.x-d.model.x)/3,d.model.controlPointNextX=d.model.x+w,d.model.controlPointNextY=d.model.y+w*d.mK))},g.nextItem=function(a,s,o){return o?s>=a.length-1?a[0]:a[s+1]:s>=a.length-1?a[a.length-1]:a[s+1]},g.previousItem=function(a,s,o){return o?s<=0?a[a.length-1]:a[s-1]:s<=0?a[0]:a[s-1]},g.niceNum=function(a,s){var o=Math.floor(g.log10(a)),u=a/Math.pow(10,o),f;return s?u<1.5?f=1:u<3?f=2:u<7?f=5:f=10:u<=1?f=1:u<=2?f=2:u<=5?f=5:f=10,f*Math.pow(10,o)},g.requestAnimFrame=function(){return typeof window>"u"?function(a){a()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1e3/60)}}(),g.getRelativePosition=function(a,s){var o,u,f=a.originalEvent||a,d=a.target||a.srcElement,h=d.getBoundingClientRect(),v=f.touches;v&&v.length>0?(o=v[0].clientX,u=v[0].clientY):(o=f.clientX,u=f.clientY);var m=parseFloat(g.getStyle(d,"padding-left")),y=parseFloat(g.getStyle(d,"padding-top")),b=parseFloat(g.getStyle(d,"padding-right")),x=parseFloat(g.getStyle(d,"padding-bottom")),w=h.right-h.left-m-b,k=h.bottom-h.top-y-x;return o=Math.round((o-h.left-m)/w*d.width/s.currentDevicePixelRatio),u=Math.round((u-h.top-y)/k*d.height/s.currentDevicePixelRatio),{x:o,y:u}};function e(a,s,o){var u;return typeof a=="string"?(u=parseInt(a,10),a.indexOf("%")!==-1&&(u=u/100*s.parentNode[o])):u=a,u}function t(a){return a!=null&&a!=="none"}function r(a,s,o){var u=document.defaultView,f=g._getParentNode(a),d=u.getComputedStyle(a)[s],h=u.getComputedStyle(f)[s],v=t(d),m=t(h),y=Number.POSITIVE_INFINITY;return v||m?Math.min(v?e(d,a,o):y,m?e(h,f,o):y):"none"}g.getConstraintWidth=function(a){return r(a,"max-width","clientWidth")},g.getConstraintHeight=function(a){return r(a,"max-height","clientHeight")},g._calculatePadding=function(a,s,o){return s=g.getStyle(a,s),s.indexOf("%")>-1?o*parseInt(s,10)/100:parseInt(s,10)},g._getParentNode=function(a){var s=a.parentNode;return s&&s.toString()==="[object ShadowRoot]"&&(s=s.host),s},g.getMaximumWidth=function(a){var s=g._getParentNode(a);if(!s)return a.clientWidth;var o=s.clientWidth,u=g._calculatePadding(s,"padding-left",o),f=g._calculatePadding(s,"padding-right",o),d=o-u-f,h=g.getConstraintWidth(a);return isNaN(h)?d:Math.min(d,h)},g.getMaximumHeight=function(a){var s=g._getParentNode(a);if(!s)return a.clientHeight;var o=s.clientHeight,u=g._calculatePadding(s,"padding-top",o),f=g._calculatePadding(s,"padding-bottom",o),d=o-u-f,h=g.getConstraintHeight(a);return isNaN(h)?d:Math.min(d,h)},g.getStyle=function(a,s){return a.currentStyle?a.currentStyle[s]:document.defaultView.getComputedStyle(a,null).getPropertyValue(s)},g.retinaScale=function(a,s){var o=a.currentDevicePixelRatio=s||typeof window<"u"&&window.devicePixelRatio||1;if(o!==1){var u=a.canvas,f=a.height,d=a.width;u.height=f*o,u.width=d*o,a.ctx.scale(o,o),!u.style.height&&!u.style.width&&(u.style.height=f+"px",u.style.width=d+"px")}},g.fontString=function(a,s,o){return s+" "+a+"px "+o},g.longestText=function(a,s,o,u){u=u||{};var f=u.data=u.data||{},d=u.garbageCollect=u.garbageCollect||[];u.font!==s&&(f=u.data={},d=u.garbageCollect=[],u.font=s),a.font=s;var h=0,v=o.length,m,y,b,x,w;for(m=0;m<v;m++)if(x=o[m],x!=null&&g.isArray(x)!==!0)h=g.measureText(a,f,d,h,x);else if(g.isArray(x))for(y=0,b=x.length;y<b;y++)w=x[y],w!=null&&!g.isArray(w)&&(h=g.measureText(a,f,d,h,w));var k=d.length/2;if(k>o.length){for(m=0;m<k;m++)delete f[d[m]];d.splice(0,k)}return h},g.measureText=function(a,s,o,u,f){var d=s[f];return d||(d=s[f]=a.measureText(f).width,o.push(f)),d>u&&(u=d),u},g.numberOfLabelLines=function(a){var s=1;return g.each(a,function(o){g.isArray(o)&&o.length>s&&(s=o.length)}),s},g.color=ce?function(a){return a instanceof CanvasGradient&&(a=H.global.defaultColor),ce(a)}:function(a){return console.error("Color.js not found!"),a},g.getHoverColor=function(a){return a instanceof CanvasPattern||a instanceof CanvasGradient?a:g.color(a).saturate(.5).darken(.1).rgbString()}};function Nt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ua(e){this.options=e||{}}g.extend(ua.prototype,{formats:Nt,parse:Nt,format:Nt,add:Nt,diff:Nt,startOf:Nt,endOf:Nt,_create:function(e){return e}}),ua.override=function(e){g.extend(ua.prototype,e)};var fh=ua,yi={_date:fh},Pr={formatters:{values:function(e){return g.isArray(e)?e:""+e},linear:function(e,t,r){var a=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(a)>1&&e!==Math.floor(e)&&(a=e-Math.floor(e));var s=g.log10(Math.abs(a)),o="";if(e!==0){var u=Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]));if(u<1e-4){var f=g.log10(Math.abs(e)),d=Math.floor(f)-Math.floor(s);d=Math.max(Math.min(d,20),0),o=e.toExponential(d)}else{var h=-1*Math.floor(s);h=Math.max(Math.min(h,20),0),o=e.toFixed(h)}}else o="0";return o},logarithmic:function(e,t,r){var a=e/Math.pow(10,Math.floor(g.log10(e)));return e===0?"0":a===1||a===2||a===5||t===0||t===r.length-1?e.toExponential():""}}},Yt=g.isArray,Tr=g.isNullOrUndef,Ht=g.valueOrDefault,rr=g.valueAtIndexOrDefault;H._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Pr.formatters.values,minor:{},major:{}}});function ch(e,t){for(var r=[],a=e.length/t,s=0,o=e.length;s<o;s+=a)r.push(e[Math.floor(s)]);return r}function hh(e,t,r){var a=e.getTicks().length,s=Math.min(t,a-1),o=e.getPixelForTick(s),u=e._startPixel,f=e._endPixel,d=1e-6,h;if(!(r&&(a===1?h=Math.max(o-u,f-o):t===0?h=(e.getPixelForTick(1)-o)/2:h=(o-e.getPixelForTick(s-1))/2,o+=s<t?h:-h,o<u-d||o>f+d)))return o}function vh(e,t){g.each(e,function(r){var a=r.gc,s=a.length/2,o;if(s>t){for(o=0;o<s;++o)delete r.data[a[o]];a.splice(0,s)}})}function mh(e,t,r,a){var s=r.length,o=[],u=[],f=[],d=0,h=0,v,m,y,b,x,w,k,D,F,R,j,B,ee;for(v=0;v<s;++v){if(b=r[v].label,x=r[v].major?t.major:t.minor,e.font=w=x.string,k=a[w]=a[w]||{data:{},gc:[]},D=x.lineHeight,F=R=0,!Tr(b)&&!Yt(b))F=g.measureText(e,k.data,k.gc,F,b),R=D;else if(Yt(b))for(m=0,y=b.length;m<y;++m)j=b[m],!Tr(j)&&!Yt(j)&&(F=g.measureText(e,k.data,k.gc,F,j),R+=D);o.push(F),u.push(R),f.push(D/2),d=Math.max(F,d),h=Math.max(R,h)}vh(a,s),B=o.indexOf(d),ee=u.indexOf(h);function J(ne){return{width:o[ne]||0,height:u[ne]||0,offset:f[ne]||0}}return{first:J(0),last:J(s-1),widest:J(B),highest:J(ee)}}function Ar(e){return e.drawTicks?e.tickMarkLength:0}function bi(e){var t,r;return e.display?(t=g.options._parseFont(e),r=g.options.toPadding(e.padding),t.lineHeight+r.height):0}function vs(e,t){return g.extend(g.options._parseFont({fontFamily:Ht(t.fontFamily,e.fontFamily),fontSize:Ht(t.fontSize,e.fontSize),fontStyle:Ht(t.fontStyle,e.fontStyle),lineHeight:Ht(t.lineHeight,e.lineHeight)}),{color:g.options.resolve([t.fontColor,e.fontColor,H.global.defaultFontColor])})}function _i(e){var t=vs(e,e.minor),r=e.major.enabled?vs(e,e.major):t;return{minor:t,major:r}}function xi(e){var t=[],r,a,s;for(a=0,s=e.length;a<s;++a)r=e[a],typeof r._index<"u"&&t.push(r);return t}function gh(e){var t=e.length,r,a;if(t<2)return!1;for(a=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==a)return!1;return a}function ph(e,t,r,a){var s=gh(e),o=(t.length-1)/a,u,f,d,h;if(!s)return Math.max(o,1);for(u=g.math._factorize(s),d=0,h=u.length-1;d<h;d++)if(f=u[d],f>o)return f;return Math.max(o,1)}function yh(e){var t=[],r,a;for(r=0,a=e.length;r<a;r++)e[r].major&&t.push(r);return t}function bh(e,t,r){var a=0,s=t[0],o,u;for(r=Math.ceil(r),o=0;o<e.length;o++)u=e[o],o===s?(u._index=o,a++,s=t[a*r]):delete u.label}function da(e,t,r,a){var s=Ht(r,0),o=Math.min(Ht(a,e.length),e.length),u=0,f,d,h,v;for(t=Math.ceil(t),a&&(f=a-r,t=f/Math.floor(f/t)),v=s;v<0;)u++,v=Math.round(s+u*t);for(d=Math.max(s,0);d<o;d++)h=e[d],d===v?(h._index=d,u++,v=Math.round(s+u*t)):delete h.label}var wi=Qe.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){g.callback(this.options.beforeUpdate,[this])},update:function(e,t,r){var a=this,s=a.options.ticks,o=s.sampleSize,u,f,d,h,v;if(a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=g.extend({left:0,right:0,top:0,bottom:0},r),a._ticks=null,a.ticks=null,a._labelSizes=null,a._maxLabelLines=0,a.longestLabelWidth=0,a.longestTextCache=a.longestTextCache||{},a._gridLineItems=null,a._labelItems=null,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),h=a.buildTicks()||[],h=a.afterBuildTicks(h)||h,(!h||!h.length)&&a.ticks)for(h=[],u=0,f=a.ticks.length;u<f;++u)h.push({value:a.ticks[u],major:!1});return a._ticks=h,v=o<h.length,d=a._convertTicksToLabels(v?ch(h,o):h),a._configure(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a._ticksToDraw=s.display&&(s.autoSkip||s.source==="auto")?a._autoSkip(h):h,v&&(d=a._convertTicksToLabels(a._ticksToDraw)),a.ticks=d,a.afterUpdate(),a.minSize},_configure:function(){var e=this,t=e.options.ticks.reverse,r,a;e.isHorizontal()?(r=e.left,a=e.right):(r=e.top,a=e.bottom,t=!t),e._startPixel=r,e._endPixel=a,e._reversePixels=t,e._length=a-r},afterUpdate:function(){g.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){g.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){g.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){g.callback(this.options.beforeDataLimits,[this])},determineDataLimits:g.noop,afterDataLimits:function(){g.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){g.callback(this.options.beforeBuildTicks,[this])},buildTicks:g.noop,afterBuildTicks:function(e){var t=this;return Yt(e)&&e.length?g.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=g.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){g.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){g.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){g.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.options,r=t.ticks,a=e.getTicks().length,s=r.minRotation||0,o=r.maxRotation,u=s,f,d,h,v,m,y,b;if(!e._isVisible()||!r.display||s>=o||a<=1||!e.isHorizontal()){e.labelRotation=s;return}f=e._getLabelSizes(),d=f.widest.width,h=f.highest.height-f.highest.offset,v=Math.min(e.maxWidth,e.chart.width-d),m=t.offset?e.maxWidth/a:v/(a-1),d+6>m&&(m=v/(a-(t.offset?.5:1)),y=e.maxHeight-Ar(t.gridLines)-r.padding-bi(t.scaleLabel),b=Math.sqrt(d*d+h*h),u=g.toDegrees(Math.min(Math.asin(Math.min((f.highest.height+6)/m,1)),Math.asin(Math.min(y/b,1))-Math.asin(h/b))),u=Math.max(s,Math.min(o,u))),e.labelRotation=u},afterCalculateTickRotation:function(){g.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){g.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,a=e.options,s=a.ticks,o=a.scaleLabel,u=a.gridLines,f=e._isVisible(),d=a.position==="bottom",h=e.isHorizontal();if(h?t.width=e.maxWidth:f&&(t.width=Ar(u)+bi(o)),h?f&&(t.height=Ar(u)+bi(o)):t.height=e.maxHeight,s.display&&f){var v=_i(s),m=e._getLabelSizes(),y=m.first,b=m.last,x=m.widest,w=m.highest,k=v.minor.lineHeight*.4,D=s.padding;if(h){var F=e.labelRotation!==0,R=g.toRadians(e.labelRotation),j=Math.cos(R),B=Math.sin(R),ee=B*x.width+j*(w.height-(F?w.offset:0))+(F?0:k);t.height=Math.min(e.maxHeight,t.height+ee+D);var J=e.getPixelForTick(0)-e.left,ne=e.right-e.getPixelForTick(e.getTicks().length-1),le,Me;F?(le=d?j*y.width+B*y.offset:B*(y.height-y.offset),Me=d?B*(b.height-b.offset):j*b.width+B*b.offset):(le=y.width/2,Me=b.width/2),e.paddingLeft=Math.max((le-J)*e.width/(e.width-J),0)+3,e.paddingRight=Math.max((Me-ne)*e.width/(e.width-ne),0)+3}else{var xe=s.mirror?0:x.width+D+k;t.width=Math.min(e.maxWidth,t.width+xe),e.paddingTop=y.height/2,e.paddingBottom=b.height/2}}e.handleMargins(),h?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){g.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return e==="top"||e==="bottom"},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Tr(e))return NaN;if((typeof e=="number"||e instanceof Number)&&!isFinite(e))return NaN;if(e){if(this.isHorizontal()){if(e.x!==void 0)return this.getRightValue(e.x)}else if(e.y!==void 0)return this.getRightValue(e.y)}return e},_convertTicksToLabels:function(e){var t=this,r,a,s;for(t.ticks=e.map(function(o){return o.value}),t.beforeTickToLabelConversion(),r=t.convertTicksToLabels(e)||t.ticks,t.afterTickToLabelConversion(),a=0,s=e.length;a<s;++a)e[a].label=r[a];return r},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=mh(e.ctx,_i(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,r,a,s;return Yt(e)?(t=+this.getRightValue(e[0]),r=+this.getRightValue(e[1]),a=Math.min(t,r),s=Math.max(t,r)):(e=+this.getRightValue(e),t=void 0,r=e,a=e,s=e),{min:a,max:s,start:t,end:r}},_getScaleLabel:function(e){var t=this._parseValue(e);return t.start!==void 0?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:g.noop,getPixelForValue:g.noop,getValueForPixel:g.noop,getPixelForTick:function(e){var t=this,r=t.options.offset,a=t._ticks.length,s=1/Math.max(a-(r?0:1),1);return e<0||e>a-1?null:t.getPixelForDecimal(e*s+(r?s/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,r=e.max;return e.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0},_autoSkip:function(e){var t=this,r=t.options.ticks,a=t._length,s=r.maxTicksLimit||a/t._tickSize()+1,o=r.major.enabled?yh(e):[],u=o.length,f=o[0],d=o[u-1],h,v,m,y;if(u>s)return bh(e,o,u/s),xi(e);if(m=ph(o,e,a,s),u>0){for(h=0,v=u-1;h<v;h++)da(e,m,o[h],o[h+1]);return y=u>1?(d-f)/(u-1):null,da(e,m,g.isNullOrUndef(y)?0:f-y,f),da(e,m,d,g.isNullOrUndef(y)?e.length:d+y),xi(e)}return da(e,m),xi(e)},_tickSize:function(){var e=this,t=e.options.ticks,r=g.toRadians(e.labelRotation),a=Math.abs(Math.cos(r)),s=Math.abs(Math.sin(r)),o=e._getLabelSizes(),u=t.autoSkipPadding||0,f=o?o.widest.width+u:0,d=o?o.highest.height+u:0;return e.isHorizontal()?d*a>f*s?f/a:d/s:d*s<f*a?d/a:f/s},_isVisible:function(){var e=this,t=e.chart,r=e.options.display,a,s,o;if(r!=="auto")return!!r;for(a=0,s=t.data.datasets.length;a<s;++a)if(t.isDatasetVisible(a)&&(o=t.getDatasetMeta(a),o.xAxisID===e.id||o.yAxisID===e.id))return!0;return!1},_computeGridLineItems:function(e){var t=this,r=t.chart,a=t.options,s=a.gridLines,o=a.position,u=s.offsetGridLines,f=t.isHorizontal(),d=t._ticksToDraw,h=d.length+(u?1:0),v=Ar(s),m=[],y=s.drawBorder?rr(s.lineWidth,0,0):0,b=y/2,x=g._alignPixel,w=function(y0){return x(r,y0,y)},k,D,F,R,j,B,ee,J,ne,le,Me,xe,pe,ke,ir,nr,Ai;for(o==="top"?(k=w(t.bottom),ee=t.bottom-v,ne=k-b,Me=w(e.top)+b,pe=e.bottom):o==="bottom"?(k=w(t.top),Me=e.top,pe=w(e.bottom)-b,ee=k+b,ne=t.top+v):o==="left"?(k=w(t.right),B=t.right-v,J=k-b,le=w(e.left)+b,xe=e.right):(k=w(t.left),le=e.left,xe=w(e.right)-b,B=k+b,J=t.left+v),D=0;D<h;++D)F=d[D]||{},!(Tr(F.label)&&D<d.length)&&(D===t.zeroLineIndex&&a.offset===u?(ke=s.zeroLineWidth,ir=s.zeroLineColor,nr=s.zeroLineBorderDash||[],Ai=s.zeroLineBorderDashOffset||0):(ke=rr(s.lineWidth,D,1),ir=rr(s.color,D,"rgba(0,0,0,0.1)"),nr=s.borderDash||[],Ai=s.borderDashOffset||0),R=hh(t,F._index||D,u),R!==void 0&&(j=x(r,R,ke),f?B=J=le=xe=j:ee=ne=Me=pe=j,m.push({tx1:B,ty1:ee,tx2:J,ty2:ne,x1:le,y1:Me,x2:xe,y2:pe,width:ke,color:ir,borderDash:nr,borderDashOffset:Ai})));return m.ticksLength=h,m.borderValue=k,m},_computeLabelItems:function(){var e=this,t=e.options,r=t.ticks,a=t.position,s=r.mirror,o=e.isHorizontal(),u=e._ticksToDraw,f=_i(r),d=r.padding,h=Ar(t.gridLines),v=-g.toRadians(e.labelRotation),m=[],y,b,x,w,k,D,F,R,j,B,ee,J;for(a==="top"?(D=e.bottom-h-d,F=v?"left":"center"):a==="bottom"?(D=e.top+h+d,F=v?"right":"center"):a==="left"?(k=e.right-(s?0:h)-d,F=s?"left":"right"):(k=e.left+(s?0:h)+d,F=s?"right":"left"),y=0,b=u.length;y<b;++y)x=u[y],w=x.label,!Tr(w)&&(R=e.getPixelForTick(x._index||y)+r.labelOffset,j=x.major?f.major:f.minor,B=j.lineHeight,ee=Yt(w)?w.length:1,o?(k=R,J=a==="top"?((v?1:.5)-ee)*B:(v?0:.5)*B):(D=R,J=(1-ee)*B/2),m.push({x:k,y:D,rotation:v,label:w,font:j,textOffset:J,textAlign:F}));return m},_drawGrid:function(e){var t=this,r=t.options.gridLines;if(r.display){var a=t.ctx,s=t.chart,o=g._alignPixel,u=r.drawBorder?rr(r.lineWidth,0,0):0,f=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e)),d,h,v,m,y;for(v=0,m=f.length;v<m;++v)y=f[v],d=y.width,h=y.color,d&&h&&(a.save(),a.lineWidth=d,a.strokeStyle=h,a.setLineDash&&(a.setLineDash(y.borderDash),a.lineDashOffset=y.borderDashOffset),a.beginPath(),r.drawTicks&&(a.moveTo(y.tx1,y.ty1),a.lineTo(y.tx2,y.ty2)),r.drawOnChartArea&&(a.moveTo(y.x1,y.y1),a.lineTo(y.x2,y.y2)),a.stroke(),a.restore());if(u){var b=u,x=rr(r.lineWidth,f.ticksLength-1,1),w=f.borderValue,k,D,F,R;t.isHorizontal()?(k=o(s,t.left,b)-b/2,D=o(s,t.right,x)+x/2,F=R=w):(F=o(s,t.top,b)-b/2,R=o(s,t.bottom,x)+x/2,k=D=w),a.lineWidth=u,a.strokeStyle=rr(r.color,0),a.beginPath(),a.moveTo(k,F),a.lineTo(D,R),a.stroke()}}},_drawLabels:function(){var e=this,t=e.options.ticks;if(t.display){var r=e.ctx,a=e._labelItems||(e._labelItems=e._computeLabelItems()),s,o,u,f,d,h,v,m;for(s=0,u=a.length;s<u;++s){if(d=a[s],h=d.font,r.save(),r.translate(d.x,d.y),r.rotate(d.rotation),r.font=h.string,r.fillStyle=h.color,r.textBaseline="middle",r.textAlign=d.textAlign,v=d.label,m=d.textOffset,Yt(v))for(o=0,f=v.length;o<f;++o)r.fillText(""+v[o],0,m),m+=h.lineHeight;else r.fillText(v,0,m);r.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,r=e.options,a=r.scaleLabel;if(a.display){var s=Ht(a.fontColor,H.global.defaultFontColor),o=g.options._parseFont(a),u=g.options.toPadding(a.padding),f=o.lineHeight/2,d=r.position,h=0,v,m;if(e.isHorizontal())v=e.left+e.width/2,m=d==="bottom"?e.bottom-f-u.bottom:e.top+f+u.top;else{var y=d==="left";v=y?e.left+f+u.top:e.right-f-u.top,m=e.top+e.height/2,h=y?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(v,m),t.rotate(h),t.textAlign="center",t.textBaseline="middle",t.fillStyle=s,t.font=o.string,t.fillText(a.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,r=t.ticks&&t.ticks.z||0,a=t.gridLines&&t.gridLines.z||0;return!e._isVisible()||r===a||e.draw!==e._draw?[{z:r,draw:function(){e.draw.apply(e,arguments)}}]:[{z:a,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:r,draw:function(){e._drawLabels.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,r=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(a){return(!e||a.type===e)&&(r?a.xAxisID===t.id:a.yAxisID===t.id)})}});wi.prototype._draw=wi.prototype.draw;var Ae=wi,Mi=g.isNullOrUndef,_h={position:"bottom"},ms=Ae.extend({determineDataLimits:function(){var e=this,t=e._getLabels(),r=e.options.ticks,a=r.min,s=r.max,o=0,u=t.length-1,f;a!==void 0&&(f=t.indexOf(a),f>=0&&(o=f)),s!==void 0&&(f=t.indexOf(s),f>=0&&(u=f)),e.minIndex=o,e.maxIndex=u,e.min=t[o],e.max=t[u]},buildTicks:function(){var e=this,t=e._getLabels(),r=e.minIndex,a=e.maxIndex;e.ticks=r===0&&a===t.length-1?t:t.slice(r,a+1)},getLabelForIndex:function(e,t){var r=this,a=r.chart;return a.getDatasetMeta(t).controller._getValueScaleId()===r.id?r.getRightValue(a.data.datasets[t].data[e]):r._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks;Ae.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var a=this,s,o,u;return!Mi(t)&&!Mi(r)&&(e=a.chart.data.datasets[r].data[t]),Mi(e)||(s=a.isHorizontal()?e.x:e.y),(s!==void 0||e!==void 0&&isNaN(t))&&(o=a._getLabels(),e=g.valueOrDefault(s,e),u=o.indexOf(e),t=u!==-1?u:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,r=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(r,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),xh=_h;ms._defaults=xh;var wh=g.noop,Wt=g.isNullOrUndef;function Mh(e,t){var r=[],a=1e-14,s=e.stepSize,o=s||1,u=e.maxTicks-1,f=e.min,d=e.max,h=e.precision,v=t.min,m=t.max,y=g.niceNum((m-v)/u/o)*o,b,x,w,k;if(y<a&&Wt(f)&&Wt(d))return[v,m];k=Math.ceil(m/y)-Math.floor(v/y),k>u&&(y=g.niceNum(k*y/u/o)*o),s||Wt(h)?b=Math.pow(10,g._decimalPlaces(y)):(b=Math.pow(10,h),y=Math.ceil(y*b)/b),x=Math.floor(v/y)*y,w=Math.ceil(m/y)*y,s&&(!Wt(f)&&g.almostWhole(f/y,y/1e3)&&(x=f),!Wt(d)&&g.almostWhole(d/y,y/1e3)&&(w=d)),k=(w-x)/y,g.almostEquals(k,Math.round(k),y/1e3)?k=Math.round(k):k=Math.ceil(k),x=Math.round(x*b)/b,w=Math.round(w*b)/b,r.push(Wt(f)?x:f);for(var D=1;D<k;++D)r.push(Math.round((x+D*y)*b)/b);return r.push(Wt(d)?w:d),r}var fa=Ae.extend({getRightValue:function(e){return typeof e=="string"?+e:Ae.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options,r=t.ticks;if(r.beginAtZero){var a=g.sign(e.min),s=g.sign(e.max);a<0&&s<0?e.max=0:a>0&&s>0&&(e.min=0)}var o=r.min!==void 0||r.suggestedMin!==void 0,u=r.max!==void 0||r.suggestedMax!==void 0;r.min!==void 0?e.min=r.min:r.suggestedMin!==void 0&&(e.min===null?e.min=r.suggestedMin:e.min=Math.min(e.min,r.suggestedMin)),r.max!==void 0?e.max=r.max:r.suggestedMax!==void 0&&(e.max===null?e.max=r.suggestedMax:e.max=Math.max(e.max,r.suggestedMax)),o!==u&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,r.beginAtZero||e.min--)},getTickLimit:function(){var e=this,t=e.options.ticks,r=t.stepSize,a=t.maxTicksLimit,s;return r?s=Math.ceil(e.max/r)-Math.floor(e.min/r)+1:(s=e._computeTickLimit(),a=a||11),a&&(s=Math.min(a,s)),s},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wh,buildTicks:function(){var e=this,t=e.options,r=t.ticks,a=e.getTickLimit();a=Math.max(2,a);var s={maxTicks:a,min:r.min,max:r.max,precision:r.precision,stepSize:g.valueOrDefault(r.fixedStepSize,r.stepSize)},o=e.ticks=Mh(s,e);e.handleDirectionalChanges(),e.max=g.max(o),e.min=g.min(o),r.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),Ae.prototype.convertTicksToLabels.call(e)},_configure:function(){var e=this,t=e.getTicks(),r=e.min,a=e.max,s;Ae.prototype._configure.call(e),e.options.offset&&t.length&&(s=(a-r)/Math.max(t.length-1,1)/2,r-=s,a+=s),e._startValue=r,e._endValue=a,e._valueRange=a-r}}),kh={position:"left",ticks:{callback:Pr.formatters.linear}},Sh=0,Dh=1;function Ch(e,t,r){var a=[r.type,t===void 0&&r.stack===void 0?r.index:"",r.stack].join(".");return e[a]===void 0&&(e[a]={pos:[],neg:[]}),e[a]}function Oh(e,t,r,a){var s=e.options,o=s.stacked,u=Ch(t,o,r),f=u.pos,d=u.neg,h=a.length,v,m;for(v=0;v<h;++v)m=e._parseValue(a[v]),!(isNaN(m.min)||isNaN(m.max)||r.data[v].hidden)&&(f[v]=f[v]||0,d[v]=d[v]||0,s.relativePoints?f[v]=100:m.min<0||m.max<0?d[v]+=m.min:f[v]+=m.max)}function Ph(e,t,r){var a=r.length,s,o;for(s=0;s<a;++s)o=e._parseValue(r[s]),!(isNaN(o.min)||isNaN(o.max)||t.data[s].hidden)&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}var gs=fa.extend({determineDataLimits:function(){var e=this,t=e.options,r=e.chart,a=r.data.datasets,s=e._getMatchingVisibleMetas(),o=t.stacked,u={},f=s.length,d,h,v,m;if(e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,o===void 0)for(d=0;!o&&d<f;++d)h=s[d],o=h.stack!==void 0;for(d=0;d<f;++d)h=s[d],v=a[h.index].data,o?Oh(e,u,h,v):Ph(e,h,v);g.each(u,function(y){m=y.pos.concat(y.neg),e.min=Math.min(e.min,g.min(m)),e.max=Math.max(e.max,g.max(m))}),e.min=g.isFinite(e.min)&&!isNaN(e.min)?e.min:Sh,e.max=g.isFinite(e.max)&&!isNaN(e.max)?e.max:Dh,e.handleTickRangeOptions()},_computeTickLimit:function(){var e=this,t;return e.isHorizontal()?Math.ceil(e.width/40):(t=g.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Th=kh;gs._defaults=Th;var ki=g.valueOrDefault,Fe=g.math.log10;function Ah(e,t){var r=[],a=ki(e.min,Math.pow(10,Math.floor(Fe(t.min)))),s=Math.floor(Fe(t.max)),o=Math.ceil(t.max/Math.pow(10,s)),u,f;a===0?(u=Math.floor(Fe(t.minNotZero)),f=Math.floor(t.minNotZero/Math.pow(10,u)),r.push(a),a=f*Math.pow(10,u)):(u=Math.floor(Fe(a)),f=Math.floor(a/Math.pow(10,u)));var d=u<0?Math.pow(10,Math.abs(u)):1;do r.push(a),++f,f===10&&(f=1,++u,d=u>=0?1:d),a=Math.round(f*Math.pow(10,u)*d)/d;while(u<s||u===s&&f<o);var h=ki(e.max,a);return r.push(h),r}var Fh={position:"left",ticks:{callback:Pr.formatters.logarithmic}};function ca(e,t){return g.isFinite(e)&&e>=0?e:t}var ps=Ae.extend({determineDataLimits:function(){var e=this,t=e.options,r=e.chart,a=r.data.datasets,s=e.isHorizontal();function o(k){return s?k.xAxisID===e.id:k.yAxisID===e.id}var u,f,d,h,v,m;e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,e.minNotZero=Number.POSITIVE_INFINITY;var y=t.stacked;if(y===void 0){for(u=0;u<a.length;u++)if(f=r.getDatasetMeta(u),r.isDatasetVisible(u)&&o(f)&&f.stack!==void 0){y=!0;break}}if(t.stacked||y){var b={};for(u=0;u<a.length;u++){f=r.getDatasetMeta(u);var x=[f.type,t.stacked===void 0&&f.stack===void 0?u:"",f.stack].join(".");if(r.isDatasetVisible(u)&&o(f))for(b[x]===void 0&&(b[x]=[]),h=a[u].data,v=0,m=h.length;v<m;v++){var w=b[x];d=e._parseValue(h[v]),!(isNaN(d.min)||isNaN(d.max)||f.data[v].hidden||d.min<0||d.max<0)&&(w[v]=w[v]||0,w[v]+=d.max)}}g.each(b,function(k){if(k.length>0){var D=g.min(k),F=g.max(k);e.min=Math.min(e.min,D),e.max=Math.max(e.max,F)}})}else for(u=0;u<a.length;u++)if(f=r.getDatasetMeta(u),r.isDatasetVisible(u)&&o(f))for(h=a[u].data,v=0,m=h.length;v<m;v++)d=e._parseValue(h[v]),!(isNaN(d.min)||isNaN(d.max)||f.data[v].hidden||d.min<0||d.max<0)&&(e.min=Math.min(d.min,e.min),e.max=Math.max(d.max,e.max),d.min!==0&&(e.minNotZero=Math.min(d.min,e.minNotZero)));e.min=g.isFinite(e.min)?e.min:null,e.max=g.isFinite(e.max)?e.max:null,e.minNotZero=g.isFinite(e.minNotZero)?e.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,r=1,a=10;e.min=ca(t.min,e.min),e.max=ca(t.max,e.max),e.min===e.max&&(e.min!==0&&e.min!==null?(e.min=Math.pow(10,Math.floor(Fe(e.min))-1),e.max=Math.pow(10,Math.floor(Fe(e.max))+1)):(e.min=r,e.max=a)),e.min===null&&(e.min=Math.pow(10,Math.floor(Fe(e.max))-1)),e.max===null&&(e.max=e.min!==0?Math.pow(10,Math.floor(Fe(e.min))+1):a),e.minNotZero===null&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Fe(e.max))):e.minNotZero=r)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),a={min:ca(t.min),max:ca(t.max)},s=e.ticks=Ah(a,e);e.max=g.max(s),e.min=g.min(s),t.reverse?(r=!r,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r&&s.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Ae.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Fe(e)),r=Math.floor(e/Math.pow(10,t));return r*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0;Ae.prototype._configure.call(e),t===0&&(t=e._getFirstTickValue(e.minNotZero),r=ki(e.options.ticks.fontSize,H.global.defaultFontSize)/e._length),e._startValue=Fe(t),e._valueOffset=r,e._valueRange=(Fe(e.max)-Fe(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0;return e=+t.getRightValue(e),e>t.min&&e>0&&(r=(Fe(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e);return r===0&&t.min===0?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}}),Lh=Fh;ps._defaults=Lh;var ha=g.valueOrDefault,Si=g.valueAtIndexOrDefault,ys=g.options.resolve,Ih={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Pr.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Di(e){var t=e.ticks;return t.display&&e.display?ha(t.fontSize,H.global.defaultFontSize)+t.backdropPaddingY*2:0}function Rh(e,t,r){return g.isArray(r)?{w:g.longestText(e,e.font,r),h:r.length*t}:{w:e.measureText(r).width,h:t}}function bs(e,t,r,a,s){return e===a||e===s?{start:t-r/2,end:t+r/2}:e<a||e>s?{start:t-r,end:t}:{start:t,end:t+r}}function Nh(e){var t=g.options._parseFont(e.options.pointLabels),r={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={},s,o,u;e.ctx.font=t.string,e._pointLabelSizes=[];var f=e.chart.data.labels.length;for(s=0;s<f;s++){u=e.getPointPosition(s,e.drawingArea+5),o=Rh(e.ctx,t.lineHeight,e.pointLabels[s]),e._pointLabelSizes[s]=o;var d=e.getIndexAngle(s),h=g.toDegrees(d)%360,v=bs(h,u.x,o.w,0,180),m=bs(h,u.y,o.h,90,270);v.start<r.l&&(r.l=v.start,a.l=d),v.end>r.r&&(r.r=v.end,a.r=d),m.start<r.t&&(r.t=m.start,a.t=d),m.end>r.b&&(r.b=m.end,a.b=d)}e.setReductions(e.drawingArea,r,a)}function Yh(e){return e===0||e===180?"center":e<180?"left":"right"}function Hh(e,t,r,a){var s=r.y+a/2,o,u;if(g.isArray(t))for(o=0,u=t.length;o<u;++o)e.fillText(t[o],r.x,s),s+=a;else e.fillText(t,r.x,s)}function Wh(e,t,r){e===90||e===270?r.y-=t.h/2:(e>270||e<90)&&(r.y-=t.h)}function Vh(e){var t=e.ctx,r=e.options,a=r.pointLabels,s=Di(r),o=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),u=g.options._parseFont(a);t.save(),t.font=u.string,t.textBaseline="middle";for(var f=e.chart.data.labels.length-1;f>=0;f--){var d=f===0?s/2:0,h=e.getPointPosition(f,o+d+5),v=Si(a.fontColor,f,H.global.defaultFontColor);t.fillStyle=v;var m=e.getIndexAngle(f),y=g.toDegrees(m);t.textAlign=Yh(y),Wh(y,e._pointLabelSizes[f],h),Hh(t,e.pointLabels[f],h,u.lineHeight)}t.restore()}function Eh(e,t,r,a){var s=e.ctx,o=t.circular,u=e.chart.data.labels.length,f=Si(t.color,a-1),d=Si(t.lineWidth,a-1),h;if(!(!o&&!u||!f||!d)){if(s.save(),s.strokeStyle=f,s.lineWidth=d,s.setLineDash&&(s.setLineDash(t.borderDash||[]),s.lineDashOffset=t.borderDashOffset||0),s.beginPath(),o)s.arc(e.xCenter,e.yCenter,r,0,Math.PI*2);else{h=e.getPointPosition(0,r),s.moveTo(h.x,h.y);for(var v=1;v<u;v++)h=e.getPointPosition(v,r),s.lineTo(h.x,h.y)}s.closePath(),s.stroke(),s.restore()}}function va(e){return g.isNumber(e)?e:0}var _s=fa.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Di(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;g.each(t.data.datasets,function(s,o){if(t.isDatasetVisible(o)){var u=t.getDatasetMeta(o);g.each(s.data,function(f,d){var h=+e.getRightValue(f);isNaN(h)||u.data[d].hidden||(r=Math.min(h,r),a=Math.max(h,a))})}}),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=a===Number.NEGATIVE_INFINITY?0:a,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Di(this.options))},convertTicksToLabels:function(){var e=this;fa.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=g.callback(e.options.pointLabels.callback,arguments,e);return t||t===0?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?Nh(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var a=this,s=t.l/Math.sin(r.l),o=Math.max(t.r-a.width,0)/Math.sin(r.r),u=-t.t/Math.cos(r.t),f=-Math.max(t.b-(a.height-a.paddingTop),0)/Math.cos(r.b);s=va(s),o=va(o),u=va(u),f=va(f),a.drawingArea=Math.min(Math.floor(e-(s+o)/2),Math.floor(e-(u+f)/2)),a.setCenterPoint(s,o,u,f)},setCenterPoint:function(e,t,r,a){var s=this,o=s.width-t-s.drawingArea,u=e+s.drawingArea,f=r+s.drawingArea,d=s.height-s.paddingTop-a-s.drawingArea;s.xCenter=Math.floor((u+o)/2+s.left),s.yCenter=Math.floor((f+d)/2+s.top+s.paddingTop)},getIndexAngle:function(e){var t=this.chart,r=360/t.data.labels.length,a=t.options||{},s=a.startAngle||0,o=(e*r+s)%360;return(o<0?o+360:o)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(g.isNullOrUndef(e))return NaN;var r=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this,a=r.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(a)*t+r.xCenter,y:Math.sin(a)*t+r.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,r=t.min,a=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:r<0&&a<0?a:r>0&&a>0?r:0)},_drawGrid:function(){var e=this,t=e.ctx,r=e.options,a=r.gridLines,s=r.angleLines,o=ha(s.lineWidth,a.lineWidth),u=ha(s.color,a.color),f,d,h;if(r.pointLabels.display&&Vh(e),a.display&&g.each(e.ticks,function(v,m){m!==0&&(d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[m]),Eh(e,a,d,m))}),s.display&&o&&u){for(t.save(),t.lineWidth=o,t.strokeStyle=u,t.setLineDash&&(t.setLineDash(ys([s.borderDash,a.borderDash,[]])),t.lineDashOffset=ys([s.borderDashOffset,a.borderDashOffset,0])),f=e.chart.data.labels.length-1;f>=0;f--)d=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),h=e.getPointPosition(f,d),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(h.x,h.y),t.stroke();t.restore()}},_drawLabels:function(){var e=this,t=e.ctx,r=e.options,a=r.ticks;if(a.display){var s=e.getIndexAngle(0),o=g.options._parseFont(a),u=ha(a.fontColor,H.global.defaultFontColor),f,d;t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",g.each(e.ticks,function(h,v){v===0&&!a.reverse||(f=e.getDistanceFromCenterForValue(e.ticksAsNumbers[v]),a.showLabelBackdrop&&(d=t.measureText(h).width,t.fillStyle=a.backdropColor,t.fillRect(-d/2-a.backdropPaddingX,-f-o.size/2-a.backdropPaddingY,d+a.backdropPaddingX*2,o.size+a.backdropPaddingY*2)),t.fillStyle=u,t.fillText(h,0,-f))}),t.restore()}},_drawTitle:g.noop}),zh=Ih;_s._defaults=zh;var Ci=g._deprecated,xs=g.options.resolve,$h=g.valueOrDefault,ws=Number.MIN_SAFE_INTEGER||-9007199254740991,Oi=Number.MAX_SAFE_INTEGER||9007199254740991,ma={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}},Le=Object.keys(ma);function Ms(e,t){return e-t}function Bh(e){var t={},r=[],a,s,o;for(a=0,s=e.length;a<s;++a)o=e[a],t[o]||(t[o]=!0,r.push(o));return r}function ks(e){return g.valueOrDefault(e.time.min,e.ticks.min)}function Ss(e){return g.valueOrDefault(e.time.max,e.ticks.max)}function jh(e,t,r,a){if(a==="linear"||!e.length)return[{time:t,pos:0},{time:r,pos:1}];var s=[],o=[t],u,f,d,h,v;for(u=0,f=e.length;u<f;++u)h=e[u],h>t&&h<r&&o.push(h);for(o.push(r),u=0,f=o.length;u<f;++u)v=o[u+1],d=o[u-1],h=o[u],(d===void 0||v===void 0||Math.round((v+d)/2)!==h)&&s.push({time:h,pos:u/(f-1)});return s}function Uh(e,t,r){for(var a=0,s=e.length-1,o,u,f;a>=0&&a<=s;)if(o=a+s>>1,u=e[o-1]||null,f=e[o],u)if(f[t]<r)a=o+1;else if(u[t]>r)s=o-1;else return{lo:u,hi:f};else return{lo:null,hi:f};return{lo:f,hi:null}}function ar(e,t,r,a){var s=Uh(e,t,r),o=s.lo?s.hi?s.lo:e[e.length-2]:e[0],u=s.lo?s.hi?s.hi:e[e.length-1]:e[1],f=u[t]-o[t],d=f?(r-o[t])/f:0,h=(u[a]-o[a])*d;return o[a]+h}function Pi(e,t){var r=e._adapter,a=e.options.time,s=a.parser,o=s||a.format,u=t;return typeof s=="function"&&(u=s(u)),g.isFinite(u)||(u=typeof o=="string"?r.parse(u,o):r.parse(u)),u!==null?+u:(!s&&typeof o=="function"&&(u=o(t),g.isFinite(u)||(u=r.parse(u))),u)}function Vt(e,t){if(g.isNullOrUndef(t))return null;var r=e.options.time,a=Pi(e,e.getRightValue(t));return a===null||r.round&&(a=+e._adapter.startOf(a,r.round)),a}function Ds(e,t,r,a){var s=Le.length,o,u,f;for(o=Le.indexOf(e);o<s-1;++o)if(u=ma[Le[o]],f=u.steps?u.steps:Oi,u.common&&Math.ceil((r-t)/(f*u.size))<=a)return Le[o];return Le[s-1]}function Zh(e,t,r,a,s){var o,u;for(o=Le.length-1;o>=Le.indexOf(r);o--)if(u=Le[o],ma[u].common&&e._adapter.diff(s,a,u)>=t-1)return u;return Le[r?Le.indexOf(r):0]}function Gh(e){for(var t=Le.indexOf(e)+1,r=Le.length;t<r;++t)if(ma[Le[t]].common)return Le[t]}function qh(e,t,r,a){var s=e._adapter,o=e.options,u=o.time,f=u.unit||Ds(u.minUnit,t,r,a),d=xs([u.stepSize,u.unitStepSize,1]),h=f==="week"?u.isoWeekday:!1,v=t,m=[],y;if(h&&(v=+s.startOf(v,"isoWeek",h)),v=+s.startOf(v,h?"day":f),s.diff(r,t,f)>1e5*d)throw t+" and "+r+" are too far apart with stepSize of "+d+" "+f;for(y=v;y<r;y=+s.add(y,d,f))m.push(y);return(y===r||o.bounds==="ticks")&&m.push(y),m}function Kh(e,t,r,a,s){var o=0,u=0,f,d;return s.offset&&t.length&&(f=ar(e,"time",t[0],"pos"),t.length===1?o=1-f:o=(ar(e,"time",t[1],"pos")-f)/2,d=ar(e,"time",t[t.length-1],"pos"),t.length===1?u=d:u=(d-ar(e,"time",t[t.length-2],"pos"))/2),{start:o,end:u,factor:1/(o+1+u)}}function Jh(e,t,r,a){var s=e._adapter,o=+s.startOf(t[0].value,a),u=t[t.length-1].value,f,d;for(f=o;f<=u;f=+s.add(f,1,a))d=r[f],d>=0&&(t[d].major=!0);return t}function Cs(e,t,r){var a=[],s={},o=t.length,u,f;for(u=0;u<o;++u)f=t[u],s[f]=u,a.push({value:f,major:!1});return o===0||!r?a:Jh(e,a,s,r)}var Xh={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Os=Ae.extend({initialize:function(){this.mergeTicksOptions(),Ae.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),a=e._adapter=new yi._date(t.adapters.date);return Ci("time scale",r.format,"time.format","time.parser"),Ci("time scale",r.min,"time.min","ticks.min"),Ci("time scale",r.max,"time.max","ticks.max"),g.mergeIf(r.displayFormats,a.formats()),Ae.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&e.t!==void 0&&(e=e.t),Ae.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e=this,t=e.chart,r=e._adapter,a=e.options,s=a.time.unit||"day",o=Oi,u=ws,f=[],d=[],h=[],v,m,y,b,x,w,k,D=e._getLabels();for(v=0,y=D.length;v<y;++v)h.push(Vt(e,D[v]));for(v=0,y=(t.data.datasets||[]).length;v<y;++v)if(t.isDatasetVisible(v))if(x=t.data.datasets[v].data,g.isObject(x[0]))for(d[v]=[],m=0,b=x.length;m<b;++m)w=Vt(e,x[m]),f.push(w),d[v][m]=w;else d[v]=h.slice(0),k||(f=f.concat(h),k=!0);else d[v]=[];h.length&&(o=Math.min(o,h[0]),u=Math.max(u,h[h.length-1])),f.length&&(f=y>1?Bh(f).sort(Ms):f.sort(Ms),o=Math.min(o,f[0]),u=Math.max(u,f[f.length-1])),o=Vt(e,ks(a))||o,u=Vt(e,Ss(a))||u,o=o===Oi?+r.startOf(Date.now(),s):o,u=u===ws?+r.endOf(Date.now(),s)+1:u,e.min=Math.min(o,u),e.max=Math.max(o+1,u),e._table=[],e._timestamps={data:f,datasets:d,labels:h}},buildTicks:function(){var e=this,t=e.min,r=e.max,a=e.options,s=a.ticks,o=a.time,u=e._timestamps,f=[],d=e.getLabelCapacity(t),h=s.source,v=a.distribution,m,y,b;for(h==="data"||h==="auto"&&v==="series"?u=u.data:h==="labels"?u=u.labels:u=qh(e,t,r,d),a.bounds==="ticks"&&u.length&&(t=u[0],r=u[u.length-1]),t=Vt(e,ks(a))||t,r=Vt(e,Ss(a))||r,m=0,y=u.length;m<y;++m)b=u[m],b>=t&&b<=r&&f.push(b);return e.min=t,e.max=r,e._unit=o.unit||(s.autoSkip?Ds(o.minUnit,e.min,e.max,d):Zh(e,f.length,o.minUnit,e.min,e.max)),e._majorUnit=!s.major.enabled||e._unit==="year"?void 0:Gh(e._unit),e._table=jh(e._timestamps.data,t,r,v),e._offsets=Kh(e._table,f,t,r,a),s.reverse&&f.reverse(),Cs(e,f,e._majorUnit)},getLabelForIndex:function(e,t){var r=this,a=r._adapter,s=r.chart.data,o=r.options.time,u=s.labels&&e<s.labels.length?s.labels[e]:"",f=s.datasets[t].data[e];return g.isObject(f)&&(u=r.getRightValue(f)),o.tooltipFormat?a.format(Pi(r,u),o.tooltipFormat):typeof u=="string"?u:a.format(Pi(r,u),o.displayFormats.datetime)},tickFormatFunction:function(e,t,r,a){var s=this,o=s._adapter,u=s.options,f=u.time.displayFormats,d=f[s._unit],h=s._majorUnit,v=f[h],m=r[t],y=u.ticks,b=h&&v&&m&&m.major,x=o.format(e,a||(b?v:d)),w=b?y.major:y.minor,k=xs([w.callback,w.userCallback,y.callback,y.userCallback]);return k?k(x,t,r):x},convertTicksToLabels:function(e){var t=[],r,a;for(r=0,a=e.length;r<a;++r)t.push(this.tickFormatFunction(e[r].value,r,e));return t},getPixelForOffset:function(e){var t=this,r=t._offsets,a=ar(t._table,"time",e,"pos");return t.getPixelForDecimal((r.start+a)*r.factor)},getPixelForValue:function(e,t,r){var a=this,s=null;if(t!==void 0&&r!==void 0&&(s=a._timestamps.datasets[r][t]),s===null&&(s=Vt(a,e)),s!==null)return a.getPixelForOffset(s)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,r=t._offsets,a=t.getDecimalForPixel(e)/r.factor-r.end,s=ar(t._table,"pos",a,"time");return t._adapter._create(s)},_getLabelSize:function(e){var t=this,r=t.options.ticks,a=t.ctx.measureText(e).width,s=g.toRadians(t.isHorizontal()?r.maxRotation:r.minRotation),o=Math.cos(s),u=Math.sin(s),f=$h(r.fontSize,H.global.defaultFontSize);return{w:a*o+f*u,h:a*u+f*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,r=t.options.time,a=r.displayFormats,s=a[r.unit]||a.millisecond,o=t.tickFormatFunction(e,0,Cs(t,[e],t._majorUnit),s),u=t._getLabelSize(o),f=Math.floor(t.isHorizontal()?t.width/u.w:t.height/u.h);return t.options.offset&&f--,f>0?f:1}}),Qh=Xh;Os._defaults=Qh;var e0={category:ms,linear:gs,logarithmic:ps,radialLinear:_s,time:Os},t0={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};yi._date.override(typeof l=="function"?{_id:"moment",formats:function(){return t0},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=l(e,t):e instanceof l||(e=l(e)),e.isValid()?e.valueOf():null},format:function(e,t){return l(e).format(t)},add:function(e,t,r){return l(e).add(t,r).valueOf()},diff:function(e,t,r){return l(e).diff(l(t),r)},startOf:function(e,t,r){return e=l(e),t==="isoWeek"?e.isoWeekday(r).valueOf():e.startOf(t).valueOf()},endOf:function(e,t){return l(e).endOf(t).valueOf()},_create:function(e){return l(e)}}:{}),H._set("global",{plugins:{filler:{propagate:!0}}});var r0={dataset:function(e){var t=e.fill,r=e.chart,a=r.getDatasetMeta(t),s=a&&r.isDatasetVisible(t),o=s&&a.dataset._children||[],u=o.length||0;return u?function(f,d){return d<u&&o[d]._view||null}:null},boundary:function(e){var t=e.boundary,r=t?t.x:null,a=t?t.y:null;return g.isArray(t)?function(s,o){return t[o]}:function(s){return{x:r===null?s.x:r,y:a===null?s.y:a}}}};function a0(e,t,r){var a=e._model||{},s=a.fill,o;if(s===void 0&&(s=!!a.backgroundColor),s===!1||s===null)return!1;if(s===!0)return"origin";if(o=parseFloat(s,10),isFinite(o)&&Math.floor(o)===o)return(s[0]==="-"||s[0]==="+")&&(o=t+o),o===t||o<0||o>=r?!1:o;switch(s){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return s;default:return!1}}function i0(e){var t=e.el._model||{},r=e.el._scale||{},a=e.fill,s=null,o;if(isFinite(a))return null;if(a==="start"?s=t.scaleBottom===void 0?r.bottom:t.scaleBottom:a==="end"?s=t.scaleTop===void 0?r.top:t.scaleTop:t.scaleZero!==void 0?s=t.scaleZero:r.getBasePixel&&(s=r.getBasePixel()),s!=null){if(s.x!==void 0&&s.y!==void 0)return s;if(g.isFinite(s))return o=r.isHorizontal(),{x:o?s:null,y:o?null:s}}return null}function n0(e){var t=e.el._scale,r=t.options,a=t.chart.data.labels.length,s=e.fill,o=[],u,f,d,h,v;if(!a)return null;for(u=r.ticks.reverse?t.max:t.min,f=r.ticks.reverse?t.min:t.max,d=t.getPointPositionForValue(0,u),h=0;h<a;++h)v=s==="start"||s==="end"?t.getPointPositionForValue(h,s==="start"?u:f):t.getBasePosition(h),r.gridLines.circular&&(v.cx=d.x,v.cy=d.y,v.angle=t.getIndexAngle(h)-Math.PI/2),o.push(v);return o}function s0(e){var t=e.el._scale||{};return t.getPointPositionForValue?n0(e):i0(e)}function o0(e,t,r){var a=e[t],s=a.fill,o=[t],u;if(!r)return s;for(;s!==!1&&o.indexOf(s)===-1;){if(!isFinite(s))return s;if(u=e[s],!u)return!1;if(u.visible)return s;o.push(s),s=u.fill}return!1}function l0(e){var t=e.fill,r="dataset";return t===!1?null:(isFinite(t)||(r="boundary"),r0[r](e))}function Ps(e){return e&&!e.skip}function Ts(e,t,r,a,s){var o,u,f,d;if(!(!a||!s)){for(e.moveTo(t[0].x,t[0].y),o=1;o<a;++o)g.canvas.lineTo(e,t[o-1],t[o]);if(r[0].angle!==void 0){for(u=r[0].cx,f=r[0].cy,d=Math.sqrt(Math.pow(r[0].x-u,2)+Math.pow(r[0].y-f,2)),o=s-1;o>0;--o)e.arc(u,f,d,r[o].angle,r[o-1].angle,!0);return}for(e.lineTo(r[s-1].x,r[s-1].y),o=s-1;o>0;--o)g.canvas.lineTo(e,r[o],r[o-1],!0)}}function u0(e,t,r,a,s,o){var u=t.length,f=a.spanGaps,d=[],h=[],v=0,m=0,y,b,x,w,k,D,F,R;for(e.beginPath(),y=0,b=u;y<b;++y)x=y%u,w=t[x]._view,k=r(w,x,a),D=Ps(w),F=Ps(k),o&&R===void 0&&D&&(R=y+1,b=u+R),D&&F?(v=d.push(w),m=h.push(k)):v&&m&&(f?(D&&d.push(w),F&&h.push(k)):(Ts(e,d,h,v,m),v=m=0,d=[],h=[]));Ts(e,d,h,v,m),e.closePath(),e.fillStyle=s,e.fill()}var d0={id:"filler",afterDatasetsUpdate:function(e,t){var r=(e.data.datasets||[]).length,a=t.propagate,s=[],o,u,f,d;for(u=0;u<r;++u)o=e.getDatasetMeta(u),f=o.dataset,d=null,f&&f._model&&f instanceof Te.Line&&(d={visible:e.isDatasetVisible(u),fill:a0(f,u,r),chart:e,el:f}),o.$filler=d,s.push(d);for(u=0;u<r;++u)d=s[u],d&&(d.fill=o0(s,u,a),d.boundary=s0(d),d.mapper=l0(d))},beforeDatasetsDraw:function(e){var t=e._getSortedVisibleDatasetMetas(),r=e.ctx,a,s,o,u,f,d,h;for(s=t.length-1;s>=0;--s)a=t[s].$filler,!(!a||!a.visible)&&(o=a.el,u=o._view,f=o._children||[],d=a.mapper,h=u.backgroundColor||H.global.defaultColor,d&&h&&f.length&&(g.canvas.clipArea(r,e.chartArea),u0(r,f,d,u,h,o._loop),g.canvas.unclipArea(r)))}},f0=g.rtl.getRtlAdapter,Mt=g.noop,kt=g.valueOrDefault;H._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,a=this.chart,s=a.getDatasetMeta(r);s.hidden=s.hidden===null?!a.data.datasets[r].hidden:null,a.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},a=r.labels&&r.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(s){var o=s.controller.getStyle(a?0:void 0);return{text:t[s.index].label,fillStyle:o.backgroundColor,hidden:!e.isDatasetVisible(s.index),lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:o.borderWidth,strokeStyle:o.borderColor,pointStyle:o.pointStyle,rotation:o.rotation,datasetIndex:s.index}},this)}}},legendCallback:function(e){var t=document.createElement("ul"),r=e.data.datasets,a,s,o,u;for(t.setAttribute("class",e.id+"-legend"),a=0,s=r.length;a<s;a++)o=t.appendChild(document.createElement("li")),u=o.appendChild(document.createElement("span")),u.style.backgroundColor=r[a].backgroundColor,r[a].label&&o.appendChild(document.createTextNode(r[a].label));return t.outerHTML}});function Ti(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}var As=Qe.extend({initialize:function(e){var t=this;g.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Mt,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:Mt,beforeSetDimensions:Mt,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Mt,beforeBuildLabels:Mt,buildLabels:function(){var e=this,t=e.options.labels||{},r=g.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(r=r.filter(function(a){return t.filter(a,e.chart.data)})),e.options.reverse&&r.reverse(),e.legendItems=r},afterBuildLabels:Mt,beforeFit:Mt,fit:function(){var e=this,t=e.options,r=t.labels,a=t.display,s=e.ctx,o=g.options._parseFont(r),u=o.size,f=e.legendHitBoxes=[],d=e.minSize,h=e.isHorizontal();if(h?(d.width=e.maxWidth,d.height=a?10:0):(d.width=a?10:0,d.height=e.maxHeight),!a){e.width=d.width=e.height=d.height=0;return}if(s.font=o.string,h){var v=e.lineWidths=[0],m=0;s.textAlign="left",s.textBaseline="middle",g.each(e.legendItems,function(F,R){var j=Ti(r,u),B=j+u/2+s.measureText(F.text).width;(R===0||v[v.length-1]+B+2*r.padding>d.width)&&(m+=u+r.padding,v[v.length-(R>0?0:1)]=0),f[R]={left:0,top:0,width:B,height:u},v[v.length-1]+=B+r.padding}),d.height+=m}else{var y=r.padding,b=e.columnWidths=[],x=e.columnHeights=[],w=r.padding,k=0,D=0;g.each(e.legendItems,function(F,R){var j=Ti(r,u),B=j+u/2+s.measureText(F.text).width;R>0&&D+u+2*y>d.height&&(w+=k+r.padding,b.push(k),x.push(D),k=0,D=0),k=Math.max(k,B),D+=u+y,f[R]={left:0,top:0,width:B,height:u}}),w+=k,b.push(k),x.push(D),d.width+=w}e.width=d.width,e.height=d.height},afterFit:Mt,isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},draw:function(){var e=this,t=e.options,r=t.labels,a=H.global,s=a.defaultColor,o=a.elements.line,u=e.height,f=e.columnHeights,d=e.width,h=e.lineWidths;if(t.display){var v=f0(t.rtl,e.left,e.minSize.width),m=e.ctx,y=kt(r.fontColor,a.defaultFontColor),b=g.options._parseFont(r),x=b.size,w;m.textAlign=v.textAlign("left"),m.textBaseline="middle",m.lineWidth=.5,m.strokeStyle=y,m.fillStyle=y,m.font=b.string;var k=Ti(r,x),D=e.legendHitBoxes,F=function(J,ne,le){if(!(isNaN(k)||k<=0)){m.save();var Me=kt(le.lineWidth,o.borderWidth);if(m.fillStyle=kt(le.fillStyle,s),m.lineCap=kt(le.lineCap,o.borderCapStyle),m.lineDashOffset=kt(le.lineDashOffset,o.borderDashOffset),m.lineJoin=kt(le.lineJoin,o.borderJoinStyle),m.lineWidth=Me,m.strokeStyle=kt(le.strokeStyle,s),m.setLineDash&&m.setLineDash(kt(le.lineDash,o.borderDash)),r&&r.usePointStyle){var xe=k*Math.SQRT2/2,pe=v.xPlus(J,k/2),ke=ne+x/2;g.canvas.drawPoint(m,le.pointStyle,xe,pe,ke,le.rotation)}else m.fillRect(v.leftForLtr(J,k),ne,k,x),Me!==0&&m.strokeRect(v.leftForLtr(J,k),ne,k,x);m.restore()}},R=function(J,ne,le,Me){var xe=x/2,pe=v.xPlus(J,k+xe),ke=ne+xe;m.fillText(le.text,pe,ke),le.hidden&&(m.beginPath(),m.lineWidth=2,m.moveTo(pe,ke),m.lineTo(v.xPlus(pe,Me),ke),m.stroke())},j=function(J,ne){switch(t.align){case"start":return r.padding;case"end":return J-ne;default:return(J-ne+r.padding)/2}},B=e.isHorizontal();B?w={x:e.left+j(d,h[0]),y:e.top+r.padding,line:0}:w={x:e.left+r.padding,y:e.top+j(u,f[0]),line:0},g.rtl.overrideTextDirection(e.ctx,t.textDirection);var ee=x+r.padding;g.each(e.legendItems,function(J,ne){var le=m.measureText(J.text).width,Me=k+x/2+le,xe=w.x,pe=w.y;v.setWidth(e.minSize.width),B?ne>0&&xe+Me+r.padding>e.left+e.minSize.width&&(pe=w.y+=ee,w.line++,xe=w.x=e.left+j(d,h[w.line])):ne>0&&pe+ee>e.top+e.minSize.height&&(xe=w.x=xe+e.columnWidths[w.line]+r.padding,w.line++,pe=w.y=e.top+j(u,f[w.line]));var ke=v.x(xe);F(ke,pe,J),D[ne].left=v.leftForLtr(ke,D[ne].width),D[ne].top=pe,R(ke,pe,J,le),B?w.x+=Me+r.padding:w.y+=ee}),g.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var r=this,a,s,o;if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom){for(o=r.legendHitBoxes,a=0;a<o.length;++a)if(s=o[a],e>=s.left&&e<=s.left+s.width&&t>=s.top&&t<=s.top+s.height)return r.legendItems[a]}return null},handleEvent:function(e){var t=this,r=t.options,a=e.type==="mouseup"?"click":e.type,s;if(a==="mousemove"){if(!r.onHover&&!r.onLeave)return}else if(a==="click"){if(!r.onClick)return}else return;s=t._getLegendItemAt(e.x,e.y),a==="click"?s&&r.onClick&&r.onClick.call(t,e.native,s):(r.onLeave&&s!==t._hoveredItem&&(t._hoveredItem&&r.onLeave.call(t,e.native,t._hoveredItem),t._hoveredItem=s),r.onHover&&s&&r.onHover.call(t,e.native,s))}});function Fs(e,t){var r=new As({ctx:e.ctx,options:t,chart:e});Ee.configure(e,r,t),Ee.addBox(e,r),e.legend=r}var c0={id:"legend",_element:As,beforeInit:function(e){var t=e.options.legend;t&&Fs(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(g.mergeIf(t,H.global.legend),r?(Ee.configure(e,r,t),r.options=t):Fs(e,t)):r&&(Ee.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},gt=g.noop;H._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ls=Qe.extend({initialize:function(e){var t=this;g.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:gt,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:gt,beforeSetDimensions:gt,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:gt,beforeBuildLabels:gt,buildLabels:gt,afterBuildLabels:gt,beforeFit:gt,fit:function(){var e=this,t=e.options,r=e.minSize={},a=e.isHorizontal(),s,o;if(!t.display){e.width=r.width=e.height=r.height=0;return}s=g.isArray(t.text)?t.text.length:1,o=s*g.options._parseFont(t).lineHeight+t.padding*2,e.width=r.width=a?e.maxWidth:o,e.height=r.height=a?o:e.maxHeight},afterFit:gt,isHorizontal:function(){var e=this.options.position;return e==="top"||e==="bottom"},draw:function(){var e=this,t=e.ctx,r=e.options;if(r.display){var a=g.options._parseFont(r),s=a.lineHeight,o=s/2+r.padding,u=0,f=e.top,d=e.left,h=e.bottom,v=e.right,m,y,b;t.fillStyle=g.valueOrDefault(r.fontColor,H.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(y=d+(v-d)/2,b=f+o,m=v-d):(y=r.position==="left"?d+o:v-o,b=f+(h-f)/2,m=h-f,u=Math.PI*(r.position==="left"?-.5:.5)),t.save(),t.translate(y,b),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var x=r.text;if(g.isArray(x))for(var w=0,k=0;k<x.length;++k)t.fillText(x[k],0,w,m),w+=s;else t.fillText(x,0,0,m);t.restore()}}});function Is(e,t){var r=new Ls({ctx:e.ctx,options:t,chart:e});Ee.configure(e,r,t),Ee.addBox(e,r),e.titleBlock=r}var h0={id:"title",_element:Ls,beforeInit:function(e){var t=e.options.title;t&&Is(e,t)},beforeUpdate:function(e){var t=e.options.title,r=e.titleBlock;t?(g.mergeIf(t,H.global.title),r?(Ee.configure(e,r,t),r.options=t):Is(e,t)):r&&(Ee.removeBox(e,r),delete e.titleBlock)}},St={},v0=d0,m0=c0,g0=h0;St.filler=v0,St.legend=m0,St.title=g0,Z.helpers=g,dh(),Z._adapters=yi,Z.Animation=ei,Z.animationService=ti,Z.controllers=Qn,Z.DatasetController=Ve,Z.defaults=H,Z.Element=Qe,Z.elements=Te,Z.Interaction=er,Z.layouts=Ee,Z.platform=tr,Z.plugins=se,Z.Scale=Ae,Z.scaleService=Or,Z.Ticks=Pr,Z.Tooltip=mi,Z.helpers.each(e0,function(e,t){Z.scaleService.registerScaleType(t,e,e._defaults)});for(var Rs in St)St.hasOwnProperty(Rs)&&Z.plugins.register(St[Rs]);Z.platform.initialize();var p0=Z;return typeof window<"u"&&(window.Chart=Z),Z.Chart=Z,Z.Legend=St.legend._element,Z.Title=St.title._element,Z.pluginService=Z.plugins,Z.PluginBase=Z.Element.extend({}),Z.canvasHelpers=Z.helpers.canvas,Z.layoutService=Z.layouts,Z.LinearScaleBase=fa,Z.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){Z[e]=function(t,r){return new Z(t,Z.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),p0})})(Ii);var zd=Ii.exports;const $d=Li(zd);function Bd(i,n){return{render:function(c){return c("div",{style:this.styles,class:this.cssClasses},[c("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:i,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:function(){return[]}}},data:function(){return{_chart:null,_plugins:this.plugins}},methods:{addPlugin:function(c){this.$data._plugins.push(c)},generateLegend:function(){if(this.$data._chart)return this.$data._chart.generateLegend()},renderChart:function(c,p){if(this.$data._chart&&this.$data._chart.destroy(),!this.$refs.canvas)throw new Error("Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");this.$data._chart=new $d(this.$refs.canvas.getContext("2d"),{type:n,data:c,options:p,plugins:this.$data._plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}}var jd=Bd("line-chart","line"),qa={exports:{}},Ln;function Ka(){return Ln||(Ln=1,function(i,n){(function(l,c){i.exports=c()})(Fr,function(){var l=1e3,c=6e4,p=36e5,_="millisecond",M="second",S="minute",O="hour",W="day",oe="week",re="month",he="quarter",Ce="year",_t="date",ea="Invalid Date",Ja=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yr=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Re={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var I=["th","st","nd","rd"],T=E%100;return"["+E+(I[(T-20)%10]||I[T]||I[0])+"]"}},Tt=function(E,I,T){var Y=String(E);return!Y||Y.length>=I?E:""+Array(I+1-Y.length).join(T)+E},br={s:Tt,z:function(E){var I=-E.utcOffset(),T=Math.abs(I),Y=Math.floor(T/60),P=T%60;return(I<=0?"+":"-")+Tt(Y,2,"0")+":"+Tt(P,2,"0")},m:function E(I,T){if(I.date()<T.date())return-E(T,I);var Y=12*(T.year()-I.year())+(T.month()-I.month()),P=I.clone().add(Y,re),z=T-P<0,$=I.clone().add(Y+(z?-1:1),re);return+(-(Y+(T-P)/(z?P-$:$-P))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:re,y:Ce,w:oe,d:W,D:_t,h:O,m:S,s:M,ms:_,Q:he}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},xt="en",ft={};ft[xt]=Re;var ta="$isDayjsObject",_r=function(E){return E instanceof Jt||!(!E||!E[ta])},Kt=function E(I,T,Y){var P;if(!I)return xt;if(typeof I=="string"){var z=I.toLowerCase();ft[z]&&(P=z),T&&(ft[z]=T,P=z);var $=I.split("-");if(!P&&$.length>1)return E($[0])}else{var ae=I.name;ft[ae]=I,P=ae}return!Y&&P&&(xt=P),P||!Y&&xt},ge=function(E,I){if(_r(E))return E.clone();var T=typeof I=="object"?I:{};return T.date=E,T.args=arguments,new Jt(T)},te=br;te.l=Kt,te.i=_r,te.w=function(E,I){return ge(E,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var Jt=function(){function E(T){this.$L=Kt(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[ta]=!0}var I=E.prototype;return I.parse=function(T){this.$d=function(Y){var P=Y.date,z=Y.utc;if(P===null)return new Date(NaN);if(te.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var $=P.match(Ja);if($){var ae=$[2]-1||0,q=($[7]||"0").substring(0,3);return z?new Date(Date.UTC($[1],ae,$[3]||1,$[4]||0,$[5]||0,$[6]||0,q)):new Date($[1],ae,$[3]||1,$[4]||0,$[5]||0,$[6]||0,q)}}return new Date(P)}(T),this.init()},I.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},I.$utils=function(){return te},I.isValid=function(){return this.$d.toString()!==ea},I.isSame=function(T,Y){var P=ge(T);return this.startOf(Y)<=P&&P<=this.endOf(Y)},I.isAfter=function(T,Y){return ge(T)<this.startOf(Y)},I.isBefore=function(T,Y){return this.endOf(Y)<ge(T)},I.$g=function(T,Y,P){return te.u(T)?this[Y]:this.set(P,T)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(T,Y){var P=this,z=!!te.u(Y)||Y,$=te.p(T),ae=function(ve,De){var Je=te.w(P.$u?Date.UTC(P.$y,De,ve):new Date(P.$y,De,ve),P);return z?Je:Je.endOf(W)},q=function(ve,De){return te.w(P.toDate()[ve].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(De)),P)},ce=this.$W,be=this.$M,V=this.$D,_e="set"+(this.$u?"UTC":"");switch($){case Ce:return z?ae(1,0):ae(31,11);case re:return z?ae(1,be):ae(0,be+1);case oe:var Ne=this.$locale().weekStart||0,At=(ce<Ne?ce+7:ce)-Ne;return ae(z?V-At:V+(6-At),be);case W:case _t:return q(_e+"Hours",0);case O:return q(_e+"Minutes",1);case S:return q(_e+"Seconds",2);case M:return q(_e+"Milliseconds",3);default:return this.clone()}},I.endOf=function(T){return this.startOf(T,!1)},I.$set=function(T,Y){var P,z=te.p(T),$="set"+(this.$u?"UTC":""),ae=(P={},P[W]=$+"Date",P[_t]=$+"Date",P[re]=$+"Month",P[Ce]=$+"FullYear",P[O]=$+"Hours",P[S]=$+"Minutes",P[M]=$+"Seconds",P[_]=$+"Milliseconds",P)[z],q=z===W?this.$D+(Y-this.$W):Y;if(z===re||z===Ce){var ce=this.clone().set(_t,1);ce.$d[ae](q),ce.init(),this.$d=ce.set(_t,Math.min(this.$D,ce.daysInMonth())).$d}else ae&&this.$d[ae](q);return this.init(),this},I.set=function(T,Y){return this.clone().$set(T,Y)},I.get=function(T){return this[te.p(T)]()},I.add=function(T,Y){var P,z=this;T=Number(T);var $=te.p(Y),ae=function(be){var V=ge(z);return te.w(V.date(V.date()+Math.round(be*T)),z)};if($===re)return this.set(re,this.$M+T);if($===Ce)return this.set(Ce,this.$y+T);if($===W)return ae(1);if($===oe)return ae(7);var q=(P={},P[S]=c,P[O]=p,P[M]=l,P)[$]||1,ce=this.$d.getTime()+T*q;return te.w(ce,this)},I.subtract=function(T,Y){return this.add(-1*T,Y)},I.format=function(T){var Y=this,P=this.$locale();if(!this.isValid())return P.invalidDate||ea;var z=T||"YYYY-MM-DDTHH:mm:ssZ",$=te.z(this),ae=this.$H,q=this.$m,ce=this.$M,be=P.weekdays,V=P.months,_e=P.meridiem,Ne=function(De,Je,we,Xe){return De&&(De[Je]||De(Y,z))||we[Je].slice(0,Xe)},At=function(De){return te.s(ae%12||12,De,"0")},ve=_e||function(De,Je,we){var Xe=De<12?"AM":"PM";return we?Xe.toLowerCase():Xe};return z.replace(yr,function(De,Je){return Je||function(we){switch(we){case"YY":return String(Y.$y).slice(-2);case"YYYY":return te.s(Y.$y,4,"0");case"M":return ce+1;case"MM":return te.s(ce+1,2,"0");case"MMM":return Ne(P.monthsShort,ce,V,3);case"MMMM":return Ne(V,ce);case"D":return Y.$D;case"DD":return te.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return Ne(P.weekdaysMin,Y.$W,be,2);case"ddd":return Ne(P.weekdaysShort,Y.$W,be,3);case"dddd":return be[Y.$W];case"H":return String(ae);case"HH":return te.s(ae,2,"0");case"h":return At(1);case"hh":return At(2);case"a":return ve(ae,q,!0);case"A":return ve(ae,q,!1);case"m":return String(q);case"mm":return te.s(q,2,"0");case"s":return String(Y.$s);case"ss":return te.s(Y.$s,2,"0");case"SSS":return te.s(Y.$ms,3,"0");case"Z":return $}return null}(De)||$.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(T,Y,P){var z,$=this,ae=te.p(Y),q=ge(T),ce=(q.utcOffset()-this.utcOffset())*c,be=this-q,V=function(){return te.m($,q)};switch(ae){case Ce:z=V()/12;break;case re:z=V();break;case he:z=V()/3;break;case oe:z=(be-ce)/6048e5;break;case W:z=(be-ce)/864e5;break;case O:z=be/p;break;case S:z=be/c;break;case M:z=be/l;break;default:z=be}return P?z:te.a(z)},I.daysInMonth=function(){return this.endOf(re).$D},I.$locale=function(){return ft[this.$L]},I.locale=function(T,Y){if(!T)return this.$L;var P=this.clone(),z=Kt(T,Y,!0);return z&&(P.$L=z),P},I.clone=function(){return te.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},E}(),xr=Jt.prototype;return ge.prototype=xr,[["$ms",_],["$s",M],["$m",S],["$H",O],["$W",W],["$M",re],["$y",Ce],["$D",_t]].forEach(function(E){xr[E[1]]=function(I){return this.$g(I,E[0],E[1])}}),ge.extend=function(E,I){return E.$i||(E(I,Jt,ge),E.$i=!0),ge},ge.locale=Kt,ge.isDayjs=_r,ge.unix=function(E){return ge(1e3*E)},ge.en=ft[xt],ge.Ls=ft,ge.p={},ge})}(qa)),qa.exports}var Ud=Ka();const pr=Li(Ud);var Zd={exports:{}};(function(i,n){(function(l,c){i.exports=c(Ka())})(Fr,function(l){function c(O){return O&&typeof O=="object"&&"default"in O?O:{default:O}}var p=c(l),_={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function M(O,W,oe){var re=_[oe];return Array.isArray(re)&&(re=re[W?0:1]),re.replace("%d",O)}var S={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(O){return O+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M}};return p.default.locale(S,null,!0),S})})(Zd);var Gd={exports:{}};(function(i,n){(function(l,c){i.exports=c(Ka())})(Fr,function(l){function c(M){return M&&typeof M=="object"&&"default"in M?M:{default:M}}var p=c(l),_={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(M){return""+M+(M===1?"er":"")}};return p.default.locale(_,null,!0),_})})(Gd);function Ke(i,n,l,c,p,_,M,S){var O=typeof i=="function"?i.options:i;return n&&(O.render=n,O.staticRenderFns=l,O._compiled=!0),{exports:i,options:O}}const qd={extends:jd,mixins:[Hs.reactiveData],data(){return{rendered:!1,chartData:{labels:[],tooltipLabels:[],datasets:[{data:[]}]},options:{scales:{yAxes:[{ticks:{beginAtZero:!0,fontColor:"#b2b2b2",padding:6},gridLines:{display:!0,tickMarkLength:5,zeroLineColor:"#b2b2b2",color:"#dfdfdf"}}],xAxes:[{gridLines:{display:!0,tickMarkLength:6},ticks:{fontColor:"#b2b2b2",padding:6}}]},elements:{line:{tension:0,backgroundColor:"rgba(211, 222, 180, 0.5)",borderColor:"#a7bd69"},point:{radius:5,backgroundColor:"#ffffff",borderColor:"#a7bd69",borderWidth:3,hoverRadius:6}},legend:{display:!1},tooltips:{mode:"label",backgroundColor:"#282c34",xPadding:12,yPadding:8,caretPadding:10,cornerRadius:4,caretSize:6,displayColors:!1,titleFontStyle:"normal",titleFontColor:"#999999",callbacks:{title(i,n){return n.tooltipLabels[i[0].index]},label(i,n){return n.datasets[0].data[i.index]+" visits"}}},hover:{animationDuration:0},responsive:!0,maintainAspectRatio:!1}}},props:{currentPeriod:String,lang:String},computed:{config(){let i={};return this.currentPeriod=="year"&&(i={method:"VisitsSummary.getUniqueVisitors",period:"month",date:"last12"}),this.currentPeriod=="month"&&(i={method:"VisitsSummary.getUniqueVisitors",period:"day",date:"last31"}),this.currentPeriod=="week"&&(i={method:"VisitsSummary.getUniqueVisitors",period:"day",date:"last7"}),this.currentPeriod=="day"&&(i={method:"VisitTime.getVisitInformationPerServerTime",period:"day",date:"today"}),i}},watch:{currentPeriod:{immediate:!0,handler(i,n){this.syncContent()}},lang:{immediate:!0,handler(i,n){pr.locale(i)}}},methods:{syncContent(){this.$emit("chartIsLoading"),this.$api.get("matomo-panel/get-chart-data",this.config).then(i=>{let n,l,c,p=new Date;if(this.currentPeriod=="year"){let _=p.getFullYear(),M=Object.keys(i).filter(S=>S.split("-")[0]==_);n=M.map(S=>pr(S).format("MMMM")),l=M.map(S=>pr(S).format("MMMM YYYY")),c=M.map(S=>i[S])}if(this.currentPeriod=="month"){let _=("0"+(p.getMonth()+1)).slice(-2),M=Object.keys(i).filter(S=>parseInt(S.split("-")[1])==parseInt(_));n=M.map(S=>{let O=S.split("-");return O[2]+"/"+O[1]}),l=M.map(S=>pr(S).format("dddd, DD MMMM YYYY")),c=M.map(S=>i[S])}if(this.currentPeriod=="week"){("0"+(p.getMonth()+1)).slice(-2);let _=Object.keys(i);n=_.map(M=>{let S=M.split("-");return S[2]+"/"+S[1]}),l=_.map(M=>pr(M).format("dddd, DD MMMM YYYY")),c=_.map(M=>i[M])}if(this.currentPeriod=="day"){let _=Object.keys(i);n=_.map(M=>{let S=parseInt(M)+1+"h";return isFinite(S)?S:""}),l=n,c=_.map(M=>i[M].nb_uniq_visitors)}this.chartData.tooltipLabels=l,this.chartData.labels=n,this.chartData.datasets[0].data=c,this.rendered?this.$data._chart.update():(this.renderChart(this.chartData,this.options),this.rendered=!0),this.$emit("chartIsLoaded")}).catch(i=>{this.$emit("chartIsEmpty")})}}};var Kd=Ke(qd,null,null);const Jd=Kd.exports,Xd={data(){return{loading:!0,status:"loading",widget:"overview",method:"VisitsSummary.get",date:"today",limit:!1,current:{visits:null,duration:null,bounce:null,actions:null},prev:{visits:null,duration:null,bounce:null,actions:null}}},props:{currentPeriod:String},computed:{isEmpty(){return this.status=="empty"},visitsDiff(){let i=this.diff(this.current.visits,this.prev.visits),n=i>0?"positive":"negative";return{string:(i>0?"+ ":"- ")+Math.abs(i),status:n,diff:i}},durationDiff(){let i=this.diff(this.current.duration,this.prev.duration),n=i>0?"positive":"negative";return{string:(i>0?"+ ":"- ")+Math.abs(i),status:n,diff:i}},bounceDiff(){let i=this.diff(this.current.bounce,this.prev.bounce),n=i>0?"positive":"negative";return{string:(i>0?"+ ":"- ")+Math.abs(i),status:n,diff:i}},actionsDiff(){let i=this.diff(this.current.actions,this.prev.actions),n=i>0?"positive":"negative";return{string:(i>0?"+ ":"- ")+Math.abs(i),status:n,diff:i}},durationString(){return this.formatTime(this.current.duration)},bounceString(){return isFinite(this.current.bounce)?this.current.bounce+"%":"–"},actionsString(){return isFinite(this.current.actions)?this.current.actions+"%":"–"},isPositive(){return!this.loading},isNegative(){return!this.loading},config(){let i={};return this.currentPeriod=="year"&&(i={method:this.method,period:"month",date:"last24"}),this.currentPeriod=="month"&&(i={method:this.method,period:"day",date:"last62"}),this.currentPeriod=="week"&&(i={method:this.method,period:"day",date:"last14"}),this.currentPeriod=="day"&&(i={method:this.method,period:"day",date:"last2"}),i}},created(){},destroyed(){},watch:{currentPeriod:{immediate:!0,handler(i,n){this.syncContent()}}},methods:{syncContent(){this.loading=!0,this.status="loading",this.$api.get("matomo-panel/get-overview-content",this.config).then(i=>{let n={},l={};if(i.length,this.currentPeriod=="year"){let c=this.currentYearKeys(i),p=this.prevYearKeys(i,c.length);n=this.toObj(c,i),l=this.toObj(p,i)}if(this.currentPeriod=="month"){let c=this.currentMonthKeys(i),p=this.prevMonthKeys(i,c.length);n=this.toObj(c,i),l=this.toObj(p,i)}this.currentPeriod=="week"&&(l=this.firstN(i,7),n=this.lastN(i,7)),this.currentPeriod=="day"&&(l=this.firstN(i,1),n=this.lastN(i,1)),this.current.visits=this.sum(n,"nb_visits"),this.prev.visits=this.sum(l,"nb_visits"),this.current.duration=this.average(n,"avg_time_on_site"),this.prev.duration=this.average(l,"avg_time_on_site"),this.current.bounce=this.average(n,"bounce_rate").toFixed(),this.prev.bounce=this.average(l,"bounce_rate").toFixed(),this.current.actions=this.average(n,"nb_actions_per_visit").toFixed(1),this.prev.actions=this.average(l,"nb_actions_per_visit").toFixed(1),this.loading=!1,this.status=i.status,this.$emit("updateVisits",this.current.visits)}).catch(i=>{this.loading=!1,this.status="empty"})},formatTime(i){let n=Math.floor(i);return isFinite(n)?(n-(n%=60))/60+(9<n?"mn ":"mn 0")+n+"s":"–"},firstN(i,n){return Object.keys(i).slice(0,n).reduce(function(l,c){return l[c]=i[c],l},{})},lastN(i,n){return Object.keys(i).slice(Object.keys(i).length-n).reduce(function(l,c){return l[c]=i[c],l},{})},currentMonthKeys(i){let l=("0"+(new Date().getMonth()+1)).slice(-2);return Object.keys(i).filter(c=>c.split("-")[1]==l)},prevMonthKeys(i,n){let c=new Date().getMonth();return c=c==0?12:c,c=("0"+c).slice(-2),Object.keys(i).filter(p=>p.split("-")[1]==c).slice(0,n)},currentYearKeys(i){let l=new Date().getFullYear();return Object.keys(i).filter(c=>c.split("-")[0]==l)},prevYearKeys(i,n){let c=new Date().getFullYear()-1;return Object.keys(i).filter(p=>p.split("-")[0]==c).slice(0,n)},toObj(i,n){return i.reduce(function(l,c){return l[c]=n[c],l},{})},sum(i,n){let l=0;for(var c in i)i.hasOwnProperty(c)&&i[c].hasOwnProperty(n)&&(l+=parseFloat(i[c][n]));return l},average(i,n){return this.sum(i,n)/Object.keys(i).filter(c=>Object.keys(i[c]).length).length},diff(i,n){return((i-n)/n*100).toFixed(2)}}};var Qd=function(){var n=this,l=n._self._c;return l("div",{staticClass:"matomo-overview"},[l("div",{staticClass:"matomo-overview-description"},[l("h4",[n._v(n._s(n.$t("matomo.title.overview")))]),l("p",[n._v(n._s(n.$t("matomo.subline.overview"))+" "+n._s(n.$t("matomo.subline.overview."+n.currentPeriod)))])]),l("div",{staticClass:"matomo-overview-ctn"},[n.isEmpty?n._e():l("div",{staticClass:"matomo-overview-block"},[l("div",{staticClass:"top"},[l("h5",[n._v(n._s(n.$t("matomo.visits")))]),l("div",{staticClass:"big-number"},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.current.visits))])]),l("div",{staticClass:"details"},[n._v(n._s(n.$t("matomo.visitsLower"))+" "+n._s(n.$t("matomo.period."+n.currentPeriod))+".")])]),isFinite(n.visitsDiff.diff)?l("div",{class:["difference",n.visitsDiff.status,{grey:n.loading}]},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.visitsDiff.string)+"%")]),n.loading?n._e():l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-arrow-up"}})])])]):n._e()]),n.isEmpty?n._e():l("div",{staticClass:"matomo-overview-block"},[l("div",{staticClass:"top"},[l("h5",[n._v(n._s(n.$t("matomo.duration")))]),l("div",{staticClass:"big-number"},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.durationString))])]),l("div",{staticClass:"details"},[n._v(n._s(n.$t("matomo.duration.caption"))+".")])]),isFinite(n.durationDiff.diff)?l("div",{class:["difference",n.durationDiff.status,{grey:n.loading}]},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.durationDiff.string)+"%")]),n.loading?n._e():l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-arrow-up"}})])])]):n._e()]),n.isEmpty?n._e():l("div",{staticClass:"matomo-overview-block"},[l("div",{staticClass:"top"},[l("h5",[n._v(n._s(n.$t("matomo.bounce")))]),l("div",{staticClass:"big-number"},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.bounceString))])]),l("div",{staticClass:"details"},[n._v(n._s(n.$t("matomo.bounce.caption"))+".")])]),isFinite(n.bounceDiff.diff)?l("div",{class:["difference",n.bounceDiff.status,{grey:n.loading}]},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.bounceDiff.string)+"%")]),n.loading?n._e():l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-arrow-up"}})])])]):n._e()]),n.isEmpty?l("div",{staticClass:"empty"},[n._v(n._s(n.$t("matomo.empty")))]):l("div",{staticClass:"matomo-overview-block"},[l("div",{staticClass:"top"},[l("h5",[n._v(n._s(n.$t("matomo.actions")))]),l("div",{staticClass:"big-number"},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.actionsString))])]),l("div",{staticClass:"details"},[n._v(n._s(n.$t("matomo.actions.caption"))+".")])]),isFinite(n.actionsDiff.diff)?l("div",{class:["difference",n.actionsDiff.status,{grey:n.loading}]},[n.loading?l("span",[l("span",{staticClass:"loader"})]):l("span",[n._v(n._s(n.actionsDiff.string)+"%")]),n.loading?n._e():l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-arrow-up"}})])])]):n._e()])])])},ef=[],tf=Ke(Xd,Qd,ef);const rf=tf.exports,af={data(){return{iconsMap:{"referrerType==direct":"arrow-right","referrerType==website":"page","referrerType==search":"search","referrerType==campaign":"globe","referrerType==social":"users",dribbble:"social-dribbble",facebook:"social-facebook",flickr:"social-flickr",foursquare:"social-foursquare",github:"social-github","google%2B":"social-google","google+":"social-google",instagram:"social-instagram",linkedin:"social-linkedin",pinterest:"social-pinterest",reddit:"social-reddit",tumblr:"social-tumblr",twitter:"social-twitter",vimeo:"social-vimeo",youtube:"social-youtube",desktop:"device-desktop",smartphone:"device-mobile","feature phone":"device-mobile",tablet:"device-tablet",phablet:"device-tablet",console:"device-console",car:"device-car","car browser":"device-car",camera:"device-camera",tv:"device-tv",unknown:"question-mark","keyword not defined":"question-mark",page:"page",search:"search"}}},props:{currentPeriod:String,widget:String,totalVisits:Number,lang:String,loading:{type:Boolean,default:!0},status:{type:String,default:"loading"},results:{type:Array,default:[]}},computed:{isEmpty(){return this.results.length===0},originalColor(){return this.widget=="socials"}},created(){},destroyed(){},watch:{},methods:{visitsPercent(i){let n=i.nb_visits/this.totalVisits*100;return n=n<1?n.toFixed(2):n.toFixed(1),n},findIcon(i){let n=this.iconsMap.page;if(i.label){let l=this.iconsMap[i.label.toLowerCase()];l&&(n=l)}if(this.widget=="keywords"&&(n=this.iconsMap.search),i.segment){let l=this.iconsMap[i.segment];l&&(n=l)}return"#icon-matomo-"+n}}};var nf=function(){var n=this,l=n._self._c;return l("div",{staticClass:"widget"},[l("h5",[n._v(n._s(n.$t("matomo.widgets.title."+n.widget)))]),n.loading?l("div",{staticClass:"loading"},[l("div",{staticClass:"loader"})]):!n.loading&&!n.isEmpty?l("ul",n._l(n.results,function(c,p){return l("li",[l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:n.findIcon(c)}})])]),l("div",{staticClass:"text",domProps:{innerHTML:n._s(c.label)}}),l("div",{staticClass:"number"},[n._v(n._s(c.nb_visits)+" "),l("span",{staticClass:"percent"},[n._v(n._s(n.visitsPercent(c))+"%")])])])}),0):l("div",{staticClass:"empty"},[n._v(n._s(n.$t("matomo.empty")))])])},sf=[],of=Ke(af,nf,sf);const lf={components:{Widget:of.exports},data(){return{loading:!0,status:"loading",date:"today",results:[]}},props:{widgets:Array,currentPeriod:"",totalVisits:Number,lang:"",defaults:Object},watch:{currentPeriod:{immediate:!0,handler(i,n){i!=""&&this.syncContent()}}},methods:{syncContent(){this.loading=!0,this.status="loading",this.$api.get("matomo-panel/get-bulk-widgets",{widgets:JSON.stringify(this.widgets),period:this.currentPeriod,date:this.date,lang:this.lang,limit:this.defaults.limit}).then(i=>{this.results=i,this.status=i.status,this.loading=!1}).catch(i=>{this.status="empty",this.loading=!1})}}};var uf=function(){var n=this,l=n._self._c;return n.widgets?l("div",{staticClass:"matomo-widgets"},[l("div",{staticClass:"matomo-widgets-description"},[l("h4",[n._v(n._s(n.$t("matomo.title.details")))]),l("p",[n._v(n._s(n.$t("matomo.subline.details",{limit:n.defaults.limit})))])]),l("div",{staticClass:"widgets"},n._l(n.widgets,function(c,p){return l("widget",{key:"widget-"+p,attrs:{widget:c,totalVisits:n.totalVisits,lang:n.lang,loading:n.loading,status:n.status,results:n.results[p]}})}),1)]):n._e()},df=[],ff=Ke(lf,uf,df);const cf=ff.exports,hf={components:{Chart:Jd,Overview:rf,Widgets:cf},props:{periods:{type:Array,default:[]},chart:{type:Boolean,default:!0},overview:{type:Boolean,default:!0},currentPeriod:{type:String,default:"week"},lang:{type:String,default:""},widgets:{type:Array,default:[]}},data(){return{periods:[],defaults:{period:"month",limit:5},totalVisits:"",chart:!0,chartLoading:!0,chartEmpty:!1,widgets:[]}},created(){this.load().then(i=>{this.periods=i.periods,this.defaults=Object.assign(this.defaults,i.defaults),this.widgets=i.widgets,this.chart=i.chart,this.overview=i.overview,this.lang=i.lang,this.currentPeriod=i.defaults.period?i.defaults.period:i.periods[0]})},destroyed(){},methods:{chartIsLoading(){this.chartLoading=!0},chartIsLoaded(){this.chartLoading=!1,this.chartEmpty=!1},chartIsEmpty(){this.chartLoading=!1,this.chartEmpty=!0},setCurrentPeriod(i){this.currentPeriod=i},updateVisits(i){this.totalVisits=i}}};var vf=function(){var n=this,l=n._self._c;return l("div",{staticClass:"matomo-main"},[l("div",{staticClass:"matomo-period-selector"},n._l(n.periods,function(c){return l("div",{key:c,class:["matomo-period-option",c,{active:c==n.currentPeriod}],on:{click:function(p){return n.setCurrentPeriod(c)}}},[n._v(" "+n._s(n.$t("matomo.chart."+c))+" ")])}),0),n.chart?l("div",{class:["matomo-chart",{"is-empty":n.chartEmpty}]},[n.chartLoading?l("div",{staticClass:"overlay"},[l("div",{staticClass:"loader"})]):n._e(),n.chartEmpty?l("div",{staticClass:"empty"},[l("span",[n._v(n._s(n.$t("matomo.empty")))])]):n._e(),l("chart",{staticClass:"chart",attrs:{currentPeriod:n.currentPeriod,lang:n.lang},on:{chartIsLoading:n.chartIsLoading,chartIsLoaded:n.chartIsLoaded,chartIsEmpty:n.chartIsEmpty}})],1):n._e(),n.overview?l("overview",{attrs:{currentPeriod:n.currentPeriod,defaults:n.defaults},on:{updateVisits:n.updateVisits}}):n._e(),n.widgets?l("widgets",{attrs:{widgets:n.widgets,currentPeriod:n.currentPeriod,defaults:n.defaults,totalVisits:n.totalVisits,lang:n.lang}}):n._e()],1)},mf=[],gf=Ke(hf,vf,mf);const In=gf.exports,pf={data(){return{loading:!0,status:"loading",visitors:Number}},props:{},computed:{isEmpty(){return this.status=="empty"},visitorsString(){let i=this.$t("matomo.visitors.caption");return this.visitors==1?i[0]:i[1]}},created(){this.syncContent()},destroyed(){},methods:{syncContent(){this.loading=!0,this.status="loading",this.$api.get("matomo-panel/get-realtime-number").then(i=>{this.visitors=parseFloat(i[0].visitors),this.loading=!1,this.status=i.status}).catch(i=>{this.loading=!1,this.status="empty"})}}};var yf=function(){var n=this,l=n._self._c;return l("div",{staticClass:"matomo-block matomo-realtime"},[!n.loading&&!n.isEmpty?l("div",{staticClass:"refresh",on:{click:n.syncContent}},[n._v(n._s(n.$t("matomo.refresh")))]):n._e(),l("h5",[n._v(n._s(n.$t("matomo.title.realtime")))]),n.isEmpty?l("div",{staticClass:"empty"},[n._v(n._s(n.$t("matomo.empty")))]):l("div",[n.loading?l("span",{staticClass:"loader"}):l("div",{staticClass:"big-number"},[n._v(n._s(n.visitors))]),n.loading?n._e():l("div",{staticClass:"details"},[n.visitors?l("span",[n._v(n._s(n.visitorsString)+".")]):l("span",[n._v(n._s(n.$t("matomo.novisitors"))+".")])])])])},bf=[],_f=Ke(pf,yf,bf);const xf=_f.exports,wf={data(){return{loading:!0,status:"loading",results:{day:Number,week:Number,month:Number,year:Number}}},props:{},computed:{isEmpty(){return this.status=="empty"}},created(){this.syncContent()},destroyed(){},methods:{syncContent(){this.loading=!0,this.status="loading",this.$api.get("matomo-panel/get-bulk-summary").then(i=>{this.results.day=i[0].value,this.results.week=this.getLast7Days(i[1]),this.results.month=i[2].value,this.results.year=i[3].value,this.loading=!1,this.status=i.status}).catch(i=>{this.loading=!1,this.status="empty"})},getLast7Days(i){let n=0;return Object.keys(i).forEach(function(l){n+=i[l]}),n}}};var Mf=function(){var n=this,l=n._self._c;return l("div",{staticClass:"matomo-block matomo-visits-summary"},[l("h5",[n._v(n._s(n.$t("matomo.title.summary")))]),n.loading?l("div",{staticClass:"loader"}):!n.loading&&!n.isEmpty?l("ul",[l("li",[l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-calendar"}})])]),l("div",{staticClass:"text"},[n._v(n._s(n.$t("matomo.chart.day")))]),l("div",{staticClass:"number"},[n._v(n._s(n.results.day))])]),l("li",[l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-calendar"}})])]),l("div",{staticClass:"text"},[n._v(n._s(n.$t("matomo.chart.week")))]),l("div",{staticClass:"number"},[n._v(n._s(n.results.week))])]),l("li",[l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-calendar"}})])]),l("div",{staticClass:"text"},[n._v(n._s(n.$t("matomo.chart.month")))]),l("div",{staticClass:"number"},[n._v(n._s(n.results.month))])]),l("li",[l("div",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-calendar"}})])]),l("div",{staticClass:"text"},[n._v(n._s(n.$t("matomo.chart.year")))]),l("div",{staticClass:"number"},[n._v(n._s(n.results.year))])])]):l("div",{staticClass:"empty"},[n._v(n._s(n.$t("matomo.empty")))])])},kf=[],Sf=Ke(wf,Mf,kf);const Df=Sf.exports,Cf={components:{RealtimeWidget:xf,SummaryWidget:Df},props:{link:{type:Boolean,default:!0},realtime:{type:Boolean,default:!0},summary:{type:Boolean,default:!0},url:String},data(){return{url:"",link:!0,realtime:!0,summary:!0}},computed:{showLink(){return this.link&&this.url}},created(){this.load().then(i=>{this.url=i.url,this.link=i.link,this.realtime=i.realtime,this.summary=i.summary})},destroyed(){},methods:{}};var Of=function(){var n=this,l=n._self._c;return l("div",{staticClass:"matomo-sidebar"},[n.showLink?l("a",{staticClass:"matomo-dashboard-link",attrs:{href:n.url,target:"_blank",rel:"noopener"}},[l("span",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-external-link"}})])]),l("span",{staticClass:"text"},[l("em",[n._v(n._s(n.$t("matomo.title.external_link")))])])]):n._e(),n.realtime?l("realtime-widget"):n._e(),n.summary?l("summary-widget"):n._e()],1)},Pf=[],Tf=Ke(Cf,Of,Pf);const Rn=Tf.exports,Af={components:{},data(){return{loading:!0,status:"loading",currentPeriod:String,lang:Object,uri:String,current:[],all:[]}},computed:{isEmpty(){return(this.status=="empty"||!Object.keys(this.current).length)&&!this.loading},showOverview(){return this.lang.overview&&Object.keys(this.all).length},showCode(){return this.lang.multilang},inlineCode(){return!this.lang.overview},currentLanguage(){let i=this.$store.state.languages?this.$store.state.languages.current:this.$language;return i?i.code:!1},currentUri(){return this.uri.constructor==Object?this.uri[this.currentLanguage]:this.uri}},created(){this.init()},destroyed(){},watch:{currentLanguage(){this.syncContent()}},methods:{init(){this.loading=!0,this.status="loading",this.load().then(i=>{this.lang=i.lang,this.uri=i.uri,this.currentPeriod=i.period,this.syncContent()})},syncContent(){this.loading=!0,this.status="loading",this.$api.get("matomo-panel/get-page-metrics",{period:this.currentPeriod,multilang:this.lang.multilang,overview:this.lang.overview,default:this.lang.default,current:this.currentLanguage,uri:this.currentUri}).then(i=>{this.current=i.current,this.all=i.all,this.loading=!1,this.status=i.status}).catch(i=>{this.loading=!1,this.status="empty"})},formatTime(i){let n=Math.floor(i);return(n-(n%=60))/60+(9<n?"'":"'0")+n}}};var Ff=function(){var n=this,l=n._self._c;return l("div",{staticClass:"matomo-page"},[l("h5",[n._v(n._s(n.$t("matomo.widgets.page.metrics"))+" "+n._s(n.$t("matomo.widgets.page."+n.currentPeriod))+" "),n.showCode&&n.inlineCode?l("span",{staticClass:"code"},[n._v(n._s(n.currentLanguage))]):n._e()]),n.isEmpty?l("div",{staticClass:"empty"},[n._v(n._s(n.$t("matomo.empty")))]):l("div",[n.loading?l("span",{staticClass:"loader"}):l("table",[n.showCode&&!n.inlineCode?l("tr",[l("th"),l("th",[l("span",{staticClass:"code"},[n._v(n._s(n.currentLanguage))])]),n.showOverview?l("th",[l("span",[n._v(n._s(n.$t("matomo.all")))])]):n._e()]):n._e(),l("tr",[l("td",[l("span",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-users"}})])]),n._v(" "+n._s(n.$t("matomo.visits")))]),l("td",[n._v(n._s(n.current.visits))]),n.showOverview?l("td",[n._v(n._s(n.all.visits))]):n._e()]),l("tr",[l("td",[l("span",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-duration"}})])]),n._v(" "+n._s(n.$t("matomo.duration")))]),l("td",[n._v(n._s(n.formatTime(n.current.duration)))]),n.showOverview?l("td",[n._v(n._s(n.formatTime(n.all.duration)))]):n._e()]),l("tr",[l("td",[l("span",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-bounce"}})])]),n._v(" "+n._s(n.$t("matomo.bounce_rate")))]),l("td",[n._v(n._s(n.current.bounce.toFixed())+"%")]),n.showOverview?l("td",[n._v(n._s(n.all.bounce.toFixed())+"%")]):n._e()]),l("tr",[l("td",[l("span",{staticClass:"icon"},[l("svg",[l("use",{attrs:{href:"#icon-matomo-exit"}})])]),n._v(" "+n._s(n.$t("matomo.exit_rate")))]),l("td",[n._v(n._s(n.current.exit.toFixed())+"%")]),n.showOverview?l("td",[n._v(n._s(n.all.exit.toFixed())+"%")]):n._e()])])])])},Lf=[],If=Ke(Af,Ff,Lf);const Rf=If.exports,Nf={props:{main:Array,sidebar:Array,title:String}};var Yf=function(){var n=this,l=n._self._c;return l("k-inside",[l("k-view",{staticClass:"k-matomo-view"},[l("k-header",[n._v(" "+n._s(n.title)+" ")]),l("k-grid",{attrs:{variant:"columns"}},[l("k-column",{attrs:{width:"3/4"}},[l("matomo-main",{attrs:{periods:n.main.periods,lang:n.main.lang,widgets:n.main.widgets}})],1),l("k-column",{attrs:{width:"1/4"}},[l("matomo-sidebar",{attrs:{link:n.sidebar.link,summary:n.sidebar.summary,realtime:n.sidebar.realtime,url:n.sidebar.url}})],1)],1)],1)],1)},Hf=[],Wf=Ke(Nf,Yf,Hf);const Vf=Wf.exports;document.querySelector("svg defs").innerHTML+=`
<symbol id="icon-matomo-arrow-right" viewbox="0 0 100 100">
<path d="M50,90.52a3,3,0,0,1-2.13-5.15L80.21,53H12.5a3,3,0,0,1,0-6H80.21L47.87,14.63a3,3,0,1,1,4.27-4.27l37.5,37.5a3.08,3.08,0,0,1,.38.47l.17.32a1.09,1.09,0,0,1,.16.37l.08.28a.94.94,0,0,1,0,.11,3,3,0,0,1,0,1.18,1,1,0,0,1,0,.11l-.08.27a1.43,1.43,0,0,1-.05.18,1.61,1.61,0,0,1-.1.19l-.13.24a2.83,2.83,0,0,1-.42.55l-37.5,37.5A3,3,0,0,1,50,90.52Z"/>
</symbol>
<symbol id="icon-matomo-arrow-up" viewbox="0 0 100 100">
<path d="M12.06,94.42A7,7,0,0,1,7.11,82.47l63.4-63.4H21.65a7,7,0,1,1,0-14h66a7,7,0,0,1,1.16.13,4.45,4.45,0,0,1,.53.15l.18.06a5,5,0,0,1,.6.2,5.26,5.26,0,0,1,.59.3l.09.05a4.88,4.88,0,0,1,.53.29,7,7,0,0,1,1.94,1.94,4.2,4.2,0,0,1,.26.46l.08.15a5.36,5.36,0,0,1,.3.6,5.14,5.14,0,0,1,.2.6l0,.1a4.93,4.93,0,0,1,.17.6,7,7,0,0,1,.14,1.37V77.83a7,7,0,0,1-14,0V29L17,92.37A7,7,0,0,1,12.06,94.42Z"/>
</symbol>
<symbol id="icon-matomo-bounce" viewbox="0 0 100 100">
<path d="M89.89,48.92,70.94,30a3,3,0,0,0-4.24,4.24L80.52,48.05H12a3,3,0,1,0,0,6H80.52L66.7,67.87a3,3,0,1,0,4.24,4.24L89.89,53.17a3,3,0,0,0,0-4.25ZM72.07,13.32a3,3,0,0,1-3,3h-37a2,2,0,0,0-2,2V37.63a3,3,0,0,1-6,0V15.33a5,5,0,0,1,5-5H69.07A3,3,0,0,1,72.07,13.32Zm0,74.92a3,3,0,0,1-3,3H29.13a5,5,0,0,1-5-5V64.47a3,3,0,0,1,6,0V83.25a2,2,0,0,0,2,2h37A3,3,0,0,1,72.07,88.24Z"/>
</symbol>
<symbol id="icon-matomo-calendar" viewbox="0 0 100 100">
<path d="M78.47,14.47h-9.2V9.34a3,3,0,1,0-6,0v5.13H36.73V9.34a3,3,0,1,0-6,0v5.13h-9.2A11.15,11.15,0,0,0,10.4,25.6V82.53A11.15,11.15,0,0,0,21.53,93.66H78.47A11.15,11.15,0,0,0,89.6,82.53V25.6A11.15,11.15,0,0,0,78.47,14.47Zm-56.93,6h9.2V25.6a3,3,0,0,0,6,0V20.47H63.27V25.6a3,3,0,0,0,6,0V20.47h9.2A5.14,5.14,0,0,1,83.6,25.6V38.87H16.4V25.6A5.14,5.14,0,0,1,21.53,20.47Zm56.93,67.2H21.53a5.14,5.14,0,0,1-5.13-5.13V44.87H83.6V82.53A5.14,5.14,0,0,1,78.47,87.66Zm-8.63-25H30.16a3,3,0,0,1,0-6H69.84a3,3,0,0,1,0,6ZM59.57,73a3,3,0,0,0-3-3H30.16a3,3,0,0,0,0,6h26.4A3,3,0,0,0,59.57,73Z"/>
</symbol>
<symbol id="icon-matomo-device-camera" viewbox="0 0 100 100">
<path d="M50.23,38.52A13.79,13.79,0,1,1,36.44,52.31,13.79,13.79,0,0,1,50.23,38.52ZM37.31,9.21l-7.89,8.62H15.76a8.64,8.64,0,0,0-8.62,8.62V78.17a8.64,8.64,0,0,0,8.62,8.62h69a8.64,8.64,0,0,0,8.62-8.62V26.45a8.64,8.64,0,0,0-8.62-8.62H71L63.16,9.21ZM50.23,73.86A21.55,21.55,0,1,1,71.78,52.31,21.56,21.56,0,0,1,50.23,73.86Z"/>
</symbol>
<symbol id="icon-matomo-device-car" viewbox="0 0 100 100">
<path d="M83.07,16.59a7.19,7.19,0,0,0-6.79-4.83H23.71a7.19,7.19,0,0,0-6.79,4.83L7,45.22V83.46a4.79,4.79,0,0,0,4.78,4.78h4.78a4.78,4.78,0,0,0,4.78-4.78V78.68H78.68v4.78a4.79,4.79,0,0,0,4.78,4.78h4.78A4.78,4.78,0,0,0,93,83.46V45.22ZM23.71,64.34a7.17,7.17,0,1,1,7.17-7.17A7.16,7.16,0,0,1,23.71,64.34Zm52.58,0a7.17,7.17,0,1,1,7.17-7.17A7.16,7.16,0,0,1,76.29,64.34ZM16.54,40.44l7.17-21.51H76.29l7.17,21.51Z"/>
</symbol>
<symbol id="icon-matomo-device-console" viewbox="0 0 100 100">
<path d="M85.2,25.54H14.8A7.84,7.84,0,0,0,7,33.36V64.64a7.84,7.84,0,0,0,7.82,7.82H85.2A7.84,7.84,0,0,0,93,64.64V33.36A7.84,7.84,0,0,0,85.2,25.54ZM46.09,52.91H34.36V64.64H26.54V52.91H14.8V45.09H26.54V33.36h7.82V45.09H46.09Zm17.6,7.82a5.87,5.87,0,1,1,5.87-5.87A5.86,5.86,0,0,1,63.69,60.73ZM79.33,49a5.87,5.87,0,1,1,5.87-5.87A5.86,5.86,0,0,1,79.33,49Z"/>
</symbol>
<symbol id="icon-matomo-device-desktop" viewbox="0 0 100 100">
<path d="M85.74,10.5H14.65a7.92,7.92,0,0,0-7.9,7.9V65.8a7.92,7.92,0,0,0,7.9,7.9H42.3v7.9H34.4v7.9H66V81.6H58.1V73.7H85.74a7.92,7.92,0,0,0,7.9-7.9V18.4A7.92,7.92,0,0,0,85.74,10.5Zm0,55.3H14.65V18.4H85.74Z"/>
</symbol>
<symbol id="icon-matomo-device-mobile" viewbox="0 0 100 100">
<path d="M69.06,8.11l-38.11,0a7.64,7.64,0,0,0-7.62,7.62V84.3a7.64,7.64,0,0,0,7.62,7.62H69.06a7.64,7.64,0,0,0,7.62-7.62V15.7A7.61,7.61,0,0,0,69.06,8.11Zm0,68.56H30.94V23.32H69.06Z"/>
</symbol>
<symbol id="icon-matomo-device-tablet" viewbox="0 0 100 100">
<path d="M71,8.08H29A10.47,10.47,0,0,0,18.56,18.56V81.44A10.47,10.47,0,0,0,29,91.92H71A10.47,10.47,0,0,0,81.44,81.44V18.56A10.47,10.47,0,0,0,71,8.08ZM57,84.94H43V81.44H57ZM75.33,74.46H24.67V18.56H75.33Z"/>
</symbol>
<symbol id="icon-matomo-device-tv" viewbox="0 0 100 100">
<path d="M84.51,25H55.38L68,12.35,65.32,9.62,50,25,34.62,9.62,31.9,12.35,44.56,25H15.43a7.67,7.67,0,0,0-7.68,7.68V78.7a7.7,7.7,0,0,0,7.68,7.68H84.51a7.7,7.7,0,0,0,7.68-7.68V32.65A7.67,7.67,0,0,0,84.51,25Zm0,53.73H15.43V32.65H84.51ZM38.46,40.32V71L65.32,55.68Z"/>
</symbol>
<symbol id="icon-matomo-duration" viewbox="0 0 100 100">
<path d="M77.57,28.29l3.76-3.76a3,3,0,1,0-4.24-4.24l-4,4A38.2,38.2,0,0,0,53,16.72v-4.8h6.48a3,3,0,0,0,0-6H40.54a3,3,0,0,0,0,6H47v4.8A38.46,38.46,0,1,0,77.57,28.29ZM50,87.41A32.41,32.41,0,1,1,82.41,55,32.45,32.45,0,0,1,50,87.41Zm17.39-22a3,3,0,0,1-4.11,1L48.46,57.58l-.06,0a3,3,0,0,1-.27-.2l-.2-.17c-.07-.07-.13-.15-.2-.22s-.13-.14-.18-.22-.1-.17-.15-.25-.1-.16-.13-.25-.07-.19-.1-.28-.06-.18-.08-.27,0-.18,0-.27a3,3,0,0,1,0-.32S47,55,47,55V32.15a3,3,0,0,1,6,0V53.3l13.35,8A3,3,0,0,1,67.39,65.37Z"/>
</symbol>
<symbol id="icon-matomo-exit" viewbox="0 0 100 100">
<path d="M80.29,48.66l-18.95-19A3,3,0,1,0,57.1,34L70.93,47.78H38.27a3,3,0,0,0,0,6H70.93L57.1,67.6a3,3,0,1,0,4.24,4.25l18.95-19a3,3,0,0,0,0-4.24ZM67.48,88.24a3,3,0,0,1-3,3H24.54a5,5,0,0,1-5-5V15.33a5,5,0,0,1,5-5H64.48a3,3,0,0,1,0,6h-37a2,2,0,0,0-2,2V83.25a2,2,0,0,0,2,2h37A3,3,0,0,1,67.48,88.24Z"/>
</symbol>
<symbol id="icon-matomo-external-link" viewbox="0 0 100 100">
<path d="M80.18,54.45V81.13A12.41,12.41,0,0,1,67.79,93.52H18.88A12.41,12.41,0,0,1,6.48,81.13V32.21A12.41,12.41,0,0,1,18.88,19.82H45.55a3.5,3.5,0,0,1,0,7H18.88a5.4,5.4,0,0,0-5.39,5.39V81.13a5.4,5.4,0,0,0,5.39,5.39H67.79a5.4,5.4,0,0,0,5.39-5.39V54.45a3.5,3.5,0,0,1,7,0ZM93.45,9.3c0-.1-.06-.2-.09-.3a3.45,3.45,0,0,0-.11-.35,3.45,3.45,0,0,0-.17-.33c0-.09-.09-.18-.15-.27a3.52,3.52,0,0,0-.43-.53h0A3.51,3.51,0,0,0,92,7.07c-.08-.06-.18-.09-.26-.14A2,2,0,0,0,91,6.64c-.1,0-.2-.07-.31-.09a3.51,3.51,0,0,0-.64-.06H63.34a3.5,3.5,0,0,0,0,7H81.57L38.63,56.42a3.5,3.5,0,1,0,4.95,5L86.52,18.43V36.66a3.5,3.5,0,0,0,7,0V10A3.51,3.51,0,0,0,93.45,9.3Z"/>
</symbol>
<symbol id="icon-matomo-external-globe" viewbox="0 0 100 100">
<path d="M50.14,6.61A43.39,43.39,0,1,0,93.53,50,43.44,43.44,0,0,0,50.14,6.61ZM87.4,47H69.17A64.75,64.75,0,0,0,56.94,13.24,37.45,37.45,0,0,1,87.4,47ZM37.14,53h26a58.76,58.76,0,0,1-13,32.8A58.77,58.77,0,0,1,37.14,53Zm0-6a58.76,58.76,0,0,1,13-32.79A58.75,58.75,0,0,1,63.14,47Zm6.2-33.76A64.76,64.76,0,0,0,31.11,47H12.88A37.45,37.45,0,0,1,43.33,13.24ZM12.88,53H31.11A64.76,64.76,0,0,0,43.34,86.76,37.45,37.45,0,0,1,12.88,53ZM56.94,86.76A64.75,64.75,0,0,0,69.17,53H87.4A37.45,37.45,0,0,1,56.94,86.76Z"/>
</symbol>
<symbol id="icon-matomo-page" viewbox="0 0 100 100">
<path d="M27.73,93a10,10,0,0,1-10-10V17a10,10,0,0,1,10-10h33a2.78,2.78,0,0,1,2.52,1.57L85,30.23a2.8,2.8,0,0,1,1.34,2.39V83a10,10,0,0,1-10,10Zm0-80.38A4.41,4.41,0,0,0,23.33,17V83a4.41,4.41,0,0,0,4.41,4.41H76.31A4.41,4.41,0,0,0,80.72,83V35.42H66.12a8.22,8.22,0,0,1-8.21-8.21V12.61Zm35.78,14.6a2.61,2.61,0,0,0,2.6,2.6H76.63l-13.11-13Z"/>
</symbol>
<symbol id="icon-matomo-question-mark" viewbox="0 0 100 100">
<path d="M49.65,90.82A41.08,41.08,0,1,1,90.73,49.74,41.13,41.13,0,0,1,49.65,90.82Zm0-76.33A35.25,35.25,0,1,0,84.9,49.74,35.29,35.29,0,0,0,49.65,14.49Zm0,60.31a6,6,0,1,1,6-6A6,6,0,0,1,49.65,74.81Zm-4.76-16.7V55.76c0-4.87,3.15-7,7.26-9.32l.26-.14c2.79-1.56,5.42-3,5.42-6.06,0-3.62-4.11-6.06-7.95-6.06-4.47,0-6.67,2.31-9.08,5.33l-.71.89L34,35.78l.64-.92c4.08-5.87,9-8.49,16-8.49,7.61,0,16.11,6,16.11,14,0,6.43-4.14,8.82-7.8,10.93-2.34,1.35-4.54,2.62-4.54,4.89v2Z"/>
</symbol>
<symbol id="icon-matomo-refresh" viewbox="0 0 100 100">
<path d="M92.06,44.18a3,3,0,0,1-.2.27c0,.05-.08.11-.13.17l0,0a3,3,0,0,1-.32.28l-.14.12a3,3,0,0,1-.48.27l0,0a3,3,0,0,1-.57.18,3,3,0,0,1-.52.05H68a3,3,0,0,1,0-6H82L70.81,29.07A29.36,29.36,0,0,0,22.31,40a3,3,0,1,1-5.66-2A35.36,35.36,0,0,1,75,24.76L86.54,35.62V21a3,3,0,1,1,6,0V42.55c0,.07,0,.13,0,.2a3,3,0,0,1,0,.34c0,.09,0,.18-.07.27a3,3,0,0,1-.09.29,2.88,2.88,0,0,1-.13.27C92.16,44,92.12,44.09,92.06,44.18ZM81.52,57.7a3,3,0,0,0-3.83,1.83,29.36,29.36,0,0,1-48.5,10.89L18,59.93H32a3,3,0,1,0,0-6H10.41A3,3,0,0,0,10,54l-.22,0a3,3,0,0,0-.32.1l-.24.08L9,54.32l-.25.14-.19.16a3,3,0,0,0-.26.23l0,0c0,.05-.08.11-.13.17a3,3,0,0,0-.2.27c-.05.08-.09.17-.14.25a2.93,2.93,0,0,0-.13.27,3,3,0,0,0-.09.29c0,.09-.05.17-.07.27a3,3,0,0,0,0,.34c0,.07,0,.13,0,.2V78.5a3,3,0,1,0,6,0V63.87L25,74.73a35.36,35.36,0,0,0,58.34-13.2A3,3,0,0,0,81.52,57.7Z"/>
</symbol>
<symbol id="icon-matomo-search" viewbox="0 0 100 100">
<path d="M91.8,87.56,68.93,64.68a35,35,0,1,0-4.24,4.24L87.56,91.8a3,3,0,1,0,4.24-4.24ZM13.32,42.23A28.91,28.91,0,1,1,62.8,62.51l-.16.13s-.08.11-.13.16A28.89,28.89,0,0,1,13.32,42.23Z"/>
</symbol>
<symbol id="icon-matomo-social-dribble" viewbox="0 0 100 100">
<path fill="#ec4989" d="M70.73,80.77a160.33,160.33,0,0,0-7.22-26.5,53.79,53.79,0,0,1,23.12,1.62,37.11,37.11,0,0,1-15.9,24.88ZM50,87.1A37,37,0,0,1,26.36,78.6c.49.4.83.65.83.65s7.11-15.51,29.11-23.18l.25-.08a154.36,154.36,0,0,1,7.92,28.17A37,37,0,0,1,50,87.1ZM12.9,50c0-.39,0-.78,0-1.17A136,136,0,0,0,51,43.54c1.06,2.08,2.08,4.2,3,6.31-.49.13-1,.28-1.46.44-20,6.47-30.18,24.48-30.18,24.48l0,0A37,37,0,0,1,12.9,50ZM34.17,16.45A221.88,221.88,0,0,1,47.95,37.82a137.23,137.23,0,0,1-34.25,4.53,37.11,37.11,0,0,1,20.48-25.9ZM41.11,14h0L41,14l.12,0ZM74.5,22.16c-.09.14-5.37,8.18-19.38,13.43A188.5,188.5,0,0,0,41.26,13.95,37,37,0,0,1,74.5,22.16ZM87.09,49.63a85.81,85.81,0,0,0-25.84-1.22c-.27-.63-.53-1.27-.8-1.91-.77-1.82-1.6-3.62-2.47-5.38,14.65-6,20.6-14.58,20.67-14.68a37,37,0,0,1,8.44,23.19Zm5.47-8.37A43.59,43.59,0,0,0,90,33.09a42.92,42.92,0,0,0-4-7.38,43.45,43.45,0,0,0-72,0A43.29,43.29,0,0,0,7.44,41.26a44,44,0,0,0,0,17.5A43.49,43.49,0,0,0,14,74.29,43.44,43.44,0,0,0,25.71,86a43.53,43.53,0,0,0,7.38,4,42.79,42.79,0,0,0,8.16,2.53,43.5,43.5,0,0,0,17.5,0A42.79,42.79,0,0,0,66.91,90a43.29,43.29,0,0,0,7.38-4A43.36,43.36,0,0,0,86,74.29a43.49,43.49,0,0,0,6.54-15.54,44,44,0,0,0,0-17.5Z"/>
</symbol>
<symbol id="icon-matomo-social-facebook" viewbox="0 0 100 100">
<path fill="#4460a0" d="M93.08,9.73V90.27a2.8,2.8,0,0,1-2.8,2.81H66.37V59.71H77.57l1.69-13H66.37V38.4c0-3.76,1-6.32,6.44-6.32h6.9V20.45a91.44,91.44,0,0,0-10-.52c-9.93,0-16.74,6.07-16.74,17.2v9.58H41.73v13H52.94V93.08H9.73a2.81,2.81,0,0,1-2.81-2.81V9.73A2.82,2.82,0,0,1,9.73,6.92H90.28A2.81,2.81,0,0,1,93.08,9.73Z"/>
</symbol>
<symbol id="icon-matomo-social-flickr" viewbox="0 0 100 100">
<path fill="#ff007f" d="M93.19,49.22a19,19,0,1,1-19-18.76,18.89,18.89,0,0,1,19,18.76"/>
<path fill="#0960d5" d="M44.86,49.22A18.9,18.9,0,0,1,25.82,68a18.76,18.76,0,1,1,0-37.53,18.9,18.9,0,0,1,19,18.76"/>
</symbol>
<symbol id="icon-matomo-social-foursquare" viewbox="0 0 100 100">
<path fill="#fa4778" d="M70.78,18.69,68.7,28.87a2.63,2.63,0,0,1-2.5,2H48.08a3.73,3.73,0,0,0-3.7,3.74v2.23a3.73,3.73,0,0,0,3.7,3.74H63.39a2.43,2.43,0,0,1,2.32,2.89c-.3,1.57-1.91,9.52-2.09,10.37a2.55,2.55,0,0,1-2.5,2H48.61c-2.62.06-3.16.12-4.71,2S28.65,77.26,28.65,77.26c-.12.18-.24.12-.24-.06v-59a2.53,2.53,0,0,1,2.5-2.53H68.52a2.45,2.45,0,0,1,2.26,3M73.52,6H27.1c-6.38,0-8.28,4.88-8.28,8V88.53c0,3.68,1.85,4.76,2.86,5.18a5.44,5.44,0,0,0,5.6-1.21l22.41-26.4c.36-.42.54-.42.77-.42H64.41c6,0,7.09-4.16,7.75-6.69.54-2.11,6.68-32.24,8.58-41.76C82.17,9.89,80.32,6,73.52,6"/>
</symbol>
<symbol id="icon-matomo-social-github" viewbox="0 0 100 100">
<path d="M50,6.58a44.17,44.17,0,0,1,13.93,86c-2.23.43-3-.94-3-2.12,0-1.45.06-6.21.06-12.11,0-4.12-1.41-6.81-3-8.17C67.77,69.1,78,65.37,78,48.41a17.07,17.07,0,0,0-4.52-11.85c.45-1.12,2-5.6-.44-11.68,0,0-3.69-1.19-12.08,4.52a41.49,41.49,0,0,0-22,0C30.6,23.7,26.9,24.88,26.9,24.88,24.51,31,26,35.45,26.47,36.56a17.1,17.1,0,0,0-4.53,11.85c0,16.91,10.26,20.7,20,21.81a9.44,9.44,0,0,0-2.79,5.9c-2.51,1.13-8.87,3.08-12.8-3.67,0,0-2.32-4.24-6.73-4.55,0,0-4.3-.06-.3,2.68,0,0,2.88,1.36,4.88,6.46,0,0,2.58,8.59,14.81,5.92,0,3.68.06,6.46.06,7.51s-.8,2.53-3,2.13A44.17,44.17,0,0,1,50,6.58"/>
</symbol>
<symbol id="icon-matomo-social-google" viewbox="0 0 100 100">
<path fill="#f93f2d" d="M83.69,45.1V35.58H76.89V45.1H67.11v6.8h9.78v9.8h6.79v-9.8h9.51V45.1Zm-49.44-.54V55.44H49.08c-2.32,7.06-5.94,10.9-14.83,10.9a16.33,16.33,0,0,1,0-32.66,15.53,15.53,0,0,1,10.65,4c2.26-2.26,2.07-2.58,7.81-8A27.46,27.46,0,1,0,34.24,77.49c22.65,0,28.19-19.76,26.35-32.93Z"/>
</symbol>
<radialGradient id="instagram-a" cx="18.04" cy="-419.56" r="113.65" gradientTransform="matrix(1, 0, 0, -1, 0, -325.16)" gradientUnits="userSpaceOnUse">
<stop offset="0.09" stop-color="#fa8f21"/>
<stop offset="0.78" stop-color="#d82d7e"/>
</radialGradient>
<radialGradient id="instagram-b" cx="59.27" cy="-423.46" r="89.57" gradientTransform="matrix(1, 0, 0, -1, 0, -325.16)" gradientUnits="userSpaceOnUse">
<stop offset="0.64" stop-color="#8c3aaa" stop-opacity="0"/>
<stop offset="1" stop-color="#8c3aaa"/>
</radialGradient>
<symbol id="icon-matomo-social-instagram" viewbox="0 0 100 100">
<path fill="url(#instagram-a)" d="M35.49,50.45A14.51,14.51,0,1,1,50,65,14.51,14.51,0,0,1,35.49,50.45m-7.84,0A22.35,22.35,0,1,0,50,28.09,22.35,22.35,0,0,0,27.65,50.45M68,27.21A5.22,5.22,0,1,0,73.24,22h0A5.23,5.23,0,0,0,68,27.21M32.41,85.88a24.06,24.06,0,0,1-8.08-1.5,13.53,13.53,0,0,1-5-3.26,13.43,13.43,0,0,1-3.26-5A24,24,0,0,1,14.57,68c-.21-4.59-.25-6-.25-17.59s0-13,.25-17.59a24.22,24.22,0,0,1,1.5-8.08,13.53,13.53,0,0,1,3.26-5,13.42,13.42,0,0,1,5-3.26A24,24,0,0,1,32.41,15c4.59-.21,6-.25,17.59-.25s13,0,17.59.25a24.22,24.22,0,0,1,8.08,1.5,14.41,14.41,0,0,1,8.26,8.26,24,24,0,0,1,1.5,8.08c.21,4.59.25,6,.25,17.59s0,13-.25,17.59a24.15,24.15,0,0,1-1.5,8.08,14.41,14.41,0,0,1-8.26,8.26,24,24,0,0,1-8.08,1.5c-4.59.21-6,.25-17.59.25s-13,0-17.59-.25m-.36-78.7a31.92,31.92,0,0,0-10.57,2,21.35,21.35,0,0,0-7.71,5,21.27,21.27,0,0,0-5,7.71,31.93,31.93,0,0,0-2,10.57c-.21,4.64-.26,6.13-.26,17.95s0,13.31.26,17.95A31.93,31.93,0,0,0,8.75,79a21.28,21.28,0,0,0,5,7.71,21.4,21.4,0,0,0,7.71,5,32,32,0,0,0,10.57,2c4.64.21,6.13.26,17.95.26s13.31,0,17.95-.26a31.93,31.93,0,0,0,10.57-2A22.26,22.26,0,0,0,91.25,79a31.84,31.84,0,0,0,2-10.57c.21-4.65.26-6.13.26-17.95s0-13.31-.26-17.95a31.92,31.92,0,0,0-2-10.57,21.41,21.41,0,0,0-5-7.71,21.3,21.3,0,0,0-7.71-5A31.88,31.88,0,0,0,68,7.18C63.31,7,61.83,6.92,50,6.92s-13.31,0-18,.26"/>
<path fill="url(#instagram-b)" d="M35.49,50.45A14.51,14.51,0,1,1,50,65,14.51,14.51,0,0,1,35.49,50.45m-7.84,0A22.35,22.35,0,1,0,50,28.09,22.35,22.35,0,0,0,27.65,50.45M68,27.21A5.22,5.22,0,1,0,73.24,22h0A5.23,5.23,0,0,0,68,27.21M32.41,85.88a24.06,24.06,0,0,1-8.08-1.5,13.53,13.53,0,0,1-5-3.26,13.43,13.43,0,0,1-3.26-5A24,24,0,0,1,14.57,68c-.21-4.59-.25-6-.25-17.59s0-13,.25-17.59a24.22,24.22,0,0,1,1.5-8.08,13.53,13.53,0,0,1,3.26-5,13.42,13.42,0,0,1,5-3.26A24,24,0,0,1,32.41,15c4.59-.21,6-.25,17.59-.25s13,0,17.59.25a24.22,24.22,0,0,1,8.08,1.5,14.41,14.41,0,0,1,8.26,8.26,24,24,0,0,1,1.5,8.08c.21,4.59.25,6,.25,17.59s0,13-.25,17.59a24.15,24.15,0,0,1-1.5,8.08,14.41,14.41,0,0,1-8.26,8.26,24,24,0,0,1-8.08,1.5c-4.59.21-6,.25-17.59.25s-13,0-17.59-.25m-.36-78.7a31.92,31.92,0,0,0-10.57,2,21.35,21.35,0,0,0-7.71,5,21.27,21.27,0,0,0-5,7.71,31.93,31.93,0,0,0-2,10.57c-.21,4.64-.26,6.13-.26,17.95s0,13.31.26,17.95A31.93,31.93,0,0,0,8.75,79a21.28,21.28,0,0,0,5,7.71,21.4,21.4,0,0,0,7.71,5,32,32,0,0,0,10.57,2c4.64.21,6.13.26,17.95.26s13.31,0,17.95-.26a31.93,31.93,0,0,0,10.57-2A22.26,22.26,0,0,0,91.25,79a31.84,31.84,0,0,0,2-10.57c.21-4.65.26-6.13.26-17.95s0-13.31-.26-17.95a31.92,31.92,0,0,0-2-10.57,21.41,21.41,0,0,0-5-7.71,21.3,21.3,0,0,0-7.71-5A31.88,31.88,0,0,0,68,7.18C63.31,7,61.83,6.92,50,6.92s-13.31,0-18,.26"/>
</symbol>
<symbol id="icon-matomo-social-linkedin" viewbox="0 0 100 100">
<path fill="#007ebb" d="M88.7,6.5H11.3a4.81,4.81,0,0,0-4.8,4.8V88.69a4.8,4.8,0,0,0,4.8,4.8H88.7a4.8,4.8,0,0,0,4.8-4.8V11.3A4.81,4.81,0,0,0,88.7,6.5ZM32.89,79.78H19.75V40.25H32.89ZM26.33,34.85h-.09c-4.4,0-7.27-3-7.27-6.82s2.94-6.83,7.43-6.83,7.27,3,7.36,6.83S30.9,34.85,26.33,34.85ZM80.25,79.78H67.13V58.63c0-5.31-1.9-8.94-6.65-8.94a7.18,7.18,0,0,0-6.74,4.8,9.11,9.11,0,0,0-.43,3.21V79.78H40.16s.18-35.82,0-39.53H53.3v5.58a13.05,13.05,0,0,1,11.84-6.51c8.65,0,15.12,5.65,15.12,17.78ZM53.3,46v-.15l-.09.15Z"/>
<path fill="#fff" d="M53.3,45.83V46h-.09Z"/>
</symbol>
<symbol id="icon-matomo-social-pinterest" viewbox="0 0 100 100">
<path fill="#cc2127" d="M50,7.19A42.81,42.81,0,1,1,37.87,91a35.7,35.7,0,0,0,4.31-9.17c.52-1.9,3-11.76,3-11.76C46.68,73,51,75.45,55.65,75.45c13.77,0,23.1-12.54,23.1-29.34,0-12.69-10.76-24.53-27.1-24.53-20.34,0-30.59,14.59-30.59,26.75,0,7.36,2.78,13.91,8.77,16.36A1.47,1.47,0,0,0,32,63.61c.2-.75.67-2.65.87-3.43a2.08,2.08,0,0,0-.61-2.39,12.35,12.35,0,0,1-2.82-8.4c0-10.81,8.09-20.49,21.07-20.49,11.49,0,17.81,7,17.81,16.4,0,12.34-5.46,22.76-13.57,22.76-4.48,0-7.83-3.7-6.76-8.25,1.28-5.42,3.78-11.28,3.78-15.19,0-3.5-1.88-6.43-5.77-6.43-4.58,0-8.26,4.74-8.26,11.08a16.48,16.48,0,0,0,1.36,6.78S34.39,75.9,33.56,79.38a37.88,37.88,0,0,0-.74,9.83A42.81,42.81,0,0,1,50,7.19"/>
</symbol>
<symbol id="icon-matomo-social-reddit" viewbox="0 0 100 100">
<path fill="#ff5700" d="M63,61.55a6,6,0,0,1-6-5.88,6.07,6.07,0,0,1,6-6,6,6,0,0,1,5.93,6A5.91,5.91,0,0,1,63,61.55M64.43,73c-3.05,3-7.76,4.49-14.39,4.49H50C43.32,77.46,38.62,76,35.57,73a2.35,2.35,0,0,1,0-3.36,2.41,2.41,0,0,1,3.39,0c2.1,2.08,5.7,3.1,11,3.1H50c5.3,0,8.9-1,11-3.1a2.41,2.41,0,0,1,3.39,0,2.36,2.36,0,0,1,0,3.36M31,55.67a6.06,6.06,0,0,1,6-6,6,6,0,0,1,5.93,6A5.91,5.91,0,0,1,37,61.55a6,6,0,0,1-6-5.88M79.21,18.22a4,4,0,1,1-4,4,4,4,0,0,1,4-4m14.62,31a10.55,10.55,0,0,0-17.17-8.1A49.91,49.91,0,0,0,53.34,34.2L57.9,19.91l12.53,2.92a8.75,8.75,0,1,0,1-4.65l-14.56-3.4A2.39,2.39,0,0,0,54,16.39L48.35,34.11c-9.42.23-18.27,2.65-25.16,6.88a10.55,10.55,0,0,0-17,8.22,10.4,10.4,0,0,0,4.56,8.59,18.16,18.16,0,0,0-.18,2.51c0,7.2,4.22,13.89,11.89,18.85,7.35,4.75,17.07,7.37,27.38,7.37s20-2.62,27.38-7.37c7.67-5,11.89-11.65,11.89-18.85A18.21,18.21,0,0,0,88.94,58a10.42,10.42,0,0,0,4.89-8.81"/>
</symbol>
<symbol id="icon-matomo-social-tumblr" viewbox="0 0 100 100">
<path style="#34455d" d="M68.48,75.74,72.54,88c-1.52,2.29-8.4,4.94-14.6,5-18.37.32-25.33-13.37-25.33-23V41.91H24.07V30.78c12.79-4.71,15.87-16.5,16.59-23.22a.67.67,0,0,1,.61-.64H53.62V28.87H70.5v13H53.56V68.74c.05,3.65,1.36,8.68,8.12,8.49a19.5,19.5,0,0,0,6.8-1.49"/>
</symbol>
<symbol id="icon-matomo-social-twitter" viewbox="0 0 100 100">
<path fill="#00aaec" d="M93.32,22.44a36.49,36.49,0,0,1-8.86,9.43c0,.78,0,1.57,0,2.36,0,24.09-17.88,51.86-50.58,51.86A49.49,49.49,0,0,1,6.68,77.92a35.58,35.58,0,0,0,4.24.25A35.1,35.1,0,0,0,33,70.36,17.84,17.84,0,0,1,16.39,57.71a17.27,17.27,0,0,0,3.35.32,17,17,0,0,0,4.68-.64A18.12,18.12,0,0,1,10.15,39.52V39.3a17.45,17.45,0,0,0,8.06,2.27A18.35,18.35,0,0,1,10.3,26.4a18.56,18.56,0,0,1,2.41-9.17A50,50,0,0,0,49.35,36.28a18.6,18.6,0,0,1-.46-4.15A18,18,0,0,1,66.66,13.9a17.53,17.53,0,0,1,13,5.75,35,35,0,0,0,11.3-4.42,18.19,18.19,0,0,1-7.82,10.08,34.72,34.72,0,0,0,10.21-2.87"/>
</symbol>
<symbol id="icon-matomo-social-vimeo" viewbox="0 0 100 100">
<path fill="#00b2ea" d="M93.79,30.57q-.57,12.57-17.73,34.36Q58.31,87.72,46,87.72q-7.6,0-12.86-13.89-3.52-12.76-7-25.49-3.91-13.91-8.39-13.91c-.65,0-2.92,1.35-6.83,4.06L6.81,33.28q6.43-5.58,12.68-11.19,8.57-7.34,12.87-7.73,10.13-1,12.49,13.71,2.51,15.84,3.5,19.7,2.93,13.13,6.44,13.12,2.72,0,8.19-8.48t5.85-12.94c.52-4.89-1.43-7.32-5.85-7.32a16.77,16.77,0,0,0-6.44,1.35Q63,12.82,81.13,13.4q13.44.37,12.66,17.17"/>
</symbol>
<symbol id="icon-matomo-social-youtube" viewbox="0 0 100 100">
<path fill="#ce1312" d="M41,61.88V37.34L64.48,49.65Zm51.47-28.8s-.85-6-3.45-8.67c-3.3-3.48-7-3.5-8.69-3.7C68.23,19.83,50,19.83,50,19.83h0s-18.21,0-30.35.88c-1.7.2-5.39.22-8.69,3.7-2.6,2.65-3.45,8.67-3.45,8.67a133.1,133.1,0,0,0-.87,14.14v6.63A133,133,0,0,0,7.49,68s.85,6,3.45,8.67c3.3,3.48,7.64,3.37,9.57,3.74,6.94.67,29.5.88,29.5.88s18.23,0,30.37-.91c1.69-.2,5.39-.22,8.69-3.7C91.66,74,92.51,68,92.51,68a133,133,0,0,0,.87-14.14V47.22a133.1,133.1,0,0,0-.87-14.14Z"/>
</symbol>
<symbol id="icon-matomo-users" viewbox="0 0 100 100">
<path d="M68.27,85.89a3,3,0,0,1-3-3V75.58A11.63,11.63,0,0,0,53.65,64H24.42A11.63,11.63,0,0,0,12.81,75.58v7.31a3,3,0,0,1-6,0V75.58A17.64,17.64,0,0,1,24.42,58H53.65A17.64,17.64,0,0,1,71.27,75.58v7.31A3,3,0,0,1,68.27,85.89ZM56.65,31.73A17.62,17.62,0,1,0,39,49.35,17.64,17.64,0,0,0,56.65,31.73Zm-6,0A11.62,11.62,0,1,1,39,20.11,11.63,11.63,0,0,1,50.65,31.73ZM93.19,82.89V75.58A17.61,17.61,0,0,0,80,58.53a3,3,0,0,0-1.5,5.81,11.61,11.61,0,0,1,8.71,11.24v7.31a3,3,0,0,0,6,0ZM65.36,48.81a17.62,17.62,0,0,0,0-34.13,3,3,0,1,0-1.49,5.81,11.62,11.62,0,0,1,0,22.51,3,3,0,1,0,1.49,5.81Z"/>
</symbol>
`,panel.plugin("sylvainjule/matomo",{components:{matomo:Vf,"matomo-main":In,"matomo-sidebar":Rn},sections:{"matomo-main":In,"matomo-sidebar":Rn,"matomo-page":Rf},icons:{"line-chart":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 3V19H21V21H3V3H5ZM20.2929 6.29289L21.7071 7.70711L16 13.4142L13 10.415L8.70711 14.7071L7.29289 13.2929L13 7.58579L16 10.585L20.2929 6.29289Z"></path></svg>'}})})();